mock_api

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package mock_api is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BrokerAPIChainConfigCall

type BrokerAPIChainConfigCall struct {
	*gomock.Call
}

BrokerAPIChainConfigCall wrap *gomock.Call

func (*BrokerAPIChainConfigCall) Do

Do rewrite *gomock.Call.Do

func (*BrokerAPIChainConfigCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*BrokerAPIChainConfigCall) Return

Return rewrite *gomock.Call.Return

type BrokerAPIConsensusReadyCall

type BrokerAPIConsensusReadyCall struct {
	*gomock.Call
}

BrokerAPIConsensusReadyCall wrap *gomock.Call

func (*BrokerAPIConsensusReadyCall) Do

Do rewrite *gomock.Call.Do

func (*BrokerAPIConsensusReadyCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*BrokerAPIConsensusReadyCall) Return

Return rewrite *gomock.Call.Return

type BrokerAPIGetBlockCall

type BrokerAPIGetBlockCall struct {
	*gomock.Call
}

BrokerAPIGetBlockCall wrap *gomock.Call

func (*BrokerAPIGetBlockCall) Do

Do rewrite *gomock.Call.Do

func (*BrokerAPIGetBlockCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*BrokerAPIGetBlockCall) Return

Return rewrite *gomock.Call.Return

type BrokerAPIGetBlockHeadersCall

type BrokerAPIGetBlockHeadersCall struct {
	*gomock.Call
}

BrokerAPIGetBlockHeadersCall wrap *gomock.Call

func (*BrokerAPIGetBlockHeadersCall) Do

Do rewrite *gomock.Call.Do

func (*BrokerAPIGetBlockHeadersCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*BrokerAPIGetBlockHeadersCall) Return

Return rewrite *gomock.Call.Return

type BrokerAPIGetBlocksCall

type BrokerAPIGetBlocksCall struct {
	*gomock.Call
}

BrokerAPIGetBlocksCall wrap *gomock.Call

func (*BrokerAPIGetBlocksCall) Do

Do rewrite *gomock.Call.Do

func (*BrokerAPIGetBlocksCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*BrokerAPIGetBlocksCall) Return

Return rewrite *gomock.Call.Return

type BrokerAPIGetEvmCall

type BrokerAPIGetEvmCall struct {
	*gomock.Call
}

BrokerAPIGetEvmCall wrap *gomock.Call

func (*BrokerAPIGetEvmCall) Do

Do rewrite *gomock.Call.Do

func (*BrokerAPIGetEvmCall) DoAndReturn

func (c *BrokerAPIGetEvmCall) DoAndReturn(f func(*vm.Message, *vm.Config) (*vm.EVM, error)) *BrokerAPIGetEvmCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*BrokerAPIGetEvmCall) Return

func (c *BrokerAPIGetEvmCall) Return(arg0 *vm.EVM, arg1 error) *BrokerAPIGetEvmCall

Return rewrite *gomock.Call.Return

type BrokerAPIGetReceiptCall

type BrokerAPIGetReceiptCall struct {
	*gomock.Call
}

BrokerAPIGetReceiptCall wrap *gomock.Call

func (*BrokerAPIGetReceiptCall) Do

Do rewrite *gomock.Call.Do

func (*BrokerAPIGetReceiptCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*BrokerAPIGetReceiptCall) Return

Return rewrite *gomock.Call.Return

type BrokerAPIGetSystemContractCall

type BrokerAPIGetSystemContractCall struct {
	*gomock.Call
}

BrokerAPIGetSystemContractCall wrap *gomock.Call

func (*BrokerAPIGetSystemContractCall) Do

Do rewrite *gomock.Call.Do

func (*BrokerAPIGetSystemContractCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*BrokerAPIGetSystemContractCall) Return

Return rewrite *gomock.Call.Return

type BrokerAPIGetTransactionCall

type BrokerAPIGetTransactionCall struct {
	*gomock.Call
}

BrokerAPIGetTransactionCall wrap *gomock.Call

func (*BrokerAPIGetTransactionCall) Do

Do rewrite *gomock.Call.Do

func (*BrokerAPIGetTransactionCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*BrokerAPIGetTransactionCall) Return

Return rewrite *gomock.Call.Return

