mock

package
v2.3.6 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: Apache-2.0 Imports: 18 Imported by: 8

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

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

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

func (*MockAccessControlProvider) GetAddressFromCache added in v2.3.4

func (m *MockAccessControlProvider) GetAddressFromCache(pkBytes []byte) (string, crypto.PublicKey, error)

GetAddressFromCache mocks base method.

func (*MockAccessControlProvider) GetAllPolicy added in v2.3.0

func (m *MockAccessControlProvider) GetAllPolicy() (map[string]*accesscontrol.Policy, error)

GetAllPolicy mocks base method.

func (*MockAccessControlProvider) GetCertFromCache added in v2.3.4

func (m *MockAccessControlProvider) GetCertFromCache(keyBytes []byte) ([]byte, error)

GetCertFromCache mocks base method.

func (*MockAccessControlProvider) GetHashAlg

func (m *MockAccessControlProvider) GetHashAlg() string

GetHashAlg mocks base method.

func (*MockAccessControlProvider) GetMemberStatus

GetMemberStatus mocks base method.

func (*MockAccessControlProvider) GetPayerFromCache added in v2.3.4

func (m *MockAccessControlProvider) GetPayerFromCache(key []byte) ([]byte, error)

GetPayerFromCache mocks base method.

func (*MockAccessControlProvider) GetValidEndorsements added in v2.1.0

func (m *MockAccessControlProvider) GetValidEndorsements(principal protocol.Principal, blockVersion uint32) ([]*common.EndorsementEntry, error)

GetValidEndorsements mocks base method.

func (*MockAccessControlProvider) IsRuleSupportedByMultiSign added in v2.3.4

func (m *MockAccessControlProvider) IsRuleSupportedByMultiSign(resourceName string, blockVersion uint32) error

IsRuleSupportedByMultiSign mocks base method.

func (*MockAccessControlProvider) NewMember

NewMember mocks base method.

func (*MockAccessControlProvider) RefineEndorsements added in v2.3.3

func (m *MockAccessControlProvider) RefineEndorsements(endorsements []*common.EndorsementEntry, msg []byte) []*common.EndorsementEntry

RefineEndorsements mocks base method.

func (*MockAccessControlProvider) SetPayerToCache added in v2.3.4

func (m *MockAccessControlProvider) SetPayerToCache(key, value []byte) error

SetPayerToCache mocks base method.

func (*MockAccessControlProvider) ValidateResourcePolicy

func (m *MockAccessControlProvider) ValidateResourcePolicy(resourcePolicy *config.ResourcePolicy) bool

ValidateResourcePolicy mocks base method.

func (*MockAccessControlProvider) VerifyMsgPrincipal added in v2.3.4

func (m *MockAccessControlProvider) VerifyMsgPrincipal(principal protocol.Principal, blockVersion uint32) (bool, error)

VerifyMsgPrincipal mocks base method.

func (*MockAccessControlProvider) VerifyMultiSignTxPrincipal added in v2.3.4

func (m *MockAccessControlProvider) VerifyMultiSignTxPrincipal(mInfo *syscontract.MultiSignInfo, blockVersion uint32) (syscontract.MultiSignStatus, error)

VerifyMultiSignTxPrincipal mocks base method.

func (*MockAccessControlProvider) VerifyPrincipalLT2330 added in v2.3.4

func (m *MockAccessControlProvider) VerifyPrincipalLT2330(principal protocol.Principal, blockVersion uint32) (bool, error)

VerifyPrincipalLT2330 mocks base method.

func (*MockAccessControlProvider) VerifyRelatedMaterial

func (m *MockAccessControlProvider) VerifyRelatedMaterial(verifyType accesscontrol.VerifyType, data []byte) (bool, error)

VerifyRelatedMaterial mocks base method.

func (*MockAccessControlProvider) VerifyTxPrincipal added in v2.3.4

func (m *MockAccessControlProvider) VerifyTxPrincipal(tx *common.Transaction, resourceId string, blockVersion uint32) (bool, error)

VerifyTxPrincipal 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) GetAddressFromCache added in v2.3.4

func (mr *MockAccessControlProviderMockRecorder) GetAddressFromCache(pkBytes interface{}) *gomock.Call

GetAddressFromCache indicates an expected call of GetAddressFromCache.

func (*MockAccessControlProviderMockRecorder) GetAllPolicy added in v2.3.0

GetAllPolicy indicates an expected call of GetAllPolicy.

func (*MockAccessControlProviderMockRecorder) GetCertFromCache added in v2.3.4

func (mr *MockAccessControlProviderMockRecorder) GetCertFromCache(keyBytes interface{}) *gomock.Call

GetCertFromCache indicates an expected call of GetCertFromCache.

func (*MockAccessControlProviderMockRecorder) GetHashAlg

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) GetPayerFromCache added in v2.3.4

func (mr *MockAccessControlProviderMockRecorder) GetPayerFromCache(key interface{}) *gomock.Call

GetPayerFromCache indicates an expected call of GetPayerFromCache.

func (*MockAccessControlProviderMockRecorder) GetValidEndorsements added in v2.1.0

func (mr *MockAccessControlProviderMockRecorder) GetValidEndorsements(principal, blockVersion interface{}) *gomock.Call

GetValidEndorsements indicates an expected call of GetValidEndorsements.

func (*MockAccessControlProviderMockRecorder) IsRuleSupportedByMultiSign added in v2.3.4

func (mr *MockAccessControlProviderMockRecorder) IsRuleSupportedByMultiSign(resourceName, blockVersion interface{}) *gomock.Call

