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.
Package mock is a generated GoMock package.
Index ¶
- type MockAccessControlProvider
- func (m *MockAccessControlProvider) CreatePrincipal(resourceName string, endorsements []*common.EndorsementEntry, message []byte) (protocol.Principal, error)
- func (m *MockAccessControlProvider) CreatePrincipalForTargetOrg(resourceName string, endorsements []*common.EndorsementEntry, message []byte, ...) (protocol.Principal, error)
- func (m *MockAccessControlProvider) EXPECT() *MockAccessControlProviderMockRecorder
- func (m *MockAccessControlProvider) GetAllPolicy() (map[string]*accesscontrol.Policy, error)
- func (m *MockAccessControlProvider) GetHashAlg() string
- func (m *MockAccessControlProvider) GetMemberStatus(member *accesscontrol.Member) (accesscontrol.MemberStatus, error)
- func (m *MockAccessControlProvider) GetValidEndorsements(principal protocol.Principal) ([]*common.EndorsementEntry, error)
- func (m *MockAccessControlProvider) LookUpExceptionalPolicy(resourceName string) (*accesscontrol.Policy, error)
- func (m *MockAccessControlProvider) LookUpPolicy(resourceName string) (*accesscontrol.Policy, error)
- func (m *MockAccessControlProvider) NewMember(member *accesscontrol.Member) (protocol.Member, error)
- func (m *MockAccessControlProvider) RefineEndorsements(endorsements []*common.EndorsementEntry, msg []byte) []*common.EndorsementEntry
- func (m *MockAccessControlProvider) ValidateResourcePolicy(resourcePolicy *config.ResourcePolicy) bool
- func (m *MockAccessControlProvider) VerifyPrincipal(principal protocol.Principal) (bool, error)
- func (m *MockAccessControlProvider) VerifyRelatedMaterial(verifyType accesscontrol.VerifyType, data []byte) (bool, error)
- type MockAccessControlProviderMockRecorder
- func (mr *MockAccessControlProviderMockRecorder) CreatePrincipal(resourceName, endorsements, message interface{}) *gomock.Call
- func (mr *MockAccessControlProviderMockRecorder) CreatePrincipalForTargetOrg(resourceName, endorsements, message, targetOrgId interface{}) *gomock.Call
- func (mr *MockAccessControlProviderMockRecorder) GetAllPolicy() *gomock.Call
- func (mr *MockAccessControlProviderMockRecorder) GetHashAlg() *gomock.Call
- func (mr *MockAccessControlProviderMockRecorder) GetMemberStatus(member interface{}) *gomock.Call
- func (mr *MockAccessControlProviderMockRecorder) GetValidEndorsements(principal interface{}) *gomock.Call
- func (mr *MockAccessControlProviderMockRecorder) LookUpExceptionalPolicy(resourceName interface{}) *gomock.Call
- func (mr *MockAccessControlProviderMockRecorder) LookUpPolicy(resourceName interface{}) *gomock.Call
- func (mr *MockAccessControlProviderMockRecorder) NewMember(member interface{}) *gomock.Call
- func (mr *MockAccessControlProviderMockRecorder) RefineEndorsements(endorsements, msg interface{}) *gomock.Call
- func (mr *MockAccessControlProviderMockRecorder) ValidateResourcePolicy(resourcePolicy interface{}) *gomock.Call
- func (mr *MockAccessControlProviderMockRecorder) VerifyPrincipal(principal interface{}) *gomock.Call
- func (mr *MockAccessControlProviderMockRecorder) VerifyRelatedMaterial(verifyType, data interface{}) *gomock.Call
- type MockBlockCommitter
- type MockBlockCommitterMockRecorder
- type MockBlockProposer
- func (m *MockBlockProposer) EXPECT() *MockBlockProposerMockRecorder
- func (m *MockBlockProposer) OnReceiveMaxBFTProposal(proposal *maxbft.BuildProposal)
- func (m *MockBlockProposer) OnReceiveProposeStatusChange(proposeStatus bool)
- func (m *MockBlockProposer) OnReceiveRwSetVerifyFailTxs(rwSetVerifyFailTxs *consensus.RwSetVerifyFailTxs)
- func (m *MockBlockProposer) OnReceiveTxPoolSignal(proposeSignal *txpool.TxPoolSignal)
- func (m *MockBlockProposer) ProposeBlock(proposal *maxbft.BuildProposal) (*consensus.ProposalBlock, error)
- func (m *MockBlockProposer) Start() error
- func (m *MockBlockProposer) Stop() error
- type MockBlockProposerMockRecorder
- func (mr *MockBlockProposerMockRecorder) OnReceiveMaxBFTProposal(proposal interface{}) *gomock.Call
- func (mr *MockBlockProposerMockRecorder) OnReceiveProposeStatusChange(proposeStatus interface{}) *gomock.Call
- func (mr *MockBlockProposerMockRecorder) OnReceiveRwSetVerifyFailTxs(rwSetVerifyFailTxs interface{}) *gomock.Call
- func (mr *MockBlockProposerMockRecorder) OnReceiveTxPoolSignal(proposeSignal interface{}) *gomock.Call
- func (mr *MockBlockProposerMockRecorder) ProposeBlock(proposal interface{}) *gomock.Call
- func (mr *MockBlockProposerMockRecorder) Start() *gomock.Call
- func (mr *MockBlockProposerMockRecorder) Stop() *gomock.Call
- type MockBlockVerifier
- func (m *MockBlockVerifier) EXPECT() *MockBlockVerifierMockRecorder
- func (m *MockBlockVerifier) VerifyBlock(block *common.Block, mode protocol.VerifyMode) error
- func (m *MockBlockVerifier) VerifyBlockSync(block *common.Block, mode protocol.VerifyMode) (*consensus.VerifyResult, error)
- func (m *MockBlockVerifier) VerifyBlockWithRwSets(block *common.Block, rwsets []*common.TxRWSet, mode protocol.VerifyMode) error
- type MockBlockVerifierMockRecorder
- type MockBlockchainStore
- func (m *MockBlockchainStore) ArchiveBlock(archiveHeight uint64) error
- func (m *MockBlockchainStore) BeginDbTransaction(txName string) (protocol.SqlDBTransaction, error)
- func (m *MockBlockchainStore) BlockExists(blockHash []byte) (bool, error)
- func (m *MockBlockchainStore) Close() error
- func (m *MockBlockchainStore) CommitDbTransaction(txName string) error
- func (m *MockBlockchainStore) CreateDatabase(contractName string) error
- func (m *MockBlockchainStore) DoHotColdDataSeparation(startHeight, endHeight uint64) (string, error)
- func (m *MockBlockchainStore) DropDatabase(contractName string) error
- func (m *MockBlockchainStore) EXPECT() *MockBlockchainStoreMockRecorder
- func (m *MockBlockchainStore) ExecDdlSql(contractName, sql, version string) error
- func (m *MockBlockchainStore) GetAccountTxHistory(accountId []byte) (protocol.TxHistoryIterator, error)
- func (m *MockBlockchainStore) GetArchiveStatus() (*store.ArchiveStatus, error)
- func (m *MockBlockchainStore) GetArchivedPivot() uint64
- func (m *MockBlockchainStore) GetBlock(height uint64) (*common.Block, error)
- func (m *MockBlockchainStore) GetBlockByHash(blockHash []byte) (*common.Block, error)
- func (m *MockBlockchainStore) GetBlockByTx(txId string) (*common.Block, error)
- func (m *MockBlockchainStore) GetBlockHeaderByHeight(height uint64) (*common.BlockHeader, error)
- func (m *MockBlockchainStore) GetBlockWithRWSets(height uint64) (*store.BlockWithRWSet, error)
- func (m *MockBlockchainStore) GetContractByName(name string) (*common.Contract, error)
- func (m *MockBlockchainStore) GetContractBytecode(name string) ([]byte, error)
- func (m *MockBlockchainStore) GetContractDbName(contractName string) string
- func (m *MockBlockchainStore) GetContractTxHistory(contractName string) (protocol.TxHistoryIterator, error)
- func (m *MockBlockchainStore) GetDBHandle(dbName string) protocol.DBHandle
- func (m *MockBlockchainStore) GetDbTransaction(txName string) (protocol.SqlDBTransaction, error)
- func (m *MockBlockchainStore) GetHeightByHash(blockHash []byte) (uint64, error)
- func (m *MockBlockchainStore) GetHistoryForKey(contractName string, key []byte) (protocol.KeyHistoryIterator, error)
- func (m *MockBlockchainStore) GetHotColdDataSeparationJobByID(jobID string) (store.ArchiveJob, error)
- func (m *MockBlockchainStore) GetHotColdDataSeparationMaxHeight() (uint64, error)
- func (m *MockBlockchainStore) GetLastBlock() (*common.Block, error)
- func (m *MockBlockchainStore) GetLastChainConfig() (*config.ChainConfig, error)
- func (m *MockBlockchainStore) GetLastConfigBlock() (*common.Block, error)
- func (m *MockBlockchainStore) GetLastHeight() (uint64, error)
- func (m *MockBlockchainStore) GetMemberExtraData(member *accesscontrol.Member) (*accesscontrol.MemberExtraData, error)
- func (m *MockBlockchainStore) GetSnapshotStatus() uint64
- func (m *MockBlockchainStore) GetTx(txId string) (*common.Transaction, error)
- func (m *MockBlockchainStore) GetTxConfirmedTime(txId string) (int64, error)
- func (m *MockBlockchainStore) GetTxHeight(txId string) (uint64, error)
- func (m *MockBlockchainStore) GetTxInfoOnly(txId string) (*common.TransactionInfo, error)
- func (m *MockBlockchainStore) GetTxInfoWithRWSet(txId string) (*common.TransactionInfoWithRWSet, error)
- func (m *MockBlockchainStore) GetTxRWSet(txId string) (*common.TxRWSet, error)
- func (m *MockBlockchainStore) GetTxRWSetsByHeight(height uint64) ([]*common.TxRWSet, error)
- func (m *MockBlockchainStore) GetTxWithInfo(txId string) (*common.TransactionInfo, error)
- func (m *MockBlockchainStore) GetTxWithRWSet(txId string) (*common.TransactionWithRWSet, error)
- func (m *MockBlockchainStore) InitGenesis(genesisBlock *store.BlockWithRWSet) error
- func (m *MockBlockchainStore) MakeSnapshot(snapshotHeight uint64) error
- func (m *MockBlockchainStore) PutBlock(block *common.Block, txRWSets []*common.TxRWSet) error
- func (m *MockBlockchainStore) QueryMulti(contractName, sql string, values ...interface{}) (protocol.SqlRows, error)
- func (m *MockBlockchainStore) QuerySingle(contractName, sql string, values ...interface{}) (protocol.SqlRow, error)
- func (m *MockBlockchainStore) ReadObject(contractName string, key []byte) ([]byte, error)
- func (m *MockBlockchainStore) ReadObjects(contractName string, keys [][]byte) ([][]byte, error)
- func (m *MockBlockchainStore) RestoreBlocks(serializedBlocks [][]byte) error
- func (m *MockBlockchainStore) RollbackDbTransaction(txName string) error
- func (m *MockBlockchainStore) SelectObject(contractName string, startKey, limit []byte) (protocol.StateIterator, error)
- func (m *MockBlockchainStore) TxExists(txId string) (bool, error)
- func (m *MockBlockchainStore) TxExistsInFullDB(txId string) (bool, uint64, error)
- func (m *MockBlockchainStore) TxExistsInIncrementDB(txId string, startHeight uint64) (bool, error)
- func (m *MockBlockchainStore) TxExistsInIncrementDBState(txId string, startHeight uint64) (bool, bool, error)
- type MockBlockchainStoreMockRecorder
- func (mr *MockBlockchainStoreMockRecorder) ArchiveBlock(archiveHeight interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) BeginDbTransaction(txName interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) BlockExists(blockHash interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) Close() *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) CommitDbTransaction(txName interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) CreateDatabase(contractName interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) DoHotColdDataSeparation(startHeight, endHeight interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) DropDatabase(contractName interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) ExecDdlSql(contractName, sql, version interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) GetAccountTxHistory(accountId interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) GetArchiveStatus() *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) GetArchivedPivot() *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) GetBlock(height interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) GetBlockByHash(blockHash interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) GetBlockByTx(txId interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) GetBlockHeaderByHeight(height interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) GetBlockWithRWSets(height interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) GetContractByName(name interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) GetContractBytecode(name interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) GetContractDbName(contractName interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) GetContractTxHistory(contractName interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) GetDBHandle(dbName interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) GetDbTransaction(txName interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) GetHeightByHash(blockHash interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) GetHistoryForKey(contractName, key interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) GetHotColdDataSeparationJobByID(jobID interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) GetHotColdDataSeparationMaxHeight() *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) GetLastBlock() *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) GetLastChainConfig() *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) GetLastConfigBlock() *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) GetLastHeight() *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) GetMemberExtraData(member interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) GetSnapshotStatus() *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) GetTx(txId interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) GetTxConfirmedTime(txId interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) GetTxHeight(txId interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) GetTxInfoOnly(txId interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) GetTxInfoWithRWSet(txId interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) GetTxRWSet(txId interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) GetTxRWSetsByHeight(height interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) GetTxWithInfo(txId interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) GetTxWithRWSet(txId interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) InitGenesis(genesisBlock interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) MakeSnapshot(snapshotHeight interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) PutBlock(block, txRWSets interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) QueryMulti(contractName, sql interface{}, values ...interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) QuerySingle(contractName, sql interface{}, values ...interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) ReadObject(contractName, key interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) ReadObjects(contractName, keys interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) RestoreBlocks(serializedBlocks interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) RollbackDbTransaction(txName interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) SelectObject(contractName, startKey, limit interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) TxExists(txId interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) TxExistsInFullDB(txId interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) TxExistsInIncrementDB(txId, startHeight interface{}) *gomock.Call
- func (mr *MockBlockchainStoreMockRecorder) TxExistsInIncrementDBState(txId, startHeight interface{}) *gomock.Call
- type MockChainConf
- func (m *MockChainConf) AddVmWatch(w protocol.VmWatcher)
- func (m *MockChainConf) AddWatch(w protocol.Watcher)
- func (m *MockChainConf) ChainConfig() *config.ChainConfig
- func (m *MockChainConf) CompleteBlock(block *common.Block) error
- func (m *MockChainConf) EXPECT() *MockChainConfMockRecorder
- func (m *MockChainConf) GetChainConfigAt(blockHeight uint64) (*config.ChainConfig, error)
- func (m *MockChainConf) GetChainConfigFromFuture(blockHeight uint64) (*config.ChainConfig, error)
- func (m *MockChainConf) GetConsensusNodeIdList() ([]string, error)
- func (m *MockChainConf) Init() error
- func (m *MockChainConf) SetChainConfig(chainConf *config.ChainConfig) error
- type MockChainConfMockRecorder
- func (mr *MockChainConfMockRecorder) AddVmWatch(w interface{}) *gomock.Call
- func (mr *MockChainConfMockRecorder) AddWatch(w interface{}) *gomock.Call
- func (mr *MockChainConfMockRecorder) ChainConfig() *gomock.Call
- func (mr *MockChainConfMockRecorder) CompleteBlock(block interface{}) *gomock.Call
- func (mr *MockChainConfMockRecorder) GetChainConfigAt(blockHeight interface{}) *gomock.Call
- func (mr *MockChainConfMockRecorder) GetChainConfigFromFuture(blockHeight interface{}) *gomock.Call
- func (mr *MockChainConfMockRecorder) GetConsensusNodeIdList() *gomock.Call
- func (mr *MockChainConfMockRecorder) Init() *gomock.Call
- func (mr *MockChainConfMockRecorder) SetChainConfig(chainConf interface{}) *gomock.Call
- type MockChainNodesInfoProvider
- type MockChainNodesInfoProviderMockRecorder
- type MockConsensusEngine
- func (m *MockConsensusEngine) Close() error
- func (m *MockConsensusEngine) EXPECT() *MockConsensusEngineMockRecorder
- func (m *MockConsensusEngine) GetAllNodeInfos() []consensus.ConsensusNodeInfo
- func (m *MockConsensusEngine) GetConsensusStateJSON() ([]byte, error)
- func (m *MockConsensusEngine) GetConsensusType() consensus.ConsensusType
- func (m *MockConsensusEngine) GetLastHeight() uint64
- func (m *MockConsensusEngine) GetValidators() ([]string, error)
- func (m *MockConsensusEngine) Start() error
- func (m *MockConsensusEngine) Stop() error
- type MockConsensusEngineMockRecorder
- func (mr *MockConsensusEngineMockRecorder) Close() *gomock.Call
- func (mr *MockConsensusEngineMockRecorder) GetAllNodeInfos() *gomock.Call
- func (mr *MockConsensusEngineMockRecorder) GetConsensusStateJSON() *gomock.Call
- func (mr *MockConsensusEngineMockRecorder) GetConsensusType() *gomock.Call
- func (mr *MockConsensusEngineMockRecorder) GetLastHeight() *gomock.Call
- func (mr *MockConsensusEngineMockRecorder) GetValidators() *gomock.Call
- func (mr *MockConsensusEngineMockRecorder) Start() *gomock.Call
- func (mr *MockConsensusEngineMockRecorder) Stop() *gomock.Call
- type MockConsensusExtendEngine
- func (m *MockConsensusExtendEngine) Close() error
- func (m *MockConsensusExtendEngine) EXPECT() *MockConsensusExtendEngineMockRecorder
- func (m *MockConsensusExtendEngine) GetAllNodeInfos() []consensus.ConsensusNodeInfo
- func (m *MockConsensusExtendEngine) GetConsensusStateJSON() ([]byte, error)
- func (m *MockConsensusExtendEngine) GetConsensusType() consensus.ConsensusType
- func (m *MockConsensusExtendEngine) GetLastHeight() uint64
- func (m *MockConsensusExtendEngine) GetValidators() ([]string, error)
- func (m *MockConsensusExtendEngine) InitExtendHandler(handler protocol.ConsensusExtendHandler)
- func (m *MockConsensusExtendEngine) Start() error
- func (m *MockConsensusExtendEngine) Stop() error
- type MockConsensusExtendEngineMockRecorder
- func (mr *MockConsensusExtendEngineMockRecorder) Close() *gomock.Call
- func (mr *MockConsensusExtendEngineMockRecorder) GetAllNodeInfos() *gomock.Call
- func (mr *MockConsensusExtendEngineMockRecorder) GetConsensusStateJSON() *gomock.Call
- func (mr *MockConsensusExtendEngineMockRecorder) GetConsensusType() *gomock.Call
- func (mr *MockConsensusExtendEngineMockRecorder) GetLastHeight() *gomock.Call
- func (mr *MockConsensusExtendEngineMockRecorder) GetValidators() *gomock.Call
- func (mr *MockConsensusExtendEngineMockRecorder) InitExtendHandler(handler interface{}) *gomock.Call
- func (mr *MockConsensusExtendEngineMockRecorder) Start() *gomock.Call
- func (mr *MockConsensusExtendEngineMockRecorder) Stop() *gomock.Call
- type MockConsensusExtendHandler
- func (m *MockConsensusExtendHandler) CreateRWSet(preBlkHash []byte, proposedBlock *consensus.ProposalBlock) error
- func (m *MockConsensusExtendHandler) EXPECT() *MockConsensusExtendHandlerMockRecorder
- func (m *MockConsensusExtendHandler) GetValidators() ([]string, error)
- func (m *MockConsensusExtendHandler) VerifyConsensusArgs(block *common.Block, blockTxRwSet map[string]*common.TxRWSet) error
- type MockConsensusExtendHandlerMockRecorder
- func (mr *MockConsensusExtendHandlerMockRecorder) CreateRWSet(preBlkHash, proposedBlock interface{}) *gomock.Call
- func (mr *MockConsensusExtendHandlerMockRecorder) GetValidators() *gomock.Call
- func (mr *MockConsensusExtendHandlerMockRecorder) VerifyConsensusArgs(block, blockTxRwSet interface{}) *gomock.Call
- type MockConsensusState
- func (m *MockConsensusState) EXPECT() *MockConsensusStateMockRecorder
- func (m *MockConsensusState) GetAllNodeInfos() []consensus.ConsensusNodeInfo
- func (m *MockConsensusState) GetConsensusStateJSON() ([]byte, error)
- func (m *MockConsensusState) GetConsensusType() consensus.ConsensusType
- func (m *MockConsensusState) GetLastHeight() uint64
- func (m *MockConsensusState) GetValidators() ([]string, error)
- type MockConsensusStateMockRecorder
- func (mr *MockConsensusStateMockRecorder) GetAllNodeInfos() *gomock.Call
- func (mr *MockConsensusStateMockRecorder) GetConsensusStateJSON() *gomock.Call
- func (mr *MockConsensusStateMockRecorder) GetConsensusType() *gomock.Call
- func (mr *MockConsensusStateMockRecorder) GetLastHeight() *gomock.Call
- func (mr *MockConsensusStateMockRecorder) GetValidators() *gomock.Call
- type MockConsensusStateWrapper
- type MockConsensusStateWrapperMockRecorder
- type MockContractWacsiCommon
- type MockContractWacsiCommonMockRecorder
- type MockContractWacsiKV
- func (m *MockContractWacsiKV) CallContract() int32
- func (m *MockContractWacsiKV) DeleteState() int32
- func (m *MockContractWacsiKV) EXPECT() *MockContractWacsiKVMockRecorder
- func (m *MockContractWacsiKV) ErrorResult() int32
- func (m *MockContractWacsiKV) GetState() int32
- func (m *MockContractWacsiKV) KvIterator() int32
- func (m *MockContractWacsiKV) KvIteratorClose() int32
- func (m *MockContractWacsiKV) KvIteratorHasNext() int32
- func (m *MockContractWacsiKV) KvIteratorNext() int32
- func (m *MockContractWacsiKV) KvPreIterator() int32
- func (m *MockContractWacsiKV) LogMessage() int32
- func (m *MockContractWacsiKV) PutState() int32
- func (m *MockContractWacsiKV) SuccessResult() int32
- type MockContractWacsiKVMockRecorder
- func (mr *MockContractWacsiKVMockRecorder) CallContract() *gomock.Call
- func (mr *MockContractWacsiKVMockRecorder) DeleteState() *gomock.Call
- func (mr *MockContractWacsiKVMockRecorder) ErrorResult() *gomock.Call
- func (mr *MockContractWacsiKVMockRecorder) GetState() *gomock.Call
- func (mr *MockContractWacsiKVMockRecorder) KvIterator() *gomock.Call
- func (mr *MockContractWacsiKVMockRecorder) KvIteratorClose() *gomock.Call
- func (mr *MockContractWacsiKVMockRecorder) KvIteratorHasNext() *gomock.Call
- func (mr *MockContractWacsiKVMockRecorder) KvIteratorNext() *gomock.Call
- func (mr *MockContractWacsiKVMockRecorder) KvPreIterator() *gomock.Call
- func (mr *MockContractWacsiKVMockRecorder) LogMessage() *gomock.Call
- func (mr *MockContractWacsiKVMockRecorder) PutState() *gomock.Call
- func (mr *MockContractWacsiKVMockRecorder) SuccessResult() *gomock.Call
- type MockContractWacsiSQL
- func (m *MockContractWacsiSQL) CallContract() int32
- func (m *MockContractWacsiSQL) EXPECT() *MockContractWacsiSQLMockRecorder
- func (m *MockContractWacsiSQL) ErrorResult() int32
- func (m *MockContractWacsiSQL) ExecuteDDL() int32
- func (m *MockContractWacsiSQL) ExecuteQuery() int32
- func (m *MockContractWacsiSQL) ExecuteQueryOne() int32
- func (m *MockContractWacsiSQL) ExecuteUpdate() int32
- func (m *MockContractWacsiSQL) LogMessage() int32
- func (m *MockContractWacsiSQL) RSClose() int32
- func (m *MockContractWacsiSQL) RSHasNext() int32
- func (m *MockContractWacsiSQL) RSNext() int32
- func (m *MockContractWacsiSQL) SuccessResult() int32
- type MockContractWacsiSQLMockRecorder
- func (mr *MockContractWacsiSQLMockRecorder) CallContract() *gomock.Call
- func (mr *MockContractWacsiSQLMockRecorder) ErrorResult() *gomock.Call
- func (mr *MockContractWacsiSQLMockRecorder) ExecuteDDL() *gomock.Call
- func (mr *MockContractWacsiSQLMockRecorder) ExecuteQuery() *gomock.Call
- func (mr *MockContractWacsiSQLMockRecorder) ExecuteQueryOne() *gomock.Call
- func (mr *MockContractWacsiSQLMockRecorder) ExecuteUpdate() *gomock.Call
- func (mr *MockContractWacsiSQLMockRecorder) LogMessage() *gomock.Call
- func (mr *MockContractWacsiSQLMockRecorder) RSClose() *gomock.Call
- func (mr *MockContractWacsiSQLMockRecorder) RSHasNext() *gomock.Call
- func (mr *MockContractWacsiSQLMockRecorder) RSNext() *gomock.Call
- func (mr *MockContractWacsiSQLMockRecorder) SuccessResult() *gomock.Call
- type MockCoreEngine
- func (m *MockCoreEngine) EXPECT() *MockCoreEngineMockRecorder
- func (m *MockCoreEngine) GetBlockCommitter() protocol.BlockCommitter
- func (m *MockCoreEngine) GetBlockProposer() protocol.BlockProposer
- func (m *MockCoreEngine) GetBlockVerifier() protocol.BlockVerifier
- func (m *MockCoreEngine) GetMaxbftHelper() protocol.MaxbftHelper
- func (m *MockCoreEngine) OnMessage(arg0 *msgbus.Message)
- func (m *MockCoreEngine) OnQuit()
- func (m *MockCoreEngine) Start()
- func (m *MockCoreEngine) Stop()
- type MockCoreEngineMockRecorder
- func (mr *MockCoreEngineMockRecorder) GetBlockCommitter() *gomock.Call
- func (mr *MockCoreEngineMockRecorder) GetBlockProposer() *gomock.Call
- func (mr *MockCoreEngineMockRecorder) GetBlockVerifier() *gomock.Call
- func (mr *MockCoreEngineMockRecorder) GetMaxbftHelper() *gomock.Call
- func (mr *MockCoreEngineMockRecorder) OnMessage(arg0 interface{}) *gomock.Call
- func (mr *MockCoreEngineMockRecorder) OnQuit() *gomock.Call
- func (mr *MockCoreEngineMockRecorder) Start() *gomock.Call
- func (mr *MockCoreEngineMockRecorder) Stop() *gomock.Call
- type MockDBHandle
- func (m *MockDBHandle) Close() error
- func (m *MockDBHandle) CompactRange(start, limit []byte) error
- func (m *MockDBHandle) Delete(key []byte) error
- func (m *MockDBHandle) EXPECT() *MockDBHandleMockRecorder
- func (m *MockDBHandle) Get(key []byte) ([]byte, error)
- func (m *MockDBHandle) GetDbType() string
- func (m *MockDBHandle) GetKeys(keys [][]byte) ([][]byte, error)
- func (m *MockDBHandle) GetWriteBatchSize() uint64
- func (m *MockDBHandle) Has(key []byte) (bool, error)
- func (m *MockDBHandle) NewIteratorWithPrefix(prefix []byte) (protocol.Iterator, error)
- func (m *MockDBHandle) NewIteratorWithRange(start, limit []byte) (protocol.Iterator, error)
- func (m *MockDBHandle) Put(key, value []byte) error
- func (m *MockDBHandle) WriteBatch(batch protocol.StoreBatcher, sync bool) error
- type MockDBHandleMockRecorder
- func (mr *MockDBHandleMockRecorder) Close() *gomock.Call
- func (mr *MockDBHandleMockRecorder) CompactRange(start, limit interface{}) *gomock.Call
- func (mr *MockDBHandleMockRecorder) Delete(key interface{}) *gomock.Call
- func (mr *MockDBHandleMockRecorder) Get(key interface{}) *gomock.Call
- func (mr *MockDBHandleMockRecorder) GetDbType() *gomock.Call
- func (mr *MockDBHandleMockRecorder) GetKeys(keys interface{}) *gomock.Call
- func (mr *MockDBHandleMockRecorder) GetWriteBatchSize() *gomock.Call
- func (mr *MockDBHandleMockRecorder) Has(key interface{}) *gomock.Call
- func (mr *MockDBHandleMockRecorder) NewIteratorWithPrefix(prefix interface{}) *gomock.Call
- func (mr *MockDBHandleMockRecorder) NewIteratorWithRange(start, limit interface{}) *gomock.Call
- func (mr *MockDBHandleMockRecorder) Put(key, value interface{}) *gomock.Call
- func (mr *MockDBHandleMockRecorder) WriteBatch(batch, sync interface{}) *gomock.Call
- type MockDPoS
- func (m *MockDPoS) CreateDPoSRWSet(preBlkHash []byte, proposedBlock *consensus.ProposalBlock) error
- func (m *MockDPoS) EXPECT() *MockDPoSMockRecorder
- func (m *MockDPoS) GetValidators() ([]string, error)
- func (m *MockDPoS) VerifyConsensusArgs(block *common.Block, blockTxRwSet map[string]*common.TxRWSet) error
- type MockDPoSMockRecorder
- type MockGovernment
- type MockGovernmentMockRecorder
- type MockImportLedgerSnapshot
- type MockImportLedgerSnapshotMockRecorder
- type MockIterator
- type MockIteratorMockRecorder
- func (mr *MockIteratorMockRecorder) Error() *gomock.Call
- func (mr *MockIteratorMockRecorder) First() *gomock.Call
- func (mr *MockIteratorMockRecorder) Key() *gomock.Call
- func (mr *MockIteratorMockRecorder) Next() *gomock.Call
- func (mr *MockIteratorMockRecorder) Release() *gomock.Call
- func (mr *MockIteratorMockRecorder) Value() *gomock.Call
- type MockKeyHistoryIterator
- type MockKeyHistoryIteratorMockRecorder
- type MockLedgerCache
- type MockLedgerCacheMockRecorder
- type MockLogger
- func (m *MockLogger) Debug(args ...interface{})
- func (m *MockLogger) DebugDynamic(getStr func() string)
- func (m *MockLogger) Debugf(format string, args ...interface{})
- func (m *MockLogger) Debugw(msg string, keysAndValues ...interface{})
- func (m *MockLogger) EXPECT() *MockLoggerMockRecorder
- func (m *MockLogger) Error(args ...interface{})
- func (m *MockLogger) Errorf(format string, args ...interface{})
- func (m *MockLogger) Errorw(msg string, keysAndValues ...interface{})
- func (m *MockLogger) Fatal(args ...interface{})
- func (m *MockLogger) Fatalf(format string, args ...interface{})
- func (m *MockLogger) Fatalw(msg string, keysAndValues ...interface{})
- func (m *MockLogger) Info(args ...interface{})
- func (m *MockLogger) InfoDynamic(getStr func() string)
- func (m *MockLogger) Infof(format string, args ...interface{})
- func (m *MockLogger) Infow(msg string, keysAndValues ...interface{})
- func (m *MockLogger) Panic(args ...interface{})
- func (m *MockLogger) Panicf(format string, args ...interface{})
- func (m *MockLogger) Panicw(msg string, keysAndValues ...interface{})
- func (m *MockLogger) Warn(args ...interface{})
- func (m *MockLogger) Warnf(format string, args ...interface{})
- func (m *MockLogger) Warnw(msg string, keysAndValues ...interface{})
- type MockLoggerMockRecorder
- func (mr *MockLoggerMockRecorder) Debug(args ...interface{}) *gomock.Call
- func (mr *MockLoggerMockRecorder) DebugDynamic(getStr interface{}) *gomock.Call
- func (mr *MockLoggerMockRecorder) Debugf(format interface{}, args ...interface{}) *gomock.Call
- func (mr *MockLoggerMockRecorder) Debugw(msg interface{}, keysAndValues ...interface{}) *gomock.Call
- func (mr *MockLoggerMockRecorder) Error(args ...interface{}) *gomock.Call
- func (mr *MockLoggerMockRecorder) Errorf(format interface{}, args ...interface{}) *gomock.Call
- func (mr *MockLoggerMockRecorder) Errorw(msg interface{}, keysAndValues ...interface{}) *gomock.Call
- func (mr *MockLoggerMockRecorder) Fatal(args ...interface{}) *gomock.Call
- func (mr *MockLoggerMockRecorder) Fatalf(format interface{}, args ...interface{}) *gomock.Call
- func (mr *MockLoggerMockRecorder) Fatalw(msg interface{}, keysAndValues ...interface{}) *gomock.Call
- func (mr *MockLoggerMockRecorder) Info(args ...interface{}) *gomock.Call
- func (mr *MockLoggerMockRecorder) InfoDynamic(getStr interface{}) *gomock.Call
- func (mr *MockLoggerMockRecorder) Infof(format interface{}, args ...interface{}) *gomock.Call
- func (mr *MockLoggerMockRecorder) Infow(msg interface{}, keysAndValues ...interface{}) *gomock.Call
- func (mr *MockLoggerMockRecorder) Panic(args ...interface{}) *gomock.Call
- func (mr *MockLoggerMockRecorder) Panicf(format interface{}, args ...interface{}) *gomock.Call
- func (mr *MockLoggerMockRecorder) Panicw(msg interface{}, keysAndValues ...interface{}) *gomock.Call
- func (mr *MockLoggerMockRecorder) Warn(args ...interface{}) *gomock.Call
- func (mr *MockLoggerMockRecorder) Warnf(format interface{}, args ...interface{}) *gomock.Call
- func (mr *MockLoggerMockRecorder) Warnw(msg interface{}, keysAndValues ...interface{}) *gomock.Call
- type MockMember
- func (m *MockMember) EXPECT() *MockMemberMockRecorder
- func (m *MockMember) GetMember() (*accesscontrol.Member, error)
- func (m *MockMember) GetMemberId() string
- func (m *MockMember) GetOrgId() string
- func (m *MockMember) GetPk() crypto.PublicKey
- func (m *MockMember) GetRole() protocol.Role
- func (m *MockMember) GetUid() string
- func (m *MockMember) Verify(hashType string, msg, sig []byte) error
- type MockMemberMockRecorder
- func (mr *MockMemberMockRecorder) GetMember() *gomock.Call
- func (mr *MockMemberMockRecorder) GetMemberId() *gomock.Call
- func (mr *MockMemberMockRecorder) GetOrgId() *gomock.Call
- func (mr *MockMemberMockRecorder) GetPk() *gomock.Call
- func (mr *MockMemberMockRecorder) GetRole() *gomock.Call
- func (mr *MockMemberMockRecorder) GetUid() *gomock.Call
- func (mr *MockMemberMockRecorder) Verify(hashType, msg, sig interface{}) *gomock.Call
- type MockMemberQuery
- type MockMemberQueryMockRecorder
- type MockNet
- func (m *MockNet) AddAC(chainId string, ac protocol.AccessControlProvider)
- func (m *MockNet) AddSeed(seed string) error
- func (m *MockNet) BroadcastWithChainId(chainId, topic string, netMsg []byte) error
- func (m *MockNet) CancelDirectMsgHandle(chainId, msgFlag string) error
- func (m *MockNet) CancelSubscribeWithChainId(chainId, topic string) error
- func (m *MockNet) ChainNodesInfo(chainId string) ([]*protocol.ChainNodeInfo, error)
- func (m *MockNet) DirectMsgHandle(chainId, msgFlag string, handler protocol.DirectMsgHandler) error
- func (m *MockNet) EXPECT() *MockNetMockRecorder
- func (m *MockNet) GetNodeUid() string
- func (m *MockNet) GetNodeUidByCertId(certId string) (string, error)
- func (m *MockNet) InitPubSub(chainId string, maxMessageSize int) error
- func (m *MockNet) IsRunning() bool
- func (m *MockNet) ReVerifyPeers(chainId string)
- func (m *MockNet) RefreshSeeds(seeds []string) error
- func (m *MockNet) SendMsg(chainId, node, msgFlag string, netMsg []byte) error
- func (m *MockNet) SetChainCustomTrustRoots(chainId string, roots [][]byte)
- func (m *MockNet) SetMsgPriority(msgFlag string, priority uint8)
- func (m *MockNet) Start() error
- func (m *MockNet) Stop() error
- func (m *MockNet) SubscribeWithChainId(chainId, topic string, handler protocol.PubSubMsgHandler) error
- type MockNetMockRecorder
- func (mr *MockNetMockRecorder) AddAC(chainId, ac interface{}) *gomock.Call
- func (mr *MockNetMockRecorder) AddSeed(seed interface{}) *gomock.Call
- func (mr *MockNetMockRecorder) BroadcastWithChainId(chainId, topic, netMsg interface{}) *gomock.Call
- func (mr *MockNetMockRecorder) CancelDirectMsgHandle(chainId, msgFlag interface{}) *gomock.Call
- func (mr *MockNetMockRecorder) CancelSubscribeWithChainId(chainId, topic interface{}) *gomock.Call
- func (mr *MockNetMockRecorder) ChainNodesInfo(chainId interface{}) *gomock.Call
- func (mr *MockNetMockRecorder) DirectMsgHandle(chainId, msgFlag, handler interface{}) *gomock.Call
- func (mr *MockNetMockRecorder) GetNodeUid() *gomock.Call
- func (mr *MockNetMockRecorder) GetNodeUidByCertId(certId interface{}) *gomock.Call
- func (mr *MockNetMockRecorder) InitPubSub(chainId, maxMessageSize interface{}) *gomock.Call
- func (mr *MockNetMockRecorder) IsRunning() *gomock.Call
- func (mr *MockNetMockRecorder) ReVerifyPeers(chainId interface{}) *gomock.Call
- func (mr *MockNetMockRecorder) RefreshSeeds(seeds interface{}) *gomock.Call
- func (mr *MockNetMockRecorder) SendMsg(chainId, node, msgFlag, netMsg interface{}) *gomock.Call
- func (mr *MockNetMockRecorder) SetChainCustomTrustRoots(chainId, roots interface{}) *gomock.Call
- func (mr *MockNetMockRecorder) SetMsgPriority(msgFlag, priority interface{}) *gomock.Call
- func (mr *MockNetMockRecorder) Start() *gomock.Call
- func (mr *MockNetMockRecorder) Stop() *gomock.Call
- func (mr *MockNetMockRecorder) SubscribeWithChainId(chainId, topic, handler interface{}) *gomock.Call
- type MockNetService
- func (m *MockNetService) BroadcastMsg(msg []byte, msgType net.NetMsg_MsgType) error
- func (m *MockNetService) CancelConsensusSubscribe(msgType net.NetMsg_MsgType) error
- func (m *MockNetService) CancelSubscribe(msgType net.NetMsg_MsgType) error
- func (m *MockNetService) ConsensusBroadcastMsg(msg []byte, msgType net.NetMsg_MsgType) error
- func (m *MockNetService) ConsensusSubscribe(msgType net.NetMsg_MsgType, handler protocol.MsgHandler) error
- func (m *MockNetService) EXPECT() *MockNetServiceMockRecorder
- func (m *MockNetService) GetChainNodesInfoProvider() protocol.ChainNodesInfoProvider
- func (m *MockNetService) GetNodeUidByCertId(certId string) (string, error)
- func (m *MockNetService) ReceiveMsg(msgType net.NetMsg_MsgType, handler protocol.MsgHandler) error
- func (m *MockNetService) SendMsg(msg []byte, msgType net.NetMsg_MsgType, to ...string) error
- func (m *MockNetService) Start() error
- func (m *MockNetService) Stop() error
- func (m *MockNetService) Subscribe(msgType net.NetMsg_MsgType, handler protocol.MsgHandler) error
- type MockNetServiceMockRecorder
- func (mr *MockNetServiceMockRecorder) BroadcastMsg(msg, msgType interface{}) *gomock.Call
- func (mr *MockNetServiceMockRecorder) CancelConsensusSubscribe(msgType interface{}) *gomock.Call
- func (mr *MockNetServiceMockRecorder) CancelSubscribe(msgType interface{}) *gomock.Call
- func (mr *MockNetServiceMockRecorder) ConsensusBroadcastMsg(msg, msgType interface{}) *gomock.Call
- func (mr *MockNetServiceMockRecorder) ConsensusSubscribe(msgType, handler interface{}) *gomock.Call
- func (mr *MockNetServiceMockRecorder) GetChainNodesInfoProvider() *gomock.Call
- func (mr *MockNetServiceMockRecorder) GetNodeUidByCertId(certId interface{}) *gomock.Call
- func (mr *MockNetServiceMockRecorder) ReceiveMsg(msgType, handler interface{}) *gomock.Call
- func (mr *MockNetServiceMockRecorder) SendMsg(msg, msgType interface{}, to ...interface{}) *gomock.Call
- func (mr *MockNetServiceMockRecorder) Start() *gomock.Call
- func (mr *MockNetServiceMockRecorder) Stop() *gomock.Call
- func (mr *MockNetServiceMockRecorder) Subscribe(msgType, handler interface{}) *gomock.Call
- type MockPrincipal
- type MockPrincipalMockRecorder
- type MockProposalCache
- func (m *MockProposalCache) ClearProposedBlockAt(height uint64)
- func (m *MockProposalCache) ClearTheBlock(block *common.Block)
- func (m *MockProposalCache) DiscardBlocks(baseHeight uint64) []*common.Block
- func (m *MockProposalCache) EXPECT() *MockProposalCacheMockRecorder
- func (m *MockProposalCache) GetProposedBlock(b *common.Block) (*common.Block, map[string]*common.TxRWSet, map[string][]*common.ContractEvent)
- func (m *MockProposalCache) GetProposedBlockByHashAndHeight(hash []byte, height uint64) (*common.Block, map[string]*common.TxRWSet)
- func (m *MockProposalCache) GetProposedBlocksAt(height uint64) []*common.Block
- func (m *MockProposalCache) GetSelfProposedBlockAt(height uint64) *common.Block
- func (m *MockProposalCache) HasProposedBlockAt(height uint64) bool
- func (m *MockProposalCache) IsProposedAt(height uint64) bool
- func (m *MockProposalCache) KeepProposedBlock(hash []byte, height uint64) []*common.Block
- func (m *MockProposalCache) ResetProposedAt(height uint64)
- func (m *MockProposalCache) SetProposedAt(height uint64)
- func (m *MockProposalCache) SetProposedBlock(b *common.Block, rwSetMap map[string]*common.TxRWSet, ...) error
- type MockProposalCacheMockRecorder
- func (mr *MockProposalCacheMockRecorder) ClearProposedBlockAt(height interface{}) *gomock.Call
- func (mr *MockProposalCacheMockRecorder) ClearTheBlock(block interface{}) *gomock.Call
- func (mr *MockProposalCacheMockRecorder) DiscardBlocks(baseHeight interface{}) *gomock.Call
- func (mr *MockProposalCacheMockRecorder) GetProposedBlock(b interface{}) *gomock.Call
- func (mr *MockProposalCacheMockRecorder) GetProposedBlockByHashAndHeight(hash, height interface{}) *gomock.Call
- func (mr *MockProposalCacheMockRecorder) GetProposedBlocksAt(height interface{}) *gomock.Call
- func (mr *MockProposalCacheMockRecorder) GetSelfProposedBlockAt(height interface{}) *gomock.Call
- func (mr *MockProposalCacheMockRecorder) HasProposedBlockAt(height interface{}) *gomock.Call
- func (mr *MockProposalCacheMockRecorder) IsProposedAt(height interface{}) *gomock.Call
- func (mr *MockProposalCacheMockRecorder) KeepProposedBlock(hash, height interface{}) *gomock.Call
- func (mr *MockProposalCacheMockRecorder) ResetProposedAt(height interface{}) *gomock.Call
- func (mr *MockProposalCacheMockRecorder) SetProposedAt(height interface{}) *gomock.Call
- func (mr *MockProposalCacheMockRecorder) SetProposedBlock(b, rwSetMap, contractEventMap, selfProposed interface{}) *gomock.Call
- type MockRuntimeInstance
- type MockRuntimeInstanceMockRecorder
- type MockSigningMember
- func (m *MockSigningMember) EXPECT() *MockSigningMemberMockRecorder
- func (m *MockSigningMember) GetMember() (*accesscontrol.Member, error)
- func (m *MockSigningMember) GetMemberId() string
- func (m *MockSigningMember) GetOrgId() string
- func (m *MockSigningMember) GetPk() crypto.PublicKey
- func (m *MockSigningMember) GetRole() protocol.Role
- func (m *MockSigningMember) GetUid() string
- func (m *MockSigningMember) Sign(hashType string, msg []byte) ([]byte, error)
- func (m *MockSigningMember) Verify(hashType string, msg, sig []byte) error
- type MockSigningMemberMockRecorder
- func (mr *MockSigningMemberMockRecorder) GetMember() *gomock.Call
- func (mr *MockSigningMemberMockRecorder) GetMemberId() *gomock.Call
- func (mr *MockSigningMemberMockRecorder) GetOrgId() *gomock.Call
- func (mr *MockSigningMemberMockRecorder) GetPk() *gomock.Call
- func (mr *MockSigningMemberMockRecorder) GetRole() *gomock.Call
- func (mr *MockSigningMemberMockRecorder) GetUid() *gomock.Call
- func (mr *MockSigningMemberMockRecorder) Sign(hashType, msg interface{}) *gomock.Call
- func (mr *MockSigningMemberMockRecorder) Verify(hashType, msg, sig interface{}) *gomock.Call
- type MockSnapshot
- func (m *MockSnapshot) ApplyBlock(block *common.Block, txRWSetMap map[string]*common.TxRWSet)
- func (m *MockSnapshot) ApplyTxSimContext(arg0 protocol.TxSimContext, arg1 protocol.ExecOrderTxType, arg2, arg3 bool) (bool, int)
- func (m *MockSnapshot) BuildDAG(isSql bool, txRWSetTable []*common.TxRWSet) *common.DAG
- func (m *MockSnapshot) EXPECT() *MockSnapshotMockRecorder
- func (m *MockSnapshot) GetBlockFingerprint() string
- func (m *MockSnapshot) GetBlockHeight() uint64
- func (m *MockSnapshot) GetBlockProposer() *accesscontrol.Member
- func (m *MockSnapshot) GetBlockTimestamp() int64
- func (m *MockSnapshot) GetBlockchainStore() protocol.BlockchainStore
- func (m *MockSnapshot) GetKey(txExecSeq int, contractName string, key []byte) ([]byte, error)
- func (m *MockSnapshot) GetKeys(txExecSeq int, keys []*vm.BatchKey) ([]*vm.BatchKey, error)
- func (m *MockSnapshot) GetLastChainConfig() *config.ChainConfig
- func (m *MockSnapshot) GetPreSnapshot() protocol.Snapshot
- func (m *MockSnapshot) GetSnapshotSize() int
- func (m *MockSnapshot) GetSpecialTxTable() []*common.Transaction
- func (m *MockSnapshot) GetTxRWSetTable() []*common.TxRWSet
- func (m *MockSnapshot) GetTxResultMap() map[string]*common.Result
- func (m *MockSnapshot) GetTxTable() []*common.Transaction
- func (m *MockSnapshot) IsSealed() bool
- func (m *MockSnapshot) Seal()
- func (m *MockSnapshot) SetPreSnapshot(arg0 protocol.Snapshot)
- type MockSnapshotManager
- func (m *MockSnapshotManager) ClearSnapshot(block *common.Block) error
- func (m *MockSnapshotManager) EXPECT() *MockSnapshotManagerMockRecorder
- func (m *MockSnapshotManager) GetSnapshot(prevBlock, block *common.Block) protocol.Snapshot
- func (m *MockSnapshotManager) NewSnapshot(prevBlock, block *common.Block) protocol.Snapshot
- func (m *MockSnapshotManager) NotifyBlockCommitted(block *common.Block) error
- type MockSnapshotManagerMockRecorder
- func (mr *MockSnapshotManagerMockRecorder) ClearSnapshot(block interface{}) *gomock.Call
- func (mr *MockSnapshotManagerMockRecorder) GetSnapshot(prevBlock, block interface{}) *gomock.Call
- func (mr *MockSnapshotManagerMockRecorder) NewSnapshot(prevBlock, block interface{}) *gomock.Call
- func (mr *MockSnapshotManagerMockRecorder) NotifyBlockCommitted(block interface{}) *gomock.Call
- type MockSnapshotMockRecorder
- func (mr *MockSnapshotMockRecorder) ApplyBlock(block, txRWSetMap interface{}) *gomock.Call
- func (mr *MockSnapshotMockRecorder) ApplyTxSimContext(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockSnapshotMockRecorder) BuildDAG(isSql, txRWSetTable interface{}) *gomock.Call
- func (mr *MockSnapshotMockRecorder) GetBlockFingerprint() *gomock.Call
- func (mr *MockSnapshotMockRecorder) GetBlockHeight() *gomock.Call
- func (mr *MockSnapshotMockRecorder) GetBlockProposer() *gomock.Call
- func (mr *MockSnapshotMockRecorder) GetBlockTimestamp() *gomock.Call
- func (mr *MockSnapshotMockRecorder) GetBlockchainStore() *gomock.Call
- func (mr *MockSnapshotMockRecorder) GetKey(txExecSeq, contractName, key interface{}) *gomock.Call
- func (mr *MockSnapshotMockRecorder) GetKeys(txExecSeq, keys interface{}) *gomock.Call
- func (mr *MockSnapshotMockRecorder) GetLastChainConfig() *gomock.Call
- func (mr *MockSnapshotMockRecorder) GetPreSnapshot() *gomock.Call
- func (mr *MockSnapshotMockRecorder) GetSnapshotSize() *gomock.Call
- func (mr *MockSnapshotMockRecorder) GetSpecialTxTable() *gomock.Call
- func (mr *MockSnapshotMockRecorder) GetTxRWSetTable() *gomock.Call
- func (mr *MockSnapshotMockRecorder) GetTxResultMap() *gomock.Call
- func (mr *MockSnapshotMockRecorder) GetTxTable() *gomock.Call
- func (mr *MockSnapshotMockRecorder) IsSealed() *gomock.Call
- func (mr *MockSnapshotMockRecorder) Seal() *gomock.Call
- func (mr *MockSnapshotMockRecorder) SetPreSnapshot(arg0 interface{}) *gomock.Call
- type MockSqlDBHandle
- func (m *MockSqlDBHandle) BeginDbTransaction(txName string) (protocol.SqlDBTransaction, error)
- func (m *MockSqlDBHandle) Close() error
- func (m *MockSqlDBHandle) CommitDbTransaction(txName string) error
- func (m *MockSqlDBHandle) CompactRange(start, limit []byte) error
- func (m *MockSqlDBHandle) CreateDatabaseIfNotExist(dbName string) (bool, error)
- func (m *MockSqlDBHandle) CreateTableIfNotExist(obj interface{}) error
- func (m *MockSqlDBHandle) Delete(key []byte) error
- func (m *MockSqlDBHandle) Dump(dumpDir, fileNamePre string) (string, error)
- func (m *MockSqlDBHandle) EXPECT() *MockSqlDBHandleMockRecorder
- func (m *MockSqlDBHandle) ExecSql(sql string, values ...interface{}) (int64, error)
- func (m *MockSqlDBHandle) Get(key []byte) ([]byte, error)
- func (m *MockSqlDBHandle) GetDbTransaction(txName string) (protocol.SqlDBTransaction, error)
- func (m *MockSqlDBHandle) GetDbType() string
- func (m *MockSqlDBHandle) GetKeys(keys [][]byte) ([][]byte, error)
- func (m *MockSqlDBHandle) GetSqlDbType() string
- func (m *MockSqlDBHandle) GetWriteBatchSize() uint64
- func (m *MockSqlDBHandle) Has(key []byte) (bool, error)
- func (m *MockSqlDBHandle) NewIteratorWithPrefix(prefix []byte) (protocol.Iterator, error)
- func (m *MockSqlDBHandle) NewIteratorWithRange(start, limit []byte) (protocol.Iterator, error)
- func (m *MockSqlDBHandle) Put(key, value []byte) error
- func (m *MockSqlDBHandle) QueryMulti(sql string, values ...interface{}) (protocol.SqlRows, error)
- func (m *MockSqlDBHandle) QuerySingle(sql string, values ...interface{}) (protocol.SqlRow, error)
- func (m *MockSqlDBHandle) RollbackDbTransaction(txName string) error
- func (m *MockSqlDBHandle) Save(value interface{}) (int64, error)
- func (m *MockSqlDBHandle) WriteBatch(batch protocol.StoreBatcher, sync bool) error
- type MockSqlDBHandleMockRecorder
- func (mr *MockSqlDBHandleMockRecorder) BeginDbTransaction(txName interface{}) *gomock.Call
- func (mr *MockSqlDBHandleMockRecorder) Close() *gomock.Call
- func (mr *MockSqlDBHandleMockRecorder) CommitDbTransaction(txName interface{}) *gomock.Call
- func (mr *MockSqlDBHandleMockRecorder) CompactRange(start, limit interface{}) *gomock.Call
- func (mr *MockSqlDBHandleMockRecorder) CreateDatabaseIfNotExist(dbName interface{}) *gomock.Call
- func (mr *MockSqlDBHandleMockRecorder) CreateTableIfNotExist(obj interface{}) *gomock.Call
- func (mr *MockSqlDBHandleMockRecorder) Delete(key interface{}) *gomock.Call
- func (mr *MockSqlDBHandleMockRecorder) Dump(dumpDir, fileNamePre interface{}) *gomock.Call
- func (mr *MockSqlDBHandleMockRecorder) ExecSql(sql interface{}, values ...interface{}) *gomock.Call
- func (mr *MockSqlDBHandleMockRecorder) Get(key interface{}) *gomock.Call
- func (mr *MockSqlDBHandleMockRecorder) GetDbTransaction(txName interface{}) *gomock.Call
- func (mr *MockSqlDBHandleMockRecorder) GetDbType() *gomock.Call
- func (mr *MockSqlDBHandleMockRecorder) GetKeys(keys interface{}) *gomock.Call
- func (mr *MockSqlDBHandleMockRecorder) GetSqlDbType() *gomock.Call
- func (mr *MockSqlDBHandleMockRecorder) GetWriteBatchSize() *gomock.Call
- func (mr *MockSqlDBHandleMockRecorder) Has(key interface{}) *gomock.Call
- func (mr *MockSqlDBHandleMockRecorder) NewIteratorWithPrefix(prefix interface{}) *gomock.Call
- func (mr *MockSqlDBHandleMockRecorder) NewIteratorWithRange(start, limit interface{}) *gomock.Call
- func (mr *MockSqlDBHandleMockRecorder) Put(key, value interface{}) *gomock.Call
- func (mr *MockSqlDBHandleMockRecorder) QueryMulti(sql interface{}, values ...interface{}) *gomock.Call
- func (mr *MockSqlDBHandleMockRecorder) QuerySingle(sql interface{}, values ...interface{}) *gomock.Call
- func (mr *MockSqlDBHandleMockRecorder) RollbackDbTransaction(txName interface{}) *gomock.Call
- func (mr *MockSqlDBHandleMockRecorder) Save(value interface{}) *gomock.Call
- func (mr *MockSqlDBHandleMockRecorder) WriteBatch(batch, sync interface{}) *gomock.Call
- type MockSqlDBTransaction
- func (m *MockSqlDBTransaction) BeginDbSavePoint(savePointName string) error
- func (m *MockSqlDBTransaction) ChangeContextDb(dbName string) error
- func (m *MockSqlDBTransaction) EXPECT() *MockSqlDBTransactionMockRecorder
- func (m *MockSqlDBTransaction) ExecSql(sql string, values ...interface{}) (int64, error)
- func (m *MockSqlDBTransaction) QueryMulti(sql string, values ...interface{}) (protocol.SqlRows, error)
- func (m *MockSqlDBTransaction) QuerySingle(sql string, values ...interface{}) (protocol.SqlRow, error)
- func (m *MockSqlDBTransaction) RollbackDbSavePoint(savePointName string) error
- func (m *MockSqlDBTransaction) Save(value interface{}) (int64, error)
- func (m *MockSqlDBTransaction) SaveBatch(values []interface{}) (int64, error)
- type MockSqlDBTransactionMockRecorder
- func (mr *MockSqlDBTransactionMockRecorder) BeginDbSavePoint(savePointName interface{}) *gomock.Call
- func (mr *MockSqlDBTransactionMockRecorder) ChangeContextDb(dbName interface{}) *gomock.Call
- func (mr *MockSqlDBTransactionMockRecorder) ExecSql(sql interface{}, values ...interface{}) *gomock.Call
- func (mr *MockSqlDBTransactionMockRecorder) QueryMulti(sql interface{}, values ...interface{}) *gomock.Call
- func (mr *MockSqlDBTransactionMockRecorder) QuerySingle(sql interface{}, values ...interface{}) *gomock.Call
- func (mr *MockSqlDBTransactionMockRecorder) RollbackDbSavePoint(savePointName interface{}) *gomock.Call
- func (mr *MockSqlDBTransactionMockRecorder) Save(value interface{}) *gomock.Call
- func (mr *MockSqlDBTransactionMockRecorder) SaveBatch(values interface{}) *gomock.Call
- type MockSqlRow
- type MockSqlRowMockRecorder
- type MockSqlRows
- type MockSqlRowsMockRecorder
- type MockSqlVerifier
- type MockSqlVerifierMockRecorder
- type MockStateIterator
- type MockStateIteratorMockRecorder
- type MockStateSqlOperation
- func (m *MockStateSqlOperation) BeginDbTransaction(txName string) (protocol.SqlDBTransaction, error)
- func (m *MockStateSqlOperation) CommitDbTransaction(txName string) error
- func (m *MockStateSqlOperation) CreateDatabase(contractName string) error
- func (m *MockStateSqlOperation) DropDatabase(contractName string) error
- func (m *MockStateSqlOperation) EXPECT() *MockStateSqlOperationMockRecorder
- func (m *MockStateSqlOperation) ExecDdlSql(contractName, sql, version string) error
- func (m *MockStateSqlOperation) GetContractDbName(contractName string) string
- func (m *MockStateSqlOperation) GetDbTransaction(txName string) (protocol.SqlDBTransaction, error)
- func (m *MockStateSqlOperation) QueryMulti(contractName, sql string, values ...interface{}) (protocol.SqlRows, error)
- func (m *MockStateSqlOperation) QuerySingle(contractName, sql string, values ...interface{}) (protocol.SqlRow, error)
- func (m *MockStateSqlOperation) RollbackDbTransaction(txName string) error
- type MockStateSqlOperationMockRecorder
- func (mr *MockStateSqlOperationMockRecorder) BeginDbTransaction(txName interface{}) *gomock.Call
- func (mr *MockStateSqlOperationMockRecorder) CommitDbTransaction(txName interface{}) *gomock.Call
- func (mr *MockStateSqlOperationMockRecorder) CreateDatabase(contractName interface{}) *gomock.Call
- func (mr *MockStateSqlOperationMockRecorder) DropDatabase(contractName interface{}) *gomock.Call
- func (mr *MockStateSqlOperationMockRecorder) ExecDdlSql(contractName, sql, version interface{}) *gomock.Call
- func (mr *MockStateSqlOperationMockRecorder) GetContractDbName(contractName interface{}) *gomock.Call
- func (mr *MockStateSqlOperationMockRecorder) GetDbTransaction(txName interface{}) *gomock.Call
- func (mr *MockStateSqlOperationMockRecorder) QueryMulti(contractName, sql interface{}, values ...interface{}) *gomock.Call
- func (mr *MockStateSqlOperationMockRecorder) QuerySingle(contractName, sql interface{}, values ...interface{}) *gomock.Call
- func (mr *MockStateSqlOperationMockRecorder) RollbackDbTransaction(txName interface{}) *gomock.Call
- type MockStoreBatcher
- func (m *MockStoreBatcher) Delete(key []byte)
- func (m *MockStoreBatcher) EXPECT() *MockStoreBatcherMockRecorder
- func (m *MockStoreBatcher) Get(key []byte) ([]byte, error)
- func (m *MockStoreBatcher) Has(key []byte) bool
- func (m *MockStoreBatcher) KVs() map[string][]byte
- func (m *MockStoreBatcher) Len() int
- func (m *MockStoreBatcher) Merge(batcher protocol.StoreBatcher)
- func (m *MockStoreBatcher) Put(key, value []byte)
- func (m *MockStoreBatcher) Remove(key []byte)
- func (m *MockStoreBatcher) SplitBatch(batchCnt uint64) []protocol.StoreBatcher
- type MockStoreBatcherMockRecorder
- func (mr *MockStoreBatcherMockRecorder) Delete(key interface{}) *gomock.Call
- func (mr *MockStoreBatcherMockRecorder) Get(key interface{}) *gomock.Call
- func (mr *MockStoreBatcherMockRecorder) Has(key interface{}) *gomock.Call
- func (mr *MockStoreBatcherMockRecorder) KVs() *gomock.Call
- func (mr *MockStoreBatcherMockRecorder) Len() *gomock.Call
- func (mr *MockStoreBatcherMockRecorder) Merge(batcher interface{}) *gomock.Call
- func (mr *MockStoreBatcherMockRecorder) Put(key, value interface{}) *gomock.Call
- func (mr *MockStoreBatcherMockRecorder) Remove(key interface{}) *gomock.Call
- func (mr *MockStoreBatcherMockRecorder) SplitBatch(batchCnt interface{}) *gomock.Call
- type MockStoreHelper
- type MockStoreHelperMockRecorder
- type MockSyncService
- type MockSyncServiceMockRecorder
- func (mr *MockSyncServiceMockRecorder) ListenSyncToIdealHeight() *gomock.Call
- func (mr *MockSyncServiceMockRecorder) Start() *gomock.Call
- func (mr *MockSyncServiceMockRecorder) StartBlockSync() *gomock.Call
- func (mr *MockSyncServiceMockRecorder) Stop() *gomock.Call
- func (mr *MockSyncServiceMockRecorder) StopBlockSync() *gomock.Call
- type MockSysContractQuery
- type MockSysContractQueryMockRecorder
- type MockTxFilter
- func (m *MockTxFilter) Add(txId string) error
- func (m *MockTxFilter) Adds(txIds []string) error
- func (m *MockTxFilter) AddsAndSetHeight(txId []string, height uint64) error
- func (m *MockTxFilter) Close()
- func (m *MockTxFilter) EXPECT() *MockTxFilterMockRecorder
- func (m *MockTxFilter) GetHeight() uint64
- func (m *MockTxFilter) IsExists(txId string, ruleType ...common.RuleType) (bool, *txfilter.Stat, error)
- func (m *MockTxFilter) IsExistsAndReturnHeight(txId string, ruleType ...common.RuleType) (bool, uint64, *txfilter.Stat, error)
- func (m *MockTxFilter) SetHeight(height uint64)
- func (m *MockTxFilter) ValidateRule(txId string, ruleType ...common.RuleType) error
- type MockTxFilterMockRecorder
- func (mr *MockTxFilterMockRecorder) Add(txId interface{}) *gomock.Call
- func (mr *MockTxFilterMockRecorder) Adds(txIds interface{}) *gomock.Call
- func (mr *MockTxFilterMockRecorder) AddsAndSetHeight(txId, height interface{}) *gomock.Call
- func (mr *MockTxFilterMockRecorder) Close() *gomock.Call
- func (mr *MockTxFilterMockRecorder) GetHeight() *gomock.Call
- func (mr *MockTxFilterMockRecorder) IsExists(txId interface{}, ruleType ...interface{}) *gomock.Call
- func (mr *MockTxFilterMockRecorder) IsExistsAndReturnHeight(txId interface{}, ruleType ...interface{}) *gomock.Call
- func (mr *MockTxFilterMockRecorder) SetHeight(height interface{}) *gomock.Call
- func (mr *MockTxFilterMockRecorder) ValidateRule(txId interface{}, ruleType ...interface{}) *gomock.Call
- type MockTxHistoryIterator
- type MockTxHistoryIteratorMockRecorder
- type MockTxPool
- func (m *MockTxPool) AddTx(tx *common.Transaction, source protocol.TxSource) error
- func (m *MockTxPool) AddTxBatchesToPendingCache(batchIds []string, blockHeight uint64)
- func (m *MockTxPool) AddTxsToPendingCache(txs []*common.Transaction, blockHeight uint64)
- func (m *MockTxPool) EXPECT() *MockTxPoolMockRecorder
- func (m *MockTxPool) FetchTxBatches(blockHeight uint64) ([]string, [][]*common.Transaction)
- func (m *MockTxPool) FetchTxs(blockHeight uint64) []*common.Transaction
- func (m *MockTxPool) GetAllTxsByBatchIds(batchIds []string, proposerId string, height uint64, timeoutMs int) ([][]*common.Transaction, error)
- func (m *MockTxPool) GetAllTxsByTxIds(txIds []string, proposerId string, height uint64, timeoutMs int) (map[string]*common.Transaction, error)
- func (m *MockTxPool) GetPoolStatus() *txpool.TxPoolStatus
- func (m *MockTxPool) GetTxIdsByTypeAndStage(txType, txStage int32) []string
- func (m *MockTxPool) GetTxStatus(txId string) txpool.TxStatus
- func (m *MockTxPool) GetTxsByTxIds(txIds []string) (map[string]*common.Transaction, map[string]struct{})
- func (m *MockTxPool) GetTxsInPoolByTxIds(txIds []string) ([]*common.Transaction, []string, error)
- func (m *MockTxPool) ReGenTxBatchesWithRemoveTxs(blockHeight uint64, batchIds []string, removeTxs []*common.Transaction, ...) ([]string, [][]*common.Transaction)
- func (m *MockTxPool) ReGenTxBatchesWithRetryTxs(blockHeight uint64, batchIds []string, retryTxs []*common.Transaction) ([]string, [][]*common.Transaction)
- func (m *MockTxPool) RemoveTxBatches(removeBatchIds []string, removeRES protocol.RemoveRES)
- func (m *MockTxPool) RemoveTxs(removeTxs []*common.Transaction, removeRES protocol.RemoveRES)
- func (m *MockTxPool) RemoveTxsInTxBatches(batchIds []string, removeTxs []*common.Transaction, ...)
- func (m *MockTxPool) RetryTxBatches(retryBatchIds []string)
- func (m *MockTxPool) RetryTxs(retryTxs []*common.Transaction)
- func (m *MockTxPool) Start() error
- func (m *MockTxPool) Stop() error
- func (m *MockTxPool) TxExists(tx *common.Transaction) bool
- type MockTxPoolMockRecorder
- func (mr *MockTxPoolMockRecorder) AddTx(tx, source interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) AddTxBatchesToPendingCache(batchIds, blockHeight interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) AddTxsToPendingCache(txs, blockHeight interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) FetchTxBatches(blockHeight interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) FetchTxs(blockHeight interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) GetAllTxsByBatchIds(batchIds, proposerId, height, timeoutMs interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) GetAllTxsByTxIds(txIds, proposerId, height, timeoutMs interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) GetPoolStatus() *gomock.Call
- func (mr *MockTxPoolMockRecorder) GetTxIdsByTypeAndStage(txType, txStage interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) GetTxStatus(txId interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) GetTxsByTxIds(txIds interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) GetTxsInPoolByTxIds(txIds interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) ReGenTxBatchesWithRemoveTxs(blockHeight, batchIds, removeTxs, removeRES interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) ReGenTxBatchesWithRetryTxs(blockHeight, batchIds, retryTxs interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) RemoveTxBatches(removeBatchIds, removeRES interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) RemoveTxs(removeTxs, removeRES interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) RemoveTxsInTxBatches(batchIds, removeTxs, removeRES interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) RetryTxBatches(retryBatchIds interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) RetryTxs(retryTxs interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) Start() *gomock.Call
- func (mr *MockTxPoolMockRecorder) Stop() *gomock.Call
- func (mr *MockTxPoolMockRecorder) TxExists(tx interface{}) *gomock.Call
- type MockTxScheduler
- func (m *MockTxScheduler) EXPECT() *MockTxSchedulerMockRecorder
- func (m *MockTxScheduler) Halt()
- func (m *MockTxScheduler) Schedule(block *common.Block, txBatch []*common.Transaction, snapshot protocol.Snapshot) (map[string]*common.TxRWSet, map[string][]*common.ContractEvent, error)
- func (m *MockTxScheduler) SimulateWithDag(block *common.Block, snapshot protocol.Snapshot) (map[string]*common.TxRWSet, map[string]*common.Result, error)
- type MockTxSchedulerMockRecorder
- type MockTxSimContext
- func (m *MockTxSimContext) CallContract(caller, contract *common.Contract, method string, byteCode []byte, ...) (*common.ContractResult, protocol.ExecOrderTxType, common.TxStatusCode)
- func (m *MockTxSimContext) Del(name string, key []byte) error
- func (m *MockTxSimContext) EXPECT() *MockTxSimContextMockRecorder
- func (m *MockTxSimContext) Get(contractName string, key []byte) ([]byte, error)
- func (m *MockTxSimContext) GetAccessControl() (protocol.AccessControlProvider, error)
- func (m *MockTxSimContext) GetBlockFingerprint() string
- func (m *MockTxSimContext) GetBlockHeight() uint64
- func (m *MockTxSimContext) GetBlockProposer() *accesscontrol.Member
- func (m *MockTxSimContext) GetBlockTimestamp() int64
- func (m *MockTxSimContext) GetBlockVersion() uint32
- func (m *MockTxSimContext) GetBlockchainStore() protocol.BlockchainStore
- func (m *MockTxSimContext) GetChainNodesInfoProvider() (protocol.ChainNodesInfoProvider, error)
- func (m *MockTxSimContext) GetConsensusStateWrapper() protocol.ConsensusStateWrapper
- func (m *MockTxSimContext) GetContractByName(name string) (*common.Contract, error)
- func (m *MockTxSimContext) GetContractBytecode(name string) ([]byte, error)
- func (m *MockTxSimContext) GetCreator(namespace string) *accesscontrol.Member
- func (m *MockTxSimContext) GetCrossInfo() uint64
- func (m *MockTxSimContext) GetCurrentResult() []byte
- func (m *MockTxSimContext) GetDepth() int
- func (m *MockTxSimContext) GetGasRemaining() uint64
- func (m *MockTxSimContext) GetHistoryIterForKey(contractName string, key []byte) (protocol.KeyHistoryIterator, error)
- func (m *MockTxSimContext) GetIterHandle(index int32) (interface{}, bool)
- func (m *MockTxSimContext) GetKeys(keys []*vm.BatchKey) ([]*vm.BatchKey, error)
- func (m *MockTxSimContext) GetLastChainConfig() *config.ChainConfig
- func (m *MockTxSimContext) GetNoRecord(contractName string, key []byte) ([]byte, error)
- func (m *MockTxSimContext) GetSender() *accesscontrol.Member
- func (m *MockTxSimContext) GetSnapshot() protocol.Snapshot
- func (m *MockTxSimContext) GetStrAddrFromPbMember(pbMember *accesscontrol.Member) (string, error)
- func (m *MockTxSimContext) GetTx() *common.Transaction
- func (m *MockTxSimContext) GetTxExecSeq() int
- func (m *MockTxSimContext) GetTxRWMapByContractName(contractName string) (map[string]*common.TxRead, map[string]*common.TxWrite)
- func (m *MockTxSimContext) GetTxRWSet(runVmSuccess bool) *common.TxRWSet
- func (m *MockTxSimContext) GetTxResult() *common.Result
- func (m *MockTxSimContext) HasUsed(runtimeType common.RuntimeType) bool
- func (m *MockTxSimContext) Put(name string, key, value []byte) error
- func (m *MockTxSimContext) PutIntoReadSet(contractName string, key, value []byte)
- func (m *MockTxSimContext) PutRecord(contractName string, value []byte, sqlType protocol.SqlType)
- func (m *MockTxSimContext) RecordRuntimeTypeIntoCrossInfo(runtimeType common.RuntimeType)
- func (m *MockTxSimContext) RemoveRuntimeTypeFromCrossInfo()
- func (m *MockTxSimContext) Select(name string, startKey, limit []byte) (protocol.StateIterator, error)
- func (m *MockTxSimContext) SetIterHandle(index int32, iter interface{})
- func (m *MockTxSimContext) SetTxExecSeq(arg0 int)
- func (m *MockTxSimContext) SetTxResult(arg0 *common.Result)
- func (m *MockTxSimContext) SubtractGas(gasUsed uint64) error
- type MockTxSimContextMockRecorder
- func (mr *MockTxSimContextMockRecorder) CallContract(caller, contract, method, byteCode, parameter, gasUsed, refTxType interface{}) *gomock.Call
- func (mr *MockTxSimContextMockRecorder) Del(name, key interface{}) *gomock.Call
- func (mr *MockTxSimContextMockRecorder) Get(contractName, key interface{}) *gomock.Call
- func (mr *MockTxSimContextMockRecorder) GetAccessControl() *gomock.Call
- func (mr *MockTxSimContextMockRecorder) GetBlockFingerprint() *gomock.Call
- func (mr *MockTxSimContextMockRecorder) GetBlockHeight() *gomock.Call
- func (mr *MockTxSimContextMockRecorder) GetBlockProposer() *gomock.Call
- func (mr *MockTxSimContextMockRecorder) GetBlockTimestamp() *gomock.Call
- func (mr *MockTxSimContextMockRecorder) GetBlockVersion() *gomock.Call
- func (mr *MockTxSimContextMockRecorder) GetBlockchainStore() *gomock.Call
- func (mr *MockTxSimContextMockRecorder) GetChainNodesInfoProvider() *gomock.Call
- func (mr *MockTxSimContextMockRecorder) GetConsensusStateWrapper() *gomock.Call
- func (mr *MockTxSimContextMockRecorder) GetContractByName(name interface{}) *gomock.Call
- func (mr *MockTxSimContextMockRecorder) GetContractBytecode(name interface{}) *gomock.Call
- func (mr *MockTxSimContextMockRecorder) GetCreator(namespace interface{}) *gomock.Call
- func (mr *MockTxSimContextMockRecorder) GetCrossInfo() *gomock.Call
- func (mr *MockTxSimContextMockRecorder) GetCurrentResult() *gomock.Call
- func (mr *MockTxSimContextMockRecorder) GetDepth() *gomock.Call
- func (mr *MockTxSimContextMockRecorder) GetGasRemaining() *gomock.Call
- func (mr *MockTxSimContextMockRecorder) GetHistoryIterForKey(contractName, key interface{}) *gomock.Call
- func (mr *MockTxSimContextMockRecorder) GetIterHandle(index interface{}) *gomock.Call
- func (mr *MockTxSimContextMockRecorder) GetKeys(keys interface{}) *gomock.Call
- func (mr *MockTxSimContextMockRecorder) GetLastChainConfig() *gomock.Call
- func (mr *MockTxSimContextMockRecorder) GetNoRecord(contractName, key interface{}) *gomock.Call
- func (mr *MockTxSimContextMockRecorder) GetSender() *gomock.Call
- func (mr *MockTxSimContextMockRecorder) GetSnapshot() *gomock.Call
- func (mr *MockTxSimContextMockRecorder) GetStrAddrFromPbMember(pbMember interface{}) *gomock.Call
- func (mr *MockTxSimContextMockRecorder) GetTx() *gomock.Call
- func (mr *MockTxSimContextMockRecorder) GetTxExecSeq() *gomock.Call
- func (mr *MockTxSimContextMockRecorder) GetTxRWMapByContractName(contractName interface{}) *gomock.Call
- func (mr *MockTxSimContextMockRecorder) GetTxRWSet(runVmSuccess interface{}) *gomock.Call
- func (mr *MockTxSimContextMockRecorder) GetTxResult() *gomock.Call
- func (mr *MockTxSimContextMockRecorder) HasUsed(runtimeType interface{}) *gomock.Call
- func (mr *MockTxSimContextMockRecorder) Put(name, key, value interface{}) *gomock.Call
- func (mr *MockTxSimContextMockRecorder) PutIntoReadSet(contractName, key, value interface{}) *gomock.Call
- func (mr *MockTxSimContextMockRecorder) PutRecord(contractName, value, sqlType interface{}) *gomock.Call
- func (mr *MockTxSimContextMockRecorder) RecordRuntimeTypeIntoCrossInfo(runtimeType interface{}) *gomock.Call
- func (mr *MockTxSimContextMockRecorder) RemoveRuntimeTypeFromCrossInfo() *gomock.Call
- func (mr *MockTxSimContextMockRecorder) Select(name, startKey, limit interface{}) *gomock.Call
- func (mr *MockTxSimContextMockRecorder) SetIterHandle(index, iter interface{}) *gomock.Call
- func (mr *MockTxSimContextMockRecorder) SetTxExecSeq(arg0 interface{}) *gomock.Call
- func (mr *MockTxSimContextMockRecorder) SetTxResult(arg0 interface{}) *gomock.Call
- func (mr *MockTxSimContextMockRecorder) SubtractGas(gasUsed interface{}) *gomock.Call
- type MockVerifier
- type MockVerifierMockRecorder
- type MockVmInstancesManager
- func (m *MockVmInstancesManager) AfterSchedule(blockFingerprint string, blockHeight uint64)
- func (m *MockVmInstancesManager) BeforeSchedule(blockFingerprint string, blockHeight uint64)
- func (m *MockVmInstancesManager) EXPECT() *MockVmInstancesManagerMockRecorder
- func (m *MockVmInstancesManager) NewRuntimeInstance(txSimContext protocol.TxSimContext, chainId, method, codePath string, ...) (protocol.RuntimeInstance, error)
- func (m *MockVmInstancesManager) StartVM() error
- func (m *MockVmInstancesManager) StopVM() error
- type MockVmInstancesManagerMockRecorder
- func (mr *MockVmInstancesManagerMockRecorder) AfterSchedule(blockFingerprint, blockHeight interface{}) *gomock.Call
- func (mr *MockVmInstancesManagerMockRecorder) BeforeSchedule(blockFingerprint, blockHeight interface{}) *gomock.Call
- func (mr *MockVmInstancesManagerMockRecorder) NewRuntimeInstance(txSimContext, chainId, method, codePath, contract, byteCode, log interface{}) *gomock.Call
- func (mr *MockVmInstancesManagerMockRecorder) StartVM() *gomock.Call
- func (mr *MockVmInstancesManagerMockRecorder) StopVM() *gomock.Call
- type MockVmManager
- func (m *MockVmManager) AfterSchedule(blockFingerprint string, blockHeight uint64)
- func (m *MockVmManager) BeforeSchedule(blockFingerprint string, blockHeight uint64)
- func (m *MockVmManager) EXPECT() *MockVmManagerMockRecorder
- func (m *MockVmManager) GetAccessControl() protocol.AccessControlProvider
- func (m *MockVmManager) GetChainNodesInfoProvider() protocol.ChainNodesInfoProvider
- func (m *MockVmManager) GetConsensusStateWrapper() protocol.ConsensusStateWrapper
- func (m *MockVmManager) OnMessage(arg0 *msgbus.Message)
- func (m *MockVmManager) OnQuit()
- func (m *MockVmManager) RunContract(contract *common.Contract, method string, byteCode []byte, ...) (*common.ContractResult, protocol.ExecOrderTxType, common.TxStatusCode)
- func (m *MockVmManager) Start() error
- func (m *MockVmManager) Stop() error
- type MockVmManagerMockRecorder
- func (mr *MockVmManagerMockRecorder) AfterSchedule(blockFingerprint, blockHeight interface{}) *gomock.Call
- func (mr *MockVmManagerMockRecorder) BeforeSchedule(blockFingerprint, blockHeight interface{}) *gomock.Call
- func (mr *MockVmManagerMockRecorder) GetAccessControl() *gomock.Call
- func (mr *MockVmManagerMockRecorder) GetChainNodesInfoProvider() *gomock.Call
- func (mr *MockVmManagerMockRecorder) GetConsensusStateWrapper() *gomock.Call
- func (mr *MockVmManagerMockRecorder) OnMessage(arg0 interface{}) *gomock.Call
- func (mr *MockVmManagerMockRecorder) OnQuit() *gomock.Call
- func (mr *MockVmManagerMockRecorder) RunContract(...) *gomock.Call
- func (mr *MockVmManagerMockRecorder) Start() *gomock.Call
- func (mr *MockVmManagerMockRecorder) Stop() *gomock.Call
- type MockVmWatcher
- type MockVmWatcherMockRecorder
- type MockWacsi
- func (m *MockWacsi) BulletProofsOperation(requestBody, memory, data []byte, isLen bool) ([]byte, error)
- func (m *MockWacsi) CallContract(caller *common.Contract, requestBody []byte, ...) (*common.ContractResult, uint64, protocol.ExecOrderTxType, error)
- func (m *MockWacsi) DeleteState(requestBody []byte, contractName string, txSimContext protocol.TxSimContext) error
- func (m *MockWacsi) EXPECT() *MockWacsiMockRecorder
- func (m *MockWacsi) EmitEvent(requestBody []byte, txSimContext protocol.TxSimContext, ...) (*common.ContractEvent, error)
- func (m *MockWacsi) ErrorResult(contractResult *common.ContractResult, data []byte) int32
- func (m *MockWacsi) ExecuteDDL(requestBody []byte, contractName string, txSimContext protocol.TxSimContext, ...) error
- func (m *MockWacsi) ExecuteQuery(requestBody []byte, contractName string, txSimContext protocol.TxSimContext, ...) error
- func (m *MockWacsi) ExecuteQueryOne(requestBody []byte, contractName string, txSimContext protocol.TxSimContext, ...) ([]byte, error)
- func (m *MockWacsi) ExecuteUpdate(requestBody []byte, contractName, method string, ...) error
- func (m *MockWacsi) GetState(requestBody []byte, contractName string, txSimContext protocol.TxSimContext, ...) ([]byte, error)
- func (m *MockWacsi) KvIterator(requestBody []byte, contractName string, txSimContext protocol.TxSimContext, ...) error
- func (m *MockWacsi) KvIteratorClose(requestBody []byte, contractName string, txSimContext protocol.TxSimContext, ...) error
- func (m *MockWacsi) KvIteratorHasNext(requestBody []byte, txSimContext protocol.TxSimContext, memory []byte) error
- func (m *MockWacsi) KvIteratorNext(requestBody []byte, txSimContext protocol.TxSimContext, memory, data []byte, ...) ([]byte, error)
- func (m *MockWacsi) KvPreIterator(requestBody []byte, contractName string, txSimContext protocol.TxSimContext, ...) error
- func (m *MockWacsi) PaillierOperation(requestBody, memory, data []byte, isLen bool) ([]byte, error)
- func (m *MockWacsi) PutState(requestBody []byte, contractName string, txSimContext protocol.TxSimContext) error
- func (m *MockWacsi) RSClose(requestBody []byte, txSimContext protocol.TxSimContext, memory []byte) error
- func (m *MockWacsi) RSHasNext(requestBody []byte, txSimContext protocol.TxSimContext, memory []byte) error
- func (m *MockWacsi) RSNext(requestBody []byte, txSimContext protocol.TxSimContext, memory, data []byte, ...) ([]byte, error)
- func (m *MockWacsi) SuccessResult(contractResult *common.ContractResult, data []byte) int32
- type MockWacsiMockRecorder
- func (mr *MockWacsiMockRecorder) BulletProofsOperation(requestBody, memory, data, isLen interface{}) *gomock.Call
- func (mr *MockWacsiMockRecorder) CallContract(caller, requestBody, txSimContext, memory, data, gasUsed, isLen interface{}) *gomock.Call
- func (mr *MockWacsiMockRecorder) DeleteState(requestBody, contractName, txSimContext interface{}) *gomock.Call
- func (mr *MockWacsiMockRecorder) EmitEvent(requestBody, txSimContext, contractId, log interface{}) *gomock.Call
- func (mr *MockWacsiMockRecorder) ErrorResult(contractResult, data interface{}) *gomock.Call
- func (mr *MockWacsiMockRecorder) ExecuteDDL(requestBody, contractName, txSimContext, memory, method interface{}) *gomock.Call
- func (mr *MockWacsiMockRecorder) ExecuteQuery(requestBody, contractName, txSimContext, memory, chainId interface{}) *gomock.Call
- func (mr *MockWacsiMockRecorder) ExecuteQueryOne(...) *gomock.Call
- func (mr *MockWacsiMockRecorder) ExecuteUpdate(requestBody, contractName, method, txSimContext, memory, chainId interface{}) *gomock.Call
- func (mr *MockWacsiMockRecorder) GetState(requestBody, contractName, txSimContext, memory, data, isLen interface{}) *gomock.Call
- func (mr *MockWacsiMockRecorder) KvIterator(requestBody, contractName, txSimContext, memory interface{}) *gomock.Call
- func (mr *MockWacsiMockRecorder) KvIteratorClose(requestBody, contractName, txSimContext, memory interface{}) *gomock.Call
- func (mr *MockWacsiMockRecorder) KvIteratorHasNext(requestBody, txSimContext, memory interface{}) *gomock.Call
- func (mr *MockWacsiMockRecorder) KvIteratorNext(requestBody, txSimContext, memory, data, contractName, isLen interface{}) *gomock.Call
- func (mr *MockWacsiMockRecorder) KvPreIterator(requestBody, contractName, txSimContext, memory interface{}) *gomock.Call
- func (mr *MockWacsiMockRecorder) PaillierOperation(requestBody, memory, data, isLen interface{}) *gomock.Call
- func (mr *MockWacsiMockRecorder) PutState(requestBody, contractName, txSimContext interface{}) *gomock.Call
- func (mr *MockWacsiMockRecorder) RSClose(requestBody, txSimContext, memory interface{}) *gomock.Call
- func (mr *MockWacsiMockRecorder) RSHasNext(requestBody, txSimContext, memory interface{}) *gomock.Call
- func (mr *MockWacsiMockRecorder) RSNext(requestBody, txSimContext, memory, data, isLen interface{}) *gomock.Call
- func (mr *MockWacsiMockRecorder) SuccessResult(contractResult, data interface{}) *gomock.Call
- type MockWacsiWithGas
- func (m *MockWacsiWithGas) BulletProofsOperation(requestBody []byte, txSimContext protocol.TxSimContext, memory, data []byte, ...) ([]byte, error)
- func (m *MockWacsiWithGas) CallContract(caller *common.Contract, requestBody []byte, ...) (*common.ContractResult, uint64, protocol.ExecOrderTxType, error)
- func (m *MockWacsiWithGas) DeleteState(requestBody []byte, contractName string, txSimContext protocol.TxSimContext) error
- func (m *MockWacsiWithGas) EXPECT() *MockWacsiWithGasMockRecorder
- func (m *MockWacsiWithGas) EmitEvent(requestBody []byte, txSimContext protocol.TxSimContext, ...) (*common.ContractEvent, error)
- func (m *MockWacsiWithGas) ErrorResult(contractResult *common.ContractResult, txSimContext protocol.TxSimContext, ...) int32
- func (m *MockWacsiWithGas) ExecuteDDL(requestBody []byte, contractName string, txSimContext protocol.TxSimContext, ...) error
- func (m *MockWacsiWithGas) ExecuteQuery(requestBody []byte, contractName string, txSimContext protocol.TxSimContext, ...) error
- func (m *MockWacsiWithGas) ExecuteQueryOne(requestBody []byte, contractName string, txSimContext protocol.TxSimContext, ...) ([]byte, error)
- func (m *MockWacsiWithGas) ExecuteUpdate(requestBody []byte, contractName, method string, ...) error
- func (m *MockWacsiWithGas) GetState(requestBody []byte, contractName string, txSimContext protocol.TxSimContext, ...) ([]byte, error)
- func (m *MockWacsiWithGas) KvIterator(requestBody []byte, contractName string, txSimContext protocol.TxSimContext, ...) error
- func (m *MockWacsiWithGas) KvIteratorClose(requestBody []byte, contractName string, txSimContext protocol.TxSimContext, ...) error
- func (m *MockWacsiWithGas) KvIteratorHasNext(requestBody []byte, txSimContext protocol.TxSimContext, memory []byte) error
- func (m *MockWacsiWithGas) KvIteratorNext(requestBody []byte, txSimContext protocol.TxSimContext, memory, data []byte, ...) ([]byte, error)
- func (m *MockWacsiWithGas) KvPreIterator(requestBody []byte, contractName string, txSimContext protocol.TxSimContext, ...) error
- func (m *MockWacsiWithGas) LogMessage(requestBody []byte, txSimContext protocol.TxSimContext) int32
- func (m *MockWacsiWithGas) PaillierOperation(requestBody []byte, txSimContext protocol.TxSimContext, memory, data []byte, ...) ([]byte, error)
- func (m *MockWacsiWithGas) PutState(requestBody []byte, contractName string, txSimContext protocol.TxSimContext) error
- func (m *MockWacsiWithGas) RSClose(requestBody []byte, txSimContext protocol.TxSimContext, memory []byte) error
- func (m *MockWacsiWithGas) RSHasNext(requestBody []byte, txSimContext protocol.TxSimContext, memory []byte) error
- func (m *MockWacsiWithGas) RSNext(requestBody []byte, txSimContext protocol.TxSimContext, memory, data []byte, ...) ([]byte, error)
- func (m *MockWacsiWithGas) SuccessResult(contractResult *common.ContractResult, txSimContext protocol.TxSimContext, ...) int32
- type MockWacsiWithGasMockRecorder
- func (mr *MockWacsiWithGasMockRecorder) BulletProofsOperation(requestBody, txSimContext, memory, data, isLen interface{}) *gomock.Call
- func (mr *MockWacsiWithGasMockRecorder) CallContract(caller, requestBody, txSimContext, memory, data, gasUsed, isLen interface{}) *gomock.Call
- func (mr *MockWacsiWithGasMockRecorder) DeleteState(requestBody, contractName, txSimContext interface{}) *gomock.Call
- func (mr *MockWacsiWithGasMockRecorder) EmitEvent(requestBody, txSimContext, contractId, log interface{}) *gomock.Call
- func (mr *MockWacsiWithGasMockRecorder) ErrorResult(contractResult, txSimContext, data interface{}) *gomock.Call
- func (mr *MockWacsiWithGasMockRecorder) ExecuteDDL(requestBody, contractName, txSimContext, memory, method interface{}) *gomock.Call
- func (mr *MockWacsiWithGasMockRecorder) ExecuteQuery(requestBody, contractName, txSimContext, memory, chainId interface{}) *gomock.Call
- func (mr *MockWacsiWithGasMockRecorder) ExecuteQueryOne(...) *gomock.Call
- func (mr *MockWacsiWithGasMockRecorder) ExecuteUpdate(requestBody, contractName, method, txSimContext, memory, chainId interface{}) *gomock.Call
- func (mr *MockWacsiWithGasMockRecorder) GetState(requestBody, contractName, txSimContext, memory, data, isLen interface{}) *gomock.Call
- func (mr *MockWacsiWithGasMockRecorder) KvIterator(requestBody, contractName, txSimContext, memory interface{}) *gomock.Call
- func (mr *MockWacsiWithGasMockRecorder) KvIteratorClose(requestBody, contractName, txSimContext, memory interface{}) *gomock.Call
- func (mr *MockWacsiWithGasMockRecorder) KvIteratorHasNext(requestBody, txSimContext, memory interface{}) *gomock.Call
- func (mr *MockWacsiWithGasMockRecorder) KvIteratorNext(requestBody, txSimContext, memory, data, contractName, isLen interface{}) *gomock.Call
- func (mr *MockWacsiWithGasMockRecorder) KvPreIterator(requestBody, contractName, txSimContext, memory interface{}) *gomock.Call
- func (mr *MockWacsiWithGasMockRecorder) LogMessage(requestBody, txSimContext interface{}) *gomock.Call
- func (mr *MockWacsiWithGasMockRecorder) PaillierOperation(requestBody, txSimContext, memory, data, isLen interface{}) *gomock.Call
- func (mr *MockWacsiWithGasMockRecorder) PutState(requestBody, contractName, txSimContext interface{}) *gomock.Call
- func (mr *MockWacsiWithGasMockRecorder) RSClose(requestBody, txSimContext, memory interface{}) *gomock.Call
- func (mr *MockWacsiWithGasMockRecorder) RSHasNext(requestBody, txSimContext, memory interface{}) *gomock.Call
- func (mr *MockWacsiWithGasMockRecorder) RSNext(requestBody, txSimContext, memory, data, isLen interface{}) *gomock.Call
- func (mr *MockWacsiWithGasMockRecorder) SuccessResult(contractResult, txSimContext, data interface{}) *gomock.Call
- type MockWatcher
- type MockWatcherMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAccessControlProvider ¶
type MockAccessControlProvider struct {
// contains filtered or unexported fields
}
MockAccessControlProvider is a mock of AccessControlProvider interface.
func NewMockAccessControlProvider ¶
func NewMockAccessControlProvider(ctrl *gomock.Controller) *MockAccessControlProvider
NewMockAccessControlProvider creates a new mock instance.
func (*MockAccessControlProvider) CreatePrincipal ¶
func (m *MockAccessControlProvider) CreatePrincipal(resourceName string, endorsements []*common.EndorsementEntry, message []byte) (protocol.Principal, error)
CreatePrincipal mocks base method.
func (*MockAccessControlProvider) CreatePrincipalForTargetOrg ¶
func (m *MockAccessControlProvider) CreatePrincipalForTargetOrg(resourceName string, endorsements []*common.EndorsementEntry, message []byte, targetOrgId string) (protocol.Principal, error)
CreatePrincipalForTargetOrg mocks base method.
func (*MockAccessControlProvider) EXPECT ¶
func (m *MockAccessControlProvider) EXPECT() *MockAccessControlProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAccessControlProvider) GetAllPolicy ¶
func (m *MockAccessControlProvider) GetAllPolicy() (map[string]*accesscontrol.Policy, error)
GetAllPolicy mocks base method.
func (*MockAccessControlProvider) GetHashAlg ¶
func (m *MockAccessControlProvider) GetHashAlg() string
GetHashAlg mocks base method.
func (*MockAccessControlProvider) GetMemberStatus ¶
func (m *MockAccessControlProvider) GetMemberStatus(member *accesscontrol.Member) (accesscontrol.MemberStatus, error)
GetMemberStatus mocks base method.
func (*MockAccessControlProvider) GetValidEndorsements ¶
func (m *MockAccessControlProvider) GetValidEndorsements(principal protocol.Principal) ([]*common.EndorsementEntry, error)
GetValidEndorsements mocks base method.
func (*MockAccessControlProvider) LookUpExceptionalPolicy ¶
func (m *MockAccessControlProvider) LookUpExceptionalPolicy(resourceName string) (*accesscontrol.Policy, error)
LookUpExceptionalPolicy mocks base method.
func (*MockAccessControlProvider) LookUpPolicy ¶
func (m *MockAccessControlProvider) LookUpPolicy(resourceName string) (*accesscontrol.Policy, error)
LookUpPolicy mocks base method.
func (*MockAccessControlProvider) NewMember ¶
func (m *MockAccessControlProvider) NewMember(member *accesscontrol.Member) (protocol.Member, error)
NewMember mocks base method.
func (*MockAccessControlProvider) RefineEndorsements ¶ added in v3.0.1
func (m *MockAccessControlProvider) RefineEndorsements(endorsements []*common.EndorsementEntry, msg []byte) []*common.EndorsementEntry
RefineEndorsements mocks base method.
func (*MockAccessControlProvider) ValidateResourcePolicy ¶
func (m *MockAccessControlProvider) ValidateResourcePolicy(resourcePolicy *config.ResourcePolicy) bool
ValidateResourcePolicy mocks base method.
func (*MockAccessControlProvider) VerifyPrincipal ¶
func (m *MockAccessControlProvider) VerifyPrincipal(principal protocol.Principal) (bool, error)
VerifyPrincipal mocks base method.
func (*MockAccessControlProvider) VerifyRelatedMaterial ¶
func (m *MockAccessControlProvider) VerifyRelatedMaterial(verifyType accesscontrol.VerifyType, data []byte) (bool, error)
VerifyRelatedMaterial mocks base method.
type MockAccessControlProviderMockRecorder ¶
type MockAccessControlProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockAccessControlProviderMockRecorder is the mock recorder for MockAccessControlProvider.
func (*MockAccessControlProviderMockRecorder) CreatePrincipal ¶
func (mr *MockAccessControlProviderMockRecorder) CreatePrincipal(resourceName, endorsements, message interface{}) *gomock.Call
CreatePrincipal indicates an expected call of CreatePrincipal.
func (*MockAccessControlProviderMockRecorder) CreatePrincipalForTargetOrg ¶
func (mr *MockAccessControlProviderMockRecorder) CreatePrincipalForTargetOrg(resourceName, endorsements, message, targetOrgId interface{}) *gomock.Call
CreatePrincipalForTargetOrg indicates an expected call of CreatePrincipalForTargetOrg.
func (*MockAccessControlProviderMockRecorder) GetAllPolicy ¶
func (mr *MockAccessControlProviderMockRecorder) GetAllPolicy() *gomock.Call
GetAllPolicy indicates an expected call of GetAllPolicy.
func (*MockAccessControlProviderMockRecorder) GetHashAlg ¶
func (mr *MockAccessControlProviderMockRecorder) GetHashAlg() *gomock.Call
GetHashAlg indicates an expected call of GetHashAlg.
func (*MockAccessControlProviderMockRecorder) GetMemberStatus ¶
func (mr *MockAccessControlProviderMockRecorder) GetMemberStatus(member interface{}) *gomock.Call
GetMemberStatus indicates an expected call of GetMemberStatus.
func (*MockAccessControlProviderMockRecorder) GetValidEndorsements ¶
func (mr *MockAccessControlProviderMockRecorder) GetValidEndorsements(principal interface{}) *gomock.Call
GetValidEndorsements indicates an expected call of GetValidEndorsements.
func (*MockAccessControlProviderMockRecorder) LookUpExceptionalPolicy ¶
func (mr *MockAccessControlProviderMockRecorder) LookUpExceptionalPolicy(resourceName interface{}) *gomock.Call
LookUpExceptionalPolicy indicates an expected call of LookUpExceptionalPolicy.
func (*MockAccessControlProviderMockRecorder) LookUpPolicy ¶
func (mr *MockAccessControlProviderMockRecorder) LookUpPolicy(resourceName interface{}) *gomock.Call
LookUpPolicy indicates an expected call of LookUpPolicy.
func (*MockAccessControlProviderMockRecorder) NewMember ¶
func (mr *MockAccessControlProviderMockRecorder) NewMember(member interface{}) *gomock.Call
NewMember indicates an expected call of NewMember.
func (*MockAccessControlProviderMockRecorder) RefineEndorsements ¶ added in v3.0.1
func (mr *MockAccessControlProviderMockRecorder) RefineEndorsements(endorsements, msg interface{}) *gomock.Call
RefineEndorsements indicates an expected call of RefineEndorsements.
func (*MockAccessControlProviderMockRecorder) ValidateResourcePolicy ¶
func (mr *MockAccessControlProviderMockRecorder) ValidateResourcePolicy(resourcePolicy interface{}) *gomock.Call
ValidateResourcePolicy indicates an expected call of ValidateResourcePolicy.
func (*MockAccessControlProviderMockRecorder) VerifyPrincipal ¶
func (mr *MockAccessControlProviderMockRecorder) VerifyPrincipal(principal interface{}) *gomock.Call
VerifyPrincipal indicates an expected call of VerifyPrincipal.
func (*MockAccessControlProviderMockRecorder) VerifyRelatedMaterial ¶
func (mr *MockAccessControlProviderMockRecorder) VerifyRelatedMaterial(verifyType, data interface{}) *gomock.Call
VerifyRelatedMaterial indicates an expected call of VerifyRelatedMaterial.
type MockBlockCommitter ¶
type MockBlockCommitter struct {
// contains filtered or unexported fields
}
MockBlockCommitter is a mock of BlockCommitter interface.
func NewMockBlockCommitter ¶
func NewMockBlockCommitter(ctrl *gomock.Controller) *MockBlockCommitter
NewMockBlockCommitter creates a new mock instance.
func (*MockBlockCommitter) AddBlock ¶
func (m *MockBlockCommitter) AddBlock(blk *common.Block) error
AddBlock mocks base method.
func (*MockBlockCommitter) EXPECT ¶
func (m *MockBlockCommitter) EXPECT() *MockBlockCommitterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockBlockCommitterMockRecorder ¶
type MockBlockCommitterMockRecorder struct {
// contains filtered or unexported fields
}
MockBlockCommitterMockRecorder is the mock recorder for MockBlockCommitter.
func (*MockBlockCommitterMockRecorder) AddBlock ¶
func (mr *MockBlockCommitterMockRecorder) AddBlock(blk interface{}) *gomock.Call
AddBlock indicates an expected call of AddBlock.
type MockBlockProposer ¶
type MockBlockProposer struct {
// contains filtered or unexported fields
}
MockBlockProposer is a mock of BlockProposer interface.
func NewMockBlockProposer ¶
func NewMockBlockProposer(ctrl *gomock.Controller) *MockBlockProposer
NewMockBlockProposer creates a new mock instance.
func (*MockBlockProposer) EXPECT ¶
func (m *MockBlockProposer) EXPECT() *MockBlockProposerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBlockProposer) OnReceiveMaxBFTProposal ¶
func (m *MockBlockProposer) OnReceiveMaxBFTProposal(proposal *maxbft.BuildProposal)
OnReceiveMaxBFTProposal mocks base method.
func (*MockBlockProposer) OnReceiveProposeStatusChange ¶
func (m *MockBlockProposer) OnReceiveProposeStatusChange(proposeStatus bool)
OnReceiveProposeStatusChange mocks base method.
func (*MockBlockProposer) OnReceiveRwSetVerifyFailTxs ¶
func (m *MockBlockProposer) OnReceiveRwSetVerifyFailTxs(rwSetVerifyFailTxs *consensus.RwSetVerifyFailTxs)
OnReceiveRwSetVerifyFailTxs mocks base method.
func (*MockBlockProposer) OnReceiveTxPoolSignal ¶
func (m *MockBlockProposer) OnReceiveTxPoolSignal(proposeSignal *txpool.TxPoolSignal)
OnReceiveTxPoolSignal mocks base method.
func (*MockBlockProposer) ProposeBlock ¶
func (m *MockBlockProposer) ProposeBlock(proposal *maxbft.BuildProposal) (*consensus.ProposalBlock, error)
ProposeBlock mocks base method.
func (*MockBlockProposer) Start ¶
func (m *MockBlockProposer) Start() error
Start mocks base method.
type MockBlockProposerMockRecorder ¶
type MockBlockProposerMockRecorder struct {
// contains filtered or unexported fields
}
MockBlockProposerMockRecorder is the mock recorder for MockBlockProposer.
func (*MockBlockProposerMockRecorder) OnReceiveMaxBFTProposal ¶
func (mr *MockBlockProposerMockRecorder) OnReceiveMaxBFTProposal(proposal interface{}) *gomock.Call
OnReceiveMaxBFTProposal indicates an expected call of OnReceiveMaxBFTProposal.
func (*MockBlockProposerMockRecorder) OnReceiveProposeStatusChange ¶
func (mr *MockBlockProposerMockRecorder) OnReceiveProposeStatusChange(proposeStatus interface{}) *gomock.Call
OnReceiveProposeStatusChange indicates an expected call of OnReceiveProposeStatusChange.
func (*MockBlockProposerMockRecorder) OnReceiveRwSetVerifyFailTxs ¶
func (mr *MockBlockProposerMockRecorder) OnReceiveRwSetVerifyFailTxs(rwSetVerifyFailTxs interface{}) *gomock.Call
OnReceiveRwSetVerifyFailTxs indicates an expected call of OnReceiveRwSetVerifyFailTxs.
func (*MockBlockProposerMockRecorder) OnReceiveTxPoolSignal ¶
func (mr *MockBlockProposerMockRecorder) OnReceiveTxPoolSignal(proposeSignal interface{}) *gomock.Call
OnReceiveTxPoolSignal indicates an expected call of OnReceiveTxPoolSignal.
func (*MockBlockProposerMockRecorder) ProposeBlock ¶
func (mr *MockBlockProposerMockRecorder) ProposeBlock(proposal interface{}) *gomock.Call
ProposeBlock indicates an expected call of ProposeBlock.
func (*MockBlockProposerMockRecorder) Start ¶
func (mr *MockBlockProposerMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start.
func (*MockBlockProposerMockRecorder) Stop ¶
func (mr *MockBlockProposerMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
type MockBlockVerifier ¶
type MockBlockVerifier struct {
// contains filtered or unexported fields
}
MockBlockVerifier is a mock of BlockVerifier interface.
func NewMockBlockVerifier ¶
func NewMockBlockVerifier(ctrl *gomock.Controller) *MockBlockVerifier
NewMockBlockVerifier creates a new mock instance.
func (*MockBlockVerifier) EXPECT ¶
func (m *MockBlockVerifier) EXPECT() *MockBlockVerifierMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBlockVerifier) VerifyBlock ¶
func (m *MockBlockVerifier) VerifyBlock(block *common.Block, mode protocol.VerifyMode) error
VerifyBlock mocks base method.
func (*MockBlockVerifier) VerifyBlockSync ¶
func (m *MockBlockVerifier) VerifyBlockSync(block *common.Block, mode protocol.VerifyMode) (*consensus.VerifyResult, error)
VerifyBlockSync mocks base method.
func (*MockBlockVerifier) VerifyBlockWithRwSets ¶
func (m *MockBlockVerifier) VerifyBlockWithRwSets(block *common.Block, rwsets []*common.TxRWSet, mode protocol.VerifyMode) error
VerifyBlockWithRwSets mocks base method.
type MockBlockVerifierMockRecorder ¶
type MockBlockVerifierMockRecorder struct {
// contains filtered or unexported fields
}
MockBlockVerifierMockRecorder is the mock recorder for MockBlockVerifier.
func (*MockBlockVerifierMockRecorder) VerifyBlock ¶
func (mr *MockBlockVerifierMockRecorder) VerifyBlock(block, mode interface{}) *gomock.Call
VerifyBlock indicates an expected call of VerifyBlock.
func (*MockBlockVerifierMockRecorder) VerifyBlockSync ¶
func (mr *MockBlockVerifierMockRecorder) VerifyBlockSync(block, mode interface{}) *gomock.Call
VerifyBlockSync indicates an expected call of VerifyBlockSync.
func (*MockBlockVerifierMockRecorder) VerifyBlockWithRwSets ¶
func (mr *MockBlockVerifierMockRecorder) VerifyBlockWithRwSets(block, rwsets, mode interface{}) *gomock.Call
VerifyBlockWithRwSets indicates an expected call of VerifyBlockWithRwSets.
type MockBlockchainStore ¶
type MockBlockchainStore struct {
// contains filtered or unexported fields
}
MockBlockchainStore is a mock of BlockchainStore interface.
func NewMockBlockchainStore ¶
func NewMockBlockchainStore(ctrl *gomock.Controller) *MockBlockchainStore
NewMockBlockchainStore creates a new mock instance.
func (*MockBlockchainStore) ArchiveBlock ¶
func (m *MockBlockchainStore) ArchiveBlock(archiveHeight uint64) error
ArchiveBlock mocks base method.
func (*MockBlockchainStore) BeginDbTransaction ¶
func (m *MockBlockchainStore) BeginDbTransaction(txName string) (protocol.SqlDBTransaction, error)
BeginDbTransaction mocks base method.
func (*MockBlockchainStore) BlockExists ¶
func (m *MockBlockchainStore) BlockExists(blockHash []byte) (bool, error)
BlockExists mocks base method.
func (*MockBlockchainStore) Close ¶
func (m *MockBlockchainStore) Close() error
Close mocks base method.
func (*MockBlockchainStore) CommitDbTransaction ¶
func (m *MockBlockchainStore) CommitDbTransaction(txName string) error
CommitDbTransaction mocks base method.
func (*MockBlockchainStore) CreateDatabase ¶
func (m *MockBlockchainStore) CreateDatabase(contractName string) error
CreateDatabase mocks base method.
func (*MockBlockchainStore) DoHotColdDataSeparation ¶
func (m *MockBlockchainStore) DoHotColdDataSeparation(startHeight, endHeight uint64) (string, error)
DoHotColdDataSeparation mocks base method.
func (*MockBlockchainStore) DropDatabase ¶
func (m *MockBlockchainStore) DropDatabase(contractName string) error
DropDatabase mocks base method.
func (*MockBlockchainStore) EXPECT ¶
func (m *MockBlockchainStore) EXPECT() *MockBlockchainStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBlockchainStore) ExecDdlSql ¶
func (m *MockBlockchainStore) ExecDdlSql(contractName, sql, version string) error
ExecDdlSql mocks base method.
func (*MockBlockchainStore) GetAccountTxHistory ¶
func (m *MockBlockchainStore) GetAccountTxHistory(accountId []byte) (protocol.TxHistoryIterator, error)
GetAccountTxHistory mocks base method.
func (*MockBlockchainStore) GetArchiveStatus ¶ added in v3.0.1
func (m *MockBlockchainStore) GetArchiveStatus() (*store.ArchiveStatus, error)
GetArchiveStatus mocks base method.
func (*MockBlockchainStore) GetArchivedPivot ¶
func (m *MockBlockchainStore) GetArchivedPivot() uint64
GetArchivedPivot mocks base method.
func (*MockBlockchainStore) GetBlock ¶
func (m *MockBlockchainStore) GetBlock(height uint64) (*common.Block, error)
GetBlock mocks base method.
func (*MockBlockchainStore) GetBlockByHash ¶
func (m *MockBlockchainStore) GetBlockByHash(blockHash []byte) (*common.Block, error)
GetBlockByHash mocks base method.
func (*MockBlockchainStore) GetBlockByTx ¶
func (m *MockBlockchainStore) GetBlockByTx(txId string) (*common.Block, error)
GetBlockByTx mocks base method.
func (*MockBlockchainStore) GetBlockHeaderByHeight ¶
func (m *MockBlockchainStore) GetBlockHeaderByHeight(height uint64) (*common.BlockHeader, error)
GetBlockHeaderByHeight mocks base method.
func (*MockBlockchainStore) GetBlockWithRWSets ¶
func (m *MockBlockchainStore) GetBlockWithRWSets(height uint64) (*store.BlockWithRWSet, error)
GetBlockWithRWSets mocks base method.
func (*MockBlockchainStore) GetContractByName ¶
func (m *MockBlockchainStore) GetContractByName(name string) (*common.Contract, error)
GetContractByName mocks base method.
func (*MockBlockchainStore) GetContractBytecode ¶
func (m *MockBlockchainStore) GetContractBytecode(name string) ([]byte, error)
GetContractBytecode mocks base method.
func (*MockBlockchainStore) GetContractDbName ¶
func (m *MockBlockchainStore) GetContractDbName(contractName string) string
GetContractDbName mocks base method.
func (*MockBlockchainStore) GetContractTxHistory ¶
func (m *MockBlockchainStore) GetContractTxHistory(contractName string) (protocol.TxHistoryIterator, error)
GetContractTxHistory mocks base method.
func (*MockBlockchainStore) GetDBHandle ¶
func (m *MockBlockchainStore) GetDBHandle(dbName string) protocol.DBHandle
GetDBHandle mocks base method.
func (*MockBlockchainStore) GetDbTransaction ¶
func (m *MockBlockchainStore) GetDbTransaction(txName string) (protocol.SqlDBTransaction, error)
GetDbTransaction mocks base method.
func (*MockBlockchainStore) GetHeightByHash ¶
func (m *MockBlockchainStore) GetHeightByHash(blockHash []byte) (uint64, error)
GetHeightByHash mocks base method.
func (*MockBlockchainStore) GetHistoryForKey ¶
func (m *MockBlockchainStore) GetHistoryForKey(contractName string, key []byte) (protocol.KeyHistoryIterator, error)
GetHistoryForKey mocks base method.
func (*MockBlockchainStore) GetHotColdDataSeparationJobByID ¶
func (m *MockBlockchainStore) GetHotColdDataSeparationJobByID(jobID string) (store.ArchiveJob, error)
GetHotColdDataSeparationJobByID mocks base method.
func (*MockBlockchainStore) GetHotColdDataSeparationMaxHeight ¶ added in v3.0.1
func (m *MockBlockchainStore) GetHotColdDataSeparationMaxHeight() (uint64, error)
GetHotColdDataSeparationMaxHeight mocks base method.
func (*MockBlockchainStore) GetLastBlock ¶
func (m *MockBlockchainStore) GetLastBlock() (*common.Block, error)
GetLastBlock mocks base method.
func (*MockBlockchainStore) GetLastChainConfig ¶
func (m *MockBlockchainStore) GetLastChainConfig() (*config.ChainConfig, error)
GetLastChainConfig mocks base method.
func (*MockBlockchainStore) GetLastConfigBlock ¶
func (m *MockBlockchainStore) GetLastConfigBlock() (*common.Block, error)
GetLastConfigBlock mocks base method.
func (*MockBlockchainStore) GetLastHeight ¶ added in v3.0.1
func (m *MockBlockchainStore) GetLastHeight() (uint64, error)
GetLastHeight mocks base method.
func (*MockBlockchainStore) GetMemberExtraData ¶
func (m *MockBlockchainStore) GetMemberExtraData(member *accesscontrol.Member) (*accesscontrol.MemberExtraData, error)
GetMemberExtraData mocks base method.
func (*MockBlockchainStore) GetSnapshotStatus ¶
func (m *MockBlockchainStore) GetSnapshotStatus() uint64
GetSnapshotStatus mocks base method.
func (*MockBlockchainStore) GetTx ¶
func (m *MockBlockchainStore) GetTx(txId string) (*common.Transaction, error)
GetTx mocks base method.
func (*MockBlockchainStore) GetTxConfirmedTime ¶
func (m *MockBlockchainStore) GetTxConfirmedTime(txId string) (int64, error)
GetTxConfirmedTime mocks base method.
func (*MockBlockchainStore) GetTxHeight ¶
func (m *MockBlockchainStore) GetTxHeight(txId string) (uint64, error)
GetTxHeight mocks base method.
func (*MockBlockchainStore) GetTxInfoOnly ¶
func (m *MockBlockchainStore) GetTxInfoOnly(txId string) (*common.TransactionInfo, error)
GetTxInfoOnly mocks base method.
func (*MockBlockchainStore) GetTxInfoWithRWSet ¶
func (m *MockBlockchainStore) GetTxInfoWithRWSet(txId string) (*common.TransactionInfoWithRWSet, error)
GetTxInfoWithRWSet mocks base method.
func (*MockBlockchainStore) GetTxRWSet ¶
func (m *MockBlockchainStore) GetTxRWSet(txId string) (*common.TxRWSet, error)
GetTxRWSet mocks base method.
func (*MockBlockchainStore) GetTxRWSetsByHeight ¶
func (m *MockBlockchainStore) GetTxRWSetsByHeight(height uint64) ([]*common.TxRWSet, error)
GetTxRWSetsByHeight mocks base method.
func (*MockBlockchainStore) GetTxWithInfo ¶
func (m *MockBlockchainStore) GetTxWithInfo(txId string) (*common.TransactionInfo, error)
GetTxWithInfo mocks base method.
func (*MockBlockchainStore) GetTxWithRWSet ¶
func (m *MockBlockchainStore) GetTxWithRWSet(txId string) (*common.TransactionWithRWSet, error)
GetTxWithRWSet mocks base method.
func (*MockBlockchainStore) InitGenesis ¶
func (m *MockBlockchainStore) InitGenesis(genesisBlock *store.BlockWithRWSet) error
InitGenesis mocks base method.
func (*MockBlockchainStore) MakeSnapshot ¶
func (m *MockBlockchainStore) MakeSnapshot(snapshotHeight uint64) error
MakeSnapshot mocks base method.
func (*MockBlockchainStore) PutBlock ¶
PutBlock mocks base method.
func (*MockBlockchainStore) QueryMulti ¶
func (m *MockBlockchainStore) QueryMulti(contractName, sql string, values ...interface{}) (protocol.SqlRows, error)
QueryMulti mocks base method.
func (*MockBlockchainStore) QuerySingle ¶
func (m *MockBlockchainStore) QuerySingle(contractName, sql string, values ...interface{}) (protocol.SqlRow, error)
QuerySingle mocks base method.
func (*MockBlockchainStore) ReadObject ¶
func (m *MockBlockchainStore) ReadObject(contractName string, key []byte) ([]byte, error)
ReadObject mocks base method.
func (*MockBlockchainStore) ReadObjects ¶
func (m *MockBlockchainStore) ReadObjects(contractName string, keys [][]byte) ([][]byte, error)
ReadObjects mocks base method.
func (*MockBlockchainStore) RestoreBlocks ¶
func (m *MockBlockchainStore) RestoreBlocks(serializedBlocks [][]byte) error
RestoreBlocks mocks base method.
func (*MockBlockchainStore) RollbackDbTransaction ¶
func (m *MockBlockchainStore) RollbackDbTransaction(txName string) error
RollbackDbTransaction mocks base method.
func (*MockBlockchainStore) SelectObject ¶
func (m *MockBlockchainStore) SelectObject(contractName string, startKey, limit []byte) (protocol.StateIterator, error)
SelectObject mocks base method.
func (*MockBlockchainStore) TxExists ¶
func (m *MockBlockchainStore) TxExists(txId string) (bool, error)
TxExists mocks base method.
func (*MockBlockchainStore) TxExistsInFullDB ¶
func (m *MockBlockchainStore) TxExistsInFullDB(txId string) (bool, uint64, error)
TxExistsInFullDB mocks base method.
type MockBlockchainStoreMockRecorder ¶
type MockBlockchainStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockBlockchainStoreMockRecorder is the mock recorder for MockBlockchainStore.
func (*MockBlockchainStoreMockRecorder) ArchiveBlock ¶
func (mr *MockBlockchainStoreMockRecorder) ArchiveBlock(archiveHeight interface{}) *gomock.Call
ArchiveBlock indicates an expected call of ArchiveBlock.
func (*MockBlockchainStoreMockRecorder) BeginDbTransaction ¶
func (mr *MockBlockchainStoreMockRecorder) BeginDbTransaction(txName interface{}) *gomock.Call
BeginDbTransaction indicates an expected call of BeginDbTransaction.
func (*MockBlockchainStoreMockRecorder) BlockExists ¶
func (mr *MockBlockchainStoreMockRecorder) BlockExists(blockHash interface{}) *gomock.Call
BlockExists indicates an expected call of BlockExists.
func (*MockBlockchainStoreMockRecorder) Close ¶
func (mr *MockBlockchainStoreMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockBlockchainStoreMockRecorder) CommitDbTransaction ¶
func (mr *MockBlockchainStoreMockRecorder) CommitDbTransaction(txName interface{}) *gomock.Call
CommitDbTransaction indicates an expected call of CommitDbTransaction.
func (*MockBlockchainStoreMockRecorder) CreateDatabase ¶
func (mr *MockBlockchainStoreMockRecorder) CreateDatabase(contractName interface{}) *gomock.Call
CreateDatabase indicates an expected call of CreateDatabase.
func (*MockBlockchainStoreMockRecorder) DoHotColdDataSeparation ¶
func (mr *MockBlockchainStoreMockRecorder) DoHotColdDataSeparation(startHeight, endHeight interface{}) *gomock.Call
DoHotColdDataSeparation indicates an expected call of DoHotColdDataSeparation.
func (*MockBlockchainStoreMockRecorder) DropDatabase ¶
func (mr *MockBlockchainStoreMockRecorder) DropDatabase(contractName interface{}) *gomock.Call
DropDatabase indicates an expected call of DropDatabase.
func (*MockBlockchainStoreMockRecorder) ExecDdlSql ¶
func (mr *MockBlockchainStoreMockRecorder) ExecDdlSql(contractName, sql, version interface{}) *gomock.Call
ExecDdlSql indicates an expected call of ExecDdlSql.
func (*MockBlockchainStoreMockRecorder) GetAccountTxHistory ¶
func (mr *MockBlockchainStoreMockRecorder) GetAccountTxHistory(accountId interface{}) *gomock.Call
GetAccountTxHistory indicates an expected call of GetAccountTxHistory.
func (*MockBlockchainStoreMockRecorder) GetArchiveStatus ¶ added in v3.0.1
func (mr *MockBlockchainStoreMockRecorder) GetArchiveStatus() *gomock.Call
GetArchiveStatus indicates an expected call of GetArchiveStatus.
func (*MockBlockchainStoreMockRecorder) GetArchivedPivot ¶
func (mr *MockBlockchainStoreMockRecorder) GetArchivedPivot() *gomock.Call
GetArchivedPivot indicates an expected call of GetArchivedPivot.
func (*MockBlockchainStoreMockRecorder) GetBlock ¶
func (mr *MockBlockchainStoreMockRecorder) GetBlock(height interface{}) *gomock.Call
GetBlock indicates an expected call of GetBlock.
func (*MockBlockchainStoreMockRecorder) GetBlockByHash ¶
func (mr *MockBlockchainStoreMockRecorder) GetBlockByHash(blockHash interface{}) *gomock.Call
GetBlockByHash indicates an expected call of GetBlockByHash.
func (*MockBlockchainStoreMockRecorder) GetBlockByTx ¶
func (mr *MockBlockchainStoreMockRecorder) GetBlockByTx(txId interface{}) *gomock.Call
GetBlockByTx indicates an expected call of GetBlockByTx.
func (*MockBlockchainStoreMockRecorder) GetBlockHeaderByHeight ¶
func (mr *MockBlockchainStoreMockRecorder) GetBlockHeaderByHeight(height interface{}) *gomock.Call
GetBlockHeaderByHeight indicates an expected call of GetBlockHeaderByHeight.
func (*MockBlockchainStoreMockRecorder) GetBlockWithRWSets ¶
func (mr *MockBlockchainStoreMockRecorder) GetBlockWithRWSets(height interface{}) *gomock.Call
GetBlockWithRWSets indicates an expected call of GetBlockWithRWSets.
func (*MockBlockchainStoreMockRecorder) GetContractByName ¶
func (mr *MockBlockchainStoreMockRecorder) GetContractByName(name interface{}) *gomock.Call
GetContractByName indicates an expected call of GetContractByName.
func (*MockBlockchainStoreMockRecorder) GetContractBytecode ¶
func (mr *MockBlockchainStoreMockRecorder) GetContractBytecode(name interface{}) *gomock.Call
GetContractBytecode indicates an expected call of GetContractBytecode.
func (*MockBlockchainStoreMockRecorder) GetContractDbName ¶
func (mr *MockBlockchainStoreMockRecorder) GetContractDbName(contractName interface{}) *gomock.Call
GetContractDbName indicates an expected call of GetContractDbName.
func (*MockBlockchainStoreMockRecorder) GetContractTxHistory ¶
func (mr *MockBlockchainStoreMockRecorder) GetContractTxHistory(contractName interface{}) *gomock.Call
GetContractTxHistory indicates an expected call of GetContractTxHistory.
func (*MockBlockchainStoreMockRecorder) GetDBHandle ¶
func (mr *MockBlockchainStoreMockRecorder) GetDBHandle(dbName interface{}) *gomock.Call
GetDBHandle indicates an expected call of GetDBHandle.
func (*MockBlockchainStoreMockRecorder) GetDbTransaction ¶
func (mr *MockBlockchainStoreMockRecorder) GetDbTransaction(txName interface{}) *gomock.Call
GetDbTransaction indicates an expected call of GetDbTransaction.
func (*MockBlockchainStoreMockRecorder) GetHeightByHash ¶
func (mr *MockBlockchainStoreMockRecorder) GetHeightByHash(blockHash interface{}) *gomock.Call
GetHeightByHash indicates an expected call of GetHeightByHash.
func (*MockBlockchainStoreMockRecorder) GetHistoryForKey ¶
func (mr *MockBlockchainStoreMockRecorder) GetHistoryForKey(contractName, key interface{}) *gomock.Call
GetHistoryForKey indicates an expected call of GetHistoryForKey.
func (*MockBlockchainStoreMockRecorder) GetHotColdDataSeparationJobByID ¶
func (mr *MockBlockchainStoreMockRecorder) GetHotColdDataSeparationJobByID(jobID interface{}) *gomock.Call
GetHotColdDataSeparationJobByID indicates an expected call of GetHotColdDataSeparationJobByID.
func (*MockBlockchainStoreMockRecorder) GetHotColdDataSeparationMaxHeight ¶ added in v3.0.1
func (mr *MockBlockchainStoreMockRecorder) GetHotColdDataSeparationMaxHeight() *gomock.Call
GetHotColdDataSeparationMaxHeight indicates an expected call of GetHotColdDataSeparationMaxHeight.
func (*MockBlockchainStoreMockRecorder) GetLastBlock ¶
func (mr *MockBlockchainStoreMockRecorder) GetLastBlock() *gomock.Call
GetLastBlock indicates an expected call of GetLastBlock.
func (*MockBlockchainStoreMockRecorder) GetLastChainConfig ¶
func (mr *MockBlockchainStoreMockRecorder) GetLastChainConfig() *gomock.Call
GetLastChainConfig indicates an expected call of GetLastChainConfig.
func (*MockBlockchainStoreMockRecorder) GetLastConfigBlock ¶
func (mr *MockBlockchainStoreMockRecorder) GetLastConfigBlock() *gomock.Call
GetLastConfigBlock indicates an expected call of GetLastConfigBlock.
func (*MockBlockchainStoreMockRecorder) GetLastHeight ¶ added in v3.0.1
func (mr *MockBlockchainStoreMockRecorder) GetLastHeight() *gomock.Call
GetLastHeight indicates an expected call of GetLastHeight.
func (*MockBlockchainStoreMockRecorder) GetMemberExtraData ¶
func (mr *MockBlockchainStoreMockRecorder) GetMemberExtraData(member interface{}) *gomock.Call
GetMemberExtraData indicates an expected call of GetMemberExtraData.
func (*MockBlockchainStoreMockRecorder) GetSnapshotStatus ¶
func (mr *MockBlockchainStoreMockRecorder) GetSnapshotStatus() *gomock.Call
GetSnapshotStatus indicates an expected call of GetSnapshotStatus.
func (*MockBlockchainStoreMockRecorder) GetTx ¶
func (mr *MockBlockchainStoreMockRecorder) GetTx(txId interface{}) *gomock.Call
GetTx indicates an expected call of GetTx.
func (*MockBlockchainStoreMockRecorder) GetTxConfirmedTime ¶
func (mr *MockBlockchainStoreMockRecorder) GetTxConfirmedTime(txId interface{}) *gomock.Call
GetTxConfirmedTime indicates an expected call of GetTxConfirmedTime.
func (*MockBlockchainStoreMockRecorder) GetTxHeight ¶
func (mr *MockBlockchainStoreMockRecorder) GetTxHeight(txId interface{}) *gomock.Call
GetTxHeight indicates an expected call of GetTxHeight.
func (*MockBlockchainStoreMockRecorder) GetTxInfoOnly ¶
func (mr *MockBlockchainStoreMockRecorder) GetTxInfoOnly(txId interface{}) *gomock.Call
GetTxInfoOnly indicates an expected call of GetTxInfoOnly.
func (*MockBlockchainStoreMockRecorder) GetTxInfoWithRWSet ¶
func (mr *MockBlockchainStoreMockRecorder) GetTxInfoWithRWSet(txId interface{}) *gomock.Call
GetTxInfoWithRWSet indicates an expected call of GetTxInfoWithRWSet.
func (*MockBlockchainStoreMockRecorder) GetTxRWSet ¶
func (mr *MockBlockchainStoreMockRecorder) GetTxRWSet(txId interface{}) *gomock.Call
GetTxRWSet indicates an expected call of GetTxRWSet.
func (*MockBlockchainStoreMockRecorder) GetTxRWSetsByHeight ¶
func (mr *MockBlockchainStoreMockRecorder) GetTxRWSetsByHeight(height interface{}) *gomock.Call
GetTxRWSetsByHeight indicates an expected call of GetTxRWSetsByHeight.
func (*MockBlockchainStoreMockRecorder) GetTxWithInfo ¶
func (mr *MockBlockchainStoreMockRecorder) GetTxWithInfo(txId interface{}) *gomock.Call
GetTxWithInfo indicates an expected call of GetTxWithInfo.
func (*MockBlockchainStoreMockRecorder) GetTxWithRWSet ¶
func (mr *MockBlockchainStoreMockRecorder) GetTxWithRWSet(txId interface{}) *gomock.Call
GetTxWithRWSet indicates an expected call of GetTxWithRWSet.
func (*MockBlockchainStoreMockRecorder) InitGenesis ¶
func (mr *MockBlockchainStoreMockRecorder) InitGenesis(genesisBlock interface{}) *gomock.Call
InitGenesis indicates an expected call of InitGenesis.
func (*MockBlockchainStoreMockRecorder) MakeSnapshot ¶
func (mr *MockBlockchainStoreMockRecorder) MakeSnapshot(snapshotHeight interface{}) *gomock.Call
MakeSnapshot indicates an expected call of MakeSnapshot.
func (*MockBlockchainStoreMockRecorder) PutBlock ¶
func (mr *MockBlockchainStoreMockRecorder) PutBlock(block, txRWSets interface{}) *gomock.Call
PutBlock indicates an expected call of PutBlock.
func (*MockBlockchainStoreMockRecorder) QueryMulti ¶
func (mr *MockBlockchainStoreMockRecorder) QueryMulti(contractName, sql interface{}, values ...interface{}) *gomock.Call
QueryMulti indicates an expected call of QueryMulti.
func (*MockBlockchainStoreMockRecorder) QuerySingle ¶
func (mr *MockBlockchainStoreMockRecorder) QuerySingle(contractName, sql interface{}, values ...interface{}) *gomock.Call
QuerySingle indicates an expected call of QuerySingle.
func (*MockBlockchainStoreMockRecorder) ReadObject ¶
func (mr *MockBlockchainStoreMockRecorder) ReadObject(contractName, key interface{}) *gomock.Call
ReadObject indicates an expected call of ReadObject.
func (*MockBlockchainStoreMockRecorder) ReadObjects ¶
func (mr *MockBlockchainStoreMockRecorder) ReadObjects(contractName, keys interface{}) *gomock.Call
ReadObjects indicates an expected call of ReadObjects.
func (*MockBlockchainStoreMockRecorder) RestoreBlocks ¶
func (mr *MockBlockchainStoreMockRecorder) RestoreBlocks(serializedBlocks interface{}) *gomock.Call
RestoreBlocks indicates an expected call of RestoreBlocks.
func (*MockBlockchainStoreMockRecorder) RollbackDbTransaction ¶
func (mr *MockBlockchainStoreMockRecorder) RollbackDbTransaction(txName interface{}) *gomock.Call
RollbackDbTransaction indicates an expected call of RollbackDbTransaction.
func (*MockBlockchainStoreMockRecorder) SelectObject ¶
func (mr *MockBlockchainStoreMockRecorder) SelectObject(contractName, startKey, limit interface{}) *gomock.Call
SelectObject indicates an expected call of SelectObject.
func (*MockBlockchainStoreMockRecorder) TxExists ¶
func (mr *MockBlockchainStoreMockRecorder) TxExists(txId interface{}) *gomock.Call
TxExists indicates an expected call of TxExists.
func (*MockBlockchainStoreMockRecorder) TxExistsInFullDB ¶
func (mr *MockBlockchainStoreMockRecorder) TxExistsInFullDB(txId interface{}) *gomock.Call
TxExistsInFullDB indicates an expected call of TxExistsInFullDB.
func (*MockBlockchainStoreMockRecorder) TxExistsInIncrementDB ¶
func (mr *MockBlockchainStoreMockRecorder) TxExistsInIncrementDB(txId, startHeight interface{}) *gomock.Call
TxExistsInIncrementDB indicates an expected call of TxExistsInIncrementDB.
func (*MockBlockchainStoreMockRecorder) TxExistsInIncrementDBState ¶
func (mr *MockBlockchainStoreMockRecorder) TxExistsInIncrementDBState(txId, startHeight interface{}) *gomock.Call
TxExistsInIncrementDBState indicates an expected call of TxExistsInIncrementDBState.
type MockChainConf ¶
type MockChainConf struct {
// contains filtered or unexported fields
}
MockChainConf is a mock of ChainConf interface.
func NewMockChainConf ¶
func NewMockChainConf(ctrl *gomock.Controller) *MockChainConf
NewMockChainConf creates a new mock instance.
func (*MockChainConf) AddVmWatch ¶
func (m *MockChainConf) AddVmWatch(w protocol.VmWatcher)
AddVmWatch mocks base method.
func (*MockChainConf) AddWatch ¶
func (m *MockChainConf) AddWatch(w protocol.Watcher)
AddWatch mocks base method.
func (*MockChainConf) ChainConfig ¶
func (m *MockChainConf) ChainConfig() *config.ChainConfig
ChainConfig mocks base method.
func (*MockChainConf) CompleteBlock ¶
func (m *MockChainConf) CompleteBlock(block *common.Block) error
CompleteBlock mocks base method.
func (*MockChainConf) EXPECT ¶
func (m *MockChainConf) EXPECT() *MockChainConfMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockChainConf) GetChainConfigAt ¶
func (m *MockChainConf) GetChainConfigAt(blockHeight uint64) (*config.ChainConfig, error)
GetChainConfigAt mocks base method.
func (*MockChainConf) GetChainConfigFromFuture ¶
func (m *MockChainConf) GetChainConfigFromFuture(blockHeight uint64) (*config.ChainConfig, error)
GetChainConfigFromFuture mocks base method.
func (*MockChainConf) GetConsensusNodeIdList ¶
func (m *MockChainConf) GetConsensusNodeIdList() ([]string, error)
GetConsensusNodeIdList mocks base method.
func (*MockChainConf) SetChainConfig ¶
func (m *MockChainConf) SetChainConfig(chainConf *config.ChainConfig) error
SetChainConfig mocks base method.
type MockChainConfMockRecorder ¶
type MockChainConfMockRecorder struct {
// contains filtered or unexported fields
}
MockChainConfMockRecorder is the mock recorder for MockChainConf.
func (*MockChainConfMockRecorder) AddVmWatch ¶
func (mr *MockChainConfMockRecorder) AddVmWatch(w interface{}) *gomock.Call
AddVmWatch indicates an expected call of AddVmWatch.
func (*MockChainConfMockRecorder) AddWatch ¶
func (mr *MockChainConfMockRecorder) AddWatch(w interface{}) *gomock.Call
AddWatch indicates an expected call of AddWatch.
func (*MockChainConfMockRecorder) ChainConfig ¶
func (mr *MockChainConfMockRecorder) ChainConfig() *gomock.Call
ChainConfig indicates an expected call of ChainConfig.
func (*MockChainConfMockRecorder) CompleteBlock ¶
func (mr *MockChainConfMockRecorder) CompleteBlock(block interface{}) *gomock.Call
CompleteBlock indicates an expected call of CompleteBlock.
func (*MockChainConfMockRecorder) GetChainConfigAt ¶
func (mr *MockChainConfMockRecorder) GetChainConfigAt(blockHeight interface{}) *gomock.Call
GetChainConfigAt indicates an expected call of GetChainConfigAt.
func (*MockChainConfMockRecorder) GetChainConfigFromFuture ¶
func (mr *MockChainConfMockRecorder) GetChainConfigFromFuture(blockHeight interface{}) *gomock.Call
GetChainConfigFromFuture indicates an expected call of GetChainConfigFromFuture.
func (*MockChainConfMockRecorder) GetConsensusNodeIdList ¶
func (mr *MockChainConfMockRecorder) GetConsensusNodeIdList() *gomock.Call
GetConsensusNodeIdList indicates an expected call of GetConsensusNodeIdList.
func (*MockChainConfMockRecorder) Init ¶
func (mr *MockChainConfMockRecorder) Init() *gomock.Call
Init indicates an expected call of Init.
func (*MockChainConfMockRecorder) SetChainConfig ¶
func (mr *MockChainConfMockRecorder) SetChainConfig(chainConf interface{}) *gomock.Call
SetChainConfig indicates an expected call of SetChainConfig.
type MockChainNodesInfoProvider ¶
type MockChainNodesInfoProvider struct {
// contains filtered or unexported fields
}
MockChainNodesInfoProvider is a mock of ChainNodesInfoProvider interface.
func NewMockChainNodesInfoProvider ¶
func NewMockChainNodesInfoProvider(ctrl *gomock.Controller) *MockChainNodesInfoProvider
NewMockChainNodesInfoProvider creates a new mock instance.
func (*MockChainNodesInfoProvider) EXPECT ¶
func (m *MockChainNodesInfoProvider) EXPECT() *MockChainNodesInfoProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockChainNodesInfoProvider) GetChainNodesInfo ¶
func (m *MockChainNodesInfoProvider) GetChainNodesInfo() ([]*protocol.ChainNodeInfo, error)
GetChainNodesInfo mocks base method.
type MockChainNodesInfoProviderMockRecorder ¶
type MockChainNodesInfoProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockChainNodesInfoProviderMockRecorder is the mock recorder for MockChainNodesInfoProvider.
func (*MockChainNodesInfoProviderMockRecorder) GetChainNodesInfo ¶
func (mr *MockChainNodesInfoProviderMockRecorder) GetChainNodesInfo() *gomock.Call
GetChainNodesInfo indicates an expected call of GetChainNodesInfo.
type MockConsensusEngine ¶
type MockConsensusEngine struct {
// contains filtered or unexported fields
}
MockConsensusEngine is a mock of ConsensusEngine interface.
func NewMockConsensusEngine ¶
func NewMockConsensusEngine(ctrl *gomock.Controller) *MockConsensusEngine
NewMockConsensusEngine creates a new mock instance.
func (*MockConsensusEngine) Close ¶ added in v3.0.1
func (m *MockConsensusEngine) Close() error
Close mocks base method.
func (*MockConsensusEngine) EXPECT ¶
func (m *MockConsensusEngine) EXPECT() *MockConsensusEngineMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockConsensusEngine) GetAllNodeInfos ¶
func (m *MockConsensusEngine) GetAllNodeInfos() []consensus.ConsensusNodeInfo
GetAllNodeInfos mocks base method.
func (*MockConsensusEngine) GetConsensusStateJSON ¶
func (m *MockConsensusEngine) GetConsensusStateJSON() ([]byte, error)
GetConsensusStateJSON mocks base method.
func (*MockConsensusEngine) GetConsensusType ¶
func (m *MockConsensusEngine) GetConsensusType() consensus.ConsensusType
GetConsensusType mocks base method.
func (*MockConsensusEngine) GetLastHeight ¶
func (m *MockConsensusEngine) GetLastHeight() uint64
GetLastHeight mocks base method.
func (*MockConsensusEngine) GetValidators ¶
func (m *MockConsensusEngine) GetValidators() ([]string, error)
GetValidators mocks base method.
func (*MockConsensusEngine) Start ¶
func (m *MockConsensusEngine) Start() error
Start mocks base method.
func (*MockConsensusEngine) Stop ¶
func (m *MockConsensusEngine) Stop() error
Stop mocks base method.
type MockConsensusEngineMockRecorder ¶
type MockConsensusEngineMockRecorder struct {
// contains filtered or unexported fields
}
MockConsensusEngineMockRecorder is the mock recorder for MockConsensusEngine.
func (*MockConsensusEngineMockRecorder) Close ¶ added in v3.0.1
func (mr *MockConsensusEngineMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockConsensusEngineMockRecorder) GetAllNodeInfos ¶
func (mr *MockConsensusEngineMockRecorder) GetAllNodeInfos() *gomock.Call
GetAllNodeInfos indicates an expected call of GetAllNodeInfos.
func (*MockConsensusEngineMockRecorder) GetConsensusStateJSON ¶
func (mr *MockConsensusEngineMockRecorder) GetConsensusStateJSON() *gomock.Call
GetConsensusStateJSON indicates an expected call of GetConsensusStateJSON.
func (*MockConsensusEngineMockRecorder) GetConsensusType ¶
func (mr *MockConsensusEngineMockRecorder) GetConsensusType() *gomock.Call
GetConsensusType indicates an expected call of GetConsensusType.
func (*MockConsensusEngineMockRecorder) GetLastHeight ¶
func (mr *MockConsensusEngineMockRecorder) GetLastHeight() *gomock.Call
GetLastHeight indicates an expected call of GetLastHeight.
func (*MockConsensusEngineMockRecorder) GetValidators ¶
func (mr *MockConsensusEngineMockRecorder) GetValidators() *gomock.Call
GetValidators indicates an expected call of GetValidators.
func (*MockConsensusEngineMockRecorder) Start ¶
func (mr *MockConsensusEngineMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start.
func (*MockConsensusEngineMockRecorder) Stop ¶
func (mr *MockConsensusEngineMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
type MockConsensusExtendEngine ¶
type MockConsensusExtendEngine struct {
// contains filtered or unexported fields
}
MockConsensusExtendEngine is a mock of ConsensusExtendEngine interface.
func NewMockConsensusExtendEngine ¶
func NewMockConsensusExtendEngine(ctrl *gomock.Controller) *MockConsensusExtendEngine
NewMockConsensusExtendEngine creates a new mock instance.
func (*MockConsensusExtendEngine) Close ¶ added in v3.0.1
func (m *MockConsensusExtendEngine) Close() error
Close mocks base method.
func (*MockConsensusExtendEngine) EXPECT ¶
func (m *MockConsensusExtendEngine) EXPECT() *MockConsensusExtendEngineMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockConsensusExtendEngine) GetAllNodeInfos ¶
func (m *MockConsensusExtendEngine) GetAllNodeInfos() []consensus.ConsensusNodeInfo
GetAllNodeInfos mocks base method.
func (*MockConsensusExtendEngine) GetConsensusStateJSON ¶
func (m *MockConsensusExtendEngine) GetConsensusStateJSON() ([]byte, error)
GetConsensusStateJSON mocks base method.
func (*MockConsensusExtendEngine) GetConsensusType ¶
func (m *MockConsensusExtendEngine) GetConsensusType() consensus.ConsensusType
GetConsensusType mocks base method.
func (*MockConsensusExtendEngine) GetLastHeight ¶
func (m *MockConsensusExtendEngine) GetLastHeight() uint64
GetLastHeight mocks base method.
func (*MockConsensusExtendEngine) GetValidators ¶
func (m *MockConsensusExtendEngine) GetValidators() ([]string, error)
GetValidators mocks base method.
func (*MockConsensusExtendEngine) InitExtendHandler ¶
func (m *MockConsensusExtendEngine) InitExtendHandler(handler protocol.ConsensusExtendHandler)
InitExtendHandler mocks base method.
func (*MockConsensusExtendEngine) Start ¶
func (m *MockConsensusExtendEngine) Start() error
Start mocks base method.
func (*MockConsensusExtendEngine) Stop ¶
func (m *MockConsensusExtendEngine) Stop() error
Stop mocks base method.
type MockConsensusExtendEngineMockRecorder ¶
type MockConsensusExtendEngineMockRecorder struct {
// contains filtered or unexported fields
}
MockConsensusExtendEngineMockRecorder is the mock recorder for MockConsensusExtendEngine.
func (*MockConsensusExtendEngineMockRecorder) Close ¶ added in v3.0.1
func (mr *MockConsensusExtendEngineMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockConsensusExtendEngineMockRecorder) GetAllNodeInfos ¶
func (mr *MockConsensusExtendEngineMockRecorder) GetAllNodeInfos() *gomock.Call
GetAllNodeInfos indicates an expected call of GetAllNodeInfos.
func (*MockConsensusExtendEngineMockRecorder) GetConsensusStateJSON ¶
func (mr *MockConsensusExtendEngineMockRecorder) GetConsensusStateJSON() *gomock.Call
GetConsensusStateJSON indicates an expected call of GetConsensusStateJSON.
func (*MockConsensusExtendEngineMockRecorder) GetConsensusType ¶
func (mr *MockConsensusExtendEngineMockRecorder) GetConsensusType() *gomock.Call
GetConsensusType indicates an expected call of GetConsensusType.
func (*MockConsensusExtendEngineMockRecorder) GetLastHeight ¶
func (mr *MockConsensusExtendEngineMockRecorder) GetLastHeight() *gomock.Call
GetLastHeight indicates an expected call of GetLastHeight.
func (*MockConsensusExtendEngineMockRecorder) GetValidators ¶
func (mr *MockConsensusExtendEngineMockRecorder) GetValidators() *gomock.Call
GetValidators indicates an expected call of GetValidators.
func (*MockConsensusExtendEngineMockRecorder) InitExtendHandler ¶
func (mr *MockConsensusExtendEngineMockRecorder) InitExtendHandler(handler interface{}) *gomock.Call
InitExtendHandler indicates an expected call of InitExtendHandler.
func (*MockConsensusExtendEngineMockRecorder) Start ¶
func (mr *MockConsensusExtendEngineMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start.
func (*MockConsensusExtendEngineMockRecorder) Stop ¶
func (mr *MockConsensusExtendEngineMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
type MockConsensusExtendHandler ¶
type MockConsensusExtendHandler struct {
// contains filtered or unexported fields
}
MockConsensusExtendHandler is a mock of ConsensusExtendHandler interface.
func NewMockConsensusExtendHandler ¶
func NewMockConsensusExtendHandler(ctrl *gomock.Controller) *MockConsensusExtendHandler
NewMockConsensusExtendHandler creates a new mock instance.
func (*MockConsensusExtendHandler) CreateRWSet ¶
func (m *MockConsensusExtendHandler) CreateRWSet(preBlkHash []byte, proposedBlock *consensus.ProposalBlock) error
CreateRWSet mocks base method.
func (*MockConsensusExtendHandler) EXPECT ¶
func (m *MockConsensusExtendHandler) EXPECT() *MockConsensusExtendHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockConsensusExtendHandler) GetValidators ¶
func (m *MockConsensusExtendHandler) GetValidators() ([]string, error)
GetValidators mocks base method.
type MockConsensusExtendHandlerMockRecorder ¶
type MockConsensusExtendHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockConsensusExtendHandlerMockRecorder is the mock recorder for MockConsensusExtendHandler.
func (*MockConsensusExtendHandlerMockRecorder) CreateRWSet ¶
func (mr *MockConsensusExtendHandlerMockRecorder) CreateRWSet(preBlkHash, proposedBlock interface{}) *gomock.Call
CreateRWSet indicates an expected call of CreateRWSet.
func (*MockConsensusExtendHandlerMockRecorder) GetValidators ¶
func (mr *MockConsensusExtendHandlerMockRecorder) GetValidators() *gomock.Call
GetValidators indicates an expected call of GetValidators.
func (*MockConsensusExtendHandlerMockRecorder) VerifyConsensusArgs ¶
func (mr *MockConsensusExtendHandlerMockRecorder) VerifyConsensusArgs(block, blockTxRwSet interface{}) *gomock.Call
VerifyConsensusArgs indicates an expected call of VerifyConsensusArgs.
type MockConsensusState ¶
type MockConsensusState struct {
// contains filtered or unexported fields
}
MockConsensusState is a mock of ConsensusState interface.
func NewMockConsensusState ¶
func NewMockConsensusState(ctrl *gomock.Controller) *MockConsensusState
NewMockConsensusState creates a new mock instance.
func (*MockConsensusState) EXPECT ¶
func (m *MockConsensusState) EXPECT() *MockConsensusStateMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockConsensusState) GetAllNodeInfos ¶
func (m *MockConsensusState) GetAllNodeInfos() []consensus.ConsensusNodeInfo
GetAllNodeInfos mocks base method.
func (*MockConsensusState) GetConsensusStateJSON ¶
func (m *MockConsensusState) GetConsensusStateJSON() ([]byte, error)
GetConsensusStateJSON mocks base method.
func (*MockConsensusState) GetConsensusType ¶
func (m *MockConsensusState) GetConsensusType() consensus.ConsensusType
GetConsensusType mocks base method.
func (*MockConsensusState) GetLastHeight ¶
func (m *MockConsensusState) GetLastHeight() uint64
GetLastHeight mocks base method.
func (*MockConsensusState) GetValidators ¶
func (m *MockConsensusState) GetValidators() ([]string, error)
GetValidators mocks base method.
type MockConsensusStateMockRecorder ¶
type MockConsensusStateMockRecorder struct {
// contains filtered or unexported fields
}
MockConsensusStateMockRecorder is the mock recorder for MockConsensusState.
func (*MockConsensusStateMockRecorder) GetAllNodeInfos ¶
func (mr *MockConsensusStateMockRecorder) GetAllNodeInfos() *gomock.Call
GetAllNodeInfos indicates an expected call of GetAllNodeInfos.
func (*MockConsensusStateMockRecorder) GetConsensusStateJSON ¶
func (mr *MockConsensusStateMockRecorder) GetConsensusStateJSON() *gomock.Call
GetConsensusStateJSON indicates an expected call of GetConsensusStateJSON.
func (*MockConsensusStateMockRecorder) GetConsensusType ¶
func (mr *MockConsensusStateMockRecorder) GetConsensusType() *gomock.Call
GetConsensusType indicates an expected call of GetConsensusType.
func (*MockConsensusStateMockRecorder) GetLastHeight ¶
func (mr *MockConsensusStateMockRecorder) GetLastHeight() *gomock.Call
GetLastHeight indicates an expected call of GetLastHeight.
func (*MockConsensusStateMockRecorder) GetValidators ¶
func (mr *MockConsensusStateMockRecorder) GetValidators() *gomock.Call
GetValidators indicates an expected call of GetValidators.
type MockConsensusStateWrapper ¶
type MockConsensusStateWrapper struct {
// contains filtered or unexported fields
}
MockConsensusStateWrapper is a mock of ConsensusStateWrapper interface.
func NewMockConsensusStateWrapper ¶
func NewMockConsensusStateWrapper(ctrl *gomock.Controller) *MockConsensusStateWrapper
NewMockConsensusStateWrapper creates a new mock instance.
func (*MockConsensusStateWrapper) EXPECT ¶
func (m *MockConsensusStateWrapper) EXPECT() *MockConsensusStateWrapperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockConsensusStateWrapper) GetAllNodeInfos ¶
func (m *MockConsensusStateWrapper) GetAllNodeInfos() []consensus.ConsensusNodeInfo
GetAllNodeInfos mocks base method.
func (*MockConsensusStateWrapper) IsValid ¶ added in v3.0.1
func (m *MockConsensusStateWrapper) IsValid() bool
IsValid mocks base method.
func (*MockConsensusStateWrapper) Wrap ¶
func (m *MockConsensusStateWrapper) Wrap(arg0 protocol.ConsensusState)
Wrap mocks base method.
type MockConsensusStateWrapperMockRecorder ¶
type MockConsensusStateWrapperMockRecorder struct {
// contains filtered or unexported fields
}
MockConsensusStateWrapperMockRecorder is the mock recorder for MockConsensusStateWrapper.
func (*MockConsensusStateWrapperMockRecorder) GetAllNodeInfos ¶
func (mr *MockConsensusStateWrapperMockRecorder) GetAllNodeInfos() *gomock.Call
GetAllNodeInfos indicates an expected call of GetAllNodeInfos.
func (*MockConsensusStateWrapperMockRecorder) IsValid ¶ added in v3.0.1
func (mr *MockConsensusStateWrapperMockRecorder) IsValid() *gomock.Call
IsValid indicates an expected call of IsValid.
func (*MockConsensusStateWrapperMockRecorder) Wrap ¶
func (mr *MockConsensusStateWrapperMockRecorder) Wrap(arg0 interface{}) *gomock.Call
Wrap indicates an expected call of Wrap.
type MockContractWacsiCommon ¶
type MockContractWacsiCommon struct {
// contains filtered or unexported fields
}
MockContractWacsiCommon is a mock of ContractWacsiCommon interface.
func NewMockContractWacsiCommon ¶
func NewMockContractWacsiCommon(ctrl *gomock.Controller) *MockContractWacsiCommon
NewMockContractWacsiCommon creates a new mock instance.
func (*MockContractWacsiCommon) CallContract ¶
func (m *MockContractWacsiCommon) CallContract() int32
CallContract mocks base method.
func (*MockContractWacsiCommon) EXPECT ¶
func (m *MockContractWacsiCommon) EXPECT() *MockContractWacsiCommonMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockContractWacsiCommon) ErrorResult ¶
func (m *MockContractWacsiCommon) ErrorResult() int32
ErrorResult mocks base method.
func (*MockContractWacsiCommon) LogMessage ¶
func (m *MockContractWacsiCommon) LogMessage() int32
LogMessage mocks base method.
func (*MockContractWacsiCommon) SuccessResult ¶
func (m *MockContractWacsiCommon) SuccessResult() int32
SuccessResult mocks base method.
type MockContractWacsiCommonMockRecorder ¶
type MockContractWacsiCommonMockRecorder struct {
// contains filtered or unexported fields
}
MockContractWacsiCommonMockRecorder is the mock recorder for MockContractWacsiCommon.
func (*MockContractWacsiCommonMockRecorder) CallContract ¶
func (mr *MockContractWacsiCommonMockRecorder) CallContract() *gomock.Call
CallContract indicates an expected call of CallContract.
func (*MockContractWacsiCommonMockRecorder) ErrorResult ¶
func (mr *MockContractWacsiCommonMockRecorder) ErrorResult() *gomock.Call
ErrorResult indicates an expected call of ErrorResult.
func (*MockContractWacsiCommonMockRecorder) LogMessage ¶
func (mr *MockContractWacsiCommonMockRecorder) LogMessage() *gomock.Call
LogMessage indicates an expected call of LogMessage.
func (*MockContractWacsiCommonMockRecorder) SuccessResult ¶
func (mr *MockContractWacsiCommonMockRecorder) SuccessResult() *gomock.Call
SuccessResult indicates an expected call of SuccessResult.
type MockContractWacsiKV ¶
type MockContractWacsiKV struct {
// contains filtered or unexported fields
}
MockContractWacsiKV is a mock of ContractWacsiKV interface.
func NewMockContractWacsiKV ¶
func NewMockContractWacsiKV(ctrl *gomock.Controller) *MockContractWacsiKV
NewMockContractWacsiKV creates a new mock instance.
func (*MockContractWacsiKV) CallContract ¶
func (m *MockContractWacsiKV) CallContract() int32
CallContract mocks base method.
func (*MockContractWacsiKV) DeleteState ¶
func (m *MockContractWacsiKV) DeleteState() int32
DeleteState mocks base method.
func (*MockContractWacsiKV) EXPECT ¶
func (m *MockContractWacsiKV) EXPECT() *MockContractWacsiKVMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockContractWacsiKV) ErrorResult ¶
func (m *MockContractWacsiKV) ErrorResult() int32
ErrorResult mocks base method.
func (*MockContractWacsiKV) GetState ¶
func (m *MockContractWacsiKV) GetState() int32
GetState mocks base method.
func (*MockContractWacsiKV) KvIterator ¶
func (m *MockContractWacsiKV) KvIterator() int32
KvIterator mocks base method.
func (*MockContractWacsiKV) KvIteratorClose ¶
func (m *MockContractWacsiKV) KvIteratorClose() int32
KvIteratorClose mocks base method.
func (*MockContractWacsiKV) KvIteratorHasNext ¶
func (m *MockContractWacsiKV) KvIteratorHasNext() int32
KvIteratorHasNext mocks base method.
func (*MockContractWacsiKV) KvIteratorNext ¶
func (m *MockContractWacsiKV) KvIteratorNext() int32
KvIteratorNext mocks base method.
func (*MockContractWacsiKV) KvPreIterator ¶
func (m *MockContractWacsiKV) KvPreIterator() int32
KvPreIterator mocks base method.
func (*MockContractWacsiKV) LogMessage ¶
func (m *MockContractWacsiKV) LogMessage() int32
LogMessage mocks base method.
func (*MockContractWacsiKV) PutState ¶
func (m *MockContractWacsiKV) PutState() int32
PutState mocks base method.
func (*MockContractWacsiKV) SuccessResult ¶
func (m *MockContractWacsiKV) SuccessResult() int32
SuccessResult mocks base method.
type MockContractWacsiKVMockRecorder ¶
type MockContractWacsiKVMockRecorder struct {
// contains filtered or unexported fields
}
MockContractWacsiKVMockRecorder is the mock recorder for MockContractWacsiKV.
func (*MockContractWacsiKVMockRecorder) CallContract ¶
func (mr *MockContractWacsiKVMockRecorder) CallContract() *gomock.Call
CallContract indicates an expected call of CallContract.
func (*MockContractWacsiKVMockRecorder) DeleteState ¶
func (mr *MockContractWacsiKVMockRecorder) DeleteState() *gomock.Call
DeleteState indicates an expected call of DeleteState.
func (*MockContractWacsiKVMockRecorder) ErrorResult ¶
func (mr *MockContractWacsiKVMockRecorder) ErrorResult() *gomock.Call
ErrorResult indicates an expected call of ErrorResult.
func (*MockContractWacsiKVMockRecorder) GetState ¶
func (mr *MockContractWacsiKVMockRecorder) GetState() *gomock.Call
GetState indicates an expected call of GetState.
func (*MockContractWacsiKVMockRecorder) KvIterator ¶
func (mr *MockContractWacsiKVMockRecorder) KvIterator() *gomock.Call
KvIterator indicates an expected call of KvIterator.
func (*MockContractWacsiKVMockRecorder) KvIteratorClose ¶
func (mr *MockContractWacsiKVMockRecorder) KvIteratorClose() *gomock.Call
KvIteratorClose indicates an expected call of KvIteratorClose.
func (*MockContractWacsiKVMockRecorder) KvIteratorHasNext ¶
func (mr *MockContractWacsiKVMockRecorder) KvIteratorHasNext() *gomock.Call
KvIteratorHasNext indicates an expected call of KvIteratorHasNext.
func (*MockContractWacsiKVMockRecorder) KvIteratorNext ¶
func (mr *MockContractWacsiKVMockRecorder) KvIteratorNext() *gomock.Call
KvIteratorNext indicates an expected call of KvIteratorNext.
func (*MockContractWacsiKVMockRecorder) KvPreIterator ¶
func (mr *MockContractWacsiKVMockRecorder) KvPreIterator() *gomock.Call
KvPreIterator indicates an expected call of KvPreIterator.
func (*MockContractWacsiKVMockRecorder) LogMessage ¶
func (mr *MockContractWacsiKVMockRecorder) LogMessage() *gomock.Call
LogMessage indicates an expected call of LogMessage.
func (*MockContractWacsiKVMockRecorder) PutState ¶
func (mr *MockContractWacsiKVMockRecorder) PutState() *gomock.Call
PutState indicates an expected call of PutState.
func (*MockContractWacsiKVMockRecorder) SuccessResult ¶
func (mr *MockContractWacsiKVMockRecorder) SuccessResult() *gomock.Call
SuccessResult indicates an expected call of SuccessResult.
type MockContractWacsiSQL ¶
type MockContractWacsiSQL struct {
// contains filtered or unexported fields
}
MockContractWacsiSQL is a mock of ContractWacsiSQL interface.
func NewMockContractWacsiSQL ¶
func NewMockContractWacsiSQL(ctrl *gomock.Controller) *MockContractWacsiSQL
NewMockContractWacsiSQL creates a new mock instance.
func (*MockContractWacsiSQL) CallContract ¶
func (m *MockContractWacsiSQL) CallContract() int32
CallContract mocks base method.
func (*MockContractWacsiSQL) EXPECT ¶
func (m *MockContractWacsiSQL) EXPECT() *MockContractWacsiSQLMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockContractWacsiSQL) ErrorResult ¶
func (m *MockContractWacsiSQL) ErrorResult() int32
ErrorResult mocks base method.
func (*MockContractWacsiSQL) ExecuteDDL ¶
func (m *MockContractWacsiSQL) ExecuteDDL() int32
ExecuteDDL mocks base method.
func (*MockContractWacsiSQL) ExecuteQuery ¶
func (m *MockContractWacsiSQL) ExecuteQuery() int32
ExecuteQuery mocks base method.
func (*MockContractWacsiSQL) ExecuteQueryOne ¶
func (m *MockContractWacsiSQL) ExecuteQueryOne() int32
ExecuteQueryOne mocks base method.
func (*MockContractWacsiSQL) ExecuteUpdate ¶
func (m *MockContractWacsiSQL) ExecuteUpdate() int32
ExecuteUpdate mocks base method.
func (*MockContractWacsiSQL) LogMessage ¶
func (m *MockContractWacsiSQL) LogMessage() int32
LogMessage mocks base method.
func (*MockContractWacsiSQL) RSClose ¶
func (m *MockContractWacsiSQL) RSClose() int32
RSClose mocks base method.
func (*MockContractWacsiSQL) RSHasNext ¶
func (m *MockContractWacsiSQL) RSHasNext() int32
RSHasNext mocks base method.
func (*MockContractWacsiSQL) RSNext ¶
func (m *MockContractWacsiSQL) RSNext() int32
RSNext mocks base method.
func (*MockContractWacsiSQL) SuccessResult ¶
func (m *MockContractWacsiSQL) SuccessResult() int32
SuccessResult mocks base method.
type MockContractWacsiSQLMockRecorder ¶
type MockContractWacsiSQLMockRecorder struct {
// contains filtered or unexported fields
}
MockContractWacsiSQLMockRecorder is the mock recorder for MockContractWacsiSQL.
func (*MockContractWacsiSQLMockRecorder) CallContract ¶
func (mr *MockContractWacsiSQLMockRecorder) CallContract() *gomock.Call
CallContract indicates an expected call of CallContract.
func (*MockContractWacsiSQLMockRecorder) ErrorResult ¶
func (mr *MockContractWacsiSQLMockRecorder) ErrorResult() *gomock.Call
ErrorResult indicates an expected call of ErrorResult.
func (*MockContractWacsiSQLMockRecorder) ExecuteDDL ¶
func (mr *MockContractWacsiSQLMockRecorder) ExecuteDDL() *gomock.Call
ExecuteDDL indicates an expected call of ExecuteDDL.
func (*MockContractWacsiSQLMockRecorder) ExecuteQuery ¶
func (mr *MockContractWacsiSQLMockRecorder) ExecuteQuery() *gomock.Call
ExecuteQuery indicates an expected call of ExecuteQuery.
func (*MockContractWacsiSQLMockRecorder) ExecuteQueryOne ¶
func (mr *MockContractWacsiSQLMockRecorder) ExecuteQueryOne() *gomock.Call
ExecuteQueryOne indicates an expected call of ExecuteQueryOne.
func (*MockContractWacsiSQLMockRecorder) ExecuteUpdate ¶
func (mr *MockContractWacsiSQLMockRecorder) ExecuteUpdate() *gomock.Call
ExecuteUpdate indicates an expected call of ExecuteUpdate.
func (*MockContractWacsiSQLMockRecorder) LogMessage ¶
func (mr *MockContractWacsiSQLMockRecorder) LogMessage() *gomock.Call
LogMessage indicates an expected call of LogMessage.
func (*MockContractWacsiSQLMockRecorder) RSClose ¶
func (mr *MockContractWacsiSQLMockRecorder) RSClose() *gomock.Call
RSClose indicates an expected call of RSClose.
func (*MockContractWacsiSQLMockRecorder) RSHasNext ¶
func (mr *MockContractWacsiSQLMockRecorder) RSHasNext() *gomock.Call
RSHasNext indicates an expected call of RSHasNext.
func (*MockContractWacsiSQLMockRecorder) RSNext ¶
func (mr *MockContractWacsiSQLMockRecorder) RSNext() *gomock.Call
RSNext indicates an expected call of RSNext.
func (*MockContractWacsiSQLMockRecorder) SuccessResult ¶
func (mr *MockContractWacsiSQLMockRecorder) SuccessResult() *gomock.Call
SuccessResult indicates an expected call of SuccessResult.
type MockCoreEngine ¶
type MockCoreEngine struct {
// contains filtered or unexported fields
}
MockCoreEngine is a mock of CoreEngine interface.
func NewMockCoreEngine ¶
func NewMockCoreEngine(ctrl *gomock.Controller) *MockCoreEngine
NewMockCoreEngine creates a new mock instance.
func (*MockCoreEngine) EXPECT ¶
func (m *MockCoreEngine) EXPECT() *MockCoreEngineMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCoreEngine) GetBlockCommitter ¶
func (m *MockCoreEngine) GetBlockCommitter() protocol.BlockCommitter
GetBlockCommitter mocks base method.
func (*MockCoreEngine) GetBlockProposer ¶
func (m *MockCoreEngine) GetBlockProposer() protocol.BlockProposer
GetBlockProposer mocks base method.
func (*MockCoreEngine) GetBlockVerifier ¶
func (m *MockCoreEngine) GetBlockVerifier() protocol.BlockVerifier
GetBlockVerifier mocks base method.
func (*MockCoreEngine) GetMaxbftHelper ¶
func (m *MockCoreEngine) GetMaxbftHelper() protocol.MaxbftHelper
GetMaxbftHelper mocks base method.
func (*MockCoreEngine) OnMessage ¶
func (m *MockCoreEngine) OnMessage(arg0 *msgbus.Message)
OnMessage mocks base method.
type MockCoreEngineMockRecorder ¶
type MockCoreEngineMockRecorder struct {
// contains filtered or unexported fields
}
MockCoreEngineMockRecorder is the mock recorder for MockCoreEngine.
func (*MockCoreEngineMockRecorder) GetBlockCommitter ¶
func (mr *MockCoreEngineMockRecorder) GetBlockCommitter() *gomock.Call
GetBlockCommitter indicates an expected call of GetBlockCommitter.
func (*MockCoreEngineMockRecorder) GetBlockProposer ¶
func (mr *MockCoreEngineMockRecorder) GetBlockProposer() *gomock.Call
GetBlockProposer indicates an expected call of GetBlockProposer.
func (*MockCoreEngineMockRecorder) GetBlockVerifier ¶
func (mr *MockCoreEngineMockRecorder) GetBlockVerifier() *gomock.Call
GetBlockVerifier indicates an expected call of GetBlockVerifier.
func (*MockCoreEngineMockRecorder) GetMaxbftHelper ¶
func (mr *MockCoreEngineMockRecorder) GetMaxbftHelper() *gomock.Call
GetMaxbftHelper indicates an expected call of GetMaxbftHelper.
func (*MockCoreEngineMockRecorder) OnMessage ¶
func (mr *MockCoreEngineMockRecorder) OnMessage(arg0 interface{}) *gomock.Call
OnMessage indicates an expected call of OnMessage.
func (*MockCoreEngineMockRecorder) OnQuit ¶
func (mr *MockCoreEngineMockRecorder) OnQuit() *gomock.Call
OnQuit indicates an expected call of OnQuit.
func (*MockCoreEngineMockRecorder) Start ¶
func (mr *MockCoreEngineMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start.
func (*MockCoreEngineMockRecorder) Stop ¶
func (mr *MockCoreEngineMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
type MockDBHandle ¶
type MockDBHandle struct {
// contains filtered or unexported fields
}
MockDBHandle is a mock of DBHandle interface.
func NewMockDBHandle ¶
func NewMockDBHandle(ctrl *gomock.Controller) *MockDBHandle
NewMockDBHandle creates a new mock instance.
func (*MockDBHandle) CompactRange ¶
func (m *MockDBHandle) CompactRange(start, limit []byte) error
CompactRange mocks base method.
func (*MockDBHandle) Delete ¶
func (m *MockDBHandle) Delete(key []byte) error
Delete mocks base method.
func (*MockDBHandle) EXPECT ¶
func (m *MockDBHandle) EXPECT() *MockDBHandleMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDBHandle) Get ¶
func (m *MockDBHandle) Get(key []byte) ([]byte, error)
Get mocks base method.
func (*MockDBHandle) GetDbType ¶
func (m *MockDBHandle) GetDbType() string
GetDbType mocks base method.
func (*MockDBHandle) GetKeys ¶
func (m *MockDBHandle) GetKeys(keys [][]byte) ([][]byte, error)
GetKeys mocks base method.
func (*MockDBHandle) GetWriteBatchSize ¶
func (m *MockDBHandle) GetWriteBatchSize() uint64
GetWriteBatchSize mocks base method.
func (*MockDBHandle) Has ¶
func (m *MockDBHandle) Has(key []byte) (bool, error)
Has mocks base method.
func (*MockDBHandle) NewIteratorWithPrefix ¶
func (m *MockDBHandle) NewIteratorWithPrefix(prefix []byte) (protocol.Iterator, error)
NewIteratorWithPrefix mocks base method.
func (*MockDBHandle) NewIteratorWithRange ¶
func (m *MockDBHandle) NewIteratorWithRange(start, limit []byte) (protocol.Iterator, error)
NewIteratorWithRange mocks base method.
func (*MockDBHandle) Put ¶
func (m *MockDBHandle) Put(key, value []byte) error
Put mocks base method.
func (*MockDBHandle) WriteBatch ¶
func (m *MockDBHandle) WriteBatch(batch protocol.StoreBatcher, sync bool) error
WriteBatch mocks base method.
type MockDBHandleMockRecorder ¶
type MockDBHandleMockRecorder struct {
// contains filtered or unexported fields
}
MockDBHandleMockRecorder is the mock recorder for MockDBHandle.
func (*MockDBHandleMockRecorder) Close ¶
func (mr *MockDBHandleMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockDBHandleMockRecorder) CompactRange ¶
func (mr *MockDBHandleMockRecorder) CompactRange(start, limit interface{}) *gomock.Call
CompactRange indicates an expected call of CompactRange.
func (*MockDBHandleMockRecorder) Delete ¶
func (mr *MockDBHandleMockRecorder) Delete(key interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockDBHandleMockRecorder) Get ¶
func (mr *MockDBHandleMockRecorder) Get(key interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockDBHandleMockRecorder) GetDbType ¶
func (mr *MockDBHandleMockRecorder) GetDbType() *gomock.Call
GetDbType indicates an expected call of GetDbType.
func (*MockDBHandleMockRecorder) GetKeys ¶
func (mr *MockDBHandleMockRecorder) GetKeys(keys interface{}) *gomock.Call
GetKeys indicates an expected call of GetKeys.
func (*MockDBHandleMockRecorder) GetWriteBatchSize ¶
func (mr *MockDBHandleMockRecorder) GetWriteBatchSize() *gomock.Call
GetWriteBatchSize indicates an expected call of GetWriteBatchSize.
func (*MockDBHandleMockRecorder) Has ¶
func (mr *MockDBHandleMockRecorder) Has(key interface{}) *gomock.Call
Has indicates an expected call of Has.
func (*MockDBHandleMockRecorder) NewIteratorWithPrefix ¶
func (mr *MockDBHandleMockRecorder) NewIteratorWithPrefix(prefix interface{}) *gomock.Call
NewIteratorWithPrefix indicates an expected call of NewIteratorWithPrefix.
func (*MockDBHandleMockRecorder) NewIteratorWithRange ¶
func (mr *MockDBHandleMockRecorder) NewIteratorWithRange(start, limit interface{}) *gomock.Call
NewIteratorWithRange indicates an expected call of NewIteratorWithRange.
func (*MockDBHandleMockRecorder) Put ¶
func (mr *MockDBHandleMockRecorder) Put(key, value interface{}) *gomock.Call
Put indicates an expected call of Put.
func (*MockDBHandleMockRecorder) WriteBatch ¶
func (mr *MockDBHandleMockRecorder) WriteBatch(batch, sync interface{}) *gomock.Call
WriteBatch indicates an expected call of WriteBatch.
type MockDPoS ¶
type MockDPoS struct {
// contains filtered or unexported fields
}
MockDPoS is a mock of DPoS interface.
func NewMockDPoS ¶
func NewMockDPoS(ctrl *gomock.Controller) *MockDPoS
NewMockDPoS creates a new mock instance.
func (*MockDPoS) CreateDPoSRWSet ¶
func (m *MockDPoS) CreateDPoSRWSet(preBlkHash []byte, proposedBlock *consensus.ProposalBlock) error
CreateDPoSRWSet mocks base method.
func (*MockDPoS) EXPECT ¶
func (m *MockDPoS) EXPECT() *MockDPoSMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDPoS) GetValidators ¶
GetValidators mocks base method.
type MockDPoSMockRecorder ¶
type MockDPoSMockRecorder struct {
// contains filtered or unexported fields
}
MockDPoSMockRecorder is the mock recorder for MockDPoS.
func (*MockDPoSMockRecorder) CreateDPoSRWSet ¶
func (mr *MockDPoSMockRecorder) CreateDPoSRWSet(preBlkHash, proposedBlock interface{}) *gomock.Call
CreateDPoSRWSet indicates an expected call of CreateDPoSRWSet.
func (*MockDPoSMockRecorder) GetValidators ¶
func (mr *MockDPoSMockRecorder) GetValidators() *gomock.Call
GetValidators indicates an expected call of GetValidators.
func (*MockDPoSMockRecorder) VerifyConsensusArgs ¶
func (mr *MockDPoSMockRecorder) VerifyConsensusArgs(block, blockTxRwSet interface{}) *gomock.Call
VerifyConsensusArgs indicates an expected call of VerifyConsensusArgs.
type MockGovernment ¶
type MockGovernment struct {
// contains filtered or unexported fields
}
MockGovernment is a mock of Government interface.
func NewMockGovernment ¶
func NewMockGovernment(ctrl *gomock.Controller) *MockGovernment
NewMockGovernment creates a new mock instance.
func (*MockGovernment) EXPECT ¶
func (m *MockGovernment) EXPECT() *MockGovernmentMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGovernment) GetGovernanceContract ¶
func (m *MockGovernment) GetGovernanceContract() (*consensus.GovernanceContract, error)
GetGovernanceContract mocks base method.
func (*MockGovernment) Verify ¶
func (m *MockGovernment) Verify(consensusType consensus.ConsensusType, chainConfig *config.ChainConfig) error
Verify mocks base method.
type MockGovernmentMockRecorder ¶
type MockGovernmentMockRecorder struct {
// contains filtered or unexported fields
}
MockGovernmentMockRecorder is the mock recorder for MockGovernment.
func (*MockGovernmentMockRecorder) GetGovernanceContract ¶
func (mr *MockGovernmentMockRecorder) GetGovernanceContract() *gomock.Call
GetGovernanceContract indicates an expected call of GetGovernanceContract.
func (*MockGovernmentMockRecorder) Verify ¶
func (mr *MockGovernmentMockRecorder) Verify(consensusType, chainConfig interface{}) *gomock.Call
Verify indicates an expected call of Verify.
type MockImportLedgerSnapshot ¶
type MockImportLedgerSnapshot struct {
// contains filtered or unexported fields
}
MockImportLedgerSnapshot is a mock of ImportLedgerSnapshot interface.
func NewMockImportLedgerSnapshot ¶
func NewMockImportLedgerSnapshot(ctrl *gomock.Controller) *MockImportLedgerSnapshot
NewMockImportLedgerSnapshot creates a new mock instance.
func (*MockImportLedgerSnapshot) EXPECT ¶
func (m *MockImportLedgerSnapshot) EXPECT() *MockImportLedgerSnapshotMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockImportLedgerSnapshot) ImportSnapshot ¶
func (m *MockImportLedgerSnapshot) ImportSnapshot(chainID, snapshotPath string, height uint64) error
ImportSnapshot mocks base method.
type MockImportLedgerSnapshotMockRecorder ¶
type MockImportLedgerSnapshotMockRecorder struct {
// contains filtered or unexported fields
}
MockImportLedgerSnapshotMockRecorder is the mock recorder for MockImportLedgerSnapshot.
func (*MockImportLedgerSnapshotMockRecorder) ImportSnapshot ¶
func (mr *MockImportLedgerSnapshotMockRecorder) ImportSnapshot(chainID, snapshotPath, height interface{}) *gomock.Call
ImportSnapshot indicates an expected call of ImportSnapshot.
type MockIterator ¶
type MockIterator struct {
// contains filtered or unexported fields
}
MockIterator is a mock of Iterator interface.
func NewMockIterator ¶
func NewMockIterator(ctrl *gomock.Controller) *MockIterator
NewMockIterator creates a new mock instance.
func (*MockIterator) EXPECT ¶
func (m *MockIterator) EXPECT() *MockIteratorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockIteratorMockRecorder ¶
type MockIteratorMockRecorder struct {
// contains filtered or unexported fields
}
MockIteratorMockRecorder is the mock recorder for MockIterator.
func (*MockIteratorMockRecorder) Error ¶
func (mr *MockIteratorMockRecorder) Error() *gomock.Call
Error indicates an expected call of Error.
func (*MockIteratorMockRecorder) First ¶
func (mr *MockIteratorMockRecorder) First() *gomock.Call
First indicates an expected call of First.
func (*MockIteratorMockRecorder) Key ¶
func (mr *MockIteratorMockRecorder) Key() *gomock.Call
Key indicates an expected call of Key.
func (*MockIteratorMockRecorder) Next ¶
func (mr *MockIteratorMockRecorder) Next() *gomock.Call
Next indicates an expected call of Next.
func (*MockIteratorMockRecorder) Release ¶
func (mr *MockIteratorMockRecorder) Release() *gomock.Call
Release indicates an expected call of Release.
func (*MockIteratorMockRecorder) Value ¶
func (mr *MockIteratorMockRecorder) Value() *gomock.Call
Value indicates an expected call of Value.
type MockKeyHistoryIterator ¶
type MockKeyHistoryIterator struct {
// contains filtered or unexported fields
}
MockKeyHistoryIterator is a mock of KeyHistoryIterator interface.
func NewMockKeyHistoryIterator ¶
func NewMockKeyHistoryIterator(ctrl *gomock.Controller) *MockKeyHistoryIterator
NewMockKeyHistoryIterator creates a new mock instance.
func (*MockKeyHistoryIterator) EXPECT ¶
func (m *MockKeyHistoryIterator) EXPECT() *MockKeyHistoryIteratorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockKeyHistoryIterator) Next ¶
func (m *MockKeyHistoryIterator) Next() bool
Next mocks base method.
func (*MockKeyHistoryIterator) Release ¶
func (m *MockKeyHistoryIterator) Release()
Release mocks base method.
func (*MockKeyHistoryIterator) Value ¶
func (m *MockKeyHistoryIterator) Value() (*store.KeyModification, error)
Value mocks base method.
type MockKeyHistoryIteratorMockRecorder ¶
type MockKeyHistoryIteratorMockRecorder struct {
// contains filtered or unexported fields
}
MockKeyHistoryIteratorMockRecorder is the mock recorder for MockKeyHistoryIterator.
func (*MockKeyHistoryIteratorMockRecorder) Next ¶
func (mr *MockKeyHistoryIteratorMockRecorder) Next() *gomock.Call
Next indicates an expected call of Next.
func (*MockKeyHistoryIteratorMockRecorder) Release ¶
func (mr *MockKeyHistoryIteratorMockRecorder) Release() *gomock.Call
Release indicates an expected call of Release.
func (*MockKeyHistoryIteratorMockRecorder) Value ¶
func (mr *MockKeyHistoryIteratorMockRecorder) Value() *gomock.Call
Value indicates an expected call of Value.
type MockLedgerCache ¶
type MockLedgerCache struct {
// contains filtered or unexported fields
}
MockLedgerCache is a mock of LedgerCache interface.
func NewMockLedgerCache ¶
func NewMockLedgerCache(ctrl *gomock.Controller) *MockLedgerCache
NewMockLedgerCache creates a new mock instance.
func (*MockLedgerCache) CurrentHeight ¶
func (m *MockLedgerCache) CurrentHeight() (uint64, error)
CurrentHeight mocks base method.
func (*MockLedgerCache) EXPECT ¶
func (m *MockLedgerCache) EXPECT() *MockLedgerCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockLedgerCache) GetLastCommittedBlock ¶
func (m *MockLedgerCache) GetLastCommittedBlock() *common.Block
GetLastCommittedBlock mocks base method.
func (*MockLedgerCache) SetLastCommittedBlock ¶
func (m *MockLedgerCache) SetLastCommittedBlock(b *common.Block)
SetLastCommittedBlock mocks base method.
type MockLedgerCacheMockRecorder ¶
type MockLedgerCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockLedgerCacheMockRecorder is the mock recorder for MockLedgerCache.
func (*MockLedgerCacheMockRecorder) CurrentHeight ¶
func (mr *MockLedgerCacheMockRecorder) CurrentHeight() *gomock.Call
CurrentHeight indicates an expected call of CurrentHeight.
func (*MockLedgerCacheMockRecorder) GetLastCommittedBlock ¶
func (mr *MockLedgerCacheMockRecorder) GetLastCommittedBlock() *gomock.Call
GetLastCommittedBlock indicates an expected call of GetLastCommittedBlock.
func (*MockLedgerCacheMockRecorder) SetLastCommittedBlock ¶
func (mr *MockLedgerCacheMockRecorder) SetLastCommittedBlock(b interface{}) *gomock.Call
SetLastCommittedBlock indicates an expected call of SetLastCommittedBlock.
type MockLogger ¶
type MockLogger struct {
// contains filtered or unexported fields
}
MockLogger is a mock of Logger interface.
func NewMockLogger ¶
func NewMockLogger(ctrl *gomock.Controller) *MockLogger
NewMockLogger creates a new mock instance.
func (*MockLogger) DebugDynamic ¶
func (m *MockLogger) DebugDynamic(getStr func() string)
DebugDynamic mocks base method.
func (*MockLogger) Debugf ¶
func (m *MockLogger) Debugf(format string, args ...interface{})
Debugf mocks base method.
func (*MockLogger) Debugw ¶
func (m *MockLogger) Debugw(msg string, keysAndValues ...interface{})
Debugw mocks base method.
func (*MockLogger) EXPECT ¶
func (m *MockLogger) EXPECT() *MockLoggerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockLogger) Errorf ¶
func (m *MockLogger) Errorf(format string, args ...interface{})
Errorf mocks base method.
func (*MockLogger) Errorw ¶
func (m *MockLogger) Errorw(msg string, keysAndValues ...interface{})
Errorw mocks base method.
func (*MockLogger) Fatalf ¶
func (m *MockLogger) Fatalf(format string, args ...interface{})
Fatalf mocks base method.
func (*MockLogger) Fatalw ¶
func (m *MockLogger) Fatalw(msg string, keysAndValues ...interface{})
Fatalw mocks base method.
func (*MockLogger) InfoDynamic ¶
func (m *MockLogger) InfoDynamic(getStr func() string)
InfoDynamic mocks base method.
func (*MockLogger) Infof ¶
func (m *MockLogger) Infof(format string, args ...interface{})
Infof mocks base method.
func (*MockLogger) Infow ¶
func (m *MockLogger) Infow(msg string, keysAndValues ...interface{})
Infow mocks base method.
func (*MockLogger) Panicf ¶
func (m *MockLogger) Panicf(format string, args ...interface{})
Panicf mocks base method.
func (*MockLogger) Panicw ¶
func (m *MockLogger) Panicw(msg string, keysAndValues ...interface{})
Panicw mocks base method.
func (*MockLogger) Warnf ¶
func (m *MockLogger) Warnf(format string, args ...interface{})
Warnf mocks base method.
func (*MockLogger) Warnw ¶
func (m *MockLogger) Warnw(msg string, keysAndValues ...interface{})
Warnw mocks base method.
type MockLoggerMockRecorder ¶
type MockLoggerMockRecorder struct {
// contains filtered or unexported fields
}
MockLoggerMockRecorder is the mock recorder for MockLogger.
func (*MockLoggerMockRecorder) Debug ¶
func (mr *MockLoggerMockRecorder) Debug(args ...interface{}) *gomock.Call
Debug indicates an expected call of Debug.
func (*MockLoggerMockRecorder) DebugDynamic ¶
func (mr *MockLoggerMockRecorder) DebugDynamic(getStr interface{}) *gomock.Call
DebugDynamic indicates an expected call of DebugDynamic.
func (*MockLoggerMockRecorder) Debugf ¶
func (mr *MockLoggerMockRecorder) Debugf(format interface{}, args ...interface{}) *gomock.Call
Debugf indicates an expected call of Debugf.
func (*MockLoggerMockRecorder) Debugw ¶
func (mr *MockLoggerMockRecorder) Debugw(msg interface{}, keysAndValues ...interface{}) *gomock.Call
Debugw indicates an expected call of Debugw.
func (*MockLoggerMockRecorder) Error ¶
func (mr *MockLoggerMockRecorder) Error(args ...interface{}) *gomock.Call
Error indicates an expected call of Error.
func (*MockLoggerMockRecorder) Errorf ¶
func (mr *MockLoggerMockRecorder) Errorf(format interface{}, args ...interface{}) *gomock.Call
Errorf indicates an expected call of Errorf.
func (*MockLoggerMockRecorder) Errorw ¶
func (mr *MockLoggerMockRecorder) Errorw(msg interface{}, keysAndValues ...interface{}) *gomock.Call
Errorw indicates an expected call of Errorw.
func (*MockLoggerMockRecorder) Fatal ¶
func (mr *MockLoggerMockRecorder) Fatal(args ...interface{}) *gomock.Call
Fatal indicates an expected call of Fatal.
func (*MockLoggerMockRecorder) Fatalf ¶
func (mr *MockLoggerMockRecorder) Fatalf(format interface{}, args ...interface{}) *gomock.Call
Fatalf indicates an expected call of Fatalf.
func (*MockLoggerMockRecorder) Fatalw ¶
func (mr *MockLoggerMockRecorder) Fatalw(msg interface{}, keysAndValues ...interface{}) *gomock.Call
Fatalw indicates an expected call of Fatalw.
func (*MockLoggerMockRecorder) Info ¶
func (mr *MockLoggerMockRecorder) Info(args ...interface{}) *gomock.Call
Info indicates an expected call of Info.
func (*MockLoggerMockRecorder) InfoDynamic ¶
func (mr *MockLoggerMockRecorder) InfoDynamic(getStr interface{}) *gomock.Call
InfoDynamic indicates an expected call of InfoDynamic.
func (*MockLoggerMockRecorder) Infof ¶
func (mr *MockLoggerMockRecorder) Infof(format interface{}, args ...interface{}) *gomock.Call
Infof indicates an expected call of Infof.
func (*MockLoggerMockRecorder) Infow ¶
func (mr *MockLoggerMockRecorder) Infow(msg interface{}, keysAndValues ...interface{}) *gomock.Call
Infow indicates an expected call of Infow.
func (*MockLoggerMockRecorder) Panic ¶
func (mr *MockLoggerMockRecorder) Panic(args ...interface{}) *gomock.Call
Panic indicates an expected call of Panic.
func (*MockLoggerMockRecorder) Panicf ¶
func (mr *MockLoggerMockRecorder) Panicf(format interface{}, args ...interface{}) *gomock.Call
Panicf indicates an expected call of Panicf.
func (*MockLoggerMockRecorder) Panicw ¶
func (mr *MockLoggerMockRecorder) Panicw(msg interface{}, keysAndValues ...interface{}) *gomock.Call
Panicw indicates an expected call of Panicw.
func (*MockLoggerMockRecorder) Warn ¶
func (mr *MockLoggerMockRecorder) Warn(args ...interface{}) *gomock.Call
Warn indicates an expected call of Warn.
func (*MockLoggerMockRecorder) Warnf ¶
func (mr *MockLoggerMockRecorder) Warnf(format interface{}, args ...interface{}) *gomock.Call
Warnf indicates an expected call of Warnf.
func (*MockLoggerMockRecorder) Warnw ¶
func (mr *MockLoggerMockRecorder) Warnw(msg interface{}, keysAndValues ...interface{}) *gomock.Call
Warnw indicates an expected call of Warnw.
type MockMember ¶
type MockMember struct {
// contains filtered or unexported fields
}
MockMember is a mock of Member interface.
func NewMockMember ¶
func NewMockMember(ctrl *gomock.Controller) *MockMember
NewMockMember creates a new mock instance.
func (*MockMember) EXPECT ¶
func (m *MockMember) EXPECT() *MockMemberMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMember) GetMember ¶
func (m *MockMember) GetMember() (*accesscontrol.Member, error)
GetMember mocks base method.
func (*MockMember) GetMemberId ¶
func (m *MockMember) GetMemberId() string
GetMemberId mocks base method.
func (*MockMember) GetRole ¶
func (m *MockMember) GetRole() protocol.Role
GetRole mocks base method.
func (*MockMember) Verify ¶
func (m *MockMember) Verify(hashType string, msg, sig []byte) error
Verify mocks base method.
type MockMemberMockRecorder ¶
type MockMemberMockRecorder struct {
// contains filtered or unexported fields
}
MockMemberMockRecorder is the mock recorder for MockMember.
func (*MockMemberMockRecorder) GetMember ¶
func (mr *MockMemberMockRecorder) GetMember() *gomock.Call
GetMember indicates an expected call of GetMember.
func (*MockMemberMockRecorder) GetMemberId ¶
func (mr *MockMemberMockRecorder) GetMemberId() *gomock.Call
GetMemberId indicates an expected call of GetMemberId.
func (*MockMemberMockRecorder) GetOrgId ¶
func (mr *MockMemberMockRecorder) GetOrgId() *gomock.Call
GetOrgId indicates an expected call of GetOrgId.
func (*MockMemberMockRecorder) GetPk ¶
func (mr *MockMemberMockRecorder) GetPk() *gomock.Call
GetPk indicates an expected call of GetPk.
func (*MockMemberMockRecorder) GetRole ¶
func (mr *MockMemberMockRecorder) GetRole() *gomock.Call
GetRole indicates an expected call of GetRole.
func (*MockMemberMockRecorder) GetUid ¶
func (mr *MockMemberMockRecorder) GetUid() *gomock.Call
GetUid indicates an expected call of GetUid.
func (*MockMemberMockRecorder) Verify ¶
func (mr *MockMemberMockRecorder) Verify(hashType, msg, sig interface{}) *gomock.Call
Verify indicates an expected call of Verify.
type MockMemberQuery ¶
type MockMemberQuery struct {
// contains filtered or unexported fields
}
MockMemberQuery is a mock of MemberQuery interface.
func NewMockMemberQuery ¶
func NewMockMemberQuery(ctrl *gomock.Controller) *MockMemberQuery
NewMockMemberQuery creates a new mock instance.
func (*MockMemberQuery) EXPECT ¶
func (m *MockMemberQuery) EXPECT() *MockMemberQueryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMemberQuery) GetMemberExtraData ¶
func (m *MockMemberQuery) GetMemberExtraData(member *accesscontrol.Member) (*accesscontrol.MemberExtraData, error)
GetMemberExtraData mocks base method.
type MockMemberQueryMockRecorder ¶
type MockMemberQueryMockRecorder struct {
// contains filtered or unexported fields
}
MockMemberQueryMockRecorder is the mock recorder for MockMemberQuery.
func (*MockMemberQueryMockRecorder) GetMemberExtraData ¶
func (mr *MockMemberQueryMockRecorder) GetMemberExtraData(member interface{}) *gomock.Call
GetMemberExtraData indicates an expected call of GetMemberExtraData.
type MockNet ¶
type MockNet struct {
// contains filtered or unexported fields
}
MockNet is a mock of Net interface.
func NewMockNet ¶
func NewMockNet(ctrl *gomock.Controller) *MockNet
NewMockNet creates a new mock instance.
func (*MockNet) AddAC ¶
func (m *MockNet) AddAC(chainId string, ac protocol.AccessControlProvider)
AddAC mocks base method.
func (*MockNet) BroadcastWithChainId ¶
BroadcastWithChainId mocks base method.
func (*MockNet) CancelDirectMsgHandle ¶
CancelDirectMsgHandle mocks base method.
func (*MockNet) CancelSubscribeWithChainId ¶
CancelSubscribeWithChainId mocks base method.
func (*MockNet) ChainNodesInfo ¶
func (m *MockNet) ChainNodesInfo(chainId string) ([]*protocol.ChainNodeInfo, error)
ChainNodesInfo mocks base method.
func (*MockNet) DirectMsgHandle ¶
func (m *MockNet) DirectMsgHandle(chainId, msgFlag string, handler protocol.DirectMsgHandler) error
DirectMsgHandle mocks base method.
func (*MockNet) EXPECT ¶
func (m *MockNet) EXPECT() *MockNetMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockNet) GetNodeUidByCertId ¶
GetNodeUidByCertId mocks base method.
func (*MockNet) InitPubSub ¶
InitPubSub mocks base method.
func (*MockNet) ReVerifyPeers ¶
ReVerifyPeers mocks base method.
func (*MockNet) RefreshSeeds ¶
RefreshSeeds mocks base method.
func (*MockNet) SendMsg ¶
SendMsg mocks base method.
func (*MockNet) SetChainCustomTrustRoots ¶
SetChainCustomTrustRoots mocks base method.
func (*MockNet) SetMsgPriority ¶
SetMsgPriority mocks base method.
type MockNetMockRecorder ¶
type MockNetMockRecorder struct {
// contains filtered or unexported fields
}
MockNetMockRecorder is the mock recorder for MockNet.
func (*MockNetMockRecorder) AddAC ¶
func (mr *MockNetMockRecorder) AddAC(chainId, ac interface{}) *gomock.Call
AddAC indicates an expected call of AddAC.
func (*MockNetMockRecorder) AddSeed ¶
func (mr *MockNetMockRecorder) AddSeed(seed interface{}) *gomock.Call
AddSeed indicates an expected call of AddSeed.
func (*MockNetMockRecorder) BroadcastWithChainId ¶
func (mr *MockNetMockRecorder) BroadcastWithChainId(chainId, topic, netMsg interface{}) *gomock.Call
BroadcastWithChainId indicates an expected call of BroadcastWithChainId.
func (*MockNetMockRecorder) CancelDirectMsgHandle ¶
func (mr *MockNetMockRecorder) CancelDirectMsgHandle(chainId, msgFlag interface{}) *gomock.Call
CancelDirectMsgHandle indicates an expected call of CancelDirectMsgHandle.
func (*MockNetMockRecorder) CancelSubscribeWithChainId ¶
func (mr *MockNetMockRecorder) CancelSubscribeWithChainId(chainId, topic interface{}) *gomock.Call
CancelSubscribeWithChainId indicates an expected call of CancelSubscribeWithChainId.
func (*MockNetMockRecorder) ChainNodesInfo ¶
func (mr *MockNetMockRecorder) ChainNodesInfo(chainId interface{}) *gomock.Call
ChainNodesInfo indicates an expected call of ChainNodesInfo.
func (*MockNetMockRecorder) DirectMsgHandle ¶
func (mr *MockNetMockRecorder) DirectMsgHandle(chainId, msgFlag, handler interface{}) *gomock.Call
DirectMsgHandle indicates an expected call of DirectMsgHandle.
func (*MockNetMockRecorder) GetNodeUid ¶
func (mr *MockNetMockRecorder) GetNodeUid() *gomock.Call
GetNodeUid indicates an expected call of GetNodeUid.
func (*MockNetMockRecorder) GetNodeUidByCertId ¶
func (mr *MockNetMockRecorder) GetNodeUidByCertId(certId interface{}) *gomock.Call
GetNodeUidByCertId indicates an expected call of GetNodeUidByCertId.
func (*MockNetMockRecorder) InitPubSub ¶
func (mr *MockNetMockRecorder) InitPubSub(chainId, maxMessageSize interface{}) *gomock.Call
InitPubSub indicates an expected call of InitPubSub.
func (*MockNetMockRecorder) IsRunning ¶
func (mr *MockNetMockRecorder) IsRunning() *gomock.Call
IsRunning indicates an expected call of IsRunning.
func (*MockNetMockRecorder) ReVerifyPeers ¶
func (mr *MockNetMockRecorder) ReVerifyPeers(chainId interface{}) *gomock.Call
ReVerifyPeers indicates an expected call of ReVerifyPeers.
func (*MockNetMockRecorder) RefreshSeeds ¶
func (mr *MockNetMockRecorder) RefreshSeeds(seeds interface{}) *gomock.Call
RefreshSeeds indicates an expected call of RefreshSeeds.
func (*MockNetMockRecorder) SendMsg ¶
func (mr *MockNetMockRecorder) SendMsg(chainId, node, msgFlag, netMsg interface{}) *gomock.Call
SendMsg indicates an expected call of SendMsg.
func (*MockNetMockRecorder) SetChainCustomTrustRoots ¶
func (mr *MockNetMockRecorder) SetChainCustomTrustRoots(chainId, roots interface{}) *gomock.Call
SetChainCustomTrustRoots indicates an expected call of SetChainCustomTrustRoots.
func (*MockNetMockRecorder) SetMsgPriority ¶
func (mr *MockNetMockRecorder) SetMsgPriority(msgFlag, priority interface{}) *gomock.Call
SetMsgPriority indicates an expected call of SetMsgPriority.
func (*MockNetMockRecorder) Start ¶
func (mr *MockNetMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start.
func (*MockNetMockRecorder) Stop ¶
func (mr *MockNetMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
func (*MockNetMockRecorder) SubscribeWithChainId ¶
func (mr *MockNetMockRecorder) SubscribeWithChainId(chainId, topic, handler interface{}) *gomock.Call
SubscribeWithChainId indicates an expected call of SubscribeWithChainId.
type MockNetService ¶
type MockNetService struct {
// contains filtered or unexported fields
}
MockNetService is a mock of NetService interface.
func NewMockNetService ¶
func NewMockNetService(ctrl *gomock.Controller) *MockNetService
NewMockNetService creates a new mock instance.
func (*MockNetService) BroadcastMsg ¶
func (m *MockNetService) BroadcastMsg(msg []byte, msgType net.NetMsg_MsgType) error
BroadcastMsg mocks base method.
func (*MockNetService) CancelConsensusSubscribe ¶
func (m *MockNetService) CancelConsensusSubscribe(msgType net.NetMsg_MsgType) error
CancelConsensusSubscribe mocks base method.
func (*MockNetService) CancelSubscribe ¶
func (m *MockNetService) CancelSubscribe(msgType net.NetMsg_MsgType) error
CancelSubscribe mocks base method.
func (*MockNetService) ConsensusBroadcastMsg ¶
func (m *MockNetService) ConsensusBroadcastMsg(msg []byte, msgType net.NetMsg_MsgType) error
ConsensusBroadcastMsg mocks base method.
func (*MockNetService) ConsensusSubscribe ¶
func (m *MockNetService) ConsensusSubscribe(msgType net.NetMsg_MsgType, handler protocol.MsgHandler) error
ConsensusSubscribe mocks base method.
func (*MockNetService) EXPECT ¶
func (m *MockNetService) EXPECT() *MockNetServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockNetService) GetChainNodesInfoProvider ¶
func (m *MockNetService) GetChainNodesInfoProvider() protocol.ChainNodesInfoProvider
GetChainNodesInfoProvider mocks base method.
func (*MockNetService) GetNodeUidByCertId ¶
func (m *MockNetService) GetNodeUidByCertId(certId string) (string, error)
GetNodeUidByCertId mocks base method.
func (*MockNetService) ReceiveMsg ¶
func (m *MockNetService) ReceiveMsg(msgType net.NetMsg_MsgType, handler protocol.MsgHandler) error
ReceiveMsg mocks base method.
func (*MockNetService) SendMsg ¶
func (m *MockNetService) SendMsg(msg []byte, msgType net.NetMsg_MsgType, to ...string) error
SendMsg mocks base method.
func (*MockNetService) Subscribe ¶
func (m *MockNetService) Subscribe(msgType net.NetMsg_MsgType, handler protocol.MsgHandler) error
Subscribe mocks base method.
type MockNetServiceMockRecorder ¶
type MockNetServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockNetServiceMockRecorder is the mock recorder for MockNetService.
func (*MockNetServiceMockRecorder) BroadcastMsg ¶
func (mr *MockNetServiceMockRecorder) BroadcastMsg(msg, msgType interface{}) *gomock.Call
BroadcastMsg indicates an expected call of BroadcastMsg.
func (*MockNetServiceMockRecorder) CancelConsensusSubscribe ¶
func (mr *MockNetServiceMockRecorder) CancelConsensusSubscribe(msgType interface{}) *gomock.Call
CancelConsensusSubscribe indicates an expected call of CancelConsensusSubscribe.
func (*MockNetServiceMockRecorder) CancelSubscribe ¶
func (mr *MockNetServiceMockRecorder) CancelSubscribe(msgType interface{}) *gomock.Call
CancelSubscribe indicates an expected call of CancelSubscribe.
func (*MockNetServiceMockRecorder) ConsensusBroadcastMsg ¶
func (mr *MockNetServiceMockRecorder) ConsensusBroadcastMsg(msg, msgType interface{}) *gomock.Call
ConsensusBroadcastMsg indicates an expected call of ConsensusBroadcastMsg.
func (*MockNetServiceMockRecorder) ConsensusSubscribe ¶
func (mr *MockNetServiceMockRecorder) ConsensusSubscribe(msgType, handler interface{}) *gomock.Call
ConsensusSubscribe indicates an expected call of ConsensusSubscribe.
func (*MockNetServiceMockRecorder) GetChainNodesInfoProvider ¶
func (mr *MockNetServiceMockRecorder) GetChainNodesInfoProvider() *gomock.Call
GetChainNodesInfoProvider indicates an expected call of GetChainNodesInfoProvider.
func (*MockNetServiceMockRecorder) GetNodeUidByCertId ¶
func (mr *MockNetServiceMockRecorder) GetNodeUidByCertId(certId interface{}) *gomock.Call
GetNodeUidByCertId indicates an expected call of GetNodeUidByCertId.
func (*MockNetServiceMockRecorder) ReceiveMsg ¶
func (mr *MockNetServiceMockRecorder) ReceiveMsg(msgType, handler interface{}) *gomock.Call
ReceiveMsg indicates an expected call of ReceiveMsg.
func (*MockNetServiceMockRecorder) SendMsg ¶
func (mr *MockNetServiceMockRecorder) SendMsg(msg, msgType interface{}, to ...interface{}) *gomock.Call
SendMsg indicates an expected call of SendMsg.
func (*MockNetServiceMockRecorder) Start ¶
func (mr *MockNetServiceMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start.
func (*MockNetServiceMockRecorder) Stop ¶
func (mr *MockNetServiceMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
func (*MockNetServiceMockRecorder) Subscribe ¶
func (mr *MockNetServiceMockRecorder) Subscribe(msgType, handler interface{}) *gomock.Call
Subscribe indicates an expected call of Subscribe.
type MockPrincipal ¶
type MockPrincipal struct {
// contains filtered or unexported fields
}
MockPrincipal is a mock of Principal interface.
func NewMockPrincipal ¶
func NewMockPrincipal(ctrl *gomock.Controller) *MockPrincipal
NewMockPrincipal creates a new mock instance.
func (*MockPrincipal) EXPECT ¶
func (m *MockPrincipal) EXPECT() *MockPrincipalMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPrincipal) GetEndorsement ¶
func (m *MockPrincipal) GetEndorsement() []*common.EndorsementEntry
GetEndorsement mocks base method.
func (*MockPrincipal) GetMessage ¶
func (m *MockPrincipal) GetMessage() []byte
GetMessage mocks base method.
func (*MockPrincipal) GetResourceName ¶
func (m *MockPrincipal) GetResourceName() string
GetResourceName mocks base method.
func (*MockPrincipal) GetTargetOrgId ¶
func (m *MockPrincipal) GetTargetOrgId() string
GetTargetOrgId mocks base method.
type MockPrincipalMockRecorder ¶
type MockPrincipalMockRecorder struct {
// contains filtered or unexported fields
}
MockPrincipalMockRecorder is the mock recorder for MockPrincipal.
func (*MockPrincipalMockRecorder) GetEndorsement ¶
func (mr *MockPrincipalMockRecorder) GetEndorsement() *gomock.Call
GetEndorsement indicates an expected call of GetEndorsement.
func (*MockPrincipalMockRecorder) GetMessage ¶
func (mr *MockPrincipalMockRecorder) GetMessage() *gomock.Call
GetMessage indicates an expected call of GetMessage.
func (*MockPrincipalMockRecorder) GetResourceName ¶
func (mr *MockPrincipalMockRecorder) GetResourceName() *gomock.Call
GetResourceName indicates an expected call of GetResourceName.
func (*MockPrincipalMockRecorder) GetTargetOrgId ¶
func (mr *MockPrincipalMockRecorder) GetTargetOrgId() *gomock.Call
GetTargetOrgId indicates an expected call of GetTargetOrgId.
type MockProposalCache ¶
type MockProposalCache struct {
// contains filtered or unexported fields
}
MockProposalCache is a mock of ProposalCache interface.
func NewMockProposalCache ¶
func NewMockProposalCache(ctrl *gomock.Controller) *MockProposalCache
NewMockProposalCache creates a new mock instance.
func (*MockProposalCache) ClearProposedBlockAt ¶
func (m *MockProposalCache) ClearProposedBlockAt(height uint64)
ClearProposedBlockAt mocks base method.
func (*MockProposalCache) ClearTheBlock ¶
func (m *MockProposalCache) ClearTheBlock(block *common.Block)
ClearTheBlock mocks base method.
func (*MockProposalCache) DiscardBlocks ¶
func (m *MockProposalCache) DiscardBlocks(baseHeight uint64) []*common.Block
DiscardBlocks mocks base method.
func (*MockProposalCache) EXPECT ¶
func (m *MockProposalCache) EXPECT() *MockProposalCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockProposalCache) GetProposedBlock ¶
func (m *MockProposalCache) GetProposedBlock(b *common.Block) (*common.Block, map[string]*common.TxRWSet, map[string][]*common.ContractEvent)
GetProposedBlock mocks base method.
func (*MockProposalCache) GetProposedBlockByHashAndHeight ¶
func (m *MockProposalCache) GetProposedBlockByHashAndHeight(hash []byte, height uint64) (*common.Block, map[string]*common.TxRWSet)
GetProposedBlockByHashAndHeight mocks base method.
func (*MockProposalCache) GetProposedBlocksAt ¶
func (m *MockProposalCache) GetProposedBlocksAt(height uint64) []*common.Block
GetProposedBlocksAt mocks base method.
func (*MockProposalCache) GetSelfProposedBlockAt ¶
func (m *MockProposalCache) GetSelfProposedBlockAt(height uint64) *common.Block
GetSelfProposedBlockAt mocks base method.
func (*MockProposalCache) HasProposedBlockAt ¶
func (m *MockProposalCache) HasProposedBlockAt(height uint64) bool
HasProposedBlockAt mocks base method.
func (*MockProposalCache) IsProposedAt ¶
func (m *MockProposalCache) IsProposedAt(height uint64) bool
IsProposedAt mocks base method.
func (*MockProposalCache) KeepProposedBlock ¶
func (m *MockProposalCache) KeepProposedBlock(hash []byte, height uint64) []*common.Block
KeepProposedBlock mocks base method.
func (*MockProposalCache) ResetProposedAt ¶
func (m *MockProposalCache) ResetProposedAt(height uint64)
ResetProposedAt mocks base method.
func (*MockProposalCache) SetProposedAt ¶
func (m *MockProposalCache) SetProposedAt(height uint64)
SetProposedAt mocks base method.
type MockProposalCacheMockRecorder ¶
type MockProposalCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockProposalCacheMockRecorder is the mock recorder for MockProposalCache.
func (*MockProposalCacheMockRecorder) ClearProposedBlockAt ¶
func (mr *MockProposalCacheMockRecorder) ClearProposedBlockAt(height interface{}) *gomock.Call
ClearProposedBlockAt indicates an expected call of ClearProposedBlockAt.
func (*MockProposalCacheMockRecorder) ClearTheBlock ¶
func (mr *MockProposalCacheMockRecorder) ClearTheBlock(block interface{}) *gomock.Call
ClearTheBlock indicates an expected call of ClearTheBlock.
func (*MockProposalCacheMockRecorder) DiscardBlocks ¶
func (mr *MockProposalCacheMockRecorder) DiscardBlocks(baseHeight interface{}) *gomock.Call
DiscardBlocks indicates an expected call of DiscardBlocks.
func (*MockProposalCacheMockRecorder) GetProposedBlock ¶
func (mr *MockProposalCacheMockRecorder) GetProposedBlock(b interface{}) *gomock.Call
GetProposedBlock indicates an expected call of GetProposedBlock.
func (*MockProposalCacheMockRecorder) GetProposedBlockByHashAndHeight ¶
func (mr *MockProposalCacheMockRecorder) GetProposedBlockByHashAndHeight(hash, height interface{}) *gomock.Call
GetProposedBlockByHashAndHeight indicates an expected call of GetProposedBlockByHashAndHeight.
func (*MockProposalCacheMockRecorder) GetProposedBlocksAt ¶
func (mr *MockProposalCacheMockRecorder) GetProposedBlocksAt(height interface{}) *gomock.Call
GetProposedBlocksAt indicates an expected call of GetProposedBlocksAt.
func (*MockProposalCacheMockRecorder) GetSelfProposedBlockAt ¶
func (mr *MockProposalCacheMockRecorder) GetSelfProposedBlockAt(height interface{}) *gomock.Call
GetSelfProposedBlockAt indicates an expected call of GetSelfProposedBlockAt.
func (*MockProposalCacheMockRecorder) HasProposedBlockAt ¶
func (mr *MockProposalCacheMockRecorder) HasProposedBlockAt(height interface{}) *gomock.Call
HasProposedBlockAt indicates an expected call of HasProposedBlockAt.
func (*MockProposalCacheMockRecorder) IsProposedAt ¶
func (mr *MockProposalCacheMockRecorder) IsProposedAt(height interface{}) *gomock.Call
IsProposedAt indicates an expected call of IsProposedAt.
func (*MockProposalCacheMockRecorder) KeepProposedBlock ¶
func (mr *MockProposalCacheMockRecorder) KeepProposedBlock(hash, height interface{}) *gomock.Call
KeepProposedBlock indicates an expected call of KeepProposedBlock.
func (*MockProposalCacheMockRecorder) ResetProposedAt ¶
func (mr *MockProposalCacheMockRecorder) ResetProposedAt(height interface{}) *gomock.Call
ResetProposedAt indicates an expected call of ResetProposedAt.
func (*MockProposalCacheMockRecorder) SetProposedAt ¶
func (mr *MockProposalCacheMockRecorder) SetProposedAt(height interface{}) *gomock.Call
SetProposedAt indicates an expected call of SetProposedAt.
func (*MockProposalCacheMockRecorder) SetProposedBlock ¶
func (mr *MockProposalCacheMockRecorder) SetProposedBlock(b, rwSetMap, contractEventMap, selfProposed interface{}) *gomock.Call
SetProposedBlock indicates an expected call of SetProposedBlock.
type MockRuntimeInstance ¶
type MockRuntimeInstance struct {
// contains filtered or unexported fields
}
MockRuntimeInstance is a mock of RuntimeInstance interface.
func NewMockRuntimeInstance ¶
func NewMockRuntimeInstance(ctrl *gomock.Controller) *MockRuntimeInstance
NewMockRuntimeInstance creates a new mock instance.
func (*MockRuntimeInstance) EXPECT ¶
func (m *MockRuntimeInstance) EXPECT() *MockRuntimeInstanceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRuntimeInstance) Invoke ¶
func (m *MockRuntimeInstance) Invoke(contractId *common.Contract, method string, byteCode []byte, parameters map[string][]byte, txContext protocol.TxSimContext, gasUsed uint64) (*common.ContractResult, protocol.ExecOrderTxType)
Invoke mocks base method.
type MockRuntimeInstanceMockRecorder ¶
type MockRuntimeInstanceMockRecorder struct {
// contains filtered or unexported fields
}
MockRuntimeInstanceMockRecorder is the mock recorder for MockRuntimeInstance.
func (*MockRuntimeInstanceMockRecorder) Invoke ¶
func (mr *MockRuntimeInstanceMockRecorder) Invoke(contractId, method, byteCode, parameters, txContext, gasUsed interface{}) *gomock.Call
Invoke indicates an expected call of Invoke.
type MockSigningMember ¶
type MockSigningMember struct {
// contains filtered or unexported fields
}
MockSigningMember is a mock of SigningMember interface.
func NewMockSigningMember ¶
func NewMockSigningMember(ctrl *gomock.Controller) *MockSigningMember
NewMockSigningMember creates a new mock instance.
func (*MockSigningMember) EXPECT ¶
func (m *MockSigningMember) EXPECT() *MockSigningMemberMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSigningMember) GetMember ¶
func (m *MockSigningMember) GetMember() (*accesscontrol.Member, error)
GetMember mocks base method.
func (*MockSigningMember) GetMemberId ¶
func (m *MockSigningMember) GetMemberId() string
GetMemberId mocks base method.
func (*MockSigningMember) GetOrgId ¶
func (m *MockSigningMember) GetOrgId() string
GetOrgId mocks base method.
func (*MockSigningMember) GetPk ¶
func (m *MockSigningMember) GetPk() crypto.PublicKey
GetPk mocks base method.
func (*MockSigningMember) GetRole ¶
func (m *MockSigningMember) GetRole() protocol.Role
GetRole mocks base method.
func (*MockSigningMember) GetUid ¶
func (m *MockSigningMember) GetUid() string
GetUid mocks base method.
func (*MockSigningMember) Sign ¶
func (m *MockSigningMember) Sign(hashType string, msg []byte) ([]byte, error)
Sign mocks base method.
func (*MockSigningMember) Verify ¶
func (m *MockSigningMember) Verify(hashType string, msg, sig []byte) error
Verify mocks base method.
type MockSigningMemberMockRecorder ¶
type MockSigningMemberMockRecorder struct {
// contains filtered or unexported fields
}
MockSigningMemberMockRecorder is the mock recorder for MockSigningMember.
func (*MockSigningMemberMockRecorder) GetMember ¶
func (mr *MockSigningMemberMockRecorder) GetMember() *gomock.Call
GetMember indicates an expected call of GetMember.
func (*MockSigningMemberMockRecorder) GetMemberId ¶
func (mr *MockSigningMemberMockRecorder) GetMemberId() *gomock.Call
GetMemberId indicates an expected call of GetMemberId.
func (*MockSigningMemberMockRecorder) GetOrgId ¶
func (mr *MockSigningMemberMockRecorder) GetOrgId() *gomock.Call
GetOrgId indicates an expected call of GetOrgId.
func (*MockSigningMemberMockRecorder) GetPk ¶
func (mr *MockSigningMemberMockRecorder) GetPk() *gomock.Call
GetPk indicates an expected call of GetPk.
func (*MockSigningMemberMockRecorder) GetRole ¶
func (mr *MockSigningMemberMockRecorder) GetRole() *gomock.Call
GetRole indicates an expected call of GetRole.
func (*MockSigningMemberMockRecorder) GetUid ¶
func (mr *MockSigningMemberMockRecorder) GetUid() *gomock.Call
GetUid indicates an expected call of GetUid.
func (*MockSigningMemberMockRecorder) Sign ¶
func (mr *MockSigningMemberMockRecorder) Sign(hashType, msg interface{}) *gomock.Call
Sign indicates an expected call of Sign.
func (*MockSigningMemberMockRecorder) Verify ¶
func (mr *MockSigningMemberMockRecorder) Verify(hashType, msg, sig interface{}) *gomock.Call
Verify indicates an expected call of Verify.
type MockSnapshot ¶
type MockSnapshot struct {
// contains filtered or unexported fields
}
MockSnapshot is a mock of Snapshot interface.
func NewMockSnapshot ¶
func NewMockSnapshot(ctrl *gomock.Controller) *MockSnapshot
NewMockSnapshot creates a new mock instance.
func (*MockSnapshot) ApplyBlock ¶
ApplyBlock mocks base method.
func (*MockSnapshot) ApplyTxSimContext ¶
func (m *MockSnapshot) ApplyTxSimContext(arg0 protocol.TxSimContext, arg1 protocol.ExecOrderTxType, arg2, arg3 bool) (bool, int)
ApplyTxSimContext mocks base method.
func (*MockSnapshot) BuildDAG ¶
BuildDAG mocks base method.
func (*MockSnapshot) EXPECT ¶
func (m *MockSnapshot) EXPECT() *MockSnapshotMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSnapshot) GetBlockFingerprint ¶
func (m *MockSnapshot) GetBlockFingerprint() string
GetBlockFingerprint mocks base method.
func (*MockSnapshot) GetBlockHeight ¶
func (m *MockSnapshot) GetBlockHeight() uint64
GetBlockHeight mocks base method.
func (*MockSnapshot) GetBlockProposer ¶
func (m *MockSnapshot) GetBlockProposer() *accesscontrol.Member
GetBlockProposer mocks base method.
func (*MockSnapshot) GetBlockTimestamp ¶
func (m *MockSnapshot) GetBlockTimestamp() int64
GetBlockTimestamp mocks base method.
func (*MockSnapshot) GetBlockchainStore ¶
func (m *MockSnapshot) GetBlockchainStore() protocol.BlockchainStore
GetBlockchainStore mocks base method.
func (*MockSnapshot) GetKey ¶
GetKey mocks base method.
func (*MockSnapshot) GetKeys ¶
GetKeys mocks base method.
func (*MockSnapshot) GetLastChainConfig ¶
func (m *MockSnapshot) GetLastChainConfig() *config.ChainConfig
GetLastChainConfig mocks base method.
func (*MockSnapshot) GetPreSnapshot ¶
func (m *MockSnapshot) GetPreSnapshot() protocol.Snapshot
GetPreSnapshot mocks base method.
func (*MockSnapshot) GetSnapshotSize ¶
func (m *MockSnapshot) GetSnapshotSize() int
GetSnapshotSize mocks base method.
func (*MockSnapshot) GetSpecialTxTable ¶
func (m *MockSnapshot) GetSpecialTxTable() []*common.Transaction
GetSpecialTxTable mocks base method.
func (*MockSnapshot) GetTxRWSetTable ¶
func (m *MockSnapshot) GetTxRWSetTable() []*common.TxRWSet
GetTxRWSetTable mocks base method.
func (*MockSnapshot) GetTxResultMap ¶
func (m *MockSnapshot) GetTxResultMap() map[string]*common.Result
GetTxResultMap mocks base method.
func (*MockSnapshot) GetTxTable ¶
func (m *MockSnapshot) GetTxTable() []*common.Transaction
GetTxTable mocks base method.
func (*MockSnapshot) SetPreSnapshot ¶
func (m *MockSnapshot) SetPreSnapshot(arg0 protocol.Snapshot)
SetPreSnapshot mocks base method.
type MockSnapshotManager ¶
type MockSnapshotManager struct {
// contains filtered or unexported fields
}
MockSnapshotManager is a mock of SnapshotManager interface.
func NewMockSnapshotManager ¶
func NewMockSnapshotManager(ctrl *gomock.Controller) *MockSnapshotManager
NewMockSnapshotManager creates a new mock instance.
func (*MockSnapshotManager) ClearSnapshot ¶
func (m *MockSnapshotManager) ClearSnapshot(block *common.Block) error
ClearSnapshot mocks base method.
func (*MockSnapshotManager) EXPECT ¶
func (m *MockSnapshotManager) EXPECT() *MockSnapshotManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSnapshotManager) GetSnapshot ¶
func (m *MockSnapshotManager) GetSnapshot(prevBlock, block *common.Block) protocol.Snapshot
GetSnapshot mocks base method.
func (*MockSnapshotManager) NewSnapshot ¶
func (m *MockSnapshotManager) NewSnapshot(prevBlock, block *common.Block) protocol.Snapshot
NewSnapshot mocks base method.
func (*MockSnapshotManager) NotifyBlockCommitted ¶
func (m *MockSnapshotManager) NotifyBlockCommitted(block *common.Block) error
NotifyBlockCommitted mocks base method.
type MockSnapshotManagerMockRecorder ¶
type MockSnapshotManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockSnapshotManagerMockRecorder is the mock recorder for MockSnapshotManager.
func (*MockSnapshotManagerMockRecorder) ClearSnapshot ¶
func (mr *MockSnapshotManagerMockRecorder) ClearSnapshot(block interface{}) *gomock.Call
ClearSnapshot indicates an expected call of ClearSnapshot.
func (*MockSnapshotManagerMockRecorder) GetSnapshot ¶
func (mr *MockSnapshotManagerMockRecorder) GetSnapshot(prevBlock, block interface{}) *gomock.Call
GetSnapshot indicates an expected call of GetSnapshot.
func (*MockSnapshotManagerMockRecorder) NewSnapshot ¶
func (mr *MockSnapshotManagerMockRecorder) NewSnapshot(prevBlock, block interface{}) *gomock.Call
NewSnapshot indicates an expected call of NewSnapshot.
func (*MockSnapshotManagerMockRecorder) NotifyBlockCommitted ¶
func (mr *MockSnapshotManagerMockRecorder) NotifyBlockCommitted(block interface{}) *gomock.Call
NotifyBlockCommitted indicates an expected call of NotifyBlockCommitted.
type MockSnapshotMockRecorder ¶
type MockSnapshotMockRecorder struct {
// contains filtered or unexported fields
}
MockSnapshotMockRecorder is the mock recorder for MockSnapshot.
func (*MockSnapshotMockRecorder) ApplyBlock ¶
func (mr *MockSnapshotMockRecorder) ApplyBlock(block, txRWSetMap interface{}) *gomock.Call
ApplyBlock indicates an expected call of ApplyBlock.
func (*MockSnapshotMockRecorder) ApplyTxSimContext ¶
func (mr *MockSnapshotMockRecorder) ApplyTxSimContext(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
ApplyTxSimContext indicates an expected call of ApplyTxSimContext.
func (*MockSnapshotMockRecorder) BuildDAG ¶
func (mr *MockSnapshotMockRecorder) BuildDAG(isSql, txRWSetTable interface{}) *gomock.Call
BuildDAG indicates an expected call of BuildDAG.
func (*MockSnapshotMockRecorder) GetBlockFingerprint ¶
func (mr *MockSnapshotMockRecorder) GetBlockFingerprint() *gomock.Call
GetBlockFingerprint indicates an expected call of GetBlockFingerprint.
func (*MockSnapshotMockRecorder) GetBlockHeight ¶
func (mr *MockSnapshotMockRecorder) GetBlockHeight() *gomock.Call
GetBlockHeight indicates an expected call of GetBlockHeight.
func (*MockSnapshotMockRecorder) GetBlockProposer ¶
func (mr *MockSnapshotMockRecorder) GetBlockProposer() *gomock.Call
GetBlockProposer indicates an expected call of GetBlockProposer.
func (*MockSnapshotMockRecorder) GetBlockTimestamp ¶
func (mr *MockSnapshotMockRecorder) GetBlockTimestamp() *gomock.Call
GetBlockTimestamp indicates an expected call of GetBlockTimestamp.
func (*MockSnapshotMockRecorder) GetBlockchainStore ¶
func (mr *MockSnapshotMockRecorder) GetBlockchainStore() *gomock.Call
GetBlockchainStore indicates an expected call of GetBlockchainStore.
func (*MockSnapshotMockRecorder) GetKey ¶
func (mr *MockSnapshotMockRecorder) GetKey(txExecSeq, contractName, key interface{}) *gomock.Call
GetKey indicates an expected call of GetKey.
func (*MockSnapshotMockRecorder) GetKeys ¶
func (mr *MockSnapshotMockRecorder) GetKeys(txExecSeq, keys interface{}) *gomock.Call
GetKeys indicates an expected call of GetKeys.
func (*MockSnapshotMockRecorder) GetLastChainConfig ¶
func (mr *MockSnapshotMockRecorder) GetLastChainConfig() *gomock.Call
GetLastChainConfig indicates an expected call of GetLastChainConfig.
func (*MockSnapshotMockRecorder) GetPreSnapshot ¶
func (mr *MockSnapshotMockRecorder) GetPreSnapshot() *gomock.Call
GetPreSnapshot indicates an expected call of GetPreSnapshot.
func (*MockSnapshotMockRecorder) GetSnapshotSize ¶
func (mr *MockSnapshotMockRecorder) GetSnapshotSize() *gomock.Call
GetSnapshotSize indicates an expected call of GetSnapshotSize.
func (*MockSnapshotMockRecorder) GetSpecialTxTable ¶
func (mr *MockSnapshotMockRecorder) GetSpecialTxTable() *gomock.Call
GetSpecialTxTable indicates an expected call of GetSpecialTxTable.
func (*MockSnapshotMockRecorder) GetTxRWSetTable ¶
func (mr *MockSnapshotMockRecorder) GetTxRWSetTable() *gomock.Call
GetTxRWSetTable indicates an expected call of GetTxRWSetTable.
func (*MockSnapshotMockRecorder) GetTxResultMap ¶
func (mr *MockSnapshotMockRecorder) GetTxResultMap() *gomock.Call
GetTxResultMap indicates an expected call of GetTxResultMap.
func (*MockSnapshotMockRecorder) GetTxTable ¶
func (mr *MockSnapshotMockRecorder) GetTxTable() *gomock.Call
GetTxTable indicates an expected call of GetTxTable.
func (*MockSnapshotMockRecorder) IsSealed ¶
func (mr *MockSnapshotMockRecorder) IsSealed() *gomock.Call
IsSealed indicates an expected call of IsSealed.
func (*MockSnapshotMockRecorder) Seal ¶
func (mr *MockSnapshotMockRecorder) Seal() *gomock.Call
Seal indicates an expected call of Seal.
func (*MockSnapshotMockRecorder) SetPreSnapshot ¶
func (mr *MockSnapshotMockRecorder) SetPreSnapshot(arg0 interface{}) *gomock.Call
SetPreSnapshot indicates an expected call of SetPreSnapshot.
type MockSqlDBHandle ¶
type MockSqlDBHandle struct {
// contains filtered or unexported fields
}
MockSqlDBHandle is a mock of SqlDBHandle interface.
func NewMockSqlDBHandle ¶
func NewMockSqlDBHandle(ctrl *gomock.Controller) *MockSqlDBHandle
NewMockSqlDBHandle creates a new mock instance.
func (*MockSqlDBHandle) BeginDbTransaction ¶
func (m *MockSqlDBHandle) BeginDbTransaction(txName string) (protocol.SqlDBTransaction, error)
BeginDbTransaction mocks base method.
func (*MockSqlDBHandle) CommitDbTransaction ¶
func (m *MockSqlDBHandle) CommitDbTransaction(txName string) error
CommitDbTransaction mocks base method.
func (*MockSqlDBHandle) CompactRange ¶
func (m *MockSqlDBHandle) CompactRange(start, limit []byte) error
CompactRange mocks base method.
func (*MockSqlDBHandle) CreateDatabaseIfNotExist ¶
func (m *MockSqlDBHandle) CreateDatabaseIfNotExist(dbName string) (bool, error)
CreateDatabaseIfNotExist mocks base method.
func (*MockSqlDBHandle) CreateTableIfNotExist ¶
func (m *MockSqlDBHandle) CreateTableIfNotExist(obj interface{}) error
CreateTableIfNotExist mocks base method.
func (*MockSqlDBHandle) Delete ¶
func (m *MockSqlDBHandle) Delete(key []byte) error
Delete mocks base method.
func (*MockSqlDBHandle) Dump ¶
func (m *MockSqlDBHandle) Dump(dumpDir, fileNamePre string) (string, error)
Dump mocks base method.
func (*MockSqlDBHandle) EXPECT ¶
func (m *MockSqlDBHandle) EXPECT() *MockSqlDBHandleMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSqlDBHandle) ExecSql ¶
func (m *MockSqlDBHandle) ExecSql(sql string, values ...interface{}) (int64, error)
ExecSql mocks base method.
func (*MockSqlDBHandle) Get ¶
func (m *MockSqlDBHandle) Get(key []byte) ([]byte, error)
Get mocks base method.
func (*MockSqlDBHandle) GetDbTransaction ¶
func (m *MockSqlDBHandle) GetDbTransaction(txName string) (protocol.SqlDBTransaction, error)
GetDbTransaction mocks base method.
func (*MockSqlDBHandle) GetDbType ¶
func (m *MockSqlDBHandle) GetDbType() string
GetDbType mocks base method.
func (*MockSqlDBHandle) GetKeys ¶
func (m *MockSqlDBHandle) GetKeys(keys [][]byte) ([][]byte, error)
GetKeys mocks base method.
func (*MockSqlDBHandle) GetSqlDbType ¶
func (m *MockSqlDBHandle) GetSqlDbType() string
GetSqlDbType mocks base method.
func (*MockSqlDBHandle) GetWriteBatchSize ¶
func (m *MockSqlDBHandle) GetWriteBatchSize() uint64
GetWriteBatchSize mocks base method.
func (*MockSqlDBHandle) Has ¶
func (m *MockSqlDBHandle) Has(key []byte) (bool, error)
Has mocks base method.
func (*MockSqlDBHandle) NewIteratorWithPrefix ¶
func (m *MockSqlDBHandle) NewIteratorWithPrefix(prefix []byte) (protocol.Iterator, error)
NewIteratorWithPrefix mocks base method.
func (*MockSqlDBHandle) NewIteratorWithRange ¶
func (m *MockSqlDBHandle) NewIteratorWithRange(start, limit []byte) (protocol.Iterator, error)
NewIteratorWithRange mocks base method.
func (*MockSqlDBHandle) Put ¶
func (m *MockSqlDBHandle) Put(key, value []byte) error
Put mocks base method.
func (*MockSqlDBHandle) QueryMulti ¶
func (m *MockSqlDBHandle) QueryMulti(sql string, values ...interface{}) (protocol.SqlRows, error)
QueryMulti mocks base method.
func (*MockSqlDBHandle) QuerySingle ¶
func (m *MockSqlDBHandle) QuerySingle(sql string, values ...interface{}) (protocol.SqlRow, error)
QuerySingle mocks base method.
func (*MockSqlDBHandle) RollbackDbTransaction ¶
func (m *MockSqlDBHandle) RollbackDbTransaction(txName string) error
RollbackDbTransaction mocks base method.
func (*MockSqlDBHandle) Save ¶
func (m *MockSqlDBHandle) Save(value interface{}) (int64, error)
Save mocks base method.
func (*MockSqlDBHandle) WriteBatch ¶
func (m *MockSqlDBHandle) WriteBatch(batch protocol.StoreBatcher, sync bool) error
WriteBatch mocks base method.
type MockSqlDBHandleMockRecorder ¶
type MockSqlDBHandleMockRecorder struct {
// contains filtered or unexported fields
}
MockSqlDBHandleMockRecorder is the mock recorder for MockSqlDBHandle.
func (*MockSqlDBHandleMockRecorder) BeginDbTransaction ¶
func (mr *MockSqlDBHandleMockRecorder) BeginDbTransaction(txName interface{}) *gomock.Call
BeginDbTransaction indicates an expected call of BeginDbTransaction.
func (*MockSqlDBHandleMockRecorder) Close ¶
func (mr *MockSqlDBHandleMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockSqlDBHandleMockRecorder) CommitDbTransaction ¶
func (mr *MockSqlDBHandleMockRecorder) CommitDbTransaction(txName interface{}) *gomock.Call
CommitDbTransaction indicates an expected call of CommitDbTransaction.
func (*MockSqlDBHandleMockRecorder) CompactRange ¶
func (mr *MockSqlDBHandleMockRecorder) CompactRange(start, limit interface{}) *gomock.Call
CompactRange indicates an expected call of CompactRange.
func (*MockSqlDBHandleMockRecorder) CreateDatabaseIfNotExist ¶
func (mr *MockSqlDBHandleMockRecorder) CreateDatabaseIfNotExist(dbName interface{}) *gomock.Call
CreateDatabaseIfNotExist indicates an expected call of CreateDatabaseIfNotExist.
func (*MockSqlDBHandleMockRecorder) CreateTableIfNotExist ¶
func (mr *MockSqlDBHandleMockRecorder) CreateTableIfNotExist(obj interface{}) *gomock.Call
CreateTableIfNotExist indicates an expected call of CreateTableIfNotExist.
func (*MockSqlDBHandleMockRecorder) Delete ¶
func (mr *MockSqlDBHandleMockRecorder) Delete(key interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockSqlDBHandleMockRecorder) Dump ¶
func (mr *MockSqlDBHandleMockRecorder) Dump(dumpDir, fileNamePre interface{}) *gomock.Call
Dump indicates an expected call of Dump.
func (*MockSqlDBHandleMockRecorder) ExecSql ¶
func (mr *MockSqlDBHandleMockRecorder) ExecSql(sql interface{}, values ...interface{}) *gomock.Call
ExecSql indicates an expected call of ExecSql.
func (*MockSqlDBHandleMockRecorder) Get ¶
func (mr *MockSqlDBHandleMockRecorder) Get(key interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockSqlDBHandleMockRecorder) GetDbTransaction ¶
func (mr *MockSqlDBHandleMockRecorder) GetDbTransaction(txName interface{}) *gomock.Call
GetDbTransaction indicates an expected call of GetDbTransaction.
func (*MockSqlDBHandleMockRecorder) GetDbType ¶
func (mr *MockSqlDBHandleMockRecorder) GetDbType() *gomock.Call
GetDbType indicates an expected call of GetDbType.
func (*MockSqlDBHandleMockRecorder) GetKeys ¶
func (mr *MockSqlDBHandleMockRecorder) GetKeys(keys interface{}) *gomock.Call
GetKeys indicates an expected call of GetKeys.
func (*MockSqlDBHandleMockRecorder) GetSqlDbType ¶
func (mr *MockSqlDBHandleMockRecorder) GetSqlDbType() *gomock.Call
GetSqlDbType indicates an expected call of GetSqlDbType.
func (*MockSqlDBHandleMockRecorder) GetWriteBatchSize ¶
func (mr *MockSqlDBHandleMockRecorder) GetWriteBatchSize() *gomock.Call
GetWriteBatchSize indicates an expected call of GetWriteBatchSize.
func (*MockSqlDBHandleMockRecorder) Has ¶
func (mr *MockSqlDBHandleMockRecorder) Has(key interface{}) *gomock.Call
Has indicates an expected call of Has.
func (*MockSqlDBHandleMockRecorder) NewIteratorWithPrefix ¶
func (mr *MockSqlDBHandleMockRecorder) NewIteratorWithPrefix(prefix interface{}) *gomock.Call
NewIteratorWithPrefix indicates an expected call of NewIteratorWithPrefix.
func (*MockSqlDBHandleMockRecorder) NewIteratorWithRange ¶
func (mr *MockSqlDBHandleMockRecorder) NewIteratorWithRange(start, limit interface{}) *gomock.Call
NewIteratorWithRange indicates an expected call of NewIteratorWithRange.
func (*MockSqlDBHandleMockRecorder) Put ¶
func (mr *MockSqlDBHandleMockRecorder) Put(key, value interface{}) *gomock.Call
Put indicates an expected call of Put.
func (*MockSqlDBHandleMockRecorder) QueryMulti ¶
func (mr *MockSqlDBHandleMockRecorder) QueryMulti(sql interface{}, values ...interface{}) *gomock.Call
QueryMulti indicates an expected call of QueryMulti.
func (*MockSqlDBHandleMockRecorder) QuerySingle ¶
func (mr *MockSqlDBHandleMockRecorder) QuerySingle(sql interface{}, values ...interface{}) *gomock.Call
QuerySingle indicates an expected call of QuerySingle.
func (*MockSqlDBHandleMockRecorder) RollbackDbTransaction ¶
func (mr *MockSqlDBHandleMockRecorder) RollbackDbTransaction(txName interface{}) *gomock.Call
RollbackDbTransaction indicates an expected call of RollbackDbTransaction.
func (*MockSqlDBHandleMockRecorder) Save ¶
func (mr *MockSqlDBHandleMockRecorder) Save(value interface{}) *gomock.Call
Save indicates an expected call of Save.
func (*MockSqlDBHandleMockRecorder) WriteBatch ¶
func (mr *MockSqlDBHandleMockRecorder) WriteBatch(batch, sync interface{}) *gomock.Call
WriteBatch indicates an expected call of WriteBatch.
type MockSqlDBTransaction ¶
type MockSqlDBTransaction struct {
// contains filtered or unexported fields
}
MockSqlDBTransaction is a mock of SqlDBTransaction interface.
func NewMockSqlDBTransaction ¶
func NewMockSqlDBTransaction(ctrl *gomock.Controller) *MockSqlDBTransaction
NewMockSqlDBTransaction creates a new mock instance.
func (*MockSqlDBTransaction) BeginDbSavePoint ¶
func (m *MockSqlDBTransaction) BeginDbSavePoint(savePointName string) error
BeginDbSavePoint mocks base method.
func (*MockSqlDBTransaction) ChangeContextDb ¶
func (m *MockSqlDBTransaction) ChangeContextDb(dbName string) error
ChangeContextDb mocks base method.
func (*MockSqlDBTransaction) EXPECT ¶
func (m *MockSqlDBTransaction) EXPECT() *MockSqlDBTransactionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSqlDBTransaction) ExecSql ¶
func (m *MockSqlDBTransaction) ExecSql(sql string, values ...interface{}) (int64, error)
ExecSql mocks base method.
func (*MockSqlDBTransaction) QueryMulti ¶
func (m *MockSqlDBTransaction) QueryMulti(sql string, values ...interface{}) (protocol.SqlRows, error)
QueryMulti mocks base method.
func (*MockSqlDBTransaction) QuerySingle ¶
func (m *MockSqlDBTransaction) QuerySingle(sql string, values ...interface{}) (protocol.SqlRow, error)
QuerySingle mocks base method.
func (*MockSqlDBTransaction) RollbackDbSavePoint ¶
func (m *MockSqlDBTransaction) RollbackDbSavePoint(savePointName string) error
RollbackDbSavePoint mocks base method.
func (*MockSqlDBTransaction) Save ¶
func (m *MockSqlDBTransaction) Save(value interface{}) (int64, error)
Save mocks base method.
func (*MockSqlDBTransaction) SaveBatch ¶
func (m *MockSqlDBTransaction) SaveBatch(values []interface{}) (int64, error)
SaveBatch mocks base method.
type MockSqlDBTransactionMockRecorder ¶
type MockSqlDBTransactionMockRecorder struct {
// contains filtered or unexported fields
}
MockSqlDBTransactionMockRecorder is the mock recorder for MockSqlDBTransaction.
func (*MockSqlDBTransactionMockRecorder) BeginDbSavePoint ¶
func (mr *MockSqlDBTransactionMockRecorder) BeginDbSavePoint(savePointName interface{}) *gomock.Call
BeginDbSavePoint indicates an expected call of BeginDbSavePoint.
func (*MockSqlDBTransactionMockRecorder) ChangeContextDb ¶
func (mr *MockSqlDBTransactionMockRecorder) ChangeContextDb(dbName interface{}) *gomock.Call
ChangeContextDb indicates an expected call of ChangeContextDb.
func (*MockSqlDBTransactionMockRecorder) ExecSql ¶
func (mr *MockSqlDBTransactionMockRecorder) ExecSql(sql interface{}, values ...interface{}) *gomock.Call
ExecSql indicates an expected call of ExecSql.
func (*MockSqlDBTransactionMockRecorder) QueryMulti ¶
func (mr *MockSqlDBTransactionMockRecorder) QueryMulti(sql interface{}, values ...interface{}) *gomock.Call
QueryMulti indicates an expected call of QueryMulti.
func (*MockSqlDBTransactionMockRecorder) QuerySingle ¶
func (mr *MockSqlDBTransactionMockRecorder) QuerySingle(sql interface{}, values ...interface{}) *gomock.Call
QuerySingle indicates an expected call of QuerySingle.
func (*MockSqlDBTransactionMockRecorder) RollbackDbSavePoint ¶
func (mr *MockSqlDBTransactionMockRecorder) RollbackDbSavePoint(savePointName interface{}) *gomock.Call
RollbackDbSavePoint indicates an expected call of RollbackDbSavePoint.
func (*MockSqlDBTransactionMockRecorder) Save ¶
func (mr *MockSqlDBTransactionMockRecorder) Save(value interface{}) *gomock.Call
Save indicates an expected call of Save.
func (*MockSqlDBTransactionMockRecorder) SaveBatch ¶
func (mr *MockSqlDBTransactionMockRecorder) SaveBatch(values interface{}) *gomock.Call
SaveBatch indicates an expected call of SaveBatch.
type MockSqlRow ¶
type MockSqlRow struct {
// contains filtered or unexported fields
}
MockSqlRow is a mock of SqlRow interface.
func NewMockSqlRow ¶
func NewMockSqlRow(ctrl *gomock.Controller) *MockSqlRow
NewMockSqlRow creates a new mock instance.
func (*MockSqlRow) Data ¶
func (m *MockSqlRow) Data() (map[string][]byte, error)
Data mocks base method.
func (*MockSqlRow) EXPECT ¶
func (m *MockSqlRow) EXPECT() *MockSqlRowMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSqlRow) ScanColumns ¶
func (m *MockSqlRow) ScanColumns(dest ...interface{}) error
ScanColumns mocks base method.
type MockSqlRowMockRecorder ¶
type MockSqlRowMockRecorder struct {
// contains filtered or unexported fields
}
MockSqlRowMockRecorder is the mock recorder for MockSqlRow.
func (*MockSqlRowMockRecorder) Data ¶
func (mr *MockSqlRowMockRecorder) Data() *gomock.Call
Data indicates an expected call of Data.
func (*MockSqlRowMockRecorder) IsEmpty ¶
func (mr *MockSqlRowMockRecorder) IsEmpty() *gomock.Call
IsEmpty indicates an expected call of IsEmpty.
func (*MockSqlRowMockRecorder) ScanColumns ¶
func (mr *MockSqlRowMockRecorder) ScanColumns(dest ...interface{}) *gomock.Call
ScanColumns indicates an expected call of ScanColumns.
type MockSqlRows ¶
type MockSqlRows struct {
// contains filtered or unexported fields
}
MockSqlRows is a mock of SqlRows interface.
func NewMockSqlRows ¶
func NewMockSqlRows(ctrl *gomock.Controller) *MockSqlRows
NewMockSqlRows creates a new mock instance.
func (*MockSqlRows) Data ¶
func (m *MockSqlRows) Data() (map[string][]byte, error)
Data mocks base method.
func (*MockSqlRows) EXPECT ¶
func (m *MockSqlRows) EXPECT() *MockSqlRowsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSqlRows) ScanColumns ¶
func (m *MockSqlRows) ScanColumns(dest ...interface{}) error
ScanColumns mocks base method.
type MockSqlRowsMockRecorder ¶
type MockSqlRowsMockRecorder struct {
// contains filtered or unexported fields
}
MockSqlRowsMockRecorder is the mock recorder for MockSqlRows.
func (*MockSqlRowsMockRecorder) Close ¶
func (mr *MockSqlRowsMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockSqlRowsMockRecorder) Data ¶
func (mr *MockSqlRowsMockRecorder) Data() *gomock.Call
Data indicates an expected call of Data.
func (*MockSqlRowsMockRecorder) Next ¶
func (mr *MockSqlRowsMockRecorder) Next() *gomock.Call
Next indicates an expected call of Next.
func (*MockSqlRowsMockRecorder) ScanColumns ¶
func (mr *MockSqlRowsMockRecorder) ScanColumns(dest ...interface{}) *gomock.Call
ScanColumns indicates an expected call of ScanColumns.
type MockSqlVerifier ¶
type MockSqlVerifier struct {
// contains filtered or unexported fields
}
MockSqlVerifier is a mock of SqlVerifier interface.
func NewMockSqlVerifier ¶
func NewMockSqlVerifier(ctrl *gomock.Controller) *MockSqlVerifier
NewMockSqlVerifier creates a new mock instance.
func (*MockSqlVerifier) EXPECT ¶
func (m *MockSqlVerifier) EXPECT() *MockSqlVerifierMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSqlVerifier) VerifyDDLSql ¶
func (m *MockSqlVerifier) VerifyDDLSql(sql string) error
VerifyDDLSql mocks base method.
func (*MockSqlVerifier) VerifyDMLSql ¶
func (m *MockSqlVerifier) VerifyDMLSql(sql string) error
VerifyDMLSql mocks base method.
func (*MockSqlVerifier) VerifyDQLSql ¶
func (m *MockSqlVerifier) VerifyDQLSql(sql string) error
VerifyDQLSql mocks base method.
type MockSqlVerifierMockRecorder ¶
type MockSqlVerifierMockRecorder struct {
// contains filtered or unexported fields
}
MockSqlVerifierMockRecorder is the mock recorder for MockSqlVerifier.
func (*MockSqlVerifierMockRecorder) VerifyDDLSql ¶
func (mr *MockSqlVerifierMockRecorder) VerifyDDLSql(sql interface{}) *gomock.Call
VerifyDDLSql indicates an expected call of VerifyDDLSql.
func (*MockSqlVerifierMockRecorder) VerifyDMLSql ¶
func (mr *MockSqlVerifierMockRecorder) VerifyDMLSql(sql interface{}) *gomock.Call
VerifyDMLSql indicates an expected call of VerifyDMLSql.
func (*MockSqlVerifierMockRecorder) VerifyDQLSql ¶
func (mr *MockSqlVerifierMockRecorder) VerifyDQLSql(sql interface{}) *gomock.Call
VerifyDQLSql indicates an expected call of VerifyDQLSql.
type MockStateIterator ¶
type MockStateIterator struct {
// contains filtered or unexported fields
}
MockStateIterator is a mock of StateIterator interface.
func NewMockStateIterator ¶
func NewMockStateIterator(ctrl *gomock.Controller) *MockStateIterator
NewMockStateIterator creates a new mock instance.
func (*MockStateIterator) EXPECT ¶
func (m *MockStateIterator) EXPECT() *MockStateIteratorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStateIterator) Release ¶
func (m *MockStateIterator) Release()
Release mocks base method.
func (*MockStateIterator) Value ¶
func (m *MockStateIterator) Value() (*store.KV, error)
Value mocks base method.
type MockStateIteratorMockRecorder ¶
type MockStateIteratorMockRecorder struct {
// contains filtered or unexported fields
}
MockStateIteratorMockRecorder is the mock recorder for MockStateIterator.
func (*MockStateIteratorMockRecorder) Next ¶
func (mr *MockStateIteratorMockRecorder) Next() *gomock.Call
Next indicates an expected call of Next.
func (*MockStateIteratorMockRecorder) Release ¶
func (mr *MockStateIteratorMockRecorder) Release() *gomock.Call
Release indicates an expected call of Release.
func (*MockStateIteratorMockRecorder) Value ¶
func (mr *MockStateIteratorMockRecorder) Value() *gomock.Call
Value indicates an expected call of Value.
type MockStateSqlOperation ¶
type MockStateSqlOperation struct {
// contains filtered or unexported fields
}
MockStateSqlOperation is a mock of StateSqlOperation interface.
func NewMockStateSqlOperation ¶
func NewMockStateSqlOperation(ctrl *gomock.Controller) *MockStateSqlOperation
NewMockStateSqlOperation creates a new mock instance.
func (*MockStateSqlOperation) BeginDbTransaction ¶
func (m *MockStateSqlOperation) BeginDbTransaction(txName string) (protocol.SqlDBTransaction, error)
BeginDbTransaction mocks base method.
func (*MockStateSqlOperation) CommitDbTransaction ¶
func (m *MockStateSqlOperation) CommitDbTransaction(txName string) error
CommitDbTransaction mocks base method.
func (*MockStateSqlOperation) CreateDatabase ¶
func (m *MockStateSqlOperation) CreateDatabase(contractName string) error
CreateDatabase mocks base method.
func (*MockStateSqlOperation) DropDatabase ¶
func (m *MockStateSqlOperation) DropDatabase(contractName string) error
DropDatabase mocks base method.
func (*MockStateSqlOperation) EXPECT ¶
func (m *MockStateSqlOperation) EXPECT() *MockStateSqlOperationMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStateSqlOperation) ExecDdlSql ¶
func (m *MockStateSqlOperation) ExecDdlSql(contractName, sql, version string) error
ExecDdlSql mocks base method.
func (*MockStateSqlOperation) GetContractDbName ¶
func (m *MockStateSqlOperation) GetContractDbName(contractName string) string
GetContractDbName mocks base method.
func (*MockStateSqlOperation) GetDbTransaction ¶
func (m *MockStateSqlOperation) GetDbTransaction(txName string) (protocol.SqlDBTransaction, error)
GetDbTransaction mocks base method.
func (*MockStateSqlOperation) QueryMulti ¶
func (m *MockStateSqlOperation) QueryMulti(contractName, sql string, values ...interface{}) (protocol.SqlRows, error)
QueryMulti mocks base method.
func (*MockStateSqlOperation) QuerySingle ¶
func (m *MockStateSqlOperation) QuerySingle(contractName, sql string, values ...interface{}) (protocol.SqlRow, error)
QuerySingle mocks base method.
func (*MockStateSqlOperation) RollbackDbTransaction ¶
func (m *MockStateSqlOperation) RollbackDbTransaction(txName string) error
RollbackDbTransaction mocks base method.
type MockStateSqlOperationMockRecorder ¶
type MockStateSqlOperationMockRecorder struct {
// contains filtered or unexported fields
}
MockStateSqlOperationMockRecorder is the mock recorder for MockStateSqlOperation.
func (*MockStateSqlOperationMockRecorder) BeginDbTransaction ¶
func (mr *MockStateSqlOperationMockRecorder) BeginDbTransaction(txName interface{}) *gomock.Call
BeginDbTransaction indicates an expected call of BeginDbTransaction.
func (*MockStateSqlOperationMockRecorder) CommitDbTransaction ¶
func (mr *MockStateSqlOperationMockRecorder) CommitDbTransaction(txName interface{}) *gomock.Call
CommitDbTransaction indicates an expected call of CommitDbTransaction.
func (*MockStateSqlOperationMockRecorder) CreateDatabase ¶
func (mr *MockStateSqlOperationMockRecorder) CreateDatabase(contractName interface{}) *gomock.Call
CreateDatabase indicates an expected call of CreateDatabase.
func (*MockStateSqlOperationMockRecorder) DropDatabase ¶
func (mr *MockStateSqlOperationMockRecorder) DropDatabase(contractName interface{}) *gomock.Call
DropDatabase indicates an expected call of DropDatabase.
func (*MockStateSqlOperationMockRecorder) ExecDdlSql ¶
func (mr *MockStateSqlOperationMockRecorder) ExecDdlSql(contractName, sql, version interface{}) *gomock.Call
ExecDdlSql indicates an expected call of ExecDdlSql.
func (*MockStateSqlOperationMockRecorder) GetContractDbName ¶
func (mr *MockStateSqlOperationMockRecorder) GetContractDbName(contractName interface{}) *gomock.Call
GetContractDbName indicates an expected call of GetContractDbName.
func (*MockStateSqlOperationMockRecorder) GetDbTransaction ¶
func (mr *MockStateSqlOperationMockRecorder) GetDbTransaction(txName interface{}) *gomock.Call
GetDbTransaction indicates an expected call of GetDbTransaction.
func (*MockStateSqlOperationMockRecorder) QueryMulti ¶
func (mr *MockStateSqlOperationMockRecorder) QueryMulti(contractName, sql interface{}, values ...interface{}) *gomock.Call
QueryMulti indicates an expected call of QueryMulti.
func (*MockStateSqlOperationMockRecorder) QuerySingle ¶
func (mr *MockStateSqlOperationMockRecorder) QuerySingle(contractName, sql interface{}, values ...interface{}) *gomock.Call
QuerySingle indicates an expected call of QuerySingle.
func (*MockStateSqlOperationMockRecorder) RollbackDbTransaction ¶
func (mr *MockStateSqlOperationMockRecorder) RollbackDbTransaction(txName interface{}) *gomock.Call
RollbackDbTransaction indicates an expected call of RollbackDbTransaction.
type MockStoreBatcher ¶
type MockStoreBatcher struct {
// contains filtered or unexported fields
}
MockStoreBatcher is a mock of StoreBatcher interface.
func NewMockStoreBatcher ¶
func NewMockStoreBatcher(ctrl *gomock.Controller) *MockStoreBatcher
NewMockStoreBatcher creates a new mock instance.
func (*MockStoreBatcher) Delete ¶
func (m *MockStoreBatcher) Delete(key []byte)
Delete mocks base method.
func (*MockStoreBatcher) EXPECT ¶
func (m *MockStoreBatcher) EXPECT() *MockStoreBatcherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStoreBatcher) Get ¶
func (m *MockStoreBatcher) Get(key []byte) ([]byte, error)
Get mocks base method.
func (*MockStoreBatcher) Has ¶
func (m *MockStoreBatcher) Has(key []byte) bool
Has mocks base method.
func (*MockStoreBatcher) KVs ¶
func (m *MockStoreBatcher) KVs() map[string][]byte
KVs mocks base method.
func (*MockStoreBatcher) Merge ¶
func (m *MockStoreBatcher) Merge(batcher protocol.StoreBatcher)
Merge mocks base method.
func (*MockStoreBatcher) Put ¶
func (m *MockStoreBatcher) Put(key, value []byte)
Put mocks base method.
func (*MockStoreBatcher) Remove ¶
func (m *MockStoreBatcher) Remove(key []byte)
Remove mocks base method.
func (*MockStoreBatcher) SplitBatch ¶
func (m *MockStoreBatcher) SplitBatch(batchCnt uint64) []protocol.StoreBatcher
SplitBatch mocks base method.
type MockStoreBatcherMockRecorder ¶
type MockStoreBatcherMockRecorder struct {
// contains filtered or unexported fields
}
MockStoreBatcherMockRecorder is the mock recorder for MockStoreBatcher.
func (*MockStoreBatcherMockRecorder) Delete ¶
func (mr *MockStoreBatcherMockRecorder) Delete(key interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockStoreBatcherMockRecorder) Get ¶
func (mr *MockStoreBatcherMockRecorder) Get(key interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockStoreBatcherMockRecorder) Has ¶
func (mr *MockStoreBatcherMockRecorder) Has(key interface{}) *gomock.Call
Has indicates an expected call of Has.
func (*MockStoreBatcherMockRecorder) KVs ¶
func (mr *MockStoreBatcherMockRecorder) KVs() *gomock.Call
KVs indicates an expected call of KVs.
func (*MockStoreBatcherMockRecorder) Len ¶
func (mr *MockStoreBatcherMockRecorder) Len() *gomock.Call
Len indicates an expected call of Len.
func (*MockStoreBatcherMockRecorder) Merge ¶
func (mr *MockStoreBatcherMockRecorder) Merge(batcher interface{}) *gomock.Call
Merge indicates an expected call of Merge.
func (*MockStoreBatcherMockRecorder) Put ¶
func (mr *MockStoreBatcherMockRecorder) Put(key, value interface{}) *gomock.Call
Put indicates an expected call of Put.
func (*MockStoreBatcherMockRecorder) Remove ¶
func (mr *MockStoreBatcherMockRecorder) Remove(key interface{}) *gomock.Call
Remove indicates an expected call of Remove.
func (*MockStoreBatcherMockRecorder) SplitBatch ¶
func (mr *MockStoreBatcherMockRecorder) SplitBatch(batchCnt interface{}) *gomock.Call
SplitBatch indicates an expected call of SplitBatch.
type MockStoreHelper ¶
type MockStoreHelper struct {
// contains filtered or unexported fields
}
MockStoreHelper is a mock of StoreHelper interface.
func NewMockStoreHelper ¶
func NewMockStoreHelper(ctrl *gomock.Controller) *MockStoreHelper
NewMockStoreHelper creates a new mock instance.
func (*MockStoreHelper) BeginDbTransaction ¶
func (m *MockStoreHelper) BeginDbTransaction(arg0 protocol.BlockchainStore, arg1 string)
BeginDbTransaction mocks base method.
func (*MockStoreHelper) EXPECT ¶
func (m *MockStoreHelper) EXPECT() *MockStoreHelperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStoreHelper) GetPoolCapacity ¶
func (m *MockStoreHelper) GetPoolCapacity() int
GetPoolCapacity mocks base method.
func (*MockStoreHelper) RollBack ¶
func (m *MockStoreHelper) RollBack(arg0 *common.Block, arg1 protocol.BlockchainStore) error
RollBack mocks base method.
type MockStoreHelperMockRecorder ¶
type MockStoreHelperMockRecorder struct {
// contains filtered or unexported fields
}
MockStoreHelperMockRecorder is the mock recorder for MockStoreHelper.
func (*MockStoreHelperMockRecorder) BeginDbTransaction ¶
func (mr *MockStoreHelperMockRecorder) BeginDbTransaction(arg0, arg1 interface{}) *gomock.Call
BeginDbTransaction indicates an expected call of BeginDbTransaction.
func (*MockStoreHelperMockRecorder) GetPoolCapacity ¶
func (mr *MockStoreHelperMockRecorder) GetPoolCapacity() *gomock.Call
GetPoolCapacity indicates an expected call of GetPoolCapacity.
func (*MockStoreHelperMockRecorder) RollBack ¶
func (mr *MockStoreHelperMockRecorder) RollBack(arg0, arg1 interface{}) *gomock.Call
RollBack indicates an expected call of RollBack.
type MockSyncService ¶
type MockSyncService struct {
// contains filtered or unexported fields
}
MockSyncService is a mock of SyncService interface.
func NewMockSyncService ¶
func NewMockSyncService(ctrl *gomock.Controller) *MockSyncService
NewMockSyncService creates a new mock instance.
func (*MockSyncService) EXPECT ¶
func (m *MockSyncService) EXPECT() *MockSyncServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSyncService) ListenSyncToIdealHeight ¶
func (m *MockSyncService) ListenSyncToIdealHeight() <-chan struct{}
ListenSyncToIdealHeight mocks base method.
func (*MockSyncService) StartBlockSync ¶
func (m *MockSyncService) StartBlockSync()
StartBlockSync mocks base method.
func (*MockSyncService) StopBlockSync ¶
func (m *MockSyncService) StopBlockSync()
StopBlockSync mocks base method.
type MockSyncServiceMockRecorder ¶
type MockSyncServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockSyncServiceMockRecorder is the mock recorder for MockSyncService.
func (*MockSyncServiceMockRecorder) ListenSyncToIdealHeight ¶
func (mr *MockSyncServiceMockRecorder) ListenSyncToIdealHeight() *gomock.Call
ListenSyncToIdealHeight indicates an expected call of ListenSyncToIdealHeight.
func (*MockSyncServiceMockRecorder) Start ¶
func (mr *MockSyncServiceMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start.
func (*MockSyncServiceMockRecorder) StartBlockSync ¶
func (mr *MockSyncServiceMockRecorder) StartBlockSync() *gomock.Call
StartBlockSync indicates an expected call of StartBlockSync.
func (*MockSyncServiceMockRecorder) Stop ¶
func (mr *MockSyncServiceMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
func (*MockSyncServiceMockRecorder) StopBlockSync ¶
func (mr *MockSyncServiceMockRecorder) StopBlockSync() *gomock.Call
StopBlockSync indicates an expected call of StopBlockSync.
type MockSysContractQuery ¶
type MockSysContractQuery struct {
// contains filtered or unexported fields
}
MockSysContractQuery is a mock of SysContractQuery interface.
func NewMockSysContractQuery ¶
func NewMockSysContractQuery(ctrl *gomock.Controller) *MockSysContractQuery
NewMockSysContractQuery creates a new mock instance.
func (*MockSysContractQuery) EXPECT ¶
func (m *MockSysContractQuery) EXPECT() *MockSysContractQueryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSysContractQuery) GetContractByName ¶
func (m *MockSysContractQuery) GetContractByName(name string) (*common.Contract, error)
GetContractByName mocks base method.
func (*MockSysContractQuery) GetContractBytecode ¶
func (m *MockSysContractQuery) GetContractBytecode(name string) ([]byte, error)
GetContractBytecode mocks base method.
type MockSysContractQueryMockRecorder ¶
type MockSysContractQueryMockRecorder struct {
// contains filtered or unexported fields
}
MockSysContractQueryMockRecorder is the mock recorder for MockSysContractQuery.
func (*MockSysContractQueryMockRecorder) GetContractByName ¶
func (mr *MockSysContractQueryMockRecorder) GetContractByName(name interface{}) *gomock.Call
GetContractByName indicates an expected call of GetContractByName.
func (*MockSysContractQueryMockRecorder) GetContractBytecode ¶
func (mr *MockSysContractQueryMockRecorder) GetContractBytecode(name interface{}) *gomock.Call
GetContractBytecode indicates an expected call of GetContractBytecode.
type MockTxFilter ¶
type MockTxFilter struct {
// contains filtered or unexported fields
}
MockTxFilter is a mock of TxFilter interface.
func NewMockTxFilter ¶
func NewMockTxFilter(ctrl *gomock.Controller) *MockTxFilter
NewMockTxFilter creates a new mock instance.
func (*MockTxFilter) Adds ¶
func (m *MockTxFilter) Adds(txIds []string) error
Adds mocks base method.
func (*MockTxFilter) AddsAndSetHeight ¶
func (m *MockTxFilter) AddsAndSetHeight(txId []string, height uint64) error
AddsAndSetHeight mocks base method.
func (*MockTxFilter) EXPECT ¶
func (m *MockTxFilter) EXPECT() *MockTxFilterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTxFilter) GetHeight ¶
func (m *MockTxFilter) GetHeight() uint64
GetHeight mocks base method.
func (*MockTxFilter) IsExists ¶
func (m *MockTxFilter) IsExists(txId string, ruleType ...common.RuleType) (bool, *txfilter.Stat, error)
IsExists mocks base method.
func (*MockTxFilter) IsExistsAndReturnHeight ¶
func (m *MockTxFilter) IsExistsAndReturnHeight(txId string, ruleType ...common.RuleType) (bool, uint64, *txfilter.Stat, error)
IsExistsAndReturnHeight mocks base method.
func (*MockTxFilter) SetHeight ¶
func (m *MockTxFilter) SetHeight(height uint64)
SetHeight mocks base method.
type MockTxFilterMockRecorder ¶
type MockTxFilterMockRecorder struct {
// contains filtered or unexported fields
}
MockTxFilterMockRecorder is the mock recorder for MockTxFilter.
func (*MockTxFilterMockRecorder) Add ¶
func (mr *MockTxFilterMockRecorder) Add(txId interface{}) *gomock.Call
Add indicates an expected call of Add.
func (*MockTxFilterMockRecorder) Adds ¶
func (mr *MockTxFilterMockRecorder) Adds(txIds interface{}) *gomock.Call
Adds indicates an expected call of Adds.
func (*MockTxFilterMockRecorder) AddsAndSetHeight ¶
func (mr *MockTxFilterMockRecorder) AddsAndSetHeight(txId, height interface{}) *gomock.Call
AddsAndSetHeight indicates an expected call of AddsAndSetHeight.
func (*MockTxFilterMockRecorder) Close ¶
func (mr *MockTxFilterMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockTxFilterMockRecorder) GetHeight ¶
func (mr *MockTxFilterMockRecorder) GetHeight() *gomock.Call
GetHeight indicates an expected call of GetHeight.
func (*MockTxFilterMockRecorder) IsExists ¶
func (mr *MockTxFilterMockRecorder) IsExists(txId interface{}, ruleType ...interface{}) *gomock.Call
IsExists indicates an expected call of IsExists.
func (*MockTxFilterMockRecorder) IsExistsAndReturnHeight ¶
func (mr *MockTxFilterMockRecorder) IsExistsAndReturnHeight(txId interface{}, ruleType ...interface{}) *gomock.Call
IsExistsAndReturnHeight indicates an expected call of IsExistsAndReturnHeight.
func (*MockTxFilterMockRecorder) SetHeight ¶
func (mr *MockTxFilterMockRecorder) SetHeight(height interface{}) *gomock.Call
SetHeight indicates an expected call of SetHeight.
func (*MockTxFilterMockRecorder) ValidateRule ¶
func (mr *MockTxFilterMockRecorder) ValidateRule(txId interface{}, ruleType ...interface{}) *gomock.Call
ValidateRule indicates an expected call of ValidateRule.
type MockTxHistoryIterator ¶
type MockTxHistoryIterator struct {
// contains filtered or unexported fields
}
MockTxHistoryIterator is a mock of TxHistoryIterator interface.
func NewMockTxHistoryIterator ¶
func NewMockTxHistoryIterator(ctrl *gomock.Controller) *MockTxHistoryIterator
NewMockTxHistoryIterator creates a new mock instance.
func (*MockTxHistoryIterator) EXPECT ¶
func (m *MockTxHistoryIterator) EXPECT() *MockTxHistoryIteratorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTxHistoryIterator) Next ¶
func (m *MockTxHistoryIterator) Next() bool
Next mocks base method.
func (*MockTxHistoryIterator) Release ¶
func (m *MockTxHistoryIterator) Release()
Release mocks base method.
func (*MockTxHistoryIterator) Value ¶
func (m *MockTxHistoryIterator) Value() (*store.TxHistory, error)
Value mocks base method.
type MockTxHistoryIteratorMockRecorder ¶
type MockTxHistoryIteratorMockRecorder struct {
// contains filtered or unexported fields
}
MockTxHistoryIteratorMockRecorder is the mock recorder for MockTxHistoryIterator.
func (*MockTxHistoryIteratorMockRecorder) Next ¶
func (mr *MockTxHistoryIteratorMockRecorder) Next() *gomock.Call
Next indicates an expected call of Next.
func (*MockTxHistoryIteratorMockRecorder) Release ¶
func (mr *MockTxHistoryIteratorMockRecorder) Release() *gomock.Call
Release indicates an expected call of Release.
func (*MockTxHistoryIteratorMockRecorder) Value ¶
func (mr *MockTxHistoryIteratorMockRecorder) Value() *gomock.Call
Value indicates an expected call of Value.
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) AddTx ¶
func (m *MockTxPool) AddTx(tx *common.Transaction, source protocol.TxSource) error
AddTx mocks base method.
func (*MockTxPool) AddTxBatchesToPendingCache ¶
func (m *MockTxPool) AddTxBatchesToPendingCache(batchIds []string, blockHeight uint64)
AddTxBatchesToPendingCache mocks base method.
func (*MockTxPool) AddTxsToPendingCache ¶
func (m *MockTxPool) AddTxsToPendingCache(txs []*common.Transaction, blockHeight uint64)
AddTxsToPendingCache 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) FetchTxBatches ¶
func (m *MockTxPool) FetchTxBatches(blockHeight uint64) ([]string, [][]*common.Transaction)
FetchTxBatches mocks base method.
func (*MockTxPool) FetchTxs ¶
func (m *MockTxPool) FetchTxs(blockHeight uint64) []*common.Transaction
FetchTxs mocks base method.
func (*MockTxPool) GetAllTxsByBatchIds ¶
func (m *MockTxPool) GetAllTxsByBatchIds(batchIds []string, proposerId string, height uint64, timeoutMs int) ([][]*common.Transaction, error)
GetAllTxsByBatchIds mocks base method.
func (*MockTxPool) GetAllTxsByTxIds ¶
func (m *MockTxPool) GetAllTxsByTxIds(txIds []string, proposerId string, height uint64, timeoutMs int) (map[string]*common.Transaction, error)
GetAllTxsByTxIds mocks base method.
func (*MockTxPool) GetPoolStatus ¶
func (m *MockTxPool) GetPoolStatus() *txpool.TxPoolStatus
GetPoolStatus mocks base method.
func (*MockTxPool) GetTxIdsByTypeAndStage ¶
func (m *MockTxPool) GetTxIdsByTypeAndStage(txType, txStage int32) []string
GetTxIdsByTypeAndStage mocks base method.
func (*MockTxPool) GetTxStatus ¶
func (m *MockTxPool) GetTxStatus(txId string) txpool.TxStatus
GetTxStatus mocks base method.
func (*MockTxPool) GetTxsByTxIds ¶
func (m *MockTxPool) GetTxsByTxIds(txIds []string) (map[string]*common.Transaction, map[string]struct{})
GetTxsByTxIds mocks base method.
func (*MockTxPool) GetTxsInPoolByTxIds ¶
func (m *MockTxPool) GetTxsInPoolByTxIds(txIds []string) ([]*common.Transaction, []string, error)
GetTxsInPoolByTxIds mocks base method.
func (*MockTxPool) ReGenTxBatchesWithRemoveTxs ¶
func (m *MockTxPool) ReGenTxBatchesWithRemoveTxs(blockHeight uint64, batchIds []string, removeTxs []*common.Transaction, removeRES protocol.RemoveRES) ([]string, [][]*common.Transaction)
ReGenTxBatchesWithRemoveTxs mocks base method.
func (*MockTxPool) ReGenTxBatchesWithRetryTxs ¶
func (m *MockTxPool) ReGenTxBatchesWithRetryTxs(blockHeight uint64, batchIds []string, retryTxs []*common.Transaction) ([]string, [][]*common.Transaction)
ReGenTxBatchesWithRetryTxs mocks base method.
func (*MockTxPool) RemoveTxBatches ¶
func (m *MockTxPool) RemoveTxBatches(removeBatchIds []string, removeRES protocol.RemoveRES)
RemoveTxBatches mocks base method.
func (*MockTxPool) RemoveTxs ¶
func (m *MockTxPool) RemoveTxs(removeTxs []*common.Transaction, removeRES protocol.RemoveRES)
RemoveTxs mocks base method.
func (*MockTxPool) RemoveTxsInTxBatches ¶
func (m *MockTxPool) RemoveTxsInTxBatches(batchIds []string, removeTxs []*common.Transaction, removeRES protocol.RemoveRES)
RemoveTxsInTxBatches mocks base method.
func (*MockTxPool) RetryTxBatches ¶
func (m *MockTxPool) RetryTxBatches(retryBatchIds []string)
RetryTxBatches mocks base method.
func (*MockTxPool) RetryTxs ¶
func (m *MockTxPool) RetryTxs(retryTxs []*common.Transaction)
RetryTxs mocks base method.
func (*MockTxPool) TxExists ¶
func (m *MockTxPool) TxExists(tx *common.Transaction) bool
TxExists mocks base method.
type MockTxPoolMockRecorder ¶
type MockTxPoolMockRecorder struct {
// contains filtered or unexported fields
}
MockTxPoolMockRecorder is the mock recorder for MockTxPool.
func (*MockTxPoolMockRecorder) AddTx ¶
func (mr *MockTxPoolMockRecorder) AddTx(tx, source interface{}) *gomock.Call
AddTx indicates an expected call of AddTx.
func (*MockTxPoolMockRecorder) AddTxBatchesToPendingCache ¶
func (mr *MockTxPoolMockRecorder) AddTxBatchesToPendingCache(batchIds, blockHeight interface{}) *gomock.Call
AddTxBatchesToPendingCache indicates an expected call of AddTxBatchesToPendingCache.
func (*MockTxPoolMockRecorder) AddTxsToPendingCache ¶
func (mr *MockTxPoolMockRecorder) AddTxsToPendingCache(txs, blockHeight interface{}) *gomock.Call
AddTxsToPendingCache indicates an expected call of AddTxsToPendingCache.
func (*MockTxPoolMockRecorder) FetchTxBatches ¶
func (mr *MockTxPoolMockRecorder) FetchTxBatches(blockHeight interface{}) *gomock.Call
FetchTxBatches indicates an expected call of FetchTxBatches.
func (*MockTxPoolMockRecorder) FetchTxs ¶
func (mr *MockTxPoolMockRecorder) FetchTxs(blockHeight interface{}) *gomock.Call
FetchTxs indicates an expected call of FetchTxs.
func (*MockTxPoolMockRecorder) GetAllTxsByBatchIds ¶
func (mr *MockTxPoolMockRecorder) GetAllTxsByBatchIds(batchIds, proposerId, height, timeoutMs interface{}) *gomock.Call
GetAllTxsByBatchIds indicates an expected call of GetAllTxsByBatchIds.
func (*MockTxPoolMockRecorder) GetAllTxsByTxIds ¶
func (mr *MockTxPoolMockRecorder) GetAllTxsByTxIds(txIds, proposerId, height, timeoutMs interface{}) *gomock.Call
GetAllTxsByTxIds indicates an expected call of GetAllTxsByTxIds.
func (*MockTxPoolMockRecorder) GetPoolStatus ¶
func (mr *MockTxPoolMockRecorder) GetPoolStatus() *gomock.Call
GetPoolStatus indicates an expected call of GetPoolStatus.
func (*MockTxPoolMockRecorder) GetTxIdsByTypeAndStage ¶
func (mr *MockTxPoolMockRecorder) GetTxIdsByTypeAndStage(txType, txStage interface{}) *gomock.Call
GetTxIdsByTypeAndStage indicates an expected call of GetTxIdsByTypeAndStage.
func (*MockTxPoolMockRecorder) GetTxStatus ¶
func (mr *MockTxPoolMockRecorder) GetTxStatus(txId interface{}) *gomock.Call
GetTxStatus indicates an expected call of GetTxStatus.
func (*MockTxPoolMockRecorder) GetTxsByTxIds ¶
func (mr *MockTxPoolMockRecorder) GetTxsByTxIds(txIds interface{}) *gomock.Call
GetTxsByTxIds indicates an expected call of GetTxsByTxIds.
func (*MockTxPoolMockRecorder) GetTxsInPoolByTxIds ¶
func (mr *MockTxPoolMockRecorder) GetTxsInPoolByTxIds(txIds interface{}) *gomock.Call
GetTxsInPoolByTxIds indicates an expected call of GetTxsInPoolByTxIds.
func (*MockTxPoolMockRecorder) ReGenTxBatchesWithRemoveTxs ¶
func (mr *MockTxPoolMockRecorder) ReGenTxBatchesWithRemoveTxs(blockHeight, batchIds, removeTxs, removeRES interface{}) *gomock.Call
ReGenTxBatchesWithRemoveTxs indicates an expected call of ReGenTxBatchesWithRemoveTxs.
func (*MockTxPoolMockRecorder) ReGenTxBatchesWithRetryTxs ¶
func (mr *MockTxPoolMockRecorder) ReGenTxBatchesWithRetryTxs(blockHeight, batchIds, retryTxs interface{}) *gomock.Call
ReGenTxBatchesWithRetryTxs indicates an expected call of ReGenTxBatchesWithRetryTxs.
func (*MockTxPoolMockRecorder) RemoveTxBatches ¶
func (mr *MockTxPoolMockRecorder) RemoveTxBatches(removeBatchIds, removeRES interface{}) *gomock.Call
RemoveTxBatches indicates an expected call of RemoveTxBatches.
func (*MockTxPoolMockRecorder) RemoveTxs ¶
func (mr *MockTxPoolMockRecorder) RemoveTxs(removeTxs, removeRES interface{}) *gomock.Call
RemoveTxs indicates an expected call of RemoveTxs.
func (*MockTxPoolMockRecorder) RemoveTxsInTxBatches ¶
func (mr *MockTxPoolMockRecorder) RemoveTxsInTxBatches(batchIds, removeTxs, removeRES interface{}) *gomock.Call
RemoveTxsInTxBatches indicates an expected call of RemoveTxsInTxBatches.
func (*MockTxPoolMockRecorder) RetryTxBatches ¶
func (mr *MockTxPoolMockRecorder) RetryTxBatches(retryBatchIds interface{}) *gomock.Call
RetryTxBatches indicates an expected call of RetryTxBatches.
func (*MockTxPoolMockRecorder) RetryTxs ¶
func (mr *MockTxPoolMockRecorder) RetryTxs(retryTxs interface{}) *gomock.Call
RetryTxs indicates an expected call of RetryTxs.
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.
func (*MockTxPoolMockRecorder) TxExists ¶
func (mr *MockTxPoolMockRecorder) TxExists(tx interface{}) *gomock.Call
TxExists indicates an expected call of TxExists.
type MockTxScheduler ¶
type MockTxScheduler struct {
// contains filtered or unexported fields
}
MockTxScheduler is a mock of TxScheduler interface.
func NewMockTxScheduler ¶
func NewMockTxScheduler(ctrl *gomock.Controller) *MockTxScheduler
NewMockTxScheduler creates a new mock instance.
func (*MockTxScheduler) EXPECT ¶
func (m *MockTxScheduler) EXPECT() *MockTxSchedulerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTxScheduler) Schedule ¶
func (m *MockTxScheduler) Schedule(block *common.Block, txBatch []*common.Transaction, snapshot protocol.Snapshot) (map[string]*common.TxRWSet, map[string][]*common.ContractEvent, error)
Schedule mocks base method.
type MockTxSchedulerMockRecorder ¶
type MockTxSchedulerMockRecorder struct {
// contains filtered or unexported fields
}
MockTxSchedulerMockRecorder is the mock recorder for MockTxScheduler.
func (*MockTxSchedulerMockRecorder) Halt ¶
func (mr *MockTxSchedulerMockRecorder) Halt() *gomock.Call
Halt indicates an expected call of Halt.
func (*MockTxSchedulerMockRecorder) Schedule ¶
func (mr *MockTxSchedulerMockRecorder) Schedule(block, txBatch, snapshot interface{}) *gomock.Call
Schedule indicates an expected call of Schedule.
func (*MockTxSchedulerMockRecorder) SimulateWithDag ¶
func (mr *MockTxSchedulerMockRecorder) SimulateWithDag(block, snapshot interface{}) *gomock.Call
SimulateWithDag indicates an expected call of SimulateWithDag.
type MockTxSimContext ¶
type MockTxSimContext struct {
// contains filtered or unexported fields
}
MockTxSimContext is a mock of TxSimContext interface.
func NewMockTxSimContext ¶
func NewMockTxSimContext(ctrl *gomock.Controller) *MockTxSimContext
NewMockTxSimContext creates a new mock instance.
func (*MockTxSimContext) CallContract ¶
func (m *MockTxSimContext) CallContract(caller, contract *common.Contract, method string, byteCode []byte, parameter map[string][]byte, gasUsed uint64, refTxType common.TxType) (*common.ContractResult, protocol.ExecOrderTxType, common.TxStatusCode)
CallContract mocks base method.
func (*MockTxSimContext) Del ¶
func (m *MockTxSimContext) Del(name string, key []byte) error
Del mocks base method.
func (*MockTxSimContext) EXPECT ¶
func (m *MockTxSimContext) EXPECT() *MockTxSimContextMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTxSimContext) Get ¶
func (m *MockTxSimContext) Get(contractName string, key []byte) ([]byte, error)
Get mocks base method.
func (*MockTxSimContext) GetAccessControl ¶
func (m *MockTxSimContext) GetAccessControl() (protocol.AccessControlProvider, error)
GetAccessControl mocks base method.
func (*MockTxSimContext) GetBlockFingerprint ¶
func (m *MockTxSimContext) GetBlockFingerprint() string
GetBlockFingerprint mocks base method.
func (*MockTxSimContext) GetBlockHeight ¶
func (m *MockTxSimContext) GetBlockHeight() uint64
GetBlockHeight mocks base method.
func (*MockTxSimContext) GetBlockProposer ¶
func (m *MockTxSimContext) GetBlockProposer() *accesscontrol.Member
GetBlockProposer mocks base method.
func (*MockTxSimContext) GetBlockTimestamp ¶
func (m *MockTxSimContext) GetBlockTimestamp() int64
GetBlockTimestamp mocks base method.
func (*MockTxSimContext) GetBlockVersion ¶
func (m *MockTxSimContext) GetBlockVersion() uint32
GetBlockVersion mocks base method.
func (*MockTxSimContext) GetBlockchainStore ¶
func (m *MockTxSimContext) GetBlockchainStore() protocol.BlockchainStore
GetBlockchainStore mocks base method.
func (*MockTxSimContext) GetChainNodesInfoProvider ¶
func (m *MockTxSimContext) GetChainNodesInfoProvider() (protocol.ChainNodesInfoProvider, error)
GetChainNodesInfoProvider mocks base method.
func (*MockTxSimContext) GetConsensusStateWrapper ¶
func (m *MockTxSimContext) GetConsensusStateWrapper() protocol.ConsensusStateWrapper
GetConsensusStateWrapper mocks base method.
func (*MockTxSimContext) GetContractByName ¶
func (m *MockTxSimContext) GetContractByName(name string) (*common.Contract, error)
GetContractByName mocks base method.
func (*MockTxSimContext) GetContractBytecode ¶
func (m *MockTxSimContext) GetContractBytecode(name string) ([]byte, error)
GetContractBytecode mocks base method.
func (*MockTxSimContext) GetCreator ¶
func (m *MockTxSimContext) GetCreator(namespace string) *accesscontrol.Member
GetCreator mocks base method.
func (*MockTxSimContext) GetCrossInfo ¶
func (m *MockTxSimContext) GetCrossInfo() uint64
GetCrossInfo mocks base method.
func (*MockTxSimContext) GetCurrentResult ¶
func (m *MockTxSimContext) GetCurrentResult() []byte
GetCurrentResult mocks base method.
func (*MockTxSimContext) GetDepth ¶
func (m *MockTxSimContext) GetDepth() int
GetDepth mocks base method.
func (*MockTxSimContext) GetGasRemaining ¶ added in v3.0.1
func (m *MockTxSimContext) GetGasRemaining() uint64
GetGasRemaining mocks base method.
func (*MockTxSimContext) GetHistoryIterForKey ¶
func (m *MockTxSimContext) GetHistoryIterForKey(contractName string, key []byte) (protocol.KeyHistoryIterator, error)
GetHistoryIterForKey mocks base method.
func (*MockTxSimContext) GetIterHandle ¶
func (m *MockTxSimContext) GetIterHandle(index int32) (interface{}, bool)
GetIterHandle mocks base method.
func (*MockTxSimContext) GetKeys ¶
GetKeys mocks base method.
func (*MockTxSimContext) GetLastChainConfig ¶
func (m *MockTxSimContext) GetLastChainConfig() *config.ChainConfig
GetLastChainConfig mocks base method.
func (*MockTxSimContext) GetNoRecord ¶
func (m *MockTxSimContext) GetNoRecord(contractName string, key []byte) ([]byte, error)
GetNoRecord mocks base method.
func (*MockTxSimContext) GetSender ¶
func (m *MockTxSimContext) GetSender() *accesscontrol.Member
GetSender mocks base method.
func (*MockTxSimContext) GetSnapshot ¶
func (m *MockTxSimContext) GetSnapshot() protocol.Snapshot
GetSnapshot mocks base method.
func (*MockTxSimContext) GetStrAddrFromPbMember ¶
func (m *MockTxSimContext) GetStrAddrFromPbMember(pbMember *accesscontrol.Member) (string, error)
GetStrAddrFromPbMember mocks base method.
func (*MockTxSimContext) GetTx ¶
func (m *MockTxSimContext) GetTx() *common.Transaction
GetTx mocks base method.
func (*MockTxSimContext) GetTxExecSeq ¶
func (m *MockTxSimContext) GetTxExecSeq() int
GetTxExecSeq mocks base method.
func (*MockTxSimContext) GetTxRWMapByContractName ¶
func (m *MockTxSimContext) GetTxRWMapByContractName(contractName string) (map[string]*common.TxRead, map[string]*common.TxWrite)
GetTxRWMapByContractName mocks base method.
func (*MockTxSimContext) GetTxRWSet ¶
func (m *MockTxSimContext) GetTxRWSet(runVmSuccess bool) *common.TxRWSet
GetTxRWSet mocks base method.
func (*MockTxSimContext) GetTxResult ¶
func (m *MockTxSimContext) GetTxResult() *common.Result
GetTxResult mocks base method.
func (*MockTxSimContext) HasUsed ¶
func (m *MockTxSimContext) HasUsed(runtimeType common.RuntimeType) bool
HasUsed mocks base method.
func (*MockTxSimContext) Put ¶
func (m *MockTxSimContext) Put(name string, key, value []byte) error
Put mocks base method.
func (*MockTxSimContext) PutIntoReadSet ¶
func (m *MockTxSimContext) PutIntoReadSet(contractName string, key, value []byte)
PutIntoReadSet mocks base method.
func (*MockTxSimContext) PutRecord ¶
func (m *MockTxSimContext) PutRecord(contractName string, value []byte, sqlType protocol.SqlType)
PutRecord mocks base method.
func (*MockTxSimContext) RecordRuntimeTypeIntoCrossInfo ¶
func (m *MockTxSimContext) RecordRuntimeTypeIntoCrossInfo(runtimeType common.RuntimeType)
RecordRuntimeTypeIntoCrossInfo mocks base method.
func (*MockTxSimContext) RemoveRuntimeTypeFromCrossInfo ¶
func (m *MockTxSimContext) RemoveRuntimeTypeFromCrossInfo()
RemoveRuntimeTypeFromCrossInfo mocks base method.
func (*MockTxSimContext) Select ¶
func (m *MockTxSimContext) Select(name string, startKey, limit []byte) (protocol.StateIterator, error)
Select mocks base method.
func (*MockTxSimContext) SetIterHandle ¶
func (m *MockTxSimContext) SetIterHandle(index int32, iter interface{})
SetIterHandle mocks base method.
func (*MockTxSimContext) SetTxExecSeq ¶
func (m *MockTxSimContext) SetTxExecSeq(arg0 int)
SetTxExecSeq mocks base method.
func (*MockTxSimContext) SetTxResult ¶
func (m *MockTxSimContext) SetTxResult(arg0 *common.Result)
SetTxResult mocks base method.
func (*MockTxSimContext) SubtractGas ¶ added in v3.0.1
func (m *MockTxSimContext) SubtractGas(gasUsed uint64) error
SubtractGas mocks base method.
type MockTxSimContextMockRecorder ¶
type MockTxSimContextMockRecorder struct {
// contains filtered or unexported fields
}
MockTxSimContextMockRecorder is the mock recorder for MockTxSimContext.
func (*MockTxSimContextMockRecorder) CallContract ¶
func (mr *MockTxSimContextMockRecorder) CallContract(caller, contract, method, byteCode, parameter, gasUsed, refTxType interface{}) *gomock.Call
CallContract indicates an expected call of CallContract.
func (*MockTxSimContextMockRecorder) Del ¶
func (mr *MockTxSimContextMockRecorder) Del(name, key interface{}) *gomock.Call
Del indicates an expected call of Del.
func (*MockTxSimContextMockRecorder) Get ¶
func (mr *MockTxSimContextMockRecorder) Get(contractName, key interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockTxSimContextMockRecorder) GetAccessControl ¶
func (mr *MockTxSimContextMockRecorder) GetAccessControl() *gomock.Call
GetAccessControl indicates an expected call of GetAccessControl.
func (*MockTxSimContextMockRecorder) GetBlockFingerprint ¶
func (mr *MockTxSimContextMockRecorder) GetBlockFingerprint() *gomock.Call
GetBlockFingerprint indicates an expected call of GetBlockFingerprint.
func (*MockTxSimContextMockRecorder) GetBlockHeight ¶
func (mr *MockTxSimContextMockRecorder) GetBlockHeight() *gomock.Call
GetBlockHeight indicates an expected call of GetBlockHeight.
func (*MockTxSimContextMockRecorder) GetBlockProposer ¶
func (mr *MockTxSimContextMockRecorder) GetBlockProposer() *gomock.Call
GetBlockProposer indicates an expected call of GetBlockProposer.
func (*MockTxSimContextMockRecorder) GetBlockTimestamp ¶
func (mr *MockTxSimContextMockRecorder) GetBlockTimestamp() *gomock.Call
GetBlockTimestamp indicates an expected call of GetBlockTimestamp.
func (*MockTxSimContextMockRecorder) GetBlockVersion ¶
func (mr *MockTxSimContextMockRecorder) GetBlockVersion() *gomock.Call
GetBlockVersion indicates an expected call of GetBlockVersion.
func (*MockTxSimContextMockRecorder) GetBlockchainStore ¶
func (mr *MockTxSimContextMockRecorder) GetBlockchainStore() *gomock.Call
GetBlockchainStore indicates an expected call of GetBlockchainStore.
func (*MockTxSimContextMockRecorder) GetChainNodesInfoProvider ¶
func (mr *MockTxSimContextMockRecorder) GetChainNodesInfoProvider() *gomock.Call
GetChainNodesInfoProvider indicates an expected call of GetChainNodesInfoProvider.
func (*MockTxSimContextMockRecorder) GetConsensusStateWrapper ¶
func (mr *MockTxSimContextMockRecorder) GetConsensusStateWrapper() *gomock.Call
GetConsensusStateWrapper indicates an expected call of GetConsensusStateWrapper.
func (*MockTxSimContextMockRecorder) GetContractByName ¶
func (mr *MockTxSimContextMockRecorder) GetContractByName(name interface{}) *gomock.Call
GetContractByName indicates an expected call of GetContractByName.
func (*MockTxSimContextMockRecorder) GetContractBytecode ¶
func (mr *MockTxSimContextMockRecorder) GetContractBytecode(name interface{}) *gomock.Call
GetContractBytecode indicates an expected call of GetContractBytecode.
func (*MockTxSimContextMockRecorder) GetCreator ¶
func (mr *MockTxSimContextMockRecorder) GetCreator(namespace interface{}) *gomock.Call
GetCreator indicates an expected call of GetCreator.
func (*MockTxSimContextMockRecorder) GetCrossInfo ¶
func (mr *MockTxSimContextMockRecorder) GetCrossInfo() *gomock.Call
GetCrossInfo indicates an expected call of GetCrossInfo.
func (*MockTxSimContextMockRecorder) GetCurrentResult ¶
func (mr *MockTxSimContextMockRecorder) GetCurrentResult() *gomock.Call
GetCurrentResult indicates an expected call of GetCurrentResult.
func (*MockTxSimContextMockRecorder) GetDepth ¶
func (mr *MockTxSimContextMockRecorder) GetDepth() *gomock.Call
GetDepth indicates an expected call of GetDepth.
func (*MockTxSimContextMockRecorder) GetGasRemaining ¶ added in v3.0.1
func (mr *MockTxSimContextMockRecorder) GetGasRemaining() *gomock.Call
GetGasRemaining indicates an expected call of GetGasRemaining.
func (*MockTxSimContextMockRecorder) GetHistoryIterForKey ¶
func (mr *MockTxSimContextMockRecorder) GetHistoryIterForKey(contractName, key interface{}) *gomock.Call
GetHistoryIterForKey indicates an expected call of GetHistoryIterForKey.
func (*MockTxSimContextMockRecorder) GetIterHandle ¶
func (mr *MockTxSimContextMockRecorder) GetIterHandle(index interface{}) *gomock.Call
GetIterHandle indicates an expected call of GetIterHandle.
func (*MockTxSimContextMockRecorder) GetKeys ¶
func (mr *MockTxSimContextMockRecorder) GetKeys(keys interface{}) *gomock.Call
GetKeys indicates an expected call of GetKeys.
func (*MockTxSimContextMockRecorder) GetLastChainConfig ¶
func (mr *MockTxSimContextMockRecorder) GetLastChainConfig() *gomock.Call
GetLastChainConfig indicates an expected call of GetLastChainConfig.
func (*MockTxSimContextMockRecorder) GetNoRecord ¶
func (mr *MockTxSimContextMockRecorder) GetNoRecord(contractName, key interface{}) *gomock.Call
GetNoRecord indicates an expected call of GetNoRecord.
func (*MockTxSimContextMockRecorder) GetSender ¶
func (mr *MockTxSimContextMockRecorder) GetSender() *gomock.Call
GetSender indicates an expected call of GetSender.
func (*MockTxSimContextMockRecorder) GetSnapshot ¶
func (mr *MockTxSimContextMockRecorder) GetSnapshot() *gomock.Call
GetSnapshot indicates an expected call of GetSnapshot.
func (*MockTxSimContextMockRecorder) GetStrAddrFromPbMember ¶
func (mr *MockTxSimContextMockRecorder) GetStrAddrFromPbMember(pbMember interface{}) *gomock.Call
GetStrAddrFromPbMember indicates an expected call of GetStrAddrFromPbMember.
func (*MockTxSimContextMockRecorder) GetTx ¶
func (mr *MockTxSimContextMockRecorder) GetTx() *gomock.Call
GetTx indicates an expected call of GetTx.
func (*MockTxSimContextMockRecorder) GetTxExecSeq ¶
func (mr *MockTxSimContextMockRecorder) GetTxExecSeq() *gomock.Call
GetTxExecSeq indicates an expected call of GetTxExecSeq.
func (*MockTxSimContextMockRecorder) GetTxRWMapByContractName ¶
func (mr *MockTxSimContextMockRecorder) GetTxRWMapByContractName(contractName interface{}) *gomock.Call
GetTxRWMapByContractName indicates an expected call of GetTxRWMapByContractName.
func (*MockTxSimContextMockRecorder) GetTxRWSet ¶
func (mr *MockTxSimContextMockRecorder) GetTxRWSet(runVmSuccess interface{}) *gomock.Call
GetTxRWSet indicates an expected call of GetTxRWSet.
func (*MockTxSimContextMockRecorder) GetTxResult ¶
func (mr *MockTxSimContextMockRecorder) GetTxResult() *gomock.Call
GetTxResult indicates an expected call of GetTxResult.
func (*MockTxSimContextMockRecorder) HasUsed ¶
func (mr *MockTxSimContextMockRecorder) HasUsed(runtimeType interface{}) *gomock.Call
HasUsed indicates an expected call of HasUsed.
func (*MockTxSimContextMockRecorder) Put ¶
func (mr *MockTxSimContextMockRecorder) Put(name, key, value interface{}) *gomock.Call
Put indicates an expected call of Put.
func (*MockTxSimContextMockRecorder) PutIntoReadSet ¶
func (mr *MockTxSimContextMockRecorder) PutIntoReadSet(contractName, key, value interface{}) *gomock.Call
PutIntoReadSet indicates an expected call of PutIntoReadSet.
func (*MockTxSimContextMockRecorder) PutRecord ¶
func (mr *MockTxSimContextMockRecorder) PutRecord(contractName, value, sqlType interface{}) *gomock.Call
PutRecord indicates an expected call of PutRecord.
func (*MockTxSimContextMockRecorder) RecordRuntimeTypeIntoCrossInfo ¶
func (mr *MockTxSimContextMockRecorder) RecordRuntimeTypeIntoCrossInfo(runtimeType interface{}) *gomock.Call
RecordRuntimeTypeIntoCrossInfo indicates an expected call of RecordRuntimeTypeIntoCrossInfo.
func (*MockTxSimContextMockRecorder) RemoveRuntimeTypeFromCrossInfo ¶
func (mr *MockTxSimContextMockRecorder) RemoveRuntimeTypeFromCrossInfo() *gomock.Call
RemoveRuntimeTypeFromCrossInfo indicates an expected call of RemoveRuntimeTypeFromCrossInfo.
func (*MockTxSimContextMockRecorder) Select ¶
func (mr *MockTxSimContextMockRecorder) Select(name, startKey, limit interface{}) *gomock.Call
Select indicates an expected call of Select.
func (*MockTxSimContextMockRecorder) SetIterHandle ¶
func (mr *MockTxSimContextMockRecorder) SetIterHandle(index, iter interface{}) *gomock.Call
SetIterHandle indicates an expected call of SetIterHandle.
func (*MockTxSimContextMockRecorder) SetTxExecSeq ¶
func (mr *MockTxSimContextMockRecorder) SetTxExecSeq(arg0 interface{}) *gomock.Call
SetTxExecSeq indicates an expected call of SetTxExecSeq.
func (*MockTxSimContextMockRecorder) SetTxResult ¶
func (mr *MockTxSimContextMockRecorder) SetTxResult(arg0 interface{}) *gomock.Call
SetTxResult indicates an expected call of SetTxResult.
func (*MockTxSimContextMockRecorder) SubtractGas ¶ added in v3.0.1
func (mr *MockTxSimContextMockRecorder) SubtractGas(gasUsed interface{}) *gomock.Call
SubtractGas indicates an expected call of SubtractGas.
type MockVerifier ¶
type MockVerifier struct {
// contains filtered or unexported fields
}
MockVerifier is a mock of Verifier interface.
func NewMockVerifier ¶
func NewMockVerifier(ctrl *gomock.Controller) *MockVerifier
NewMockVerifier creates a new mock instance.
func (*MockVerifier) EXPECT ¶
func (m *MockVerifier) EXPECT() *MockVerifierMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockVerifier) Verify ¶
func (m *MockVerifier) Verify(consensusType consensus.ConsensusType, chainConfig *config.ChainConfig) error
Verify mocks base method.
type MockVerifierMockRecorder ¶
type MockVerifierMockRecorder struct {
// contains filtered or unexported fields
}
MockVerifierMockRecorder is the mock recorder for MockVerifier.
func (*MockVerifierMockRecorder) Verify ¶
func (mr *MockVerifierMockRecorder) Verify(consensusType, chainConfig interface{}) *gomock.Call
Verify indicates an expected call of Verify.
type MockVmInstancesManager ¶
type MockVmInstancesManager struct {
// contains filtered or unexported fields
}
MockVmInstancesManager is a mock of VmInstancesManager interface.
func NewMockVmInstancesManager ¶
func NewMockVmInstancesManager(ctrl *gomock.Controller) *MockVmInstancesManager
NewMockVmInstancesManager creates a new mock instance.
func (*MockVmInstancesManager) AfterSchedule ¶
func (m *MockVmInstancesManager) AfterSchedule(blockFingerprint string, blockHeight uint64)
AfterSchedule mocks base method.
func (*MockVmInstancesManager) BeforeSchedule ¶
func (m *MockVmInstancesManager) BeforeSchedule(blockFingerprint string, blockHeight uint64)
BeforeSchedule mocks base method.
func (*MockVmInstancesManager) EXPECT ¶
func (m *MockVmInstancesManager) EXPECT() *MockVmInstancesManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockVmInstancesManager) NewRuntimeInstance ¶
func (m *MockVmInstancesManager) NewRuntimeInstance(txSimContext protocol.TxSimContext, chainId, method, codePath string, contract *common.Contract, byteCode []byte, log protocol.Logger) (protocol.RuntimeInstance, error)
NewRuntimeInstance mocks base method.
func (*MockVmInstancesManager) StartVM ¶
func (m *MockVmInstancesManager) StartVM() error
StartVM mocks base method.
func (*MockVmInstancesManager) StopVM ¶
func (m *MockVmInstancesManager) StopVM() error
StopVM mocks base method.
type MockVmInstancesManagerMockRecorder ¶
type MockVmInstancesManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockVmInstancesManagerMockRecorder is the mock recorder for MockVmInstancesManager.
func (*MockVmInstancesManagerMockRecorder) AfterSchedule ¶
func (mr *MockVmInstancesManagerMockRecorder) AfterSchedule(blockFingerprint, blockHeight interface{}) *gomock.Call
AfterSchedule indicates an expected call of AfterSchedule.
func (*MockVmInstancesManagerMockRecorder) BeforeSchedule ¶
func (mr *MockVmInstancesManagerMockRecorder) BeforeSchedule(blockFingerprint, blockHeight interface{}) *gomock.Call
BeforeSchedule indicates an expected call of BeforeSchedule.
func (*MockVmInstancesManagerMockRecorder) NewRuntimeInstance ¶
func (mr *MockVmInstancesManagerMockRecorder) NewRuntimeInstance(txSimContext, chainId, method, codePath, contract, byteCode, log interface{}) *gomock.Call
NewRuntimeInstance indicates an expected call of NewRuntimeInstance.
func (*MockVmInstancesManagerMockRecorder) StartVM ¶
func (mr *MockVmInstancesManagerMockRecorder) StartVM() *gomock.Call
StartVM indicates an expected call of StartVM.
func (*MockVmInstancesManagerMockRecorder) StopVM ¶
func (mr *MockVmInstancesManagerMockRecorder) StopVM() *gomock.Call
StopVM indicates an expected call of StopVM.
type MockVmManager ¶
type MockVmManager struct {
// contains filtered or unexported fields
}
MockVmManager is a mock of VmManager interface.
func NewMockVmManager ¶
func NewMockVmManager(ctrl *gomock.Controller) *MockVmManager
NewMockVmManager creates a new mock instance.
func (*MockVmManager) AfterSchedule ¶
func (m *MockVmManager) AfterSchedule(blockFingerprint string, blockHeight uint64)
AfterSchedule mocks base method.
func (*MockVmManager) BeforeSchedule ¶
func (m *MockVmManager) BeforeSchedule(blockFingerprint string, blockHeight uint64)
BeforeSchedule mocks base method.
func (*MockVmManager) EXPECT ¶
func (m *MockVmManager) EXPECT() *MockVmManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockVmManager) GetAccessControl ¶
func (m *MockVmManager) GetAccessControl() protocol.AccessControlProvider
GetAccessControl mocks base method.
func (*MockVmManager) GetChainNodesInfoProvider ¶
func (m *MockVmManager) GetChainNodesInfoProvider() protocol.ChainNodesInfoProvider
GetChainNodesInfoProvider mocks base method.
func (*MockVmManager) GetConsensusStateWrapper ¶
func (m *MockVmManager) GetConsensusStateWrapper() protocol.ConsensusStateWrapper
GetConsensusStateWrapper mocks base method.
func (*MockVmManager) OnMessage ¶ added in v3.0.1
func (m *MockVmManager) OnMessage(arg0 *msgbus.Message)
OnMessage mocks base method.
func (*MockVmManager) OnQuit ¶ added in v3.0.1
func (m *MockVmManager) OnQuit()
OnQuit mocks base method.
func (*MockVmManager) RunContract ¶
func (m *MockVmManager) RunContract(contract *common.Contract, method string, byteCode []byte, parameters map[string][]byte, txContext protocol.TxSimContext, gasUsed uint64, refTxType common.TxType) (*common.ContractResult, protocol.ExecOrderTxType, common.TxStatusCode)
RunContract mocks base method.
type MockVmManagerMockRecorder ¶
type MockVmManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockVmManagerMockRecorder is the mock recorder for MockVmManager.
func (*MockVmManagerMockRecorder) AfterSchedule ¶
func (mr *MockVmManagerMockRecorder) AfterSchedule(blockFingerprint, blockHeight interface{}) *gomock.Call
AfterSchedule indicates an expected call of AfterSchedule.
func (*MockVmManagerMockRecorder) BeforeSchedule ¶
func (mr *MockVmManagerMockRecorder) BeforeSchedule(blockFingerprint, blockHeight interface{}) *gomock.Call
BeforeSchedule indicates an expected call of BeforeSchedule.
func (*MockVmManagerMockRecorder) GetAccessControl ¶
func (mr *MockVmManagerMockRecorder) GetAccessControl() *gomock.Call
GetAccessControl indicates an expected call of GetAccessControl.
func (*MockVmManagerMockRecorder) GetChainNodesInfoProvider ¶
func (mr *MockVmManagerMockRecorder) GetChainNodesInfoProvider() *gomock.Call
GetChainNodesInfoProvider indicates an expected call of GetChainNodesInfoProvider.
func (*MockVmManagerMockRecorder) GetConsensusStateWrapper ¶
func (mr *MockVmManagerMockRecorder) GetConsensusStateWrapper() *gomock.Call
GetConsensusStateWrapper indicates an expected call of GetConsensusStateWrapper.
func (*MockVmManagerMockRecorder) OnMessage ¶ added in v3.0.1
func (mr *MockVmManagerMockRecorder) OnMessage(arg0 interface{}) *gomock.Call
OnMessage indicates an expected call of OnMessage.
func (*MockVmManagerMockRecorder) OnQuit ¶ added in v3.0.1
func (mr *MockVmManagerMockRecorder) OnQuit() *gomock.Call
OnQuit indicates an expected call of OnQuit.
func (*MockVmManagerMockRecorder) RunContract ¶
func (mr *MockVmManagerMockRecorder) RunContract(contract, method, byteCode, parameters, txContext, gasUsed, refTxType interface{}) *gomock.Call
RunContract indicates an expected call of RunContract.
func (*MockVmManagerMockRecorder) Start ¶
func (mr *MockVmManagerMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start.
func (*MockVmManagerMockRecorder) Stop ¶
func (mr *MockVmManagerMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
type MockVmWatcher ¶
type MockVmWatcher struct {
// contains filtered or unexported fields
}
MockVmWatcher is a mock of VmWatcher interface.
func NewMockVmWatcher ¶
func NewMockVmWatcher(ctrl *gomock.Controller) *MockVmWatcher
NewMockVmWatcher creates a new mock instance.
func (*MockVmWatcher) Callback ¶
func (m *MockVmWatcher) Callback(contractName string, payloadBytes []byte) error
Callback mocks base method.
func (*MockVmWatcher) ContractNames ¶
func (m *MockVmWatcher) ContractNames() []string
ContractNames mocks base method.
func (*MockVmWatcher) EXPECT ¶
func (m *MockVmWatcher) EXPECT() *MockVmWatcherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockVmWatcherMockRecorder ¶
type MockVmWatcherMockRecorder struct {
// contains filtered or unexported fields
}
MockVmWatcherMockRecorder is the mock recorder for MockVmWatcher.
func (*MockVmWatcherMockRecorder) Callback ¶
func (mr *MockVmWatcherMockRecorder) Callback(contractName, payloadBytes interface{}) *gomock.Call
Callback indicates an expected call of Callback.
func (*MockVmWatcherMockRecorder) ContractNames ¶
func (mr *MockVmWatcherMockRecorder) ContractNames() *gomock.Call
ContractNames indicates an expected call of ContractNames.
func (*MockVmWatcherMockRecorder) Module ¶
func (mr *MockVmWatcherMockRecorder) Module() *gomock.Call
Module indicates an expected call of Module.
type MockWacsi ¶
type MockWacsi struct {
// contains filtered or unexported fields
}
MockWacsi is a mock of Wacsi interface.
func NewMockWacsi ¶
func NewMockWacsi(ctrl *gomock.Controller) *MockWacsi
NewMockWacsi creates a new mock instance.
func (*MockWacsi) BulletProofsOperation ¶
func (m *MockWacsi) BulletProofsOperation(requestBody, memory, data []byte, isLen bool) ([]byte, error)
BulletProofsOperation mocks base method.
func (*MockWacsi) CallContract ¶
func (m *MockWacsi) CallContract(caller *common.Contract, requestBody []byte, txSimContext protocol.TxSimContext, memory, data []byte, gasUsed uint64, isLen bool) (*common.ContractResult, uint64, protocol.ExecOrderTxType, error)
CallContract mocks base method.
func (*MockWacsi) DeleteState ¶
func (m *MockWacsi) DeleteState(requestBody []byte, contractName string, txSimContext protocol.TxSimContext) error
DeleteState mocks base method.
func (*MockWacsi) EXPECT ¶
func (m *MockWacsi) EXPECT() *MockWacsiMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWacsi) EmitEvent ¶
func (m *MockWacsi) EmitEvent(requestBody []byte, txSimContext protocol.TxSimContext, contractId *common.Contract, log protocol.Logger) (*common.ContractEvent, error)
EmitEvent mocks base method.
func (*MockWacsi) ErrorResult ¶
func (m *MockWacsi) ErrorResult(contractResult *common.ContractResult, data []byte) int32
ErrorResult mocks base method.
func (*MockWacsi) ExecuteDDL ¶
func (m *MockWacsi) ExecuteDDL(requestBody []byte, contractName string, txSimContext protocol.TxSimContext, memory []byte, method string) error
ExecuteDDL mocks base method.
func (*MockWacsi) ExecuteQuery ¶
func (m *MockWacsi) ExecuteQuery(requestBody []byte, contractName string, txSimContext protocol.TxSimContext, memory []byte, chainId string) error
ExecuteQuery mocks base method.
func (*MockWacsi) ExecuteQueryOne ¶
func (m *MockWacsi) ExecuteQueryOne(requestBody []byte, contractName string, txSimContext protocol.TxSimContext, memory, data []byte, chainId string, isLen bool) ([]byte, error)
ExecuteQueryOne mocks base method.
func (*MockWacsi) ExecuteUpdate ¶
func (m *MockWacsi) ExecuteUpdate(requestBody []byte, contractName, method string, txSimContext protocol.TxSimContext, memory []byte, chainId string) error
ExecuteUpdate mocks base method.
func (*MockWacsi) GetState ¶
func (m *MockWacsi) GetState(requestBody []byte, contractName string, txSimContext protocol.TxSimContext, memory, data []byte, isLen bool) ([]byte, error)
GetState mocks base method.
func (*MockWacsi) KvIterator ¶
func (m *MockWacsi) KvIterator(requestBody []byte, contractName string, txSimContext protocol.TxSimContext, memory []byte) error
KvIterator mocks base method.
func (*MockWacsi) KvIteratorClose ¶
func (m *MockWacsi) KvIteratorClose(requestBody []byte, contractName string, txSimContext protocol.TxSimContext, memory []byte) error
KvIteratorClose mocks base method.
func (*MockWacsi) KvIteratorHasNext ¶
func (m *MockWacsi) KvIteratorHasNext(requestBody []byte, txSimContext protocol.TxSimContext, memory []byte) error
KvIteratorHasNext mocks base method.
func (*MockWacsi) KvIteratorNext ¶
func (m *MockWacsi) KvIteratorNext(requestBody []byte, txSimContext protocol.TxSimContext, memory, data []byte, contractName string, isLen bool) ([]byte, error)
KvIteratorNext mocks base method.
func (*MockWacsi) KvPreIterator ¶
func (m *MockWacsi) KvPreIterator(requestBody []byte, contractName string, txSimContext protocol.TxSimContext, memory []byte) error
KvPreIterator mocks base method.
func (*MockWacsi) PaillierOperation ¶
PaillierOperation mocks base method.
func (*MockWacsi) PutState ¶
func (m *MockWacsi) PutState(requestBody []byte, contractName string, txSimContext protocol.TxSimContext) error
PutState mocks base method.
func (*MockWacsi) RSClose ¶
func (m *MockWacsi) RSClose(requestBody []byte, txSimContext protocol.TxSimContext, memory []byte) error
RSClose mocks base method.
func (*MockWacsi) RSHasNext ¶
func (m *MockWacsi) RSHasNext(requestBody []byte, txSimContext protocol.TxSimContext, memory []byte) error
RSHasNext mocks base method.
type MockWacsiMockRecorder ¶
type MockWacsiMockRecorder struct {
// contains filtered or unexported fields
}
MockWacsiMockRecorder is the mock recorder for MockWacsi.
func (*MockWacsiMockRecorder) BulletProofsOperation ¶
func (mr *MockWacsiMockRecorder) BulletProofsOperation(requestBody, memory, data, isLen interface{}) *gomock.Call
BulletProofsOperation indicates an expected call of BulletProofsOperation.
func (*MockWacsiMockRecorder) CallContract ¶
func (mr *MockWacsiMockRecorder) CallContract(caller, requestBody, txSimContext, memory, data, gasUsed, isLen interface{}) *gomock.Call
CallContract indicates an expected call of CallContract.
func (*MockWacsiMockRecorder) DeleteState ¶
func (mr *MockWacsiMockRecorder) DeleteState(requestBody, contractName, txSimContext interface{}) *gomock.Call
DeleteState indicates an expected call of DeleteState.
func (*MockWacsiMockRecorder) EmitEvent ¶
func (mr *MockWacsiMockRecorder) EmitEvent(requestBody, txSimContext, contractId, log interface{}) *gomock.Call
EmitEvent indicates an expected call of EmitEvent.
func (*MockWacsiMockRecorder) ErrorResult ¶
func (mr *MockWacsiMockRecorder) ErrorResult(contractResult, data interface{}) *gomock.Call
ErrorResult indicates an expected call of ErrorResult.
func (*MockWacsiMockRecorder) ExecuteDDL ¶
func (mr *MockWacsiMockRecorder) ExecuteDDL(requestBody, contractName, txSimContext, memory, method interface{}) *gomock.Call
ExecuteDDL indicates an expected call of ExecuteDDL.
func (*MockWacsiMockRecorder) ExecuteQuery ¶
func (mr *MockWacsiMockRecorder) ExecuteQuery(requestBody, contractName, txSimContext, memory, chainId interface{}) *gomock.Call
ExecuteQuery indicates an expected call of ExecuteQuery.
func (*MockWacsiMockRecorder) ExecuteQueryOne ¶
func (mr *MockWacsiMockRecorder) ExecuteQueryOne(requestBody, contractName, txSimContext, memory, data, chainId, isLen interface{}) *gomock.Call
ExecuteQueryOne indicates an expected call of ExecuteQueryOne.
func (*MockWacsiMockRecorder) ExecuteUpdate ¶
func (mr *MockWacsiMockRecorder) ExecuteUpdate(requestBody, contractName, method, txSimContext, memory, chainId interface{}) *gomock.Call
ExecuteUpdate indicates an expected call of ExecuteUpdate.
func (*MockWacsiMockRecorder) GetState ¶
func (mr *MockWacsiMockRecorder) GetState(requestBody, contractName, txSimContext, memory, data, isLen interface{}) *gomock.Call
GetState indicates an expected call of GetState.
func (*MockWacsiMockRecorder) KvIterator ¶
func (mr *MockWacsiMockRecorder) KvIterator(requestBody, contractName, txSimContext, memory interface{}) *gomock.Call
KvIterator indicates an expected call of KvIterator.
func (*MockWacsiMockRecorder) KvIteratorClose ¶
func (mr *MockWacsiMockRecorder) KvIteratorClose(requestBody, contractName, txSimContext, memory interface{}) *gomock.Call
KvIteratorClose indicates an expected call of KvIteratorClose.
func (*MockWacsiMockRecorder) KvIteratorHasNext ¶
func (mr *MockWacsiMockRecorder) KvIteratorHasNext(requestBody, txSimContext, memory interface{}) *gomock.Call
KvIteratorHasNext indicates an expected call of KvIteratorHasNext.
func (*MockWacsiMockRecorder) KvIteratorNext ¶
func (mr *MockWacsiMockRecorder) KvIteratorNext(requestBody, txSimContext, memory, data, contractName, isLen interface{}) *gomock.Call
KvIteratorNext indicates an expected call of KvIteratorNext.
func (*MockWacsiMockRecorder) KvPreIterator ¶
func (mr *MockWacsiMockRecorder) KvPreIterator(requestBody, contractName, txSimContext, memory interface{}) *gomock.Call
KvPreIterator indicates an expected call of KvPreIterator.
func (*MockWacsiMockRecorder) PaillierOperation ¶
func (mr *MockWacsiMockRecorder) PaillierOperation(requestBody, memory, data, isLen interface{}) *gomock.Call
PaillierOperation indicates an expected call of PaillierOperation.
func (*MockWacsiMockRecorder) PutState ¶
func (mr *MockWacsiMockRecorder) PutState(requestBody, contractName, txSimContext interface{}) *gomock.Call
PutState indicates an expected call of PutState.
func (*MockWacsiMockRecorder) RSClose ¶
func (mr *MockWacsiMockRecorder) RSClose(requestBody, txSimContext, memory interface{}) *gomock.Call
RSClose indicates an expected call of RSClose.
func (*MockWacsiMockRecorder) RSHasNext ¶
func (mr *MockWacsiMockRecorder) RSHasNext(requestBody, txSimContext, memory interface{}) *gomock.Call
RSHasNext indicates an expected call of RSHasNext.
func (*MockWacsiMockRecorder) RSNext ¶
func (mr *MockWacsiMockRecorder) RSNext(requestBody, txSimContext, memory, data, isLen interface{}) *gomock.Call
RSNext indicates an expected call of RSNext.
func (*MockWacsiMockRecorder) SuccessResult ¶
func (mr *MockWacsiMockRecorder) SuccessResult(contractResult, data interface{}) *gomock.Call
SuccessResult indicates an expected call of SuccessResult.
type MockWacsiWithGas ¶ added in v3.0.1
type MockWacsiWithGas struct {
// contains filtered or unexported fields
}
MockWacsiWithGas is a mock of WacsiWithGas interface.
func NewMockWacsiWithGas ¶ added in v3.0.1
func NewMockWacsiWithGas(ctrl *gomock.Controller) *MockWacsiWithGas
NewMockWacsiWithGas creates a new mock instance.
func (*MockWacsiWithGas) BulletProofsOperation ¶ added in v3.0.1
func (m *MockWacsiWithGas) BulletProofsOperation(requestBody []byte, txSimContext protocol.TxSimContext, memory, data []byte, isLen bool) ([]byte, error)
BulletProofsOperation mocks base method.
func (*MockWacsiWithGas) CallContract ¶ added in v3.0.1
func (m *MockWacsiWithGas) CallContract(caller *common.Contract, requestBody []byte, txSimContext protocol.TxSimContext, memory, data []byte, gasUsed uint64, isLen bool) (*common.ContractResult, uint64, protocol.ExecOrderTxType, error)
CallContract mocks base method.
func (*MockWacsiWithGas) DeleteState ¶ added in v3.0.1
func (m *MockWacsiWithGas) DeleteState(requestBody []byte, contractName string, txSimContext protocol.TxSimContext) error
DeleteState mocks base method.
func (*MockWacsiWithGas) EXPECT ¶ added in v3.0.1
func (m *MockWacsiWithGas) EXPECT() *MockWacsiWithGasMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWacsiWithGas) EmitEvent ¶ added in v3.0.1
func (m *MockWacsiWithGas) EmitEvent(requestBody []byte, txSimContext protocol.TxSimContext, contractId *common.Contract, log protocol.Logger) (*common.ContractEvent, error)
EmitEvent mocks base method.
func (*MockWacsiWithGas) ErrorResult ¶ added in v3.0.1
func (m *MockWacsiWithGas) ErrorResult(contractResult *common.ContractResult, txSimContext protocol.TxSimContext, data []byte) int32
ErrorResult mocks base method.
func (*MockWacsiWithGas) ExecuteDDL ¶ added in v3.0.1
func (m *MockWacsiWithGas) ExecuteDDL(requestBody []byte, contractName string, txSimContext protocol.TxSimContext, memory []byte, method string) error
ExecuteDDL mocks base method.
func (*MockWacsiWithGas) ExecuteQuery ¶ added in v3.0.1
func (m *MockWacsiWithGas) ExecuteQuery(requestBody []byte, contractName string, txSimContext protocol.TxSimContext, memory []byte, chainId string) error
ExecuteQuery mocks base method.
func (*MockWacsiWithGas) ExecuteQueryOne ¶ added in v3.0.1
func (m *MockWacsiWithGas) ExecuteQueryOne(requestBody []byte, contractName string, txSimContext protocol.TxSimContext, memory, data []byte, chainId string, isLen bool) ([]byte, error)
ExecuteQueryOne mocks base method.
func (*MockWacsiWithGas) ExecuteUpdate ¶ added in v3.0.1
func (m *MockWacsiWithGas) ExecuteUpdate(requestBody []byte, contractName, method string, txSimContext protocol.TxSimContext, memory []byte, chainId string) error
ExecuteUpdate mocks base method.
func (*MockWacsiWithGas) GetState ¶ added in v3.0.1
func (m *MockWacsiWithGas) GetState(requestBody []byte, contractName string, txSimContext protocol.TxSimContext, memory, data []byte, isLen bool) ([]byte, error)
GetState mocks base method.
func (*MockWacsiWithGas) KvIterator ¶ added in v3.0.1
func (m *MockWacsiWithGas) KvIterator(requestBody []byte, contractName string, txSimContext protocol.TxSimContext, memory []byte) error
KvIterator mocks base method.
func (*MockWacsiWithGas) KvIteratorClose ¶ added in v3.0.1
func (m *MockWacsiWithGas) KvIteratorClose(requestBody []byte, contractName string, txSimContext protocol.TxSimContext, memory []byte) error
KvIteratorClose mocks base method.
func (*MockWacsiWithGas) KvIteratorHasNext ¶ added in v3.0.1
func (m *MockWacsiWithGas) KvIteratorHasNext(requestBody []byte, txSimContext protocol.TxSimContext, memory []byte) error
KvIteratorHasNext mocks base method.
func (*MockWacsiWithGas) KvIteratorNext ¶ added in v3.0.1
func (m *MockWacsiWithGas) KvIteratorNext(requestBody []byte, txSimContext protocol.TxSimContext, memory, data []byte, contractName string, isLen bool) ([]byte, error)
KvIteratorNext mocks base method.
func (*MockWacsiWithGas) KvPreIterator ¶ added in v3.0.1
func (m *MockWacsiWithGas) KvPreIterator(requestBody []byte, contractName string, txSimContext protocol.TxSimContext, memory []byte) error
KvPreIterator mocks base method.
func (*MockWacsiWithGas) LogMessage ¶ added in v3.0.1
func (m *MockWacsiWithGas) LogMessage(requestBody []byte, txSimContext protocol.TxSimContext) int32
LogMessage mocks base method.
func (*MockWacsiWithGas) PaillierOperation ¶ added in v3.0.1
func (m *MockWacsiWithGas) PaillierOperation(requestBody []byte, txSimContext protocol.TxSimContext, memory, data []byte, isLen bool) ([]byte, error)
PaillierOperation mocks base method.
func (*MockWacsiWithGas) PutState ¶ added in v3.0.1
func (m *MockWacsiWithGas) PutState(requestBody []byte, contractName string, txSimContext protocol.TxSimContext) error
PutState mocks base method.
func (*MockWacsiWithGas) RSClose ¶ added in v3.0.1
func (m *MockWacsiWithGas) RSClose(requestBody []byte, txSimContext protocol.TxSimContext, memory []byte) error
RSClose mocks base method.
func (*MockWacsiWithGas) RSHasNext ¶ added in v3.0.1
func (m *MockWacsiWithGas) RSHasNext(requestBody []byte, txSimContext protocol.TxSimContext, memory []byte) error
RSHasNext mocks base method.
func (*MockWacsiWithGas) RSNext ¶ added in v3.0.1
func (m *MockWacsiWithGas) RSNext(requestBody []byte, txSimContext protocol.TxSimContext, memory, data []byte, isLen bool) ([]byte, error)
RSNext mocks base method.
func (*MockWacsiWithGas) SuccessResult ¶ added in v3.0.1
func (m *MockWacsiWithGas) SuccessResult(contractResult *common.ContractResult, txSimContext protocol.TxSimContext, data []byte) int32
SuccessResult mocks base method.
type MockWacsiWithGasMockRecorder ¶ added in v3.0.1
type MockWacsiWithGasMockRecorder struct {
// contains filtered or unexported fields
}
MockWacsiWithGasMockRecorder is the mock recorder for MockWacsiWithGas.
func (*MockWacsiWithGasMockRecorder) BulletProofsOperation ¶ added in v3.0.1
func (mr *MockWacsiWithGasMockRecorder) BulletProofsOperation(requestBody, txSimContext, memory, data, isLen interface{}) *gomock.Call
BulletProofsOperation indicates an expected call of BulletProofsOperation.
func (*MockWacsiWithGasMockRecorder) CallContract ¶ added in v3.0.1
func (mr *MockWacsiWithGasMockRecorder) CallContract(caller, requestBody, txSimContext, memory, data, gasUsed, isLen interface{}) *gomock.Call
CallContract indicates an expected call of CallContract.
func (*MockWacsiWithGasMockRecorder) DeleteState ¶ added in v3.0.1
func (mr *MockWacsiWithGasMockRecorder) DeleteState(requestBody, contractName, txSimContext interface{}) *gomock.Call
DeleteState indicates an expected call of DeleteState.
func (*MockWacsiWithGasMockRecorder) EmitEvent ¶ added in v3.0.1
func (mr *MockWacsiWithGasMockRecorder) EmitEvent(requestBody, txSimContext, contractId, log interface{}) *gomock.Call
EmitEvent indicates an expected call of EmitEvent.
func (*MockWacsiWithGasMockRecorder) ErrorResult ¶ added in v3.0.1
func (mr *MockWacsiWithGasMockRecorder) ErrorResult(contractResult, txSimContext, data interface{}) *gomock.Call
ErrorResult indicates an expected call of ErrorResult.
func (*MockWacsiWithGasMockRecorder) ExecuteDDL ¶ added in v3.0.1
func (mr *MockWacsiWithGasMockRecorder) ExecuteDDL(requestBody, contractName, txSimContext, memory, method interface{}) *gomock.Call
ExecuteDDL indicates an expected call of ExecuteDDL.
func (*MockWacsiWithGasMockRecorder) ExecuteQuery ¶ added in v3.0.1
func (mr *MockWacsiWithGasMockRecorder) ExecuteQuery(requestBody, contractName, txSimContext, memory, chainId interface{}) *gomock.Call
ExecuteQuery indicates an expected call of ExecuteQuery.
func (*MockWacsiWithGasMockRecorder) ExecuteQueryOne ¶ added in v3.0.1
func (mr *MockWacsiWithGasMockRecorder) ExecuteQueryOne(requestBody, contractName, txSimContext, memory, data, chainId, isLen interface{}) *gomock.Call
ExecuteQueryOne indicates an expected call of ExecuteQueryOne.
func (*MockWacsiWithGasMockRecorder) ExecuteUpdate ¶ added in v3.0.1
func (mr *MockWacsiWithGasMockRecorder) ExecuteUpdate(requestBody, contractName, method, txSimContext, memory, chainId interface{}) *gomock.Call
ExecuteUpdate indicates an expected call of ExecuteUpdate.
func (*MockWacsiWithGasMockRecorder) GetState ¶ added in v3.0.1
func (mr *MockWacsiWithGasMockRecorder) GetState(requestBody, contractName, txSimContext, memory, data, isLen interface{}) *gomock.Call
GetState indicates an expected call of GetState.
func (*MockWacsiWithGasMockRecorder) KvIterator ¶ added in v3.0.1
func (mr *MockWacsiWithGasMockRecorder) KvIterator(requestBody, contractName, txSimContext, memory interface{}) *gomock.Call
KvIterator indicates an expected call of KvIterator.
func (*MockWacsiWithGasMockRecorder) KvIteratorClose ¶ added in v3.0.1
func (mr *MockWacsiWithGasMockRecorder) KvIteratorClose(requestBody, contractName, txSimContext, memory interface{}) *gomock.Call
KvIteratorClose indicates an expected call of KvIteratorClose.
func (*MockWacsiWithGasMockRecorder) KvIteratorHasNext ¶ added in v3.0.1
func (mr *MockWacsiWithGasMockRecorder) KvIteratorHasNext(requestBody, txSimContext, memory interface{}) *gomock.Call
KvIteratorHasNext indicates an expected call of KvIteratorHasNext.
func (*MockWacsiWithGasMockRecorder) KvIteratorNext ¶ added in v3.0.1
func (mr *MockWacsiWithGasMockRecorder) KvIteratorNext(requestBody, txSimContext, memory, data, contractName, isLen interface{}) *gomock.Call
KvIteratorNext indicates an expected call of KvIteratorNext.
func (*MockWacsiWithGasMockRecorder) KvPreIterator ¶ added in v3.0.1
func (mr *MockWacsiWithGasMockRecorder) KvPreIterator(requestBody, contractName, txSimContext, memory interface{}) *gomock.Call
KvPreIterator indicates an expected call of KvPreIterator.
func (*MockWacsiWithGasMockRecorder) LogMessage ¶ added in v3.0.1
func (mr *MockWacsiWithGasMockRecorder) LogMessage(requestBody, txSimContext interface{}) *gomock.Call
LogMessage indicates an expected call of LogMessage.
func (*MockWacsiWithGasMockRecorder) PaillierOperation ¶ added in v3.0.1
func (mr *MockWacsiWithGasMockRecorder) PaillierOperation(requestBody, txSimContext, memory, data, isLen interface{}) *gomock.Call
PaillierOperation indicates an expected call of PaillierOperation.
func (*MockWacsiWithGasMockRecorder) PutState ¶ added in v3.0.1
func (mr *MockWacsiWithGasMockRecorder) PutState(requestBody, contractName, txSimContext interface{}) *gomock.Call
PutState indicates an expected call of PutState.
func (*MockWacsiWithGasMockRecorder) RSClose ¶ added in v3.0.1
func (mr *MockWacsiWithGasMockRecorder) RSClose(requestBody, txSimContext, memory interface{}) *gomock.Call
RSClose indicates an expected call of RSClose.
func (*MockWacsiWithGasMockRecorder) RSHasNext ¶ added in v3.0.1
func (mr *MockWacsiWithGasMockRecorder) RSHasNext(requestBody, txSimContext, memory interface{}) *gomock.Call
RSHasNext indicates an expected call of RSHasNext.
func (*MockWacsiWithGasMockRecorder) RSNext ¶ added in v3.0.1
func (mr *MockWacsiWithGasMockRecorder) RSNext(requestBody, txSimContext, memory, data, isLen interface{}) *gomock.Call
RSNext indicates an expected call of RSNext.
func (*MockWacsiWithGasMockRecorder) SuccessResult ¶ added in v3.0.1
func (mr *MockWacsiWithGasMockRecorder) SuccessResult(contractResult, txSimContext, data interface{}) *gomock.Call
SuccessResult indicates an expected call of SuccessResult.
type MockWatcher ¶
type MockWatcher struct {
// contains filtered or unexported fields
}
MockWatcher is a mock of Watcher interface.
func NewMockWatcher ¶
func NewMockWatcher(ctrl *gomock.Controller) *MockWatcher
NewMockWatcher creates a new mock instance.
func (*MockWatcher) EXPECT ¶
func (m *MockWatcher) EXPECT() *MockWatcherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWatcher) Watch ¶
func (m *MockWatcher) Watch(chainConfig *config.ChainConfig) error
Watch mocks base method.
type MockWatcherMockRecorder ¶
type MockWatcherMockRecorder struct {
// contains filtered or unexported fields
}
MockWatcherMockRecorder is the mock recorder for MockWatcher.
func (*MockWatcherMockRecorder) Module ¶
func (mr *MockWatcherMockRecorder) Module() *gomock.Call
Module indicates an expected call of Module.
func (*MockWatcherMockRecorder) Watch ¶
func (mr *MockWatcherMockRecorder) Watch(chainConfig interface{}) *gomock.Call
Watch indicates an expected call of Watch.