Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockClient
- 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) CodeAt(ctx context.Context, contract 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) FilterLogs(ctx context.Context, query 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) NetworkID(ctx context.Context) (*big.Int, error)
- func (m *MockClient) NonceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (uint64, error)
- func (m *MockClient) PendingBalanceAt(ctx context.Context, account common.Address) (*big.Int, error)
- func (m *MockClient) PendingCallContract(ctx context.Context, call ethereum.CallMsg) ([]byte, 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) StorageAt(ctx context.Context, account common.Address, key common.Hash, ...) ([]byte, error)
- func (m *MockClient) SubscribeFilterLogs(ctx context.Context, query 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) BalanceAt(ctx, account, blockNumber interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) BlockByHash(ctx, hash interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) BlockByNumber(ctx, number interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) BlockNumber(ctx interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) CallContract(ctx, call, blockNumber interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ChainID(ctx interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) CodeAt(ctx, contract, blockNumber interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) EstimateGas(ctx, call interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) FilterLogs(ctx, query interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) HeaderByHash(ctx, hash interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) HeaderByNumber(ctx, number interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) NetworkID(ctx interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) NonceAt(ctx, account, blockNumber interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) PendingBalanceAt(ctx, account interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) PendingCallContract(ctx, call interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) PendingCodeAt(ctx, account interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) PendingNonceAt(ctx, account interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) PendingStorageAt(ctx, account, key interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) PendingTransactionCount(ctx interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) SendTransaction(ctx, tx interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) StorageAt(ctx, account, key, blockNumber interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) SubscribeFilterLogs(ctx, query, ch interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) SubscribeNewHead(ctx, ch interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) SuggestGasPrice(ctx interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) SuggestGasTipCap(ctx interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) SyncProgress(ctx interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) TransactionByHash(ctx, txHash interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) TransactionCount(ctx, blockHash interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) TransactionInBlock(ctx, blockHash, index interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) TransactionReceipt(ctx, txHash interface{}) *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, contract 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) FilterLogs ¶
func (m *MockClient) FilterLogs(ctx context.Context, query 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) NonceAt ¶
func (m *MockClient) NonceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (uint64, error)
NonceAt 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) PendingCallContract ¶
func (m *MockClient) PendingCallContract(ctx context.Context, call ethereum.CallMsg) ([]byte, error)
PendingCallContract 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) 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, query 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) BalanceAt ¶
func (mr *MockClientMockRecorder) BalanceAt(ctx, account, blockNumber interface{}) *gomock.Call
BalanceAt indicates an expected call of BalanceAt.
func (*MockClientMockRecorder) BlockByHash ¶
func (mr *MockClientMockRecorder) BlockByHash(ctx, hash interface{}) *gomock.Call
BlockByHash indicates an expected call of BlockByHash.
func (*MockClientMockRecorder) BlockByNumber ¶
func (mr *MockClientMockRecorder) BlockByNumber(ctx, number interface{}) *gomock.Call
BlockByNumber indicates an expected call of BlockByNumber.
func (*MockClientMockRecorder) BlockNumber ¶
func (mr *MockClientMockRecorder) BlockNumber(ctx interface{}) *gomock.Call
BlockNumber indicates an expected call of BlockNumber.
func (*MockClientMockRecorder) CallContract ¶
func (mr *MockClientMockRecorder) CallContract(ctx, call, blockNumber interface{}) *gomock.Call
CallContract indicates an expected call of CallContract.
func (*MockClientMockRecorder) ChainID ¶
func (mr *MockClientMockRecorder) ChainID(ctx interface{}) *gomock.Call
ChainID indicates an expected call of ChainID.
func (*MockClientMockRecorder) CodeAt ¶
func (mr *MockClientMockRecorder) CodeAt(ctx, contract, blockNumber interface{}) *gomock.Call
CodeAt indicates an expected call of CodeAt.
func (*MockClientMockRecorder) EstimateGas ¶
func (mr *MockClientMockRecorder) EstimateGas(ctx, call interface{}) *gomock.Call
EstimateGas indicates an expected call of EstimateGas.
func (*MockClientMockRecorder) FilterLogs ¶
func (mr *MockClientMockRecorder) FilterLogs(ctx, query interface{}) *gomock.Call
FilterLogs indicates an expected call of FilterLogs.
func (*MockClientMockRecorder) HeaderByHash ¶
func (mr *MockClientMockRecorder) HeaderByHash(ctx, hash interface{}) *gomock.Call
HeaderByHash indicates an expected call of HeaderByHash.
func (*MockClientMockRecorder) HeaderByNumber ¶
func (mr *MockClientMockRecorder) HeaderByNumber(ctx, number interface{}) *gomock.Call
HeaderByNumber indicates an expected call of HeaderByNumber.
func (*MockClientMockRecorder) NetworkID ¶
func (mr *MockClientMockRecorder) NetworkID(ctx interface{}) *gomock.Call
NetworkID indicates an expected call of NetworkID.
func (*MockClientMockRecorder) NonceAt ¶
func (mr *MockClientMockRecorder) NonceAt(ctx, account, blockNumber interface{}) *gomock.Call
NonceAt indicates an expected call of NonceAt.
func (*MockClientMockRecorder) PendingBalanceAt ¶
func (mr *MockClientMockRecorder) PendingBalanceAt(ctx, account interface{}) *gomock.Call
PendingBalanceAt indicates an expected call of PendingBalanceAt.
func (*MockClientMockRecorder) PendingCallContract ¶
func (mr *MockClientMockRecorder) PendingCallContract(ctx, call interface{}) *gomock.Call
PendingCallContract indicates an expected call of PendingCallContract.
func (*MockClientMockRecorder) PendingCodeAt ¶
func (mr *MockClientMockRecorder) PendingCodeAt(ctx, account interface{}) *gomock.Call
PendingCodeAt indicates an expected call of PendingCodeAt.
func (*MockClientMockRecorder) PendingNonceAt ¶
func (mr *MockClientMockRecorder) PendingNonceAt(ctx, account interface{}) *gomock.Call
PendingNonceAt indicates an expected call of PendingNonceAt.
func (*MockClientMockRecorder) PendingStorageAt ¶
func (mr *MockClientMockRecorder) PendingStorageAt(ctx, account, key interface{}) *gomock.Call
PendingStorageAt indicates an expected call of PendingStorageAt.
func (*MockClientMockRecorder) PendingTransactionCount ¶
func (mr *MockClientMockRecorder) PendingTransactionCount(ctx interface{}) *gomock.Call
PendingTransactionCount indicates an expected call of PendingTransactionCount.
func (*MockClientMockRecorder) SendTransaction ¶
func (mr *MockClientMockRecorder) SendTransaction(ctx, tx interface{}) *gomock.Call
SendTransaction indicates an expected call of SendTransaction.
func (*MockClientMockRecorder) StorageAt ¶
func (mr *MockClientMockRecorder) StorageAt(ctx, account, key, blockNumber interface{}) *gomock.Call
StorageAt indicates an expected call of StorageAt.
func (*MockClientMockRecorder) SubscribeFilterLogs ¶
func (mr *MockClientMockRecorder) SubscribeFilterLogs(ctx, query, ch interface{}) *gomock.Call
SubscribeFilterLogs indicates an expected call of SubscribeFilterLogs.
func (*MockClientMockRecorder) SubscribeNewHead ¶
func (mr *MockClientMockRecorder) SubscribeNewHead(ctx, ch interface{}) *gomock.Call
SubscribeNewHead indicates an expected call of SubscribeNewHead.
func (*MockClientMockRecorder) SuggestGasPrice ¶
func (mr *MockClientMockRecorder) SuggestGasPrice(ctx interface{}) *gomock.Call
SuggestGasPrice indicates an expected call of SuggestGasPrice.
func (*MockClientMockRecorder) SuggestGasTipCap ¶
func (mr *MockClientMockRecorder) SuggestGasTipCap(ctx interface{}) *gomock.Call
SuggestGasTipCap indicates an expected call of SuggestGasTipCap.
func (*MockClientMockRecorder) SyncProgress ¶
func (mr *MockClientMockRecorder) SyncProgress(ctx interface{}) *gomock.Call
SyncProgress indicates an expected call of SyncProgress.
func (*MockClientMockRecorder) TransactionByHash ¶
func (mr *MockClientMockRecorder) TransactionByHash(ctx, txHash interface{}) *gomock.Call
TransactionByHash indicates an expected call of TransactionByHash.
func (*MockClientMockRecorder) TransactionCount ¶
func (mr *MockClientMockRecorder) TransactionCount(ctx, blockHash interface{}) *gomock.Call
TransactionCount indicates an expected call of TransactionCount.
func (*MockClientMockRecorder) TransactionInBlock ¶
func (mr *MockClientMockRecorder) TransactionInBlock(ctx, blockHash, index interface{}) *gomock.Call
TransactionInBlock indicates an expected call of TransactionInBlock.
func (*MockClientMockRecorder) TransactionReceipt ¶
func (mr *MockClientMockRecorder) TransactionReceipt(ctx, txHash interface{}) *gomock.Call
TransactionReceipt indicates an expected call of TransactionReceipt.