IsRuleSupportedByMultiSign indicates an expected call of IsRuleSupportedByMultiSign.

func (*MockAccessControlProviderMockRecorder) NewMember

func (mr *MockAccessControlProviderMockRecorder) NewMember(member interface{}) *gomock.Call

NewMember indicates an expected call of NewMember.

func (*MockAccessControlProviderMockRecorder) RefineEndorsements added in v2.3.3

func (mr *MockAccessControlProviderMockRecorder) RefineEndorsements(endorsements, msg interface{}) *gomock.Call

RefineEndorsements indicates an expected call of RefineEndorsements.

func (*MockAccessControlProviderMockRecorder) SetPayerToCache added in v2.3.4

func (mr *MockAccessControlProviderMockRecorder) SetPayerToCache(key, value interface{}) *gomock.Call

SetPayerToCache indicates an expected call of SetPayerToCache.

func (*MockAccessControlProviderMockRecorder) ValidateResourcePolicy

func (mr *MockAccessControlProviderMockRecorder) ValidateResourcePolicy(resourcePolicy interface{}) *gomock.Call

ValidateResourcePolicy indicates an expected call of ValidateResourcePolicy.

func (*MockAccessControlProviderMockRecorder) VerifyMsgPrincipal added in v2.3.4

func (mr *MockAccessControlProviderMockRecorder) VerifyMsgPrincipal(principal, blockVersion interface{}) *gomock.Call

VerifyMsgPrincipal indicates an expected call of VerifyMsgPrincipal.

func (*MockAccessControlProviderMockRecorder) VerifyMultiSignTxPrincipal added in v2.3.4

func (mr *MockAccessControlProviderMockRecorder) VerifyMultiSignTxPrincipal(mInfo, blockVersion interface{}) *gomock.Call

VerifyMultiSignTxPrincipal indicates an expected call of VerifyMultiSignTxPrincipal.

func (*MockAccessControlProviderMockRecorder) VerifyPrincipalLT2330 added in v2.3.4

func (mr *MockAccessControlProviderMockRecorder) VerifyPrincipalLT2330(principal, blockVersion interface{}) *gomock.Call

VerifyPrincipalLT2330 indicates an expected call of VerifyPrincipalLT2330.

func (*MockAccessControlProviderMockRecorder) VerifyRelatedMaterial

func (mr *MockAccessControlProviderMockRecorder) VerifyRelatedMaterial(verifyType, data interface{}) *gomock.Call

VerifyRelatedMaterial indicates an expected call of VerifyRelatedMaterial.

func (*MockAccessControlProviderMockRecorder) VerifyTxPrincipal added in v2.3.4

func (mr *MockAccessControlProviderMockRecorder) VerifyTxPrincipal(tx, resourceId, blockVersion interface{}) *gomock.Call

VerifyTxPrincipal indicates an expected call of VerifyTxPrincipal.

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

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

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

func (*MockBlockProposer) OnReceiveMaxBFTProposal added in v2.2.0

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 added in v2.3.0

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 added in v2.3.0

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.

func (*MockBlockProposer) Stop

func (m *MockBlockProposer) Stop() error

Stop mocks base method.

type MockBlockProposerMockRecorder

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

MockBlockProposerMockRecorder is the mock recorder for MockBlockProposer.

func (*MockBlockProposerMockRecorder) OnReceiveMaxBFTProposal added in v2.2.0

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 added in v2.3.0

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 added in v2.3.0

func (mr *MockBlockProposerMockRecorder) ProposeBlock(proposal interface{}) *gomock.Call

ProposeBlock indicates an expected call of ProposeBlock.

func (*MockBlockProposerMockRecorder) Start

Start indicates an expected call of Start.

func (*MockBlockProposerMockRecorder) Stop

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

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 added in v2.3.0

func (m *MockBlockVerifier) VerifyBlockSync(block *common.Block, mode protocol.VerifyMode) (*consensus.VerifyResult, error)

VerifyBlockSync mocks base method.

func (*MockBlockVerifier) VerifyBlockWithRwSets added in v2.2.0

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 added in v2.3.0

func (mr *MockBlockVerifierMockRecorder) VerifyBlockSync(block, mode interface{}) *gomock.Call

VerifyBlockSync indicates an expected call of VerifyBlockSync.

func (*MockBlockVerifierMockRecorder) VerifyBlockWithRwSets added in v2.2.0

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 added in v2.1.0

func (m *MockBlockchainStore) CreateDatabase(contractName string) error

CreateDatabase mocks base method.

func (*MockBlockchainStore) DropDatabase added in v2.1.0

func (m *MockBlockchainStore) DropDatabase(contractName string) error

DropDatabase mocks base method.

func (*MockBlockchainStore) EXPECT

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 v2.3.3

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 added in v2.1.0

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) 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 v2.3.3

func (m *MockBlockchainStore) GetLastHeight() (uint64, error)

GetLastHeight mocks base method.

func (*MockBlockchainStore) GetMemberExtraData added in v2.1.0

func (m *MockBlockchainStore) GetMemberExtraData(member *accesscontrol.Member) (*accesscontrol.MemberExtraData, error)

GetMemberExtraData 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 added in v2.2.0

func (m *MockBlockchainStore) GetTxInfoOnly(txId string) (*common.TransactionInfo, error)

GetTxInfoOnly mocks base method.

func (*MockBlockchainStore) GetTxInfoWithRWSet added in v2.2.0

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 added in v2.2.0

func (m *MockBlockchainStore) GetTxWithInfo(txId string) (*common.TransactionInfo, error)

