mock

package
v0.0.0-...-77e7770 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: LGPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: ./chains/evm/client/client.go

Generated by this command:

mockgen -destination=./mock/client.go -source=./chains/evm/client/client.go -package mock

Package mock is a generated GoMock package.

Code generated by MockGen. DO NOT EDIT. Source: ./chains/evm/listener/listener.go

Generated by this command:

mockgen -source=./chains/evm/listener/listener.go -destination=./mock/evmListener.go -package mock

Package mock is a generated GoMock package.

Code generated by MockGen. DO NOT EDIT. Source: ./chains/evm/transactor/gas/gas-pricer.go

Generated by this command:

mockgen -destination=./mock/gas.go -source=./chains/evm/transactor/gas/gas-pricer.go -package mock

Package mock is a generated GoMock package.

Code generated by MockGen. DO NOT EDIT. Source: ./relayer/message/handler.go

Generated by this command:

mockgen -source=./relayer/message/handler.go -destination=./mock/message.go -package mock

Package mock is a generated GoMock package.

Code generated by MockGen. DO NOT EDIT. Source: chains/evm/transactor/monitored/monitored.go

Generated by this command:

mockgen -source=chains/evm/transactor/monitored/monitored.go -destination=./mock/monitored.go -package mock

Package mock is a generated GoMock package.

Code generated by MockGen. DO NOT EDIT. Source: ./relayer/relayer.go

Generated by this command:

mockgen -destination=./mock/relayer.go -source=./relayer/relayer.go -package mock

Package mock is a generated GoMock package.

Code generated by MockGen. DO NOT EDIT. Source: ./store/store.go

Generated by this command:

mockgen -source=./store/store.go -destination=./mock/store.go -package mock

Package mock is a generated GoMock package.

Code generated by MockGen. DO NOT EDIT. Source: github.com/sygmaprotocol/sygma-core/chains/substrate/listener (interfaces: ChainConnection)

Generated by this command:

mockgen -destination=./mock/substrateListener.go -package mock github.com/sygmaprotocol/sygma-core/chains/substrate/listener ChainConnection

Package mock is a generated GoMock package.

Code generated by MockGen. DO NOT EDIT. Source: chains/evm/transactor/transact.go

Generated by this command:

mockgen -source=chains/evm/transactor/transact.go -destination=./mock/transact.go -package mock

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBlockDeltaMeter

type MockBlockDeltaMeter struct {
	// contains filtered or unexported fields
}

MockBlockDeltaMeter is a mock of BlockDeltaMeter interface.

func NewMockBlockDeltaMeter

func NewMockBlockDeltaMeter(ctrl *gomock.Controller) *MockBlockDeltaMeter

NewMockBlockDeltaMeter creates a new mock instance.

func (*MockBlockDeltaMeter) EXPECT

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

func (*MockBlockDeltaMeter) TrackBlockDelta

func (m *MockBlockDeltaMeter) TrackBlockDelta(domainID uint8, head, current *big.Int)

TrackBlockDelta mocks base method.

type MockBlockDeltaMeterMockRecorder

type MockBlockDeltaMeterMockRecorder struct {
	// contains filtered or unexported fields
}

MockBlockDeltaMeterMockRecorder is the mock recorder for MockBlockDeltaMeter.

func (*MockBlockDeltaMeterMockRecorder) TrackBlockDelta

func (mr *MockBlockDeltaMeterMockRecorder) TrackBlockDelta(domainID, head, current any) *gomock.Call

TrackBlockDelta indicates an expected call of TrackBlockDelta.

type MockBlockStorer

type MockBlockStorer struct {
	// contains filtered or unexported fields
}

MockBlockStorer is a mock of BlockStorer interface.

func NewMockBlockStorer

func NewMockBlockStorer(ctrl *gomock.Controller) *MockBlockStorer

NewMockBlockStorer creates a new mock instance.

func (*MockBlockStorer) EXPECT

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

func (*MockBlockStorer) StoreBlock

func (m *MockBlockStorer) StoreBlock(block *big.Int, domainID uint8) error

StoreBlock mocks base method.

