2024-05-26 08:31:13 +00:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
|
|
|
// Source: services/wallet/bridge/bridge.go
|
|
|
|
|
|
|
|
// Package mock_bridge is a generated GoMock package.
|
|
|
|
package mock_bridge
|
|
|
|
|
|
|
|
import (
|
|
|
|
big "math/big"
|
|
|
|
reflect "reflect"
|
|
|
|
|
|
|
|
common "github.com/ethereum/go-ethereum/common"
|
|
|
|
types "github.com/ethereum/go-ethereum/core/types"
|
2024-06-04 12:20:56 +00:00
|
|
|
gomock "github.com/golang/mock/gomock"
|
2024-05-26 08:31:13 +00:00
|
|
|
account "github.com/status-im/status-go/account"
|
|
|
|
types0 "github.com/status-im/status-go/eth-node/types"
|
|
|
|
bridge "github.com/status-im/status-go/services/wallet/bridge"
|
|
|
|
)
|
|
|
|
|
|
|
|
// MockBridge is a mock of Bridge interface.
|
|
|
|
type MockBridge struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockBridgeMockRecorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// MockBridgeMockRecorder is the mock recorder for MockBridge.
|
|
|
|
type MockBridgeMockRecorder struct {
|
|
|
|
mock *MockBridge
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewMockBridge creates a new mock instance.
|
|
|
|
func NewMockBridge(ctrl *gomock.Controller) *MockBridge {
|
|
|
|
mock := &MockBridge{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockBridgeMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
|
|
func (m *MockBridge) EXPECT() *MockBridgeMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// AvailableFor mocks base method.
|
2024-06-05 07:56:02 +00:00
|
|
|
func (m *MockBridge) AvailableFor(params bridge.BridgeParams) (bool, error) {
|
2024-05-26 08:31:13 +00:00
|
|
|
m.ctrl.T.Helper()
|
2024-06-05 07:56:02 +00:00
|
|
|
ret := m.ctrl.Call(m, "AvailableFor", params)
|
2024-05-26 08:31:13 +00:00
|
|
|
ret0, _ := ret[0].(bool)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// AvailableFor indicates an expected call of AvailableFor.
|
2024-06-05 07:56:02 +00:00
|
|
|
func (mr *MockBridgeMockRecorder) AvailableFor(params interface{}) *gomock.Call {
|
2024-05-26 08:31:13 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2024-06-05 07:56:02 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AvailableFor", reflect.TypeOf((*MockBridge)(nil).AvailableFor), params)
|
2024-05-26 08:31:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// BuildTransaction mocks base method.
|
|
|
|
func (m *MockBridge) BuildTransaction(sendArgs *bridge.TransactionBridge) (*types.Transaction, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "BuildTransaction", sendArgs)
|
|
|
|
ret0, _ := ret[0].(*types.Transaction)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// BuildTransaction indicates an expected call of BuildTransaction.
|
|
|
|
func (mr *MockBridgeMockRecorder) BuildTransaction(sendArgs interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BuildTransaction", reflect.TypeOf((*MockBridge)(nil).BuildTransaction), sendArgs)
|
|
|
|
}
|
|
|
|
|
|
|
|
// BuildTx mocks base method.
|
2024-06-05 07:56:02 +00:00
|
|
|
func (m *MockBridge) BuildTx(params bridge.BridgeParams) (*types.Transaction, error) {
|
2024-05-26 08:31:13 +00:00
|
|
|
m.ctrl.T.Helper()
|
2024-06-05 07:56:02 +00:00
|
|
|
ret := m.ctrl.Call(m, "BuildTx", params)
|
2024-05-26 08:31:13 +00:00
|
|
|
ret0, _ := ret[0].(*types.Transaction)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// BuildTx indicates an expected call of BuildTx.
|
2024-06-05 07:56:02 +00:00
|
|
|
func (mr *MockBridgeMockRecorder) BuildTx(params interface{}) *gomock.Call {
|
2024-05-26 08:31:13 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2024-06-05 07:56:02 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BuildTx", reflect.TypeOf((*MockBridge)(nil).BuildTx), params)
|
2024-05-26 08:31:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// CalculateAmountOut mocks base method.
|
2024-06-05 07:56:02 +00:00
|
|
|
func (m *MockBridge) CalculateAmountOut(params bridge.BridgeParams) (*big.Int, error) {
|
2024-05-26 08:31:13 +00:00
|
|
|
m.ctrl.T.Helper()
|
2024-06-05 07:56:02 +00:00
|
|
|
ret := m.ctrl.Call(m, "CalculateAmountOut", params)
|
2024-05-26 08:31:13 +00:00
|
|
|
ret0, _ := ret[0].(*big.Int)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// CalculateAmountOut indicates an expected call of CalculateAmountOut.
|
2024-06-05 07:56:02 +00:00
|
|
|
func (mr *MockBridgeMockRecorder) CalculateAmountOut(params interface{}) *gomock.Call {
|
2024-05-26 08:31:13 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2024-06-05 07:56:02 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CalculateAmountOut", reflect.TypeOf((*MockBridge)(nil).CalculateAmountOut), params)
|
2024-05-26 08:31:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// CalculateFees mocks base method.
|
2024-06-05 07:56:02 +00:00
|
|
|
func (m *MockBridge) CalculateFees(params bridge.BridgeParams) (*big.Int, *big.Int, error) {
|
2024-05-26 08:31:13 +00:00
|
|
|
m.ctrl.T.Helper()
|
2024-06-05 07:56:02 +00:00
|
|
|
ret := m.ctrl.Call(m, "CalculateFees", params)
|
2024-05-26 08:31:13 +00:00
|
|
|
ret0, _ := ret[0].(*big.Int)
|
|
|
|
ret1, _ := ret[1].(*big.Int)
|
|
|
|
ret2, _ := ret[2].(error)
|
|
|
|
return ret0, ret1, ret2
|
|
|
|
}
|
|
|
|
|
|
|
|
// CalculateFees indicates an expected call of CalculateFees.
|
2024-06-05 07:56:02 +00:00
|
|
|
func (mr *MockBridgeMockRecorder) CalculateFees(params interface{}) *gomock.Call {
|
2024-05-26 08:31:13 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2024-06-05 07:56:02 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CalculateFees", reflect.TypeOf((*MockBridge)(nil).CalculateFees), params)
|
2024-05-26 08:31:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// EstimateGas mocks base method.
|
2024-06-05 07:56:02 +00:00
|
|
|
func (m *MockBridge) EstimateGas(params bridge.BridgeParams) (uint64, error) {
|
2024-05-26 08:31:13 +00:00
|
|
|
m.ctrl.T.Helper()
|
2024-06-05 07:56:02 +00:00
|
|
|
ret := m.ctrl.Call(m, "EstimateGas", params)
|
2024-05-26 08:31:13 +00:00
|
|
|
ret0, _ := ret[0].(uint64)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// EstimateGas indicates an expected call of EstimateGas.
|
2024-06-05 07:56:02 +00:00
|
|
|
func (mr *MockBridgeMockRecorder) EstimateGas(params interface{}) *gomock.Call {
|
2024-05-26 08:31:13 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2024-06-05 07:56:02 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EstimateGas", reflect.TypeOf((*MockBridge)(nil).EstimateGas), params)
|
2024-05-26 08:31:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// GetContractAddress mocks base method.
|
2024-06-05 07:56:02 +00:00
|
|
|
func (m *MockBridge) GetContractAddress(params bridge.BridgeParams) (common.Address, error) {
|
2024-05-26 08:31:13 +00:00
|
|
|
m.ctrl.T.Helper()
|
2024-06-05 07:56:02 +00:00
|
|
|
ret := m.ctrl.Call(m, "GetContractAddress", params)
|
2024-05-26 08:31:13 +00:00
|
|
|
ret0, _ := ret[0].(common.Address)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetContractAddress indicates an expected call of GetContractAddress.
|
2024-06-05 07:56:02 +00:00
|
|
|
func (mr *MockBridgeMockRecorder) GetContractAddress(params interface{}) *gomock.Call {
|
2024-05-26 08:31:13 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2024-06-05 07:56:02 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetContractAddress", reflect.TypeOf((*MockBridge)(nil).GetContractAddress), params)
|
2024-05-26 08:31:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Name mocks base method.
|
|
|
|
func (m *MockBridge) Name() string {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "Name")
|
|
|
|
ret0, _ := ret[0].(string)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// Name indicates an expected call of Name.
|
|
|
|
func (mr *MockBridgeMockRecorder) Name() *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockBridge)(nil).Name))
|
|
|
|
}
|
|
|
|
|
|
|
|
// PackTxInputData mocks base method.
|
2024-06-05 07:56:02 +00:00
|
|
|
func (m *MockBridge) PackTxInputData(params bridge.BridgeParams, contractType string) ([]byte, error) {
|
2024-05-26 08:31:13 +00:00
|
|
|
m.ctrl.T.Helper()
|
2024-06-05 07:56:02 +00:00
|
|
|
ret := m.ctrl.Call(m, "PackTxInputData", params, contractType)
|
2024-05-26 08:31:13 +00:00
|
|
|
ret0, _ := ret[0].([]byte)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// PackTxInputData indicates an expected call of PackTxInputData.
|
2024-06-05 07:56:02 +00:00
|
|
|
func (mr *MockBridgeMockRecorder) PackTxInputData(params, contractType interface{}) *gomock.Call {
|
2024-05-26 08:31:13 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2024-06-05 07:56:02 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PackTxInputData", reflect.TypeOf((*MockBridge)(nil).PackTxInputData), params, contractType)
|
2024-05-26 08:31:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Send mocks base method.
|
|
|
|
func (m *MockBridge) Send(sendArgs *bridge.TransactionBridge, verifiedAccount *account.SelectedExtKey) (types0.Hash, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "Send", sendArgs, verifiedAccount)
|
|
|
|
ret0, _ := ret[0].(types0.Hash)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// Send indicates an expected call of Send.
|
|
|
|
func (mr *MockBridgeMockRecorder) Send(sendArgs, verifiedAccount interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Send", reflect.TypeOf((*MockBridge)(nil).Send), sendArgs, verifiedAccount)
|
|
|
|
}
|