mock_ethclient

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2025 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Overview

Package mock_ethclient is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClient

type MockClient struct {
	// contains filtered or unexported fields
}

MockClient is a mock of Client interface.

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance.

func (*MockClient) AcceptedCallContract

func (m *MockClient) AcceptedCallContract(arg0 context.Context, arg1 interfaces.CallMsg) ([]byte, error)

AcceptedCallContract mocks base method.

func (*MockClient) AcceptedCodeAt

func (m *MockClient) AcceptedCodeAt(arg0 context.Context, arg1 common.Address) ([]byte, error)

AcceptedCodeAt mocks base method.

func (*MockClient) AcceptedNonceAt

func (m *MockClient) AcceptedNonceAt(arg0 context.Context, arg1 common.Address) (uint64, error)

AcceptedNonceAt mocks base method.

func (*MockClient) AssetBalanceAt

func (m *MockClient) AssetBalanceAt(arg0 context.Context, arg1 common.Address, arg2 ids.ID, arg3 *big.Int) (*big.Int, error)

AssetBalanceAt mocks base method.

func (*MockClient) BalanceAt

func (m *MockClient) BalanceAt(arg0 context.Context, arg1 common.Address, arg2 *big.Int) (*big.Int, error)

BalanceAt mocks base method.

func (*MockClient) BalanceAtHash

func (m *MockClient) BalanceAtHash(ctx context.Context, account common.Address, blockHash common.Hash) (*big.Int, error)

BalanceAtHash mocks base method.

func (*MockClient) BlockByHash

func (m *MockClient) BlockByHash(arg0 context.Context, arg1 common.Hash) (*types.Block, error)

BlockByHash mocks base method.

func (*MockClient) BlockByNumber

func (m *MockClient) BlockByNumber(arg0 context.Context, arg1 *big.Int) (*types.Block, error)

BlockByNumber mocks base method.

func (*MockClient) BlockNumber

func (m *MockClient) BlockNumber(arg0 context.Context) (uint64, error)

BlockNumber mocks base method.

func (*MockClient) BlockReceipts

func (m *MockClient) BlockReceipts(arg0 context.Context, arg1 rpc.BlockNumberOrHash) ([]*types.Receipt, error)

BlockReceipts mocks base method.

func (*MockClient) CallContract

func (m *MockClient) CallContract(arg0 context.Context, arg1 interfaces.CallMsg, arg2 *big.Int) ([]byte, error)

CallContract mocks base method.

func (*MockClient) CallContractAtHash

func (m *MockClient) CallContractAtHash(ctx context.Context, msg interfaces.CallMsg, blockHash common.Hash) ([]byte, error)

CallContractAtHash mocks base method.

func (*MockClient) ChainConfig

ChainConfig mocks base method.

func (*MockClient) ChainID

func (m *MockClient) ChainID(arg0 context.Context) (*big.Int, error)

ChainID mocks base method.

func (*MockClient) Client

func (m *MockClient) Client() *rpc.Client

Client mocks base method.

func (*MockClient) Close

func (m *MockClient) Close()

Close mocks base method.

func (*MockClient) CodeAt

func (m *MockClient) CodeAt(arg0 context.Context, arg1 common.Address, arg2 *big.Int) ([]byte, error)

CodeAt mocks base method.

func (*MockClient) CodeAtHash

func (m *MockClient) CodeAtHash(ctx context.Context, account common.Address, blockHash common.Hash) ([]byte, error)

CodeAtHash mocks base method.

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockClient) EstimateBaseFee

func (m *MockClient) EstimateBaseFee(arg0 context.Context) (*big.Int, error)

EstimateBaseFee mocks base method.

func (*MockClient) EstimateGas

func (m *MockClient) EstimateGas(arg0 context.Context, arg1 interfaces.CallMsg) (uint64, error)

EstimateGas mocks base method.

func (*MockClient) FeeHistory

func (m *MockClient) FeeHistory(ctx context.Context, blockCount uint64, lastBlock *big.Int, rewardPercentiles []float64) (*interfaces.FeeHistory, error)

FeeHistory mocks base method.

func (*MockClient) FilterLogs

func (m *MockClient) FilterLogs(arg0 context.Context, arg1 interfaces.FilterQuery) ([]types.Log, error)

FilterLogs mocks base method.

func (*MockClient) HeaderByHash

func (m *MockClient) HeaderByHash(arg0 context.Context, arg1 common.Hash) (*types.Header, error)