type MockBlockStorerMockRecorder

type MockBlockStorerMockRecorder struct {
	// contains filtered or unexported fields
}

MockBlockStorerMockRecorder is the mock recorder for MockBlockStorer.

func (*MockBlockStorerMockRecorder) StoreBlock

func (mr *MockBlockStorerMockRecorder) StoreBlock(block, domainID any) *gomock.Call

StoreBlock indicates an expected call of StoreBlock.

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

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

func (*MockChainClient) LatestBlock

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

LatestBlock mocks base method.

type MockChainClientMockRecorder

type MockChainClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockChainClientMockRecorder is the mock recorder for MockChainClient.

func (*MockChainClientMockRecorder) LatestBlock

func (mr *MockChainClientMockRecorder) LatestBlock() *gomock.Call

LatestBlock indicates an expected call of LatestBlock.

type MockChainConnection

type MockChainConnection struct {
	// contains filtered or unexported fields
}

MockChainConnection is a mock of ChainConnection interface.

func NewMockChainConnection

func NewMockChainConnection(ctrl *gomock.Controller) *MockChainConnection

NewMockChainConnection creates a new mock instance.

func (*MockChainConnection) EXPECT

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

func (*MockChainConnection) GetBlock

func (m *MockChainConnection) GetBlock(arg0 types.Hash) (*types.SignedBlock, error)

GetBlock mocks base method.

func (*MockChainConnection) GetFinalizedHead

func (m *MockChainConnection) GetFinalizedHead() (types.Hash, error)

GetFinalizedHead mocks base method.

type MockChainConnectionMockRecorder

type MockChainConnectionMockRecorder struct {
	// contains filtered or unexported fields
}

MockChainConnectionMockRecorder is the mock recorder for MockChainConnection.

func (*MockChainConnectionMockRecorder) GetBlock

func (mr *MockChainConnectionMockRecorder) GetBlock(arg0 any) *gomock.Call

GetBlock indicates an expected call of GetBlock.

func (*MockChainConnectionMockRecorder) GetFinalizedHead

func (mr *MockChainConnectionMockRecorder) GetFinalizedHead() *gomock.Call

GetFinalizedHead indicates an expected call of GetFinalizedHead.

type MockClient

type MockClient struct {
	// contains filtered or unexported fields
}

MockClient is a mock of Client interface.

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance.

func (*MockClient) CallContract

func (m *MockClient) CallContract(ctx context.Context, callArgs map[string]any, blockNumber *big.Int) ([]byte, error)

CallContract mocks base method.

func (*MockClient) CodeAt

func (m *MockClient) CodeAt(ctx context.Context, contract common.Address, blockNumber *big.Int) ([]byte, error)

CodeAt mocks base method.

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

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

func (*MockClient) From

func (m *MockClient) From() common.Address

From mocks base method.

func (*MockClient) GetTransactionByHash

func (m *MockClient) GetTransactionByHash(h common.Hash) (*types.Transaction, bool, error)

GetTransactionByHash mocks base method.

func (*MockClient) LockNonce

func (m *MockClient) LockNonce()

LockNonce mocks base method.

func (*MockClient) SignAndSendTransaction

func (m *MockClient) SignAndSendTransaction(ctx context.Context, tx client.CommonTransaction) (common.Hash, error)

SignAndSendTransaction mocks base method.

func (*MockClient) TransactionReceipt

func (m *MockClient) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)

TransactionReceipt mocks base method.

func (*MockClient) UnlockNonce

func (m *MockClient) UnlockNonce()

UnlockNonce mocks base method.

func (*MockClient) UnsafeIncreaseNonce

func (m *MockClient) UnsafeIncreaseNonce() error

UnsafeIncreaseNonce mocks base method.

func (*MockClient) UnsafeNonce

func (m *MockClient) UnsafeNonce() (*big.Int, error)

UnsafeNonce mocks base method.

func (*MockClient) WaitAndReturnTxReceipt

func (m *MockClient) WaitAndReturnTxReceipt(h common.Hash) (*types.Receipt, error)

WaitAndReturnTxReceipt mocks base method.

