Documentation ¶
Index ¶
- func New(opts ...Option) transaction.Service
- type Call
- type Option
- func WithABICall(abi *abi.ABI, to common.Address, result []byte, method string, ...) Option
- func WithABICallSequence(calls ...Call) Option
- func WithABISend(abi *abi.ABI, txHash common.Hash, expectedAddress common.Address, ...) Option
- func WithCallFunc(...) Option
- func WithCancelTransactionFunc(f func(ctx context.Context, originalTxHash common.Hash) (common.Hash, error)) Option
- func WithPendingTransactionsFunc(f func() ([]common.Hash, error)) Option
- func WithResendTransactionFunc(f func(ctx context.Context, txHash common.Hash) error) Option
- func WithSendFunc(...) Option
- func WithStoredTransactionFunc(f func(txHash common.Hash) (*transaction.StoredTransaction, error)) Option
- func WithTransactionFeeFunc(f func(ctx context.Context, txHash common.Hash) (*big.Int, error)) Option
- func WithWaitForReceiptFunc(...) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(opts ...Option) transaction.Service
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option is the option passed to the mock Chequebook service
func WithABICall ¶
func WithABICallSequence ¶
func WithABISend ¶
func WithCallFunc ¶
func WithCancelTransactionFunc ¶ added in v1.1.0
func WithPendingTransactionsFunc ¶ added in v1.0.0
func WithResendTransactionFunc ¶ added in v1.0.0
func WithSendFunc ¶
func WithStoredTransactionFunc ¶ added in v1.0.0
func WithStoredTransactionFunc(f func(txHash common.Hash) (*transaction.StoredTransaction, error)) Option
func WithTransactionFeeFunc ¶ added in v1.12.0
Click to show internal directories.
Click to hide internal directories.