type BrokerAPIGetTransactionMetaCall

type BrokerAPIGetTransactionMetaCall struct {
	*gomock.Call
}

BrokerAPIGetTransactionMetaCall wrap *gomock.Call

func (*BrokerAPIGetTransactionMetaCall) Do

Do rewrite *gomock.Call.Do

func (*BrokerAPIGetTransactionMetaCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*BrokerAPIGetTransactionMetaCall) Return

Return rewrite *gomock.Call.Return

type BrokerAPIGetViewStateLedgerCall

type BrokerAPIGetViewStateLedgerCall struct {
	*gomock.Call
}

BrokerAPIGetViewStateLedgerCall wrap *gomock.Call

func (*BrokerAPIGetViewStateLedgerCall) Do

Do rewrite *gomock.Call.Do

func (*BrokerAPIGetViewStateLedgerCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*BrokerAPIGetViewStateLedgerCall) Return

Return rewrite *gomock.Call.Return

type BrokerAPIHandleTransactionCall

type BrokerAPIHandleTransactionCall struct {
	*gomock.Call
}

BrokerAPIHandleTransactionCall wrap *gomock.Call

func (*BrokerAPIHandleTransactionCall) Do

Do rewrite *gomock.Call.Do

func (*BrokerAPIHandleTransactionCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*BrokerAPIHandleTransactionCall) Return

Return rewrite *gomock.Call.Return

type BrokerAPIStateAtTransactionCall

type BrokerAPIStateAtTransactionCall struct {
	*gomock.Call
}

BrokerAPIStateAtTransactionCall wrap *gomock.Call

func (*BrokerAPIStateAtTransactionCall) Do

Do rewrite *gomock.Call.Do

func (*BrokerAPIStateAtTransactionCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*BrokerAPIStateAtTransactionCall) Return

Return rewrite *gomock.Call.Return

type ChainAPIMetaCall

type ChainAPIMetaCall struct {
	*gomock.Call
}

ChainAPIMetaCall wrap *gomock.Call

func (*ChainAPIMetaCall) Do

func (c *ChainAPIMetaCall) Do(f func() (*types.ChainMeta, error)) *ChainAPIMetaCall

Do rewrite *gomock.Call.Do

func (*ChainAPIMetaCall) DoAndReturn

func (c *ChainAPIMetaCall) DoAndReturn(f func() (*types.ChainMeta, error)) *ChainAPIMetaCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ChainAPIMetaCall) Return

func (c *ChainAPIMetaCall) Return(arg0 *types.ChainMeta, arg1 error) *ChainAPIMetaCall

Return rewrite *gomock.Call.Return

type ChainAPIStatusCall

type ChainAPIStatusCall struct {
	*gomock.Call
}

ChainAPIStatusCall wrap *gomock.Call

func (*ChainAPIStatusCall) Do

func (c *ChainAPIStatusCall) Do(f func() string) *ChainAPIStatusCall

Do rewrite *gomock.Call.Do

func (*ChainAPIStatusCall) DoAndReturn

func (c *ChainAPIStatusCall) DoAndReturn(f func() string) *ChainAPIStatusCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ChainAPIStatusCall) Return

func (c *ChainAPIStatusCall) Return(arg0 string) *ChainAPIStatusCall

Return rewrite *gomock.Call.Return

type ChainAPITPSCall

type ChainAPITPSCall struct {
	*gomock.Call
}

ChainAPITPSCall wrap *gomock.Call

func (*ChainAPITPSCall) Do

Do rewrite *gomock.Call.Do

func (*ChainAPITPSCall) DoAndReturn

func (c *ChainAPITPSCall) DoAndReturn(f func(uint64, uint64) (uint64, error)) *ChainAPITPSCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ChainAPITPSCall) Return

func (c *ChainAPITPSCall) Return(arg0 uint64, arg1 error) *ChainAPITPSCall

Return rewrite *gomock.Call.Return

type CoreAPIBrokerCall

type CoreAPIBrokerCall struct {
	*gomock.Call
}

CoreAPIBrokerCall wrap *gomock.Call

func (*CoreAPIBrokerCall) Do

Do rewrite *gomock.Call.Do

