Documentation
¶
Overview ¶
Package mock_bridge is a generated GoMock package.
Index ¶
- type MockBridge
- func (m *MockBridge) AvailableFor(params bridge.BridgeParams) (bool, error)
- func (m *MockBridge) BuildTransaction(sendArgs *bridge.TransactionBridge) (*types.Transaction, error)
- func (m *MockBridge) BuildTx(params bridge.BridgeParams) (*types.Transaction, error)
- func (m *MockBridge) CalculateAmountOut(params bridge.BridgeParams) (*big.Int, error)
- func (m *MockBridge) CalculateFees(params bridge.BridgeParams) (*big.Int, *big.Int, error)
- func (m *MockBridge) EXPECT() *MockBridgeMockRecorder
- func (m *MockBridge) EstimateGas(params bridge.BridgeParams) (uint64, error)
- func (m *MockBridge) GetContractAddress(params bridge.BridgeParams) (common.Address, error)
- func (m *MockBridge) Name() string
- func (m *MockBridge) PackTxInputData(params bridge.BridgeParams, contractType string) ([]byte, error)
- func (m *MockBridge) Send(sendArgs *bridge.TransactionBridge, verifiedAccount *account.SelectedExtKey) (types0.Hash, error)
- type MockBridgeMockRecorder
- func (mr *MockBridgeMockRecorder) AvailableFor(params interface{}) *gomock.Call
- func (mr *MockBridgeMockRecorder) BuildTransaction(sendArgs interface{}) *gomock.Call
- func (mr *MockBridgeMockRecorder) BuildTx(params interface{}) *gomock.Call
- func (mr *MockBridgeMockRecorder) CalculateAmountOut(params interface{}) *gomock.Call
- func (mr *MockBridgeMockRecorder) CalculateFees(params interface{}) *gomock.Call
- func (mr *MockBridgeMockRecorder) EstimateGas(params interface{}) *gomock.Call
- func (mr *MockBridgeMockRecorder) GetContractAddress(params interface{}) *gomock.Call
- func (mr *MockBridgeMockRecorder) Name() *gomock.Call
- func (mr *MockBridgeMockRecorder) PackTxInputData(params, contractType interface{}) *gomock.Call
- func (mr *MockBridgeMockRecorder) Send(sendArgs, verifiedAccount interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBridge ¶
type MockBridge struct {
// contains filtered or unexported fields
}
MockBridge is a mock of Bridge interface.
func NewMockBridge ¶
func NewMockBridge(ctrl *gomock.Controller) *MockBridge
NewMockBridge creates a new mock instance.
func (*MockBridge) AvailableFor ¶
func (m *MockBridge) AvailableFor(params bridge.BridgeParams) (bool, error)
AvailableFor mocks base method.
func (*MockBridge) BuildTransaction ¶
func (m *MockBridge) BuildTransaction(sendArgs *bridge.TransactionBridge) (*types.Transaction, error)
BuildTransaction mocks base method.
func (*MockBridge) BuildTx ¶
func (m *MockBridge) BuildTx(params bridge.BridgeParams) (*types.Transaction, error)
BuildTx mocks base method.
func (*MockBridge) CalculateAmountOut ¶
func (m *MockBridge) CalculateAmountOut(params bridge.BridgeParams) (*big.Int, error)
CalculateAmountOut mocks base method.
func (*MockBridge) CalculateFees ¶
func (m *MockBridge) CalculateFees(params bridge.BridgeParams) (*big.Int, *big.Int, error)
CalculateFees mocks base method.
func (*MockBridge) EXPECT ¶
func (m *MockBridge) EXPECT() *MockBridgeMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBridge) EstimateGas ¶
func (m *MockBridge) EstimateGas(params bridge.BridgeParams) (uint64, error)
EstimateGas mocks base method.
func (*MockBridge) GetContractAddress ¶
func (m *MockBridge) GetContractAddress(params bridge.BridgeParams) (common.Address, error)
GetContractAddress mocks base method.
func (*MockBridge) PackTxInputData ¶
func (m *MockBridge) PackTxInputData(params bridge.BridgeParams, contractType string) ([]byte, error)
PackTxInputData mocks base method.
func (*MockBridge) Send ¶
func (m *MockBridge) Send(sendArgs *bridge.TransactionBridge, verifiedAccount *account.SelectedExtKey) (types0.Hash, error)
Send mocks base method.
type MockBridgeMockRecorder ¶
type MockBridgeMockRecorder struct {
// contains filtered or unexported fields
}
MockBridgeMockRecorder is the mock recorder for MockBridge.
func (*MockBridgeMockRecorder) AvailableFor ¶
func (mr *MockBridgeMockRecorder) AvailableFor(params interface{}) *gomock.Call
AvailableFor indicates an expected call of AvailableFor.
func (*MockBridgeMockRecorder) BuildTransaction ¶
func (mr *MockBridgeMockRecorder) BuildTransaction(sendArgs interface{}) *gomock.Call
BuildTransaction indicates an expected call of BuildTransaction.
func (*MockBridgeMockRecorder) BuildTx ¶
func (mr *MockBridgeMockRecorder) BuildTx(params interface{}) *gomock.Call
BuildTx indicates an expected call of BuildTx.
func (*MockBridgeMockRecorder) CalculateAmountOut ¶
func (mr *MockBridgeMockRecorder) CalculateAmountOut(params interface{}) *gomock.Call
CalculateAmountOut indicates an expected call of CalculateAmountOut.
func (*MockBridgeMockRecorder) CalculateFees ¶
func (mr *MockBridgeMockRecorder) CalculateFees(params interface{}) *gomock.Call
CalculateFees indicates an expected call of CalculateFees.
func (*MockBridgeMockRecorder) EstimateGas ¶
func (mr *MockBridgeMockRecorder) EstimateGas(params interface{}) *gomock.Call
EstimateGas indicates an expected call of EstimateGas.
func (*MockBridgeMockRecorder) GetContractAddress ¶
func (mr *MockBridgeMockRecorder) GetContractAddress(params interface{}) *gomock.Call
GetContractAddress indicates an expected call of GetContractAddress.
func (*MockBridgeMockRecorder) Name ¶
func (mr *MockBridgeMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockBridgeMockRecorder) PackTxInputData ¶
func (mr *MockBridgeMockRecorder) PackTxInputData(params, contractType interface{}) *gomock.Call
PackTxInputData indicates an expected call of PackTxInputData.
func (*MockBridgeMockRecorder) Send ¶
func (mr *MockBridgeMockRecorder) Send(sendArgs, verifiedAccount interface{}) *gomock.Call
Send indicates an expected call of Send.