Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockETHClient
- func (m *MockETHClient) BlockByHash(arg0 context.Context, arg1 common.Hash) (*types.Block, error)
- func (m *MockETHClient) BlockByNumber(arg0 context.Context, arg1 *big.Int) (*types.Block, error)
- func (m *MockETHClient) CallContract(arg0 context.Context, arg1 ethereum.CallMsg, arg2 *big.Int) ([]byte, error)
- func (m *MockETHClient) CodeAt(arg0 context.Context, arg1 common.Address, arg2 *big.Int) ([]byte, error)
- func (m *MockETHClient) CollateralBridgeAddress() common.Address
- func (m *MockETHClient) ConfirmationsRequired() uint64
- func (m *MockETHClient) CurrentHeight(arg0 context.Context) (uint64, error)
- func (m *MockETHClient) EXPECT() *MockETHClientMockRecorder
- func (m *MockETHClient) EstimateGas(arg0 context.Context, arg1 ethereum.CallMsg) (uint64, error)
- func (m *MockETHClient) FilterLogs(arg0 context.Context, arg1 ethereum.FilterQuery) ([]types.Log, error)
- func (m *MockETHClient) HeaderByHash(arg0 context.Context, arg1 common.Hash) (*types.Header, error)
- func (m *MockETHClient) HeaderByNumber(arg0 context.Context, arg1 *big.Int) (*types.Header, error)
- func (m *MockETHClient) PendingCodeAt(arg0 context.Context, arg1 common.Address) ([]byte, error)
- func (m *MockETHClient) PendingNonceAt(arg0 context.Context, arg1 common.Address) (uint64, error)
- func (m *MockETHClient) SendTransaction(arg0 context.Context, arg1 *types.Transaction) error
- func (m *MockETHClient) SubscribeFilterLogs(arg0 context.Context, arg1 ethereum.FilterQuery, arg2 chan<- types.Log) (ethereum.Subscription, error)
- func (m *MockETHClient) SubscribeNewHead(arg0 context.Context, arg1 chan<- *types.Header) (ethereum.Subscription, error)
- func (m *MockETHClient) SuggestGasPrice(arg0 context.Context) (*big.Int, error)
- func (m *MockETHClient) SuggestGasTipCap(arg0 context.Context) (*big.Int, error)
- func (m *MockETHClient) TransactionCount(arg0 context.Context, arg1 common.Hash) (uint, error)
- func (m *MockETHClient) TransactionInBlock(arg0 context.Context, arg1 common.Hash, arg2 uint) (*types.Transaction, error)
- type MockETHClientMockRecorder
- func (mr *MockETHClientMockRecorder) BlockByHash(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockETHClientMockRecorder) BlockByNumber(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockETHClientMockRecorder) CallContract(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockETHClientMockRecorder) CodeAt(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockETHClientMockRecorder) CollateralBridgeAddress() *gomock.Call
- func (mr *MockETHClientMockRecorder) ConfirmationsRequired() *gomock.Call
- func (mr *MockETHClientMockRecorder) CurrentHeight(arg0 interface{}) *gomock.Call
- func (mr *MockETHClientMockRecorder) EstimateGas(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockETHClientMockRecorder) FilterLogs(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockETHClientMockRecorder) HeaderByHash(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockETHClientMockRecorder) HeaderByNumber(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockETHClientMockRecorder) PendingCodeAt(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockETHClientMockRecorder) PendingNonceAt(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockETHClientMockRecorder) SendTransaction(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockETHClientMockRecorder) SubscribeFilterLogs(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockETHClientMockRecorder) SubscribeNewHead(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockETHClientMockRecorder) SuggestGasPrice(arg0 interface{}) *gomock.Call
- func (mr *MockETHClientMockRecorder) SuggestGasTipCap(arg0 interface{}) *gomock.Call
- func (mr *MockETHClientMockRecorder) TransactionCount(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockETHClientMockRecorder) TransactionInBlock(arg0, arg1, arg2 interface{}) *gomock.Call
- type MockEthConfirmations
- type MockEthConfirmationsMockRecorder
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 ¶ added in v0.73.0
BlockByHash mocks base method.
func (*MockETHClient) BlockByNumber ¶ added in v0.73.0
BlockByNumber mocks base method.
func (*MockETHClient) CallContract ¶
func (m *MockETHClient) CallContract(arg0 context.Context, arg1 ethereum.CallMsg, arg2 *big.Int) ([]byte, error)
CallContract mocks base method.
func (*MockETHClient) CodeAt ¶
func (m *MockETHClient) CodeAt(arg0 context.Context, arg1 common.Address, arg2 *big.Int) ([]byte, error)
CodeAt mocks base method.
func (*MockETHClient) CollateralBridgeAddress ¶
func (m *MockETHClient) CollateralBridgeAddress() common.Address
CollateralBridgeAddress mocks base method.
func (*MockETHClient) ConfirmationsRequired ¶
func (m *MockETHClient) ConfirmationsRequired() uint64
ConfirmationsRequired mocks base method.
func (*MockETHClient) CurrentHeight ¶
func (m *MockETHClient) CurrentHeight(arg0 context.Context) (uint64, error)
CurrentHeight 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(arg0 context.Context, arg1 ethereum.FilterQuery) ([]types.Log, error)
FilterLogs mocks base method.
func (*MockETHClient) HeaderByHash ¶ added in v0.73.0
HeaderByHash mocks base method.
func (*MockETHClient) HeaderByNumber ¶
HeaderByNumber mocks base method.
func (*MockETHClient) PendingCodeAt ¶
PendingCodeAt mocks base method.
func (*MockETHClient) PendingNonceAt ¶
PendingNonceAt mocks base method.
func (*MockETHClient) SendTransaction ¶
func (m *MockETHClient) SendTransaction(arg0 context.Context, arg1 *types.Transaction) error
SendTransaction mocks base method.
func (*MockETHClient) SubscribeFilterLogs ¶
func (m *MockETHClient) SubscribeFilterLogs(arg0 context.Context, arg1 ethereum.FilterQuery, arg2 chan<- types.Log) (ethereum.Subscription, error)
SubscribeFilterLogs mocks base method.
func (*MockETHClient) SubscribeNewHead ¶ added in v0.73.0
func (m *MockETHClient) SubscribeNewHead(arg0 context.Context, arg1 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) TransactionCount ¶ added in v0.73.0
TransactionCount mocks base method.
func (*MockETHClient) TransactionInBlock ¶ added in v0.73.0
func (m *MockETHClient) TransactionInBlock(arg0 context.Context, arg1 common.Hash, arg2 uint) (*types.Transaction, error)
TransactionInBlock mocks base method.
type MockETHClientMockRecorder ¶
type MockETHClientMockRecorder struct {
// contains filtered or unexported fields
}
MockETHClientMockRecorder is the mock recorder for MockETHClient.
func (*MockETHClientMockRecorder) BlockByHash ¶ added in v0.73.0
func (mr *MockETHClientMockRecorder) BlockByHash(arg0, arg1 interface{}) *gomock.Call
BlockByHash indicates an expected call of BlockByHash.
func (*MockETHClientMockRecorder) BlockByNumber ¶ added in v0.73.0
func (mr *MockETHClientMockRecorder) BlockByNumber(arg0, arg1 interface{}) *gomock.Call
BlockByNumber indicates an expected call of BlockByNumber.
func (*MockETHClientMockRecorder) CallContract ¶
func (mr *MockETHClientMockRecorder) CallContract(arg0, arg1, arg2 interface{}) *gomock.Call
CallContract indicates an expected call of CallContract.
func (*MockETHClientMockRecorder) CodeAt ¶
func (mr *MockETHClientMockRecorder) CodeAt(arg0, arg1, arg2 interface{}) *gomock.Call
CodeAt indicates an expected call of CodeAt.
func (*MockETHClientMockRecorder) CollateralBridgeAddress ¶
func (mr *MockETHClientMockRecorder) CollateralBridgeAddress() *gomock.Call
CollateralBridgeAddress indicates an expected call of CollateralBridgeAddress.
func (*MockETHClientMockRecorder) ConfirmationsRequired ¶
func (mr *MockETHClientMockRecorder) ConfirmationsRequired() *gomock.Call
ConfirmationsRequired indicates an expected call of ConfirmationsRequired.
func (*MockETHClientMockRecorder) CurrentHeight ¶
func (mr *MockETHClientMockRecorder) CurrentHeight(arg0 interface{}) *gomock.Call
CurrentHeight indicates an expected call of CurrentHeight.
func (*MockETHClientMockRecorder) EstimateGas ¶
func (mr *MockETHClientMockRecorder) EstimateGas(arg0, arg1 interface{}) *gomock.Call
EstimateGas indicates an expected call of EstimateGas.
func (*MockETHClientMockRecorder) FilterLogs ¶
func (mr *MockETHClientMockRecorder) FilterLogs(arg0, arg1 interface{}) *gomock.Call
FilterLogs indicates an expected call of FilterLogs.
func (*MockETHClientMockRecorder) HeaderByHash ¶ added in v0.73.0
func (mr *MockETHClientMockRecorder) HeaderByHash(arg0, arg1 interface{}) *gomock.Call
HeaderByHash indicates an expected call of HeaderByHash.
func (*MockETHClientMockRecorder) HeaderByNumber ¶
func (mr *MockETHClientMockRecorder) HeaderByNumber(arg0, arg1 interface{}) *gomock.Call
HeaderByNumber indicates an expected call of HeaderByNumber.
func (*MockETHClientMockRecorder) PendingCodeAt ¶
func (mr *MockETHClientMockRecorder) PendingCodeAt(arg0, arg1 interface{}) *gomock.Call
PendingCodeAt indicates an expected call of PendingCodeAt.
func (*MockETHClientMockRecorder) PendingNonceAt ¶
func (mr *MockETHClientMockRecorder) PendingNonceAt(arg0, arg1 interface{}) *gomock.Call
PendingNonceAt indicates an expected call of PendingNonceAt.
func (*MockETHClientMockRecorder) SendTransaction ¶
func (mr *MockETHClientMockRecorder) SendTransaction(arg0, arg1 interface{}) *gomock.Call
SendTransaction indicates an expected call of SendTransaction.
func (*MockETHClientMockRecorder) SubscribeFilterLogs ¶
func (mr *MockETHClientMockRecorder) SubscribeFilterLogs(arg0, arg1, arg2 interface{}) *gomock.Call
SubscribeFilterLogs indicates an expected call of SubscribeFilterLogs.
func (*MockETHClientMockRecorder) SubscribeNewHead ¶ added in v0.73.0
func (mr *MockETHClientMockRecorder) SubscribeNewHead(arg0, arg1 interface{}) *gomock.Call
SubscribeNewHead indicates an expected call of SubscribeNewHead.
func (*MockETHClientMockRecorder) SuggestGasPrice ¶
func (mr *MockETHClientMockRecorder) SuggestGasPrice(arg0 interface{}) *gomock.Call
SuggestGasPrice indicates an expected call of SuggestGasPrice.
func (*MockETHClientMockRecorder) SuggestGasTipCap ¶
func (mr *MockETHClientMockRecorder) SuggestGasTipCap(arg0 interface{}) *gomock.Call
SuggestGasTipCap indicates an expected call of SuggestGasTipCap.
func (*MockETHClientMockRecorder) TransactionCount ¶ added in v0.73.0
func (mr *MockETHClientMockRecorder) TransactionCount(arg0, arg1 interface{}) *gomock.Call
TransactionCount indicates an expected call of TransactionCount.
func (*MockETHClientMockRecorder) TransactionInBlock ¶ added in v0.73.0
func (mr *MockETHClientMockRecorder) TransactionInBlock(arg0, arg1, arg2 interface{}) *gomock.Call
TransactionInBlock indicates an expected call of TransactionInBlock.
type MockEthConfirmations ¶
type MockEthConfirmations struct {
// contains filtered or unexported fields
}
MockEthConfirmations is a mock of EthConfirmations interface.
func NewMockEthConfirmations ¶
func NewMockEthConfirmations(ctrl *gomock.Controller) *MockEthConfirmations
NewMockEthConfirmations creates a new mock instance.
func (*MockEthConfirmations) Check ¶
func (m *MockEthConfirmations) Check(arg0 uint64) error
Check mocks base method.
func (*MockEthConfirmations) EXPECT ¶
func (m *MockEthConfirmations) EXPECT() *MockEthConfirmationsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockEthConfirmationsMockRecorder ¶
type MockEthConfirmationsMockRecorder struct {
// contains filtered or unexported fields
}
MockEthConfirmationsMockRecorder is the mock recorder for MockEthConfirmations.
func (*MockEthConfirmationsMockRecorder) Check ¶
func (mr *MockEthConfirmationsMockRecorder) Check(arg0 interface{}) *gomock.Call
Check indicates an expected call of Check.