func (*CoreAPIBrokerCall) DoAndReturn

func (c *CoreAPIBrokerCall) DoAndReturn(f func() api.BrokerAPI) *CoreAPIBrokerCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*CoreAPIBrokerCall) Return

Return rewrite *gomock.Call.Return

type CoreAPIChainCall

type CoreAPIChainCall struct {
	*gomock.Call
}

CoreAPIChainCall wrap *gomock.Call

func (*CoreAPIChainCall) Do

func (c *CoreAPIChainCall) Do(f func() api.ChainAPI) *CoreAPIChainCall

Do rewrite *gomock.Call.Do

func (*CoreAPIChainCall) DoAndReturn

func (c *CoreAPIChainCall) DoAndReturn(f func() api.ChainAPI) *CoreAPIChainCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*CoreAPIChainCall) Return

func (c *CoreAPIChainCall) Return(arg0 api.ChainAPI) *CoreAPIChainCall

Return rewrite *gomock.Call.Return

type CoreAPIFeedCall

type CoreAPIFeedCall struct {
	*gomock.Call
}

CoreAPIFeedCall wrap *gomock.Call

func (*CoreAPIFeedCall) Do

func (c *CoreAPIFeedCall) Do(f func() api.FeedAPI) *CoreAPIFeedCall

Do rewrite *gomock.Call.Do

func (*CoreAPIFeedCall) DoAndReturn

func (c *CoreAPIFeedCall) DoAndReturn(f func() api.FeedAPI) *CoreAPIFeedCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*CoreAPIFeedCall) Return

func (c *CoreAPIFeedCall) Return(arg0 api.FeedAPI) *CoreAPIFeedCall

Return rewrite *gomock.Call.Return

type CoreAPIGasCall

type CoreAPIGasCall struct {
	*gomock.Call
}

CoreAPIGasCall wrap *gomock.Call

func (*CoreAPIGasCall) Do

func (c *CoreAPIGasCall) Do(f func() api.GasAPI) *CoreAPIGasCall

Do rewrite *gomock.Call.Do

func (*CoreAPIGasCall) DoAndReturn

func (c *CoreAPIGasCall) DoAndReturn(f func() api.GasAPI) *CoreAPIGasCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*CoreAPIGasCall) Return

func (c *CoreAPIGasCall) Return(arg0 api.GasAPI) *CoreAPIGasCall

Return rewrite *gomock.Call.Return

type CoreAPITxPoolCall

type CoreAPITxPoolCall struct {
	*gomock.Call
}

CoreAPITxPoolCall wrap *gomock.Call

func (*CoreAPITxPoolCall) Do

Do rewrite *gomock.Call.Do

func (*CoreAPITxPoolCall) DoAndReturn

func (c *CoreAPITxPoolCall) DoAndReturn(f func() api.TxPoolAPI) *CoreAPITxPoolCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*CoreAPITxPoolCall) Return

Return rewrite *gomock.Call.Return

type FeedAPIBloomStatusCall

type FeedAPIBloomStatusCall struct {
	*gomock.Call
}

FeedAPIBloomStatusCall wrap *gomock.Call

func (*FeedAPIBloomStatusCall) Do

Do rewrite *gomock.Call.Do

func (*FeedAPIBloomStatusCall) DoAndReturn

func (c *FeedAPIBloomStatusCall) DoAndReturn(f func() (uint64, uint64)) *FeedAPIBloomStatusCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*FeedAPIBloomStatusCall) Return

func (c *FeedAPIBloomStatusCall) Return(arg0, arg1 uint64) *FeedAPIBloomStatusCall

Return rewrite *gomock.Call.Return

type FeedAPISubscribeLogsEventCall

type FeedAPISubscribeLogsEventCall struct {
	*gomock.Call
}

FeedAPISubscribeLogsEventCall wrap *gomock.Call

func (*FeedAPISubscribeLogsEventCall) Do

Do rewrite *gomock.Call.Do

func (*FeedAPISubscribeLogsEventCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*FeedAPISubscribeLogsEventCall) Return

Return rewrite *gomock.Call.Return

type FeedAPISubscribeNewBlockEventCall

type FeedAPISubscribeNewBlockEventCall struct {
	*gomock.Call
}

FeedAPISubscribeNewBlockEventCall wrap *gomock.Call

func (*FeedAPISubscribeNewBlockEventCall) Do

Do rewrite *gomock.Call.Do

func (*FeedAPISubscribeNewBlockEventCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*FeedAPISubscribeNewBlockEventCall) Return

Return rewrite *gomock.Call.Return

type FeedAPISubscribeNewTxEventCall

type FeedAPISubscribeNewTxEventCall struct {
	*gomock.Call
}

FeedAPISubscribeNewTxEventCall wrap *gomock.Call

func (*FeedAPISubscribeNewTxEventCall) Do

Do rewrite *gomock.Call.Do

func (*FeedAPISubscribeNewTxEventCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*FeedAPISubscribeNewTxEventCall) Return

Return rewrite *gomock.Call.Return

type GasAPIGetCurrentGasPriceCall

type GasAPIGetCurrentGasPriceCall struct {
	*gomock.Call
}

GasAPIGetCurrentGasPriceCall wrap *gomock.Call

func (*GasAPIGetCurrentGasPriceCall) Do

Do rewrite *gomock.Call.Do

func (*GasAPIGetCurrentGasPriceCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*GasAPIGetCurrentGasPriceCall) Return

Return rewrite *gomock.Call.Return

type GasAPIGetGasPriceCall

type GasAPIGetGasPriceCall struct {
	*gomock.Call
}

GasAPIGetGasPriceCall wrap *gomock.Call

func (*GasAPIGetGasPriceCall) Do

Do rewrite *gomock.Call.Do

func (*GasAPIGetGasPriceCall) DoAndReturn

func (c *GasAPIGetGasPriceCall) DoAndReturn(f func() (uint64, error)) *GasAPIGetGasPriceCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*GasAPIGetGasPriceCall) Return

Return rewrite *gomock.Call.Return

type MockBrokerAPI

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

MockBrokerAPI is a mock of BrokerAPI interface.

func NewMockBrokerAPI

func NewMockBrokerAPI(ctrl *gomock.Controller) *MockBrokerAPI

NewMockBrokerAPI creates a new mock instance.

func (*MockBrokerAPI) ChainConfig

func (m *MockBrokerAPI) ChainConfig() *params.ChainConfig

ChainConfig mocks base method.

func (*MockBrokerAPI) ConsensusReady

func (m *MockBrokerAPI) ConsensusReady() error

ConsensusReady mocks base method.

func (*MockBrokerAPI) EXPECT

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

func (*MockBrokerAPI) GetBlock

func (m *MockBrokerAPI) GetBlock(mode, key string) (*types.Block, error)

GetBlock mocks base method.

func (*MockBrokerAPI) GetBlockHeaders

func (m *MockBrokerAPI) GetBlockHeaders(start, end uint64) ([]*types.BlockHeader, error)

GetBlockHeaders mocks base method.

func (*MockBrokerAPI) GetBlocks

func (m *MockBrokerAPI) GetBlocks(start, end uint64) ([]*types.Block, error)

GetBlocks mocks base method.

func (*MockBrokerAPI) GetEvm

func (m *MockBrokerAPI) GetEvm(mes *vm.Message, vmConfig *vm.Config) (*vm.EVM, error)

GetEvm mocks base method.

func (*MockBrokerAPI) GetReceipt

func (m *MockBrokerAPI) GetReceipt(arg0 *types.Hash) (*types.Receipt, error)

GetReceipt mocks base method.

func (*MockBrokerAPI) GetSystemContract

func (m *MockBrokerAPI) GetSystemContract(addr *common0.Address) (common.SystemContract, bool)

GetSystemContract mocks base method.

func (*MockBrokerAPI) GetTransaction

func (m *MockBrokerAPI) GetTransaction(arg0 *types.Hash) (*types.Transaction, error)

GetTransaction mocks base method.

func (*MockBrokerAPI) GetTransactionMeta

func (m *MockBrokerAPI) GetTransactionMeta(arg0 *types.Hash) (*types.TransactionMeta, error)

GetTransactionMeta mocks base method.

func (*MockBrokerAPI) GetViewStateLedger

func (m *MockBrokerAPI) GetViewStateLedger() ledger.StateLedger

