Documentation ¶
Index ¶
- func New(opts ...Option) transaction.Backend
- type Option
- func WithBlockNumberFunc(f func(context.Context) (uint64, error)) Option
- func WithCodeAtFunc(...) Option
- func WithEstimateGasFunc(f func(ctx context.Context, call ethereum.CallMsg) (gas uint64, err error)) Option
- func WithHeaderbyNumberFunc(f func(ctx context.Context, number *big.Int) (*types.Header, error)) Option
- func WithNonceAtFunc(...) Option
- func WithPendingNonceAtFunc(f func(ctx context.Context, account common.Address) (uint64, error)) Option
- func WithSendTransactionFunc(f func(ctx context.Context, tx *types.Transaction) error) Option
- func WithSuggestGasPriceFunc(f func(ctx context.Context) (*big.Int, error)) Option
- func WithTransactionByHashFunc(...) Option
- func WithTransactionReceiptFunc(...) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(opts ...Option) transaction.Backend
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option is the option passed to the mock Chequebook service
func WithCodeAtFunc ¶
func WithEstimateGasFunc ¶
func WithHeaderbyNumberFunc ¶
func WithNonceAtFunc ¶
func WithPendingNonceAtFunc ¶
func WithSendTransactionFunc ¶
func WithSuggestGasPriceFunc ¶
Click to show internal directories.
Click to hide internal directories.