GetTxWithInfo mocks base method.

func (*MockBlockchainStore) GetTxWithRWSet added in v2.2.0

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

func (m *MockBlockchainStore) PutBlock(block *common.Block, txRWSets []*common.TxRWSet) error

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 added in v2.3.0

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 added in v2.2.2

func (m *MockBlockchainStore) TxExistsInFullDB(txId string) (bool, uint64, error)

TxExistsInFullDB mocks base method.

func (*MockBlockchainStore) TxExistsInIncrementDB added in v2.2.2

func (m *MockBlockchainStore) TxExistsInIncrementDB(txId string, startHeight uint64) (bool, error)

TxExistsInIncrementDB mocks base method.

func (*MockBlockchainStore) TxExistsInIncrementDBState added in v2.3.1

func (m *MockBlockchainStore) TxExistsInIncrementDBState(txId string, startHeight uint64) (bool, bool, error)

TxExistsInIncrementDBState 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

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 added in v2.1.0

func (mr *MockBlockchainStoreMockRecorder) CreateDatabase(contractName interface{}) *gomock.Call

CreateDatabase indicates an expected call of CreateDatabase.

func (*MockBlockchainStoreMockRecorder) DropDatabase added in v2.1.0

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 v2.3.3

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 added in v2.1.0

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) 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 v2.3.3

func (mr *MockBlockchainStoreMockRecorder) GetLastHeight() *gomock.Call

GetLastHeight indicates an expected call of GetLastHeight.

func (*MockBlockchainStoreMockRecorder) GetMemberExtraData added in v2.1.0

func (mr *MockBlockchainStoreMockRecorder) GetMemberExtraData(member interface{}) *gomock.Call

GetMemberExtraData indicates an expected call of GetMemberExtraData.

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 added in v2.2.0

func (mr *MockBlockchainStoreMockRecorder) GetTxInfoOnly(txId interface{}) *gomock.Call

GetTxInfoOnly indicates an expected call of GetTxInfoOnly.

func (*MockBlockchainStoreMockRecorder) GetTxInfoWithRWSet added in v2.2.0

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 added in v2.2.0

func (mr *MockBlockchainStoreMockRecorder) GetTxWithInfo(txId interface{}) *gomock.Call

GetTxWithInfo indicates an expected call of GetTxWithInfo.

func (*MockBlockchainStoreMockRecorder) GetTxWithRWSet added in v2.2.0

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) 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 added in v2.3.0

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 added in v2.2.2

func (mr *MockBlockchainStoreMockRecorder) TxExistsInFullDB(txId interface{}) *gomock.Call

TxExistsInFullDB indicates an expected call of TxExistsInFullDB.

func (*MockBlockchainStoreMockRecorder) TxExistsInIncrementDB added in v2.2.2

func (mr *MockBlockchainStoreMockRecorder) TxExistsInIncrementDB(txId, startHeight interface{}) *gomock.Call

TxExistsInIncrementDB indicates an expected call of TxExistsInIncrementDB.

func (*MockBlockchainStoreMockRecorder) TxExistsInIncrementDBState added in v2.3.1

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

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

func (m *MockChainConf) Init() error

Init mocks base method.

func (*MockChainConf) SetChainConfig added in v2.3.2

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

Init indicates an expected call of Init.

func (*MockChainConfMockRecorder) SetChainConfig added in v2.3.2

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

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

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

func (*MockConsensusEngine) GetConsensusStateJSON added in v2.3.5

func (m *MockConsensusEngine) GetConsensusStateJSON() ([]byte, error)

GetConsensusStateJSON mocks base method.

func (*MockConsensusEngine) GetLastHeight added in v2.3.5

func (m *MockConsensusEngine) GetLastHeight() uint64

GetLastHeight mocks base method.

func (*MockConsensusEngine) GetValidators added in v2.3.5

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) GetConsensusStateJSON added in v2.3.5

func (mr *MockConsensusEngineMockRecorder) GetConsensusStateJSON() *gomock.Call

GetConsensusStateJSON indicates an expected call of GetConsensusStateJSON.

func (*MockConsensusEngineMockRecorder) GetLastHeight added in v2.3.5

func (mr *MockConsensusEngineMockRecorder) GetLastHeight() *gomock.Call

GetLastHeight indicates an expected call of GetLastHeight.

func (*MockConsensusEngineMockRecorder) GetValidators added in v2.3.5

func (mr *MockConsensusEngineMockRecorder) GetValidators() *gomock.Call

GetValidators indicates an expected call of GetValidators.

func (*MockConsensusEngineMockRecorder) Start

Start indicates an expected call of Start.

func (*MockConsensusEngineMockRecorder) Stop

Stop indicates an expected call of Stop.

type MockConsensusExtendEngine added in v2.2.0

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

MockConsensusExtendEngine is a mock of ConsensusExtendEngine interface.

func NewMockConsensusExtendEngine added in v2.2.0

func NewMockConsensusExtendEngine(ctrl *gomock.Controller) *MockConsensusExtendEngine

NewMockConsensusExtendEngine creates a new mock instance.

func (*MockConsensusExtendEngine) EXPECT added in v2.2.0

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

func (*MockConsensusExtendEngine) GetConsensusStateJSON added in v2.3.5

func (m *MockConsensusExtendEngine) GetConsensusStateJSON() ([]byte, error)

GetConsensusStateJSON mocks base method.

func (*MockConsensusExtendEngine) GetLastHeight added in v2.3.5

func (m *MockConsensusExtendEngine) GetLastHeight() uint64

GetLastHeight mocks base method.