GetViewStateLedger mocks base method.

func (*MockBrokerAPI) HandleTransaction

func (m *MockBrokerAPI) HandleTransaction(tx *types.Transaction) error

HandleTransaction mocks base method.

func (*MockBrokerAPI) StateAtTransaction

func (m *MockBrokerAPI) StateAtTransaction(block *types.Block, txIndex int, reexec uint64) (*vm.Message, vm.BlockContext, *ledger.StateLedger, error)

StateAtTransaction mocks base method.

type MockBrokerAPIMockRecorder

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

MockBrokerAPIMockRecorder is the mock recorder for MockBrokerAPI.

func (*MockBrokerAPIMockRecorder) ChainConfig

ChainConfig indicates an expected call of ChainConfig.

func (*MockBrokerAPIMockRecorder) ConsensusReady

ConsensusReady indicates an expected call of ConsensusReady.

func (*MockBrokerAPIMockRecorder) GetBlock

func (mr *MockBrokerAPIMockRecorder) GetBlock(mode, key any) *BrokerAPIGetBlockCall

GetBlock indicates an expected call of GetBlock.

func (*MockBrokerAPIMockRecorder) GetBlockHeaders

func (mr *MockBrokerAPIMockRecorder) GetBlockHeaders(start, end any) *BrokerAPIGetBlockHeadersCall

GetBlockHeaders indicates an expected call of GetBlockHeaders.

func (*MockBrokerAPIMockRecorder) GetBlocks

func (mr *MockBrokerAPIMockRecorder) GetBlocks(start, end any) *BrokerAPIGetBlocksCall

GetBlocks indicates an expected call of GetBlocks.

func (*MockBrokerAPIMockRecorder) GetEvm

func (mr *MockBrokerAPIMockRecorder) GetEvm(mes, vmConfig any) *BrokerAPIGetEvmCall

GetEvm indicates an expected call of GetEvm.

func (*MockBrokerAPIMockRecorder) GetReceipt

GetReceipt indicates an expected call of GetReceipt.

func (*MockBrokerAPIMockRecorder) GetSystemContract

func (mr *MockBrokerAPIMockRecorder) GetSystemContract(addr any) *BrokerAPIGetSystemContractCall

GetSystemContract indicates an expected call of GetSystemContract.

func (*MockBrokerAPIMockRecorder) GetTransaction

func (mr *MockBrokerAPIMockRecorder) GetTransaction(arg0 any) *BrokerAPIGetTransactionCall

GetTransaction indicates an expected call of GetTransaction.

func (*MockBrokerAPIMockRecorder) GetTransactionMeta

func (mr *MockBrokerAPIMockRecorder) GetTransactionMeta(arg0 any) *BrokerAPIGetTransactionMetaCall

GetTransactionMeta indicates an expected call of GetTransactionMeta.

func (*MockBrokerAPIMockRecorder) GetViewStateLedger

GetViewStateLedger indicates an expected call of GetViewStateLedger.

func (*MockBrokerAPIMockRecorder) HandleTransaction

HandleTransaction indicates an expected call of HandleTransaction.

func (*MockBrokerAPIMockRecorder) StateAtTransaction

func (mr *MockBrokerAPIMockRecorder) StateAtTransaction(block, txIndex, reexec any) *BrokerAPIStateAtTransactionCall

StateAtTransaction indicates an expected call of StateAtTransaction.

type MockChainAPI

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

MockChainAPI is a mock of ChainAPI interface.

func NewMockChainAPI

func NewMockChainAPI(ctrl *gomock.Controller) *MockChainAPI

NewMockChainAPI creates a new mock instance.

func (*MockChainAPI) EXPECT

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

func (*MockChainAPI) Meta

func (m *MockChainAPI) Meta() (*types.ChainMeta, error)

Meta mocks base method.

func (*MockChainAPI) Status

func (m *MockChainAPI) Status() string

Status mocks base method.

func (*MockChainAPI) TPS

func (m *MockChainAPI) TPS(begin, end uint64) (uint64, error)

TPS mocks base method.

type MockChainAPIMockRecorder

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

MockChainAPIMockRecorder is the mock recorder for MockChainAPI.