type MockClientMockRecorder

type MockClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) CallContract

func (mr *MockClientMockRecorder) CallContract(ctx, callArgs, blockNumber any) *gomock.Call

CallContract indicates an expected call of CallContract.

func (*MockClientMockRecorder) CodeAt

func (mr *MockClientMockRecorder) CodeAt(ctx, contract, blockNumber any) *gomock.Call

CodeAt indicates an expected call of CodeAt.

func (*MockClientMockRecorder) From

func (mr *MockClientMockRecorder) From() *gomock.Call

From indicates an expected call of From.

func (*MockClientMockRecorder) GetTransactionByHash

func (mr *MockClientMockRecorder) GetTransactionByHash(h any) *gomock.Call

GetTransactionByHash indicates an expected call of GetTransactionByHash.

func (*MockClientMockRecorder) LockNonce

func (mr *MockClientMockRecorder) LockNonce() *gomock.Call

LockNonce indicates an expected call of LockNonce.

func (*MockClientMockRecorder) SignAndSendTransaction

func (mr *MockClientMockRecorder) SignAndSendTransaction(ctx, tx any) *gomock.Call

SignAndSendTransaction indicates an expected call of SignAndSendTransaction.

func (*MockClientMockRecorder) TransactionReceipt

func (mr *MockClientMockRecorder) TransactionReceipt(ctx, txHash any) *gomock.Call

TransactionReceipt indicates an expected call of TransactionReceipt.

func (*MockClientMockRecorder) UnlockNonce

func (mr *MockClientMockRecorder) UnlockNonce() *gomock.Call

UnlockNonce indicates an expected call of UnlockNonce.

func (*MockClientMockRecorder) UnsafeIncreaseNonce

func (mr *MockClientMockRecorder) UnsafeIncreaseNonce() *gomock.Call

UnsafeIncreaseNonce indicates an expected call of UnsafeIncreaseNonce.

func (*MockClientMockRecorder) UnsafeNonce

func (mr *MockClientMockRecorder) UnsafeNonce() *gomock.Call

UnsafeNonce indicates an expected call of UnsafeNonce.

func (*MockClientMockRecorder) WaitAndReturnTxReceipt

func (mr *MockClientMockRecorder) WaitAndReturnTxReceipt(h any) *gomock.Call

WaitAndReturnTxReceipt indicates an expected call of WaitAndReturnTxReceipt.

type MockCommonTransaction

type MockCommonTransaction struct {
	// contains filtered or unexported fields
}

MockCommonTransaction is a mock of CommonTransaction interface.

func NewMockCommonTransaction

func NewMockCommonTransaction(ctrl *gomock.Controller) *MockCommonTransaction

NewMockCommonTransaction creates a new mock instance.

func (*MockCommonTransaction) EXPECT

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

func (*MockCommonTransaction) Hash

func (m *MockCommonTransaction) Hash() common.Hash

Hash mocks base method.

func (*MockCommonTransaction) RawWithSignature

func (m *MockCommonTransaction) RawWithSignature(signer client.Signer, domainID *big.Int) ([]byte, error)

RawWithSignature mocks base method.

type MockCommonTransactionMockRecorder

type MockCommonTransactionMockRecorder struct {
	// contains filtered or unexported fields
}

MockCommonTransactionMockRecorder is the mock recorder for MockCommonTransaction.

func (*MockCommonTransactionMockRecorder) Hash

Hash indicates an expected call of Hash.

func (*MockCommonTransactionMockRecorder) RawWithSignature

func (mr *MockCommonTransactionMockRecorder) RawWithSignature(signer, domainID any) *gomock.Call

RawWithSignature indicates an expected call of RawWithSignature.

type MockContractCaller

type MockContractCaller struct {
	// contains filtered or unexported fields
}

MockContractCaller is a mock of ContractCaller interface.

func NewMockContractCaller

func NewMockContractCaller(ctrl *gomock.Controller) *MockContractCaller

NewMockContractCaller creates a new mock instance.

func (*MockContractCaller) CallContract

func (m *MockContractCaller) CallContract(ctx context.Context, callArgs map[string]any, blockNumber *big.Int) ([]byte, error)

