mocks

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2021 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EthClient

type EthClient struct {
	mock.Mock
}

func (*EthClient) CallContract

func (e *EthClient) CallContract(ctx context.Context, call ethereum.CallMsg, block *big.Int) ([]byte, error)

func (*EthClient) NetworkID

func (e *EthClient) NetworkID(ctx context.Context) (*big.Int, error)

func (*EthClient) NonceAt added in v0.3.0

func (e *EthClient) NonceAt(ctx context.Context, account common.Address, block *big.Int) (uint64, error)

func (*EthClient) PendingNonceAt

func (e *EthClient) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)

func (*EthClient) SendTransaction

func (e *EthClient) SendTransaction(ctx context.Context, tx *types.Transaction) error

func (*EthClient) StorageAt

func (e *EthClient) StorageAt(ctx context.Context, acc common.Address, key common.Hash, block *big.Int) ([]byte, error)

func (*EthClient) SuggestGasPrice

func (e *EthClient) SuggestGasPrice(ctx context.Context) (*big.Int, error)

func (*EthClient) SuggestGasTipCap added in v0.3.0

func (e *EthClient) SuggestGasTipCap(ctx context.Context) (*big.Int, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL