Documentation ¶
Overview ¶
Package mock_executor is a generated GoMock package.
Index ¶
- type MockBridgeContract
- func (m *MockBridgeContract) EXPECT() *MockBridgeContractMockRecorder
- func (m *MockBridgeContract) GetThreshold() (byte, error)
- func (m *MockBridgeContract) IsProposalVotedBy(arg0 common.Address, arg1 *proposal.Proposal) (bool, error)
- func (m *MockBridgeContract) ProposalStatus(arg0 *proposal.Proposal) (message.ProposalStatus, error)
- func (m *MockBridgeContract) SimulateVoteProposal(arg0 *proposal.Proposal) error
- func (m *MockBridgeContract) VoteProposal(arg0 *proposal.Proposal, arg1 transactor.TransactOptions) (*common.Hash, error)
- type MockBridgeContractMockRecorder
- func (mr *MockBridgeContractMockRecorder) GetThreshold() *gomock.Call
- func (mr *MockBridgeContractMockRecorder) IsProposalVotedBy(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBridgeContractMockRecorder) ProposalStatus(arg0 interface{}) *gomock.Call
- func (mr *MockBridgeContractMockRecorder) SimulateVoteProposal(arg0 interface{}) *gomock.Call
- func (mr *MockBridgeContractMockRecorder) VoteProposal(arg0, arg1 interface{}) *gomock.Call
- type MockChainClient
- func (m *MockChainClient) CallContract(arg0 context.Context, arg1 map[string]interface{}, arg2 *big.Int) ([]byte, error)
- func (m *MockChainClient) CodeAt(arg0 context.Context, arg1 common.Address, arg2 *big.Int) ([]byte, error)
- func (m *MockChainClient) EXPECT() *MockChainClientMockRecorder
- func (m *MockChainClient) From() common.Address
- func (m *MockChainClient) GetTransactionByHash(arg0 common.Hash) (*types.Transaction, bool, error)
- func (m *MockChainClient) LockNonce()
- func (m *MockChainClient) RelayerAddress() common.Address
- func (m *MockChainClient) SignAndSendTransaction(arg0 context.Context, arg1 evmclient.CommonTransaction) (common.Hash, error)
- func (m *MockChainClient) SubscribePendingTransactions(arg0 context.Context, arg1 chan<- common.Hash) (*rpc.ClientSubscription, error)
- func (m *MockChainClient) TransactionByHash(arg0 context.Context, arg1 common.Hash) (*types.Transaction, bool, error)
- func (m *MockChainClient) TransactionReceipt(arg0 context.Context, arg1 common.Hash) (*types.Receipt, error)
- func (m *MockChainClient) UnlockNonce()
- func (m *MockChainClient) UnsafeIncreaseNonce() error
- func (m *MockChainClient) UnsafeNonce() (*big.Int, error)
- func (m *MockChainClient) WaitAndReturnTxReceipt(arg0 common.Hash) (*types.Receipt, error)
- type MockChainClientMockRecorder
- func (mr *MockChainClientMockRecorder) CallContract(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockChainClientMockRecorder) CodeAt(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockChainClientMockRecorder) From() *gomock.Call
- func (mr *MockChainClientMockRecorder) GetTransactionByHash(arg0 interface{}) *gomock.Call
- func (mr *MockChainClientMockRecorder) LockNonce() *gomock.Call
- func (mr *MockChainClientMockRecorder) RelayerAddress() *gomock.Call
- func (mr *MockChainClientMockRecorder) SignAndSendTransaction(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockChainClientMockRecorder) SubscribePendingTransactions(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockChainClientMockRecorder) TransactionByHash(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockChainClientMockRecorder) TransactionReceipt(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockChainClientMockRecorder) UnlockNonce() *gomock.Call
- func (mr *MockChainClientMockRecorder) UnsafeIncreaseNonce() *gomock.Call
- func (mr *MockChainClientMockRecorder) UnsafeNonce() *gomock.Call
- func (mr *MockChainClientMockRecorder) WaitAndReturnTxReceipt(arg0 interface{}) *gomock.Call
- type MockMessageHandler
- type MockMessageHandlerMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBridgeContract ¶
type MockBridgeContract struct {
// contains filtered or unexported fields
}
MockBridgeContract is a mock of BridgeContract interface.
func NewMockBridgeContract ¶
func NewMockBridgeContract(ctrl *gomock.Controller) *MockBridgeContract
NewMockBridgeContract creates a new mock instance.
func (*MockBridgeContract) EXPECT ¶
func (m *MockBridgeContract) EXPECT() *MockBridgeContractMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBridgeContract) GetThreshold ¶
func (m *MockBridgeContract) GetThreshold() (byte, error)
GetThreshold mocks base method.
func (*MockBridgeContract) IsProposalVotedBy ¶
func (m *MockBridgeContract) IsProposalVotedBy(arg0 common.Address, arg1 *proposal.Proposal) (bool, error)
IsProposalVotedBy mocks base method.
func (*MockBridgeContract) ProposalStatus ¶
func (m *MockBridgeContract) ProposalStatus(arg0 *proposal.Proposal) (message.ProposalStatus, error)
ProposalStatus mocks base method.
func (*MockBridgeContract) SimulateVoteProposal ¶
func (m *MockBridgeContract) SimulateVoteProposal(arg0 *proposal.Proposal) error
SimulateVoteProposal mocks base method.
func (*MockBridgeContract) VoteProposal ¶
func (m *MockBridgeContract) VoteProposal(arg0 *proposal.Proposal, arg1 transactor.TransactOptions) (*common.Hash, error)
VoteProposal mocks base method.
type MockBridgeContractMockRecorder ¶
type MockBridgeContractMockRecorder struct {
// contains filtered or unexported fields
}
MockBridgeContractMockRecorder is the mock recorder for MockBridgeContract.
func (*MockBridgeContractMockRecorder) GetThreshold ¶
func (mr *MockBridgeContractMockRecorder) GetThreshold() *gomock.Call
GetThreshold indicates an expected call of GetThreshold.
func (*MockBridgeContractMockRecorder) IsProposalVotedBy ¶
func (mr *MockBridgeContractMockRecorder) IsProposalVotedBy(arg0, arg1 interface{}) *gomock.Call
IsProposalVotedBy indicates an expected call of IsProposalVotedBy.
func (*MockBridgeContractMockRecorder) ProposalStatus ¶
func (mr *MockBridgeContractMockRecorder) ProposalStatus(arg0 interface{}) *gomock.Call
ProposalStatus indicates an expected call of ProposalStatus.
func (*MockBridgeContractMockRecorder) SimulateVoteProposal ¶
func (mr *MockBridgeContractMockRecorder) SimulateVoteProposal(arg0 interface{}) *gomock.Call
SimulateVoteProposal indicates an expected call of SimulateVoteProposal.
func (*MockBridgeContractMockRecorder) VoteProposal ¶
func (mr *MockBridgeContractMockRecorder) VoteProposal(arg0, arg1 interface{}) *gomock.Call
VoteProposal indicates an expected call of VoteProposal.
type MockChainClient ¶
type MockChainClient struct {
// contains filtered or unexported fields
}
MockChainClient is a mock of ChainClient interface.
func NewMockChainClient ¶
func NewMockChainClient(ctrl *gomock.Controller) *MockChainClient
NewMockChainClient creates a new mock instance.
func (*MockChainClient) CallContract ¶
func (m *MockChainClient) CallContract(arg0 context.Context, arg1 map[string]interface{}, arg2 *big.Int) ([]byte, error)
CallContract mocks base method.
func (*MockChainClient) CodeAt ¶
func (m *MockChainClient) CodeAt(arg0 context.Context, arg1 common.Address, arg2 *big.Int) ([]byte, error)
CodeAt mocks base method.
func (*MockChainClient) EXPECT ¶
func (m *MockChainClient) EXPECT() *MockChainClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockChainClient) From ¶
func (m *MockChainClient) From() common.Address
From mocks base method.
func (*MockChainClient) GetTransactionByHash ¶
func (m *MockChainClient) GetTransactionByHash(arg0 common.Hash) (*types.Transaction, bool, error)
GetTransactionByHash mocks base method.
func (*MockChainClient) LockNonce ¶
func (m *MockChainClient) LockNonce()
LockNonce mocks base method.
func (*MockChainClient) RelayerAddress ¶
func (m *MockChainClient) RelayerAddress() common.Address
RelayerAddress mocks base method.
func (*MockChainClient) SignAndSendTransaction ¶
func (m *MockChainClient) SignAndSendTransaction(arg0 context.Context, arg1 evmclient.CommonTransaction) (common.Hash, error)
SignAndSendTransaction mocks base method.
func (*MockChainClient) SubscribePendingTransactions ¶
func (m *MockChainClient) SubscribePendingTransactions(arg0 context.Context, arg1 chan<- common.Hash) (*rpc.ClientSubscription, error)
SubscribePendingTransactions mocks base method.
func (*MockChainClient) TransactionByHash ¶
func (m *MockChainClient) TransactionByHash(arg0 context.Context, arg1 common.Hash) (*types.Transaction, bool, error)
TransactionByHash mocks base method.
func (*MockChainClient) TransactionReceipt ¶ added in v1.3.0
func (m *MockChainClient) TransactionReceipt(arg0 context.Context, arg1 common.Hash) (*types.Receipt, error)
TransactionReceipt mocks base method.
func (*MockChainClient) UnlockNonce ¶
func (m *MockChainClient) UnlockNonce()
UnlockNonce mocks base method.
func (*MockChainClient) UnsafeIncreaseNonce ¶
func (m *MockChainClient) UnsafeIncreaseNonce() error
UnsafeIncreaseNonce mocks base method.
func (*MockChainClient) UnsafeNonce ¶
func (m *MockChainClient) UnsafeNonce() (*big.Int, error)
UnsafeNonce mocks base method.
func (*MockChainClient) WaitAndReturnTxReceipt ¶
WaitAndReturnTxReceipt mocks base method.
type MockChainClientMockRecorder ¶
type MockChainClientMockRecorder struct {
// contains filtered or unexported fields
}
MockChainClientMockRecorder is the mock recorder for MockChainClient.
func (*MockChainClientMockRecorder) CallContract ¶
func (mr *MockChainClientMockRecorder) CallContract(arg0, arg1, arg2 interface{}) *gomock.Call
CallContract indicates an expected call of CallContract.
func (*MockChainClientMockRecorder) CodeAt ¶
func (mr *MockChainClientMockRecorder) CodeAt(arg0, arg1, arg2 interface{}) *gomock.Call
CodeAt indicates an expected call of CodeAt.
func (*MockChainClientMockRecorder) From ¶
func (mr *MockChainClientMockRecorder) From() *gomock.Call
From indicates an expected call of From.
func (*MockChainClientMockRecorder) GetTransactionByHash ¶
func (mr *MockChainClientMockRecorder) GetTransactionByHash(arg0 interface{}) *gomock.Call
GetTransactionByHash indicates an expected call of GetTransactionByHash.
func (*MockChainClientMockRecorder) LockNonce ¶
func (mr *MockChainClientMockRecorder) LockNonce() *gomock.Call
LockNonce indicates an expected call of LockNonce.
func (*MockChainClientMockRecorder) RelayerAddress ¶
func (mr *MockChainClientMockRecorder) RelayerAddress() *gomock.Call
RelayerAddress indicates an expected call of RelayerAddress.
func (*MockChainClientMockRecorder) SignAndSendTransaction ¶
func (mr *MockChainClientMockRecorder) SignAndSendTransaction(arg0, arg1 interface{}) *gomock.Call
SignAndSendTransaction indicates an expected call of SignAndSendTransaction.
func (*MockChainClientMockRecorder) SubscribePendingTransactions ¶
func (mr *MockChainClientMockRecorder) SubscribePendingTransactions(arg0, arg1 interface{}) *gomock.Call
SubscribePendingTransactions indicates an expected call of SubscribePendingTransactions.
func (*MockChainClientMockRecorder) TransactionByHash ¶
func (mr *MockChainClientMockRecorder) TransactionByHash(arg0, arg1 interface{}) *gomock.Call
TransactionByHash indicates an expected call of TransactionByHash.
func (*MockChainClientMockRecorder) TransactionReceipt ¶ added in v1.3.0
func (mr *MockChainClientMockRecorder) TransactionReceipt(arg0, arg1 interface{}) *gomock.Call
TransactionReceipt indicates an expected call of TransactionReceipt.
func (*MockChainClientMockRecorder) UnlockNonce ¶
func (mr *MockChainClientMockRecorder) UnlockNonce() *gomock.Call
UnlockNonce indicates an expected call of UnlockNonce.
func (*MockChainClientMockRecorder) UnsafeIncreaseNonce ¶
func (mr *MockChainClientMockRecorder) UnsafeIncreaseNonce() *gomock.Call
UnsafeIncreaseNonce indicates an expected call of UnsafeIncreaseNonce.
func (*MockChainClientMockRecorder) UnsafeNonce ¶
func (mr *MockChainClientMockRecorder) UnsafeNonce() *gomock.Call
UnsafeNonce indicates an expected call of UnsafeNonce.
func (*MockChainClientMockRecorder) WaitAndReturnTxReceipt ¶
func (mr *MockChainClientMockRecorder) WaitAndReturnTxReceipt(arg0 interface{}) *gomock.Call
WaitAndReturnTxReceipt indicates an expected call of WaitAndReturnTxReceipt.
type MockMessageHandler ¶
type MockMessageHandler struct {
// contains filtered or unexported fields
}
MockMessageHandler is a mock of MessageHandler interface.
func NewMockMessageHandler ¶
func NewMockMessageHandler(ctrl *gomock.Controller) *MockMessageHandler
NewMockMessageHandler creates a new mock instance.
func (*MockMessageHandler) EXPECT ¶
func (m *MockMessageHandler) EXPECT() *MockMessageHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMessageHandler) HandleMessage ¶
HandleMessage mocks base method.
type MockMessageHandlerMockRecorder ¶
type MockMessageHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockMessageHandlerMockRecorder is the mock recorder for MockMessageHandler.
func (*MockMessageHandlerMockRecorder) HandleMessage ¶
func (mr *MockMessageHandlerMockRecorder) HandleMessage(arg0 interface{}) *gomock.Call
HandleMessage indicates an expected call of HandleMessage.