CallContract mocks base method.

func (*MockContractCaller) CodeAt

func (m *MockContractCaller) CodeAt(ctx context.Context, contract common.Address, blockNumber *big.Int) ([]byte, error)

CodeAt mocks base method.

func (*MockContractCaller) EXPECT

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

type MockContractCallerMockRecorder

type MockContractCallerMockRecorder struct {
	// contains filtered or unexported fields
}

MockContractCallerMockRecorder is the mock recorder for MockContractCaller.

func (*MockContractCallerMockRecorder) CallContract

func (mr *MockContractCallerMockRecorder) CallContract(ctx, callArgs, blockNumber any) *gomock.Call

CallContract indicates an expected call of CallContract.

func (*MockContractCallerMockRecorder) CodeAt

func (mr *MockContractCallerMockRecorder) CodeAt(ctx, contract, blockNumber any) *gomock.Call

CodeAt indicates an expected call of CodeAt.

type MockEventHandler

type MockEventHandler struct {
	// contains filtered or unexported fields
}

MockEventHandler is a mock of EventHandler interface.

func NewMockEventHandler

func NewMockEventHandler(ctrl *gomock.Controller) *MockEventHandler

NewMockEventHandler creates a new mock instance.

func (*MockEventHandler) EXPECT

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

func (*MockEventHandler) HandleEvents

func (m *MockEventHandler) HandleEvents(startBlock, endBlock *big.Int) error

HandleEvents mocks base method.

type MockEventHandlerMockRecorder

type MockEventHandlerMockRecorder struct {
	// contains filtered or unexported fields
}

MockEventHandlerMockRecorder is the mock recorder for MockEventHandler.

func (*MockEventHandlerMockRecorder) HandleEvents

func (mr *MockEventHandlerMockRecorder) HandleEvents(startBlock, endBlock any) *gomock.Call

HandleEvents indicates an expected call of HandleEvents.

type MockGasPriceClient

type MockGasPriceClient struct {
	// contains filtered or unexported fields
}

MockGasPriceClient is a mock of GasPriceClient interface.

func NewMockGasPriceClient

func NewMockGasPriceClient(ctrl *gomock.Controller) *MockGasPriceClient

NewMockGasPriceClient creates a new mock instance.

func (*MockGasPriceClient) EXPECT

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

func (*MockGasPriceClient) SuggestGasPrice

func (m *MockGasPriceClient) SuggestGasPrice(ctx context.Context) (*big.Int, error)

SuggestGasPrice mocks base method.

type MockGasPriceClientMockRecorder

type MockGasPriceClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockGasPriceClientMockRecorder is the mock recorder for MockGasPriceClient.

func (*MockGasPriceClientMockRecorder) SuggestGasPrice

func (mr *MockGasPriceClientMockRecorder) SuggestGasPrice(ctx any) *gomock.Call

SuggestGasPrice indicates an expected call of SuggestGasPrice.

type MockGasPricer

type MockGasPricer struct {
	// contains filtered or unexported fields
}

MockGasPricer is a mock of GasPricer interface.

func NewMockGasPricer

func NewMockGasPricer(ctrl *gomock.Controller) *MockGasPricer

NewMockGasPricer creates a new mock instance.

func (*MockGasPricer) EXPECT

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

func (*MockGasPricer) GasPrice

func (m *MockGasPricer) GasPrice(priority *uint8) ([]*big.Int, error)

GasPrice mocks base method.

type MockGasPricerMockRecorder

type MockGasPricerMockRecorder struct {
	// contains filtered or unexported fields
}

MockGasPricerMockRecorder is the mock recorder for MockGasPricer.

func (*MockGasPricerMockRecorder) GasPrice

func (mr *MockGasPricerMockRecorder) GasPrice(priority any) *gomock.Call

GasPrice indicates an expected call of GasPrice.

type MockGasTracker

type MockGasTracker struct {
	// contains filtered or unexported fields
}

MockGasTracker is a mock of GasTracker interface.

func NewMockGasTracker

