Documentation ¶
Overview ¶
Package gravity is a generated GoMock package.
Index ¶
- type MockContract
- func (m *MockContract) Address() common.Address
- func (m *MockContract) EXPECT() *MockContractMockRecorder
- func (m *MockContract) EncodeTransactionBatch(arg0 context.Context, arg1 types.Valset, arg2 types.OutgoingTxBatch, ...) ([]byte, error)
- func (m *MockContract) EncodeValsetUpdate(arg0 context.Context, arg1, arg2 types.Valset, arg3 []types.MsgValsetConfirm) ([]byte, error)
- func (m *MockContract) EstimateGas(arg0 context.Context, arg1 common.Address, arg2 []byte) (uint64, *big.Int, error)
- func (m *MockContract) FromAddress() common.Address
- func (m *MockContract) GetERC20Decimals(arg0 context.Context, arg1, arg2 common.Address) (byte, error)
- func (m *MockContract) GetERC20Symbol(arg0 context.Context, arg1, arg2 common.Address) (string, error)
- func (m *MockContract) GetGravityID(arg0 context.Context, arg1 common.Address) (string, error)
- func (m *MockContract) GetPendingTxInputList() *gravity.PendingTxInputList
- func (m *MockContract) GetTxBatchNonce(arg0 context.Context, arg1, arg2 common.Address) (*big.Int, error)
- func (m *MockContract) GetValsetNonce(arg0 context.Context, arg1 common.Address) (*big.Int, error)
- func (m *MockContract) IsPendingTxInput(arg0 []byte, arg1 time.Duration) bool
- func (m *MockContract) Provider() provider.EVMProvider
- func (m *MockContract) SendTx(arg0 context.Context, arg1 common.Address, arg2 []byte, arg3 uint64, ...) (common.Hash, error)
- func (m *MockContract) SubscribeToPendingTxs(arg0 context.Context, arg1 string) error
- type MockContractMockRecorder
- func (mr *MockContractMockRecorder) Address() *gomock.Call
- func (mr *MockContractMockRecorder) EncodeTransactionBatch(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockContractMockRecorder) EncodeValsetUpdate(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockContractMockRecorder) EstimateGas(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockContractMockRecorder) FromAddress() *gomock.Call
- func (mr *MockContractMockRecorder) GetERC20Decimals(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockContractMockRecorder) GetERC20Symbol(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockContractMockRecorder) GetGravityID(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockContractMockRecorder) GetPendingTxInputList() *gomock.Call
- func (mr *MockContractMockRecorder) GetTxBatchNonce(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockContractMockRecorder) GetValsetNonce(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockContractMockRecorder) IsPendingTxInput(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockContractMockRecorder) Provider() *gomock.Call
- func (mr *MockContractMockRecorder) SendTx(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockContractMockRecorder) SubscribeToPendingTxs(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockContract ¶
type MockContract struct {
// contains filtered or unexported fields
}
MockContract is a mock of Contract interface.
func NewMockContract ¶
func NewMockContract(ctrl *gomock.Controller) *MockContract
NewMockContract creates a new mock instance.
func (*MockContract) Address ¶
func (m *MockContract) Address() common.Address
Address mocks base method.
func (*MockContract) EXPECT ¶
func (m *MockContract) EXPECT() *MockContractMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockContract) EncodeTransactionBatch ¶
func (m *MockContract) EncodeTransactionBatch(arg0 context.Context, arg1 types.Valset, arg2 types.OutgoingTxBatch, arg3 []types.MsgConfirmBatch) ([]byte, error)
EncodeTransactionBatch mocks base method.
func (*MockContract) EncodeValsetUpdate ¶
func (m *MockContract) EncodeValsetUpdate(arg0 context.Context, arg1, arg2 types.Valset, arg3 []types.MsgValsetConfirm) ([]byte, error)
EncodeValsetUpdate mocks base method.
func (*MockContract) EstimateGas ¶
func (m *MockContract) EstimateGas(arg0 context.Context, arg1 common.Address, arg2 []byte) (uint64, *big.Int, error)
EstimateGas mocks base method.
func (*MockContract) FromAddress ¶
func (m *MockContract) FromAddress() common.Address
FromAddress mocks base method.
func (*MockContract) GetERC20Decimals ¶
func (m *MockContract) GetERC20Decimals(arg0 context.Context, arg1, arg2 common.Address) (byte, error)
GetERC20Decimals mocks base method.
func (*MockContract) GetERC20Symbol ¶
func (m *MockContract) GetERC20Symbol(arg0 context.Context, arg1, arg2 common.Address) (string, error)
GetERC20Symbol mocks base method.
func (*MockContract) GetGravityID ¶
GetGravityID mocks base method.
func (*MockContract) GetPendingTxInputList ¶
func (m *MockContract) GetPendingTxInputList() *gravity.PendingTxInputList
GetPendingTxInputList mocks base method.
func (*MockContract) GetTxBatchNonce ¶
func (m *MockContract) GetTxBatchNonce(arg0 context.Context, arg1, arg2 common.Address) (*big.Int, error)
GetTxBatchNonce mocks base method.
func (*MockContract) GetValsetNonce ¶
GetValsetNonce mocks base method.
func (*MockContract) IsPendingTxInput ¶
func (m *MockContract) IsPendingTxInput(arg0 []byte, arg1 time.Duration) bool
IsPendingTxInput mocks base method.
func (*MockContract) Provider ¶
func (m *MockContract) Provider() provider.EVMProvider
Provider mocks base method.
func (*MockContract) SendTx ¶
func (m *MockContract) SendTx(arg0 context.Context, arg1 common.Address, arg2 []byte, arg3 uint64, arg4 *big.Int) (common.Hash, error)
SendTx mocks base method.
func (*MockContract) SubscribeToPendingTxs ¶
func (m *MockContract) SubscribeToPendingTxs(arg0 context.Context, arg1 string) error
SubscribeToPendingTxs mocks base method.
type MockContractMockRecorder ¶
type MockContractMockRecorder struct {
// contains filtered or unexported fields
}
MockContractMockRecorder is the mock recorder for MockContract.
func (*MockContractMockRecorder) Address ¶
func (mr *MockContractMockRecorder) Address() *gomock.Call
Address indicates an expected call of Address.
func (*MockContractMockRecorder) EncodeTransactionBatch ¶
func (mr *MockContractMockRecorder) EncodeTransactionBatch(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
EncodeTransactionBatch indicates an expected call of EncodeTransactionBatch.
func (*MockContractMockRecorder) EncodeValsetUpdate ¶
func (mr *MockContractMockRecorder) EncodeValsetUpdate(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
EncodeValsetUpdate indicates an expected call of EncodeValsetUpdate.
func (*MockContractMockRecorder) EstimateGas ¶
func (mr *MockContractMockRecorder) EstimateGas(arg0, arg1, arg2 interface{}) *gomock.Call
EstimateGas indicates an expected call of EstimateGas.
func (*MockContractMockRecorder) FromAddress ¶
func (mr *MockContractMockRecorder) FromAddress() *gomock.Call
FromAddress indicates an expected call of FromAddress.
func (*MockContractMockRecorder) GetERC20Decimals ¶
func (mr *MockContractMockRecorder) GetERC20Decimals(arg0, arg1, arg2 interface{}) *gomock.Call
GetERC20Decimals indicates an expected call of GetERC20Decimals.
func (*MockContractMockRecorder) GetERC20Symbol ¶
func (mr *MockContractMockRecorder) GetERC20Symbol(arg0, arg1, arg2 interface{}) *gomock.Call
GetERC20Symbol indicates an expected call of GetERC20Symbol.
func (*MockContractMockRecorder) GetGravityID ¶
func (mr *MockContractMockRecorder) GetGravityID(arg0, arg1 interface{}) *gomock.Call
GetGravityID indicates an expected call of GetGravityID.
func (*MockContractMockRecorder) GetPendingTxInputList ¶
func (mr *MockContractMockRecorder) GetPendingTxInputList() *gomock.Call
GetPendingTxInputList indicates an expected call of GetPendingTxInputList.
func (*MockContractMockRecorder) GetTxBatchNonce ¶
func (mr *MockContractMockRecorder) GetTxBatchNonce(arg0, arg1, arg2 interface{}) *gomock.Call
GetTxBatchNonce indicates an expected call of GetTxBatchNonce.
func (*MockContractMockRecorder) GetValsetNonce ¶
func (mr *MockContractMockRecorder) GetValsetNonce(arg0, arg1 interface{}) *gomock.Call
GetValsetNonce indicates an expected call of GetValsetNonce.
func (*MockContractMockRecorder) IsPendingTxInput ¶
func (mr *MockContractMockRecorder) IsPendingTxInput(arg0, arg1 interface{}) *gomock.Call
IsPendingTxInput indicates an expected call of IsPendingTxInput.
func (*MockContractMockRecorder) Provider ¶
func (mr *MockContractMockRecorder) Provider() *gomock.Call
Provider indicates an expected call of Provider.
func (*MockContractMockRecorder) SendTx ¶
func (mr *MockContractMockRecorder) SendTx(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
SendTx indicates an expected call of SendTx.
func (*MockContractMockRecorder) SubscribeToPendingTxs ¶
func (mr *MockContractMockRecorder) SubscribeToPendingTxs(arg0, arg1 interface{}) *gomock.Call
SubscribeToPendingTxs indicates an expected call of SubscribeToPendingTxs.