HeaderByHash mocks base method.

func (*MockClient) HeaderByNumber

func (m *MockClient) HeaderByNumber(arg0 context.Context, arg1 *big.Int) (*types.Header, error)

HeaderByNumber mocks base method.

func (*MockClient) NetworkID

func (m *MockClient) NetworkID(arg0 context.Context) (*big.Int, error)

NetworkID mocks base method.

func (*MockClient) NonceAt

func (m *MockClient) NonceAt(arg0 context.Context, arg1 common.Address, arg2 *big.Int) (uint64, error)

NonceAt mocks base method.

func (*MockClient) NonceAtHash

func (m *MockClient) NonceAtHash(ctx context.Context, account common.Address, blockHash common.Hash) (uint64, error)

NonceAtHash mocks base method.

func (*MockClient) SendTransaction

func (m *MockClient) SendTransaction(arg0 context.Context, arg1 *types.Transaction) error

SendTransaction mocks base method.

func (*MockClient) StorageAt

func (m *MockClient) StorageAt(arg0 context.Context, arg1 common.Address, arg2 common.Hash, arg3 *big.Int) ([]byte, error)

StorageAt mocks base method.

func (*MockClient) StorageAtHash

func (m *MockClient) StorageAtHash(ctx context.Context, account common.Address, key, blockHash common.Hash) ([]byte, error)

StorageAtHash mocks base method.

func (*MockClient) SubscribeFilterLogs

func (m *MockClient) SubscribeFilterLogs(arg0 context.Context, arg1 interfaces.FilterQuery, arg2 chan<- types.Log) (interfaces.Subscription, error)

SubscribeFilterLogs mocks base method.

func (*MockClient) SubscribeNewAcceptedTransactions

func (m *MockClient) SubscribeNewAcceptedTransactions(arg0 context.Context, arg1 chan<- *common.Hash) (interfaces.Subscription, error)

SubscribeNewAcceptedTransactions mocks base method.

func (*MockClient) SubscribeNewHead

func (m *MockClient) SubscribeNewHead(arg0 context.Context, arg1 chan<- *types.Header) (interfaces.Subscription, error)

SubscribeNewHead mocks base method.

func (*MockClient) SubscribeNewPendingTransactions

func (m *MockClient) SubscribeNewPendingTransactions(arg0 context.Context, arg1 chan<- *common.Hash) (interfaces.Subscription, error)

SubscribeNewPendingTransactions mocks base method.

func (*MockClient) SuggestGasPrice

func (m *MockClient) SuggestGasPrice(arg0 context.Context) (*big.Int, error)

SuggestGasPrice mocks base method.

func (*MockClient) SuggestGasTipCap

func (m *MockClient) SuggestGasTipCap(arg0 context.Context) (*big.Int, error)

SuggestGasTipCap mocks base method.

func (*MockClient) SyncProgress

func (m *MockClient) SyncProgress(ctx context.Context) error

SyncProgress mocks base method.

func (*MockClient) TransactionByHash

func (m *MockClient) TransactionByHash(arg0 context.Context, arg1 common.Hash) (*types.Transaction, bool, error)

TransactionByHash mocks base method.

func (*MockClient) TransactionCount

func (m *MockClient) TransactionCount(arg0 context.Context, arg1 common.Hash) (uint, error)

TransactionCount mocks base method.

func (*MockClient) TransactionInBlock

func (m *MockClient) TransactionInBlock(arg0 context.Context, arg1 common.Hash, arg2 uint) (*types.Transaction, error)

TransactionInBlock mocks base method.

func (*MockClient) TransactionReceipt

func (m *MockClient) TransactionReceipt(arg0 context.Context, arg1 common.Hash) (*types.Receipt, error)

TransactionReceipt mocks base method.

func (*MockClient) TransactionSender

func (m *MockClient) TransactionSender(arg0 context.Context, arg1 *types.Transaction, arg2 common.Hash, arg3 uint) (common.Address, error)

TransactionSender mocks base method.

type MockClientMockRecorder

type MockClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) AcceptedCallContract

func (mr *MockClientMockRecorder) AcceptedCallContract(arg0, arg1 any) *gomock.Call

AcceptedCallContract indicates an expected call of AcceptedCallContract.

func (*MockClientMockRecorder) AcceptedCodeAt

func (mr *MockClientMockRecorder) AcceptedCodeAt(arg0, arg1 any) *gomock.Call

AcceptedCodeAt indicates an expected call of AcceptedCodeAt.