func NewMockGasTracker(ctrl *gomock.Controller) *MockGasTracker

NewMockGasTracker creates a new mock instance.

func (*MockGasTracker) EXPECT

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

func (*MockGasTracker) TrackGasUsage

func (m *MockGasTracker) TrackGasUsage(domainID uint8, gasUsed uint64, gasPrice *big.Int)

TrackGasUsage mocks base method.

type MockGasTrackerMockRecorder

type MockGasTrackerMockRecorder struct {
	// contains filtered or unexported fields
}

MockGasTrackerMockRecorder is the mock recorder for MockGasTracker.

func (*MockGasTrackerMockRecorder) TrackGasUsage

func (mr *MockGasTrackerMockRecorder) TrackGasUsage(domainID, gasUsed, gasPrice any) *gomock.Call

TrackGasUsage indicates an expected call of TrackGasUsage.

type MockHandler

type MockHandler struct {
	// contains filtered or unexported fields
}

MockHandler is a mock of Handler interface.

func NewMockHandler

func NewMockHandler(ctrl *gomock.Controller) *MockHandler

NewMockHandler creates a new mock instance.

func (*MockHandler) EXPECT

func (m *MockHandler) EXPECT() *MockHandlerMockRecorder

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

func (*MockHandler) HandleMessage

func (m_2 *MockHandler) HandleMessage(m *message.Message) (*proposal.Proposal, error)

HandleMessage mocks base method.

type MockHandlerMockRecorder

type MockHandlerMockRecorder struct {
	// contains filtered or unexported fields
}

MockHandlerMockRecorder is the mock recorder for MockHandler.

func (*MockHandlerMockRecorder) HandleMessage

func (mr *MockHandlerMockRecorder) HandleMessage(m any) *gomock.Call

HandleMessage indicates an expected call of HandleMessage.

type MockKeyValueReader

type MockKeyValueReader struct {
	// contains filtered or unexported fields
}

MockKeyValueReader is a mock of KeyValueReader interface.

func NewMockKeyValueReader

func NewMockKeyValueReader(ctrl *gomock.Controller) *MockKeyValueReader

NewMockKeyValueReader creates a new mock instance.

func (*MockKeyValueReader) EXPECT

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

func (*MockKeyValueReader) GetByKey

func (m *MockKeyValueReader) GetByKey(key []byte) ([]byte, error)

GetByKey mocks base method.

type MockKeyValueReaderMockRecorder

type MockKeyValueReaderMockRecorder struct {
	// contains filtered or unexported fields
}

MockKeyValueReaderMockRecorder is the mock recorder for MockKeyValueReader.

func (*MockKeyValueReaderMockRecorder) GetByKey

func (mr *MockKeyValueReaderMockRecorder) GetByKey(key any) *gomock.Call

GetByKey indicates an expected call of GetByKey.

type MockKeyValueReaderWriter

type MockKeyValueReaderWriter struct {
	// contains filtered or unexported fields
}

MockKeyValueReaderWriter is a mock of KeyValueReaderWriter interface.

func NewMockKeyValueReaderWriter

func NewMockKeyValueReaderWriter(ctrl *gomock.Controller) *MockKeyValueReaderWriter

NewMockKeyValueReaderWriter creates a new mock instance.

func (*MockKeyValueReaderWriter) EXPECT

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

func (*MockKeyValueReaderWriter) GetByKey

func (m *MockKeyValueReaderWriter) GetByKey(key []byte) ([]byte, error)

GetByKey mocks base method.

func (*MockKeyValueReaderWriter) SetByKey

func (m *MockKeyValueReaderWriter) SetByKey(key, value []byte) error

SetByKey mocks base method.

type MockKeyValueReaderWriterMockRecorder

type MockKeyValueReaderWriterMockRecorder struct {
	// contains filtered or unexported fields
}

MockKeyValueReaderWriterMockRecorder is the mock recorder for MockKeyValueReaderWriter.

func (*MockKeyValueReaderWriterMockRecorder) GetByKey

GetByKey indicates an expected call of GetByKey.

func (*MockKeyValueReaderWriterMockRecorder) SetByKey

func (mr *MockKeyValueReaderWriterMockRecorder) SetByKey(key, value any) *gomock.Call

SetByKey indicates an expected call of SetByKey.

type MockKeyValueWriter

type MockKeyValueWriter struct {
	// contains filtered or unexported fields
}

MockKeyValueWriter is a mock of KeyValueWriter interface.

func NewMockKeyValueWriter

func NewMockKeyValueWriter(ctrl *gomock.Controller) *MockKeyValueWriter

NewMockKeyValueWriter creates a new mock instance.

func (*MockKeyValueWriter) EXPECT

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

func (*MockKeyValueWriter) SetByKey

func (m *MockKeyValueWriter) SetByKey(key, value []byte) error

SetByKey mocks base method.

type MockKeyValueWriterMockRecorder

type MockKeyValueWriterMockRecorder struct {
	// contains filtered or unexported fields
}

MockKeyValueWriterMockRecorder is the mock recorder for MockKeyValueWriter.

func (*MockKeyValueWriterMockRecorder) SetByKey

func (mr *MockKeyValueWriterMockRecorder) SetByKey(key, value any) *gomock.Call

SetByKey indicates an expected call of SetByKey.

type MockLondonGasClient

type MockLondonGasClient struct {
	// contains filtered or unexported fields
}

MockLondonGasClient is a mock of LondonGasClient interface.

func NewMockLondonGasClient

func NewMockLondonGasClient(ctrl *gomock.Controller) *MockLondonGasClient

NewMockLondonGasClient creates a new mock instance.

func (*MockLondonGasClient) BaseFee

func (m *MockLondonGasClient) BaseFee() (*big.Int, error)

BaseFee mocks base method.

func (*MockLondonGasClient) EXPECT

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

func (*MockLondonGasClient) SuggestGasPrice

func (m *MockLondonGasClient) SuggestGasPrice(ctx context.Context) (*big.Int, error)

SuggestGasPrice mocks base method.

func (*MockLondonGasClient) SuggestGasTipCap

func (m *MockLondonGasClient) SuggestGasTipCap(ctx context.Context) (*big.Int, error)

SuggestGasTipCap mocks base method.

type MockLondonGasClientMockRecorder

type MockLondonGasClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockLondonGasClientMockRecorder is the mock recorder for MockLondonGasClient.

func (*MockLondonGasClientMockRecorder) BaseFee

BaseFee indicates an expected call of BaseFee.

func (*MockLondonGasClientMockRecorder) SuggestGasPrice

func (mr *MockLondonGasClientMockRecorder) SuggestGasPrice(ctx any) *gomock.Call

SuggestGasPrice indicates an expected call of SuggestGasPrice.

func (*MockLondonGasClientMockRecorder) SuggestGasTipCap

func (mr *MockLondonGasClientMockRecorder) SuggestGasTipCap(ctx any) *gomock.Call

SuggestGasTipCap indicates an expected call of SuggestGasTipCap.

type MockMessageTracker

type MockMessageTracker struct {
	// contains filtered or unexported fields
}

MockMessageTracker is a mock of MessageTracker interface.

func NewMockMessageTracker

func NewMockMessageTracker(ctrl *gomock.Controller) *MockMessageTracker

NewMockMessageTracker creates a new mock instance.

func (*MockMessageTracker) EXPECT

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

func (*MockMessageTracker) TrackMessages

func (m *MockMessageTracker) TrackMessages(msgs []*message.Message, status message.MessageStatus)

TrackMessages mocks base method.

type MockMessageTrackerMockRecorder

type MockMessageTrackerMockRecorder struct {
	// contains filtered or unexported fields
}

MockMessageTrackerMockRecorder is the mock recorder for MockMessageTracker.

func (*MockMessageTrackerMockRecorder) TrackMessages

func (mr *MockMessageTrackerMockRecorder) TrackMessages(msgs, status any) *gomock.Call

TrackMessages indicates an expected call of TrackMessages.

type MockRelayedChain

type MockRelayedChain struct {
	// contains filtered or unexported fields
}

MockRelayedChain is a mock of RelayedChain interface.