func (*MockConsensusExtendEngine) GetValidators added in v2.3.5

func (m *MockConsensusExtendEngine) GetValidators() ([]string, error)

GetValidators mocks base method.

func (*MockConsensusExtendEngine) InitExtendHandler added in v2.2.0

func (m *MockConsensusExtendEngine) InitExtendHandler(handler protocol.ConsensusExtendHandler)

InitExtendHandler mocks base method.

func (*MockConsensusExtendEngine) Start added in v2.2.0

func (m *MockConsensusExtendEngine) Start() error

Start mocks base method.

func (*MockConsensusExtendEngine) Stop added in v2.2.0

func (m *MockConsensusExtendEngine) Stop() error

Stop mocks base method.

type MockConsensusExtendEngineMockRecorder added in v2.2.0

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

MockConsensusExtendEngineMockRecorder is the mock recorder for MockConsensusExtendEngine.

func (*MockConsensusExtendEngineMockRecorder) GetConsensusStateJSON added in v2.3.5

func (mr *MockConsensusExtendEngineMockRecorder) GetConsensusStateJSON() *gomock.Call

GetConsensusStateJSON indicates an expected call of GetConsensusStateJSON.

func (*MockConsensusExtendEngineMockRecorder) GetLastHeight added in v2.3.5

func (mr *MockConsensusExtendEngineMockRecorder) GetLastHeight() *gomock.Call

GetLastHeight indicates an expected call of GetLastHeight.

func (*MockConsensusExtendEngineMockRecorder) GetValidators added in v2.3.5

func (mr *MockConsensusExtendEngineMockRecorder) GetValidators() *gomock.Call

GetValidators indicates an expected call of GetValidators.

func (*MockConsensusExtendEngineMockRecorder) InitExtendHandler added in v2.2.0

func (mr *MockConsensusExtendEngineMockRecorder) InitExtendHandler(handler interface{}) *gomock.Call

InitExtendHandler indicates an expected call of InitExtendHandler.

func (*MockConsensusExtendEngineMockRecorder) Start added in v2.2.0

Start indicates an expected call of Start.

func (*MockConsensusExtendEngineMockRecorder) Stop added in v2.2.0

Stop indicates an expected call of Stop.

type MockConsensusExtendHandler added in v2.2.0

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

MockConsensusExtendHandler is a mock of ConsensusExtendHandler interface.

func NewMockConsensusExtendHandler added in v2.2.0

func NewMockConsensusExtendHandler(ctrl *gomock.Controller) *MockConsensusExtendHandler

NewMockConsensusExtendHandler creates a new mock instance.

func (*MockConsensusExtendHandler) CreateRWSet added in v2.2.0

func (m *MockConsensusExtendHandler) CreateRWSet(preBlkHash []byte, proposedBlock *consensus.ProposalBlock) error

CreateRWSet mocks base method.

func (*MockConsensusExtendHandler) EXPECT added in v2.2.0

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

func (*MockConsensusExtendHandler) GetValidators added in v2.2.0

func (m *MockConsensusExtendHandler) GetValidators() ([]string, error)

GetValidators mocks base method.

func (*MockConsensusExtendHandler) VerifyConsensusArgs added in v2.2.0

func (m *MockConsensusExtendHandler) VerifyConsensusArgs(block *common.Block, blockTxRwSet map[string]*common.TxRWSet) error

VerifyConsensusArgs mocks base method.

type MockConsensusExtendHandlerMockRecorder added in v2.2.0

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

MockConsensusExtendHandlerMockRecorder is the mock recorder for MockConsensusExtendHandler.

func (*MockConsensusExtendHandlerMockRecorder) CreateRWSet added in v2.2.0

func (mr *MockConsensusExtendHandlerMockRecorder) CreateRWSet(preBlkHash, proposedBlock interface{}) *gomock.Call

CreateRWSet indicates an expected call of CreateRWSet.

func (*MockConsensusExtendHandlerMockRecorder) GetValidators added in v2.2.0

func (mr *MockConsensusExtendHandlerMockRecorder) GetValidators() *gomock.Call

GetValidators indicates an expected call of GetValidators.

func (*MockConsensusExtendHandlerMockRecorder) VerifyConsensusArgs added in v2.2.0

func (mr *MockConsensusExtendHandlerMockRecorder) VerifyConsensusArgs(block, blockTxRwSet interface{}) *gomock.Call

VerifyConsensusArgs indicates an expected call of VerifyConsensusArgs.

type MockConsensusState added in v2.2.0

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

MockConsensusState is a mock of ConsensusState interface.

func NewMockConsensusState added in v2.2.0

func NewMockConsensusState(ctrl *gomock.Controller) *MockConsensusState

NewMockConsensusState creates a new mock instance.

func (*MockConsensusState) EXPECT added in v2.2.0

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

func (*MockConsensusState) GetConsensusStateJSON added in v2.2.0

func (m *MockConsensusState) GetConsensusStateJSON() ([]byte, error)

GetConsensusStateJSON mocks base method.

func (*MockConsensusState) GetLastHeight added in v2.2.0

func (m *MockConsensusState) GetLastHeight() uint64

GetLastHeight mocks base method.

func (*MockConsensusState) GetValidators added in v2.2.0

func (m *MockConsensusState) GetValidators() ([]string, error)

GetValidators mocks base method.

type MockConsensusStateMockRecorder added in v2.2.0

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

MockConsensusStateMockRecorder is the mock recorder for MockConsensusState.

func (*MockConsensusStateMockRecorder) GetConsensusStateJSON added in v2.2.0

