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 WithSendFunc ¶
func WithStoredTransactionFunc ¶
func WithStoredTransactionFunc(f func(txHash common.Hash) (*transaction.StoredTransaction, error)) Option
func WithTransactionFeeFunc ¶
Click to show internal directories.
Click to hide internal directories.