func (*MockChainAPIMockRecorder) Meta

Meta indicates an expected call of Meta.

func (*MockChainAPIMockRecorder) Status

Status indicates an expected call of Status.

func (*MockChainAPIMockRecorder) TPS

func (mr *MockChainAPIMockRecorder) TPS(begin, end any) *ChainAPITPSCall

TPS indicates an expected call of TPS.

type MockCoreAPI

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

MockCoreAPI is a mock of CoreAPI interface.

func NewMockCoreAPI

func NewMockCoreAPI(ctrl *gomock.Controller) *MockCoreAPI

NewMockCoreAPI creates a new mock instance.

func (*MockCoreAPI) Broker

func (m *MockCoreAPI) Broker() api.BrokerAPI

Broker mocks base method.

func (*MockCoreAPI) Chain

func (m *MockCoreAPI) Chain() api.ChainAPI

Chain mocks base method.

func (*MockCoreAPI) EXPECT

func (m *MockCoreAPI) EXPECT() *MockCoreAPIMockRecorder

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

func (*MockCoreAPI) Feed

func (m *MockCoreAPI) Feed() api.FeedAPI

Feed mocks base method.

func (*MockCoreAPI) Gas

func (m *MockCoreAPI) Gas() api.GasAPI

Gas mocks base method.

func (*MockCoreAPI) TxPool

func (m *MockCoreAPI) TxPool() api.TxPoolAPI

TxPool mocks base method.

type MockCoreAPIMockRecorder

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

MockCoreAPIMockRecorder is the mock recorder for MockCoreAPI.

func (*MockCoreAPIMockRecorder) Broker

Broker indicates an expected call of Broker.

func (*MockCoreAPIMockRecorder) Chain

Chain indicates an expected call of Chain.

func (*MockCoreAPIMockRecorder) Feed

Feed indicates an expected call of Feed.

func (*MockCoreAPIMockRecorder) Gas

Gas indicates an expected call of Gas.

func (*MockCoreAPIMockRecorder) TxPool

TxPool indicates an expected call of TxPool.

type MockFeedAPI

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

MockFeedAPI is a mock of FeedAPI interface.

func NewMockFeedAPI

func NewMockFeedAPI(ctrl *gomock.Controller) *MockFeedAPI

NewMockFeedAPI creates a new mock instance.

func (*MockFeedAPI) BloomStatus

func (m *MockFeedAPI) BloomStatus() (uint64, uint64)

BloomStatus mocks base method.

func (*MockFeedAPI) EXPECT

func (m *MockFeedAPI) EXPECT() *MockFeedAPIMockRecorder

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

func (*MockFeedAPI) SubscribeLogsEvent

func (m *MockFeedAPI) SubscribeLogsEvent(arg0 chan<- []*types.EvmLog) event.Subscription

SubscribeLogsEvent mocks base method.

func (*MockFeedAPI) SubscribeNewBlockEvent

func (m *MockFeedAPI) SubscribeNewBlockEvent(arg0 chan<- events.ExecutedEvent) event.Subscription

SubscribeNewBlockEvent mocks base method.

func (*MockFeedAPI) SubscribeNewTxEvent

func (m *MockFeedAPI) SubscribeNewTxEvent(arg0 chan<- []*types.Transaction) event.Subscription

SubscribeNewTxEvent mocks base method.

type MockFeedAPIMockRecorder

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

MockFeedAPIMockRecorder is the mock recorder for MockFeedAPI.

func (*MockFeedAPIMockRecorder) BloomStatus

BloomStatus indicates an expected call of BloomStatus.

func (*MockFeedAPIMockRecorder) SubscribeLogsEvent

func (mr *MockFeedAPIMockRecorder) SubscribeLogsEvent(arg0 any) *FeedAPISubscribeLogsEventCall

SubscribeLogsEvent indicates an expected call of SubscribeLogsEvent.

func (*MockFeedAPIMockRecorder) SubscribeNewBlockEvent

func (mr *MockFeedAPIMockRecorder) SubscribeNewBlockEvent(arg0 any) *FeedAPISubscribeNewBlockEventCall

SubscribeNewBlockEvent indicates an expected call of SubscribeNewBlockEvent.

func (*MockFeedAPIMockRecorder) SubscribeNewTxEvent

func (mr *MockFeedAPIMockRecorder) SubscribeNewTxEvent(arg0 any) *FeedAPISubscribeNewTxEventCall

SubscribeNewTxEvent indicates an expected call of SubscribeNewTxEvent.

type MockGasAPI

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

MockGasAPI is a mock of GasAPI interface.

func NewMockGasAPI

func NewMockGasAPI(ctrl *gomock.Controller) *MockGasAPI

NewMockGasAPI creates a new mock instance.

func (*MockGasAPI) EXPECT

func (m *MockGasAPI) EXPECT() *MockGasAPIMockRecorder

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

func (*MockGasAPI) GetCurrentGasPrice

func (m *MockGasAPI) GetCurrentGasPrice(blockHeight uint64) (uint64, error)

GetCurrentGasPrice mocks base method.

func (*MockGasAPI) GetGasPrice

func (m *MockGasAPI) GetGasPrice() (uint64, error)

GetGasPrice mocks base method.

type MockGasAPIMockRecorder

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

MockGasAPIMockRecorder is the mock recorder for MockGasAPI.

func (*MockGasAPIMockRecorder) GetCurrentGasPrice

func (mr *MockGasAPIMockRecorder) GetCurrentGasPrice(blockHeight any) *GasAPIGetCurrentGasPriceCall

GetCurrentGasPrice indicates an expected call of GetCurrentGasPrice.

func (*MockGasAPIMockRecorder) GetGasPrice

func (mr *MockGasAPIMockRecorder) GetGasPrice() *GasAPIGetGasPriceCall

GetGasPrice indicates an expected call of GetGasPrice.

type MockNetworkAPI

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

MockNetworkAPI is a mock of NetworkAPI interface.

func NewMockNetworkAPI

func NewMockNetworkAPI(ctrl *gomock.Controller) *MockNetworkAPI

NewMockNetworkAPI creates a new mock instance.

func (*MockNetworkAPI) EXPECT

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

func (*MockNetworkAPI) PeerInfo

func (m *MockNetworkAPI) PeerInfo() ([]byte, error)

PeerInfo mocks base method.

type MockNetworkAPIMockRecorder

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

MockNetworkAPIMockRecorder is the mock recorder for MockNetworkAPI.

func (*MockNetworkAPIMockRecorder) PeerInfo

PeerInfo indicates an expected call of PeerInfo.

type MockTxPoolAPI

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

MockTxPoolAPI is a mock of TxPoolAPI interface.

func NewMockTxPoolAPI

func NewMockTxPoolAPI(ctrl *gomock.Controller) *MockTxPoolAPI

NewMockTxPoolAPI creates a new mock instance.

func (*MockTxPoolAPI) EXPECT

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

func (*MockTxPoolAPI) GetAccountMeta

func (m *MockTxPoolAPI) GetAccountMeta(account string, full bool) any

GetAccountMeta mocks base method.

func (*MockTxPoolAPI) GetMeta

func (m *MockTxPoolAPI) GetMeta(full bool) any

GetMeta mocks base method.

func (*MockTxPoolAPI) GetPendingTxCountByAccount

func (m *MockTxPoolAPI) GetPendingTxCountByAccount(account string) uint64

GetPendingTxCountByAccount mocks base method.

func (*MockTxPoolAPI) GetTotalPendingTxCount

func (m *MockTxPoolAPI) GetTotalPendingTxCount() uint64

GetTotalPendingTxCount mocks base method.

func (*MockTxPoolAPI) GetTransaction

func (m *MockTxPoolAPI) GetTransaction(hash *types.Hash) *types.Transaction

GetTransaction mocks base method.

type MockTxPoolAPIMockRecorder

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

MockTxPoolAPIMockRecorder is the mock recorder for MockTxPoolAPI.

func (*MockTxPoolAPIMockRecorder) GetAccountMeta

func (mr *MockTxPoolAPIMockRecorder) GetAccountMeta(account, full any) *TxPoolAPIGetAccountMetaCall

GetAccountMeta indicates an expected call of GetAccountMeta.

func (*MockTxPoolAPIMockRecorder) GetMeta

GetMeta indicates an expected call of GetMeta.

func (*MockTxPoolAPIMockRecorder) GetPendingTxCountByAccount

func (mr *MockTxPoolAPIMockRecorder) GetPendingTxCountByAccount(account any) *TxPoolAPIGetPendingTxCountByAccountCall

GetPendingTxCountByAccount indicates an expected call of GetPendingTxCountByAccount.

func (*MockTxPoolAPIMockRecorder) GetTotalPendingTxCount

func (mr *MockTxPoolAPIMockRecorder) GetTotalPendingTxCount() *TxPoolAPIGetTotalPendingTxCountCall

GetTotalPendingTxCount indicates an expected call of GetTotalPendingTxCount.

func (*MockTxPoolAPIMockRecorder) GetTransaction

func (mr *MockTxPoolAPIMockRecorder) GetTransaction(hash any) *TxPoolAPIGetTransactionCall

GetTransaction indicates an expected call of GetTransaction.

type NetworkAPIPeerInfoCall

type NetworkAPIPeerInfoCall struct {
	*gomock.Call
}

NetworkAPIPeerInfoCall wrap *gomock.Call

func (*NetworkAPIPeerInfoCall) Do

Do rewrite *gomock.Call.Do

func (*NetworkAPIPeerInfoCall) DoAndReturn

func (c *NetworkAPIPeerInfoCall) DoAndReturn(f func() ([]byte, error)) *NetworkAPIPeerInfoCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*NetworkAPIPeerInfoCall) Return

func (c *NetworkAPIPeerInfoCall) Return(arg0 []byte, arg1 error) *NetworkAPIPeerInfoCall

Return rewrite *gomock.Call.Return

type TxPoolAPIGetAccountMetaCall

type TxPoolAPIGetAccountMetaCall struct {
	*gomock.Call
}

TxPoolAPIGetAccountMetaCall wrap *gomock.Call

func (*TxPoolAPIGetAccountMetaCall) Do

Do rewrite *gomock.Call.Do

func (*TxPoolAPIGetAccountMetaCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*TxPoolAPIGetAccountMetaCall) Return

Return rewrite *gomock.Call.Return

type TxPoolAPIGetMetaCall

type TxPoolAPIGetMetaCall struct {
	*gomock.Call
}

TxPoolAPIGetMetaCall wrap *gomock.Call

func (*TxPoolAPIGetMetaCall) Do

Do rewrite *gomock.Call.Do

func (*TxPoolAPIGetMetaCall) DoAndReturn

func (c *TxPoolAPIGetMetaCall) DoAndReturn(f func(bool) any) *TxPoolAPIGetMetaCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*TxPoolAPIGetMetaCall) Return

Return rewrite *gomock.Call.Return

type TxPoolAPIGetPendingTxCountByAccountCall

type TxPoolAPIGetPendingTxCountByAccountCall struct {
	*gomock.Call
}

TxPoolAPIGetPendingTxCountByAccountCall wrap *gomock.Call

func (*TxPoolAPIGetPendingTxCountByAccountCall) Do

Do rewrite *gomock.Call.Do

func (*TxPoolAPIGetPendingTxCountByAccountCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*TxPoolAPIGetPendingTxCountByAccountCall) Return

Return rewrite *gomock.Call.Return

type TxPoolAPIGetTotalPendingTxCountCall

type TxPoolAPIGetTotalPendingTxCountCall struct {
	*gomock.Call
}

TxPoolAPIGetTotalPendingTxCountCall wrap *gomock.Call

func (*TxPoolAPIGetTotalPendingTxCountCall) Do

Do rewrite *gomock.Call.Do

func (*TxPoolAPIGetTotalPendingTxCountCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*TxPoolAPIGetTotalPendingTxCountCall) Return

Return rewrite *gomock.Call.Return

type TxPoolAPIGetTransactionCall

type TxPoolAPIGetTransactionCall struct {
	*gomock.Call
}

TxPoolAPIGetTransactionCall wrap *gomock.Call

func (*TxPoolAPIGetTransactionCall) Do

Do rewrite *gomock.Call.Do

func (*TxPoolAPIGetTransactionCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*TxPoolAPIGetTransactionCall) Return

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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