func (mr *MockConsensusStateMockRecorder) GetConsensusStateJSON() *gomock.Call

GetConsensusStateJSON indicates an expected call of GetConsensusStateJSON.

func (*MockConsensusStateMockRecorder) GetLastHeight added in v2.2.0

func (mr *MockConsensusStateMockRecorder) GetLastHeight() *gomock.Call

GetLastHeight indicates an expected call of GetLastHeight.

func (*MockConsensusStateMockRecorder) GetValidators added in v2.2.0

func (mr *MockConsensusStateMockRecorder) GetValidators() *gomock.Call

GetValidators indicates an expected call of GetValidators.

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

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

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

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

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

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

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

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

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

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 added in v2.3.0

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 added in v2.2.0

func (m *MockCoreEngine) GetMaxbftHelper() protocol.MaxbftHelper

GetMaxbftHelper mocks base method.

func (*MockCoreEngine) OnMessage

func (m *MockCoreEngine) OnMessage(arg0 *msgbus.Message)

OnMessage mocks base method.

func (*MockCoreEngine) OnQuit

func (m *MockCoreEngine) OnQuit()

OnQuit mocks base method.

func (*MockCoreEngine) Start

func (m *MockCoreEngine) Start()

Start mocks base method.

func (*MockCoreEngine) Stop

func (m *MockCoreEngine) Stop()

Stop 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 added in v2.3.0

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 added in v2.2.0

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

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

func (m *MockDBHandle) Close() error

Close mocks base method.

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

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 added in v2.2.0

func (m *MockDBHandle) GetDbType() string

GetDbType mocks base method.

func (*MockDBHandle) GetKeys added in v2.3.0

func (m *MockDBHandle) GetKeys(keys [][]byte) ([][]byte, error)

GetKeys mocks base method.

func (*MockDBHandle) GetWriteBatchSize added in v2.1.0

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 added in v2.2.0

func (mr *MockDBHandleMockRecorder) GetDbType() *gomock.Call

GetDbType indicates an expected call of GetDbType.

func (*MockDBHandleMockRecorder) GetKeys added in v2.3.0

func (mr *MockDBHandleMockRecorder) GetKeys(keys interface{}) *gomock.Call

GetKeys indicates an expected call of GetKeys.

func (*MockDBHandleMockRecorder) GetWriteBatchSize added in v2.1.0

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

func (m *MockDPoS) GetValidators() ([]string, error)

GetValidators mocks base method.

func (*MockDPoS) VerifyConsensusArgs

func (m *MockDPoS) VerifyConsensusArgs(block *common.Block, blockTxRwSet map[string]*common.TxRWSet) error

VerifyConsensusArgs 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

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

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

func (*MockIterator) Error

func (m *MockIterator) Error() error

Error mocks base method.

func (*MockIterator) First

func (m *MockIterator) First() bool

First mocks base method.

func (*MockIterator) Key

func (m *MockIterator) Key() []byte

Key mocks base method.

func (*MockIterator) Next

func (m *MockIterator) Next() bool

Next mocks base method.

func (*MockIterator) Release

func (m *MockIterator) Release()

Release mocks base method.

func (*MockIterator) Value

func (m *MockIterator) Value() []byte

Value mocks base method.

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

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

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

Value mocks base method.

type MockKeyHistoryIteratorMockRecorder

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

MockKeyHistoryIteratorMockRecorder is the mock recorder for MockKeyHistoryIterator.

func (*MockKeyHistoryIteratorMockRecorder) Next

Next indicates an expected call of Next.

func (*MockKeyHistoryIteratorMockRecorder) Release

Release indicates an expected call of Release.

func (*MockKeyHistoryIteratorMockRecorder) Value

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

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 added in v2.1.0

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

MockLogger is a mock of Logger interface.

func NewMockLogger added in v2.1.0

func NewMockLogger(ctrl *gomock.Controller) *MockLogger

NewMockLogger creates a new mock instance.

func (*MockLogger) Debug added in v2.1.0

func (m *MockLogger) Debug(args ...interface{})

Debug mocks base method.

func (*MockLogger) DebugDynamic added in v2.1.0

func (m *MockLogger) DebugDynamic(getStr func() string)

DebugDynamic mocks base method.

func (*MockLogger) Debugf added in v2.1.0

func (m *MockLogger) Debugf(format string, args ...interface{})

Debugf mocks base method.

func (*MockLogger) Debugw added in v2.1.0

func (m *MockLogger) Debugw(msg string, keysAndValues ...interface{})

Debugw mocks base method.

func (*MockLogger) EXPECT added in v2.1.0

func (m *MockLogger) EXPECT() *MockLoggerMockRecorder

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

func (*MockLogger) Error added in v2.1.0

func (m *MockLogger) Error(args ...interface{})

Error mocks base method.

func (*MockLogger) Errorf added in v2.1.0

func (m *MockLogger) Errorf(format string, args ...interface{})

Errorf mocks base method.

func (*MockLogger) Errorw added in v2.1.0

func (m *MockLogger) Errorw(msg string, keysAndValues ...interface{})

Errorw mocks base method.

func (*MockLogger) Fatal added in v2.1.0

func (m *MockLogger) Fatal(args ...interface{})

Fatal mocks base method.

func (*MockLogger) Fatalf added in v2.1.0

func (m *MockLogger) Fatalf(format string, args ...interface{})

Fatalf mocks base method.

func (*MockLogger) Fatalw added in v2.1.0

func (m *MockLogger) Fatalw(msg string, keysAndValues ...interface{})

Fatalw mocks base method.

func (*MockLogger) Info added in v2.1.0