func (*MockClientMockRecorder) AcceptedNonceAt

func (mr *MockClientMockRecorder) AcceptedNonceAt(arg0, arg1 any) *gomock.Call

AcceptedNonceAt indicates an expected call of AcceptedNonceAt.

func (*MockClientMockRecorder) AssetBalanceAt

func (mr *MockClientMockRecorder) AssetBalanceAt(arg0, arg1, arg2, arg3 any) *gomock.Call

AssetBalanceAt indicates an expected call of AssetBalanceAt.

func (*MockClientMockRecorder) BalanceAt

func (mr *MockClientMockRecorder) BalanceAt(arg0, arg1, arg2 any) *gomock.Call

BalanceAt indicates an expected call of BalanceAt.

func (*MockClientMockRecorder) BalanceAtHash

func (mr *MockClientMockRecorder) BalanceAtHash(ctx, account, blockHash any) *gomock.Call

BalanceAtHash indicates an expected call of BalanceAtHash.

func (*MockClientMockRecorder) BlockByHash

func (mr *MockClientMockRecorder) BlockByHash(arg0, arg1 any) *gomock.Call

BlockByHash indicates an expected call of BlockByHash.

func (*MockClientMockRecorder) BlockByNumber

func (mr *MockClientMockRecorder) BlockByNumber(arg0, arg1 any) *gomock.Call

BlockByNumber indicates an expected call of BlockByNumber.

func (*MockClientMockRecorder) BlockNumber

func (mr *MockClientMockRecorder) BlockNumber(arg0 any) *gomock.Call

BlockNumber indicates an expected call of BlockNumber.

func (*MockClientMockRecorder) BlockReceipts

func (mr *MockClientMockRecorder) BlockReceipts(arg0, arg1 any) *gomock.Call

BlockReceipts indicates an expected call of BlockReceipts.

func (*MockClientMockRecorder) CallContract

func (mr *MockClientMockRecorder) CallContract(arg0, arg1, arg2 any) *gomock.Call

CallContract indicates an expected call of CallContract.

func (*MockClientMockRecorder) CallContractAtHash

func (mr *MockClientMockRecorder) CallContractAtHash(ctx, msg, blockHash any) *gomock.Call

CallContractAtHash indicates an expected call of CallContractAtHash.

func (*MockClientMockRecorder) ChainConfig

func (mr *MockClientMockRecorder) ChainConfig(arg0 any) *gomock.Call

ChainConfig indicates an expected call of ChainConfig.

func (*MockClientMockRecorder) ChainID

func (mr *MockClientMockRecorder) ChainID(arg0 any) *gomock.Call

ChainID indicates an expected call of ChainID.

func (*MockClientMockRecorder) Client

func (mr *MockClientMockRecorder) Client() *gomock.Call

Client indicates an expected call of Client.

func (*MockClientMockRecorder) Close

func (mr *MockClientMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockClientMockRecorder) CodeAt

func (mr *MockClientMockRecorder) CodeAt(arg0, arg1, arg2 any) *gomock.Call

CodeAt indicates an expected call of CodeAt.

func (*MockClientMockRecorder) CodeAtHash

func (mr *MockClientMockRecorder) CodeAtHash(ctx, account, blockHash any) *gomock.Call

CodeAtHash indicates an expected call of CodeAtHash.

func (*MockClientMockRecorder) EstimateBaseFee

func (mr *MockClientMockRecorder) EstimateBaseFee(arg0 any) *gomock.Call

EstimateBaseFee indicates an expected call of EstimateBaseFee.

func (*MockClientMockRecorder) EstimateGas

func (mr *MockClientMockRecorder) EstimateGas(arg0, arg1 any) *gomock.Call

EstimateGas indicates an expected call of EstimateGas.

func (*MockClientMockRecorder) FeeHistory

func (mr *MockClientMockRecorder) FeeHistory(ctx, blockCount, lastBlock, rewardPercentiles any) *gomock.Call

FeeHistory indicates an expected call of FeeHistory.

func (*MockClientMockRecorder) FilterLogs

func (mr *MockClientMockRecorder) FilterLogs(arg0, arg1 any) *gomock.Call

FilterLogs indicates an expected call of FilterLogs.

func (*MockClientMockRecorder) HeaderByHash

func (mr *MockClientMockRecorder) HeaderByHash(arg0, arg1 any) *gomock.Call

HeaderByHash indicates an expected call of HeaderByHash.

func (*MockClientMockRecorder) HeaderByNumber

