Documentation
¶
Overview ¶
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Index ¶
- type MockAPIs
- func (m *MockAPIs) APIs() []protocol.API
- func (m *MockAPIs) BlockHeight(ctx context.Context) (*hexutil.Uint64, error)
- func (m *MockAPIs) Call(ctx context.Context, hash models.VmMessage) (*hexutil.Bytes, error)
- func (m *MockAPIs) CompileContract(ctx context.Context, compileType protocol.CompileType, contract hexutil.Bytes) (*hexutil.Bytes, error)
- func (m *MockAPIs) EXPECT() *MockAPIsMockRecorder
- func (m *MockAPIs) EstimateGas(ctx context.Context, transaction models.Transaction) (*hexutil.Uint64, error)
- func (m *MockAPIs) FilterSubscribeHeaders(ctx context.Context) (*models.Header, error)
- func (m *MockAPIs) GetBlockByHash(ctx context.Context, blockHash types.Hash) (*models.Block, error)
- func (m *MockAPIs) GetBlockByHeight(ctx context.Context, blockHeight hexutil.Uint64) (*models.Block, error)
- func (m *MockAPIs) GetBlockTransactionCountByHash(ctx context.Context, blockHash types.Hash) (*hexutil.Uint64, error)
- func (m *MockAPIs) GetBlockTransactionCountByHeight(ctx context.Context, blockHeight hexutil.Uint64) (*hexutil.Uint64, error)
- func (m *MockAPIs) GetCode(ctx context.Context, contract types.Address, blockHeight hexutil.Uint64) (*hexutil.Bytes, error)
- func (m *MockAPIs) GetTransaction(ctx context.Context, hash types.Hash) models.Transaction
- func (m *MockAPIs) GetTransactionByBlockHashAndIndex(ctx context.Context, blockHash types.Hash, txIndex hexutil.Uint64) (models.Transaction, error)
- func (m *MockAPIs) GetTransactionByBlockHeightAndIndex(ctx context.Context, blockHeight, txIndex hexutil.Uint64) (models.Transaction, error)
- func (m *MockAPIs) GetTransactionCount(ctx context.Context, txType types.TxType, address string) (*hexutil.Uint64, error)
- func (m *MockAPIs) GetTransactionLogs(ctx context.Context, hash types.Hash) ([]*statetype.Log, error)
- func (m *MockAPIs) GetTransactionReceipt(ctx context.Context, hash types.Hash) (models.Transaction, error)
- func (m *MockAPIs) RegisterAPI(apis []protocol.API)
- func (m *MockAPIs) SendRawTransaction(ctx context.Context, txType types.TxType, rawTx hexutil.Bytes) (types.Hash, error)
- func (m *MockAPIs) Syncing(ctx context.Context) (*models.SyncingStatus, error)
- type MockAPIsMockRecorder
- func (mr *MockAPIsMockRecorder) APIs() *gomock.Call
- func (mr *MockAPIsMockRecorder) BlockHeight(ctx interface{}) *gomock.Call
- func (mr *MockAPIsMockRecorder) Call(ctx, hash interface{}) *gomock.Call
- func (mr *MockAPIsMockRecorder) CompileContract(ctx, compileType, contract interface{}) *gomock.Call
- func (mr *MockAPIsMockRecorder) EstimateGas(ctx, transaction interface{}) *gomock.Call
- func (mr *MockAPIsMockRecorder) FilterSubscribeHeaders(ctx interface{}) *gomock.Call
- func (mr *MockAPIsMockRecorder) GetBlockByHash(ctx, blockHash interface{}) *gomock.Call
- func (mr *MockAPIsMockRecorder) GetBlockByHeight(ctx, blockHeight interface{}) *gomock.Call
- func (mr *MockAPIsMockRecorder) GetBlockTransactionCountByHash(ctx, blockHash interface{}) *gomock.Call
- func (mr *MockAPIsMockRecorder) GetBlockTransactionCountByHeight(ctx, blockHeight interface{}) *gomock.Call
- func (mr *MockAPIsMockRecorder) GetCode(ctx, contract, blockHeight interface{}) *gomock.Call
- func (mr *MockAPIsMockRecorder) GetTransaction(ctx, hash interface{}) *gomock.Call
- func (mr *MockAPIsMockRecorder) GetTransactionByBlockHashAndIndex(ctx, blockHash, txIndex interface{}) *gomock.Call
- func (mr *MockAPIsMockRecorder) GetTransactionByBlockHeightAndIndex(ctx, blockHeight, txIndex interface{}) *gomock.Call
- func (mr *MockAPIsMockRecorder) GetTransactionCount(ctx, txType, address interface{}) *gomock.Call
- func (mr *MockAPIsMockRecorder) GetTransactionLogs(ctx, hash interface{}) *gomock.Call
- func (mr *MockAPIsMockRecorder) GetTransactionReceipt(ctx, hash interface{}) *gomock.Call
- func (mr *MockAPIsMockRecorder) RegisterAPI(apis interface{}) *gomock.Call
- func (mr *MockAPIsMockRecorder) SendRawTransaction(ctx, txType, rawTx interface{}) *gomock.Call
- func (mr *MockAPIsMockRecorder) Syncing(ctx interface{}) *gomock.Call
- type MockAppContext
- type MockAppContextMockRecorder
- type MockAppContexts
- type MockAppContextsMockRecorder
- type MockApplication
- func (m *MockApplication) Commit(ctx protocol.AppContext, header *models.Header) error
- func (m *MockApplication) DeleteErrTx(txI models.Transaction) error
- func (m *MockApplication) DeleteOkTx(txI models.Transaction) error
- func (m *MockApplication) EXPECT() *MockApplicationMockRecorder
- func (m *MockApplication) GetCacheNonce(ctx protocol.AppContext, account string) (uint64, error)
- func (m *MockApplication) NewAppContexts(module string, args ...interface{}) (protocol.AppContext, error)
- func (m *MockApplication) Prepare(ctx protocol.AppContext, header *models.Header, ...) *models.TxsStatus
- func (m *MockApplication) Start() error
- func (m *MockApplication) Stop() error
- func (m *MockApplication) TxPool(config protocol.Config, apps protocol.Apps, blockReader protocol.BlockReader, ...) (protocol.TxPool, error)
- func (m *MockApplication) ValidateTx(ctx protocol.AppContext, txI models.Transaction) error
- func (m *MockApplication) ValidateTxSafe(ctx protocol.AppContext, txI models.Transaction, headerTimestamp uint64) error
- type MockApplicationMockRecorder
- func (mr *MockApplicationMockRecorder) Commit(ctx, header interface{}) *gomock.Call
- func (mr *MockApplicationMockRecorder) DeleteErrTx(txI interface{}) *gomock.Call
- func (mr *MockApplicationMockRecorder) DeleteOkTx(txI interface{}) *gomock.Call
- func (mr *MockApplicationMockRecorder) GetCacheNonce(ctx, account interface{}) *gomock.Call
- func (mr *MockApplicationMockRecorder) NewAppContexts(module interface{}, args ...interface{}) *gomock.Call
- func (mr *MockApplicationMockRecorder) Prepare(ctx, header, txs, totalGas interface{}) *gomock.Call
- func (mr *MockApplicationMockRecorder) Start() *gomock.Call
- func (mr *MockApplicationMockRecorder) Stop() *gomock.Call
- func (mr *MockApplicationMockRecorder) TxPool(config, apps, blockReader, broadcaster interface{}) *gomock.Call
- func (mr *MockApplicationMockRecorder) ValidateTx(ctx, txI interface{}) *gomock.Call
- func (mr *MockApplicationMockRecorder) ValidateTxSafe(ctx, txI, headerTimestamp interface{}) *gomock.Call
- type MockApps
- func (m *MockApps) App(txType types.TxType) (protocol.Application, error)
- func (m *MockApps) Commit(ctx protocol.AppContexts, header *models.Header) error
- func (m *MockApps) EXPECT() *MockAppsMockRecorder
- func (m *MockApps) NewAppContexts(module string, preRoot []byte) (protocol.AppContexts, error)
- func (m *MockApps) Prepare(ctx protocol.AppContexts, preRoot []byte, header *models.Header, ...) ([]byte, models.AppsStatus)
- func (m *MockApps) Register(txType types.TxType, app protocol.Application)
- type MockAppsMockRecorder
- func (mr *MockAppsMockRecorder) App(txType interface{}) *gomock.Call
- func (mr *MockAppsMockRecorder) Commit(ctx, header interface{}) *gomock.Call
- func (mr *MockAppsMockRecorder) NewAppContexts(module, preRoot interface{}) *gomock.Call
- func (mr *MockAppsMockRecorder) Prepare(ctx, preRoot, header, txs, totalGas interface{}) *gomock.Call
- func (mr *MockAppsMockRecorder) Register(txType, app interface{}) *gomock.Call
- type MockBlockReadWriter
- func (m *MockBlockReadWriter) CurrentBlock() *models.Block
- func (m *MockBlockReadWriter) CurrentHeader() *models.Header
- func (m *MockBlockReadWriter) EXPECT() *MockBlockReadWriterMockRecorder
- func (m *MockBlockReadWriter) GetAncestor(hash types.Hash, number, ancestor uint64, maxNonCanonical *uint64) (types.Hash, uint64)
- func (m *MockBlockReadWriter) GetBlock(hash types.Hash, number uint64) *models.Block
- func (m *MockBlockReadWriter) GetBlockByHash(hash types.Hash) *models.Block
- func (m *MockBlockReadWriter) GetBlockByNumber(number uint64) *models.Block
- func (m *MockBlockReadWriter) GetBlockHashesFromHash(hash types.Hash, max uint64) []types.Hash
- func (m *MockBlockReadWriter) GetBody(hash types.Hash) *models.Body
- func (m *MockBlockReadWriter) GetHeader(hash types.Hash, number uint64) *models.Header
- func (m *MockBlockReadWriter) GetHeaderByHash(hash types.Hash) *models.Header
- func (m *MockBlockReadWriter) GetHeaderByNumber(number uint64) *models.Header
- func (m *MockBlockReadWriter) HasBlock(hash types.Hash, number uint64) bool
- func (m *MockBlockReadWriter) HasHeader(hash types.Hash, number uint64) bool
- func (m *MockBlockReadWriter) InsertBlock(block *models.Block, propagate bool) error
- func (m *MockBlockReadWriter) IsRunning() bool
- func (m *MockBlockReadWriter) ProcessBlock(block *models.Block, propagate bool) error
- func (m *MockBlockReadWriter) Start() error
- func (m *MockBlockReadWriter) Stop() error
- func (m *MockBlockReadWriter) SubscribeChainHeadEvent(ch chan<- eventtype.ChainHeadEvent) event.Subscription
- func (m *MockBlockReadWriter) ValidateBody(block *models.Block) error
- type MockBlockReadWriterMockRecorder
- func (mr *MockBlockReadWriterMockRecorder) CurrentBlock() *gomock.Call
- func (mr *MockBlockReadWriterMockRecorder) CurrentHeader() *gomock.Call
- func (mr *MockBlockReadWriterMockRecorder) GetAncestor(hash, number, ancestor, maxNonCanonical interface{}) *gomock.Call
- func (mr *MockBlockReadWriterMockRecorder) GetBlock(hash, number interface{}) *gomock.Call
- func (mr *MockBlockReadWriterMockRecorder) GetBlockByHash(hash interface{}) *gomock.Call
- func (mr *MockBlockReadWriterMockRecorder) GetBlockByNumber(number interface{}) *gomock.Call
- func (mr *MockBlockReadWriterMockRecorder) GetBlockHashesFromHash(hash, max interface{}) *gomock.Call
- func (mr *MockBlockReadWriterMockRecorder) GetBody(hash interface{}) *gomock.Call
- func (mr *MockBlockReadWriterMockRecorder) GetHeader(hash, number interface{}) *gomock.Call
- func (mr *MockBlockReadWriterMockRecorder) GetHeaderByHash(hash interface{}) *gomock.Call
- func (mr *MockBlockReadWriterMockRecorder) GetHeaderByNumber(number interface{}) *gomock.Call
- func (mr *MockBlockReadWriterMockRecorder) HasBlock(hash, number interface{}) *gomock.Call
- func (mr *MockBlockReadWriterMockRecorder) HasHeader(hash, number interface{}) *gomock.Call
- func (mr *MockBlockReadWriterMockRecorder) InsertBlock(block, propagate interface{}) *gomock.Call
- func (mr *MockBlockReadWriterMockRecorder) IsRunning() *gomock.Call
- func (mr *MockBlockReadWriterMockRecorder) ProcessBlock(block, propagate interface{}) *gomock.Call
- func (mr *MockBlockReadWriterMockRecorder) Start() *gomock.Call
- func (mr *MockBlockReadWriterMockRecorder) Stop() *gomock.Call
- func (mr *MockBlockReadWriterMockRecorder) SubscribeChainHeadEvent(ch interface{}) *gomock.Call
- func (mr *MockBlockReadWriterMockRecorder) ValidateBody(block interface{}) *gomock.Call
- type MockBlockReader
- func (m *MockBlockReader) CurrentBlock() *models.Block
- func (m *MockBlockReader) CurrentHeader() *models.Header
- func (m *MockBlockReader) EXPECT() *MockBlockReaderMockRecorder
- func (m *MockBlockReader) GetAncestor(hash types.Hash, number, ancestor uint64, maxNonCanonical *uint64) (types.Hash, uint64)
- func (m *MockBlockReader) GetBlock(hash types.Hash, number uint64) *models.Block
- func (m *MockBlockReader) GetBlockByHash(hash types.Hash) *models.Block
- func (m *MockBlockReader) GetBlockByNumber(number uint64) *models.Block
- func (m *MockBlockReader) GetBlockHashesFromHash(hash types.Hash, max uint64) []types.Hash
- func (m *MockBlockReader) GetBody(hash types.Hash) *models.Body
- func (m *MockBlockReader) GetHeader(hash types.Hash, number uint64) *models.Header
- func (m *MockBlockReader) GetHeaderByHash(hash types.Hash) *models.Header
- func (m *MockBlockReader) GetHeaderByNumber(number uint64) *models.Header
- func (m *MockBlockReader) HasBlock(hash types.Hash, number uint64) bool
- func (m *MockBlockReader) HasHeader(hash types.Hash, number uint64) bool
- func (m *MockBlockReader) IsRunning() bool
- func (m *MockBlockReader) Start() error
- func (m *MockBlockReader) Stop() error
- func (m *MockBlockReader) SubscribeChainHeadEvent(ch chan<- eventtype.ChainHeadEvent) event.Subscription
- func (m *MockBlockReader) ValidateBody(block *models.Block) error
- type MockBlockReaderMockRecorder
- func (mr *MockBlockReaderMockRecorder) CurrentBlock() *gomock.Call
- func (mr *MockBlockReaderMockRecorder) CurrentHeader() *gomock.Call
- func (mr *MockBlockReaderMockRecorder) GetAncestor(hash, number, ancestor, maxNonCanonical interface{}) *gomock.Call
- func (mr *MockBlockReaderMockRecorder) GetBlock(hash, number interface{}) *gomock.Call
- func (mr *MockBlockReaderMockRecorder) GetBlockByHash(hash interface{}) *gomock.Call
- func (mr *MockBlockReaderMockRecorder) GetBlockByNumber(number interface{}) *gomock.Call
- func (mr *MockBlockReaderMockRecorder) GetBlockHashesFromHash(hash, max interface{}) *gomock.Call
- func (mr *MockBlockReaderMockRecorder) GetBody(hash interface{}) *gomock.Call
- func (mr *MockBlockReaderMockRecorder) GetHeader(hash, number interface{}) *gomock.Call
- func (mr *MockBlockReaderMockRecorder) GetHeaderByHash(hash interface{}) *gomock.Call
- func (mr *MockBlockReaderMockRecorder) GetHeaderByNumber(number interface{}) *gomock.Call
- func (mr *MockBlockReaderMockRecorder) HasBlock(hash, number interface{}) *gomock.Call
- func (mr *MockBlockReaderMockRecorder) HasHeader(hash, number interface{}) *gomock.Call
- func (mr *MockBlockReaderMockRecorder) IsRunning() *gomock.Call
- func (mr *MockBlockReaderMockRecorder) Start() *gomock.Call
- func (mr *MockBlockReaderMockRecorder) Stop() *gomock.Call
- func (mr *MockBlockReaderMockRecorder) SubscribeChainHeadEvent(ch interface{}) *gomock.Call
- func (mr *MockBlockReaderMockRecorder) ValidateBody(block interface{}) *gomock.Call
- type MockBlockWriter
- type MockBlockWriterMockRecorder
- type MockBroadcaster
- func (m *MockBroadcaster) Broadcast(peers []models.P2PID, mType uint, payload []byte) error
- func (m *MockBroadcaster) BroadcastTxs(peerId *models.P2PID, txs []models.Transaction, isForce bool)
- func (m *MockBroadcaster) DeregisterTrustPeer(peerID models.P2PID) error
- func (m *MockBroadcaster) EXPECT() *MockBroadcasterMockRecorder
- func (m *MockBroadcaster) RegisterTrustPeer(peerID models.P2PID) error
- func (m *MockBroadcaster) Start() error
- func (m *MockBroadcaster) Stop() error
- func (m *MockBroadcaster) SubscribeDropPeer(dropPeerCh chan models.P2PID) event.Subscription
- func (m *MockBroadcaster) SubscribeMsg(msgType uint, ch chan<- *models.P2PMessage) event.Subscription
- func (m *MockBroadcaster) SubscribeNewPeer(newPeerCh chan models.P2PID) event.Subscription
- type MockBroadcasterMockRecorder
- func (mr *MockBroadcasterMockRecorder) Broadcast(peers, mType, payload interface{}) *gomock.Call
- func (mr *MockBroadcasterMockRecorder) BroadcastTxs(peerId, txs, isForce interface{}) *gomock.Call
- func (mr *MockBroadcasterMockRecorder) DeregisterTrustPeer(peerID interface{}) *gomock.Call
- func (mr *MockBroadcasterMockRecorder) RegisterTrustPeer(peerID interface{}) *gomock.Call
- func (mr *MockBroadcasterMockRecorder) Start() *gomock.Call
- func (mr *MockBroadcasterMockRecorder) Stop() *gomock.Call
- func (mr *MockBroadcasterMockRecorder) SubscribeDropPeer(dropPeerCh interface{}) *gomock.Call
- func (mr *MockBroadcasterMockRecorder) SubscribeMsg(msgType, ch interface{}) *gomock.Call
- func (mr *MockBroadcasterMockRecorder) SubscribeNewPeer(newPeerCh interface{}) *gomock.Call
- type MockChainContext
- type MockChainContext2
- type MockChainContext2MockRecorder
- type MockChainContextMockRecorder
- type MockConfig
- func (m *MockConfig) BlockchainConfig() models.BlockchainLocalConfig
- func (m *MockConfig) BroadcasterConfig() models.BroadcasterLocalConfig
- func (m *MockConfig) ChainConfig() models.ChainConfig
- func (m *MockConfig) ConsensusConfig() models.ConsensusLocalConfig
- func (m *MockConfig) DatabaseConfig() models.DatabaseConfig
- func (m *MockConfig) EXPECT() *MockConfigMockRecorder
- func (m *MockConfig) EnablePacker() bool
- func (m *MockConfig) GenesisBlock() *models.Block
- func (m *MockConfig) LocalConfig() *models.LocalConfig
- func (m *MockConfig) NodeKeyConfig() models.NodeKeyLocalConfig
- func (m *MockConfig) P2PConfig() models.P2PConfig
- func (m *MockConfig) PackerConfig() models.PackerLocalConfig
- func (m *MockConfig) SetDatabase(db protocol.DatabaseReader) error
- func (m *MockConfig) TxPoolConfig() models.TxPoolLocalConfig
- func (m *MockConfig) TxSizeLimit() types.StorageSize
- type MockConfigMockRecorder
- func (mr *MockConfigMockRecorder) BlockchainConfig() *gomock.Call
- func (mr *MockConfigMockRecorder) BroadcasterConfig() *gomock.Call
- func (mr *MockConfigMockRecorder) ChainConfig() *gomock.Call
- func (mr *MockConfigMockRecorder) ConsensusConfig() *gomock.Call
- func (mr *MockConfigMockRecorder) DatabaseConfig() *gomock.Call
- func (mr *MockConfigMockRecorder) EnablePacker() *gomock.Call
- func (mr *MockConfigMockRecorder) GenesisBlock() *gomock.Call
- func (mr *MockConfigMockRecorder) LocalConfig() *gomock.Call
- func (mr *MockConfigMockRecorder) NodeKeyConfig() *gomock.Call
- func (mr *MockConfigMockRecorder) P2PConfig() *gomock.Call
- func (mr *MockConfigMockRecorder) PackerConfig() *gomock.Call
- func (mr *MockConfigMockRecorder) SetDatabase(db interface{}) *gomock.Call
- func (mr *MockConfigMockRecorder) TxPoolConfig() *gomock.Call
- func (mr *MockConfigMockRecorder) TxSizeLimit() *gomock.Call
- type MockConsensus
- func (m *MockConsensus) Begin() error
- func (m *MockConsensus) EXPECT() *MockConsensusMockRecorder
- func (m *MockConsensus) Finalize(blockReader protocol.BlockReader, header *models.Header, ...) (*models.Block, error)
- func (m *MockConsensus) Prepare(blockReader protocol.BlockReader, header *models.Header) error
- func (m *MockConsensus) Seal(ctx context.Context, blockReader protocol.BlockReader, block *models.Block, ...) error
- func (m *MockConsensus) Start() error
- func (m *MockConsensus) Stop() error
- func (m *MockConsensus) VerifyHeader(blockReader protocol.BlockReader, header *models.Header) error
- func (m *MockConsensus) VerifyHeaders(blockReader protocol.BlockReader, headers []*models.Header, seals []bool) (chan<- struct{}, <-chan error)
- type MockConsensusMockRecorder
- func (mr *MockConsensusMockRecorder) Begin() *gomock.Call
- func (mr *MockConsensusMockRecorder) Finalize(blockReader, header, txs interface{}) *gomock.Call
- func (mr *MockConsensusMockRecorder) Prepare(blockReader, header interface{}) *gomock.Call
- func (mr *MockConsensusMockRecorder) Seal(ctx, blockReader, block, results interface{}) *gomock.Call
- func (mr *MockConsensusMockRecorder) Start() *gomock.Call
- func (mr *MockConsensusMockRecorder) Stop() *gomock.Call
- func (mr *MockConsensusMockRecorder) VerifyHeader(blockReader, header interface{}) *gomock.Call
- func (mr *MockConsensusMockRecorder) VerifyHeaders(blockReader, headers, seals interface{}) *gomock.Call
- type MockContract
- func (m *MockContract) Address() types.Address
- func (m *MockContract) AsDelegate() protocol.Contract
- func (m *MockContract) Caller() types.Address
- func (m *MockContract) EXPECT() *MockContractMockRecorder
- func (m *MockContract) SetCallCode(addr *types.Address, hash types.Hash, code []byte)
- func (m *MockContract) UseGas(gas uint64) bool
- func (m *MockContract) Value() *big.Int
- type MockContractMockRecorder
- func (mr *MockContractMockRecorder) Address() *gomock.Call
- func (mr *MockContractMockRecorder) AsDelegate() *gomock.Call
- func (mr *MockContractMockRecorder) Caller() *gomock.Call
- func (mr *MockContractMockRecorder) SetCallCode(addr, hash, code interface{}) *gomock.Call
- func (mr *MockContractMockRecorder) UseGas(gas interface{}) *gomock.Call
- func (mr *MockContractMockRecorder) Value() *gomock.Call
- type MockContractRef
- type MockContractRefMockRecorder
- type MockDatabase
- func (m *MockDatabase) ChainConfig() (*models.ChainConfig, error)
- func (m *MockDatabase) CurrentBlock() (*models.Block, error)
- func (m *MockDatabase) DeleteBlock(blockAbs []models.BlockAbstract, currentHeight, desHeight uint64) error
- func (m *MockDatabase) EXPECT() *MockDatabaseMockRecorder
- func (m *MockDatabase) GetBlock(hash types.Hash, height uint64) (*models.Block, error)
- func (m *MockDatabase) GetBlockByHash(hash types.Hash) (*models.Block, error)
- func (m *MockDatabase) GetBlockByHeight(height uint64) (*models.Block, error)
- func (m *MockDatabase) GetBody(hash types.Hash, height uint64) (*models.Body, error)
- func (m *MockDatabase) GetCanonicalHash(height uint64) (types.Hash, error)
- func (m *MockDatabase) GetChainConfig(hash types.Hash, height uint64) (*models.ChainConfig, error)
- func (m *MockDatabase) GetChainConfigByHash(hash types.Hash) (*models.ChainConfig, error)
- func (m *MockDatabase) GetChainConfigByHeight(height uint64) (*models.ChainConfig, error)
- func (m *MockDatabase) GetHeader(hash types.Hash, height uint64) (*models.Header, error)
- func (m *MockDatabase) GetHeaderByHash(hash types.Hash) (*models.Header, error)
- func (m *MockDatabase) GetHeaderByHeight(height uint64) (*models.Header, error)
- func (m *MockDatabase) GetHeaderHeight(hash types.Hash) (*uint64, error)
- func (m *MockDatabase) GetReceipts(bHash types.Hash, height uint64) (statetype.Receipts, error)
- func (m *MockDatabase) GetTransaction(hash types.Hash) (models.Transaction, types.Hash, uint64, uint64, error)
- func (m *MockDatabase) HasBlock(hash types.Hash, number uint64) (bool, error)
- func (m *MockDatabase) HasHeader(hash types.Hash, height uint64) (bool, error)
- func (m *MockDatabase) LatestBlockHash() (types.Hash, error)
- func (m *MockDatabase) LatestHeader() (*models.Header, error)
- func (m *MockDatabase) LatestHeaderHash() (types.Hash, error)
- func (m *MockDatabase) Start() error
- func (m *MockDatabase) Stop() error
- func (m *MockDatabase) WriteBlock(block *models.Block) error
- func (m *MockDatabase) WriteCanonicalHash(bHash types.Hash, height uint64) error
- func (m *MockDatabase) WriteChainConfig(bHash types.Hash, height uint64, chainConfig *models.ChainConfig) error
- func (m *MockDatabase) WriteHeader(header *models.Header) error
- func (m *MockDatabase) WriteLatestBlockHash(bHash types.Hash) error
- func (m *MockDatabase) WriteLatestHeaderHash(bHash types.Hash) error
- func (m *MockDatabase) WriteReceipts(bHash types.Hash, height uint64, receipts statetype.Receipts) error
- func (m *MockDatabase) WriteTxsLookup(block *models.Block) error
- type MockDatabaseMockRecorder
- func (mr *MockDatabaseMockRecorder) ChainConfig() *gomock.Call
- func (mr *MockDatabaseMockRecorder) CurrentBlock() *gomock.Call
- func (mr *MockDatabaseMockRecorder) DeleteBlock(blockAbs, currentHeight, desHeight interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) GetBlock(hash, height interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) GetBlockByHash(hash interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) GetBlockByHeight(height interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) GetBody(hash, height interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) GetCanonicalHash(height interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) GetChainConfig(hash, height interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) GetChainConfigByHash(hash interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) GetChainConfigByHeight(height interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) GetHeader(hash, height interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) GetHeaderByHash(hash interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) GetHeaderByHeight(height interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) GetHeaderHeight(hash interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) GetReceipts(bHash, height interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) GetTransaction(hash interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) HasBlock(hash, number interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) HasHeader(hash, height interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) LatestBlockHash() *gomock.Call
- func (mr *MockDatabaseMockRecorder) LatestHeader() *gomock.Call
- func (mr *MockDatabaseMockRecorder) LatestHeaderHash() *gomock.Call
- func (mr *MockDatabaseMockRecorder) Start() *gomock.Call
- func (mr *MockDatabaseMockRecorder) Stop() *gomock.Call
- func (mr *MockDatabaseMockRecorder) WriteBlock(block interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) WriteCanonicalHash(bHash, height interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) WriteChainConfig(bHash, height, chainConfig interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) WriteHeader(header interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) WriteLatestBlockHash(bHash interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) WriteLatestHeaderHash(bHash interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) WriteReceipts(bHash, height, receipts interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) WriteTxsLookup(block interface{}) *gomock.Call
- type MockDatabaseReader
- func (m *MockDatabaseReader) ChainConfig() (*models.ChainConfig, error)
- func (m *MockDatabaseReader) CurrentBlock() (*models.Block, error)
- func (m *MockDatabaseReader) EXPECT() *MockDatabaseReaderMockRecorder
- func (m *MockDatabaseReader) GetBlock(hash types.Hash, height uint64) (*models.Block, error)
- func (m *MockDatabaseReader) GetBlockByHash(hash types.Hash) (*models.Block, error)
- func (m *MockDatabaseReader) GetBlockByHeight(height uint64) (*models.Block, error)
- func (m *MockDatabaseReader) GetBody(hash types.Hash, height uint64) (*models.Body, error)
- func (m *MockDatabaseReader) GetCanonicalHash(height uint64) (types.Hash, error)
- func (m *MockDatabaseReader) GetChainConfig(hash types.Hash, height uint64) (*models.ChainConfig, error)
- func (m *MockDatabaseReader) GetChainConfigByHash(hash types.Hash) (*models.ChainConfig, error)
- func (m *MockDatabaseReader) GetChainConfigByHeight(height uint64) (*models.ChainConfig, error)
- func (m *MockDatabaseReader) GetHeader(hash types.Hash, height uint64) (*models.Header, error)
- func (m *MockDatabaseReader) GetHeaderByHash(hash types.Hash) (*models.Header, error)
- func (m *MockDatabaseReader) GetHeaderByHeight(height uint64) (*models.Header, error)
- func (m *MockDatabaseReader) GetHeaderHeight(hash types.Hash) (*uint64, error)
- func (m *MockDatabaseReader) GetReceipts(bHash types.Hash, height uint64) (statetype.Receipts, error)
- func (m *MockDatabaseReader) GetTransaction(hash types.Hash) (models.Transaction, types.Hash, uint64, uint64, error)
- func (m *MockDatabaseReader) HasBlock(hash types.Hash, number uint64) (bool, error)
- func (m *MockDatabaseReader) HasHeader(hash types.Hash, height uint64) (bool, error)
- func (m *MockDatabaseReader) LatestBlockHash() (types.Hash, error)
- func (m *MockDatabaseReader) LatestHeader() (*models.Header, error)
- func (m *MockDatabaseReader) LatestHeaderHash() (types.Hash, error)
- func (m *MockDatabaseReader) Start() error
- func (m *MockDatabaseReader) Stop() error
- type MockDatabaseReaderMockRecorder
- func (mr *MockDatabaseReaderMockRecorder) ChainConfig() *gomock.Call
- func (mr *MockDatabaseReaderMockRecorder) CurrentBlock() *gomock.Call
- func (mr *MockDatabaseReaderMockRecorder) GetBlock(hash, height interface{}) *gomock.Call
- func (mr *MockDatabaseReaderMockRecorder) GetBlockByHash(hash interface{}) *gomock.Call
- func (mr *MockDatabaseReaderMockRecorder) GetBlockByHeight(height interface{}) *gomock.Call
- func (mr *MockDatabaseReaderMockRecorder) GetBody(hash, height interface{}) *gomock.Call
- func (mr *MockDatabaseReaderMockRecorder) GetCanonicalHash(height interface{}) *gomock.Call
- func (mr *MockDatabaseReaderMockRecorder) GetChainConfig(hash, height interface{}) *gomock.Call
- func (mr *MockDatabaseReaderMockRecorder) GetChainConfigByHash(hash interface{}) *gomock.Call
- func (mr *MockDatabaseReaderMockRecorder) GetChainConfigByHeight(height interface{}) *gomock.Call
- func (mr *MockDatabaseReaderMockRecorder) GetHeader(hash, height interface{}) *gomock.Call
- func (mr *MockDatabaseReaderMockRecorder) GetHeaderByHash(hash interface{}) *gomock.Call
- func (mr *MockDatabaseReaderMockRecorder) GetHeaderByHeight(height interface{}) *gomock.Call
- func (mr *MockDatabaseReaderMockRecorder) GetHeaderHeight(hash interface{}) *gomock.Call
- func (mr *MockDatabaseReaderMockRecorder) GetReceipts(bHash, height interface{}) *gomock.Call
- func (mr *MockDatabaseReaderMockRecorder) GetTransaction(hash interface{}) *gomock.Call
- func (mr *MockDatabaseReaderMockRecorder) HasBlock(hash, number interface{}) *gomock.Call
- func (mr *MockDatabaseReaderMockRecorder) HasHeader(hash, height interface{}) *gomock.Call
- func (mr *MockDatabaseReaderMockRecorder) LatestBlockHash() *gomock.Call
- func (mr *MockDatabaseReaderMockRecorder) LatestHeader() *gomock.Call
- func (mr *MockDatabaseReaderMockRecorder) LatestHeaderHash() *gomock.Call
- func (mr *MockDatabaseReaderMockRecorder) Start() *gomock.Call
- func (mr *MockDatabaseReaderMockRecorder) Stop() *gomock.Call
- type MockDatabaseWriter
- func (m *MockDatabaseWriter) DeleteBlock(blockAbs []models.BlockAbstract, currentHeight, desHeight uint64) error
- func (m *MockDatabaseWriter) EXPECT() *MockDatabaseWriterMockRecorder
- func (m *MockDatabaseWriter) WriteBlock(block *models.Block) error
- func (m *MockDatabaseWriter) WriteCanonicalHash(bHash types.Hash, height uint64) error
- func (m *MockDatabaseWriter) WriteChainConfig(bHash types.Hash, height uint64, chainConfig *models.ChainConfig) error
- func (m *MockDatabaseWriter) WriteHeader(header *models.Header) error
- func (m *MockDatabaseWriter) WriteLatestBlockHash(bHash types.Hash) error
- func (m *MockDatabaseWriter) WriteLatestHeaderHash(bHash types.Hash) error
- func (m *MockDatabaseWriter) WriteReceipts(bHash types.Hash, height uint64, receipts statetype.Receipts) error
- func (m *MockDatabaseWriter) WriteTxsLookup(block *models.Block) error
- type MockDatabaseWriterMockRecorder
- func (mr *MockDatabaseWriterMockRecorder) DeleteBlock(blockAbs, currentHeight, desHeight interface{}) *gomock.Call
- func (mr *MockDatabaseWriterMockRecorder) WriteBlock(block interface{}) *gomock.Call
- func (mr *MockDatabaseWriterMockRecorder) WriteCanonicalHash(bHash, height interface{}) *gomock.Call
- func (mr *MockDatabaseWriterMockRecorder) WriteChainConfig(bHash, height, chainConfig interface{}) *gomock.Call
- func (mr *MockDatabaseWriterMockRecorder) WriteHeader(header interface{}) *gomock.Call
- func (mr *MockDatabaseWriterMockRecorder) WriteLatestBlockHash(bHash interface{}) *gomock.Call
- func (mr *MockDatabaseWriterMockRecorder) WriteLatestHeaderHash(bHash interface{}) *gomock.Call
- func (mr *MockDatabaseWriterMockRecorder) WriteReceipts(bHash, height, receipts interface{}) *gomock.Call
- func (mr *MockDatabaseWriterMockRecorder) WriteTxsLookup(block interface{}) *gomock.Call
- type MockHandshake
- type MockHandshakeMockRecorder
- type MockKVStore
- type MockKVStoreDeleter
- type MockKVStoreDeleterMockRecorder
- type MockKVStoreMockRecorder
- type MockKVStoreReader
- type MockKVStoreReaderMockRecorder
- type MockKVStoreWriter
- type MockKVStoreWriterMockRecorder
- type MockKey
- func (m *MockKey) EXPECT() *MockKeyMockRecorder
- func (m *MockKey) Equals(arg0 protocol.Key) bool
- func (m *MockKey) Hash() func() hash.Hash
- func (m *MockKey) Marshal() ([]byte, error)
- func (m *MockKey) Raw() ([]byte, error)
- func (m *MockKey) Type() protocol.KeyType
- func (m *MockKey) Unmarshal(input []byte) error
- type MockKeyMockRecorder
- func (mr *MockKeyMockRecorder) Equals(arg0 interface{}) *gomock.Call
- func (mr *MockKeyMockRecorder) Hash() *gomock.Call
- func (mr *MockKeyMockRecorder) Marshal() *gomock.Call
- func (mr *MockKeyMockRecorder) Raw() *gomock.Call
- func (mr *MockKeyMockRecorder) Type() *gomock.Call
- func (mr *MockKeyMockRecorder) Unmarshal(input interface{}) *gomock.Call
- type MockNode
- func (m *MockNode) APIs() protocol.APIs
- func (m *MockNode) AddTxPool(txType types.TxType, txPool protocol.TxPool)
- func (m *MockNode) Apps() protocol.Apps
- func (m *MockNode) BlockReadWriter() protocol.BlockReadWriter
- func (m *MockNode) Config() protocol.Config
- func (m *MockNode) Database() protocol.Database
- func (m *MockNode) EXPECT() *MockNodeMockRecorder
- func (m *MockNode) Init() error
- func (m *MockNode) KVDatabase() kvstore.Database
- func (m *MockNode) NodeKey() protocol.NodeKey
- func (m *MockNode) SetConsensus(consensus protocol.Consensus) error
- func (m *MockNode) Start() error
- func (m *MockNode) Stop() error
- func (m *MockNode) Wait()
- type MockNodeKey
- func (m *MockNodeKey) EXPECT() *MockNodeKeyMockRecorder
- func (m *MockNodeKey) ID() (models.NodeID, error)
- func (m *MockNodeKey) IdFromPub(pub crypto.PublicKey) (models.NodeID, error)
- func (m *MockNodeKey) PubKey(pubKey crypto.PublicKey) (protocol.PubKey, error)
- func (m *MockNodeKey) RecoverId(data []byte, signResult *signature.SignResult) (models.NodeID, error)
- func (m *MockNodeKey) RecoverPub(data []byte, signResult *signature.SignResult) (protocol.PubKey, error)
- func (m *MockNodeKey) Sign(data []byte) (*signature.SignResult, error)
- func (m *MockNodeKey) Verify(data []byte, signResult *signature.SignResult) (bool, error)
- type MockNodeKeyMockRecorder
- func (mr *MockNodeKeyMockRecorder) ID() *gomock.Call
- func (mr *MockNodeKeyMockRecorder) IdFromPub(pub interface{}) *gomock.Call
- func (mr *MockNodeKeyMockRecorder) PubKey(pubKey interface{}) *gomock.Call
- func (mr *MockNodeKeyMockRecorder) RecoverId(data, signResult interface{}) *gomock.Call
- func (mr *MockNodeKeyMockRecorder) RecoverPub(data, signResult interface{}) *gomock.Call
- func (mr *MockNodeKeyMockRecorder) Sign(data interface{}) *gomock.Call
- func (mr *MockNodeKeyMockRecorder) Verify(data, signResult interface{}) *gomock.Call
- type MockNodeMockRecorder
- func (mr *MockNodeMockRecorder) APIs() *gomock.Call
- func (mr *MockNodeMockRecorder) AddTxPool(txType, txPool interface{}) *gomock.Call
- func (mr *MockNodeMockRecorder) Apps() *gomock.Call
- func (mr *MockNodeMockRecorder) BlockReadWriter() *gomock.Call
- func (mr *MockNodeMockRecorder) Config() *gomock.Call
- func (mr *MockNodeMockRecorder) Database() *gomock.Call
- func (mr *MockNodeMockRecorder) Init() *gomock.Call
- func (mr *MockNodeMockRecorder) KVDatabase() *gomock.Call
- func (mr *MockNodeMockRecorder) NodeKey() *gomock.Call
- func (mr *MockNodeMockRecorder) SetConsensus(consensus interface{}) *gomock.Call
- func (mr *MockNodeMockRecorder) Start() *gomock.Call
- func (mr *MockNodeMockRecorder) Stop() *gomock.Call
- func (mr *MockNodeMockRecorder) Wait() *gomock.Call
- type MockOPCode
- type MockOPCodeMockRecorder
- type MockP2PService
- func (m *MockP2PService) AddPeer(peerUrl string) error
- func (m *MockP2PService) DropPeer(peerId models.P2PID) error
- func (m *MockP2PService) EXPECT() *MockP2PServiceMockRecorder
- func (m *MockP2PService) HandshakeSuccess(peerId models.P2PID)
- func (m *MockP2PService) Id() models.P2PID
- func (m *MockP2PService) NetURL() string
- func (m *MockP2PService) P2PInfo() map[string]*models.P2PInfo
- func (m *MockP2PService) RemotePeers() []models.P2PID
- func (m *MockP2PService) Send(peerId models.P2PID, msg *models.P2PMessage) error
- func (m *MockP2PService) Start() error
- func (m *MockP2PService) Stop() error
- func (m *MockP2PService) SubscribeDropPeer(ch chan<- models.P2PID) event.Subscription
- func (m *MockP2PService) SubscribeHandshakePeer(ch chan<- models.P2PID) event.Subscription
- func (m *MockP2PService) SubscribeMsg(msgType uint, ch chan<- *models.P2PMessage) event.Subscription
- func (m *MockP2PService) SubscribeNewPeer(ch chan<- models.P2PID) event.Subscription
- type MockP2PServiceMockRecorder
- func (mr *MockP2PServiceMockRecorder) AddPeer(peerUrl interface{}) *gomock.Call
- func (mr *MockP2PServiceMockRecorder) DropPeer(peerId interface{}) *gomock.Call
- func (mr *MockP2PServiceMockRecorder) HandshakeSuccess(peerId interface{}) *gomock.Call
- func (mr *MockP2PServiceMockRecorder) Id() *gomock.Call
- func (mr *MockP2PServiceMockRecorder) NetURL() *gomock.Call
- func (mr *MockP2PServiceMockRecorder) P2PInfo() *gomock.Call
- func (mr *MockP2PServiceMockRecorder) RemotePeers() *gomock.Call
- func (mr *MockP2PServiceMockRecorder) Send(peerId, msg interface{}) *gomock.Call
- func (mr *MockP2PServiceMockRecorder) Start() *gomock.Call
- func (mr *MockP2PServiceMockRecorder) Stop() *gomock.Call
- func (mr *MockP2PServiceMockRecorder) SubscribeDropPeer(ch interface{}) *gomock.Call
- func (mr *MockP2PServiceMockRecorder) SubscribeHandshakePeer(ch interface{}) *gomock.Call
- func (mr *MockP2PServiceMockRecorder) SubscribeMsg(msgType, ch interface{}) *gomock.Call
- func (mr *MockP2PServiceMockRecorder) SubscribeNewPeer(ch interface{}) *gomock.Call
- type MockPacker
- type MockPackerMockRecorder
- type MockPermission
- func (m *MockPermission) AddPermission(peerId models.P2PID, key string, info permission.MemberInfo, ...) error
- func (m *MockPermission) AddSupervisor(key string, info permission.MemberInfo) error
- func (m *MockPermission) DelPermission(peerId models.P2PID, key string, r permission.RoleType) error
- func (m *MockPermission) DelSupervisor(key string) error
- func (m *MockPermission) EXPECT() *MockPermissionMockRecorder
- func (m *MockPermission) IsAdmin(key string, height uint64) bool
- func (m *MockPermission) IsPeer(peerId models.P2PID, height uint64) bool
- type MockPermissionMockRecorder
- func (mr *MockPermissionMockRecorder) AddPermission(peerId, key, info, r interface{}) *gomock.Call
- func (mr *MockPermissionMockRecorder) AddSupervisor(key, info interface{}) *gomock.Call
- func (mr *MockPermissionMockRecorder) DelPermission(peerId, key, r interface{}) *gomock.Call
- func (mr *MockPermissionMockRecorder) DelSupervisor(key interface{}) *gomock.Call
- func (mr *MockPermissionMockRecorder) IsAdmin(key, height interface{}) *gomock.Call
- func (mr *MockPermissionMockRecorder) IsPeer(peerId, height interface{}) *gomock.Call
- type MockPrecompiledContract
- type MockPrecompiledContractMockRecorder
- type MockPrivKey
- func (m *MockPrivKey) EXPECT() *MockPrivKeyMockRecorder
- func (m *MockPrivKey) Equals(arg0 protocol.Key) bool
- func (m *MockPrivKey) GetPublic() protocol.PubKey
- func (m *MockPrivKey) Hash() func() hash.Hash
- func (m *MockPrivKey) Marshal() ([]byte, error)
- func (m *MockPrivKey) Raw() ([]byte, error)
- func (m *MockPrivKey) Sign(data []byte) (*signature.SignResult, error)
- func (m *MockPrivKey) Type() protocol.KeyType
- func (m *MockPrivKey) Unmarshal(input []byte) error
- type MockPrivKeyMockRecorder
- func (mr *MockPrivKeyMockRecorder) Equals(arg0 interface{}) *gomock.Call
- func (mr *MockPrivKeyMockRecorder) GetPublic() *gomock.Call
- func (mr *MockPrivKeyMockRecorder) Hash() *gomock.Call
- func (mr *MockPrivKeyMockRecorder) Marshal() *gomock.Call
- func (mr *MockPrivKeyMockRecorder) Raw() *gomock.Call
- func (mr *MockPrivKeyMockRecorder) Sign(data interface{}) *gomock.Call
- func (mr *MockPrivKeyMockRecorder) Type() *gomock.Call
- func (mr *MockPrivKeyMockRecorder) Unmarshal(input interface{}) *gomock.Call
- type MockPubKey
- func (m *MockPubKey) EXPECT() *MockPubKeyMockRecorder
- func (m *MockPubKey) Equals(arg0 protocol.Key) bool
- func (m *MockPubKey) Hash() func() hash.Hash
- func (m *MockPubKey) Marshal() ([]byte, error)
- func (m *MockPubKey) Raw() ([]byte, error)
- func (m *MockPubKey) Type() protocol.KeyType
- func (m *MockPubKey) Unmarshal(input []byte) error
- func (m *MockPubKey) Verify(data []byte, signResult *signature.SignResult) (bool, error)
- type MockPubKeyMockRecorder
- func (mr *MockPubKeyMockRecorder) Equals(arg0 interface{}) *gomock.Call
- func (mr *MockPubKeyMockRecorder) Hash() *gomock.Call
- func (mr *MockPubKeyMockRecorder) Marshal() *gomock.Call
- func (mr *MockPubKeyMockRecorder) Raw() *gomock.Call
- func (mr *MockPubKeyMockRecorder) Type() *gomock.Call
- func (mr *MockPubKeyMockRecorder) Unmarshal(input interface{}) *gomock.Call
- func (mr *MockPubKeyMockRecorder) Verify(data, signResult interface{}) *gomock.Call
- type MockRequestSync
- func (m *MockRequestSync) EXPECT() *MockRequestSyncMockRecorder
- func (m *MockRequestSync) HandleBlockBodiesMsg(peerId models.P2PID, request []*models.Body)
- func (m *MockRequestSync) HandleBlockHeadersMsg(peerId models.P2PID, headers []*models.Header) error
- func (m *MockRequestSync) RequestHeadersByHash(peerId models.P2PID, origin types.Hash, amount, skip int, reverse bool) error
- func (m *MockRequestSync) RequestHeadersByNumber(peerId models.P2PID, origin uint64, amount, skip int, reverse bool) error
- func (m *MockRequestSync) RequestOneHeader(peerId models.P2PID, hash types.Hash) error
- type MockRequestSyncMockRecorder
- func (mr *MockRequestSyncMockRecorder) HandleBlockBodiesMsg(peerId, request interface{}) *gomock.Call
- func (mr *MockRequestSyncMockRecorder) HandleBlockHeadersMsg(peerId, headers interface{}) *gomock.Call
- func (mr *MockRequestSyncMockRecorder) RequestHeadersByHash(peerId, origin, amount, skip, reverse interface{}) *gomock.Call
- func (mr *MockRequestSyncMockRecorder) RequestHeadersByNumber(peerId, origin, amount, skip, reverse interface{}) *gomock.Call
- func (mr *MockRequestSyncMockRecorder) RequestOneHeader(peerId, hash interface{}) *gomock.Call
- type MockResponseSync
- type MockResponseSyncMockRecorder
- type MockStateDB
- func (m *MockStateDB) AddBalance(addr types.Address, amount *big.Int)
- func (m *MockStateDB) AddLog(log *statetype.Log)
- func (m *MockStateDB) AddPreimage(hash types.Hash, preimage []byte)
- func (m *MockStateDB) AddRefund(gas uint64)
- func (m *MockStateDB) CreateAccount(addr types.Address)
- func (m *MockStateDB) EXPECT() *MockStateDBMockRecorder
- func (m *MockStateDB) Empty(addr types.Address) bool
- func (m *MockStateDB) Exist(addr types.Address) bool
- func (m *MockStateDB) ForEachStorage(addr types.Address, cb func(types.Hash, types.Hash) bool) error
- func (m *MockStateDB) GetBalance(addr types.Address) *big.Int
- func (m *MockStateDB) GetCode(addr types.Address) []byte
- func (m *MockStateDB) GetCodeHash(addr types.Address) types.Hash
- func (m *MockStateDB) GetCodeSize(addr types.Address) int
- func (m *MockStateDB) GetCommittedState(addr types.Address, hash types.Hash) types.Hash
- func (m *MockStateDB) GetNonce(addr types.Address) uint64
- func (m *MockStateDB) GetRefund() uint64
- func (m *MockStateDB) GetState(addr types.Address, hash types.Hash) types.Hash
- func (m *MockStateDB) HasSuicided(addr types.Address) bool
- func (m *MockStateDB) RevertToSnapshot(arg0 int)
- func (m *MockStateDB) SetCode(addr types.Address, code []byte)
- func (m *MockStateDB) SetNonce(addr types.Address, nonce uint64)
- func (m *MockStateDB) SetState(addr types.Address, key, value types.Hash)
- func (m *MockStateDB) Snapshot() int
- func (m *MockStateDB) SubBalance(addr types.Address, amount *big.Int)
- func (m *MockStateDB) SubRefund(gas uint64)
- func (m *MockStateDB) Suicide(addr types.Address) bool
- type MockStateDBMockRecorder
- func (mr *MockStateDBMockRecorder) AddBalance(addr, amount interface{}) *gomock.Call
- func (mr *MockStateDBMockRecorder) AddLog(log interface{}) *gomock.Call
- func (mr *MockStateDBMockRecorder) AddPreimage(hash, preimage interface{}) *gomock.Call
- func (mr *MockStateDBMockRecorder) AddRefund(gas interface{}) *gomock.Call
- func (mr *MockStateDBMockRecorder) CreateAccount(addr interface{}) *gomock.Call
- func (mr *MockStateDBMockRecorder) Empty(addr interface{}) *gomock.Call
- func (mr *MockStateDBMockRecorder) Exist(addr interface{}) *gomock.Call
- func (mr *MockStateDBMockRecorder) ForEachStorage(addr, cb interface{}) *gomock.Call
- func (mr *MockStateDBMockRecorder) GetBalance(addr interface{}) *gomock.Call
- func (mr *MockStateDBMockRecorder) GetCode(addr interface{}) *gomock.Call
- func (mr *MockStateDBMockRecorder) GetCodeHash(addr interface{}) *gomock.Call
- func (mr *MockStateDBMockRecorder) GetCodeSize(addr interface{}) *gomock.Call
- func (mr *MockStateDBMockRecorder) GetCommittedState(addr, hash interface{}) *gomock.Call
- func (mr *MockStateDBMockRecorder) GetNonce(addr interface{}) *gomock.Call
- func (mr *MockStateDBMockRecorder) GetRefund() *gomock.Call
- func (mr *MockStateDBMockRecorder) GetState(addr, hash interface{}) *gomock.Call
- func (mr *MockStateDBMockRecorder) HasSuicided(addr interface{}) *gomock.Call
- func (mr *MockStateDBMockRecorder) RevertToSnapshot(arg0 interface{}) *gomock.Call
- func (mr *MockStateDBMockRecorder) SetCode(addr, code interface{}) *gomock.Call
- func (mr *MockStateDBMockRecorder) SetNonce(addr, nonce interface{}) *gomock.Call
- func (mr *MockStateDBMockRecorder) SetState(addr, key, value interface{}) *gomock.Call
- func (mr *MockStateDBMockRecorder) Snapshot() *gomock.Call
- func (mr *MockStateDBMockRecorder) SubBalance(addr, amount interface{}) *gomock.Call
- func (mr *MockStateDBMockRecorder) SubRefund(gas interface{}) *gomock.Call
- func (mr *MockStateDBMockRecorder) Suicide(addr interface{}) *gomock.Call
- type MockSyncer
- type MockSyncerMockRecorder
- type MockTracer
- func (m *MockTracer) CaptureEnd(output []byte, gasUsed uint64, t time.Duration, err error) error
- func (m *MockTracer) CaptureFault(env protocol.VM, pc uint64, op protocol.OPCode, gas, cost uint64, ...) error
- func (m *MockTracer) CaptureLog(env protocol.VM, msg string) error
- func (m *MockTracer) CaptureStart(from, to types.Address, call bool, input []byte, gas uint64, value *big.Int) error
- func (m *MockTracer) CaptureState(env protocol.VM, pc uint64, op protocol.OPCode, gas, cost uint64, ...) error
- func (m *MockTracer) EXPECT() *MockTracerMockRecorder
- type MockTracerMockRecorder
- func (mr *MockTracerMockRecorder) CaptureEnd(output, gasUsed, t, err interface{}) *gomock.Call
- func (mr *MockTracerMockRecorder) CaptureFault(env, pc, op, gas, cost, contract, depth, err interface{}) *gomock.Call
- func (mr *MockTracerMockRecorder) CaptureLog(env, msg interface{}) *gomock.Call
- func (mr *MockTracerMockRecorder) CaptureStart(from, to, call, input, gas, value interface{}) *gomock.Call
- func (mr *MockTracerMockRecorder) CaptureState(env, pc, op, gas, cost, contract, depth, err interface{}) *gomock.Call
- type MockTxPool
- func (m *MockTxPool) Add(peerId *models.P2PID, tx models.Transaction) error
- func (m *MockTxPool) Delete(tx models.Transaction, noErr bool) error
- func (m *MockTxPool) EXPECT() *MockTxPoolMockRecorder
- func (m *MockTxPool) Exist(hash types.Hash) bool
- func (m *MockTxPool) Fallback(txs []models.Transaction) error
- func (m *MockTxPool) FetchTxs(txsLimit, headerTimestamp uint64) []models.Transaction
- func (m *MockTxPool) Get(hash types.Hash) (models.Transaction, models.TxStatus)
- func (m *MockTxPool) GetTxs(txsLimit uint64) []models.Transaction
- func (m *MockTxPool) Len() uint64
- func (m *MockTxPool) Start() error
- func (m *MockTxPool) Stop() error
- type MockTxPoolMockRecorder
- func (mr *MockTxPoolMockRecorder) Add(peerId, tx interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) Delete(tx, noErr interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) Exist(hash interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) Fallback(txs interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) FetchTxs(txsLimit, headerTimestamp interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) Get(hash interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) GetTxs(txsLimit interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) Len() *gomock.Call
- func (mr *MockTxPoolMockRecorder) Start() *gomock.Call
- func (mr *MockTxPoolMockRecorder) Stop() *gomock.Call
- type MockTxPools
- func (m *MockTxPools) Add(peerId *models.P2PID, tx models.Transaction) error
- func (m *MockTxPools) Delete(txType types.TxType, txs []models.Transaction, noErr bool) error
- func (m *MockTxPools) EXPECT() *MockTxPoolsMockRecorder
- func (m *MockTxPools) Fallback(txType types.TxType, txs []models.Transaction) error
- func (m *MockTxPools) FetchTxs(txsLimit, headerTimestamp uint64) models.Transactions
- func (m *MockTxPools) Get(txType types.TxType, hash types.Hash) (models.Transaction, models.TxStatus)
- func (m *MockTxPools) GetTxs(txsLimit uint64) map[types.TxType][]models.Transaction
- func (m *MockTxPools) Len() map[types.TxType]uint64
- func (m *MockTxPools) Register(txType types.TxType, txPool protocol.TxPool)
- func (m *MockTxPools) Start() error
- func (m *MockTxPools) Stop() error
- func (m *MockTxPools) Subscribe(ch chan []models.Transaction) event.Subscription
- func (m *MockTxPools) TxPool(txType types.TxType) (protocol.TxPool, error)
- type MockTxPoolsMockRecorder
- func (mr *MockTxPoolsMockRecorder) Add(peerId, tx interface{}) *gomock.Call
- func (mr *MockTxPoolsMockRecorder) Delete(txType, txs, noErr interface{}) *gomock.Call
- func (mr *MockTxPoolsMockRecorder) Fallback(txType, txs interface{}) *gomock.Call
- func (mr *MockTxPoolsMockRecorder) FetchTxs(txsLimit, headerTimestamp interface{}) *gomock.Call
- func (mr *MockTxPoolsMockRecorder) Get(txType, hash interface{}) *gomock.Call
- func (mr *MockTxPoolsMockRecorder) GetTxs(txsLimit interface{}) *gomock.Call
- func (mr *MockTxPoolsMockRecorder) Len() *gomock.Call
- func (mr *MockTxPoolsMockRecorder) Register(txType, txPool interface{}) *gomock.Call
- func (mr *MockTxPoolsMockRecorder) Start() *gomock.Call
- func (mr *MockTxPoolsMockRecorder) Stop() *gomock.Call
- func (mr *MockTxPoolsMockRecorder) Subscribe(ch interface{}) *gomock.Call
- func (mr *MockTxPoolsMockRecorder) TxPool(txType interface{}) *gomock.Call
- type MockTxValidator
- type MockTxValidatorMockRecorder
- type MockVM
- func (m *MockVM) Call(caller protocol.ContractRef, addr types.Address, input []byte, gas uint64, ...) ([]byte, uint64, error)
- func (m *MockVM) CallCode(caller protocol.ContractRef, addr types.Address, input []byte, gas uint64, ...) ([]byte, uint64, error)
- func (m *MockVM) Cancel()
- func (m *MockVM) Cancelled() bool
- func (m *MockVM) Coinbase() types.Address
- func (m *MockVM) Create(caller protocol.ContractRef, code []byte, gas uint64, value *big.Int) ([]byte, types.Address, uint64, error)
- func (m *MockVM) Create2(caller protocol.ContractRef, code []byte, gas uint64, endowment, salt *big.Int) ([]byte, types.Address, uint64, error)
- func (m *MockVM) DB() protocol.StateDB
- func (m *MockVM) DelegateCall(caller protocol.ContractRef, addr types.Address, input []byte, gas uint64) ([]byte, uint64, error)
- func (m *MockVM) EXPECT() *MockVMMockRecorder
- func (m *MockVM) StaticCall(caller protocol.ContractRef, addr types.Address, input []byte, gas uint64) ([]byte, uint64, error)
- func (m *MockVM) VmName() string
- type MockVMMockRecorder
- func (mr *MockVMMockRecorder) Call(caller, addr, input, gas, value interface{}) *gomock.Call
- func (mr *MockVMMockRecorder) CallCode(caller, addr, input, gas, value interface{}) *gomock.Call
- func (mr *MockVMMockRecorder) Cancel() *gomock.Call
- func (mr *MockVMMockRecorder) Cancelled() *gomock.Call
- func (mr *MockVMMockRecorder) Coinbase() *gomock.Call
- func (mr *MockVMMockRecorder) Create(caller, code, gas, value interface{}) *gomock.Call
- func (mr *MockVMMockRecorder) Create2(caller, code, gas, endowment, salt interface{}) *gomock.Call
- func (mr *MockVMMockRecorder) DB() *gomock.Call
- func (mr *MockVMMockRecorder) DelegateCall(caller, addr, input, gas interface{}) *gomock.Call
- func (mr *MockVMMockRecorder) StaticCall(caller, addr, input, gas interface{}) *gomock.Call
- func (mr *MockVMMockRecorder) VmName() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAPIs ¶
type MockAPIs struct {
// contains filtered or unexported fields
}
MockAPIs is a mock of APIs interface
func NewMockAPIs ¶
func NewMockAPIs(ctrl *gomock.Controller) *MockAPIs
NewMockAPIs creates a new mock instance
func (*MockAPIs) BlockHeight ¶
BlockHeight mocks base method
func (*MockAPIs) CompileContract ¶
func (m *MockAPIs) CompileContract(ctx context.Context, compileType protocol.CompileType, contract hexutil.Bytes) (*hexutil.Bytes, error)
CompileContract mocks base method
func (*MockAPIs) EXPECT ¶
func (m *MockAPIs) EXPECT() *MockAPIsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockAPIs) EstimateGas ¶
func (m *MockAPIs) EstimateGas(ctx context.Context, transaction models.Transaction) (*hexutil.Uint64, error)
EstimateGas mocks base method
func (*MockAPIs) FilterSubscribeHeaders ¶
FilterSubscribeHeaders mocks base method
func (*MockAPIs) GetBlockByHash ¶
GetBlockByHash mocks base method
func (*MockAPIs) GetBlockByHeight ¶
func (m *MockAPIs) GetBlockByHeight(ctx context.Context, blockHeight hexutil.Uint64) (*models.Block, error)
GetBlockByHeight mocks base method
func (*MockAPIs) GetBlockTransactionCountByHash ¶
func (m *MockAPIs) GetBlockTransactionCountByHash(ctx context.Context, blockHash types.Hash) (*hexutil.Uint64, error)
GetBlockTransactionCountByHash mocks base method
func (*MockAPIs) GetBlockTransactionCountByHeight ¶
func (m *MockAPIs) GetBlockTransactionCountByHeight(ctx context.Context, blockHeight hexutil.Uint64) (*hexutil.Uint64, error)
GetBlockTransactionCountByHeight mocks base method
func (*MockAPIs) GetCode ¶
func (m *MockAPIs) GetCode(ctx context.Context, contract types.Address, blockHeight hexutil.Uint64) (*hexutil.Bytes, error)
GetCode mocks base method
func (*MockAPIs) GetTransaction ¶
GetTransaction mocks base method
func (*MockAPIs) GetTransactionByBlockHashAndIndex ¶
func (m *MockAPIs) GetTransactionByBlockHashAndIndex(ctx context.Context, blockHash types.Hash, txIndex hexutil.Uint64) (models.Transaction, error)
GetTransactionByBlockHashAndIndex mocks base method
func (*MockAPIs) GetTransactionByBlockHeightAndIndex ¶
func (m *MockAPIs) GetTransactionByBlockHeightAndIndex(ctx context.Context, blockHeight, txIndex hexutil.Uint64) (models.Transaction, error)
GetTransactionByBlockHeightAndIndex mocks base method
func (*MockAPIs) GetTransactionCount ¶
func (m *MockAPIs) GetTransactionCount(ctx context.Context, txType types.TxType, address string) (*hexutil.Uint64, error)
GetTransactionCount mocks base method
func (*MockAPIs) GetTransactionLogs ¶
func (m *MockAPIs) GetTransactionLogs(ctx context.Context, hash types.Hash) ([]*statetype.Log, error)
GetTransactionLogs mocks base method
func (*MockAPIs) GetTransactionReceipt ¶
func (m *MockAPIs) GetTransactionReceipt(ctx context.Context, hash types.Hash) (models.Transaction, error)
GetTransactionReceipt mocks base method
func (*MockAPIs) RegisterAPI ¶
RegisterAPI mocks base method
type MockAPIsMockRecorder ¶
type MockAPIsMockRecorder struct {
// contains filtered or unexported fields
}
MockAPIsMockRecorder is the mock recorder for MockAPIs
func (*MockAPIsMockRecorder) APIs ¶
func (mr *MockAPIsMockRecorder) APIs() *gomock.Call
APIs indicates an expected call of APIs
func (*MockAPIsMockRecorder) BlockHeight ¶
func (mr *MockAPIsMockRecorder) BlockHeight(ctx interface{}) *gomock.Call
BlockHeight indicates an expected call of BlockHeight
func (*MockAPIsMockRecorder) Call ¶
func (mr *MockAPIsMockRecorder) Call(ctx, hash interface{}) *gomock.Call
Call indicates an expected call of Call
func (*MockAPIsMockRecorder) CompileContract ¶
func (mr *MockAPIsMockRecorder) CompileContract(ctx, compileType, contract interface{}) *gomock.Call
CompileContract indicates an expected call of CompileContract
func (*MockAPIsMockRecorder) EstimateGas ¶
func (mr *MockAPIsMockRecorder) EstimateGas(ctx, transaction interface{}) *gomock.Call
EstimateGas indicates an expected call of EstimateGas
func (*MockAPIsMockRecorder) FilterSubscribeHeaders ¶
func (mr *MockAPIsMockRecorder) FilterSubscribeHeaders(ctx interface{}) *gomock.Call
FilterSubscribeHeaders indicates an expected call of FilterSubscribeHeaders
func (*MockAPIsMockRecorder) GetBlockByHash ¶
func (mr *MockAPIsMockRecorder) GetBlockByHash(ctx, blockHash interface{}) *gomock.Call
GetBlockByHash indicates an expected call of GetBlockByHash
func (*MockAPIsMockRecorder) GetBlockByHeight ¶
func (mr *MockAPIsMockRecorder) GetBlockByHeight(ctx, blockHeight interface{}) *gomock.Call
GetBlockByHeight indicates an expected call of GetBlockByHeight
func (*MockAPIsMockRecorder) GetBlockTransactionCountByHash ¶
func (mr *MockAPIsMockRecorder) GetBlockTransactionCountByHash(ctx, blockHash interface{}) *gomock.Call
GetBlockTransactionCountByHash indicates an expected call of GetBlockTransactionCountByHash
func (*MockAPIsMockRecorder) GetBlockTransactionCountByHeight ¶
func (mr *MockAPIsMockRecorder) GetBlockTransactionCountByHeight(ctx, blockHeight interface{}) *gomock.Call
GetBlockTransactionCountByHeight indicates an expected call of GetBlockTransactionCountByHeight
func (*MockAPIsMockRecorder) GetCode ¶
func (mr *MockAPIsMockRecorder) GetCode(ctx, contract, blockHeight interface{}) *gomock.Call
GetCode indicates an expected call of GetCode
func (*MockAPIsMockRecorder) GetTransaction ¶
func (mr *MockAPIsMockRecorder) GetTransaction(ctx, hash interface{}) *gomock.Call
GetTransaction indicates an expected call of GetTransaction
func (*MockAPIsMockRecorder) GetTransactionByBlockHashAndIndex ¶
func (mr *MockAPIsMockRecorder) GetTransactionByBlockHashAndIndex(ctx, blockHash, txIndex interface{}) *gomock.Call
GetTransactionByBlockHashAndIndex indicates an expected call of GetTransactionByBlockHashAndIndex
func (*MockAPIsMockRecorder) GetTransactionByBlockHeightAndIndex ¶
func (mr *MockAPIsMockRecorder) GetTransactionByBlockHeightAndIndex(ctx, blockHeight, txIndex interface{}) *gomock.Call
GetTransactionByBlockHeightAndIndex indicates an expected call of GetTransactionByBlockHeightAndIndex
func (*MockAPIsMockRecorder) GetTransactionCount ¶
func (mr *MockAPIsMockRecorder) GetTransactionCount(ctx, txType, address interface{}) *gomock.Call
GetTransactionCount indicates an expected call of GetTransactionCount
func (*MockAPIsMockRecorder) GetTransactionLogs ¶
func (mr *MockAPIsMockRecorder) GetTransactionLogs(ctx, hash interface{}) *gomock.Call
GetTransactionLogs indicates an expected call of GetTransactionLogs
func (*MockAPIsMockRecorder) GetTransactionReceipt ¶
func (mr *MockAPIsMockRecorder) GetTransactionReceipt(ctx, hash interface{}) *gomock.Call
GetTransactionReceipt indicates an expected call of GetTransactionReceipt
func (*MockAPIsMockRecorder) RegisterAPI ¶
func (mr *MockAPIsMockRecorder) RegisterAPI(apis interface{}) *gomock.Call
RegisterAPI indicates an expected call of RegisterAPI
func (*MockAPIsMockRecorder) SendRawTransaction ¶
func (mr *MockAPIsMockRecorder) SendRawTransaction(ctx, txType, rawTx interface{}) *gomock.Call
SendRawTransaction indicates an expected call of SendRawTransaction
func (*MockAPIsMockRecorder) Syncing ¶
func (mr *MockAPIsMockRecorder) Syncing(ctx interface{}) *gomock.Call
Syncing indicates an expected call of Syncing
type MockAppContext ¶
type MockAppContext struct {
// contains filtered or unexported fields
}
MockAppContext is a mock of AppContext interface
func NewMockAppContext ¶
func NewMockAppContext(ctrl *gomock.Controller) *MockAppContext
NewMockAppContext creates a new mock instance
func (*MockAppContext) App ¶
func (m *MockAppContext) App() protocol.Application
App mocks base method
func (*MockAppContext) EXPECT ¶
func (m *MockAppContext) EXPECT() *MockAppContextMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockAppContextMockRecorder ¶
type MockAppContextMockRecorder struct {
// contains filtered or unexported fields
}
MockAppContextMockRecorder is the mock recorder for MockAppContext
func (*MockAppContextMockRecorder) App ¶
func (mr *MockAppContextMockRecorder) App() *gomock.Call
App indicates an expected call of App
func (*MockAppContextMockRecorder) Caller ¶
func (mr *MockAppContextMockRecorder) Caller() *gomock.Call
Caller indicates an expected call of Caller
type MockAppContexts ¶
type MockAppContexts struct {
// contains filtered or unexported fields
}
MockAppContexts is a mock of AppContexts interface
func NewMockAppContexts ¶
func NewMockAppContexts(ctrl *gomock.Controller) *MockAppContexts
NewMockAppContexts creates a new mock instance
func (*MockAppContexts) Ctx ¶
func (m *MockAppContexts) Ctx(t types.TxType) protocol.AppContext
Ctx mocks base method
func (*MockAppContexts) EXPECT ¶
func (m *MockAppContexts) EXPECT() *MockAppContextsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockAppContextsMockRecorder ¶
type MockAppContextsMockRecorder struct {
// contains filtered or unexported fields
}
MockAppContextsMockRecorder is the mock recorder for MockAppContexts
func (*MockAppContextsMockRecorder) Ctx ¶
func (mr *MockAppContextsMockRecorder) Ctx(t interface{}) *gomock.Call
Ctx indicates an expected call of Ctx
type MockApplication ¶
type MockApplication struct {
// contains filtered or unexported fields
}
MockApplication is a mock of Application interface
func NewMockApplication ¶
func NewMockApplication(ctrl *gomock.Controller) *MockApplication
NewMockApplication creates a new mock instance
func (*MockApplication) Commit ¶
func (m *MockApplication) Commit(ctx protocol.AppContext, header *models.Header) error
Commit mocks base method
func (*MockApplication) DeleteErrTx ¶
func (m *MockApplication) DeleteErrTx(txI models.Transaction) error
DeleteErrTx mocks base method
func (*MockApplication) DeleteOkTx ¶
func (m *MockApplication) DeleteOkTx(txI models.Transaction) error
DeleteOkTx mocks base method
func (*MockApplication) EXPECT ¶
func (m *MockApplication) EXPECT() *MockApplicationMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockApplication) GetCacheNonce ¶
func (m *MockApplication) GetCacheNonce(ctx protocol.AppContext, account string) (uint64, error)
GetCacheNonce mocks base method
func (*MockApplication) NewAppContexts ¶
func (m *MockApplication) NewAppContexts(module string, args ...interface{}) (protocol.AppContext, error)
NewAppContexts mocks base method
func (*MockApplication) Prepare ¶
func (m *MockApplication) Prepare(ctx protocol.AppContext, header *models.Header, txs models.TransactionSortedList, totalGas uint64) *models.TxsStatus
Prepare mocks base method
func (*MockApplication) TxPool ¶
func (m *MockApplication) TxPool(config protocol.Config, apps protocol.Apps, blockReader protocol.BlockReader, broadcaster protocol.Broadcaster) (protocol.TxPool, error)
TxPool mocks base method
func (*MockApplication) ValidateTx ¶
func (m *MockApplication) ValidateTx(ctx protocol.AppContext, txI models.Transaction) error
ValidateTx mocks base method
func (*MockApplication) ValidateTxSafe ¶
func (m *MockApplication) ValidateTxSafe(ctx protocol.AppContext, txI models.Transaction, headerTimestamp uint64) error
ValidateTxSafe mocks base method
type MockApplicationMockRecorder ¶
type MockApplicationMockRecorder struct {
// contains filtered or unexported fields
}
MockApplicationMockRecorder is the mock recorder for MockApplication
func (*MockApplicationMockRecorder) Commit ¶
func (mr *MockApplicationMockRecorder) Commit(ctx, header interface{}) *gomock.Call
Commit indicates an expected call of Commit
func (*MockApplicationMockRecorder) DeleteErrTx ¶
func (mr *MockApplicationMockRecorder) DeleteErrTx(txI interface{}) *gomock.Call
DeleteErrTx indicates an expected call of DeleteErrTx
func (*MockApplicationMockRecorder) DeleteOkTx ¶
func (mr *MockApplicationMockRecorder) DeleteOkTx(txI interface{}) *gomock.Call
DeleteOkTx indicates an expected call of DeleteOkTx
func (*MockApplicationMockRecorder) GetCacheNonce ¶
func (mr *MockApplicationMockRecorder) GetCacheNonce(ctx, account interface{}) *gomock.Call
GetCacheNonce indicates an expected call of GetCacheNonce
func (*MockApplicationMockRecorder) NewAppContexts ¶
func (mr *MockApplicationMockRecorder) NewAppContexts(module interface{}, args ...interface{}) *gomock.Call
NewAppContexts indicates an expected call of NewAppContexts
func (*MockApplicationMockRecorder) Prepare ¶
func (mr *MockApplicationMockRecorder) Prepare(ctx, header, txs, totalGas interface{}) *gomock.Call
Prepare indicates an expected call of Prepare
func (*MockApplicationMockRecorder) Start ¶
func (mr *MockApplicationMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start
func (*MockApplicationMockRecorder) Stop ¶
func (mr *MockApplicationMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop
func (*MockApplicationMockRecorder) TxPool ¶
func (mr *MockApplicationMockRecorder) TxPool(config, apps, blockReader, broadcaster interface{}) *gomock.Call
TxPool indicates an expected call of TxPool
func (*MockApplicationMockRecorder) ValidateTx ¶
func (mr *MockApplicationMockRecorder) ValidateTx(ctx, txI interface{}) *gomock.Call
ValidateTx indicates an expected call of ValidateTx
func (*MockApplicationMockRecorder) ValidateTxSafe ¶
func (mr *MockApplicationMockRecorder) ValidateTxSafe(ctx, txI, headerTimestamp interface{}) *gomock.Call
ValidateTxSafe indicates an expected call of ValidateTxSafe
type MockApps ¶
type MockApps struct {
// contains filtered or unexported fields
}
MockApps is a mock of Apps interface
func NewMockApps ¶
func NewMockApps(ctrl *gomock.Controller) *MockApps
NewMockApps creates a new mock instance
func (*MockApps) EXPECT ¶
func (m *MockApps) EXPECT() *MockAppsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockApps) NewAppContexts ¶
NewAppContexts mocks base method
func (*MockApps) Prepare ¶
func (m *MockApps) Prepare(ctx protocol.AppContexts, preRoot []byte, header *models.Header, txs models.Transactions, totalGas uint64) ([]byte, models.AppsStatus)
Prepare mocks base method
type MockAppsMockRecorder ¶
type MockAppsMockRecorder struct {
// contains filtered or unexported fields
}
MockAppsMockRecorder is the mock recorder for MockApps
func (*MockAppsMockRecorder) App ¶
func (mr *MockAppsMockRecorder) App(txType interface{}) *gomock.Call
App indicates an expected call of App
func (*MockAppsMockRecorder) Commit ¶
func (mr *MockAppsMockRecorder) Commit(ctx, header interface{}) *gomock.Call
Commit indicates an expected call of Commit
func (*MockAppsMockRecorder) NewAppContexts ¶
func (mr *MockAppsMockRecorder) NewAppContexts(module, preRoot interface{}) *gomock.Call
NewAppContexts indicates an expected call of NewAppContexts
func (*MockAppsMockRecorder) Prepare ¶
func (mr *MockAppsMockRecorder) Prepare(ctx, preRoot, header, txs, totalGas interface{}) *gomock.Call
Prepare indicates an expected call of Prepare
func (*MockAppsMockRecorder) Register ¶
func (mr *MockAppsMockRecorder) Register(txType, app interface{}) *gomock.Call
Register indicates an expected call of Register
type MockBlockReadWriter ¶
type MockBlockReadWriter struct {
// contains filtered or unexported fields
}
MockBlockReadWriter is a mock of BlockReadWriter interface
func NewMockBlockReadWriter ¶
func NewMockBlockReadWriter(ctrl *gomock.Controller) *MockBlockReadWriter
NewMockBlockReadWriter creates a new mock instance
func (*MockBlockReadWriter) CurrentBlock ¶
func (m *MockBlockReadWriter) CurrentBlock() *models.Block
CurrentBlock mocks base method
func (*MockBlockReadWriter) CurrentHeader ¶
func (m *MockBlockReadWriter) CurrentHeader() *models.Header
CurrentHeader mocks base method
func (*MockBlockReadWriter) EXPECT ¶
func (m *MockBlockReadWriter) EXPECT() *MockBlockReadWriterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockBlockReadWriter) GetAncestor ¶
func (m *MockBlockReadWriter) GetAncestor(hash types.Hash, number, ancestor uint64, maxNonCanonical *uint64) (types.Hash, uint64)
GetAncestor mocks base method
func (*MockBlockReadWriter) GetBlockByHash ¶
func (m *MockBlockReadWriter) GetBlockByHash(hash types.Hash) *models.Block
GetBlockByHash mocks base method
func (*MockBlockReadWriter) GetBlockByNumber ¶
func (m *MockBlockReadWriter) GetBlockByNumber(number uint64) *models.Block
GetBlockByNumber mocks base method
func (*MockBlockReadWriter) GetBlockHashesFromHash ¶
GetBlockHashesFromHash mocks base method
func (*MockBlockReadWriter) GetBody ¶
func (m *MockBlockReadWriter) GetBody(hash types.Hash) *models.Body
GetBody mocks base method
func (*MockBlockReadWriter) GetHeaderByHash ¶
func (m *MockBlockReadWriter) GetHeaderByHash(hash types.Hash) *models.Header
GetHeaderByHash mocks base method
func (*MockBlockReadWriter) GetHeaderByNumber ¶
func (m *MockBlockReadWriter) GetHeaderByNumber(number uint64) *models.Header
GetHeaderByNumber mocks base method
func (*MockBlockReadWriter) HasBlock ¶
func (m *MockBlockReadWriter) HasBlock(hash types.Hash, number uint64) bool
HasBlock mocks base method
func (*MockBlockReadWriter) HasHeader ¶
func (m *MockBlockReadWriter) HasHeader(hash types.Hash, number uint64) bool
HasHeader mocks base method
func (*MockBlockReadWriter) InsertBlock ¶
func (m *MockBlockReadWriter) InsertBlock(block *models.Block, propagate bool) error
InsertBlock mocks base method
func (*MockBlockReadWriter) IsRunning ¶
func (m *MockBlockReadWriter) IsRunning() bool
IsRunning mocks base method
func (*MockBlockReadWriter) ProcessBlock ¶
func (m *MockBlockReadWriter) ProcessBlock(block *models.Block, propagate bool) error
ProcessBlock mocks base method
func (*MockBlockReadWriter) Start ¶
func (m *MockBlockReadWriter) Start() error
Start mocks base method
func (*MockBlockReadWriter) Stop ¶
func (m *MockBlockReadWriter) Stop() error
Stop mocks base method
func (*MockBlockReadWriter) SubscribeChainHeadEvent ¶
func (m *MockBlockReadWriter) SubscribeChainHeadEvent(ch chan<- eventtype.ChainHeadEvent) event.Subscription
SubscribeChainHeadEvent mocks base method
func (*MockBlockReadWriter) ValidateBody ¶
func (m *MockBlockReadWriter) ValidateBody(block *models.Block) error
ValidateBody mocks base method
type MockBlockReadWriterMockRecorder ¶
type MockBlockReadWriterMockRecorder struct {
// contains filtered or unexported fields
}
MockBlockReadWriterMockRecorder is the mock recorder for MockBlockReadWriter
func (*MockBlockReadWriterMockRecorder) CurrentBlock ¶
func (mr *MockBlockReadWriterMockRecorder) CurrentBlock() *gomock.Call
CurrentBlock indicates an expected call of CurrentBlock
func (*MockBlockReadWriterMockRecorder) CurrentHeader ¶
func (mr *MockBlockReadWriterMockRecorder) CurrentHeader() *gomock.Call
CurrentHeader indicates an expected call of CurrentHeader
func (*MockBlockReadWriterMockRecorder) GetAncestor ¶
func (mr *MockBlockReadWriterMockRecorder) GetAncestor(hash, number, ancestor, maxNonCanonical interface{}) *gomock.Call
GetAncestor indicates an expected call of GetAncestor
func (*MockBlockReadWriterMockRecorder) GetBlock ¶
func (mr *MockBlockReadWriterMockRecorder) GetBlock(hash, number interface{}) *gomock.Call
GetBlock indicates an expected call of GetBlock
func (*MockBlockReadWriterMockRecorder) GetBlockByHash ¶
func (mr *MockBlockReadWriterMockRecorder) GetBlockByHash(hash interface{}) *gomock.Call
GetBlockByHash indicates an expected call of GetBlockByHash
func (*MockBlockReadWriterMockRecorder) GetBlockByNumber ¶
func (mr *MockBlockReadWriterMockRecorder) GetBlockByNumber(number interface{}) *gomock.Call
GetBlockByNumber indicates an expected call of GetBlockByNumber
func (*MockBlockReadWriterMockRecorder) GetBlockHashesFromHash ¶
func (mr *MockBlockReadWriterMockRecorder) GetBlockHashesFromHash(hash, max interface{}) *gomock.Call
GetBlockHashesFromHash indicates an expected call of GetBlockHashesFromHash
func (*MockBlockReadWriterMockRecorder) GetBody ¶
func (mr *MockBlockReadWriterMockRecorder) GetBody(hash interface{}) *gomock.Call
GetBody indicates an expected call of GetBody
func (*MockBlockReadWriterMockRecorder) GetHeader ¶
func (mr *MockBlockReadWriterMockRecorder) GetHeader(hash, number interface{}) *gomock.Call
GetHeader indicates an expected call of GetHeader
func (*MockBlockReadWriterMockRecorder) GetHeaderByHash ¶
func (mr *MockBlockReadWriterMockRecorder) GetHeaderByHash(hash interface{}) *gomock.Call
GetHeaderByHash indicates an expected call of GetHeaderByHash
func (*MockBlockReadWriterMockRecorder) GetHeaderByNumber ¶
func (mr *MockBlockReadWriterMockRecorder) GetHeaderByNumber(number interface{}) *gomock.Call
GetHeaderByNumber indicates an expected call of GetHeaderByNumber
func (*MockBlockReadWriterMockRecorder) HasBlock ¶
func (mr *MockBlockReadWriterMockRecorder) HasBlock(hash, number interface{}) *gomock.Call
HasBlock indicates an expected call of HasBlock
func (*MockBlockReadWriterMockRecorder) HasHeader ¶
func (mr *MockBlockReadWriterMockRecorder) HasHeader(hash, number interface{}) *gomock.Call
HasHeader indicates an expected call of HasHeader
func (*MockBlockReadWriterMockRecorder) InsertBlock ¶
func (mr *MockBlockReadWriterMockRecorder) InsertBlock(block, propagate interface{}) *gomock.Call
InsertBlock indicates an expected call of InsertBlock
func (*MockBlockReadWriterMockRecorder) IsRunning ¶
func (mr *MockBlockReadWriterMockRecorder) IsRunning() *gomock.Call
IsRunning indicates an expected call of IsRunning
func (*MockBlockReadWriterMockRecorder) ProcessBlock ¶
func (mr *MockBlockReadWriterMockRecorder) ProcessBlock(block, propagate interface{}) *gomock.Call
ProcessBlock indicates an expected call of ProcessBlock
func (*MockBlockReadWriterMockRecorder) Start ¶
func (mr *MockBlockReadWriterMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start
func (*MockBlockReadWriterMockRecorder) Stop ¶
func (mr *MockBlockReadWriterMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop
func (*MockBlockReadWriterMockRecorder) SubscribeChainHeadEvent ¶
func (mr *MockBlockReadWriterMockRecorder) SubscribeChainHeadEvent(ch interface{}) *gomock.Call
SubscribeChainHeadEvent indicates an expected call of SubscribeChainHeadEvent
func (*MockBlockReadWriterMockRecorder) ValidateBody ¶
func (mr *MockBlockReadWriterMockRecorder) ValidateBody(block interface{}) *gomock.Call
ValidateBody indicates an expected call of ValidateBody
type MockBlockReader ¶
type MockBlockReader struct {
// contains filtered or unexported fields
}
MockBlockReader is a mock of BlockReader interface
func NewMockBlockReader ¶
func NewMockBlockReader(ctrl *gomock.Controller) *MockBlockReader
NewMockBlockReader creates a new mock instance
func (*MockBlockReader) CurrentBlock ¶
func (m *MockBlockReader) CurrentBlock() *models.Block
CurrentBlock mocks base method
func (*MockBlockReader) CurrentHeader ¶
func (m *MockBlockReader) CurrentHeader() *models.Header
CurrentHeader mocks base method
func (*MockBlockReader) EXPECT ¶
func (m *MockBlockReader) EXPECT() *MockBlockReaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockBlockReader) GetAncestor ¶
func (m *MockBlockReader) GetAncestor(hash types.Hash, number, ancestor uint64, maxNonCanonical *uint64) (types.Hash, uint64)
GetAncestor mocks base method
func (*MockBlockReader) GetBlockByHash ¶
func (m *MockBlockReader) GetBlockByHash(hash types.Hash) *models.Block
GetBlockByHash mocks base method
func (*MockBlockReader) GetBlockByNumber ¶
func (m *MockBlockReader) GetBlockByNumber(number uint64) *models.Block
GetBlockByNumber mocks base method
func (*MockBlockReader) GetBlockHashesFromHash ¶
GetBlockHashesFromHash mocks base method
func (*MockBlockReader) GetBody ¶
func (m *MockBlockReader) GetBody(hash types.Hash) *models.Body
GetBody mocks base method
func (*MockBlockReader) GetHeaderByHash ¶
func (m *MockBlockReader) GetHeaderByHash(hash types.Hash) *models.Header
GetHeaderByHash mocks base method
func (*MockBlockReader) GetHeaderByNumber ¶
func (m *MockBlockReader) GetHeaderByNumber(number uint64) *models.Header
GetHeaderByNumber mocks base method
func (*MockBlockReader) HasBlock ¶
func (m *MockBlockReader) HasBlock(hash types.Hash, number uint64) bool
HasBlock mocks base method
func (*MockBlockReader) HasHeader ¶
func (m *MockBlockReader) HasHeader(hash types.Hash, number uint64) bool
HasHeader mocks base method
func (*MockBlockReader) IsRunning ¶
func (m *MockBlockReader) IsRunning() bool
IsRunning mocks base method
func (*MockBlockReader) SubscribeChainHeadEvent ¶
func (m *MockBlockReader) SubscribeChainHeadEvent(ch chan<- eventtype.ChainHeadEvent) event.Subscription
SubscribeChainHeadEvent mocks base method
func (*MockBlockReader) ValidateBody ¶
func (m *MockBlockReader) ValidateBody(block *models.Block) error
ValidateBody mocks base method
type MockBlockReaderMockRecorder ¶
type MockBlockReaderMockRecorder struct {
// contains filtered or unexported fields
}
MockBlockReaderMockRecorder is the mock recorder for MockBlockReader
func (*MockBlockReaderMockRecorder) CurrentBlock ¶
func (mr *MockBlockReaderMockRecorder) CurrentBlock() *gomock.Call
CurrentBlock indicates an expected call of CurrentBlock
func (*MockBlockReaderMockRecorder) CurrentHeader ¶
func (mr *MockBlockReaderMockRecorder) CurrentHeader() *gomock.Call
CurrentHeader indicates an expected call of CurrentHeader
func (*MockBlockReaderMockRecorder) GetAncestor ¶
func (mr *MockBlockReaderMockRecorder) GetAncestor(hash, number, ancestor, maxNonCanonical interface{}) *gomock.Call
GetAncestor indicates an expected call of GetAncestor
func (*MockBlockReaderMockRecorder) GetBlock ¶
func (mr *MockBlockReaderMockRecorder) GetBlock(hash, number interface{}) *gomock.Call
GetBlock indicates an expected call of GetBlock
func (*MockBlockReaderMockRecorder) GetBlockByHash ¶
func (mr *MockBlockReaderMockRecorder) GetBlockByHash(hash interface{}) *gomock.Call
GetBlockByHash indicates an expected call of GetBlockByHash
func (*MockBlockReaderMockRecorder) GetBlockByNumber ¶
func (mr *MockBlockReaderMockRecorder) GetBlockByNumber(number interface{}) *gomock.Call
GetBlockByNumber indicates an expected call of GetBlockByNumber
func (*MockBlockReaderMockRecorder) GetBlockHashesFromHash ¶
func (mr *MockBlockReaderMockRecorder) GetBlockHashesFromHash(hash, max interface{}) *gomock.Call
GetBlockHashesFromHash indicates an expected call of GetBlockHashesFromHash
func (*MockBlockReaderMockRecorder) GetBody ¶
func (mr *MockBlockReaderMockRecorder) GetBody(hash interface{}) *gomock.Call
GetBody indicates an expected call of GetBody
func (*MockBlockReaderMockRecorder) GetHeader ¶
func (mr *MockBlockReaderMockRecorder) GetHeader(hash, number interface{}) *gomock.Call
GetHeader indicates an expected call of GetHeader
func (*MockBlockReaderMockRecorder) GetHeaderByHash ¶
func (mr *MockBlockReaderMockRecorder) GetHeaderByHash(hash interface{}) *gomock.Call
GetHeaderByHash indicates an expected call of GetHeaderByHash
func (*MockBlockReaderMockRecorder) GetHeaderByNumber ¶
func (mr *MockBlockReaderMockRecorder) GetHeaderByNumber(number interface{}) *gomock.Call
GetHeaderByNumber indicates an expected call of GetHeaderByNumber
func (*MockBlockReaderMockRecorder) HasBlock ¶
func (mr *MockBlockReaderMockRecorder) HasBlock(hash, number interface{}) *gomock.Call
HasBlock indicates an expected call of HasBlock
func (*MockBlockReaderMockRecorder) HasHeader ¶
func (mr *MockBlockReaderMockRecorder) HasHeader(hash, number interface{}) *gomock.Call
HasHeader indicates an expected call of HasHeader
func (*MockBlockReaderMockRecorder) IsRunning ¶
func (mr *MockBlockReaderMockRecorder) IsRunning() *gomock.Call
IsRunning indicates an expected call of IsRunning
func (*MockBlockReaderMockRecorder) Start ¶
func (mr *MockBlockReaderMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start
func (*MockBlockReaderMockRecorder) Stop ¶
func (mr *MockBlockReaderMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop
func (*MockBlockReaderMockRecorder) SubscribeChainHeadEvent ¶
func (mr *MockBlockReaderMockRecorder) SubscribeChainHeadEvent(ch interface{}) *gomock.Call
SubscribeChainHeadEvent indicates an expected call of SubscribeChainHeadEvent
func (*MockBlockReaderMockRecorder) ValidateBody ¶
func (mr *MockBlockReaderMockRecorder) ValidateBody(block interface{}) *gomock.Call
ValidateBody indicates an expected call of ValidateBody
type MockBlockWriter ¶
type MockBlockWriter struct {
// contains filtered or unexported fields
}
MockBlockWriter is a mock of BlockWriter interface
func NewMockBlockWriter ¶
func NewMockBlockWriter(ctrl *gomock.Controller) *MockBlockWriter
NewMockBlockWriter creates a new mock instance
func (*MockBlockWriter) EXPECT ¶
func (m *MockBlockWriter) EXPECT() *MockBlockWriterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockBlockWriter) InsertBlock ¶
func (m *MockBlockWriter) InsertBlock(block *models.Block, propagate bool) error
InsertBlock mocks base method
func (*MockBlockWriter) ProcessBlock ¶
func (m *MockBlockWriter) ProcessBlock(block *models.Block, propagate bool) error
ProcessBlock mocks base method
type MockBlockWriterMockRecorder ¶
type MockBlockWriterMockRecorder struct {
// contains filtered or unexported fields
}
MockBlockWriterMockRecorder is the mock recorder for MockBlockWriter
func (*MockBlockWriterMockRecorder) InsertBlock ¶
func (mr *MockBlockWriterMockRecorder) InsertBlock(block, propagate interface{}) *gomock.Call
InsertBlock indicates an expected call of InsertBlock
func (*MockBlockWriterMockRecorder) ProcessBlock ¶
func (mr *MockBlockWriterMockRecorder) ProcessBlock(block, propagate interface{}) *gomock.Call
ProcessBlock indicates an expected call of ProcessBlock
type MockBroadcaster ¶
type MockBroadcaster struct {
// contains filtered or unexported fields
}
MockBroadcaster is a mock of Broadcaster interface
func NewMockBroadcaster ¶
func NewMockBroadcaster(ctrl *gomock.Controller) *MockBroadcaster
NewMockBroadcaster creates a new mock instance
func (*MockBroadcaster) BroadcastTxs ¶
func (m *MockBroadcaster) BroadcastTxs(peerId *models.P2PID, txs []models.Transaction, isForce bool)
BroadcastTxs mocks base method
func (*MockBroadcaster) DeregisterTrustPeer ¶
func (m *MockBroadcaster) DeregisterTrustPeer(peerID models.P2PID) error
DeregisterTrustPeer mocks base method
func (*MockBroadcaster) EXPECT ¶
func (m *MockBroadcaster) EXPECT() *MockBroadcasterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockBroadcaster) RegisterTrustPeer ¶
func (m *MockBroadcaster) RegisterTrustPeer(peerID models.P2PID) error
RegisterTrustPeer mocks base method
func (*MockBroadcaster) SubscribeDropPeer ¶
func (m *MockBroadcaster) SubscribeDropPeer(dropPeerCh chan models.P2PID) event.Subscription
SubscribeDropPeer mocks base method
func (*MockBroadcaster) SubscribeMsg ¶
func (m *MockBroadcaster) SubscribeMsg(msgType uint, ch chan<- *models.P2PMessage) event.Subscription
SubscribeMsg mocks base method
func (*MockBroadcaster) SubscribeNewPeer ¶
func (m *MockBroadcaster) SubscribeNewPeer(newPeerCh chan models.P2PID) event.Subscription
SubscribeNewPeer mocks base method
type MockBroadcasterMockRecorder ¶
type MockBroadcasterMockRecorder struct {
// contains filtered or unexported fields
}
MockBroadcasterMockRecorder is the mock recorder for MockBroadcaster
func (*MockBroadcasterMockRecorder) Broadcast ¶
func (mr *MockBroadcasterMockRecorder) Broadcast(peers, mType, payload interface{}) *gomock.Call
Broadcast indicates an expected call of Broadcast
func (*MockBroadcasterMockRecorder) BroadcastTxs ¶
func (mr *MockBroadcasterMockRecorder) BroadcastTxs(peerId, txs, isForce interface{}) *gomock.Call
BroadcastTxs indicates an expected call of BroadcastTxs
func (*MockBroadcasterMockRecorder) DeregisterTrustPeer ¶
func (mr *MockBroadcasterMockRecorder) DeregisterTrustPeer(peerID interface{}) *gomock.Call
DeregisterTrustPeer indicates an expected call of DeregisterTrustPeer
func (*MockBroadcasterMockRecorder) RegisterTrustPeer ¶
func (mr *MockBroadcasterMockRecorder) RegisterTrustPeer(peerID interface{}) *gomock.Call
RegisterTrustPeer indicates an expected call of RegisterTrustPeer
func (*MockBroadcasterMockRecorder) Start ¶
func (mr *MockBroadcasterMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start
func (*MockBroadcasterMockRecorder) Stop ¶
func (mr *MockBroadcasterMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop
func (*MockBroadcasterMockRecorder) SubscribeDropPeer ¶
func (mr *MockBroadcasterMockRecorder) SubscribeDropPeer(dropPeerCh interface{}) *gomock.Call
SubscribeDropPeer indicates an expected call of SubscribeDropPeer
func (*MockBroadcasterMockRecorder) SubscribeMsg ¶
func (mr *MockBroadcasterMockRecorder) SubscribeMsg(msgType, ch interface{}) *gomock.Call
SubscribeMsg indicates an expected call of SubscribeMsg
func (*MockBroadcasterMockRecorder) SubscribeNewPeer ¶
func (mr *MockBroadcasterMockRecorder) SubscribeNewPeer(newPeerCh interface{}) *gomock.Call
SubscribeNewPeer indicates an expected call of SubscribeNewPeer
type MockChainContext ¶
type MockChainContext struct {
// contains filtered or unexported fields
}
MockChainContext is a mock of ChainContext interface
func NewMockChainContext ¶
func NewMockChainContext(ctrl *gomock.Controller) *MockChainContext
NewMockChainContext creates a new mock instance
func (*MockChainContext) EXPECT ¶
func (m *MockChainContext) EXPECT() *MockChainContextMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockChainContext2 ¶
type MockChainContext2 struct {
// contains filtered or unexported fields
}
MockChainContext2 is a mock of ChainContext2 interface
func NewMockChainContext2 ¶
func NewMockChainContext2(ctrl *gomock.Controller) *MockChainContext2
NewMockChainContext2 creates a new mock instance
func (*MockChainContext2) EXPECT ¶
func (m *MockChainContext2) EXPECT() *MockChainContext2MockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockChainContext2) GetBlockNum ¶
func (m *MockChainContext2) GetBlockNum() *big.Int
GetBlockNum mocks base method
func (*MockChainContext2) GetOrigin ¶
func (m *MockChainContext2) GetOrigin() types.Address
GetOrigin mocks base method
func (*MockChainContext2) GetStateDb ¶
func (m *MockChainContext2) GetStateDb() protocol.StateDB
GetStateDb mocks base method
func (*MockChainContext2) GetTime ¶
func (m *MockChainContext2) GetTime() *big.Int
GetTime mocks base method
type MockChainContext2MockRecorder ¶
type MockChainContext2MockRecorder struct {
// contains filtered or unexported fields
}
MockChainContext2MockRecorder is the mock recorder for MockChainContext2
func (*MockChainContext2MockRecorder) GetBlockNum ¶
func (mr *MockChainContext2MockRecorder) GetBlockNum() *gomock.Call
GetBlockNum indicates an expected call of GetBlockNum
func (*MockChainContext2MockRecorder) GetOrigin ¶
func (mr *MockChainContext2MockRecorder) GetOrigin() *gomock.Call
GetOrigin indicates an expected call of GetOrigin
func (*MockChainContext2MockRecorder) GetStateDb ¶
func (mr *MockChainContext2MockRecorder) GetStateDb() *gomock.Call
GetStateDb indicates an expected call of GetStateDb
func (*MockChainContext2MockRecorder) GetTime ¶
func (mr *MockChainContext2MockRecorder) GetTime() *gomock.Call
GetTime indicates an expected call of GetTime
type MockChainContextMockRecorder ¶
type MockChainContextMockRecorder struct {
// contains filtered or unexported fields
}
MockChainContextMockRecorder is the mock recorder for MockChainContext
func (*MockChainContextMockRecorder) GetHeader ¶
func (mr *MockChainContextMockRecorder) GetHeader(bHash, height interface{}) *gomock.Call
GetHeader indicates an expected call of GetHeader
type MockConfig ¶
type MockConfig struct {
// contains filtered or unexported fields
}
MockConfig is a mock of Config interface
func NewMockConfig ¶
func NewMockConfig(ctrl *gomock.Controller) *MockConfig
NewMockConfig creates a new mock instance
func (*MockConfig) BlockchainConfig ¶
func (m *MockConfig) BlockchainConfig() models.BlockchainLocalConfig
BlockchainConfig mocks base method
func (*MockConfig) BroadcasterConfig ¶
func (m *MockConfig) BroadcasterConfig() models.BroadcasterLocalConfig
BroadcasterConfig mocks base method
func (*MockConfig) ChainConfig ¶
func (m *MockConfig) ChainConfig() models.ChainConfig
ChainConfig mocks base method
func (*MockConfig) ConsensusConfig ¶
func (m *MockConfig) ConsensusConfig() models.ConsensusLocalConfig
ConsensusConfig mocks base method
func (*MockConfig) DatabaseConfig ¶
func (m *MockConfig) DatabaseConfig() models.DatabaseConfig
DatabaseConfig mocks base method
func (*MockConfig) EXPECT ¶
func (m *MockConfig) EXPECT() *MockConfigMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockConfig) EnablePacker ¶
func (m *MockConfig) EnablePacker() bool
EnablePacker mocks base method
func (*MockConfig) GenesisBlock ¶
func (m *MockConfig) GenesisBlock() *models.Block
GenesisBlock mocks base method
func (*MockConfig) LocalConfig ¶
func (m *MockConfig) LocalConfig() *models.LocalConfig
LocalConfig mocks base method
func (*MockConfig) NodeKeyConfig ¶
func (m *MockConfig) NodeKeyConfig() models.NodeKeyLocalConfig
NodeKeyConfig mocks base method
func (*MockConfig) P2PConfig ¶
func (m *MockConfig) P2PConfig() models.P2PConfig
P2PConfig mocks base method
func (*MockConfig) PackerConfig ¶
func (m *MockConfig) PackerConfig() models.PackerLocalConfig
PackerConfig mocks base method
func (*MockConfig) SetDatabase ¶
func (m *MockConfig) SetDatabase(db protocol.DatabaseReader) error
SetDatabase mocks base method
func (*MockConfig) TxPoolConfig ¶
func (m *MockConfig) TxPoolConfig() models.TxPoolLocalConfig
TxPoolConfig mocks base method
func (*MockConfig) TxSizeLimit ¶
func (m *MockConfig) TxSizeLimit() types.StorageSize
TxSizeLimit mocks base method
type MockConfigMockRecorder ¶
type MockConfigMockRecorder struct {
// contains filtered or unexported fields
}
MockConfigMockRecorder is the mock recorder for MockConfig
func (*MockConfigMockRecorder) BlockchainConfig ¶
func (mr *MockConfigMockRecorder) BlockchainConfig() *gomock.Call
BlockchainConfig indicates an expected call of BlockchainConfig
func (*MockConfigMockRecorder) BroadcasterConfig ¶
func (mr *MockConfigMockRecorder) BroadcasterConfig() *gomock.Call
BroadcasterConfig indicates an expected call of BroadcasterConfig
func (*MockConfigMockRecorder) ChainConfig ¶
func (mr *MockConfigMockRecorder) ChainConfig() *gomock.Call
ChainConfig indicates an expected call of ChainConfig
func (*MockConfigMockRecorder) ConsensusConfig ¶
func (mr *MockConfigMockRecorder) ConsensusConfig() *gomock.Call
ConsensusConfig indicates an expected call of ConsensusConfig
func (*MockConfigMockRecorder) DatabaseConfig ¶
func (mr *MockConfigMockRecorder) DatabaseConfig() *gomock.Call
DatabaseConfig indicates an expected call of DatabaseConfig
func (*MockConfigMockRecorder) EnablePacker ¶
func (mr *MockConfigMockRecorder) EnablePacker() *gomock.Call
EnablePacker indicates an expected call of EnablePacker
func (*MockConfigMockRecorder) GenesisBlock ¶
func (mr *MockConfigMockRecorder) GenesisBlock() *gomock.Call
GenesisBlock indicates an expected call of GenesisBlock
func (*MockConfigMockRecorder) LocalConfig ¶
func (mr *MockConfigMockRecorder) LocalConfig() *gomock.Call
LocalConfig indicates an expected call of LocalConfig
func (*MockConfigMockRecorder) NodeKeyConfig ¶
func (mr *MockConfigMockRecorder) NodeKeyConfig() *gomock.Call
NodeKeyConfig indicates an expected call of NodeKeyConfig
func (*MockConfigMockRecorder) P2PConfig ¶
func (mr *MockConfigMockRecorder) P2PConfig() *gomock.Call
P2PConfig indicates an expected call of P2PConfig
func (*MockConfigMockRecorder) PackerConfig ¶
func (mr *MockConfigMockRecorder) PackerConfig() *gomock.Call
PackerConfig indicates an expected call of PackerConfig
func (*MockConfigMockRecorder) SetDatabase ¶
func (mr *MockConfigMockRecorder) SetDatabase(db interface{}) *gomock.Call
SetDatabase indicates an expected call of SetDatabase
func (*MockConfigMockRecorder) TxPoolConfig ¶
func (mr *MockConfigMockRecorder) TxPoolConfig() *gomock.Call
TxPoolConfig indicates an expected call of TxPoolConfig
func (*MockConfigMockRecorder) TxSizeLimit ¶
func (mr *MockConfigMockRecorder) TxSizeLimit() *gomock.Call
TxSizeLimit indicates an expected call of TxSizeLimit
type MockConsensus ¶
type MockConsensus struct {
// contains filtered or unexported fields
}
MockConsensus is a mock of Consensus interface
func NewMockConsensus ¶
func NewMockConsensus(ctrl *gomock.Controller) *MockConsensus
NewMockConsensus creates a new mock instance
func (*MockConsensus) EXPECT ¶
func (m *MockConsensus) EXPECT() *MockConsensusMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockConsensus) Finalize ¶
func (m *MockConsensus) Finalize(blockReader protocol.BlockReader, header *models.Header, txs models.Transactions) (*models.Block, error)
Finalize mocks base method
func (*MockConsensus) Prepare ¶
func (m *MockConsensus) Prepare(blockReader protocol.BlockReader, header *models.Header) error
Prepare mocks base method
func (*MockConsensus) Seal ¶
func (m *MockConsensus) Seal(ctx context.Context, blockReader protocol.BlockReader, block *models.Block, results chan<- *models.Block) error
Seal mocks base method
func (*MockConsensus) VerifyHeader ¶
func (m *MockConsensus) VerifyHeader(blockReader protocol.BlockReader, header *models.Header) error
VerifyHeader mocks base method
func (*MockConsensus) VerifyHeaders ¶
func (m *MockConsensus) VerifyHeaders(blockReader protocol.BlockReader, headers []*models.Header, seals []bool) (chan<- struct{}, <-chan error)
VerifyHeaders mocks base method
type MockConsensusMockRecorder ¶
type MockConsensusMockRecorder struct {
// contains filtered or unexported fields
}
MockConsensusMockRecorder is the mock recorder for MockConsensus
func (*MockConsensusMockRecorder) Begin ¶
func (mr *MockConsensusMockRecorder) Begin() *gomock.Call
Begin indicates an expected call of Begin
func (*MockConsensusMockRecorder) Finalize ¶
func (mr *MockConsensusMockRecorder) Finalize(blockReader, header, txs interface{}) *gomock.Call
Finalize indicates an expected call of Finalize
func (*MockConsensusMockRecorder) Prepare ¶
func (mr *MockConsensusMockRecorder) Prepare(blockReader, header interface{}) *gomock.Call
Prepare indicates an expected call of Prepare
func (*MockConsensusMockRecorder) Seal ¶
func (mr *MockConsensusMockRecorder) Seal(ctx, blockReader, block, results interface{}) *gomock.Call
Seal indicates an expected call of Seal
func (*MockConsensusMockRecorder) Start ¶
func (mr *MockConsensusMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start
func (*MockConsensusMockRecorder) Stop ¶
func (mr *MockConsensusMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop
func (*MockConsensusMockRecorder) VerifyHeader ¶
func (mr *MockConsensusMockRecorder) VerifyHeader(blockReader, header interface{}) *gomock.Call
VerifyHeader indicates an expected call of VerifyHeader
func (*MockConsensusMockRecorder) VerifyHeaders ¶
func (mr *MockConsensusMockRecorder) VerifyHeaders(blockReader, headers, seals interface{}) *gomock.Call
VerifyHeaders indicates an expected call of VerifyHeaders
type MockContract ¶
type MockContract struct {
// contains filtered or unexported fields
}
MockContract is a mock of Contract interface
func NewMockContract ¶
func NewMockContract(ctrl *gomock.Controller) *MockContract
NewMockContract creates a new mock instance
func (*MockContract) Address ¶
func (m *MockContract) Address() types.Address
Address mocks base method
func (*MockContract) AsDelegate ¶
func (m *MockContract) AsDelegate() protocol.Contract
AsDelegate mocks base method
func (*MockContract) Caller ¶
func (m *MockContract) Caller() types.Address
Caller mocks base method
func (*MockContract) EXPECT ¶
func (m *MockContract) EXPECT() *MockContractMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockContract) SetCallCode ¶
SetCallCode mocks base method
func (*MockContract) UseGas ¶
func (m *MockContract) UseGas(gas uint64) bool
UseGas mocks base method
type MockContractMockRecorder ¶
type MockContractMockRecorder struct {
// contains filtered or unexported fields
}
MockContractMockRecorder is the mock recorder for MockContract
func (*MockContractMockRecorder) Address ¶
func (mr *MockContractMockRecorder) Address() *gomock.Call
Address indicates an expected call of Address
func (*MockContractMockRecorder) AsDelegate ¶
func (mr *MockContractMockRecorder) AsDelegate() *gomock.Call
AsDelegate indicates an expected call of AsDelegate
func (*MockContractMockRecorder) Caller ¶
func (mr *MockContractMockRecorder) Caller() *gomock.Call
Caller indicates an expected call of Caller
func (*MockContractMockRecorder) SetCallCode ¶
func (mr *MockContractMockRecorder) SetCallCode(addr, hash, code interface{}) *gomock.Call
SetCallCode indicates an expected call of SetCallCode
func (*MockContractMockRecorder) UseGas ¶
func (mr *MockContractMockRecorder) UseGas(gas interface{}) *gomock.Call
UseGas indicates an expected call of UseGas
func (*MockContractMockRecorder) Value ¶
func (mr *MockContractMockRecorder) Value() *gomock.Call
Value indicates an expected call of Value
type MockContractRef ¶
type MockContractRef struct {
// contains filtered or unexported fields
}
MockContractRef is a mock of ContractRef interface
func NewMockContractRef ¶
func NewMockContractRef(ctrl *gomock.Controller) *MockContractRef
NewMockContractRef creates a new mock instance
func (*MockContractRef) Address ¶
func (m *MockContractRef) Address() types.Address
Address mocks base method
func (*MockContractRef) EXPECT ¶
func (m *MockContractRef) EXPECT() *MockContractRefMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockContractRefMockRecorder ¶
type MockContractRefMockRecorder struct {
// contains filtered or unexported fields
}
MockContractRefMockRecorder is the mock recorder for MockContractRef
func (*MockContractRefMockRecorder) Address ¶
func (mr *MockContractRefMockRecorder) Address() *gomock.Call
Address indicates an expected call of Address
type MockDatabase ¶
type MockDatabase struct {
// contains filtered or unexported fields
}
MockDatabase is a mock of Database interface
func NewMockDatabase ¶
func NewMockDatabase(ctrl *gomock.Controller) *MockDatabase
NewMockDatabase creates a new mock instance
func (*MockDatabase) ChainConfig ¶
func (m *MockDatabase) ChainConfig() (*models.ChainConfig, error)
ChainConfig mocks base method
func (*MockDatabase) CurrentBlock ¶
func (m *MockDatabase) CurrentBlock() (*models.Block, error)
CurrentBlock mocks base method
func (*MockDatabase) DeleteBlock ¶
func (m *MockDatabase) DeleteBlock(blockAbs []models.BlockAbstract, currentHeight, desHeight uint64) error
DeleteBlock mocks base method
func (*MockDatabase) EXPECT ¶
func (m *MockDatabase) EXPECT() *MockDatabaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockDatabase) GetBlockByHash ¶
GetBlockByHash mocks base method
func (*MockDatabase) GetBlockByHeight ¶
func (m *MockDatabase) GetBlockByHeight(height uint64) (*models.Block, error)
GetBlockByHeight mocks base method
func (*MockDatabase) GetCanonicalHash ¶
func (m *MockDatabase) GetCanonicalHash(height uint64) (types.Hash, error)
GetCanonicalHash mocks base method
func (*MockDatabase) GetChainConfig ¶
func (m *MockDatabase) GetChainConfig(hash types.Hash, height uint64) (*models.ChainConfig, error)
GetChainConfig mocks base method
func (*MockDatabase) GetChainConfigByHash ¶
func (m *MockDatabase) GetChainConfigByHash(hash types.Hash) (*models.ChainConfig, error)
GetChainConfigByHash mocks base method
func (*MockDatabase) GetChainConfigByHeight ¶
func (m *MockDatabase) GetChainConfigByHeight(height uint64) (*models.ChainConfig, error)
GetChainConfigByHeight mocks base method
func (*MockDatabase) GetHeaderByHash ¶
GetHeaderByHash mocks base method
func (*MockDatabase) GetHeaderByHeight ¶
func (m *MockDatabase) GetHeaderByHeight(height uint64) (*models.Header, error)
GetHeaderByHeight mocks base method
func (*MockDatabase) GetHeaderHeight ¶
func (m *MockDatabase) GetHeaderHeight(hash types.Hash) (*uint64, error)
GetHeaderHeight mocks base method
func (*MockDatabase) GetReceipts ¶
GetReceipts mocks base method
func (*MockDatabase) GetTransaction ¶
func (m *MockDatabase) GetTransaction(hash types.Hash) (models.Transaction, types.Hash, uint64, uint64, error)
GetTransaction mocks base method
func (*MockDatabase) LatestBlockHash ¶
func (m *MockDatabase) LatestBlockHash() (types.Hash, error)
LatestBlockHash mocks base method
func (*MockDatabase) LatestHeader ¶
func (m *MockDatabase) LatestHeader() (*models.Header, error)
LatestHeader mocks base method
func (*MockDatabase) LatestHeaderHash ¶
func (m *MockDatabase) LatestHeaderHash() (types.Hash, error)
LatestHeaderHash mocks base method
func (*MockDatabase) WriteBlock ¶
func (m *MockDatabase) WriteBlock(block *models.Block) error
WriteBlock mocks base method
func (*MockDatabase) WriteCanonicalHash ¶
func (m *MockDatabase) WriteCanonicalHash(bHash types.Hash, height uint64) error
WriteCanonicalHash mocks base method
func (*MockDatabase) WriteChainConfig ¶
func (m *MockDatabase) WriteChainConfig(bHash types.Hash, height uint64, chainConfig *models.ChainConfig) error
WriteChainConfig mocks base method
func (*MockDatabase) WriteHeader ¶
func (m *MockDatabase) WriteHeader(header *models.Header) error
WriteHeader mocks base method
func (*MockDatabase) WriteLatestBlockHash ¶
func (m *MockDatabase) WriteLatestBlockHash(bHash types.Hash) error
WriteLatestBlockHash mocks base method
func (*MockDatabase) WriteLatestHeaderHash ¶
func (m *MockDatabase) WriteLatestHeaderHash(bHash types.Hash) error
WriteLatestHeaderHash mocks base method
func (*MockDatabase) WriteReceipts ¶
func (m *MockDatabase) WriteReceipts(bHash types.Hash, height uint64, receipts statetype.Receipts) error
WriteReceipts mocks base method
func (*MockDatabase) WriteTxsLookup ¶
func (m *MockDatabase) WriteTxsLookup(block *models.Block) error
WriteTxsLookup mocks base method
type MockDatabaseMockRecorder ¶
type MockDatabaseMockRecorder struct {
// contains filtered or unexported fields
}
MockDatabaseMockRecorder is the mock recorder for MockDatabase
func (*MockDatabaseMockRecorder) ChainConfig ¶
func (mr *MockDatabaseMockRecorder) ChainConfig() *gomock.Call
ChainConfig indicates an expected call of ChainConfig
func (*MockDatabaseMockRecorder) CurrentBlock ¶
func (mr *MockDatabaseMockRecorder) CurrentBlock() *gomock.Call
CurrentBlock indicates an expected call of CurrentBlock
func (*MockDatabaseMockRecorder) DeleteBlock ¶
func (mr *MockDatabaseMockRecorder) DeleteBlock(blockAbs, currentHeight, desHeight interface{}) *gomock.Call
DeleteBlock indicates an expected call of DeleteBlock
func (*MockDatabaseMockRecorder) GetBlock ¶
func (mr *MockDatabaseMockRecorder) GetBlock(hash, height interface{}) *gomock.Call
GetBlock indicates an expected call of GetBlock
func (*MockDatabaseMockRecorder) GetBlockByHash ¶
func (mr *MockDatabaseMockRecorder) GetBlockByHash(hash interface{}) *gomock.Call
GetBlockByHash indicates an expected call of GetBlockByHash
func (*MockDatabaseMockRecorder) GetBlockByHeight ¶
func (mr *MockDatabaseMockRecorder) GetBlockByHeight(height interface{}) *gomock.Call
GetBlockByHeight indicates an expected call of GetBlockByHeight
func (*MockDatabaseMockRecorder) GetBody ¶
func (mr *MockDatabaseMockRecorder) GetBody(hash, height interface{}) *gomock.Call
GetBody indicates an expected call of GetBody
func (*MockDatabaseMockRecorder) GetCanonicalHash ¶
func (mr *MockDatabaseMockRecorder) GetCanonicalHash(height interface{}) *gomock.Call
GetCanonicalHash indicates an expected call of GetCanonicalHash
func (*MockDatabaseMockRecorder) GetChainConfig ¶
func (mr *MockDatabaseMockRecorder) GetChainConfig(hash, height interface{}) *gomock.Call
GetChainConfig indicates an expected call of GetChainConfig
func (*MockDatabaseMockRecorder) GetChainConfigByHash ¶
func (mr *MockDatabaseMockRecorder) GetChainConfigByHash(hash interface{}) *gomock.Call
GetChainConfigByHash indicates an expected call of GetChainConfigByHash
func (*MockDatabaseMockRecorder) GetChainConfigByHeight ¶
func (mr *MockDatabaseMockRecorder) GetChainConfigByHeight(height interface{}) *gomock.Call
GetChainConfigByHeight indicates an expected call of GetChainConfigByHeight
func (*MockDatabaseMockRecorder) GetHeader ¶
func (mr *MockDatabaseMockRecorder) GetHeader(hash, height interface{}) *gomock.Call
GetHeader indicates an expected call of GetHeader
func (*MockDatabaseMockRecorder) GetHeaderByHash ¶
func (mr *MockDatabaseMockRecorder) GetHeaderByHash(hash interface{}) *gomock.Call
GetHeaderByHash indicates an expected call of GetHeaderByHash
func (*MockDatabaseMockRecorder) GetHeaderByHeight ¶
func (mr *MockDatabaseMockRecorder) GetHeaderByHeight(height interface{}) *gomock.Call
GetHeaderByHeight indicates an expected call of GetHeaderByHeight
func (*MockDatabaseMockRecorder) GetHeaderHeight ¶
func (mr *MockDatabaseMockRecorder) GetHeaderHeight(hash interface{}) *gomock.Call
GetHeaderHeight indicates an expected call of GetHeaderHeight
func (*MockDatabaseMockRecorder) GetReceipts ¶
func (mr *MockDatabaseMockRecorder) GetReceipts(bHash, height interface{}) *gomock.Call
GetReceipts indicates an expected call of GetReceipts
func (*MockDatabaseMockRecorder) GetTransaction ¶
func (mr *MockDatabaseMockRecorder) GetTransaction(hash interface{}) *gomock.Call
GetTransaction indicates an expected call of GetTransaction
func (*MockDatabaseMockRecorder) HasBlock ¶
func (mr *MockDatabaseMockRecorder) HasBlock(hash, number interface{}) *gomock.Call
HasBlock indicates an expected call of HasBlock
func (*MockDatabaseMockRecorder) HasHeader ¶
func (mr *MockDatabaseMockRecorder) HasHeader(hash, height interface{}) *gomock.Call
HasHeader indicates an expected call of HasHeader
func (*MockDatabaseMockRecorder) LatestBlockHash ¶
func (mr *MockDatabaseMockRecorder) LatestBlockHash() *gomock.Call
LatestBlockHash indicates an expected call of LatestBlockHash
func (*MockDatabaseMockRecorder) LatestHeader ¶
func (mr *MockDatabaseMockRecorder) LatestHeader() *gomock.Call
LatestHeader indicates an expected call of LatestHeader
func (*MockDatabaseMockRecorder) LatestHeaderHash ¶
func (mr *MockDatabaseMockRecorder) LatestHeaderHash() *gomock.Call
LatestHeaderHash indicates an expected call of LatestHeaderHash
func (*MockDatabaseMockRecorder) Start ¶
func (mr *MockDatabaseMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start
func (*MockDatabaseMockRecorder) Stop ¶
func (mr *MockDatabaseMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop
func (*MockDatabaseMockRecorder) WriteBlock ¶
func (mr *MockDatabaseMockRecorder) WriteBlock(block interface{}) *gomock.Call
WriteBlock indicates an expected call of WriteBlock
func (*MockDatabaseMockRecorder) WriteCanonicalHash ¶
func (mr *MockDatabaseMockRecorder) WriteCanonicalHash(bHash, height interface{}) *gomock.Call
WriteCanonicalHash indicates an expected call of WriteCanonicalHash
func (*MockDatabaseMockRecorder) WriteChainConfig ¶
func (mr *MockDatabaseMockRecorder) WriteChainConfig(bHash, height, chainConfig interface{}) *gomock.Call
WriteChainConfig indicates an expected call of WriteChainConfig
func (*MockDatabaseMockRecorder) WriteHeader ¶
func (mr *MockDatabaseMockRecorder) WriteHeader(header interface{}) *gomock.Call
WriteHeader indicates an expected call of WriteHeader
func (*MockDatabaseMockRecorder) WriteLatestBlockHash ¶
func (mr *MockDatabaseMockRecorder) WriteLatestBlockHash(bHash interface{}) *gomock.Call
WriteLatestBlockHash indicates an expected call of WriteLatestBlockHash
func (*MockDatabaseMockRecorder) WriteLatestHeaderHash ¶
func (mr *MockDatabaseMockRecorder) WriteLatestHeaderHash(bHash interface{}) *gomock.Call
WriteLatestHeaderHash indicates an expected call of WriteLatestHeaderHash
func (*MockDatabaseMockRecorder) WriteReceipts ¶
func (mr *MockDatabaseMockRecorder) WriteReceipts(bHash, height, receipts interface{}) *gomock.Call
WriteReceipts indicates an expected call of WriteReceipts
func (*MockDatabaseMockRecorder) WriteTxsLookup ¶
func (mr *MockDatabaseMockRecorder) WriteTxsLookup(block interface{}) *gomock.Call
WriteTxsLookup indicates an expected call of WriteTxsLookup
type MockDatabaseReader ¶
type MockDatabaseReader struct {
// contains filtered or unexported fields
}
MockDatabaseReader is a mock of DatabaseReader interface
func NewMockDatabaseReader ¶
func NewMockDatabaseReader(ctrl *gomock.Controller) *MockDatabaseReader
NewMockDatabaseReader creates a new mock instance
func (*MockDatabaseReader) ChainConfig ¶
func (m *MockDatabaseReader) ChainConfig() (*models.ChainConfig, error)
ChainConfig mocks base method
func (*MockDatabaseReader) CurrentBlock ¶
func (m *MockDatabaseReader) CurrentBlock() (*models.Block, error)
CurrentBlock mocks base method
func (*MockDatabaseReader) EXPECT ¶
func (m *MockDatabaseReader) EXPECT() *MockDatabaseReaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockDatabaseReader) GetBlockByHash ¶
GetBlockByHash mocks base method
func (*MockDatabaseReader) GetBlockByHeight ¶
func (m *MockDatabaseReader) GetBlockByHeight(height uint64) (*models.Block, error)
GetBlockByHeight mocks base method
func (*MockDatabaseReader) GetCanonicalHash ¶
func (m *MockDatabaseReader) GetCanonicalHash(height uint64) (types.Hash, error)
GetCanonicalHash mocks base method
func (*MockDatabaseReader) GetChainConfig ¶
func (m *MockDatabaseReader) GetChainConfig(hash types.Hash, height uint64) (*models.ChainConfig, error)
GetChainConfig mocks base method
func (*MockDatabaseReader) GetChainConfigByHash ¶
func (m *MockDatabaseReader) GetChainConfigByHash(hash types.Hash) (*models.ChainConfig, error)
GetChainConfigByHash mocks base method
func (*MockDatabaseReader) GetChainConfigByHeight ¶
func (m *MockDatabaseReader) GetChainConfigByHeight(height uint64) (*models.ChainConfig, error)
GetChainConfigByHeight mocks base method
func (*MockDatabaseReader) GetHeaderByHash ¶
GetHeaderByHash mocks base method
func (*MockDatabaseReader) GetHeaderByHeight ¶
func (m *MockDatabaseReader) GetHeaderByHeight(height uint64) (*models.Header, error)
GetHeaderByHeight mocks base method
func (*MockDatabaseReader) GetHeaderHeight ¶
func (m *MockDatabaseReader) GetHeaderHeight(hash types.Hash) (*uint64, error)
GetHeaderHeight mocks base method
func (*MockDatabaseReader) GetReceipts ¶
func (m *MockDatabaseReader) GetReceipts(bHash types.Hash, height uint64) (statetype.Receipts, error)
GetReceipts mocks base method
func (*MockDatabaseReader) GetTransaction ¶
func (m *MockDatabaseReader) GetTransaction(hash types.Hash) (models.Transaction, types.Hash, uint64, uint64, error)
GetTransaction mocks base method
func (*MockDatabaseReader) LatestBlockHash ¶
func (m *MockDatabaseReader) LatestBlockHash() (types.Hash, error)
LatestBlockHash mocks base method
func (*MockDatabaseReader) LatestHeader ¶
func (m *MockDatabaseReader) LatestHeader() (*models.Header, error)
LatestHeader mocks base method
func (*MockDatabaseReader) LatestHeaderHash ¶
func (m *MockDatabaseReader) LatestHeaderHash() (types.Hash, error)
LatestHeaderHash mocks base method
func (*MockDatabaseReader) Start ¶
func (m *MockDatabaseReader) Start() error
Start mocks base method
type MockDatabaseReaderMockRecorder ¶
type MockDatabaseReaderMockRecorder struct {
// contains filtered or unexported fields
}
MockDatabaseReaderMockRecorder is the mock recorder for MockDatabaseReader
func (*MockDatabaseReaderMockRecorder) ChainConfig ¶
func (mr *MockDatabaseReaderMockRecorder) ChainConfig() *gomock.Call
ChainConfig indicates an expected call of ChainConfig
func (*MockDatabaseReaderMockRecorder) CurrentBlock ¶
func (mr *MockDatabaseReaderMockRecorder) CurrentBlock() *gomock.Call
CurrentBlock indicates an expected call of CurrentBlock
func (*MockDatabaseReaderMockRecorder) GetBlock ¶
func (mr *MockDatabaseReaderMockRecorder) GetBlock(hash, height interface{}) *gomock.Call
GetBlock indicates an expected call of GetBlock
func (*MockDatabaseReaderMockRecorder) GetBlockByHash ¶
func (mr *MockDatabaseReaderMockRecorder) GetBlockByHash(hash interface{}) *gomock.Call
GetBlockByHash indicates an expected call of GetBlockByHash
func (*MockDatabaseReaderMockRecorder) GetBlockByHeight ¶
func (mr *MockDatabaseReaderMockRecorder) GetBlockByHeight(height interface{}) *gomock.Call
GetBlockByHeight indicates an expected call of GetBlockByHeight
func (*MockDatabaseReaderMockRecorder) GetBody ¶
func (mr *MockDatabaseReaderMockRecorder) GetBody(hash, height interface{}) *gomock.Call
GetBody indicates an expected call of GetBody
func (*MockDatabaseReaderMockRecorder) GetCanonicalHash ¶
func (mr *MockDatabaseReaderMockRecorder) GetCanonicalHash(height interface{}) *gomock.Call
GetCanonicalHash indicates an expected call of GetCanonicalHash
func (*MockDatabaseReaderMockRecorder) GetChainConfig ¶
func (mr *MockDatabaseReaderMockRecorder) GetChainConfig(hash, height interface{}) *gomock.Call
GetChainConfig indicates an expected call of GetChainConfig
func (*MockDatabaseReaderMockRecorder) GetChainConfigByHash ¶
func (mr *MockDatabaseReaderMockRecorder) GetChainConfigByHash(hash interface{}) *gomock.Call
GetChainConfigByHash indicates an expected call of GetChainConfigByHash
func (*MockDatabaseReaderMockRecorder) GetChainConfigByHeight ¶
func (mr *MockDatabaseReaderMockRecorder) GetChainConfigByHeight(height interface{}) *gomock.Call
GetChainConfigByHeight indicates an expected call of GetChainConfigByHeight
func (*MockDatabaseReaderMockRecorder) GetHeader ¶
func (mr *MockDatabaseReaderMockRecorder) GetHeader(hash, height interface{}) *gomock.Call
GetHeader indicates an expected call of GetHeader
func (*MockDatabaseReaderMockRecorder) GetHeaderByHash ¶
func (mr *MockDatabaseReaderMockRecorder) GetHeaderByHash(hash interface{}) *gomock.Call
GetHeaderByHash indicates an expected call of GetHeaderByHash
func (*MockDatabaseReaderMockRecorder) GetHeaderByHeight ¶
func (mr *MockDatabaseReaderMockRecorder) GetHeaderByHeight(height interface{}) *gomock.Call
GetHeaderByHeight indicates an expected call of GetHeaderByHeight
func (*MockDatabaseReaderMockRecorder) GetHeaderHeight ¶
func (mr *MockDatabaseReaderMockRecorder) GetHeaderHeight(hash interface{}) *gomock.Call
GetHeaderHeight indicates an expected call of GetHeaderHeight
func (*MockDatabaseReaderMockRecorder) GetReceipts ¶
func (mr *MockDatabaseReaderMockRecorder) GetReceipts(bHash, height interface{}) *gomock.Call
GetReceipts indicates an expected call of GetReceipts
func (*MockDatabaseReaderMockRecorder) GetTransaction ¶
func (mr *MockDatabaseReaderMockRecorder) GetTransaction(hash interface{}) *gomock.Call
GetTransaction indicates an expected call of GetTransaction
func (*MockDatabaseReaderMockRecorder) HasBlock ¶
func (mr *MockDatabaseReaderMockRecorder) HasBlock(hash, number interface{}) *gomock.Call
HasBlock indicates an expected call of HasBlock
func (*MockDatabaseReaderMockRecorder) HasHeader ¶
func (mr *MockDatabaseReaderMockRecorder) HasHeader(hash, height interface{}) *gomock.Call
HasHeader indicates an expected call of HasHeader
func (*MockDatabaseReaderMockRecorder) LatestBlockHash ¶
func (mr *MockDatabaseReaderMockRecorder) LatestBlockHash() *gomock.Call
LatestBlockHash indicates an expected call of LatestBlockHash
func (*MockDatabaseReaderMockRecorder) LatestHeader ¶
func (mr *MockDatabaseReaderMockRecorder) LatestHeader() *gomock.Call
LatestHeader indicates an expected call of LatestHeader
func (*MockDatabaseReaderMockRecorder) LatestHeaderHash ¶
func (mr *MockDatabaseReaderMockRecorder) LatestHeaderHash() *gomock.Call
LatestHeaderHash indicates an expected call of LatestHeaderHash
func (*MockDatabaseReaderMockRecorder) Start ¶
func (mr *MockDatabaseReaderMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start
func (*MockDatabaseReaderMockRecorder) Stop ¶
func (mr *MockDatabaseReaderMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop
type MockDatabaseWriter ¶
type MockDatabaseWriter struct {
// contains filtered or unexported fields
}
MockDatabaseWriter is a mock of DatabaseWriter interface
func NewMockDatabaseWriter ¶
func NewMockDatabaseWriter(ctrl *gomock.Controller) *MockDatabaseWriter
NewMockDatabaseWriter creates a new mock instance
func (*MockDatabaseWriter) DeleteBlock ¶
func (m *MockDatabaseWriter) DeleteBlock(blockAbs []models.BlockAbstract, currentHeight, desHeight uint64) error
DeleteBlock mocks base method
func (*MockDatabaseWriter) EXPECT ¶
func (m *MockDatabaseWriter) EXPECT() *MockDatabaseWriterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockDatabaseWriter) WriteBlock ¶
func (m *MockDatabaseWriter) WriteBlock(block *models.Block) error
WriteBlock mocks base method
func (*MockDatabaseWriter) WriteCanonicalHash ¶
func (m *MockDatabaseWriter) WriteCanonicalHash(bHash types.Hash, height uint64) error
WriteCanonicalHash mocks base method
func (*MockDatabaseWriter) WriteChainConfig ¶
func (m *MockDatabaseWriter) WriteChainConfig(bHash types.Hash, height uint64, chainConfig *models.ChainConfig) error
WriteChainConfig mocks base method
func (*MockDatabaseWriter) WriteHeader ¶
func (m *MockDatabaseWriter) WriteHeader(header *models.Header) error
WriteHeader mocks base method
func (*MockDatabaseWriter) WriteLatestBlockHash ¶
func (m *MockDatabaseWriter) WriteLatestBlockHash(bHash types.Hash) error
WriteLatestBlockHash mocks base method
func (*MockDatabaseWriter) WriteLatestHeaderHash ¶
func (m *MockDatabaseWriter) WriteLatestHeaderHash(bHash types.Hash) error
WriteLatestHeaderHash mocks base method
func (*MockDatabaseWriter) WriteReceipts ¶
func (m *MockDatabaseWriter) WriteReceipts(bHash types.Hash, height uint64, receipts statetype.Receipts) error
WriteReceipts mocks base method
func (*MockDatabaseWriter) WriteTxsLookup ¶
func (m *MockDatabaseWriter) WriteTxsLookup(block *models.Block) error
WriteTxsLookup mocks base method
type MockDatabaseWriterMockRecorder ¶
type MockDatabaseWriterMockRecorder struct {
// contains filtered or unexported fields
}
MockDatabaseWriterMockRecorder is the mock recorder for MockDatabaseWriter
func (*MockDatabaseWriterMockRecorder) DeleteBlock ¶
func (mr *MockDatabaseWriterMockRecorder) DeleteBlock(blockAbs, currentHeight, desHeight interface{}) *gomock.Call
DeleteBlock indicates an expected call of DeleteBlock
func (*MockDatabaseWriterMockRecorder) WriteBlock ¶
func (mr *MockDatabaseWriterMockRecorder) WriteBlock(block interface{}) *gomock.Call
WriteBlock indicates an expected call of WriteBlock
func (*MockDatabaseWriterMockRecorder) WriteCanonicalHash ¶
func (mr *MockDatabaseWriterMockRecorder) WriteCanonicalHash(bHash, height interface{}) *gomock.Call
WriteCanonicalHash indicates an expected call of WriteCanonicalHash
func (*MockDatabaseWriterMockRecorder) WriteChainConfig ¶
func (mr *MockDatabaseWriterMockRecorder) WriteChainConfig(bHash, height, chainConfig interface{}) *gomock.Call
WriteChainConfig indicates an expected call of WriteChainConfig
func (*MockDatabaseWriterMockRecorder) WriteHeader ¶
func (mr *MockDatabaseWriterMockRecorder) WriteHeader(header interface{}) *gomock.Call
WriteHeader indicates an expected call of WriteHeader
func (*MockDatabaseWriterMockRecorder) WriteLatestBlockHash ¶
func (mr *MockDatabaseWriterMockRecorder) WriteLatestBlockHash(bHash interface{}) *gomock.Call
WriteLatestBlockHash indicates an expected call of WriteLatestBlockHash
func (*MockDatabaseWriterMockRecorder) WriteLatestHeaderHash ¶
func (mr *MockDatabaseWriterMockRecorder) WriteLatestHeaderHash(bHash interface{}) *gomock.Call
WriteLatestHeaderHash indicates an expected call of WriteLatestHeaderHash
func (*MockDatabaseWriterMockRecorder) WriteReceipts ¶
func (mr *MockDatabaseWriterMockRecorder) WriteReceipts(bHash, height, receipts interface{}) *gomock.Call
WriteReceipts indicates an expected call of WriteReceipts
func (*MockDatabaseWriterMockRecorder) WriteTxsLookup ¶
func (mr *MockDatabaseWriterMockRecorder) WriteTxsLookup(block interface{}) *gomock.Call
WriteTxsLookup indicates an expected call of WriteTxsLookup
type MockHandshake ¶
type MockHandshake struct {
// contains filtered or unexported fields
}
MockHandshake is a mock of Handshake interface
func NewMockHandshake ¶
func NewMockHandshake(ctrl *gomock.Controller) *MockHandshake
NewMockHandshake creates a new mock instance
func (*MockHandshake) EXPECT ¶
func (m *MockHandshake) EXPECT() *MockHandshakeMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockHandshake) RequestHandshake ¶
func (m *MockHandshake) RequestHandshake(id models.P2PID) error
RequestHandshake mocks base method
func (*MockHandshake) SubscribeHandshake ¶
func (m *MockHandshake) SubscribeHandshake(msg chan *models.HandshakeMsg) event.Subscription
SubscribeHandshake mocks base method
type MockHandshakeMockRecorder ¶
type MockHandshakeMockRecorder struct {
// contains filtered or unexported fields
}
MockHandshakeMockRecorder is the mock recorder for MockHandshake
func (*MockHandshakeMockRecorder) RequestHandshake ¶
func (mr *MockHandshakeMockRecorder) RequestHandshake(id interface{}) *gomock.Call
RequestHandshake indicates an expected call of RequestHandshake
func (*MockHandshakeMockRecorder) Start ¶
func (mr *MockHandshakeMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start
func (*MockHandshakeMockRecorder) Stop ¶
func (mr *MockHandshakeMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop
func (*MockHandshakeMockRecorder) SubscribeHandshake ¶
func (mr *MockHandshakeMockRecorder) SubscribeHandshake(msg interface{}) *gomock.Call
SubscribeHandshake indicates an expected call of SubscribeHandshake
type MockKVStore ¶
type MockKVStore struct {
// contains filtered or unexported fields
}
MockKVStore is a mock of KVStore interface
func NewMockKVStore ¶
func NewMockKVStore(ctrl *gomock.Controller) *MockKVStore
NewMockKVStore creates a new mock instance
func (*MockKVStore) Delete ¶
func (m *MockKVStore) Delete(key []byte) error
Delete mocks base method
func (*MockKVStore) EXPECT ¶
func (m *MockKVStore) EXPECT() *MockKVStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockKVStoreDeleter ¶
type MockKVStoreDeleter struct {
// contains filtered or unexported fields
}
MockKVStoreDeleter is a mock of KVStoreDeleter interface
func NewMockKVStoreDeleter ¶
func NewMockKVStoreDeleter(ctrl *gomock.Controller) *MockKVStoreDeleter
NewMockKVStoreDeleter creates a new mock instance
func (*MockKVStoreDeleter) Delete ¶
func (m *MockKVStoreDeleter) Delete(key []byte) error
Delete mocks base method
func (*MockKVStoreDeleter) EXPECT ¶
func (m *MockKVStoreDeleter) EXPECT() *MockKVStoreDeleterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockKVStoreDeleterMockRecorder ¶
type MockKVStoreDeleterMockRecorder struct {
// contains filtered or unexported fields
}
MockKVStoreDeleterMockRecorder is the mock recorder for MockKVStoreDeleter
func (*MockKVStoreDeleterMockRecorder) Delete ¶
func (mr *MockKVStoreDeleterMockRecorder) Delete(key interface{}) *gomock.Call
Delete indicates an expected call of Delete
type MockKVStoreMockRecorder ¶
type MockKVStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockKVStoreMockRecorder is the mock recorder for MockKVStore
func (*MockKVStoreMockRecorder) Delete ¶
func (mr *MockKVStoreMockRecorder) Delete(key interface{}) *gomock.Call
Delete indicates an expected call of Delete
func (*MockKVStoreMockRecorder) Get ¶
func (mr *MockKVStoreMockRecorder) Get(key interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockKVStoreMockRecorder) Has ¶
func (mr *MockKVStoreMockRecorder) Has(key interface{}) *gomock.Call
Has indicates an expected call of Has
func (*MockKVStoreMockRecorder) Put ¶
func (mr *MockKVStoreMockRecorder) Put(key, value interface{}) *gomock.Call
Put indicates an expected call of Put
type MockKVStoreReader ¶
type MockKVStoreReader struct {
// contains filtered or unexported fields
}
MockKVStoreReader is a mock of KVStoreReader interface
func NewMockKVStoreReader ¶
func NewMockKVStoreReader(ctrl *gomock.Controller) *MockKVStoreReader
NewMockKVStoreReader creates a new mock instance
func (*MockKVStoreReader) EXPECT ¶
func (m *MockKVStoreReader) EXPECT() *MockKVStoreReaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockKVStoreReaderMockRecorder ¶
type MockKVStoreReaderMockRecorder struct {
// contains filtered or unexported fields
}
MockKVStoreReaderMockRecorder is the mock recorder for MockKVStoreReader
func (*MockKVStoreReaderMockRecorder) Get ¶
func (mr *MockKVStoreReaderMockRecorder) Get(key interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockKVStoreReaderMockRecorder) Has ¶
func (mr *MockKVStoreReaderMockRecorder) Has(key interface{}) *gomock.Call
Has indicates an expected call of Has
type MockKVStoreWriter ¶
type MockKVStoreWriter struct {
// contains filtered or unexported fields
}
MockKVStoreWriter is a mock of KVStoreWriter interface
func NewMockKVStoreWriter ¶
func NewMockKVStoreWriter(ctrl *gomock.Controller) *MockKVStoreWriter
NewMockKVStoreWriter creates a new mock instance
func (*MockKVStoreWriter) EXPECT ¶
func (m *MockKVStoreWriter) EXPECT() *MockKVStoreWriterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockKVStoreWriter) Put ¶
func (m *MockKVStoreWriter) Put(key, value []byte) error
Put mocks base method
type MockKVStoreWriterMockRecorder ¶
type MockKVStoreWriterMockRecorder struct {
// contains filtered or unexported fields
}
MockKVStoreWriterMockRecorder is the mock recorder for MockKVStoreWriter
func (*MockKVStoreWriterMockRecorder) Put ¶
func (mr *MockKVStoreWriterMockRecorder) Put(key, value interface{}) *gomock.Call
Put indicates an expected call of Put
type MockKey ¶
type MockKey struct {
// contains filtered or unexported fields
}
MockKey is a mock of Key interface
func NewMockKey ¶
func NewMockKey(ctrl *gomock.Controller) *MockKey
NewMockKey creates a new mock instance
func (*MockKey) EXPECT ¶
func (m *MockKey) EXPECT() *MockKeyMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockKeyMockRecorder ¶
type MockKeyMockRecorder struct {
// contains filtered or unexported fields
}
MockKeyMockRecorder is the mock recorder for MockKey
func (*MockKeyMockRecorder) Equals ¶
func (mr *MockKeyMockRecorder) Equals(arg0 interface{}) *gomock.Call
Equals indicates an expected call of Equals
func (*MockKeyMockRecorder) Hash ¶
func (mr *MockKeyMockRecorder) Hash() *gomock.Call
Hash indicates an expected call of Hash
func (*MockKeyMockRecorder) Marshal ¶
func (mr *MockKeyMockRecorder) Marshal() *gomock.Call
Marshal indicates an expected call of Marshal
func (*MockKeyMockRecorder) Raw ¶
func (mr *MockKeyMockRecorder) Raw() *gomock.Call
Raw indicates an expected call of Raw
func (*MockKeyMockRecorder) Type ¶
func (mr *MockKeyMockRecorder) Type() *gomock.Call
Type indicates an expected call of Type
func (*MockKeyMockRecorder) Unmarshal ¶
func (mr *MockKeyMockRecorder) Unmarshal(input interface{}) *gomock.Call
Unmarshal indicates an expected call of Unmarshal
type MockNode ¶
type MockNode struct {
// contains filtered or unexported fields
}
MockNode is a mock of Node interface
func NewMockNode ¶
func NewMockNode(ctrl *gomock.Controller) *MockNode
NewMockNode creates a new mock instance
func (*MockNode) BlockReadWriter ¶
func (m *MockNode) BlockReadWriter() protocol.BlockReadWriter
BlockReadWriter mocks base method
func (*MockNode) EXPECT ¶
func (m *MockNode) EXPECT() *MockNodeMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockNode) KVDatabase ¶
KVDatabase mocks base method
func (*MockNode) SetConsensus ¶
SetConsensus mocks base method
type MockNodeKey ¶
type MockNodeKey struct {
// contains filtered or unexported fields
}
MockNodeKey is a mock of NodeKey interface
func NewMockNodeKey ¶
func NewMockNodeKey(ctrl *gomock.Controller) *MockNodeKey
NewMockNodeKey creates a new mock instance
func (*MockNodeKey) EXPECT ¶
func (m *MockNodeKey) EXPECT() *MockNodeKeyMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockNodeKey) RecoverId ¶
func (m *MockNodeKey) RecoverId(data []byte, signResult *signature.SignResult) (models.NodeID, error)
RecoverId mocks base method
func (*MockNodeKey) RecoverPub ¶
func (m *MockNodeKey) RecoverPub(data []byte, signResult *signature.SignResult) (protocol.PubKey, error)
RecoverPub mocks base method
func (*MockNodeKey) Sign ¶
func (m *MockNodeKey) Sign(data []byte) (*signature.SignResult, error)
Sign mocks base method
func (*MockNodeKey) Verify ¶
func (m *MockNodeKey) Verify(data []byte, signResult *signature.SignResult) (bool, error)
Verify mocks base method
type MockNodeKeyMockRecorder ¶
type MockNodeKeyMockRecorder struct {
// contains filtered or unexported fields
}
MockNodeKeyMockRecorder is the mock recorder for MockNodeKey
func (*MockNodeKeyMockRecorder) ID ¶
func (mr *MockNodeKeyMockRecorder) ID() *gomock.Call
ID indicates an expected call of ID
func (*MockNodeKeyMockRecorder) IdFromPub ¶
func (mr *MockNodeKeyMockRecorder) IdFromPub(pub interface{}) *gomock.Call
IdFromPub indicates an expected call of IdFromPub
func (*MockNodeKeyMockRecorder) PubKey ¶
func (mr *MockNodeKeyMockRecorder) PubKey(pubKey interface{}) *gomock.Call
PubKey indicates an expected call of PubKey
func (*MockNodeKeyMockRecorder) RecoverId ¶
func (mr *MockNodeKeyMockRecorder) RecoverId(data, signResult interface{}) *gomock.Call
RecoverId indicates an expected call of RecoverId
func (*MockNodeKeyMockRecorder) RecoverPub ¶
func (mr *MockNodeKeyMockRecorder) RecoverPub(data, signResult interface{}) *gomock.Call
RecoverPub indicates an expected call of RecoverPub
func (*MockNodeKeyMockRecorder) Sign ¶
func (mr *MockNodeKeyMockRecorder) Sign(data interface{}) *gomock.Call
Sign indicates an expected call of Sign
func (*MockNodeKeyMockRecorder) Verify ¶
func (mr *MockNodeKeyMockRecorder) Verify(data, signResult interface{}) *gomock.Call
Verify indicates an expected call of Verify
type MockNodeMockRecorder ¶
type MockNodeMockRecorder struct {
// contains filtered or unexported fields
}
MockNodeMockRecorder is the mock recorder for MockNode
func (*MockNodeMockRecorder) APIs ¶
func (mr *MockNodeMockRecorder) APIs() *gomock.Call
APIs indicates an expected call of APIs
func (*MockNodeMockRecorder) AddTxPool ¶
func (mr *MockNodeMockRecorder) AddTxPool(txType, txPool interface{}) *gomock.Call
AddTxPool indicates an expected call of AddTxPool
func (*MockNodeMockRecorder) Apps ¶
func (mr *MockNodeMockRecorder) Apps() *gomock.Call
Apps indicates an expected call of Apps
func (*MockNodeMockRecorder) BlockReadWriter ¶
func (mr *MockNodeMockRecorder) BlockReadWriter() *gomock.Call
BlockReadWriter indicates an expected call of BlockReadWriter
func (*MockNodeMockRecorder) Config ¶
func (mr *MockNodeMockRecorder) Config() *gomock.Call
Config indicates an expected call of Config
func (*MockNodeMockRecorder) Database ¶
func (mr *MockNodeMockRecorder) Database() *gomock.Call
Database indicates an expected call of Database
func (*MockNodeMockRecorder) Init ¶
func (mr *MockNodeMockRecorder) Init() *gomock.Call
Init indicates an expected call of Init
func (*MockNodeMockRecorder) KVDatabase ¶
func (mr *MockNodeMockRecorder) KVDatabase() *gomock.Call
KVDatabase indicates an expected call of KVDatabase
func (*MockNodeMockRecorder) NodeKey ¶
func (mr *MockNodeMockRecorder) NodeKey() *gomock.Call
NodeKey indicates an expected call of NodeKey
func (*MockNodeMockRecorder) SetConsensus ¶
func (mr *MockNodeMockRecorder) SetConsensus(consensus interface{}) *gomock.Call
SetConsensus indicates an expected call of SetConsensus
func (*MockNodeMockRecorder) Start ¶
func (mr *MockNodeMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start
func (*MockNodeMockRecorder) Stop ¶
func (mr *MockNodeMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop
func (*MockNodeMockRecorder) Wait ¶
func (mr *MockNodeMockRecorder) Wait() *gomock.Call
Wait indicates an expected call of Wait
type MockOPCode ¶
type MockOPCode struct {
// contains filtered or unexported fields
}
MockOPCode is a mock of OPCode interface
func NewMockOPCode ¶
func NewMockOPCode(ctrl *gomock.Controller) *MockOPCode
NewMockOPCode creates a new mock instance
func (*MockOPCode) EXPECT ¶
func (m *MockOPCode) EXPECT() *MockOPCodeMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockOPCodeMockRecorder ¶
type MockOPCodeMockRecorder struct {
// contains filtered or unexported fields
}
MockOPCodeMockRecorder is the mock recorder for MockOPCode
func (*MockOPCodeMockRecorder) Byte ¶
func (mr *MockOPCodeMockRecorder) Byte() *gomock.Call
Byte indicates an expected call of Byte
func (*MockOPCodeMockRecorder) IsPush ¶
func (mr *MockOPCodeMockRecorder) IsPush() *gomock.Call
IsPush indicates an expected call of IsPush
func (*MockOPCodeMockRecorder) String ¶
func (mr *MockOPCodeMockRecorder) String() *gomock.Call
String indicates an expected call of String
type MockP2PService ¶
type MockP2PService struct {
// contains filtered or unexported fields
}
MockP2PService is a mock of P2PService interface
func NewMockP2PService ¶
func NewMockP2PService(ctrl *gomock.Controller) *MockP2PService
NewMockP2PService creates a new mock instance
func (*MockP2PService) AddPeer ¶
func (m *MockP2PService) AddPeer(peerUrl string) error
AddPeer mocks base method
func (*MockP2PService) DropPeer ¶
func (m *MockP2PService) DropPeer(peerId models.P2PID) error
DropPeer mocks base method
func (*MockP2PService) EXPECT ¶
func (m *MockP2PService) EXPECT() *MockP2PServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockP2PService) HandshakeSuccess ¶
func (m *MockP2PService) HandshakeSuccess(peerId models.P2PID)
HandshakeSuccess mocks base method
func (*MockP2PService) P2PInfo ¶
func (m *MockP2PService) P2PInfo() map[string]*models.P2PInfo
P2PInfo mocks base method
func (*MockP2PService) RemotePeers ¶
func (m *MockP2PService) RemotePeers() []models.P2PID
RemotePeers mocks base method
func (*MockP2PService) Send ¶
func (m *MockP2PService) Send(peerId models.P2PID, msg *models.P2PMessage) error
Send mocks base method
func (*MockP2PService) SubscribeDropPeer ¶
func (m *MockP2PService) SubscribeDropPeer(ch chan<- models.P2PID) event.Subscription
SubscribeDropPeer mocks base method
func (*MockP2PService) SubscribeHandshakePeer ¶
func (m *MockP2PService) SubscribeHandshakePeer(ch chan<- models.P2PID) event.Subscription
SubscribeHandshakePeer mocks base method
func (*MockP2PService) SubscribeMsg ¶
func (m *MockP2PService) SubscribeMsg(msgType uint, ch chan<- *models.P2PMessage) event.Subscription
SubscribeMsg mocks base method
func (*MockP2PService) SubscribeNewPeer ¶
func (m *MockP2PService) SubscribeNewPeer(ch chan<- models.P2PID) event.Subscription
SubscribeNewPeer mocks base method
type MockP2PServiceMockRecorder ¶
type MockP2PServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockP2PServiceMockRecorder is the mock recorder for MockP2PService
func (*MockP2PServiceMockRecorder) AddPeer ¶
func (mr *MockP2PServiceMockRecorder) AddPeer(peerUrl interface{}) *gomock.Call
AddPeer indicates an expected call of AddPeer
func (*MockP2PServiceMockRecorder) DropPeer ¶
func (mr *MockP2PServiceMockRecorder) DropPeer(peerId interface{}) *gomock.Call
DropPeer indicates an expected call of DropPeer
func (*MockP2PServiceMockRecorder) HandshakeSuccess ¶
func (mr *MockP2PServiceMockRecorder) HandshakeSuccess(peerId interface{}) *gomock.Call
HandshakeSuccess indicates an expected call of HandshakeSuccess
func (*MockP2PServiceMockRecorder) Id ¶
func (mr *MockP2PServiceMockRecorder) Id() *gomock.Call
Id indicates an expected call of Id
func (*MockP2PServiceMockRecorder) NetURL ¶
func (mr *MockP2PServiceMockRecorder) NetURL() *gomock.Call
NetURL indicates an expected call of NetURL
func (*MockP2PServiceMockRecorder) P2PInfo ¶
func (mr *MockP2PServiceMockRecorder) P2PInfo() *gomock.Call
P2PInfo indicates an expected call of P2PInfo
func (*MockP2PServiceMockRecorder) RemotePeers ¶
func (mr *MockP2PServiceMockRecorder) RemotePeers() *gomock.Call
RemotePeers indicates an expected call of RemotePeers
func (*MockP2PServiceMockRecorder) Send ¶
func (mr *MockP2PServiceMockRecorder) Send(peerId, msg interface{}) *gomock.Call
Send indicates an expected call of Send
func (*MockP2PServiceMockRecorder) Start ¶
func (mr *MockP2PServiceMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start
func (*MockP2PServiceMockRecorder) Stop ¶
func (mr *MockP2PServiceMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop
func (*MockP2PServiceMockRecorder) SubscribeDropPeer ¶
func (mr *MockP2PServiceMockRecorder) SubscribeDropPeer(ch interface{}) *gomock.Call
SubscribeDropPeer indicates an expected call of SubscribeDropPeer
func (*MockP2PServiceMockRecorder) SubscribeHandshakePeer ¶
func (mr *MockP2PServiceMockRecorder) SubscribeHandshakePeer(ch interface{}) *gomock.Call
SubscribeHandshakePeer indicates an expected call of SubscribeHandshakePeer
func (*MockP2PServiceMockRecorder) SubscribeMsg ¶
func (mr *MockP2PServiceMockRecorder) SubscribeMsg(msgType, ch interface{}) *gomock.Call
SubscribeMsg indicates an expected call of SubscribeMsg
func (*MockP2PServiceMockRecorder) SubscribeNewPeer ¶
func (mr *MockP2PServiceMockRecorder) SubscribeNewPeer(ch interface{}) *gomock.Call
SubscribeNewPeer indicates an expected call of SubscribeNewPeer
type MockPacker ¶
type MockPacker struct {
// contains filtered or unexported fields
}
MockPacker is a mock of Packer interface
func NewMockPacker ¶
func NewMockPacker(ctrl *gomock.Controller) *MockPacker
NewMockPacker creates a new mock instance
func (*MockPacker) EXPECT ¶
func (m *MockPacker) EXPECT() *MockPackerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockPackerMockRecorder ¶
type MockPackerMockRecorder struct {
// contains filtered or unexported fields
}
MockPackerMockRecorder is the mock recorder for MockPacker
func (*MockPackerMockRecorder) Start ¶
func (mr *MockPackerMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start
func (*MockPackerMockRecorder) Stop ¶
func (mr *MockPackerMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop
type MockPermission ¶
type MockPermission struct {
// contains filtered or unexported fields
}
MockPermission is a mock of Permission interface
func NewMockPermission ¶
func NewMockPermission(ctrl *gomock.Controller) *MockPermission
NewMockPermission creates a new mock instance
func (*MockPermission) AddPermission ¶
func (m *MockPermission) AddPermission(peerId models.P2PID, key string, info permission.MemberInfo, r permission.RoleType) error
AddPermission mocks base method
func (*MockPermission) AddSupervisor ¶
func (m *MockPermission) AddSupervisor(key string, info permission.MemberInfo) error
AddSupervisor mocks base method
func (*MockPermission) DelPermission ¶
func (m *MockPermission) DelPermission(peerId models.P2PID, key string, r permission.RoleType) error
DelPermission mocks base method
func (*MockPermission) DelSupervisor ¶
func (m *MockPermission) DelSupervisor(key string) error
DelSupervisor mocks base method
func (*MockPermission) EXPECT ¶
func (m *MockPermission) EXPECT() *MockPermissionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockPermissionMockRecorder ¶
type MockPermissionMockRecorder struct {
// contains filtered or unexported fields
}
MockPermissionMockRecorder is the mock recorder for MockPermission
func (*MockPermissionMockRecorder) AddPermission ¶
func (mr *MockPermissionMockRecorder) AddPermission(peerId, key, info, r interface{}) *gomock.Call
AddPermission indicates an expected call of AddPermission
func (*MockPermissionMockRecorder) AddSupervisor ¶
func (mr *MockPermissionMockRecorder) AddSupervisor(key, info interface{}) *gomock.Call
AddSupervisor indicates an expected call of AddSupervisor
func (*MockPermissionMockRecorder) DelPermission ¶
func (mr *MockPermissionMockRecorder) DelPermission(peerId, key, r interface{}) *gomock.Call
DelPermission indicates an expected call of DelPermission
func (*MockPermissionMockRecorder) DelSupervisor ¶
func (mr *MockPermissionMockRecorder) DelSupervisor(key interface{}) *gomock.Call
DelSupervisor indicates an expected call of DelSupervisor
func (*MockPermissionMockRecorder) IsAdmin ¶
func (mr *MockPermissionMockRecorder) IsAdmin(key, height interface{}) *gomock.Call
IsAdmin indicates an expected call of IsAdmin
func (*MockPermissionMockRecorder) IsPeer ¶
func (mr *MockPermissionMockRecorder) IsPeer(peerId, height interface{}) *gomock.Call
IsPeer indicates an expected call of IsPeer
type MockPrecompiledContract ¶
type MockPrecompiledContract struct {
// contains filtered or unexported fields
}
MockPrecompiledContract is a mock of PrecompiledContract interface
func NewMockPrecompiledContract ¶
func NewMockPrecompiledContract(ctrl *gomock.Controller) *MockPrecompiledContract
NewMockPrecompiledContract creates a new mock instance
func (*MockPrecompiledContract) EXPECT ¶
func (m *MockPrecompiledContract) EXPECT() *MockPrecompiledContractMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockPrecompiledContract) RequiredGas ¶
func (m *MockPrecompiledContract) RequiredGas(input []byte) uint64
RequiredGas mocks base method
type MockPrecompiledContractMockRecorder ¶
type MockPrecompiledContractMockRecorder struct {
// contains filtered or unexported fields
}
MockPrecompiledContractMockRecorder is the mock recorder for MockPrecompiledContract
func (*MockPrecompiledContractMockRecorder) RequiredGas ¶
func (mr *MockPrecompiledContractMockRecorder) RequiredGas(input interface{}) *gomock.Call
RequiredGas indicates an expected call of RequiredGas
func (*MockPrecompiledContractMockRecorder) Run ¶
func (mr *MockPrecompiledContractMockRecorder) Run(input interface{}) *gomock.Call
Run indicates an expected call of Run
type MockPrivKey ¶
type MockPrivKey struct {
// contains filtered or unexported fields
}
MockPrivKey is a mock of PrivKey interface
func NewMockPrivKey ¶
func NewMockPrivKey(ctrl *gomock.Controller) *MockPrivKey
NewMockPrivKey creates a new mock instance
func (*MockPrivKey) EXPECT ¶
func (m *MockPrivKey) EXPECT() *MockPrivKeyMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockPrivKey) Equals ¶
func (m *MockPrivKey) Equals(arg0 protocol.Key) bool
Equals mocks base method
func (*MockPrivKey) GetPublic ¶
func (m *MockPrivKey) GetPublic() protocol.PubKey
GetPublic mocks base method
func (*MockPrivKey) Marshal ¶
func (m *MockPrivKey) Marshal() ([]byte, error)
Marshal mocks base method
func (*MockPrivKey) Sign ¶
func (m *MockPrivKey) Sign(data []byte) (*signature.SignResult, error)
Sign mocks base method
func (*MockPrivKey) Unmarshal ¶
func (m *MockPrivKey) Unmarshal(input []byte) error
Unmarshal mocks base method
type MockPrivKeyMockRecorder ¶
type MockPrivKeyMockRecorder struct {
// contains filtered or unexported fields
}
MockPrivKeyMockRecorder is the mock recorder for MockPrivKey
func (*MockPrivKeyMockRecorder) Equals ¶
func (mr *MockPrivKeyMockRecorder) Equals(arg0 interface{}) *gomock.Call
Equals indicates an expected call of Equals
func (*MockPrivKeyMockRecorder) GetPublic ¶
func (mr *MockPrivKeyMockRecorder) GetPublic() *gomock.Call
GetPublic indicates an expected call of GetPublic
func (*MockPrivKeyMockRecorder) Hash ¶
func (mr *MockPrivKeyMockRecorder) Hash() *gomock.Call
Hash indicates an expected call of Hash
func (*MockPrivKeyMockRecorder) Marshal ¶
func (mr *MockPrivKeyMockRecorder) Marshal() *gomock.Call
Marshal indicates an expected call of Marshal
func (*MockPrivKeyMockRecorder) Raw ¶
func (mr *MockPrivKeyMockRecorder) Raw() *gomock.Call
Raw indicates an expected call of Raw
func (*MockPrivKeyMockRecorder) Sign ¶
func (mr *MockPrivKeyMockRecorder) Sign(data interface{}) *gomock.Call
Sign indicates an expected call of Sign
func (*MockPrivKeyMockRecorder) Type ¶
func (mr *MockPrivKeyMockRecorder) Type() *gomock.Call
Type indicates an expected call of Type
func (*MockPrivKeyMockRecorder) Unmarshal ¶
func (mr *MockPrivKeyMockRecorder) Unmarshal(input interface{}) *gomock.Call
Unmarshal indicates an expected call of Unmarshal
type MockPubKey ¶
type MockPubKey struct {
// contains filtered or unexported fields
}
MockPubKey is a mock of PubKey interface
func NewMockPubKey ¶
func NewMockPubKey(ctrl *gomock.Controller) *MockPubKey
NewMockPubKey creates a new mock instance
func (*MockPubKey) EXPECT ¶
func (m *MockPubKey) EXPECT() *MockPubKeyMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockPubKey) Equals ¶
func (m *MockPubKey) Equals(arg0 protocol.Key) bool
Equals mocks base method
func (*MockPubKey) Marshal ¶
func (m *MockPubKey) Marshal() ([]byte, error)
Marshal mocks base method
func (*MockPubKey) Unmarshal ¶
func (m *MockPubKey) Unmarshal(input []byte) error
Unmarshal mocks base method
func (*MockPubKey) Verify ¶
func (m *MockPubKey) Verify(data []byte, signResult *signature.SignResult) (bool, error)
Verify mocks base method
type MockPubKeyMockRecorder ¶
type MockPubKeyMockRecorder struct {
// contains filtered or unexported fields
}
MockPubKeyMockRecorder is the mock recorder for MockPubKey
func (*MockPubKeyMockRecorder) Equals ¶
func (mr *MockPubKeyMockRecorder) Equals(arg0 interface{}) *gomock.Call
Equals indicates an expected call of Equals
func (*MockPubKeyMockRecorder) Hash ¶
func (mr *MockPubKeyMockRecorder) Hash() *gomock.Call
Hash indicates an expected call of Hash
func (*MockPubKeyMockRecorder) Marshal ¶
func (mr *MockPubKeyMockRecorder) Marshal() *gomock.Call
Marshal indicates an expected call of Marshal
func (*MockPubKeyMockRecorder) Raw ¶
func (mr *MockPubKeyMockRecorder) Raw() *gomock.Call
Raw indicates an expected call of Raw
func (*MockPubKeyMockRecorder) Type ¶
func (mr *MockPubKeyMockRecorder) Type() *gomock.Call
Type indicates an expected call of Type
func (*MockPubKeyMockRecorder) Unmarshal ¶
func (mr *MockPubKeyMockRecorder) Unmarshal(input interface{}) *gomock.Call
Unmarshal indicates an expected call of Unmarshal
func (*MockPubKeyMockRecorder) Verify ¶
func (mr *MockPubKeyMockRecorder) Verify(data, signResult interface{}) *gomock.Call
Verify indicates an expected call of Verify
type MockRequestSync ¶
type MockRequestSync struct {
// contains filtered or unexported fields
}
MockRequestSync is a mock of RequestSync interface
func NewMockRequestSync ¶
func NewMockRequestSync(ctrl *gomock.Controller) *MockRequestSync
NewMockRequestSync creates a new mock instance
func (*MockRequestSync) EXPECT ¶
func (m *MockRequestSync) EXPECT() *MockRequestSyncMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockRequestSync) HandleBlockBodiesMsg ¶
func (m *MockRequestSync) HandleBlockBodiesMsg(peerId models.P2PID, request []*models.Body)
HandleBlockBodiesMsg mocks base method
func (*MockRequestSync) HandleBlockHeadersMsg ¶
func (m *MockRequestSync) HandleBlockHeadersMsg(peerId models.P2PID, headers []*models.Header) error
HandleBlockHeadersMsg mocks base method
func (*MockRequestSync) RequestHeadersByHash ¶
func (m *MockRequestSync) RequestHeadersByHash(peerId models.P2PID, origin types.Hash, amount, skip int, reverse bool) error
RequestHeadersByHash mocks base method
func (*MockRequestSync) RequestHeadersByNumber ¶
func (m *MockRequestSync) RequestHeadersByNumber(peerId models.P2PID, origin uint64, amount, skip int, reverse bool) error
RequestHeadersByNumber mocks base method
func (*MockRequestSync) RequestOneHeader ¶
RequestOneHeader mocks base method
type MockRequestSyncMockRecorder ¶
type MockRequestSyncMockRecorder struct {
// contains filtered or unexported fields
}
MockRequestSyncMockRecorder is the mock recorder for MockRequestSync
func (*MockRequestSyncMockRecorder) HandleBlockBodiesMsg ¶
func (mr *MockRequestSyncMockRecorder) HandleBlockBodiesMsg(peerId, request interface{}) *gomock.Call
HandleBlockBodiesMsg indicates an expected call of HandleBlockBodiesMsg
func (*MockRequestSyncMockRecorder) HandleBlockHeadersMsg ¶
func (mr *MockRequestSyncMockRecorder) HandleBlockHeadersMsg(peerId, headers interface{}) *gomock.Call
HandleBlockHeadersMsg indicates an expected call of HandleBlockHeadersMsg
func (*MockRequestSyncMockRecorder) RequestHeadersByHash ¶
func (mr *MockRequestSyncMockRecorder) RequestHeadersByHash(peerId, origin, amount, skip, reverse interface{}) *gomock.Call
RequestHeadersByHash indicates an expected call of RequestHeadersByHash
func (*MockRequestSyncMockRecorder) RequestHeadersByNumber ¶
func (mr *MockRequestSyncMockRecorder) RequestHeadersByNumber(peerId, origin, amount, skip, reverse interface{}) *gomock.Call
RequestHeadersByNumber indicates an expected call of RequestHeadersByNumber
func (*MockRequestSyncMockRecorder) RequestOneHeader ¶
func (mr *MockRequestSyncMockRecorder) RequestOneHeader(peerId, hash interface{}) *gomock.Call
RequestOneHeader indicates an expected call of RequestOneHeader
type MockResponseSync ¶
type MockResponseSync struct {
// contains filtered or unexported fields
}
MockResponseSync is a mock of ResponseSync interface
func NewMockResponseSync ¶
func NewMockResponseSync(ctrl *gomock.Controller) *MockResponseSync
NewMockResponseSync creates a new mock instance
func (*MockResponseSync) EXPECT ¶
func (m *MockResponseSync) EXPECT() *MockResponseSyncMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockResponseSync) SendBlockBodies ¶
func (m *MockResponseSync) SendBlockBodies(peerId models.P2PID, hashes []types.Hash)
SendBlockBodies mocks base method
func (*MockResponseSync) SendBlockHeaders ¶
func (m *MockResponseSync) SendBlockHeaders(peerId models.P2PID, query ext.GetBlockHeadersData)
SendBlockHeaders mocks base method
type MockResponseSyncMockRecorder ¶
type MockResponseSyncMockRecorder struct {
// contains filtered or unexported fields
}
MockResponseSyncMockRecorder is the mock recorder for MockResponseSync
func (*MockResponseSyncMockRecorder) SendBlockBodies ¶
func (mr *MockResponseSyncMockRecorder) SendBlockBodies(peerId, hashes interface{}) *gomock.Call
SendBlockBodies indicates an expected call of SendBlockBodies
func (*MockResponseSyncMockRecorder) SendBlockHeaders ¶
func (mr *MockResponseSyncMockRecorder) SendBlockHeaders(peerId, query interface{}) *gomock.Call
SendBlockHeaders indicates an expected call of SendBlockHeaders
type MockStateDB ¶
type MockStateDB struct {
// contains filtered or unexported fields
}
MockStateDB is a mock of StateDB interface
func NewMockStateDB ¶
func NewMockStateDB(ctrl *gomock.Controller) *MockStateDB
NewMockStateDB creates a new mock instance
func (*MockStateDB) AddBalance ¶
func (m *MockStateDB) AddBalance(addr types.Address, amount *big.Int)
AddBalance mocks base method
func (*MockStateDB) AddLog ¶
func (m *MockStateDB) AddLog(log *statetype.Log)
AddLog mocks base method
func (*MockStateDB) AddPreimage ¶
func (m *MockStateDB) AddPreimage(hash types.Hash, preimage []byte)
AddPreimage mocks base method
func (*MockStateDB) AddRefund ¶
func (m *MockStateDB) AddRefund(gas uint64)
AddRefund mocks base method
func (*MockStateDB) CreateAccount ¶
func (m *MockStateDB) CreateAccount(addr types.Address)
CreateAccount mocks base method
func (*MockStateDB) EXPECT ¶
func (m *MockStateDB) EXPECT() *MockStateDBMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockStateDB) Empty ¶
func (m *MockStateDB) Empty(addr types.Address) bool
Empty mocks base method
func (*MockStateDB) Exist ¶
func (m *MockStateDB) Exist(addr types.Address) bool
Exist mocks base method
func (*MockStateDB) ForEachStorage ¶
func (m *MockStateDB) ForEachStorage(addr types.Address, cb func(types.Hash, types.Hash) bool) error
ForEachStorage mocks base method
func (*MockStateDB) GetBalance ¶
func (m *MockStateDB) GetBalance(addr types.Address) *big.Int
GetBalance mocks base method
func (*MockStateDB) GetCode ¶
func (m *MockStateDB) GetCode(addr types.Address) []byte
GetCode mocks base method
func (*MockStateDB) GetCodeHash ¶
func (m *MockStateDB) GetCodeHash(addr types.Address) types.Hash
GetCodeHash mocks base method
func (*MockStateDB) GetCodeSize ¶
func (m *MockStateDB) GetCodeSize(addr types.Address) int
GetCodeSize mocks base method
func (*MockStateDB) GetCommittedState ¶
GetCommittedState mocks base method
func (*MockStateDB) GetNonce ¶
func (m *MockStateDB) GetNonce(addr types.Address) uint64
GetNonce mocks base method
func (*MockStateDB) GetRefund ¶
func (m *MockStateDB) GetRefund() uint64
GetRefund mocks base method
func (*MockStateDB) HasSuicided ¶
func (m *MockStateDB) HasSuicided(addr types.Address) bool
HasSuicided mocks base method
func (*MockStateDB) RevertToSnapshot ¶
func (m *MockStateDB) RevertToSnapshot(arg0 int)
RevertToSnapshot mocks base method
func (*MockStateDB) SetCode ¶
func (m *MockStateDB) SetCode(addr types.Address, code []byte)
SetCode mocks base method
func (*MockStateDB) SetNonce ¶
func (m *MockStateDB) SetNonce(addr types.Address, nonce uint64)
SetNonce mocks base method
func (*MockStateDB) SetState ¶
func (m *MockStateDB) SetState(addr types.Address, key, value types.Hash)
SetState mocks base method
func (*MockStateDB) SubBalance ¶
func (m *MockStateDB) SubBalance(addr types.Address, amount *big.Int)
SubBalance mocks base method
func (*MockStateDB) SubRefund ¶
func (m *MockStateDB) SubRefund(gas uint64)
SubRefund mocks base method
type MockStateDBMockRecorder ¶
type MockStateDBMockRecorder struct {
// contains filtered or unexported fields
}
MockStateDBMockRecorder is the mock recorder for MockStateDB
func (*MockStateDBMockRecorder) AddBalance ¶
func (mr *MockStateDBMockRecorder) AddBalance(addr, amount interface{}) *gomock.Call
AddBalance indicates an expected call of AddBalance
func (*MockStateDBMockRecorder) AddLog ¶
func (mr *MockStateDBMockRecorder) AddLog(log interface{}) *gomock.Call
AddLog indicates an expected call of AddLog
func (*MockStateDBMockRecorder) AddPreimage ¶
func (mr *MockStateDBMockRecorder) AddPreimage(hash, preimage interface{}) *gomock.Call
AddPreimage indicates an expected call of AddPreimage
func (*MockStateDBMockRecorder) AddRefund ¶
func (mr *MockStateDBMockRecorder) AddRefund(gas interface{}) *gomock.Call
AddRefund indicates an expected call of AddRefund
func (*MockStateDBMockRecorder) CreateAccount ¶
func (mr *MockStateDBMockRecorder) CreateAccount(addr interface{}) *gomock.Call
CreateAccount indicates an expected call of CreateAccount
func (*MockStateDBMockRecorder) Empty ¶
func (mr *MockStateDBMockRecorder) Empty(addr interface{}) *gomock.Call
Empty indicates an expected call of Empty
func (*MockStateDBMockRecorder) Exist ¶
func (mr *MockStateDBMockRecorder) Exist(addr interface{}) *gomock.Call
Exist indicates an expected call of Exist
func (*MockStateDBMockRecorder) ForEachStorage ¶
func (mr *MockStateDBMockRecorder) ForEachStorage(addr, cb interface{}) *gomock.Call
ForEachStorage indicates an expected call of ForEachStorage
func (*MockStateDBMockRecorder) GetBalance ¶
func (mr *MockStateDBMockRecorder) GetBalance(addr interface{}) *gomock.Call
GetBalance indicates an expected call of GetBalance
func (*MockStateDBMockRecorder) GetCode ¶
func (mr *MockStateDBMockRecorder) GetCode(addr interface{}) *gomock.Call
GetCode indicates an expected call of GetCode
func (*MockStateDBMockRecorder) GetCodeHash ¶
func (mr *MockStateDBMockRecorder) GetCodeHash(addr interface{}) *gomock.Call
GetCodeHash indicates an expected call of GetCodeHash
func (*MockStateDBMockRecorder) GetCodeSize ¶
func (mr *MockStateDBMockRecorder) GetCodeSize(addr interface{}) *gomock.Call
GetCodeSize indicates an expected call of GetCodeSize
func (*MockStateDBMockRecorder) GetCommittedState ¶
func (mr *MockStateDBMockRecorder) GetCommittedState(addr, hash interface{}) *gomock.Call
GetCommittedState indicates an expected call of GetCommittedState
func (*MockStateDBMockRecorder) GetNonce ¶
func (mr *MockStateDBMockRecorder) GetNonce(addr interface{}) *gomock.Call
GetNonce indicates an expected call of GetNonce
func (*MockStateDBMockRecorder) GetRefund ¶
func (mr *MockStateDBMockRecorder) GetRefund() *gomock.Call
GetRefund indicates an expected call of GetRefund
func (*MockStateDBMockRecorder) GetState ¶
func (mr *MockStateDBMockRecorder) GetState(addr, hash interface{}) *gomock.Call
GetState indicates an expected call of GetState
func (*MockStateDBMockRecorder) HasSuicided ¶
func (mr *MockStateDBMockRecorder) HasSuicided(addr interface{}) *gomock.Call
HasSuicided indicates an expected call of HasSuicided
func (*MockStateDBMockRecorder) RevertToSnapshot ¶
func (mr *MockStateDBMockRecorder) RevertToSnapshot(arg0 interface{}) *gomock.Call
RevertToSnapshot indicates an expected call of RevertToSnapshot
func (*MockStateDBMockRecorder) SetCode ¶
func (mr *MockStateDBMockRecorder) SetCode(addr, code interface{}) *gomock.Call
SetCode indicates an expected call of SetCode
func (*MockStateDBMockRecorder) SetNonce ¶
func (mr *MockStateDBMockRecorder) SetNonce(addr, nonce interface{}) *gomock.Call
SetNonce indicates an expected call of SetNonce
func (*MockStateDBMockRecorder) SetState ¶
func (mr *MockStateDBMockRecorder) SetState(addr, key, value interface{}) *gomock.Call
SetState indicates an expected call of SetState
func (*MockStateDBMockRecorder) Snapshot ¶
func (mr *MockStateDBMockRecorder) Snapshot() *gomock.Call
Snapshot indicates an expected call of Snapshot
func (*MockStateDBMockRecorder) SubBalance ¶
func (mr *MockStateDBMockRecorder) SubBalance(addr, amount interface{}) *gomock.Call
SubBalance indicates an expected call of SubBalance
func (*MockStateDBMockRecorder) SubRefund ¶
func (mr *MockStateDBMockRecorder) SubRefund(gas interface{}) *gomock.Call
SubRefund indicates an expected call of SubRefund
func (*MockStateDBMockRecorder) Suicide ¶
func (mr *MockStateDBMockRecorder) Suicide(addr interface{}) *gomock.Call
Suicide indicates an expected call of Suicide
type MockSyncer ¶
type MockSyncer struct {
// contains filtered or unexported fields
}
MockSyncer is a mock of Syncer interface
func NewMockSyncer ¶
func NewMockSyncer(ctrl *gomock.Controller) *MockSyncer
NewMockSyncer creates a new mock instance
func (*MockSyncer) EXPECT ¶
func (m *MockSyncer) EXPECT() *MockSyncerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockSyncerMockRecorder ¶
type MockSyncerMockRecorder struct {
// contains filtered or unexported fields
}
MockSyncerMockRecorder is the mock recorder for MockSyncer
func (*MockSyncerMockRecorder) Start ¶
func (mr *MockSyncerMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start
func (*MockSyncerMockRecorder) Stop ¶
func (mr *MockSyncerMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop
type MockTracer ¶
type MockTracer struct {
// contains filtered or unexported fields
}
MockTracer is a mock of Tracer interface
func NewMockTracer ¶
func NewMockTracer(ctrl *gomock.Controller) *MockTracer
NewMockTracer creates a new mock instance
func (*MockTracer) CaptureEnd ¶
CaptureEnd mocks base method
func (*MockTracer) CaptureFault ¶
func (m *MockTracer) CaptureFault(env protocol.VM, pc uint64, op protocol.OPCode, gas, cost uint64, contract protocol.Contract, depth int, err error) error
CaptureFault mocks base method
func (*MockTracer) CaptureLog ¶
func (m *MockTracer) CaptureLog(env protocol.VM, msg string) error
CaptureLog mocks base method
func (*MockTracer) CaptureStart ¶
func (m *MockTracer) CaptureStart(from, to types.Address, call bool, input []byte, gas uint64, value *big.Int) error
CaptureStart mocks base method
func (*MockTracer) CaptureState ¶
func (m *MockTracer) CaptureState(env protocol.VM, pc uint64, op protocol.OPCode, gas, cost uint64, contract protocol.Contract, depth int, err error) error
CaptureState mocks base method
func (*MockTracer) EXPECT ¶
func (m *MockTracer) EXPECT() *MockTracerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockTracerMockRecorder ¶
type MockTracerMockRecorder struct {
// contains filtered or unexported fields
}
MockTracerMockRecorder is the mock recorder for MockTracer
func (*MockTracerMockRecorder) CaptureEnd ¶
func (mr *MockTracerMockRecorder) CaptureEnd(output, gasUsed, t, err interface{}) *gomock.Call
CaptureEnd indicates an expected call of CaptureEnd
func (*MockTracerMockRecorder) CaptureFault ¶
func (mr *MockTracerMockRecorder) CaptureFault(env, pc, op, gas, cost, contract, depth, err interface{}) *gomock.Call
CaptureFault indicates an expected call of CaptureFault
func (*MockTracerMockRecorder) CaptureLog ¶
func (mr *MockTracerMockRecorder) CaptureLog(env, msg interface{}) *gomock.Call
CaptureLog indicates an expected call of CaptureLog
func (*MockTracerMockRecorder) CaptureStart ¶
func (mr *MockTracerMockRecorder) CaptureStart(from, to, call, input, gas, value interface{}) *gomock.Call
CaptureStart indicates an expected call of CaptureStart
func (*MockTracerMockRecorder) CaptureState ¶
func (mr *MockTracerMockRecorder) CaptureState(env, pc, op, gas, cost, contract, depth, err interface{}) *gomock.Call
CaptureState indicates an expected call of CaptureState
type MockTxPool ¶
type MockTxPool struct {
// contains filtered or unexported fields
}
MockTxPool is a mock of TxPool interface
func NewMockTxPool ¶
func NewMockTxPool(ctrl *gomock.Controller) *MockTxPool
NewMockTxPool creates a new mock instance
func (*MockTxPool) Add ¶
func (m *MockTxPool) Add(peerId *models.P2PID, tx models.Transaction) error
Add mocks base method
func (*MockTxPool) Delete ¶
func (m *MockTxPool) Delete(tx models.Transaction, noErr bool) error
Delete mocks base method
func (*MockTxPool) EXPECT ¶
func (m *MockTxPool) EXPECT() *MockTxPoolMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockTxPool) Fallback ¶
func (m *MockTxPool) Fallback(txs []models.Transaction) error
Fallback mocks base method
func (*MockTxPool) FetchTxs ¶
func (m *MockTxPool) FetchTxs(txsLimit, headerTimestamp uint64) []models.Transaction
FetchTxs mocks base method
func (*MockTxPool) Get ¶
func (m *MockTxPool) Get(hash types.Hash) (models.Transaction, models.TxStatus)
Get mocks base method
func (*MockTxPool) GetTxs ¶
func (m *MockTxPool) GetTxs(txsLimit uint64) []models.Transaction
GetTxs mocks base method
type MockTxPoolMockRecorder ¶
type MockTxPoolMockRecorder struct {
// contains filtered or unexported fields
}
MockTxPoolMockRecorder is the mock recorder for MockTxPool
func (*MockTxPoolMockRecorder) Add ¶
func (mr *MockTxPoolMockRecorder) Add(peerId, tx interface{}) *gomock.Call
Add indicates an expected call of Add
func (*MockTxPoolMockRecorder) Delete ¶
func (mr *MockTxPoolMockRecorder) Delete(tx, noErr interface{}) *gomock.Call
Delete indicates an expected call of Delete
func (*MockTxPoolMockRecorder) Exist ¶
func (mr *MockTxPoolMockRecorder) Exist(hash interface{}) *gomock.Call
Exist indicates an expected call of Exist
func (*MockTxPoolMockRecorder) Fallback ¶
func (mr *MockTxPoolMockRecorder) Fallback(txs interface{}) *gomock.Call
Fallback indicates an expected call of Fallback
func (*MockTxPoolMockRecorder) FetchTxs ¶
func (mr *MockTxPoolMockRecorder) FetchTxs(txsLimit, headerTimestamp interface{}) *gomock.Call
FetchTxs indicates an expected call of FetchTxs
func (*MockTxPoolMockRecorder) Get ¶
func (mr *MockTxPoolMockRecorder) Get(hash interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockTxPoolMockRecorder) GetTxs ¶
func (mr *MockTxPoolMockRecorder) GetTxs(txsLimit interface{}) *gomock.Call
GetTxs indicates an expected call of GetTxs
func (*MockTxPoolMockRecorder) Len ¶
func (mr *MockTxPoolMockRecorder) Len() *gomock.Call
Len indicates an expected call of Len
func (*MockTxPoolMockRecorder) Start ¶
func (mr *MockTxPoolMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start
func (*MockTxPoolMockRecorder) Stop ¶
func (mr *MockTxPoolMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop
type MockTxPools ¶
type MockTxPools struct {
// contains filtered or unexported fields
}
MockTxPools is a mock of TxPools interface
func NewMockTxPools ¶
func NewMockTxPools(ctrl *gomock.Controller) *MockTxPools
NewMockTxPools creates a new mock instance
func (*MockTxPools) Add ¶
func (m *MockTxPools) Add(peerId *models.P2PID, tx models.Transaction) error
Add mocks base method
func (*MockTxPools) Delete ¶
func (m *MockTxPools) Delete(txType types.TxType, txs []models.Transaction, noErr bool) error
Delete mocks base method
func (*MockTxPools) EXPECT ¶
func (m *MockTxPools) EXPECT() *MockTxPoolsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockTxPools) Fallback ¶
func (m *MockTxPools) Fallback(txType types.TxType, txs []models.Transaction) error
Fallback mocks base method
func (*MockTxPools) FetchTxs ¶
func (m *MockTxPools) FetchTxs(txsLimit, headerTimestamp uint64) models.Transactions
FetchTxs mocks base method
func (*MockTxPools) Get ¶
func (m *MockTxPools) Get(txType types.TxType, hash types.Hash) (models.Transaction, models.TxStatus)
Get mocks base method
func (*MockTxPools) GetTxs ¶
func (m *MockTxPools) GetTxs(txsLimit uint64) map[types.TxType][]models.Transaction
GetTxs mocks base method
func (*MockTxPools) Register ¶
func (m *MockTxPools) Register(txType types.TxType, txPool protocol.TxPool)
Register mocks base method
func (*MockTxPools) Subscribe ¶
func (m *MockTxPools) Subscribe(ch chan []models.Transaction) event.Subscription
Subscribe mocks base method
type MockTxPoolsMockRecorder ¶
type MockTxPoolsMockRecorder struct {
// contains filtered or unexported fields
}
MockTxPoolsMockRecorder is the mock recorder for MockTxPools
func (*MockTxPoolsMockRecorder) Add ¶
func (mr *MockTxPoolsMockRecorder) Add(peerId, tx interface{}) *gomock.Call
Add indicates an expected call of Add
func (*MockTxPoolsMockRecorder) Delete ¶
func (mr *MockTxPoolsMockRecorder) Delete(txType, txs, noErr interface{}) *gomock.Call
Delete indicates an expected call of Delete
func (*MockTxPoolsMockRecorder) Fallback ¶
func (mr *MockTxPoolsMockRecorder) Fallback(txType, txs interface{}) *gomock.Call
Fallback indicates an expected call of Fallback
func (*MockTxPoolsMockRecorder) FetchTxs ¶
func (mr *MockTxPoolsMockRecorder) FetchTxs(txsLimit, headerTimestamp interface{}) *gomock.Call
FetchTxs indicates an expected call of FetchTxs
func (*MockTxPoolsMockRecorder) Get ¶
func (mr *MockTxPoolsMockRecorder) Get(txType, hash interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockTxPoolsMockRecorder) GetTxs ¶
func (mr *MockTxPoolsMockRecorder) GetTxs(txsLimit interface{}) *gomock.Call
GetTxs indicates an expected call of GetTxs
func (*MockTxPoolsMockRecorder) Len ¶
func (mr *MockTxPoolsMockRecorder) Len() *gomock.Call
Len indicates an expected call of Len
func (*MockTxPoolsMockRecorder) Register ¶
func (mr *MockTxPoolsMockRecorder) Register(txType, txPool interface{}) *gomock.Call
Register indicates an expected call of Register
func (*MockTxPoolsMockRecorder) Start ¶
func (mr *MockTxPoolsMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start
func (*MockTxPoolsMockRecorder) Stop ¶
func (mr *MockTxPoolsMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop
func (*MockTxPoolsMockRecorder) Subscribe ¶
func (mr *MockTxPoolsMockRecorder) Subscribe(ch interface{}) *gomock.Call
Subscribe indicates an expected call of Subscribe
func (*MockTxPoolsMockRecorder) TxPool ¶
func (mr *MockTxPoolsMockRecorder) TxPool(txType interface{}) *gomock.Call
TxPool indicates an expected call of TxPool
type MockTxValidator ¶
type MockTxValidator struct {
// contains filtered or unexported fields
}
MockTxValidator is a mock of TxValidator interface
func NewMockTxValidator ¶
func NewMockTxValidator(ctrl *gomock.Controller) *MockTxValidator
NewMockTxValidator creates a new mock instance
func (*MockTxValidator) EXPECT ¶
func (m *MockTxValidator) EXPECT() *MockTxValidatorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockTxValidator) ValidateTx ¶
func (m *MockTxValidator) ValidateTx(ctx protocol.AppContext, txI models.Transaction) error
ValidateTx mocks base method
func (*MockTxValidator) ValidateTxSafe ¶
func (m *MockTxValidator) ValidateTxSafe(ctx protocol.AppContext, txI models.Transaction, headerTimestamp uint64) error
ValidateTxSafe mocks base method
type MockTxValidatorMockRecorder ¶
type MockTxValidatorMockRecorder struct {
// contains filtered or unexported fields
}
MockTxValidatorMockRecorder is the mock recorder for MockTxValidator
func (*MockTxValidatorMockRecorder) ValidateTx ¶
func (mr *MockTxValidatorMockRecorder) ValidateTx(ctx, txI interface{}) *gomock.Call
ValidateTx indicates an expected call of ValidateTx
func (*MockTxValidatorMockRecorder) ValidateTxSafe ¶
func (mr *MockTxValidatorMockRecorder) ValidateTxSafe(ctx, txI, headerTimestamp interface{}) *gomock.Call
ValidateTxSafe indicates an expected call of ValidateTxSafe
type MockVM ¶
type MockVM struct {
// contains filtered or unexported fields
}
MockVM is a mock of VM interface
func NewMockVM ¶
func NewMockVM(ctrl *gomock.Controller) *MockVM
NewMockVM creates a new mock instance
func (*MockVM) Call ¶
func (m *MockVM) Call(caller protocol.ContractRef, addr types.Address, input []byte, gas uint64, value *big.Int) ([]byte, uint64, error)
Call mocks base method
func (*MockVM) CallCode ¶
func (m *MockVM) CallCode(caller protocol.ContractRef, addr types.Address, input []byte, gas uint64, value *big.Int) ([]byte, uint64, error)
CallCode mocks base method
func (*MockVM) Create ¶
func (m *MockVM) Create(caller protocol.ContractRef, code []byte, gas uint64, value *big.Int) ([]byte, types.Address, uint64, error)
Create mocks base method
func (*MockVM) Create2 ¶
func (m *MockVM) Create2(caller protocol.ContractRef, code []byte, gas uint64, endowment, salt *big.Int) ([]byte, types.Address, uint64, error)
Create2 mocks base method
func (*MockVM) DelegateCall ¶
func (m *MockVM) DelegateCall(caller protocol.ContractRef, addr types.Address, input []byte, gas uint64) ([]byte, uint64, error)
DelegateCall mocks base method
func (*MockVM) EXPECT ¶
func (m *MockVM) EXPECT() *MockVMMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockVMMockRecorder ¶
type MockVMMockRecorder struct {
// contains filtered or unexported fields
}
MockVMMockRecorder is the mock recorder for MockVM
func (*MockVMMockRecorder) Call ¶
func (mr *MockVMMockRecorder) Call(caller, addr, input, gas, value interface{}) *gomock.Call
Call indicates an expected call of Call
func (*MockVMMockRecorder) CallCode ¶
func (mr *MockVMMockRecorder) CallCode(caller, addr, input, gas, value interface{}) *gomock.Call
CallCode indicates an expected call of CallCode
func (*MockVMMockRecorder) Cancel ¶
func (mr *MockVMMockRecorder) Cancel() *gomock.Call
Cancel indicates an expected call of Cancel
func (*MockVMMockRecorder) Cancelled ¶
func (mr *MockVMMockRecorder) Cancelled() *gomock.Call
Cancelled indicates an expected call of Cancelled
func (*MockVMMockRecorder) Coinbase ¶
func (mr *MockVMMockRecorder) Coinbase() *gomock.Call
Coinbase indicates an expected call of Coinbase
func (*MockVMMockRecorder) Create ¶
func (mr *MockVMMockRecorder) Create(caller, code, gas, value interface{}) *gomock.Call
Create indicates an expected call of Create
func (*MockVMMockRecorder) Create2 ¶
func (mr *MockVMMockRecorder) Create2(caller, code, gas, endowment, salt interface{}) *gomock.Call
Create2 indicates an expected call of Create2
func (*MockVMMockRecorder) DB ¶
func (mr *MockVMMockRecorder) DB() *gomock.Call
DB indicates an expected call of DB
func (*MockVMMockRecorder) DelegateCall ¶
func (mr *MockVMMockRecorder) DelegateCall(caller, addr, input, gas interface{}) *gomock.Call
DelegateCall indicates an expected call of DelegateCall
func (*MockVMMockRecorder) StaticCall ¶
func (mr *MockVMMockRecorder) StaticCall(caller, addr, input, gas interface{}) *gomock.Call
StaticCall indicates an expected call of StaticCall
func (*MockVMMockRecorder) VmName ¶
func (mr *MockVMMockRecorder) VmName() *gomock.Call
VmName indicates an expected call of VmName