func NewMockRelayedChain

func NewMockRelayedChain(ctrl *gomock.Controller) *MockRelayedChain

NewMockRelayedChain creates a new mock instance.

func (*MockRelayedChain) DomainID

func (m *MockRelayedChain) DomainID() uint8

DomainID mocks base method.

func (*MockRelayedChain) EXPECT

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

func (*MockRelayedChain) PollEvents

func (m *MockRelayedChain) PollEvents(ctx context.Context)

PollEvents mocks base method.

func (*MockRelayedChain) ReceiveMessage

func (m_2 *MockRelayedChain) ReceiveMessage(m *message.Message) (*proposal.Proposal, error)

ReceiveMessage mocks base method.

func (*MockRelayedChain) Write

func (m *MockRelayedChain) Write(proposals []*proposal.Proposal) error

Write mocks base method.

type MockRelayedChainMockRecorder

type MockRelayedChainMockRecorder struct {
	// contains filtered or unexported fields
}

MockRelayedChainMockRecorder is the mock recorder for MockRelayedChain.

func (*MockRelayedChainMockRecorder) DomainID

func (mr *MockRelayedChainMockRecorder) DomainID() *gomock.Call

DomainID indicates an expected call of DomainID.

func (*MockRelayedChainMockRecorder) PollEvents

func (mr *MockRelayedChainMockRecorder) PollEvents(ctx any) *gomock.Call

PollEvents indicates an expected call of PollEvents.

func (*MockRelayedChainMockRecorder) ReceiveMessage

func (mr *MockRelayedChainMockRecorder) ReceiveMessage(m any) *gomock.Call

ReceiveMessage indicates an expected call of ReceiveMessage.

func (*MockRelayedChainMockRecorder) Write

func (mr *MockRelayedChainMockRecorder) Write(proposals any) *gomock.Call

Write indicates an expected call of Write.

type MockSigner

type MockSigner struct {
	// contains filtered or unexported fields
}

MockSigner is a mock of Signer interface.

func NewMockSigner

func NewMockSigner(ctrl *gomock.Controller) *MockSigner

NewMockSigner creates a new mock instance.

func (*MockSigner) CommonAddress

func (m *MockSigner) CommonAddress() common.Address

CommonAddress mocks base method.

func (*MockSigner) EXPECT

func (m *MockSigner) EXPECT() *MockSignerMockRecorder

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

func (*MockSigner) Sign

func (m *MockSigner) Sign(digestHash []byte) ([]byte, error)

Sign mocks base method.

type MockSignerMockRecorder

type MockSignerMockRecorder struct {
	// contains filtered or unexported fields
}

MockSignerMockRecorder is the mock recorder for MockSigner.

func (*MockSignerMockRecorder) CommonAddress

func (mr *MockSignerMockRecorder) CommonAddress() *gomock.Call

CommonAddress indicates an expected call of CommonAddress.

func (*MockSignerMockRecorder) Sign

func (mr *MockSignerMockRecorder) Sign(digestHash any) *gomock.Call

Sign indicates an expected call of Sign.

type MockTransactionDispatcher

type MockTransactionDispatcher struct {
	// contains filtered or unexported fields
}

MockTransactionDispatcher is a mock of TransactionDispatcher interface.

func NewMockTransactionDispatcher

func NewMockTransactionDispatcher(ctrl *gomock.Controller) *MockTransactionDispatcher

NewMockTransactionDispatcher creates a new mock instance.

func (*MockTransactionDispatcher) EXPECT

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

func (*MockTransactionDispatcher) From

From mocks base method.

func (*MockTransactionDispatcher) GetTransactionByHash

func (m *MockTransactionDispatcher) GetTransactionByHash(h common.Hash) (*types.Transaction, bool, error)

GetTransactionByHash mocks base method.

func (*MockTransactionDispatcher) LockNonce

func (m *MockTransactionDispatcher) LockNonce()

LockNonce mocks base method.

func (*MockTransactionDispatcher) SignAndSendTransaction

func (m *MockTransactionDispatcher) SignAndSendTransaction(ctx context.Context, tx client.CommonTransaction) (common.Hash, error)