func (m *MockLogger) Info(args ...interface{})

Info mocks base method.

func (*MockLogger) InfoDynamic added in v2.1.0

func (m *MockLogger) InfoDynamic(getStr func() string)

InfoDynamic mocks base method.

func (*MockLogger) Infof added in v2.1.0

func (m *MockLogger) Infof(format string, args ...interface{})

Infof mocks base method.

func (*MockLogger) Infow added in v2.1.0

func (m *MockLogger) Infow(msg string, keysAndValues ...interface{})

Infow mocks base method.

func (*MockLogger) Panic added in v2.1.0

func (m *MockLogger) Panic(args ...interface{})

Panic mocks base method.

func (*MockLogger) Panicf added in v2.1.0

func (m *MockLogger) Panicf(format string, args ...interface{})

Panicf mocks base method.

func (*MockLogger) Panicw added in v2.1.0

func (m *MockLogger) Panicw(msg string, keysAndValues ...interface{})

Panicw mocks base method.

func (*MockLogger) Warn added in v2.1.0

func (m *MockLogger) Warn(args ...interface{})

Warn mocks base method.

func (*MockLogger) Warnf added in v2.1.0

func (m *MockLogger) Warnf(format string, args ...interface{})

Warnf mocks base method.

func (*MockLogger) Warnw added in v2.1.0

func (m *MockLogger) Warnw(msg string, keysAndValues ...interface{})

Warnw mocks base method.

type MockLoggerMockRecorder added in v2.1.0

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

MockLoggerMockRecorder is the mock recorder for MockLogger.

func (*MockLoggerMockRecorder) Debug added in v2.1.0

func (mr *MockLoggerMockRecorder) Debug(args ...interface{}) *gomock.Call

Debug indicates an expected call of Debug.

func (*MockLoggerMockRecorder) DebugDynamic added in v2.1.0

func (mr *MockLoggerMockRecorder) DebugDynamic(getStr interface{}) *gomock.Call

DebugDynamic indicates an expected call of DebugDynamic.

func (*MockLoggerMockRecorder) Debugf added in v2.1.0

func (mr *MockLoggerMockRecorder) Debugf(format interface{}, args ...interface{}) *gomock.Call

Debugf indicates an expected call of Debugf.

func (*MockLoggerMockRecorder) Debugw added in v2.1.0

func (mr *MockLoggerMockRecorder) Debugw(msg interface{}, keysAndValues ...interface{}) *gomock.Call

Debugw indicates an expected call of Debugw.

func (*MockLoggerMockRecorder) Error added in v2.1.0

func (mr *MockLoggerMockRecorder) Error(args ...interface{}) *gomock.Call

Error indicates an expected call of Error.

func (*MockLoggerMockRecorder) Errorf added in v2.1.0

func (mr *MockLoggerMockRecorder) Errorf(format interface{}, args ...interface{}) *gomock.Call

Errorf indicates an expected call of Errorf.

func (*MockLoggerMockRecorder) Errorw added in v2.1.0

func (mr *MockLoggerMockRecorder) Errorw(msg interface{}, keysAndValues ...interface{}) *gomock.Call

Errorw indicates an expected call of Errorw.

func (*MockLoggerMockRecorder) Fatal added in v2.1.0

func (mr *MockLoggerMockRecorder) Fatal(args ...interface{}) *gomock.Call

Fatal indicates an expected call of Fatal.

func (*MockLoggerMockRecorder) Fatalf added in v2.1.0

func (mr *MockLoggerMockRecorder) Fatalf(format interface{}, args ...interface{}) *gomock.Call

Fatalf indicates an expected call of Fatalf.

func (*MockLoggerMockRecorder) Fatalw added in v2.1.0

func (mr *MockLoggerMockRecorder) Fatalw(msg interface{}, keysAndValues ...interface{}) *gomock.Call

Fatalw indicates an expected call of Fatalw.

func (*MockLoggerMockRecorder) Info added in v2.1.0

func (mr *MockLoggerMockRecorder) Info(args ...interface{}) *gomock.Call

Info indicates an expected call of Info.

func (*MockLoggerMockRecorder) InfoDynamic added in v2.1.0

func (mr *MockLoggerMockRecorder) InfoDynamic(getStr interface{}) *gomock.Call

InfoDynamic indicates an expected call of InfoDynamic.

func (*MockLoggerMockRecorder) Infof added in v2.1.0

func (mr *MockLoggerMockRecorder) Infof(format interface{}, args ...interface{}) *gomock.Call

Infof indicates an expected call of Infof.

func (*MockLoggerMockRecorder) Infow added in v2.1.0

func (mr *MockLoggerMockRecorder) Infow(msg interface{}, keysAndValues ...interface{}) *gomock.Call

Infow indicates an expected call of Infow.

func (*MockLoggerMockRecorder) Panic added in v2.1.0

func (mr *MockLoggerMockRecorder) Panic(args ...interface{}) *gomock.Call

Panic indicates an expected call of Panic.

func (*MockLoggerMockRecorder) Panicf added in v2.1.0

func (mr *MockLoggerMockRecorder) Panicf(format interface{}, args ...interface{}) *gomock.Call

Panicf indicates an expected call of Panicf.

func (*MockLoggerMockRecorder) Panicw added in v2.1.0

func (mr *MockLoggerMockRecorder) Panicw(msg interface{}, keysAndValues ...interface{}) *gomock.Call

Panicw indicates an expected call of Panicw.

func (*MockLoggerMockRecorder) Warn added in v2.1.0

func (mr *MockLoggerMockRecorder) Warn(args ...interface{}) *gomock.Call

