Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockClient
- func (m *MockClient) Address() string
- func (m *MockClient) BalanceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (*big.Int, error)
- func (m *MockClient) BlockByHash(ctx context.Context, hash common.Hash) (*types.Block, error)
- func (m *MockClient) BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error)
- func (m *MockClient) BlockNumber(ctx context.Context) (uint64, error)
- func (m *MockClient) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
- func (m *MockClient) ChainID(ctx context.Context) (*big.Int, error)
- func (m *MockClient) Close()
- func (m *MockClient) CodeAt(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error)
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) EstimateGas(ctx context.Context, call ethereum.CallMsg) (uint64, error)
- func (m *MockClient) EtherBalanceAt(ctx context.Context, addr common.Address) (float64, error)
- func (m *MockClient) FilterLogs(ctx context.Context, q ethereum.FilterQuery) ([]types.Log, error)
- func (m *MockClient) HeaderByHash(ctx context.Context, hash common.Hash) (*types.Header, error)
- func (m *MockClient) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
- func (m *MockClient) HeaderByType(ctx context.Context, typ ethclient.HeadType) (*types.Header, error)
- func (m *MockClient) NonceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (uint64, error)
- func (m *MockClient) PeerCount(ctx context.Context) (uint64, error)
- func (m *MockClient) PendingBalanceAt(ctx context.Context, account common.Address) (*big.Int, error)
- func (m *MockClient) PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error)
- func (m *MockClient) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)
- func (m *MockClient) PendingStorageAt(ctx context.Context, account common.Address, key common.Hash) ([]byte, error)
- func (m *MockClient) PendingTransactionCount(ctx context.Context) (uint, error)
- func (m *MockClient) SendTransaction(ctx context.Context, tx *types.Transaction) error
- func (m *MockClient) SetHead(ctx context.Context, height uint64) error
- func (m *MockClient) StorageAt(ctx context.Context, account common.Address, key common.Hash, ...) ([]byte, error)
- func (m *MockClient) SubscribeFilterLogs(ctx context.Context, q ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)
- func (m *MockClient) SubscribeNewHead(ctx context.Context, ch chan<- *types.Header) (ethereum.Subscription, error)
- func (m *MockClient) SuggestGasPrice(ctx context.Context) (*big.Int, error)
- func (m *MockClient) SuggestGasTipCap(ctx context.Context) (*big.Int, error)
- func (m *MockClient) SyncProgress(ctx context.Context) (*ethereum.SyncProgress, error)
- func (m *MockClient) TransactionByHash(ctx context.Context, txHash common.Hash) (*types.Transaction, bool, error)
- func (m *MockClient) TransactionCount(ctx context.Context, blockHash common.Hash) (uint, error)
- func (m *MockClient) TransactionInBlock(ctx context.Context, blockHash common.Hash, index uint) (*types.Transaction, error)
- func (m *MockClient) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) Address() *gomock.Call
- func (mr *MockClientMockRecorder) BalanceAt(ctx, account, blockNumber any) *gomock.Call
- func (mr *MockClientMockRecorder) BlockByHash(ctx, hash any) *gomock.Call
- func (mr *MockClientMockRecorder) BlockByNumber(ctx, number any) *gomock.Call
- func (mr *MockClientMockRecorder) BlockNumber(ctx any) *gomock.Call
- func (mr *MockClientMockRecorder) CallContract(ctx, call, blockNumber any) *gomock.Call
- func (mr *MockClientMockRecorder) ChainID(ctx any) *gomock.Call
- func (mr *MockClientMockRecorder) Close() *gomock.Call
- func (mr *MockClientMockRecorder) CodeAt(ctx, account, blockNumber any) *gomock.Call
- func (mr *MockClientMockRecorder) EstimateGas(ctx, call any) *gomock.Call
- func (mr *MockClientMockRecorder) EtherBalanceAt(ctx, addr any) *gomock.Call
- func (mr *MockClientMockRecorder) FilterLogs(ctx, q any) *gomock.Call
- func (mr *MockClientMockRecorder) HeaderByHash(ctx, hash any) *gomock.Call
- func (mr *MockClientMockRecorder) HeaderByNumber(ctx, number any) *gomock.Call
- func (mr *MockClientMockRecorder) HeaderByType(ctx, typ any) *gomock.Call
- func (mr *MockClientMockRecorder) NonceAt(ctx, account, blockNumber any) *gomock.Call
- func (mr *MockClientMockRecorder) PeerCount(ctx any) *gomock.Call
- func (mr *MockClientMockRecorder) PendingBalanceAt(ctx, account any) *gomock.Call
- func (mr *MockClientMockRecorder) PendingCodeAt(ctx, account any) *gomock.Call
- func (mr *MockClientMockRecorder) PendingNonceAt(ctx, account any) *gomock.Call
- func (mr *MockClientMockRecorder) PendingStorageAt(ctx, account, key any) *gomock.Call
- func (mr *MockClientMockRecorder) PendingTransactionCount(ctx any) *gomock.Call
- func (mr *MockClientMockRecorder) SendTransaction(ctx, tx any) *gomock.Call
- func (mr *MockClientMockRecorder) SetHead(ctx, height any) *gomock.Call
- func (mr *MockClientMockRecorder) StorageAt(ctx, account, key, blockNumber any) *gomock.Call
- func (mr *MockClientMockRecorder) SubscribeFilterLogs(ctx, q, ch any) *gomock.Call
- func (mr *MockClientMockRecorder) SubscribeNewHead(ctx, ch any) *gomock.Call
- func (mr *MockClientMockRecorder) SuggestGasPrice(ctx any) *gomock.Call
- func (mr *MockClientMockRecorder) SuggestGasTipCap(ctx any) *gomock.Call
- func (mr *MockClientMockRecorder) SyncProgress(ctx any) *gomock.Call
- func (mr *MockClientMockRecorder) TransactionByHash(ctx, txHash any) *gomock.Call
- func (mr *MockClientMockRecorder) TransactionCount(ctx, blockHash any) *gomock.Call
- func (mr *MockClientMockRecorder) TransactionInBlock(ctx, blockHash, index any) *gomock.Call
- func (mr *MockClientMockRecorder) TransactionReceipt(ctx, txHash any) *gomock.Call
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) BalanceAt ¶
func (m *MockClient) BalanceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (*big.Int, error)
BalanceAt mocks base method.
func (*MockClient) BlockByHash ¶
BlockByHash mocks base method.
func (*MockClient) BlockByNumber ¶
BlockByNumber mocks base method.
func (*MockClient) BlockNumber ¶
func (m *MockClient) BlockNumber(ctx context.Context) (uint64, error)
BlockNumber mocks base method.
func (*MockClient) CallContract ¶
func (m *MockClient) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
CallContract mocks base method.
func (*MockClient) CodeAt ¶
func (m *MockClient) CodeAt(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error)
CodeAt 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) EstimateGas ¶
EstimateGas mocks base method.
func (*MockClient) EtherBalanceAt ¶
EtherBalanceAt mocks base method.
func (*MockClient) FilterLogs ¶
func (m *MockClient) FilterLogs(ctx context.Context, q ethereum.FilterQuery) ([]types.Log, error)
FilterLogs mocks base method.
func (*MockClient) HeaderByHash ¶
HeaderByHash mocks base method.
func (*MockClient) HeaderByNumber ¶
HeaderByNumber mocks base method.
func (*MockClient) HeaderByType ¶
func (m *MockClient) HeaderByType(ctx context.Context, typ ethclient.HeadType) (*types.Header, error)
HeaderByType mocks base method.
func (*MockClient) NonceAt ¶
func (m *MockClient) NonceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (uint64, error)
NonceAt mocks base method.
func (*MockClient) PeerCount ¶
func (m *MockClient) PeerCount(ctx context.Context) (uint64, error)
PeerCount mocks base method.
func (*MockClient) PendingBalanceAt ¶
func (m *MockClient) PendingBalanceAt(ctx context.Context, account common.Address) (*big.Int, error)
PendingBalanceAt mocks base method.
func (*MockClient) PendingCodeAt ¶
PendingCodeAt mocks base method.
func (*MockClient) PendingNonceAt ¶
PendingNonceAt mocks base method.
func (*MockClient) PendingStorageAt ¶
func (m *MockClient) PendingStorageAt(ctx context.Context, account common.Address, key common.Hash) ([]byte, error)
PendingStorageAt mocks base method.
func (*MockClient) PendingTransactionCount ¶
func (m *MockClient) PendingTransactionCount(ctx context.Context) (uint, error)
PendingTransactionCount mocks base method.
func (*MockClient) SendTransaction ¶
func (m *MockClient) SendTransaction(ctx context.Context, tx *types.Transaction) error
SendTransaction mocks base method.
func (*MockClient) SetHead ¶
func (m *MockClient) SetHead(ctx context.Context, height uint64) error
SetHead mocks base method.
func (*MockClient) StorageAt ¶
func (m *MockClient) StorageAt(ctx context.Context, account common.Address, key common.Hash, blockNumber *big.Int) ([]byte, error)
StorageAt mocks base method.
func (*MockClient) SubscribeFilterLogs ¶
func (m *MockClient) SubscribeFilterLogs(ctx context.Context, q ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)
SubscribeFilterLogs mocks base method.
func (*MockClient) SubscribeNewHead ¶
func (m *MockClient) SubscribeNewHead(ctx context.Context, ch chan<- *types.Header) (ethereum.Subscription, error)
SubscribeNewHead mocks base method.
func (*MockClient) SuggestGasPrice ¶
SuggestGasPrice mocks base method.
func (*MockClient) SuggestGasTipCap ¶
SuggestGasTipCap mocks base method.
func (*MockClient) SyncProgress ¶
func (m *MockClient) SyncProgress(ctx context.Context) (*ethereum.SyncProgress, error)
SyncProgress mocks base method.
func (*MockClient) TransactionByHash ¶
func (m *MockClient) TransactionByHash(ctx context.Context, txHash common.Hash) (*types.Transaction, bool, error)
TransactionByHash mocks base method.
func (*MockClient) TransactionCount ¶
TransactionCount mocks base method.
func (*MockClient) TransactionInBlock ¶
func (m *MockClient) TransactionInBlock(ctx context.Context, blockHash common.Hash, index uint) (*types.Transaction, error)
TransactionInBlock mocks base method.
func (*MockClient) TransactionReceipt ¶
func (m *MockClient) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)
TransactionReceipt mocks base method.
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient.
func (*MockClientMockRecorder) Address ¶
func (mr *MockClientMockRecorder) Address() *gomock.Call
Address indicates an expected call of Address.
func (*MockClientMockRecorder) BalanceAt ¶
func (mr *MockClientMockRecorder) BalanceAt(ctx, account, blockNumber any) *gomock.Call
BalanceAt indicates an expected call of BalanceAt.
func (*MockClientMockRecorder) BlockByHash ¶
func (mr *MockClientMockRecorder) BlockByHash(ctx, hash any) *gomock.Call
BlockByHash indicates an expected call of BlockByHash.
func (*MockClientMockRecorder) BlockByNumber ¶
func (mr *MockClientMockRecorder) BlockByNumber(ctx, number any) *gomock.Call
BlockByNumber indicates an expected call of BlockByNumber.
func (*MockClientMockRecorder) BlockNumber ¶
func (mr *MockClientMockRecorder) BlockNumber(ctx any) *gomock.Call
BlockNumber indicates an expected call of BlockNumber.
func (*MockClientMockRecorder) CallContract ¶
func (mr *MockClientMockRecorder) CallContract(ctx, call, blockNumber any) *gomock.Call
CallContract indicates an expected call of CallContract.
func (*MockClientMockRecorder) ChainID ¶
func (mr *MockClientMockRecorder) ChainID(ctx any) *gomock.Call
ChainID indicates an expected call of ChainID.
func (*MockClientMockRecorder) Close ¶
func (mr *MockClientMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockClientMockRecorder) CodeAt ¶
func (mr *MockClientMockRecorder) CodeAt(ctx, account, blockNumber any) *gomock.Call
CodeAt indicates an expected call of CodeAt.
func (*MockClientMockRecorder) EstimateGas ¶
func (mr *MockClientMockRecorder) EstimateGas(ctx, call any) *gomock.Call
EstimateGas indicates an expected call of EstimateGas.
func (*MockClientMockRecorder) EtherBalanceAt ¶
func (mr *MockClientMockRecorder) EtherBalanceAt(ctx, addr any) *gomock.Call
EtherBalanceAt indicates an expected call of EtherBalanceAt.
func (*MockClientMockRecorder) FilterLogs ¶
func (mr *MockClientMockRecorder) FilterLogs(ctx, q any) *gomock.Call
FilterLogs indicates an expected call of FilterLogs.
func (*MockClientMockRecorder) HeaderByHash ¶
func (mr *MockClientMockRecorder) HeaderByHash(ctx, hash any) *gomock.Call
HeaderByHash indicates an expected call of HeaderByHash.
func (*MockClientMockRecorder) HeaderByNumber ¶
func (mr *MockClientMockRecorder) HeaderByNumber(ctx, number any) *gomock.Call
HeaderByNumber indicates an expected call of HeaderByNumber.
func (*MockClientMockRecorder) HeaderByType ¶
func (mr *MockClientMockRecorder) HeaderByType(ctx, typ any) *gomock.Call
HeaderByType indicates an expected call of HeaderByType.
func (*MockClientMockRecorder) NonceAt ¶
func (mr *MockClientMockRecorder) NonceAt(ctx, account, blockNumber any) *gomock.Call
NonceAt indicates an expected call of NonceAt.
func (*MockClientMockRecorder) PeerCount ¶
func (mr *MockClientMockRecorder) PeerCount(ctx any) *gomock.Call
PeerCount indicates an expected call of PeerCount.
func (*MockClientMockRecorder) PendingBalanceAt ¶
func (mr *MockClientMockRecorder) PendingBalanceAt(ctx, account any) *gomock.Call
PendingBalanceAt indicates an expected call of PendingBalanceAt.
func (*MockClientMockRecorder) PendingCodeAt ¶
func (mr *MockClientMockRecorder) PendingCodeAt(ctx, account any) *gomock.Call
PendingCodeAt indicates an expected call of PendingCodeAt.
func (*MockClientMockRecorder) PendingNonceAt ¶
func (mr *MockClientMockRecorder) PendingNonceAt(ctx, account any) *gomock.Call
PendingNonceAt indicates an expected call of PendingNonceAt.
func (*MockClientMockRecorder) PendingStorageAt ¶
func (mr *MockClientMockRecorder) PendingStorageAt(ctx, account, key any) *gomock.Call
PendingStorageAt indicates an expected call of PendingStorageAt.
func (*MockClientMockRecorder) PendingTransactionCount ¶
func (mr *MockClientMockRecorder) PendingTransactionCount(ctx any) *gomock.Call
PendingTransactionCount indicates an expected call of PendingTransactionCount.
func (*MockClientMockRecorder) SendTransaction ¶
func (mr *MockClientMockRecorder) SendTransaction(ctx, tx any) *gomock.Call
SendTransaction indicates an expected call of SendTransaction.
func (*MockClientMockRecorder) SetHead ¶
func (mr *MockClientMockRecorder) SetHead(ctx, height any) *gomock.Call
SetHead indicates an expected call of SetHead.
func (*MockClientMockRecorder) StorageAt ¶
func (mr *MockClientMockRecorder) StorageAt(ctx, account, key, blockNumber any) *gomock.Call
StorageAt indicates an expected call of StorageAt.
func (*MockClientMockRecorder) SubscribeFilterLogs ¶
func (mr *MockClientMockRecorder) SubscribeFilterLogs(ctx, q, ch any) *gomock.Call
SubscribeFilterLogs indicates an expected call of SubscribeFilterLogs.
func (*MockClientMockRecorder) SubscribeNewHead ¶
func (mr *MockClientMockRecorder) SubscribeNewHead(ctx, ch any) *gomock.Call
SubscribeNewHead indicates an expected call of SubscribeNewHead.
func (*MockClientMockRecorder) SuggestGasPrice ¶
func (mr *MockClientMockRecorder) SuggestGasPrice(ctx any) *gomock.Call
SuggestGasPrice indicates an expected call of SuggestGasPrice.
func (*MockClientMockRecorder) SuggestGasTipCap ¶
func (mr *MockClientMockRecorder) SuggestGasTipCap(ctx 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(ctx, txHash any) *gomock.Call
TransactionByHash indicates an expected call of TransactionByHash.
func (*MockClientMockRecorder) TransactionCount ¶
func (mr *MockClientMockRecorder) TransactionCount(ctx, blockHash any) *gomock.Call
TransactionCount indicates an expected call of TransactionCount.
func (*MockClientMockRecorder) TransactionInBlock ¶
func (mr *MockClientMockRecorder) TransactionInBlock(ctx, blockHash, index any) *gomock.Call
TransactionInBlock indicates an expected call of TransactionInBlock.
func (*MockClientMockRecorder) TransactionReceipt ¶
func (mr *MockClientMockRecorder) TransactionReceipt(ctx, txHash any) *gomock.Call
TransactionReceipt indicates an expected call of TransactionReceipt.