SignAndSendTransaction mocks base method.

func (*MockTransactionDispatcher) TransactionReceipt

func (m *MockTransactionDispatcher) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)

TransactionReceipt mocks base method.

func (*MockTransactionDispatcher) UnlockNonce

func (m *MockTransactionDispatcher) UnlockNonce()

UnlockNonce mocks base method.

func (*MockTransactionDispatcher) UnsafeIncreaseNonce

func (m *MockTransactionDispatcher) UnsafeIncreaseNonce() error

UnsafeIncreaseNonce mocks base method.

func (*MockTransactionDispatcher) UnsafeNonce

func (m *MockTransactionDispatcher) UnsafeNonce() (*big.Int, error)

UnsafeNonce mocks base method.

func (*MockTransactionDispatcher) WaitAndReturnTxReceipt

func (m *MockTransactionDispatcher) WaitAndReturnTxReceipt(h common.Hash) (*types.Receipt, error)

WaitAndReturnTxReceipt mocks base method.

type MockTransactionDispatcherMockRecorder

type MockTransactionDispatcherMockRecorder struct {
	// contains filtered or unexported fields
}

MockTransactionDispatcherMockRecorder is the mock recorder for MockTransactionDispatcher.

func (*MockTransactionDispatcherMockRecorder) From

From indicates an expected call of From.

func (*MockTransactionDispatcherMockRecorder) GetTransactionByHash

func (mr *MockTransactionDispatcherMockRecorder) GetTransactionByHash(h any) *gomock.Call

GetTransactionByHash indicates an expected call of GetTransactionByHash.

func (*MockTransactionDispatcherMockRecorder) LockNonce

LockNonce indicates an expected call of LockNonce.

func (*MockTransactionDispatcherMockRecorder) SignAndSendTransaction

func (mr *MockTransactionDispatcherMockRecorder) SignAndSendTransaction(ctx, tx any) *gomock.Call

SignAndSendTransaction indicates an expected call of SignAndSendTransaction.

func (*MockTransactionDispatcherMockRecorder) TransactionReceipt

func (mr *MockTransactionDispatcherMockRecorder) TransactionReceipt(ctx, txHash any) *gomock.Call

TransactionReceipt indicates an expected call of TransactionReceipt.

func (*MockTransactionDispatcherMockRecorder) UnlockNonce

UnlockNonce indicates an expected call of UnlockNonce.

func (*MockTransactionDispatcherMockRecorder) UnsafeIncreaseNonce

func (mr *MockTransactionDispatcherMockRecorder) UnsafeIncreaseNonce() *gomock.Call

UnsafeIncreaseNonce indicates an expected call of UnsafeIncreaseNonce.

func (*MockTransactionDispatcherMockRecorder) UnsafeNonce

UnsafeNonce indicates an expected call of UnsafeNonce.

func (*MockTransactionDispatcherMockRecorder) WaitAndReturnTxReceipt

func (mr *MockTransactionDispatcherMockRecorder) WaitAndReturnTxReceipt(h any) *gomock.Call

WaitAndReturnTxReceipt indicates an expected call of WaitAndReturnTxReceipt.

type MockTransactor

type MockTransactor struct {
	// contains filtered or unexported fields
}

MockTransactor is a mock of Transactor interface.

func NewMockTransactor

func NewMockTransactor(ctrl *gomock.Controller) *MockTransactor

NewMockTransactor creates a new mock instance.

func (*MockTransactor) EXPECT

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

func (*MockTransactor) Transact

func (m *MockTransactor) Transact(to *common.Address, data []byte, opts transactor.TransactOptions) (*common.Hash, error)

Transact mocks base method.

type MockTransactorMockRecorder

type MockTransactorMockRecorder struct {
	// contains filtered or unexported fields
}

MockTransactorMockRecorder is the mock recorder for MockTransactor.

func (*MockTransactorMockRecorder) Transact

func (mr *MockTransactorMockRecorder) Transact(to, data, opts any) *gomock.Call

Transact indicates an expected call of Transact.

Jump to

Keyboard shortcuts

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