mocks

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 License: AGPL-3.0 Imports: 7 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
	// contains filtered or unexported fields
}

func (*EthClient) BlockNumber

func (e *EthClient) BlockNumber(ctx context.Context) (uint64, error)

func (*EthClient) CallContract

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

func (*EthClient) Calls

func (e *EthClient) Calls() []mock.Call

func (*EthClient) FilterLogs

func (e *EthClient) FilterLogs(ctx context.Context, q ethereum.FilterQuery) ([]types.Log, error)

func (*EthClient) NetworkID

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

func (*EthClient) NonceAt

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

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