Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: internal/platform/blockchain/client.go
Generated by this command:
mockgen -source=internal/platform/blockchain/client.go -destination=internal/platform/blockchain/mock/client.go -package=mock
Package mock is a generated GoMock package.
Index ¶
- type MockEthClient
- func (m *MockEthClient) BlockByHash(ctx context.Context, hash common.Hash) (*types.Block, error)
- func (m *MockEthClient) BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error)
- func (m *MockEthClient) BlockNumber(ctx context.Context) (uint64, error)
- func (m *MockEthClient) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
- func (m *MockEthClient) ChainID(ctx context.Context) (*big.Int, error)
- func (m *MockEthClient) Close()
- func (m *MockEthClient) CodeAt(ctx context.Context, contract common.Address, blockNumber *big.Int) ([]byte, error)
- func (m *MockEthClient) EXPECT() *MockEthClientMockRecorder
- func (m *MockEthClient) EstimateGas(ctx context.Context, call ethereum.CallMsg) (uint64, error)
- func (m *MockEthClient) FilterLogs(ctx context.Context, q ethereum.FilterQuery) ([]types.Log, error)
- func (m *MockEthClient) HeaderByHash(ctx context.Context, hash common.Hash) (*types.Header, error)
- func (m *MockEthClient) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
- func (m *MockEthClient) PendingCallContract(ctx context.Context, call ethereum.CallMsg) ([]byte, error)
- func (m *MockEthClient) PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error)
- func (m *MockEthClient) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)
- func (m *MockEthClient) SendTransaction(ctx context.Context, tx *types.Transaction) error
- func (m *MockEthClient) SubscribeFilterLogs(ctx context.Context, q ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)
- func (m *MockEthClient) SubscribeNewHead(ctx context.Context, ch chan<- *types.Header) (ethereum.Subscription, error)
- func (m *MockEthClient) SuggestGasPrice(ctx context.Context) (*big.Int, error)
- func (m *MockEthClient) SuggestGasTipCap(ctx context.Context) (*big.Int, error)
- func (m *MockEthClient) SyncProgress(ctx context.Context) (*ethereum.SyncProgress, error)
- func (m *MockEthClient) TransactionByHash(ctx context.Context, txHash common.Hash) (*types.Transaction, bool, error)
- func (m *MockEthClient) TransactionCount(ctx context.Context, blockHash common.Hash) (uint, error)
- func (m *MockEthClient) TransactionInBlock(ctx context.Context, blockHash common.Hash, index uint) (*types.Transaction, error)
- func (m *MockEthClient) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)
- type MockEthClientMockRecorder
- func (mr *MockEthClientMockRecorder) BlockByHash(ctx, hash any) *gomock.Call
- func (mr *MockEthClientMockRecorder) BlockByNumber(ctx, number any) *gomock.Call
- func (mr *MockEthClientMockRecorder) BlockNumber(ctx any) *gomock.Call
- func (mr *MockEthClientMockRecorder) CallContract(ctx, call, blockNumber any) *gomock.Call
- func (mr *MockEthClientMockRecorder) ChainID(ctx any) *gomock.Call
- func (mr *MockEthClientMockRecorder) Close() *gomock.Call
- func (mr *MockEthClientMockRecorder) CodeAt(ctx, contract, blockNumber any) *gomock.Call
- func (mr *MockEthClientMockRecorder) EstimateGas(ctx, call any) *gomock.Call
- func (mr *MockEthClientMockRecorder) FilterLogs(ctx, q any) *gomock.Call
- func (mr *MockEthClientMockRecorder) HeaderByHash(ctx, hash any) *gomock.Call
- func (mr *MockEthClientMockRecorder) HeaderByNumber(ctx, number any) *gomock.Call
- func (mr *MockEthClientMockRecorder) PendingCallContract(ctx, call any) *gomock.Call
- func (mr *MockEthClientMockRecorder) PendingCodeAt(ctx, account any) *gomock.Call
- func (mr *MockEthClientMockRecorder) PendingNonceAt(ctx, account any) *gomock.Call
- func (mr *MockEthClientMockRecorder) SendTransaction(ctx, tx any) *gomock.Call
- func (mr *MockEthClientMockRecorder) SubscribeFilterLogs(ctx, q, ch any) *gomock.Call
- func (mr *MockEthClientMockRecorder) SubscribeNewHead(ctx, ch any) *gomock.Call
- func (mr *MockEthClientMockRecorder) SuggestGasPrice(ctx any) *gomock.Call
- func (mr *MockEthClientMockRecorder) SuggestGasTipCap(ctx any) *gomock.Call
- func (mr *MockEthClientMockRecorder) SyncProgress(ctx any) *gomock.Call
- func (mr *MockEthClientMockRecorder) TransactionByHash(ctx, txHash any) *gomock.Call
- func (mr *MockEthClientMockRecorder) TransactionCount(ctx, blockHash any) *gomock.Call
- func (mr *MockEthClientMockRecorder) TransactionInBlock(ctx, blockHash, index any) *gomock.Call
- func (mr *MockEthClientMockRecorder) TransactionReceipt(ctx, txHash any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockEthClient ¶
type MockEthClient struct {
// contains filtered or unexported fields
}
MockEthClient is a mock of EthClient interface.
func NewMockEthClient ¶
func NewMockEthClient(ctrl *gomock.Controller) *MockEthClient
NewMockEthClient creates a new mock instance.
func (*MockEthClient) BlockByHash ¶
BlockByHash mocks base method.
func (*MockEthClient) BlockByNumber ¶
BlockByNumber mocks base method.
func (*MockEthClient) BlockNumber ¶
func (m *MockEthClient) BlockNumber(ctx context.Context) (uint64, error)
BlockNumber mocks base method.
func (*MockEthClient) CallContract ¶
func (m *MockEthClient) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
CallContract mocks base method.
func (*MockEthClient) CodeAt ¶
func (m *MockEthClient) CodeAt(ctx context.Context, contract common.Address, blockNumber *big.Int) ([]byte, error)
CodeAt mocks base method.
func (*MockEthClient) EXPECT ¶
func (m *MockEthClient) EXPECT() *MockEthClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockEthClient) EstimateGas ¶
EstimateGas mocks base method.
func (*MockEthClient) FilterLogs ¶
func (m *MockEthClient) FilterLogs(ctx context.Context, q ethereum.FilterQuery) ([]types.Log, error)
FilterLogs mocks base method.
func (*MockEthClient) HeaderByHash ¶
HeaderByHash mocks base method.
func (*MockEthClient) HeaderByNumber ¶
HeaderByNumber mocks base method.
func (*MockEthClient) PendingCallContract ¶
func (m *MockEthClient) PendingCallContract(ctx context.Context, call ethereum.CallMsg) ([]byte, error)
PendingCallContract mocks base method.
func (*MockEthClient) PendingCodeAt ¶
PendingCodeAt mocks base method.
func (*MockEthClient) PendingNonceAt ¶
PendingNonceAt mocks base method.
func (*MockEthClient) SendTransaction ¶
func (m *MockEthClient) SendTransaction(ctx context.Context, tx *types.Transaction) error
SendTransaction mocks base method.
func (*MockEthClient) SubscribeFilterLogs ¶
func (m *MockEthClient) SubscribeFilterLogs(ctx context.Context, q ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)
SubscribeFilterLogs mocks base method.
func (*MockEthClient) SubscribeNewHead ¶
func (m *MockEthClient) SubscribeNewHead(ctx context.Context, ch chan<- *types.Header) (ethereum.Subscription, error)
SubscribeNewHead mocks base method.
func (*MockEthClient) SuggestGasPrice ¶
SuggestGasPrice mocks base method.
func (*MockEthClient) SuggestGasTipCap ¶
SuggestGasTipCap mocks base method.
func (*MockEthClient) SyncProgress ¶
func (m *MockEthClient) SyncProgress(ctx context.Context) (*ethereum.SyncProgress, error)
SyncProgress mocks base method.
func (*MockEthClient) TransactionByHash ¶
func (m *MockEthClient) TransactionByHash(ctx context.Context, txHash common.Hash) (*types.Transaction, bool, error)
TransactionByHash mocks base method.
func (*MockEthClient) TransactionCount ¶
TransactionCount mocks base method.
func (*MockEthClient) TransactionInBlock ¶
func (m *MockEthClient) TransactionInBlock(ctx context.Context, blockHash common.Hash, index uint) (*types.Transaction, error)
TransactionInBlock mocks base method.
func (*MockEthClient) TransactionReceipt ¶
func (m *MockEthClient) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)
TransactionReceipt mocks base method.
type MockEthClientMockRecorder ¶
type MockEthClientMockRecorder struct {
// contains filtered or unexported fields
}
MockEthClientMockRecorder is the mock recorder for MockEthClient.
func (*MockEthClientMockRecorder) BlockByHash ¶
func (mr *MockEthClientMockRecorder) BlockByHash(ctx, hash any) *gomock.Call
BlockByHash indicates an expected call of BlockByHash.
func (*MockEthClientMockRecorder) BlockByNumber ¶
func (mr *MockEthClientMockRecorder) BlockByNumber(ctx, number any) *gomock.Call
BlockByNumber indicates an expected call of BlockByNumber.
func (*MockEthClientMockRecorder) BlockNumber ¶
func (mr *MockEthClientMockRecorder) BlockNumber(ctx any) *gomock.Call
BlockNumber indicates an expected call of BlockNumber.
func (*MockEthClientMockRecorder) CallContract ¶
func (mr *MockEthClientMockRecorder) CallContract(ctx, call, blockNumber any) *gomock.Call
CallContract indicates an expected call of CallContract.
func (*MockEthClientMockRecorder) ChainID ¶
func (mr *MockEthClientMockRecorder) ChainID(ctx any) *gomock.Call
ChainID indicates an expected call of ChainID.
func (*MockEthClientMockRecorder) Close ¶
func (mr *MockEthClientMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockEthClientMockRecorder) CodeAt ¶
func (mr *MockEthClientMockRecorder) CodeAt(ctx, contract, blockNumber any) *gomock.Call
CodeAt indicates an expected call of CodeAt.
func (*MockEthClientMockRecorder) EstimateGas ¶
func (mr *MockEthClientMockRecorder) EstimateGas(ctx, call any) *gomock.Call
EstimateGas indicates an expected call of EstimateGas.
func (*MockEthClientMockRecorder) FilterLogs ¶
func (mr *MockEthClientMockRecorder) FilterLogs(ctx, q any) *gomock.Call
FilterLogs indicates an expected call of FilterLogs.
func (*MockEthClientMockRecorder) HeaderByHash ¶
func (mr *MockEthClientMockRecorder) HeaderByHash(ctx, hash any) *gomock.Call
HeaderByHash indicates an expected call of HeaderByHash.
func (*MockEthClientMockRecorder) HeaderByNumber ¶
func (mr *MockEthClientMockRecorder) HeaderByNumber(ctx, number any) *gomock.Call
HeaderByNumber indicates an expected call of HeaderByNumber.
func (*MockEthClientMockRecorder) PendingCallContract ¶
func (mr *MockEthClientMockRecorder) PendingCallContract(ctx, call any) *gomock.Call
PendingCallContract indicates an expected call of PendingCallContract.
func (*MockEthClientMockRecorder) PendingCodeAt ¶
func (mr *MockEthClientMockRecorder) PendingCodeAt(ctx, account any) *gomock.Call
PendingCodeAt indicates an expected call of PendingCodeAt.
func (*MockEthClientMockRecorder) PendingNonceAt ¶
func (mr *MockEthClientMockRecorder) PendingNonceAt(ctx, account any) *gomock.Call
PendingNonceAt indicates an expected call of PendingNonceAt.
func (*MockEthClientMockRecorder) SendTransaction ¶
func (mr *MockEthClientMockRecorder) SendTransaction(ctx, tx any) *gomock.Call
SendTransaction indicates an expected call of SendTransaction.
func (*MockEthClientMockRecorder) SubscribeFilterLogs ¶
func (mr *MockEthClientMockRecorder) SubscribeFilterLogs(ctx, q, ch any) *gomock.Call
SubscribeFilterLogs indicates an expected call of SubscribeFilterLogs.
func (*MockEthClientMockRecorder) SubscribeNewHead ¶
func (mr *MockEthClientMockRecorder) SubscribeNewHead(ctx, ch any) *gomock.Call
SubscribeNewHead indicates an expected call of SubscribeNewHead.
func (*MockEthClientMockRecorder) SuggestGasPrice ¶
func (mr *MockEthClientMockRecorder) SuggestGasPrice(ctx any) *gomock.Call
SuggestGasPrice indicates an expected call of SuggestGasPrice.
func (*MockEthClientMockRecorder) SuggestGasTipCap ¶
func (mr *MockEthClientMockRecorder) SuggestGasTipCap(ctx any) *gomock.Call
SuggestGasTipCap indicates an expected call of SuggestGasTipCap.
func (*MockEthClientMockRecorder) SyncProgress ¶
func (mr *MockEthClientMockRecorder) SyncProgress(ctx any) *gomock.Call
SyncProgress indicates an expected call of SyncProgress.
func (*MockEthClientMockRecorder) TransactionByHash ¶
func (mr *MockEthClientMockRecorder) TransactionByHash(ctx, txHash any) *gomock.Call
TransactionByHash indicates an expected call of TransactionByHash.
func (*MockEthClientMockRecorder) TransactionCount ¶
func (mr *MockEthClientMockRecorder) TransactionCount(ctx, blockHash any) *gomock.Call
TransactionCount indicates an expected call of TransactionCount.
func (*MockEthClientMockRecorder) TransactionInBlock ¶
func (mr *MockEthClientMockRecorder) TransactionInBlock(ctx, blockHash, index any) *gomock.Call
TransactionInBlock indicates an expected call of TransactionInBlock.
func (*MockEthClientMockRecorder) TransactionReceipt ¶
func (mr *MockEthClientMockRecorder) TransactionReceipt(ctx, txHash any) *gomock.Call
TransactionReceipt indicates an expected call of TransactionReceipt.