Warn indicates an expected call of Warn.

func (*MockLoggerMockRecorder) Warnf added in v2.1.0

func (mr *MockLoggerMockRecorder) Warnf(format interface{}, args ...interface{}) *gomock.Call

Warnf indicates an expected call of Warnf.

func (*MockLoggerMockRecorder) Warnw added in v2.1.0

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

func (m *MockMember) GetOrgId() string

GetOrgId mocks base method.

func (*MockMember) GetPk added in v2.3.0

func (m *MockMember) GetPk() crypto.PublicKey

GetPk mocks base method.

func (*MockMember) GetRole

func (m *MockMember) GetRole() protocol.Role

GetRole mocks base method.

func (*MockMember) GetUid

func (m *MockMember) GetUid() string

GetUid 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 added in v2.3.0

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 added in v2.1.0

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

MockMemberQuery is a mock of MemberQuery interface.

func NewMockMemberQuery added in v2.1.0

func NewMockMemberQuery(ctrl *gomock.Controller) *MockMemberQuery

NewMockMemberQuery creates a new mock instance.

func (*MockMemberQuery) EXPECT added in v2.1.0

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

func (*MockMemberQuery) GetMemberExtraData added in v2.1.0

func (m *MockMemberQuery) GetMemberExtraData(member *accesscontrol.Member) (*accesscontrol.MemberExtraData, error)

GetMemberExtraData mocks base method.

type MockMemberQueryMockRecorder added in v2.1.0

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

MockMemberQueryMockRecorder is the mock recorder for MockMemberQuery.

func (*MockMemberQueryMockRecorder) GetMemberExtraData added in v2.1.0

func (mr *MockMemberQueryMockRecorder) GetMemberExtraData(member interface{}) *gomock.Call

GetMemberExtraData indicates an expected call of GetMemberExtraData.

type MockNet added in v2.1.0

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

MockNet is a mock of Net interface.

func NewMockNet added in v2.1.0

func NewMockNet(ctrl *gomock.Controller) *MockNet

NewMockNet creates a new mock instance.

func (*MockNet) AddAC added in v2.1.0

func (m *MockNet) AddAC(chainId string, ac protocol.AccessControlProvider)

AddAC mocks base method.

func (*MockNet) AddSeed added in v2.1.0

func (m *MockNet) AddSeed(seed string) error

AddSeed mocks base method.

func (*MockNet) BroadcastWithChainId added in v2.1.0

func (m *MockNet) BroadcastWithChainId(chainId, topic string, netMsg []byte) error

BroadcastWithChainId mocks base method.

func (*MockNet) CancelDirectMsgHandle added in v2.1.0

func (m *MockNet) CancelDirectMsgHandle(chainId, msgFlag string) error

CancelDirectMsgHandle mocks base method.

func (*MockNet) CancelSubscribeWithChainId added in v2.1.0

func (m *MockNet) CancelSubscribeWithChainId(chainId, topic string) error

CancelSubscribeWithChainId mocks base method.

func (*MockNet) ChainNodesInfo added in v2.1.0

func (m *MockNet) ChainNodesInfo(chainId string) ([]*protocol.ChainNodeInfo, error)

ChainNodesInfo mocks base method.

func (*MockNet) DeleteAC added in v2.3.4

func (m *MockNet) DeleteAC(chainId string)

DeleteAC mocks base method.

func (*MockNet) DirectMsgHandle added in v2.1.0

func (m *MockNet) DirectMsgHandle(chainId, msgFlag string, handler protocol.DirectMsgHandler) error

DirectMsgHandle mocks base method.

func (*MockNet) EXPECT added in v2.1.0

func (m *MockNet) EXPECT() *MockNetMockRecorder

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

func (*MockNet) GetNodeUid added in v2.1.0

func (m *MockNet) GetNodeUid() string

GetNodeUid mocks base method.

func (*MockNet) GetNodeUidByCertId added in v2.1.0

func (m *MockNet) GetNodeUidByCertId(certId string) (string, error)

GetNodeUidByCertId mocks base method.

func (*MockNet) InitPubSub added in v2.1.0

func (m *MockNet) InitPubSub(chainId string, maxMessageSize int) error

InitPubSub mocks base method.

func (*MockNet) IsRunning added in v2.1.0

func (m *MockNet) IsRunning() bool

IsRunning mocks base method.

func (*MockNet) ReVerifyPeers added in v2.1.0

func (m *MockNet) ReVerifyPeers(chainId string)

ReVerifyPeers mocks base method.

func (*MockNet) RefreshSeeds added in v2.1.0

func (m *MockNet) RefreshSeeds(seeds []string) error

RefreshSeeds mocks base method.

func (*MockNet) SendMsg added in v2.1.0

func (m *MockNet) SendMsg(chainId, node, msgFlag string, netMsg []byte) error

SendMsg mocks base method.

func (*MockNet) SetChainCustomTrustRoots added in v2.1.0

func (m *MockNet) SetChainCustomTrustRoots(chainId string, roots [][]byte)

SetChainCustomTrustRoots mocks base method.

func (*MockNet) SetMsgPriority added in v2.1.0

func (m *MockNet) SetMsgPriority(msgFlag string, priority uint8)

SetMsgPriority mocks base method.

func (*MockNet) Start added in v2.1.0

func (m *MockNet) Start() error

Start mocks base method.

func (*MockNet) Stop added in v2.1.0

func (m *MockNet) Stop() error

Stop mocks base method.

func (*MockNet) StopPubSub added in v2.3.4

