mock_voter

package
v1.0.27 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2024 License: LGPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package mock_voter is a generated GoMock package.

Index

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) ContractAddress

func (m *MockBridgeContract) ContractAddress() *common.Address

func (*MockBridgeContract) EXPECT

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

VoteProposal mocks base method.

func (*MockBridgeContract) VoteProposals

func (m *MockBridgeContract) VoteProposals(
	domainID uint8,
	depositNonce uint64,
	resourceID [32]byte,
	data []byte,
	signatures [][]byte,
	opts transactor.TransactOptions,
) (*common.Hash, error)

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

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) LatestBlock

func (m *MockChainClient) LatestBlock() (*big.Int, error)

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) SubscribeFilterLogs

func (m *MockChainClient) SubscribeFilterLogs(ctx context.Context, q ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)

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) 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

func (m *MockChainClient) WaitAndReturnTxReceipt(arg0 common.Hash) (*types.Receipt, error)

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

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) Sign

func (mr *MockChainClientMockRecorder) Sign(byteData []byte) ([]byte, error)

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) 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) CheckAndExecuteAirDrop

func (m *MockMessageHandler) CheckAndExecuteAirDrop(arg0 message.Message)

func (*MockMessageHandler) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockMessageHandler) HandleMessage

func (m *MockMessageHandler) HandleMessage(arg0 *message.Message) (*proposal.Proposal, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL