Documentation ¶
Overview ¶
Package mock_api is a generated GoMock package.
Index ¶
- type BrokerAPIChainConfigCall
- type BrokerAPIConsensusReadyCall
- type BrokerAPIGetBlockCall
- func (c *BrokerAPIGetBlockCall) Do(f func(string, string) (*types.Block, error)) *BrokerAPIGetBlockCall
- func (c *BrokerAPIGetBlockCall) DoAndReturn(f func(string, string) (*types.Block, error)) *BrokerAPIGetBlockCall
- func (c *BrokerAPIGetBlockCall) Return(arg0 *types.Block, arg1 error) *BrokerAPIGetBlockCall
- type BrokerAPIGetBlockHeadersCall
- func (c *BrokerAPIGetBlockHeadersCall) Do(f func(uint64, uint64) ([]*types.BlockHeader, error)) *BrokerAPIGetBlockHeadersCall
- func (c *BrokerAPIGetBlockHeadersCall) DoAndReturn(f func(uint64, uint64) ([]*types.BlockHeader, error)) *BrokerAPIGetBlockHeadersCall
- func (c *BrokerAPIGetBlockHeadersCall) Return(arg0 []*types.BlockHeader, arg1 error) *BrokerAPIGetBlockHeadersCall
- type BrokerAPIGetBlocksCall
- func (c *BrokerAPIGetBlocksCall) Do(f func(uint64, uint64) ([]*types.Block, error)) *BrokerAPIGetBlocksCall
- func (c *BrokerAPIGetBlocksCall) DoAndReturn(f func(uint64, uint64) ([]*types.Block, error)) *BrokerAPIGetBlocksCall
- func (c *BrokerAPIGetBlocksCall) Return(arg0 []*types.Block, arg1 error) *BrokerAPIGetBlocksCall
- type BrokerAPIGetEvmCall
- func (c *BrokerAPIGetEvmCall) Do(f func(*vm.Message, *vm.Config) (*vm.EVM, error)) *BrokerAPIGetEvmCall
- func (c *BrokerAPIGetEvmCall) DoAndReturn(f func(*vm.Message, *vm.Config) (*vm.EVM, error)) *BrokerAPIGetEvmCall
- func (c *BrokerAPIGetEvmCall) Return(arg0 *vm.EVM, arg1 error) *BrokerAPIGetEvmCall
- type BrokerAPIGetReceiptCall
- func (c *BrokerAPIGetReceiptCall) Do(f func(*types.Hash) (*types.Receipt, error)) *BrokerAPIGetReceiptCall
- func (c *BrokerAPIGetReceiptCall) DoAndReturn(f func(*types.Hash) (*types.Receipt, error)) *BrokerAPIGetReceiptCall
- func (c *BrokerAPIGetReceiptCall) Return(arg0 *types.Receipt, arg1 error) *BrokerAPIGetReceiptCall
- type BrokerAPIGetSystemContractCall
- func (c *BrokerAPIGetSystemContractCall) Do(f func(*common0.Address) (common.SystemContract, bool)) *BrokerAPIGetSystemContractCall
- func (c *BrokerAPIGetSystemContractCall) DoAndReturn(f func(*common0.Address) (common.SystemContract, bool)) *BrokerAPIGetSystemContractCall
- func (c *BrokerAPIGetSystemContractCall) Return(arg0 common.SystemContract, arg1 bool) *BrokerAPIGetSystemContractCall
- type BrokerAPIGetTransactionCall
- func (c *BrokerAPIGetTransactionCall) Do(f func(*types.Hash) (*types.Transaction, error)) *BrokerAPIGetTransactionCall
- func (c *BrokerAPIGetTransactionCall) DoAndReturn(f func(*types.Hash) (*types.Transaction, error)) *BrokerAPIGetTransactionCall
- func (c *BrokerAPIGetTransactionCall) Return(arg0 *types.Transaction, arg1 error) *BrokerAPIGetTransactionCall
- type BrokerAPIGetTransactionMetaCall
- func (c *BrokerAPIGetTransactionMetaCall) Do(f func(*types.Hash) (*types.TransactionMeta, error)) *BrokerAPIGetTransactionMetaCall
- func (c *BrokerAPIGetTransactionMetaCall) DoAndReturn(f func(*types.Hash) (*types.TransactionMeta, error)) *BrokerAPIGetTransactionMetaCall
- func (c *BrokerAPIGetTransactionMetaCall) Return(arg0 *types.TransactionMeta, arg1 error) *BrokerAPIGetTransactionMetaCall
- type BrokerAPIGetViewStateLedgerCall
- func (c *BrokerAPIGetViewStateLedgerCall) Do(f func() ledger.StateLedger) *BrokerAPIGetViewStateLedgerCall
- func (c *BrokerAPIGetViewStateLedgerCall) DoAndReturn(f func() ledger.StateLedger) *BrokerAPIGetViewStateLedgerCall
- func (c *BrokerAPIGetViewStateLedgerCall) Return(arg0 ledger.StateLedger) *BrokerAPIGetViewStateLedgerCall
- type BrokerAPIHandleTransactionCall
- func (c *BrokerAPIHandleTransactionCall) Do(f func(*types.Transaction) error) *BrokerAPIHandleTransactionCall
- func (c *BrokerAPIHandleTransactionCall) DoAndReturn(f func(*types.Transaction) error) *BrokerAPIHandleTransactionCall
- func (c *BrokerAPIHandleTransactionCall) Return(arg0 error) *BrokerAPIHandleTransactionCall
- type BrokerAPIStateAtTransactionCall
- func (c *BrokerAPIStateAtTransactionCall) Do(...) *BrokerAPIStateAtTransactionCall
- func (c *BrokerAPIStateAtTransactionCall) DoAndReturn(...) *BrokerAPIStateAtTransactionCall
- func (c *BrokerAPIStateAtTransactionCall) Return(arg0 *vm.Message, arg1 vm.BlockContext, arg2 *ledger.StateLedger, arg3 error) *BrokerAPIStateAtTransactionCall
- type ChainAPIMetaCall
- type ChainAPIStatusCall
- type ChainAPITPSCall
- type CoreAPIBrokerCall
- type CoreAPIChainCall
- type CoreAPIFeedCall
- type CoreAPIGasCall
- type CoreAPITxPoolCall
- type FeedAPIBloomStatusCall
- type FeedAPISubscribeLogsEventCall
- func (c *FeedAPISubscribeLogsEventCall) Do(f func(chan<- []*types.EvmLog) event.Subscription) *FeedAPISubscribeLogsEventCall
- func (c *FeedAPISubscribeLogsEventCall) DoAndReturn(f func(chan<- []*types.EvmLog) event.Subscription) *FeedAPISubscribeLogsEventCall
- func (c *FeedAPISubscribeLogsEventCall) Return(arg0 event.Subscription) *FeedAPISubscribeLogsEventCall
- type FeedAPISubscribeNewBlockEventCall
- func (c *FeedAPISubscribeNewBlockEventCall) Do(f func(chan<- events.ExecutedEvent) event.Subscription) *FeedAPISubscribeNewBlockEventCall
- func (c *FeedAPISubscribeNewBlockEventCall) DoAndReturn(f func(chan<- events.ExecutedEvent) event.Subscription) *FeedAPISubscribeNewBlockEventCall
- func (c *FeedAPISubscribeNewBlockEventCall) Return(arg0 event.Subscription) *FeedAPISubscribeNewBlockEventCall
- type FeedAPISubscribeNewTxEventCall
- func (c *FeedAPISubscribeNewTxEventCall) Do(f func(chan<- []*types.Transaction) event.Subscription) *FeedAPISubscribeNewTxEventCall
- func (c *FeedAPISubscribeNewTxEventCall) DoAndReturn(f func(chan<- []*types.Transaction) event.Subscription) *FeedAPISubscribeNewTxEventCall
- func (c *FeedAPISubscribeNewTxEventCall) Return(arg0 event.Subscription) *FeedAPISubscribeNewTxEventCall
- type GasAPIGetCurrentGasPriceCall
- func (c *GasAPIGetCurrentGasPriceCall) Do(f func(uint64) (uint64, error)) *GasAPIGetCurrentGasPriceCall
- func (c *GasAPIGetCurrentGasPriceCall) DoAndReturn(f func(uint64) (uint64, error)) *GasAPIGetCurrentGasPriceCall
- func (c *GasAPIGetCurrentGasPriceCall) Return(arg0 uint64, arg1 error) *GasAPIGetCurrentGasPriceCall
- type GasAPIGetGasPriceCall
- type MockBrokerAPI
- func (m *MockBrokerAPI) ChainConfig() *params.ChainConfig
- func (m *MockBrokerAPI) ConsensusReady() error
- func (m *MockBrokerAPI) EXPECT() *MockBrokerAPIMockRecorder
- func (m *MockBrokerAPI) GetBlock(mode, key string) (*types.Block, error)
- func (m *MockBrokerAPI) GetBlockHeaders(start, end uint64) ([]*types.BlockHeader, error)
- func (m *MockBrokerAPI) GetBlocks(start, end uint64) ([]*types.Block, error)
- func (m *MockBrokerAPI) GetEvm(mes *vm.Message, vmConfig *vm.Config) (*vm.EVM, error)
- func (m *MockBrokerAPI) GetReceipt(arg0 *types.Hash) (*types.Receipt, error)
- func (m *MockBrokerAPI) GetSystemContract(addr *common0.Address) (common.SystemContract, bool)
- func (m *MockBrokerAPI) GetTransaction(arg0 *types.Hash) (*types.Transaction, error)
- func (m *MockBrokerAPI) GetTransactionMeta(arg0 *types.Hash) (*types.TransactionMeta, error)
- func (m *MockBrokerAPI) GetViewStateLedger() ledger.StateLedger
- func (m *MockBrokerAPI) HandleTransaction(tx *types.Transaction) error
- func (m *MockBrokerAPI) StateAtTransaction(block *types.Block, txIndex int, reexec uint64) (*vm.Message, vm.BlockContext, *ledger.StateLedger, error)
- type MockBrokerAPIMockRecorder
- func (mr *MockBrokerAPIMockRecorder) ChainConfig() *BrokerAPIChainConfigCall
- func (mr *MockBrokerAPIMockRecorder) ConsensusReady() *BrokerAPIConsensusReadyCall
- func (mr *MockBrokerAPIMockRecorder) GetBlock(mode, key any) *BrokerAPIGetBlockCall
- func (mr *MockBrokerAPIMockRecorder) GetBlockHeaders(start, end any) *BrokerAPIGetBlockHeadersCall
- func (mr *MockBrokerAPIMockRecorder) GetBlocks(start, end any) *BrokerAPIGetBlocksCall
- func (mr *MockBrokerAPIMockRecorder) GetEvm(mes, vmConfig any) *BrokerAPIGetEvmCall
- func (mr *MockBrokerAPIMockRecorder) GetReceipt(arg0 any) *BrokerAPIGetReceiptCall
- func (mr *MockBrokerAPIMockRecorder) GetSystemContract(addr any) *BrokerAPIGetSystemContractCall
- func (mr *MockBrokerAPIMockRecorder) GetTransaction(arg0 any) *BrokerAPIGetTransactionCall
- func (mr *MockBrokerAPIMockRecorder) GetTransactionMeta(arg0 any) *BrokerAPIGetTransactionMetaCall
- func (mr *MockBrokerAPIMockRecorder) GetViewStateLedger() *BrokerAPIGetViewStateLedgerCall
- func (mr *MockBrokerAPIMockRecorder) HandleTransaction(tx any) *BrokerAPIHandleTransactionCall
- func (mr *MockBrokerAPIMockRecorder) StateAtTransaction(block, txIndex, reexec any) *BrokerAPIStateAtTransactionCall
- type MockChainAPI
- type MockChainAPIMockRecorder
- type MockCoreAPI
- type MockCoreAPIMockRecorder
- func (mr *MockCoreAPIMockRecorder) Broker() *CoreAPIBrokerCall
- func (mr *MockCoreAPIMockRecorder) Chain() *CoreAPIChainCall
- func (mr *MockCoreAPIMockRecorder) Feed() *CoreAPIFeedCall
- func (mr *MockCoreAPIMockRecorder) Gas() *CoreAPIGasCall
- func (mr *MockCoreAPIMockRecorder) TxPool() *CoreAPITxPoolCall
- type MockFeedAPI
- func (m *MockFeedAPI) BloomStatus() (uint64, uint64)
- func (m *MockFeedAPI) EXPECT() *MockFeedAPIMockRecorder
- func (m *MockFeedAPI) SubscribeLogsEvent(arg0 chan<- []*types.EvmLog) event.Subscription
- func (m *MockFeedAPI) SubscribeNewBlockEvent(arg0 chan<- events.ExecutedEvent) event.Subscription
- func (m *MockFeedAPI) SubscribeNewTxEvent(arg0 chan<- []*types.Transaction) event.Subscription
- type MockFeedAPIMockRecorder
- func (mr *MockFeedAPIMockRecorder) BloomStatus() *FeedAPIBloomStatusCall
- func (mr *MockFeedAPIMockRecorder) SubscribeLogsEvent(arg0 any) *FeedAPISubscribeLogsEventCall
- func (mr *MockFeedAPIMockRecorder) SubscribeNewBlockEvent(arg0 any) *FeedAPISubscribeNewBlockEventCall
- func (mr *MockFeedAPIMockRecorder) SubscribeNewTxEvent(arg0 any) *FeedAPISubscribeNewTxEventCall
- type MockGasAPI
- type MockGasAPIMockRecorder
- type MockNetworkAPI
- type MockNetworkAPIMockRecorder
- type MockTxPoolAPI
- func (m *MockTxPoolAPI) EXPECT() *MockTxPoolAPIMockRecorder
- func (m *MockTxPoolAPI) GetAccountMeta(account string, full bool) any
- func (m *MockTxPoolAPI) GetMeta(full bool) any
- func (m *MockTxPoolAPI) GetPendingTxCountByAccount(account string) uint64
- func (m *MockTxPoolAPI) GetTotalPendingTxCount() uint64
- func (m *MockTxPoolAPI) GetTransaction(hash *types.Hash) *types.Transaction
- type MockTxPoolAPIMockRecorder
- func (mr *MockTxPoolAPIMockRecorder) GetAccountMeta(account, full any) *TxPoolAPIGetAccountMetaCall
- func (mr *MockTxPoolAPIMockRecorder) GetMeta(full any) *TxPoolAPIGetMetaCall
- func (mr *MockTxPoolAPIMockRecorder) GetPendingTxCountByAccount(account any) *TxPoolAPIGetPendingTxCountByAccountCall
- func (mr *MockTxPoolAPIMockRecorder) GetTotalPendingTxCount() *TxPoolAPIGetTotalPendingTxCountCall
- func (mr *MockTxPoolAPIMockRecorder) GetTransaction(hash any) *TxPoolAPIGetTransactionCall
- type NetworkAPIPeerInfoCall
- type TxPoolAPIGetAccountMetaCall
- type TxPoolAPIGetMetaCall
- type TxPoolAPIGetPendingTxCountByAccountCall
- func (c *TxPoolAPIGetPendingTxCountByAccountCall) Do(f func(string) uint64) *TxPoolAPIGetPendingTxCountByAccountCall
- func (c *TxPoolAPIGetPendingTxCountByAccountCall) DoAndReturn(f func(string) uint64) *TxPoolAPIGetPendingTxCountByAccountCall
- func (c *TxPoolAPIGetPendingTxCountByAccountCall) Return(arg0 uint64) *TxPoolAPIGetPendingTxCountByAccountCall
- type TxPoolAPIGetTotalPendingTxCountCall
- func (c *TxPoolAPIGetTotalPendingTxCountCall) Do(f func() uint64) *TxPoolAPIGetTotalPendingTxCountCall
- func (c *TxPoolAPIGetTotalPendingTxCountCall) DoAndReturn(f func() uint64) *TxPoolAPIGetTotalPendingTxCountCall
- func (c *TxPoolAPIGetTotalPendingTxCountCall) Return(arg0 uint64) *TxPoolAPIGetTotalPendingTxCountCall
- type TxPoolAPIGetTransactionCall
- func (c *TxPoolAPIGetTransactionCall) Do(f func(*types.Hash) *types.Transaction) *TxPoolAPIGetTransactionCall
- func (c *TxPoolAPIGetTransactionCall) DoAndReturn(f func(*types.Hash) *types.Transaction) *TxPoolAPIGetTransactionCall
- func (c *TxPoolAPIGetTransactionCall) Return(arg0 *types.Transaction) *TxPoolAPIGetTransactionCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BrokerAPIChainConfigCall ¶
BrokerAPIChainConfigCall wrap *gomock.Call
func (*BrokerAPIChainConfigCall) Do ¶
func (c *BrokerAPIChainConfigCall) Do(f func() *params.ChainConfig) *BrokerAPIChainConfigCall
Do rewrite *gomock.Call.Do
func (*BrokerAPIChainConfigCall) DoAndReturn ¶
func (c *BrokerAPIChainConfigCall) DoAndReturn(f func() *params.ChainConfig) *BrokerAPIChainConfigCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*BrokerAPIChainConfigCall) Return ¶
func (c *BrokerAPIChainConfigCall) Return(arg0 *params.ChainConfig) *BrokerAPIChainConfigCall
Return rewrite *gomock.Call.Return
type BrokerAPIConsensusReadyCall ¶
BrokerAPIConsensusReadyCall wrap *gomock.Call
func (*BrokerAPIConsensusReadyCall) Do ¶
func (c *BrokerAPIConsensusReadyCall) Do(f func() error) *BrokerAPIConsensusReadyCall
Do rewrite *gomock.Call.Do
func (*BrokerAPIConsensusReadyCall) DoAndReturn ¶
func (c *BrokerAPIConsensusReadyCall) DoAndReturn(f func() error) *BrokerAPIConsensusReadyCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*BrokerAPIConsensusReadyCall) Return ¶
func (c *BrokerAPIConsensusReadyCall) Return(arg0 error) *BrokerAPIConsensusReadyCall
Return rewrite *gomock.Call.Return
type BrokerAPIGetBlockCall ¶
BrokerAPIGetBlockCall wrap *gomock.Call
func (*BrokerAPIGetBlockCall) Do ¶
func (c *BrokerAPIGetBlockCall) Do(f func(string, string) (*types.Block, error)) *BrokerAPIGetBlockCall
Do rewrite *gomock.Call.Do
func (*BrokerAPIGetBlockCall) DoAndReturn ¶
func (c *BrokerAPIGetBlockCall) DoAndReturn(f func(string, string) (*types.Block, error)) *BrokerAPIGetBlockCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*BrokerAPIGetBlockCall) Return ¶
func (c *BrokerAPIGetBlockCall) Return(arg0 *types.Block, arg1 error) *BrokerAPIGetBlockCall
Return rewrite *gomock.Call.Return
type BrokerAPIGetBlockHeadersCall ¶
BrokerAPIGetBlockHeadersCall wrap *gomock.Call
func (*BrokerAPIGetBlockHeadersCall) Do ¶
func (c *BrokerAPIGetBlockHeadersCall) Do(f func(uint64, uint64) ([]*types.BlockHeader, error)) *BrokerAPIGetBlockHeadersCall
Do rewrite *gomock.Call.Do
func (*BrokerAPIGetBlockHeadersCall) DoAndReturn ¶
func (c *BrokerAPIGetBlockHeadersCall) DoAndReturn(f func(uint64, uint64) ([]*types.BlockHeader, error)) *BrokerAPIGetBlockHeadersCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*BrokerAPIGetBlockHeadersCall) Return ¶
func (c *BrokerAPIGetBlockHeadersCall) Return(arg0 []*types.BlockHeader, arg1 error) *BrokerAPIGetBlockHeadersCall
Return rewrite *gomock.Call.Return
type BrokerAPIGetBlocksCall ¶
BrokerAPIGetBlocksCall wrap *gomock.Call
func (*BrokerAPIGetBlocksCall) Do ¶
func (c *BrokerAPIGetBlocksCall) Do(f func(uint64, uint64) ([]*types.Block, error)) *BrokerAPIGetBlocksCall
Do rewrite *gomock.Call.Do
func (*BrokerAPIGetBlocksCall) DoAndReturn ¶
func (c *BrokerAPIGetBlocksCall) DoAndReturn(f func(uint64, uint64) ([]*types.Block, error)) *BrokerAPIGetBlocksCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*BrokerAPIGetBlocksCall) Return ¶
func (c *BrokerAPIGetBlocksCall) Return(arg0 []*types.Block, arg1 error) *BrokerAPIGetBlocksCall
Return rewrite *gomock.Call.Return
type BrokerAPIGetEvmCall ¶
BrokerAPIGetEvmCall wrap *gomock.Call
func (*BrokerAPIGetEvmCall) Do ¶
func (c *BrokerAPIGetEvmCall) Do(f func(*vm.Message, *vm.Config) (*vm.EVM, error)) *BrokerAPIGetEvmCall
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 ¶
BrokerAPIGetReceiptCall wrap *gomock.Call
func (*BrokerAPIGetReceiptCall) Do ¶
func (c *BrokerAPIGetReceiptCall) Do(f func(*types.Hash) (*types.Receipt, error)) *BrokerAPIGetReceiptCall
Do rewrite *gomock.Call.Do
func (*BrokerAPIGetReceiptCall) DoAndReturn ¶
func (c *BrokerAPIGetReceiptCall) DoAndReturn(f func(*types.Hash) (*types.Receipt, error)) *BrokerAPIGetReceiptCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*BrokerAPIGetReceiptCall) Return ¶
func (c *BrokerAPIGetReceiptCall) Return(arg0 *types.Receipt, arg1 error) *BrokerAPIGetReceiptCall
Return rewrite *gomock.Call.Return
type BrokerAPIGetSystemContractCall ¶
BrokerAPIGetSystemContractCall wrap *gomock.Call
func (*BrokerAPIGetSystemContractCall) Do ¶
func (c *BrokerAPIGetSystemContractCall) Do(f func(*common0.Address) (common.SystemContract, bool)) *BrokerAPIGetSystemContractCall
Do rewrite *gomock.Call.Do
func (*BrokerAPIGetSystemContractCall) DoAndReturn ¶
func (c *BrokerAPIGetSystemContractCall) DoAndReturn(f func(*common0.Address) (common.SystemContract, bool)) *BrokerAPIGetSystemContractCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*BrokerAPIGetSystemContractCall) Return ¶
func (c *BrokerAPIGetSystemContractCall) Return(arg0 common.SystemContract, arg1 bool) *BrokerAPIGetSystemContractCall
Return rewrite *gomock.Call.Return
type BrokerAPIGetTransactionCall ¶
BrokerAPIGetTransactionCall wrap *gomock.Call
func (*BrokerAPIGetTransactionCall) Do ¶
func (c *BrokerAPIGetTransactionCall) Do(f func(*types.Hash) (*types.Transaction, error)) *BrokerAPIGetTransactionCall
Do rewrite *gomock.Call.Do
func (*BrokerAPIGetTransactionCall) DoAndReturn ¶
func (c *BrokerAPIGetTransactionCall) DoAndReturn(f func(*types.Hash) (*types.Transaction, error)) *BrokerAPIGetTransactionCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*BrokerAPIGetTransactionCall) Return ¶
func (c *BrokerAPIGetTransactionCall) Return(arg0 *types.Transaction, arg1 error) *BrokerAPIGetTransactionCall
Return rewrite *gomock.Call.Return
type BrokerAPIGetTransactionMetaCall ¶
BrokerAPIGetTransactionMetaCall wrap *gomock.Call
func (*BrokerAPIGetTransactionMetaCall) Do ¶
func (c *BrokerAPIGetTransactionMetaCall) Do(f func(*types.Hash) (*types.TransactionMeta, error)) *BrokerAPIGetTransactionMetaCall
Do rewrite *gomock.Call.Do
func (*BrokerAPIGetTransactionMetaCall) DoAndReturn ¶
func (c *BrokerAPIGetTransactionMetaCall) DoAndReturn(f func(*types.Hash) (*types.TransactionMeta, error)) *BrokerAPIGetTransactionMetaCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*BrokerAPIGetTransactionMetaCall) Return ¶
func (c *BrokerAPIGetTransactionMetaCall) Return(arg0 *types.TransactionMeta, arg1 error) *BrokerAPIGetTransactionMetaCall
Return rewrite *gomock.Call.Return
type BrokerAPIGetViewStateLedgerCall ¶
BrokerAPIGetViewStateLedgerCall wrap *gomock.Call
func (*BrokerAPIGetViewStateLedgerCall) Do ¶
func (c *BrokerAPIGetViewStateLedgerCall) Do(f func() ledger.StateLedger) *BrokerAPIGetViewStateLedgerCall
Do rewrite *gomock.Call.Do
func (*BrokerAPIGetViewStateLedgerCall) DoAndReturn ¶
func (c *BrokerAPIGetViewStateLedgerCall) DoAndReturn(f func() ledger.StateLedger) *BrokerAPIGetViewStateLedgerCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*BrokerAPIGetViewStateLedgerCall) Return ¶
func (c *BrokerAPIGetViewStateLedgerCall) Return(arg0 ledger.StateLedger) *BrokerAPIGetViewStateLedgerCall
Return rewrite *gomock.Call.Return
type BrokerAPIHandleTransactionCall ¶
BrokerAPIHandleTransactionCall wrap *gomock.Call
func (*BrokerAPIHandleTransactionCall) Do ¶
func (c *BrokerAPIHandleTransactionCall) Do(f func(*types.Transaction) error) *BrokerAPIHandleTransactionCall
Do rewrite *gomock.Call.Do
func (*BrokerAPIHandleTransactionCall) DoAndReturn ¶
func (c *BrokerAPIHandleTransactionCall) DoAndReturn(f func(*types.Transaction) error) *BrokerAPIHandleTransactionCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*BrokerAPIHandleTransactionCall) Return ¶
func (c *BrokerAPIHandleTransactionCall) Return(arg0 error) *BrokerAPIHandleTransactionCall
Return rewrite *gomock.Call.Return
type BrokerAPIStateAtTransactionCall ¶
BrokerAPIStateAtTransactionCall wrap *gomock.Call
func (*BrokerAPIStateAtTransactionCall) Do ¶
func (c *BrokerAPIStateAtTransactionCall) Do(f func(*types.Block, int, uint64) (*vm.Message, vm.BlockContext, *ledger.StateLedger, error)) *BrokerAPIStateAtTransactionCall
Do rewrite *gomock.Call.Do
func (*BrokerAPIStateAtTransactionCall) DoAndReturn ¶
func (c *BrokerAPIStateAtTransactionCall) DoAndReturn(f func(*types.Block, int, uint64) (*vm.Message, vm.BlockContext, *ledger.StateLedger, error)) *BrokerAPIStateAtTransactionCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*BrokerAPIStateAtTransactionCall) Return ¶
func (c *BrokerAPIStateAtTransactionCall) Return(arg0 *vm.Message, arg1 vm.BlockContext, arg2 *ledger.StateLedger, arg3 error) *BrokerAPIStateAtTransactionCall
Return rewrite *gomock.Call.Return
type ChainAPIMetaCall ¶
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 ¶
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 ¶
ChainAPITPSCall wrap *gomock.Call
func (*ChainAPITPSCall) Do ¶
func (c *ChainAPITPSCall) Do(f func(uint64, uint64) (uint64, error)) *ChainAPITPSCall
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 ¶
CoreAPIBrokerCall wrap *gomock.Call
func (*CoreAPIBrokerCall) Do ¶
func (c *CoreAPIBrokerCall) Do(f func() api.BrokerAPI) *CoreAPIBrokerCall
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 ¶
func (c *CoreAPIBrokerCall) Return(arg0 api.BrokerAPI) *CoreAPIBrokerCall
Return rewrite *gomock.Call.Return
type CoreAPIChainCall ¶
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 ¶
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 ¶
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 ¶
CoreAPITxPoolCall wrap *gomock.Call
func (*CoreAPITxPoolCall) Do ¶
func (c *CoreAPITxPoolCall) Do(f func() api.TxPoolAPI) *CoreAPITxPoolCall
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 ¶
func (c *CoreAPITxPoolCall) Return(arg0 api.TxPoolAPI) *CoreAPITxPoolCall
Return rewrite *gomock.Call.Return
type FeedAPIBloomStatusCall ¶
FeedAPIBloomStatusCall wrap *gomock.Call
func (*FeedAPIBloomStatusCall) Do ¶
func (c *FeedAPIBloomStatusCall) Do(f func() (uint64, uint64)) *FeedAPIBloomStatusCall
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 ¶
FeedAPISubscribeLogsEventCall wrap *gomock.Call
func (*FeedAPISubscribeLogsEventCall) Do ¶
func (c *FeedAPISubscribeLogsEventCall) Do(f func(chan<- []*types.EvmLog) event.Subscription) *FeedAPISubscribeLogsEventCall
Do rewrite *gomock.Call.Do
func (*FeedAPISubscribeLogsEventCall) DoAndReturn ¶
func (c *FeedAPISubscribeLogsEventCall) DoAndReturn(f func(chan<- []*types.EvmLog) event.Subscription) *FeedAPISubscribeLogsEventCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*FeedAPISubscribeLogsEventCall) Return ¶
func (c *FeedAPISubscribeLogsEventCall) Return(arg0 event.Subscription) *FeedAPISubscribeLogsEventCall
Return rewrite *gomock.Call.Return
type FeedAPISubscribeNewBlockEventCall ¶
FeedAPISubscribeNewBlockEventCall wrap *gomock.Call
func (*FeedAPISubscribeNewBlockEventCall) Do ¶
func (c *FeedAPISubscribeNewBlockEventCall) Do(f func(chan<- events.ExecutedEvent) event.Subscription) *FeedAPISubscribeNewBlockEventCall
Do rewrite *gomock.Call.Do
func (*FeedAPISubscribeNewBlockEventCall) DoAndReturn ¶
func (c *FeedAPISubscribeNewBlockEventCall) DoAndReturn(f func(chan<- events.ExecutedEvent) event.Subscription) *FeedAPISubscribeNewBlockEventCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*FeedAPISubscribeNewBlockEventCall) Return ¶
func (c *FeedAPISubscribeNewBlockEventCall) Return(arg0 event.Subscription) *FeedAPISubscribeNewBlockEventCall
Return rewrite *gomock.Call.Return
type FeedAPISubscribeNewTxEventCall ¶
FeedAPISubscribeNewTxEventCall wrap *gomock.Call
func (*FeedAPISubscribeNewTxEventCall) Do ¶
func (c *FeedAPISubscribeNewTxEventCall) Do(f func(chan<- []*types.Transaction) event.Subscription) *FeedAPISubscribeNewTxEventCall
Do rewrite *gomock.Call.Do
func (*FeedAPISubscribeNewTxEventCall) DoAndReturn ¶
func (c *FeedAPISubscribeNewTxEventCall) DoAndReturn(f func(chan<- []*types.Transaction) event.Subscription) *FeedAPISubscribeNewTxEventCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*FeedAPISubscribeNewTxEventCall) Return ¶
func (c *FeedAPISubscribeNewTxEventCall) Return(arg0 event.Subscription) *FeedAPISubscribeNewTxEventCall
Return rewrite *gomock.Call.Return
type GasAPIGetCurrentGasPriceCall ¶
GasAPIGetCurrentGasPriceCall wrap *gomock.Call
func (*GasAPIGetCurrentGasPriceCall) Do ¶
func (c *GasAPIGetCurrentGasPriceCall) Do(f func(uint64) (uint64, error)) *GasAPIGetCurrentGasPriceCall
Do rewrite *gomock.Call.Do
func (*GasAPIGetCurrentGasPriceCall) DoAndReturn ¶
func (c *GasAPIGetCurrentGasPriceCall) DoAndReturn(f func(uint64) (uint64, error)) *GasAPIGetCurrentGasPriceCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*GasAPIGetCurrentGasPriceCall) Return ¶
func (c *GasAPIGetCurrentGasPriceCall) Return(arg0 uint64, arg1 error) *GasAPIGetCurrentGasPriceCall
Return rewrite *gomock.Call.Return
type GasAPIGetGasPriceCall ¶
GasAPIGetGasPriceCall wrap *gomock.Call
func (*GasAPIGetGasPriceCall) Do ¶
func (c *GasAPIGetGasPriceCall) Do(f func() (uint64, error)) *GasAPIGetGasPriceCall
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 ¶
func (c *GasAPIGetGasPriceCall) Return(arg0 uint64, arg1 error) *GasAPIGetGasPriceCall
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 ¶
func (m *MockBrokerAPI) EXPECT() *MockBrokerAPIMockRecorder
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) GetReceipt ¶
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 ¶
func (mr *MockBrokerAPIMockRecorder) ChainConfig() *BrokerAPIChainConfigCall
ChainConfig indicates an expected call of ChainConfig.
func (*MockBrokerAPIMockRecorder) ConsensusReady ¶
func (mr *MockBrokerAPIMockRecorder) ConsensusReady() *BrokerAPIConsensusReadyCall
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 ¶
func (mr *MockBrokerAPIMockRecorder) GetReceipt(arg0 any) *BrokerAPIGetReceiptCall
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 ¶
func (mr *MockBrokerAPIMockRecorder) GetViewStateLedger() *BrokerAPIGetViewStateLedgerCall
GetViewStateLedger indicates an expected call of GetViewStateLedger.
func (*MockBrokerAPIMockRecorder) HandleTransaction ¶
func (mr *MockBrokerAPIMockRecorder) HandleTransaction(tx any) *BrokerAPIHandleTransactionCall
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 ¶
func (m *MockChainAPI) EXPECT() *MockChainAPIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockChainAPIMockRecorder ¶
type MockChainAPIMockRecorder struct {
// contains filtered or unexported fields
}
MockChainAPIMockRecorder is the mock recorder for MockChainAPI.
func (*MockChainAPIMockRecorder) Meta ¶
func (mr *MockChainAPIMockRecorder) Meta() *ChainAPIMetaCall
Meta indicates an expected call of Meta.
func (*MockChainAPIMockRecorder) Status ¶
func (mr *MockChainAPIMockRecorder) Status() *ChainAPIStatusCall
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) EXPECT ¶
func (m *MockCoreAPI) EXPECT() *MockCoreAPIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockCoreAPIMockRecorder ¶
type MockCoreAPIMockRecorder struct {
// contains filtered or unexported fields
}
MockCoreAPIMockRecorder is the mock recorder for MockCoreAPI.
func (*MockCoreAPIMockRecorder) Broker ¶
func (mr *MockCoreAPIMockRecorder) Broker() *CoreAPIBrokerCall
Broker indicates an expected call of Broker.
func (*MockCoreAPIMockRecorder) Chain ¶
func (mr *MockCoreAPIMockRecorder) Chain() *CoreAPIChainCall
Chain indicates an expected call of Chain.
func (*MockCoreAPIMockRecorder) Feed ¶
func (mr *MockCoreAPIMockRecorder) Feed() *CoreAPIFeedCall
Feed indicates an expected call of Feed.
func (*MockCoreAPIMockRecorder) Gas ¶
func (mr *MockCoreAPIMockRecorder) Gas() *CoreAPIGasCall
Gas indicates an expected call of Gas.
func (*MockCoreAPIMockRecorder) TxPool ¶
func (mr *MockCoreAPIMockRecorder) TxPool() *CoreAPITxPoolCall
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 ¶
func (mr *MockFeedAPIMockRecorder) BloomStatus() *FeedAPIBloomStatusCall
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 ¶
func (m *MockNetworkAPI) EXPECT() *MockNetworkAPIMockRecorder
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 ¶
func (mr *MockNetworkAPIMockRecorder) PeerInfo() *NetworkAPIPeerInfoCall
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 ¶
func (m *MockTxPoolAPI) EXPECT() *MockTxPoolAPIMockRecorder
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 ¶
func (mr *MockTxPoolAPIMockRecorder) GetMeta(full any) *TxPoolAPIGetMetaCall
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 ¶
NetworkAPIPeerInfoCall wrap *gomock.Call
func (*NetworkAPIPeerInfoCall) Do ¶
func (c *NetworkAPIPeerInfoCall) Do(f func() ([]byte, error)) *NetworkAPIPeerInfoCall
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 ¶
TxPoolAPIGetAccountMetaCall wrap *gomock.Call
func (*TxPoolAPIGetAccountMetaCall) Do ¶
func (c *TxPoolAPIGetAccountMetaCall) Do(f func(string, bool) any) *TxPoolAPIGetAccountMetaCall
Do rewrite *gomock.Call.Do
func (*TxPoolAPIGetAccountMetaCall) DoAndReturn ¶
func (c *TxPoolAPIGetAccountMetaCall) DoAndReturn(f func(string, bool) any) *TxPoolAPIGetAccountMetaCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*TxPoolAPIGetAccountMetaCall) Return ¶
func (c *TxPoolAPIGetAccountMetaCall) Return(arg0 any) *TxPoolAPIGetAccountMetaCall
Return rewrite *gomock.Call.Return
type TxPoolAPIGetMetaCall ¶
TxPoolAPIGetMetaCall wrap *gomock.Call
func (*TxPoolAPIGetMetaCall) Do ¶
func (c *TxPoolAPIGetMetaCall) Do(f func(bool) any) *TxPoolAPIGetMetaCall
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 ¶
func (c *TxPoolAPIGetMetaCall) Return(arg0 any) *TxPoolAPIGetMetaCall
Return rewrite *gomock.Call.Return
type TxPoolAPIGetPendingTxCountByAccountCall ¶
TxPoolAPIGetPendingTxCountByAccountCall wrap *gomock.Call
func (*TxPoolAPIGetPendingTxCountByAccountCall) Do ¶
func (c *TxPoolAPIGetPendingTxCountByAccountCall) Do(f func(string) uint64) *TxPoolAPIGetPendingTxCountByAccountCall
Do rewrite *gomock.Call.Do
func (*TxPoolAPIGetPendingTxCountByAccountCall) DoAndReturn ¶
func (c *TxPoolAPIGetPendingTxCountByAccountCall) DoAndReturn(f func(string) uint64) *TxPoolAPIGetPendingTxCountByAccountCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*TxPoolAPIGetPendingTxCountByAccountCall) Return ¶
func (c *TxPoolAPIGetPendingTxCountByAccountCall) Return(arg0 uint64) *TxPoolAPIGetPendingTxCountByAccountCall
Return rewrite *gomock.Call.Return
type TxPoolAPIGetTotalPendingTxCountCall ¶
TxPoolAPIGetTotalPendingTxCountCall wrap *gomock.Call
func (*TxPoolAPIGetTotalPendingTxCountCall) Do ¶
func (c *TxPoolAPIGetTotalPendingTxCountCall) Do(f func() uint64) *TxPoolAPIGetTotalPendingTxCountCall
Do rewrite *gomock.Call.Do
func (*TxPoolAPIGetTotalPendingTxCountCall) DoAndReturn ¶
func (c *TxPoolAPIGetTotalPendingTxCountCall) DoAndReturn(f func() uint64) *TxPoolAPIGetTotalPendingTxCountCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*TxPoolAPIGetTotalPendingTxCountCall) Return ¶
func (c *TxPoolAPIGetTotalPendingTxCountCall) Return(arg0 uint64) *TxPoolAPIGetTotalPendingTxCountCall
Return rewrite *gomock.Call.Return
type TxPoolAPIGetTransactionCall ¶
TxPoolAPIGetTransactionCall wrap *gomock.Call
func (*TxPoolAPIGetTransactionCall) Do ¶
func (c *TxPoolAPIGetTransactionCall) Do(f func(*types.Hash) *types.Transaction) *TxPoolAPIGetTransactionCall
Do rewrite *gomock.Call.Do
func (*TxPoolAPIGetTransactionCall) DoAndReturn ¶
func (c *TxPoolAPIGetTransactionCall) DoAndReturn(f func(*types.Hash) *types.Transaction) *TxPoolAPIGetTransactionCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*TxPoolAPIGetTransactionCall) Return ¶
func (c *TxPoolAPIGetTransactionCall) Return(arg0 *types.Transaction) *TxPoolAPIGetTransactionCall
Return rewrite *gomock.Call.Return