evm_client

package
v0.2.0-alpha-1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 License: Apache-2.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 MockEVMClient

type MockEVMClient struct {
	mock.Mock
}

func (*MockEVMClient) BlockConfirmations

func (m *MockEVMClient) BlockConfirmations() uint64

func (*MockEVMClient) BlockNumber

func (m *MockEVMClient) BlockNumber(ctx context.Context) (uint64, error)

func (*MockEVMClient) ChainID

func (m *MockEVMClient) ChainID(ctx context.Context) (*big.Int, error)

func (*MockEVMClient) FilterLogs

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

func (*MockEVMClient) GetBlockTimestamp

func (m *MockEVMClient) GetBlockTimestamp(blockNumber *big.Int) uint64

func (*MockEVMClient) GetChainID

func (m *MockEVMClient) GetChainID() uint64

func (*MockEVMClient) GetClient

func (m *MockEVMClient) GetClient() client.Core

func (*MockEVMClient) GetPrivateKey

func (m *MockEVMClient) GetPrivateKey() string

func (*MockEVMClient) RetryBlockNumber

func (m *MockEVMClient) RetryBlockNumber() (uint64, error)

func (*MockEVMClient) RetryFilterLogs

func (m *MockEVMClient) RetryFilterLogs(q ethereum.FilterQuery) ([]types.Log, error)

func (*MockEVMClient) SetChainID

func (m *MockEVMClient) SetChainID(chainId uint64)

func (*MockEVMClient) ValidateContractDeployedAt

func (m *MockEVMClient) ValidateContractDeployedAt(contractAddress string) (*common.Address, error)

func (*MockEVMClient) WaitForConfirmations

func (m *MockEVMClient) WaitForConfirmations(raw types.Log) error

func (*MockEVMClient) WaitForTransaction

func (m *MockEVMClient) WaitForTransaction(hex string, onSuccess, onRevert func(), onError func(err error))

type MockEVMCoreClient

type MockEVMCoreClient struct {
	mock.Mock
}

func (*MockEVMCoreClient) BlockByHash

func (m *MockEVMCoreClient) BlockByHash(ctx context.Context, hash common.Hash) (*types.Block, error)

func (*MockEVMCoreClient) BlockByNumber

func (m *MockEVMCoreClient) BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error)

func (*MockEVMCoreClient) BlockNumber

func (m *MockEVMCoreClient) BlockNumber(ctx context.Context) (uint64, error)

func (*MockEVMCoreClient) CallContract

func (m *MockEVMCoreClient) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)

func (*MockEVMCoreClient) ChainID

func (m *MockEVMCoreClient) ChainID(ctx context.Context) (*big.Int, error)

func (*MockEVMCoreClient) CodeAt

func (m *MockEVMCoreClient) CodeAt(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error)

func (*MockEVMCoreClient) EstimateGas

func (m *MockEVMCoreClient) EstimateGas(ctx context.Context, call ethereum.CallMsg) (gas uint64, err error)

func (*MockEVMCoreClient) FilterLogs

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

func (*MockEVMCoreClient) HeaderByNumber

func (m *MockEVMCoreClient) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)

func (*MockEVMCoreClient) PendingCodeAt

func (m *MockEVMCoreClient) PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error)

func (*MockEVMCoreClient) PendingNonceAt

func (m *MockEVMCoreClient) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)

func (*MockEVMCoreClient) SendTransaction

func (m *MockEVMCoreClient) SendTransaction(ctx context.Context, tx *types.Transaction) error

func (*MockEVMCoreClient) SubscribeFilterLogs

func (m *MockEVMCoreClient) SubscribeFilterLogs(ctx context.Context, query ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)

func (*MockEVMCoreClient) SuggestGasPrice

func (m *MockEVMCoreClient) SuggestGasPrice(ctx context.Context) (*big.Int, error)

func (*MockEVMCoreClient) SuggestGasTipCap

func (m *MockEVMCoreClient) SuggestGasTipCap(ctx context.Context) (*big.Int, error)

func (*MockEVMCoreClient) TransactionByHash

func (m *MockEVMCoreClient) TransactionByHash(ctx context.Context, hash common.Hash) (tx *types.Transaction, isPending bool, err error)

func (*MockEVMCoreClient) TransactionReceipt

func (m *MockEVMCoreClient) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)

Jump to

Keyboard shortcuts

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