func (mr *MockClientMockRecorder) HeaderByNumber(arg0, arg1 any) *gomock.Call

HeaderByNumber indicates an expected call of HeaderByNumber.

func (*MockClientMockRecorder) NetworkID

func (mr *MockClientMockRecorder) NetworkID(arg0 any) *gomock.Call

NetworkID indicates an expected call of NetworkID.

func (*MockClientMockRecorder) NonceAt

func (mr *MockClientMockRecorder) NonceAt(arg0, arg1, arg2 any) *gomock.Call

NonceAt indicates an expected call of NonceAt.

func (*MockClientMockRecorder) NonceAtHash

func (mr *MockClientMockRecorder) NonceAtHash(ctx, account, blockHash any) *gomock.Call

NonceAtHash indicates an expected call of NonceAtHash.

func (*MockClientMockRecorder) SendTransaction

func (mr *MockClientMockRecorder) SendTransaction(arg0, arg1 any) *gomock.Call

SendTransaction indicates an expected call of SendTransaction.

func (*MockClientMockRecorder) StorageAt

func (mr *MockClientMockRecorder) StorageAt(arg0, arg1, arg2, arg3 any) *gomock.Call

StorageAt indicates an expected call of StorageAt.

func (*MockClientMockRecorder) StorageAtHash

func (mr *MockClientMockRecorder) StorageAtHash(ctx, account, key, blockHash any) *gomock.Call

StorageAtHash indicates an expected call of StorageAtHash.

func (*MockClientMockRecorder) SubscribeFilterLogs

func (mr *MockClientMockRecorder) SubscribeFilterLogs(arg0, arg1, arg2 any) *gomock.Call

SubscribeFilterLogs indicates an expected call of SubscribeFilterLogs.

func (*MockClientMockRecorder) SubscribeNewAcceptedTransactions

func (mr *MockClientMockRecorder) SubscribeNewAcceptedTransactions(arg0, arg1 any) *gomock.Call

SubscribeNewAcceptedTransactions indicates an expected call of SubscribeNewAcceptedTransactions.

func (*MockClientMockRecorder) SubscribeNewHead

func (mr *MockClientMockRecorder) SubscribeNewHead(arg0, arg1 any) *gomock.Call

SubscribeNewHead indicates an expected call of SubscribeNewHead.

func (*MockClientMockRecorder) SubscribeNewPendingTransactions

func (mr *MockClientMockRecorder) SubscribeNewPendingTransactions(arg0, arg1 any) *gomock.Call

SubscribeNewPendingTransactions indicates an expected call of SubscribeNewPendingTransactions.

func (*MockClientMockRecorder) SuggestGasPrice

func (mr *MockClientMockRecorder) SuggestGasPrice(arg0 any) *gomock.Call

SuggestGasPrice indicates an expected call of SuggestGasPrice.

func (*MockClientMockRecorder) SuggestGasTipCap

func (mr *MockClientMockRecorder) SuggestGasTipCap(arg0 any) *gomock.Call

SuggestGasTipCap indicates an expected call of SuggestGasTipCap.

func (*MockClientMockRecorder) SyncProgress

func (mr *MockClientMockRecorder) SyncProgress(ctx any) *gomock.Call

SyncProgress indicates an expected call of SyncProgress.

func (*MockClientMockRecorder) TransactionByHash

func (mr *MockClientMockRecorder) TransactionByHash(arg0, arg1 any) *gomock.Call

TransactionByHash indicates an expected call of TransactionByHash.

func (*MockClientMockRecorder) TransactionCount

func (mr *MockClientMockRecorder) TransactionCount(arg0, arg1 any) *gomock.Call

TransactionCount indicates an expected call of TransactionCount.

func (*MockClientMockRecorder) TransactionInBlock

func (mr *MockClientMockRecorder) TransactionInBlock(arg0, arg1, arg2 any) *gomock.Call

TransactionInBlock indicates an expected call of TransactionInBlock.

func (*MockClientMockRecorder) TransactionReceipt

func (mr *MockClientMockRecorder) TransactionReceipt(arg0, arg1 any) *gomock.Call

TransactionReceipt indicates an expected call of TransactionReceipt.

func (*MockClientMockRecorder) TransactionSender

func (mr *MockClientMockRecorder) TransactionSender(arg0, arg1, arg2, arg3 any) *gomock.Call

TransactionSender indicates an expected call of TransactionSender.

Jump to

Keyboard shortcuts

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