func (m *MockNet) StopPubSub(chainId string)

StopPubSub mocks base method.

func (*MockNet) SubscribeWithChainId added in v2.1.0

func (m *MockNet) SubscribeWithChainId(chainId, topic string, handler protocol.PubSubMsgHandler) error

SubscribeWithChainId mocks base method.

type MockNetMockRecorder added in v2.1.0

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

MockNetMockRecorder is the mock recorder for MockNet.

func (*MockNetMockRecorder) AddAC added in v2.1.0

func (mr *MockNetMockRecorder) AddAC(chainId, ac interface{}) *gomock.Call

AddAC indicates an expected call of AddAC.

func (*MockNetMockRecorder) AddSeed added in v2.1.0

func (mr *MockNetMockRecorder) AddSeed(seed interface{}) *gomock.Call

AddSeed indicates an expected call of AddSeed.

func (*MockNetMockRecorder) BroadcastWithChainId added in v2.1.0

func (mr *MockNetMockRecorder) BroadcastWithChainId(chainId, topic, netMsg interface{}) *gomock.Call

BroadcastWithChainId indicates an expected call of BroadcastWithChainId.

func (*MockNetMockRecorder) CancelDirectMsgHandle added in v2.1.0

func (mr *MockNetMockRecorder) CancelDirectMsgHandle(chainId, msgFlag interface{}) *gomock.Call

CancelDirectMsgHandle indicates an expected call of CancelDirectMsgHandle.

func (*MockNetMockRecorder) CancelSubscribeWithChainId added in v2.1.0

func (mr *MockNetMockRecorder) CancelSubscribeWithChainId(chainId, topic interface{}) *gomock.Call

CancelSubscribeWithChainId indicates an expected call of CancelSubscribeWithChainId.

func (*MockNetMockRecorder) ChainNodesInfo added in v2.1.0

func (mr *MockNetMockRecorder) ChainNodesInfo(chainId interface{}) *gomock.Call

ChainNodesInfo indicates an expected call of ChainNodesInfo.

func (*MockNetMockRecorder) DeleteAC added in v2.3.4

func (mr *MockNetMockRecorder) DeleteAC(chainId interface{}) *gomock.Call

DeleteAC indicates an expected call of DeleteAC.

func (*MockNetMockRecorder) DirectMsgHandle added in v2.1.0

func (mr *MockNetMockRecorder) DirectMsgHandle(chainId, msgFlag, handler interface{}) *gomock.Call

DirectMsgHandle indicates an expected call of DirectMsgHandle.

func (*MockNetMockRecorder) GetNodeUid added in v2.1.0

func (mr *MockNetMockRecorder) GetNodeUid() *gomock.Call

GetNodeUid indicates an expected call of GetNodeUid.

func (*MockNetMockRecorder) GetNodeUidByCertId added in v2.1.0

func (mr *MockNetMockRecorder) GetNodeUidByCertId(certId interface{}) *gomock.Call

GetNodeUidByCertId indicates an expected call of GetNodeUidByCertId.

func (*MockNetMockRecorder) InitPubSub added in v2.1.0

func (mr *MockNetMockRecorder) InitPubSub(chainId, maxMessageSize interface{}) *gomock.Call

InitPubSub indicates an expected call of InitPubSub.

func (*MockNetMockRecorder) IsRunning added in v2.1.0

func (mr *MockNetMockRecorder) IsRunning() *gomock.Call

IsRunning indicates an expected call of IsRunning.

func (*MockNetMockRecorder) ReVerifyPeers added in v2.1.0

func (mr *MockNetMockRecorder) ReVerifyPeers(chainId interface{}) *gomock.Call

ReVerifyPeers indicates an expected call of ReVerifyPeers.

func (*MockNetMockRecorder) RefreshSeeds added in v2.1.0

func (mr *MockNetMockRecorder) RefreshSeeds(seeds interface{}) *gomock.Call

RefreshSeeds indicates an expected call of RefreshSeeds.

func (*MockNetMockRecorder) SendMsg added in v2.1.0

func (mr *MockNetMockRecorder) SendMsg(chainId, node, msgFlag, netMsg interface{}) *gomock.Call

SendMsg indicates an expected call of SendMsg.

func (*MockNetMockRecorder) SetChainCustomTrustRoots added in v2.1.0

func (mr *MockNetMockRecorder) SetChainCustomTrustRoots(chainId, roots interface{}) *gomock.Call

SetChainCustomTrustRoots indicates an expected call of SetChainCustomTrustRoots.

func (*MockNetMockRecorder) SetMsgPriority added in v2.1.0

func (mr *MockNetMockRecorder) SetMsgPriority(msgFlag, priority interface{}) *gomock.Call

SetMsgPriority indicates an expected call of SetMsgPriority.

func (*MockNetMockRecorder) Start added in v2.1.0

func (mr *MockNetMockRecorder) Start() *gomock.Call

Start indicates an expected call of Start.

func (*MockNetMockRecorder) Stop added in v2.1.0

func (mr *MockNetMockRecorder) Stop() *gomock.Call

Stop indicates an expected call of Stop.

func (*MockNetMockRecorder) StopPubSub added in v2.3.4

func (mr *MockNetMockRecorder) StopPubSub(chainId interface{}) *gomock.Call

StopPubSub indicates an expected call of StopPubSub.

func (*MockNetMockRecorder) SubscribeWithChainId added in v2.1.0

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) CancelReceiveMsg added in v2.3.4

func (m *MockNetService) CancelReceiveMsg(msgType net.NetMsg_MsgType) error

CancelReceiveMsg 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.