mocks

package
v1.4.3-beta3 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	mock.Mock
}

Store is an autogenerated mock type for the Store type

func (*Store) Action

func (_m *Store) Action(at storage.ActionType, t int) (interface{}, error)

Action provides a mock function with given fields: at, t

func (*Store) AddAccountMeta

func (_m *Store) AddAccountMeta(value *types.AccountMeta, c storage.Cache) error

AddAccountMeta provides a mock function with given fields: value, c

func (*Store) AddAccountMetaCache

func (_m *Store) AddAccountMetaCache(value *types.AccountMeta, batch ...storage.Batch) error

AddAccountMetaCache provides a mock function with given fields: value, batch

func (*Store) AddAccountMetaHistory

func (_m *Store) AddAccountMetaHistory(tm *types.TokenMeta, block *types.StateBlock, c storage.Cache) error

AddAccountMetaHistory provides a mock function with given fields: tm, block, c

func (*Store) AddBlockCache

func (_m *Store) AddBlockCache(blk *types.StateBlock, batch ...storage.Batch) error

AddBlockCache provides a mock function with given fields: blk, batch

func (*Store) AddBlockPrivatePayload

func (_m *Store) AddBlockPrivatePayload(hash types.Hash, payload []byte, c ...storage.Cache) error

AddBlockPrivatePayload provides a mock function with given fields: hash, payload, c

func (*Store) AddFrontier

func (_m *Store) AddFrontier(frontier *types.Frontier, c storage.Cache) error

AddFrontier provides a mock function with given fields: frontier, c

func (*Store) AddGapDoDSettleStateBlock

func (_m *Store) AddGapDoDSettleStateBlock(key types.Hash, block *types.StateBlock, sync types.SynchronizedKind) error

AddGapDoDSettleStateBlock provides a mock function with given fields: key, block, sync

func (*Store) AddGapPovBlock

func (_m *Store) AddGapPovBlock(height uint64, block *types.StateBlock, sync types.SynchronizedKind) error

AddGapPovBlock provides a mock function with given fields: height, block, sync

func (*Store) AddGapPublishBlock

func (_m *Store) AddGapPublishBlock(key types.Hash, blk *types.StateBlock, sync types.SynchronizedKind) error

AddGapPublishBlock provides a mock function with given fields: key, blk, sync

func (*Store) AddOrUpdateAccountMetaCache

func (_m *Store) AddOrUpdateAccountMetaCache(value *types.AccountMeta, batch ...storage.Batch) error

AddOrUpdateAccountMetaCache provides a mock function with given fields: value, batch

func (*Store) AddOrUpdatePeerInfo

func (_m *Store) AddOrUpdatePeerInfo(value *types.PeerInfo) error

AddOrUpdatePeerInfo provides a mock function with given fields: value

func (*Store) AddOrUpdateVmLogs

func (_m *Store) AddOrUpdateVmLogs(value *types.VmLogs, c storage.Cache) error

AddOrUpdateVmLogs provides a mock function with given fields: value, c

func (*Store) AddPeerInfo

func (_m *Store) AddPeerInfo(info *types.PeerInfo) error

AddPeerInfo provides a mock function with given fields: info

func (*Store) AddPending

func (_m *Store) AddPending(key *types.PendingKey, value *types.PendingInfo, c storage.Cache) error

AddPending provides a mock function with given fields: key, value, c

func (*Store) AddPovBestHash

func (_m *Store) AddPovBestHash(height uint64, hash types.Hash, batch ...storage.Batch) error

AddPovBestHash provides a mock function with given fields: height, hash, batch

func (*Store) AddPovBlock

func (_m *Store) AddPovBlock(blk *types.PovBlock, td *types.PovTD, batch ...storage.Batch) error

AddPovBlock provides a mock function with given fields: blk, td, batch

func (*Store) AddPovBody

func (_m *Store) AddPovBody(height uint64, hash types.Hash, body *types.PovBody) error

AddPovBody provides a mock function with given fields: height, hash, body

func (*Store) AddPovDiffStat

func (_m *Store) AddPovDiffStat(dayStat *types.PovDiffDayStat) error

AddPovDiffStat provides a mock function with given fields: dayStat

func (*Store) AddPovHeader

func (_m *Store) AddPovHeader(header *types.PovHeader) error

AddPovHeader provides a mock function with given fields: header

func (*Store) AddPovHeight

func (_m *Store) AddPovHeight(hash types.Hash, height uint64) error

AddPovHeight provides a mock function with given fields: hash, height

func (*Store) AddPovMinerStat

func (_m *Store) AddPovMinerStat(dayStat *types.PovMinerDayStat) error

AddPovMinerStat provides a mock function with given fields: dayStat

func (*Store) AddPovTD

func (_m *Store) AddPovTD(hash types.Hash, height uint64, td *types.PovTD) error

AddPovTD provides a mock function with given fields: hash, height, td

func (*Store) AddPovTxLookup

func (_m *Store) AddPovTxLookup(txHash types.Hash, txLookup *types.PovTxLookup, batch ...storage.Batch) error

AddPovTxLookup provides a mock function with given fields: txHash, txLookup, batch

func (*Store) AddPovTxLookupInBatch

func (_m *Store) AddPovTxLookupInBatch(txHash types.Hash, txLookup *types.PovTxLookup, batch storage.Batch) error

AddPovTxLookupInBatch provides a mock function with given fields: txHash, txLookup, batch

func (*Store) AddRepresentation

func (_m *Store) AddRepresentation(address types.Address, diff *types.Benefit, c storage.Cache) error

AddRepresentation provides a mock function with given fields: address, diff, c

func (*Store) AddSmartContractBlock

func (_m *Store) AddSmartContractBlock(value *types.SmartContractBlock) error

AddSmartContractBlock provides a mock function with given fields: value

func (*Store) AddStateBlock

func (_m *Store) AddStateBlock(block *types.StateBlock) error

AddStateBlock provides a mock function with given fields: block

func (*Store) AddTokenMetaConfirmed

func (_m *Store) AddTokenMetaConfirmed(address types.Address, meta *types.TokenMeta, c storage.Cache) error

AddTokenMetaConfirmed provides a mock function with given fields: address, meta, c

func (*Store) AddTrieCleanHeight added in v1.4.2

func (_m *Store) AddTrieCleanHeight(height uint64) error

AddTrieCleanHeight provides a mock function with given fields: height

func (*Store) AddUncheckedBlock

func (_m *Store) AddUncheckedBlock(key types.Hash, value *types.StateBlock, kind types.UncheckedKind, sync types.SynchronizedKind) error

AddUncheckedBlock provides a mock function with given fields: key, value, kind, sync

func (*Store) AddUncheckedSyncBlock

func (_m *Store) AddUncheckedSyncBlock(previous types.Hash, blk *types.StateBlock) error

AddUncheckedSyncBlock provides a mock function with given fields: previous, blk

func (*Store) AddUnconfirmedSyncBlock

func (_m *Store) AddUnconfirmedSyncBlock(hash types.Hash, blk *types.StateBlock) error

AddUnconfirmedSyncBlock provides a mock function with given fields: hash, blk

func (*Store) AddVoteHistory

func (_m *Store) AddVoteHistory(hash types.Hash, address types.Address) error

AddVoteHistory provides a mock function with given fields: hash, address

func (*Store) BatchGetPovHeadersByHeightAsc

func (_m *Store) BatchGetPovHeadersByHeightAsc(height uint64, count uint64) ([]*types.PovHeader, error)

BatchGetPovHeadersByHeightAsc provides a mock function with given fields: height, count

func (*Store) BatchGetPovHeadersByHeightDesc

func (_m *Store) BatchGetPovHeadersByHeightDesc(height uint64, count uint64) ([]*types.PovHeader, error)

BatchGetPovHeadersByHeightDesc provides a mock function with given fields: height, count

func (*Store) BlockConfirmed

func (_m *Store) BlockConfirmed(blk *types.StateBlock)

BlockConfirmed provides a mock function with given fields: blk

func (*Store) Blocks

func (_m *Store) Blocks(limit int, offset int) ([]types.Hash, error)

Blocks provides a mock function with given fields: limit, offset

func (*Store) BlocksByAccount

func (_m *Store) BlocksByAccount(address types.Address, limit int, offset int) ([]types.Hash, error)

BlocksByAccount provides a mock function with given fields: address, limit, offset

func (*Store) BlocksCount

func (_m *Store) BlocksCount() (uint64, error)

BlocksCount provides a mock function with given fields:

func (*Store) BlocksCountByType

func (_m *Store) BlocksCountByType() (map[string]uint64, error)

BlocksCountByType provides a mock function with given fields:

func (*Store) Cache

func (_m *Store) Cache() *ledger.MemoryCache

Cache provides a mock function with given fields:

func (*Store) CalculateAmount

func (_m *Store) CalculateAmount(block *types.StateBlock) (types.Balance, error)

CalculateAmount provides a mock function with given fields: block

func (*Store) CleanAllVoteHistory

func (_m *Store) CleanAllVoteHistory() error

CleanAllVoteHistory provides a mock function with given fields:

func (*Store) CleanBlockVoteHistory

func (_m *Store) CleanBlockVoteHistory(hash types.Hash) error

CleanBlockVoteHistory provides a mock function with given fields: hash

func (*Store) CleanSyncCache

func (_m *Store) CleanSyncCache()

CleanSyncCache provides a mock function with given fields:

func (*Store) Close

func (_m *Store) Close() error

Close provides a mock function with given fields:

func (*Store) ContractAddress

func (_m *Store) ContractAddress(b *types.StateBlock) (*types.Address, error)

ContractAddress provides a mock function with given fields: b

func (*Store) CountAccountMetas

func (_m *Store) CountAccountMetas() (uint64, error)

CountAccountMetas provides a mock function with given fields:

func (*Store) CountBlocksCache

func (_m *Store) CountBlocksCache() (uint64, error)

CountBlocksCache provides a mock function with given fields:

func (*Store) CountFrontiers

func (_m *Store) CountFrontiers() (uint64, error)

CountFrontiers provides a mock function with given fields:

func (*Store) CountPeersInfo

func (_m *Store) CountPeersInfo() (uint64, error)

CountPeersInfo provides a mock function with given fields:

func (*Store) CountPovAccountTxs

func (_m *Store) CountPovAccountTxs() (uint64, error)

CountPovAccountTxs provides a mock function with given fields:

func (*Store) CountPovBestHashs

func (_m *Store) CountPovBestHashs() (uint64, error)

CountPovBestHashs provides a mock function with given fields:

func (*Store) CountPovBlocks

func (_m *Store) CountPovBlocks() (uint64, error)

CountPovBlocks provides a mock function with given fields:

func (*Store) CountPovTxs

func (_m *Store) CountPovTxs() (uint64, error)

CountPovTxs provides a mock function with given fields:

func (*Store) CountRepresentations

func (_m *Store) CountRepresentations() (uint64, error)

CountRepresentations provides a mock function with given fields:

func (*Store) CountSmartContractBlocks

func (_m *Store) CountSmartContractBlocks() (uint64, error)

CountSmartContractBlocks provides a mock function with given fields:

func (*Store) CountStateBlocks

func (_m *Store) CountStateBlocks() (uint64, error)

CountStateBlocks provides a mock function with given fields:

func (*Store) CountUncheckedBlocks

func (_m *Store) CountUncheckedBlocks() (uint64, error)

CountUncheckedBlocks provides a mock function with given fields:

func (*Store) CountUncheckedBlocksStore added in v1.4.2

func (_m *Store) CountUncheckedBlocksStore() (uint64, error)

CountUncheckedBlocksStore provides a mock function with given fields:

func (*Store) CountUncheckedSyncBlocks

func (_m *Store) CountUncheckedSyncBlocks() (uint64, error)

CountUncheckedSyncBlocks provides a mock function with given fields:

func (*Store) CountUnconfirmedSyncBlocks

func (_m *Store) CountUnconfirmedSyncBlocks() (uint64, error)

CountUnconfirmedSyncBlocks provides a mock function with given fields:

func (*Store) CountVmLogs

func (_m *Store) CountVmLogs() (uint64, error)

CountVmLogs provides a mock function with given fields:

func (*Store) DBStore

func (_m *Store) DBStore() storage.Store

DBStore provides a mock function with given fields:

func (*Store) DebugAllPovInfos

func (_m *Store) DebugAllPovInfos()

DebugAllPovInfos provides a mock function with given fields:

func (*Store) DeleteAccountMeta

func (_m *Store) DeleteAccountMeta(key types.Address, c storage.Cache) error

DeleteAccountMeta provides a mock function with given fields: key, c

func (*Store) DeleteAccountMetaCache

func (_m *Store) DeleteAccountMetaCache(key types.Address, batch ...storage.Batch) error

DeleteAccountMetaCache provides a mock function with given fields: key, batch

func (*Store) DeleteBlockCache

func (_m *Store) DeleteBlockCache(hash types.Hash, batch ...storage.Batch) error

DeleteBlockCache provides a mock function with given fields: hash, batch

func (*Store) DeleteBlockPrivatePayload

func (_m *Store) DeleteBlockPrivatePayload(hash types.Hash, c ...storage.Cache) error

DeleteBlockPrivatePayload provides a mock function with given fields: hash, c

func (*Store) DeleteFrontier

func (_m *Store) DeleteFrontier(key types.Hash, c storage.Cache) error

DeleteFrontier provides a mock function with given fields: key, c

func (*Store) DeleteGapDoDSettleStateBlock

func (_m *Store) DeleteGapDoDSettleStateBlock(key types.Hash, blkHash types.Hash) error

DeleteGapDoDSettleStateBlock provides a mock function with given fields: key, blkHash

func (*Store) DeleteGapPovBlock

func (_m *Store) DeleteGapPovBlock(height uint64, hash types.Hash) error

DeleteGapPovBlock provides a mock function with given fields: height, hash

func (*Store) DeleteGapPublishBlock

func (_m *Store) DeleteGapPublishBlock(key types.Hash, blkHash types.Hash) error

DeleteGapPublishBlock provides a mock function with given fields: key, blkHash

func (*Store) DeletePending

func (_m *Store) DeletePending(key *types.PendingKey, c storage.Cache) error

DeletePending provides a mock function with given fields: key, c

func (*Store) DeletePovBestHash

func (_m *Store) DeletePovBestHash(height uint64, batch ...storage.Batch) error

DeletePovBestHash provides a mock function with given fields: height, batch

func (*Store) DeletePovBlock

func (_m *Store) DeletePovBlock(blk *types.PovBlock) error

DeletePovBlock provides a mock function with given fields: blk

func (*Store) DeletePovBody

func (_m *Store) DeletePovBody(height uint64, hash types.Hash) error

DeletePovBody provides a mock function with given fields: height, hash

func (*Store) DeletePovDiffStat

func (_m *Store) DeletePovDiffStat(dayIndex uint32) error

DeletePovDiffStat provides a mock function with given fields: dayIndex

func (*Store) DeletePovHeader

func (_m *Store) DeletePovHeader(height uint64, hash types.Hash) error

DeletePovHeader provides a mock function with given fields: height, hash

func (*Store) DeletePovHeight

func (_m *Store) DeletePovHeight(hash types.Hash) error

DeletePovHeight provides a mock function with given fields: hash

func (*Store) DeletePovMinerStat

func (_m *Store) DeletePovMinerStat(dayIndex uint32) error

DeletePovMinerStat provides a mock function with given fields: dayIndex

func (*Store) DeletePovTD

func (_m *Store) DeletePovTD(hash types.Hash, height uint64) error

DeletePovTD provides a mock function with given fields: hash, height

func (*Store) DeletePovTxLookup

func (_m *Store) DeletePovTxLookup(txHash types.Hash, batch ...storage.Batch) error

DeletePovTxLookup provides a mock function with given fields: txHash, batch

func (*Store) DeletePovTxLookupInBatch

func (_m *Store) DeletePovTxLookupInBatch(txHash types.Hash, batch storage.Batch) error

DeletePovTxLookupInBatch provides a mock function with given fields: txHash, batch

func (*Store) DeleteStateBlock

func (_m *Store) DeleteStateBlock(key types.Hash, c storage.Cache) error

DeleteStateBlock provides a mock function with given fields: key, c

func (*Store) DeleteTokenMetaCache

func (_m *Store) DeleteTokenMetaCache(address types.Address, tokenType types.Hash, batch ...storage.Batch) error

DeleteTokenMetaCache provides a mock function with given fields: address, tokenType, batch

func (*Store) DeleteTokenMetaConfirmed

func (_m *Store) DeleteTokenMetaConfirmed(address types.Address, tokenType types.Hash, c storage.Cache) error

DeleteTokenMetaConfirmed provides a mock function with given fields: address, tokenType, c

func (*Store) DeleteUncheckedBlock

func (_m *Store) DeleteUncheckedBlock(key types.Hash, kind types.UncheckedKind) error

DeleteUncheckedBlock provides a mock function with given fields: key, kind

func (*Store) DeleteUncheckedSyncBlock

func (_m *Store) DeleteUncheckedSyncBlock(hash types.Hash) error

DeleteUncheckedSyncBlock provides a mock function with given fields: hash

func (*Store) DeleteUnconfirmedSyncBlock

func (_m *Store) DeleteUnconfirmedSyncBlock(hash types.Hash) error

DeleteUnconfirmedSyncBlock provides a mock function with given fields: hash

func (*Store) DeleteVmLogs

func (_m *Store) DeleteVmLogs(key types.Hash, c storage.Cache) error

DeleteVmLogs provides a mock function with given fields: key, c

func (*Store) DropAllPovBlocks

func (_m *Store) DropAllPovBlocks() error

DropAllPovBlocks provides a mock function with given fields:

func (*Store) EmptyRelation

func (_m *Store) EmptyRelation() error

EmptyRelation provides a mock function with given fields:

func (*Store) EventBus

func (_m *Store) EventBus() event.EventBus

EventBus provides a mock function with given fields:

func (*Store) Flush

func (_m *Store) Flush() error

Flush provides a mock function with given fields:

func (*Store) FlushU added in v1.4.2

func (_m *Store) FlushU() error

FlushU provides a mock function with given fields:

func (*Store) GenerateChangeBlock

func (_m *Store) GenerateChangeBlock(account types.Address, representative types.Address, prk ed25519.PrivateKey) (*types.StateBlock, error)

GenerateChangeBlock provides a mock function with given fields: account, representative, prk

func (*Store) GenerateOnlineBlock

func (_m *Store) GenerateOnlineBlock(account types.Address, prk ed25519.PrivateKey, povHeight uint64) (*types.StateBlock, error)

GenerateOnlineBlock provides a mock function with given fields: account, prk, povHeight

func (*Store) GenerateReceiveBlock

func (_m *Store) GenerateReceiveBlock(sendBlock *types.StateBlock, prk ed25519.PrivateKey) (*types.StateBlock, error)

GenerateReceiveBlock provides a mock function with given fields: sendBlock, prk

func (*Store) GenerateSendBlock

func (_m *Store) GenerateSendBlock(block *types.StateBlock, amount types.Balance, prk ed25519.PrivateKey) (*types.StateBlock, error)

GenerateSendBlock provides a mock function with given fields: block, amount, prk

func (*Store) Get

func (_m *Store) Get(k []byte, c ...storage.Cache) ([]byte, error)

Get provides a mock function with given fields: k, c

func (*Store) GetAccountMeta

func (_m *Store) GetAccountMeta(address types.Address, c ...storage.Cache) (*types.AccountMeta, error)

GetAccountMeta provides a mock function with given fields: address, c

func (*Store) GetAccountMetaByPovHeight

func (_m *Store) GetAccountMetaByPovHeight(address types.Address, height uint64) (*types.AccountMeta, error)

GetAccountMetaByPovHeight provides a mock function with given fields: address, height

func (*Store) GetAccountMetaCaches

func (_m *Store) GetAccountMetaCaches(fn func(*types.AccountMeta) error) error

GetAccountMetaCaches provides a mock function with given fields: fn

func (*Store) GetAccountMetaConfirmed

func (_m *Store) GetAccountMetaConfirmed(address types.Address, c ...storage.Cache) (*types.AccountMeta, error)

GetAccountMetaConfirmed provides a mock function with given fields: address, c

func (*Store) GetAccountMetas

func (_m *Store) GetAccountMetas(fn func(*types.AccountMeta) error) error

GetAccountMetas provides a mock function with given fields: fn

func (*Store) GetAccountMeteCache

func (_m *Store) GetAccountMeteCache(key types.Address, batch ...storage.Batch) (*types.AccountMeta, error)

GetAccountMeteCache provides a mock function with given fields: key, batch

func (*Store) GetAllPovBestBlocks

func (_m *Store) GetAllPovBestBlocks(fn func(*types.PovBlock) error) error

GetAllPovBestBlocks provides a mock function with given fields: fn

func (*Store) GetAllPovBestHashes

func (_m *Store) GetAllPovBestHashes(fn func(uint64, types.Hash) error) error

GetAllPovBestHashes provides a mock function with given fields: fn

func (*Store) GetAllPovBestHeaders

func (_m *Store) GetAllPovBestHeaders(fn func(*types.PovHeader) error) error

GetAllPovBestHeaders provides a mock function with given fields: fn

func (*Store) GetAllPovBlocks

func (_m *Store) GetAllPovBlocks(fn func(*types.PovBlock) error) error

GetAllPovBlocks provides a mock function with given fields: fn

func (*Store) GetAllPovDiffStats

func (_m *Store) GetAllPovDiffStats(fn func(*types.PovDiffDayStat) error) error

GetAllPovDiffStats provides a mock function with given fields: fn

func (*Store) GetAllPovHeaders

func (_m *Store) GetAllPovHeaders(fn func(*types.PovHeader) error) error

GetAllPovHeaders provides a mock function with given fields: fn

func (*Store) GetAllPovMinerStats

func (_m *Store) GetAllPovMinerStats(fn func(*types.PovMinerDayStat) error) error

GetAllPovMinerStats provides a mock function with given fields: fn

func (*Store) GetBlockCache

func (_m *Store) GetBlockCache(key types.Hash) (*types.StateBlock, error)

GetBlockCache provides a mock function with given fields: key

func (*Store) GetBlockCaches

func (_m *Store) GetBlockCaches(fn func(*types.StateBlock) error) error

GetBlockCaches provides a mock function with given fields: fn

func (*Store) GetBlockChild

func (_m *Store) GetBlockChild(hash types.Hash, c ...storage.Cache) (types.Hash, error)

GetBlockChild provides a mock function with given fields: hash, c

func (_m *Store) GetBlockLink(key types.Hash, c ...storage.Cache) (types.Hash, error)

GetBlockLink provides a mock function with given fields: key, c

func (*Store) GetBlockPrivatePayload

func (_m *Store) GetBlockPrivatePayload(hash types.Hash, c ...storage.Cache) ([]byte, error)

GetBlockPrivatePayload provides a mock function with given fields: hash, c

func (*Store) GetCacheStat

func (_m *Store) GetCacheStat() []*ledger.CacheStat

GetCacheStat provides a mock function with given fields:

func (*Store) GetCacheStatue

func (_m *Store) GetCacheStatue() map[string]string

GetCacheStatue provides a mock function with given fields:

func (*Store) GetFrontier

func (_m *Store) GetFrontier(hash types.Hash, cache ...storage.Cache) (*types.Frontier, error)

GetFrontier provides a mock function with given fields: hash, cache

func (*Store) GetFrontiers

func (_m *Store) GetFrontiers() ([]*types.Frontier, error)

GetFrontiers provides a mock function with given fields:

func (*Store) GetGapDoDSettleStateBlock

func (_m *Store) GetGapDoDSettleStateBlock(key types.Hash, visit types.GapDoDSettleStateBlockWalkFunc) error

GetGapDoDSettleStateBlock provides a mock function with given fields: key, visit

func (*Store) GetGapPublishBlock

func (_m *Store) GetGapPublishBlock(key types.Hash, visit types.GapPublishBlockWalkFunc) error

GetGapPublishBlock provides a mock function with given fields: key, visit

func (*Store) GetLastGapPovHeight

func (_m *Store) GetLastGapPovHeight() uint64

GetLastGapPovHeight provides a mock function with given fields:

func (*Store) GetLatestPovBestHash

func (_m *Store) GetLatestPovBestHash() (types.Hash, error)

GetLatestPovBestHash provides a mock function with given fields:

func (*Store) GetLatestPovBlock

func (_m *Store) GetLatestPovBlock() (*types.PovBlock, error)

GetLatestPovBlock provides a mock function with given fields:

func (*Store) GetLatestPovDiffStat

func (_m *Store) GetLatestPovDiffStat() (*types.PovDiffDayStat, error)

GetLatestPovDiffStat provides a mock function with given fields:

func (*Store) GetLatestPovHeader

func (_m *Store) GetLatestPovHeader() (*types.PovHeader, error)

GetLatestPovHeader provides a mock function with given fields:

func (*Store) GetLatestPovMinerStat

func (_m *Store) GetLatestPovMinerStat(batch ...storage.Batch) (*types.PovMinerDayStat, error)

GetLatestPovMinerStat provides a mock function with given fields: batch

func (*Store) GetObject

func (_m *Store) GetObject(k []byte, c ...storage.Cache) (interface{}, []byte, error)

GetObject provides a mock function with given fields: k, c

func (*Store) GetOnlineRepresentations

func (_m *Store) GetOnlineRepresentations() ([]types.Address, error)

GetOnlineRepresentations provides a mock function with given fields:

func (*Store) GetPeerInfo

func (_m *Store) GetPeerInfo(peerID string) (*types.PeerInfo, error)

GetPeerInfo provides a mock function with given fields: peerID

func (*Store) GetPeersInfo

func (_m *Store) GetPeersInfo(fn func(*types.PeerInfo) error) error

GetPeersInfo provides a mock function with given fields: fn

func (*Store) GetPending

func (_m *Store) GetPending(pendingKey *types.PendingKey) (*types.PendingInfo, error)

GetPending provides a mock function with given fields: pendingKey

func (*Store) GetPendings

func (_m *Store) GetPendings(fn func(*types.PendingKey, *types.PendingInfo) error) error

GetPendings provides a mock function with given fields: fn

func (*Store) GetPendingsByAddress

func (_m *Store) GetPendingsByAddress(address types.Address, fn func(*types.PendingKey, *types.PendingInfo) error) error

GetPendingsByAddress provides a mock function with given fields: address, fn

func (*Store) GetPendingsByToken

func (_m *Store) GetPendingsByToken(account types.Address, token types.Hash, fn func(*types.PendingKey, *types.PendingInfo) error) error

GetPendingsByToken provides a mock function with given fields: account, token, fn

func (*Store) GetPovBestHash

func (_m *Store) GetPovBestHash(height uint64, batch ...storage.Batch) (types.Hash, error)

GetPovBestHash provides a mock function with given fields: height, batch

func (*Store) GetPovBlockByHash

func (_m *Store) GetPovBlockByHash(hash types.Hash) (*types.PovBlock, error)

GetPovBlockByHash provides a mock function with given fields: hash

func (*Store) GetPovBlockByHeight

func (_m *Store) GetPovBlockByHeight(height uint64) (*types.PovBlock, error)

GetPovBlockByHeight provides a mock function with given fields: height

func (*Store) GetPovBlockByHeightAndHash

func (_m *Store) GetPovBlockByHeightAndHash(height uint64, hash types.Hash) (*types.PovBlock, error)

GetPovBlockByHeightAndHash provides a mock function with given fields: height, hash

func (*Store) GetPovBody

func (_m *Store) GetPovBody(height uint64, hash types.Hash) (*types.PovBody, error)

GetPovBody provides a mock function with given fields: height, hash

func (*Store) GetPovDiffStat

func (_m *Store) GetPovDiffStat(dayIndex uint32) (*types.PovDiffDayStat, error)

GetPovDiffStat provides a mock function with given fields: dayIndex

func (*Store) GetPovHeader

func (_m *Store) GetPovHeader(height uint64, hash types.Hash) (*types.PovHeader, error)

GetPovHeader provides a mock function with given fields: height, hash

func (*Store) GetPovHeaderByHash

func (_m *Store) GetPovHeaderByHash(hash types.Hash) (*types.PovHeader, error)

GetPovHeaderByHash provides a mock function with given fields: hash

func (*Store) GetPovHeaderByHeight

func (_m *Store) GetPovHeaderByHeight(height uint64) (*types.PovHeader, error)

GetPovHeaderByHeight provides a mock function with given fields: height

func (*Store) GetPovHeight

func (_m *Store) GetPovHeight(hash types.Hash) (uint64, error)

GetPovHeight provides a mock function with given fields: hash

func (*Store) GetPovLatestHeight

func (_m *Store) GetPovLatestHeight() (uint64, error)

GetPovLatestHeight provides a mock function with given fields:

func (*Store) GetPovMinerStat

func (_m *Store) GetPovMinerStat(dayIndex uint32, batch ...storage.Batch) (*types.PovMinerDayStat, error)

GetPovMinerStat provides a mock function with given fields: dayIndex, batch

func (*Store) GetPovTD

func (_m *Store) GetPovTD(hash types.Hash, height uint64, batch ...storage.Batch) (*types.PovTD, error)

GetPovTD provides a mock function with given fields: hash, height, batch

func (*Store) GetPovTxLookup

func (_m *Store) GetPovTxLookup(txHash types.Hash) (*types.PovTxLookup, error)

GetPovTxLookup provides a mock function with given fields: txHash

func (*Store) GetPovTxlScanCursor

func (_m *Store) GetPovTxlScanCursor() (uint64, error)

GetPovTxlScanCursor provides a mock function with given fields:

func (*Store) GetRandomStateBlock

func (_m *Store) GetRandomStateBlock() (*types.StateBlock, error)

GetRandomStateBlock provides a mock function with given fields:

func (*Store) GetRelation

func (_m *Store) GetRelation(dest interface{}, query string) error

GetRelation provides a mock function with given fields: dest, query

func (*Store) GetRepresentation

func (_m *Store) GetRepresentation(key types.Address, c ...storage.Cache) (*types.Benefit, error)

GetRepresentation provides a mock function with given fields: key, c

func (*Store) GetRepresentations

func (_m *Store) GetRepresentations(fn func(types.Address, *types.Benefit) error) error

GetRepresentations provides a mock function with given fields: fn

func (*Store) GetSmartContractBlock

func (_m *Store) GetSmartContractBlock(key types.Hash) (*types.SmartContractBlock, error)

GetSmartContractBlock provides a mock function with given fields: key

func (*Store) GetSmartContractBlocks

func (_m *Store) GetSmartContractBlocks(fn func(*types.SmartContractBlock) error) error

GetSmartContractBlocks provides a mock function with given fields: fn

func (*Store) GetStateBlock

func (_m *Store) GetStateBlock(hash types.Hash, c ...storage.Cache) (*types.StateBlock, error)

GetStateBlock provides a mock function with given fields: hash, c

func (*Store) GetStateBlockConfirmed

func (_m *Store) GetStateBlockConfirmed(hash types.Hash, c ...storage.Cache) (*types.StateBlock, error)

GetStateBlockConfirmed provides a mock function with given fields: hash, c

func (*Store) GetStateBlocksConfirmed

func (_m *Store) GetStateBlocksConfirmed(fn func(*types.StateBlock) error) error

GetStateBlocksConfirmed provides a mock function with given fields: fn

func (*Store) GetTokenById

func (_m *Store) GetTokenById(tokenId types.Hash) (*types.TokenInfo, error)

GetTokenById provides a mock function with given fields: tokenId

func (*Store) GetTokenByName

func (_m *Store) GetTokenByName(tokenName string) (*types.TokenInfo, error)

GetTokenByName provides a mock function with given fields: tokenName

func (*Store) GetTokenMeta

func (_m *Store) GetTokenMeta(address types.Address, tokenType types.Hash) (*types.TokenMeta, error)

GetTokenMeta provides a mock function with given fields: address, tokenType

func (*Store) GetTokenMetaByBlockHash

func (_m *Store) GetTokenMetaByBlockHash(hash types.Hash) (*types.TokenMeta, error)

GetTokenMetaByBlockHash provides a mock function with given fields: hash

func (*Store) GetTokenMetaByPovHeight

func (_m *Store) GetTokenMetaByPovHeight(address types.Address, token types.Hash, height uint64) (*types.TokenMeta, error)

GetTokenMetaByPovHeight provides a mock function with given fields: address, token, height

func (*Store) GetTokenMetaConfirmed

func (_m *Store) GetTokenMetaConfirmed(address types.Address, tokenType types.Hash) (*types.TokenMeta, error)

GetTokenMetaConfirmed provides a mock function with given fields: address, tokenType

func (*Store) GetTrieCleanHeight added in v1.4.2

func (_m *Store) GetTrieCleanHeight() (uint64, error)

GetTrieCleanHeight provides a mock function with given fields:

func (*Store) GetUCacheStat added in v1.4.2

func (_m *Store) GetUCacheStat() []*ledger.CacheStat

GetUCacheStat provides a mock function with given fields:

func (*Store) GetUCacheStatue added in v1.4.2

func (_m *Store) GetUCacheStatue() map[string]string

GetUCacheStatue provides a mock function with given fields:

func (*Store) GetUncheckedBlock

func (_m *Store) GetUncheckedBlock(parentHash types.Hash, kind types.UncheckedKind) (*types.StateBlock, types.SynchronizedKind, error)

GetUncheckedBlock provides a mock function with given fields: parentHash, kind

func (*Store) GetUncheckedBlocks

func (_m *Store) GetUncheckedBlocks(visit types.UncheckedBlockWalkFunc) error

GetUncheckedBlocks provides a mock function with given fields: visit

func (*Store) GetUncheckedSyncBlock

func (_m *Store) GetUncheckedSyncBlock(hash types.Hash) (*types.StateBlock, error)

GetUncheckedSyncBlock provides a mock function with given fields: hash

func (*Store) GetUnconfirmedSyncBlock

func (_m *Store) GetUnconfirmedSyncBlock(hash types.Hash) (*types.StateBlock, error)

GetUnconfirmedSyncBlock provides a mock function with given fields: hash

func (*Store) GetVerifiedData

func (_m *Store) GetVerifiedData() map[types.Hash]int

GetVerifiedData provides a mock function with given fields:

func (*Store) GetVmLogs

func (_m *Store) GetVmLogs(key types.Hash, c ...storage.Cache) (*types.VmLogs, error)

GetVmLogs provides a mock function with given fields: key, c

func (*Store) HasAccountMetaCache

func (_m *Store) HasAccountMetaCache(key types.Address) (bool, error)

HasAccountMetaCache provides a mock function with given fields: key

func (*Store) HasAccountMetaConfirmed

func (_m *Store) HasAccountMetaConfirmed(address types.Address) (bool, error)

HasAccountMetaConfirmed provides a mock function with given fields: address

func (*Store) HasBlockCache

func (_m *Store) HasBlockCache(key types.Hash) (bool, error)

HasBlockCache provides a mock function with given fields: key

func (*Store) HasPovBlock

func (_m *Store) HasPovBlock(height uint64, hash types.Hash, batch ...storage.Batch) bool

HasPovBlock provides a mock function with given fields: height, hash, batch

func (*Store) HasPovBody

func (_m *Store) HasPovBody(height uint64, hash types.Hash, batch ...storage.Batch) bool

HasPovBody provides a mock function with given fields: height, hash, batch

func (*Store) HasPovHeader

func (_m *Store) HasPovHeader(height uint64, hash types.Hash, batch ...storage.Batch) bool

HasPovHeader provides a mock function with given fields: height, hash, batch

func (*Store) HasPovHeight

func (_m *Store) HasPovHeight(hash types.Hash) bool

HasPovHeight provides a mock function with given fields: hash

func (*Store) HasPovMinerStat

func (_m *Store) HasPovMinerStat(dayIndex uint32) bool

HasPovMinerStat provides a mock function with given fields: dayIndex

func (*Store) HasPovTxLookup

func (_m *Store) HasPovTxLookup(txHash types.Hash) bool

HasPovTxLookup provides a mock function with given fields: txHash

func (*Store) HasSmartContractBlock

func (_m *Store) HasSmartContractBlock(key types.Hash) (bool, error)

HasSmartContractBlock provides a mock function with given fields: key

func (*Store) HasStateBlock

func (_m *Store) HasStateBlock(hash types.Hash) (bool, error)

HasStateBlock provides a mock function with given fields: hash

func (*Store) HasStateBlockConfirmed

func (_m *Store) HasStateBlockConfirmed(hash types.Hash) (bool, error)

HasStateBlockConfirmed provides a mock function with given fields: hash

func (*Store) HasTokenMeta

func (_m *Store) HasTokenMeta(address types.Address, tokenType types.Hash) (bool, error)

HasTokenMeta provides a mock function with given fields: address, tokenType

func (*Store) HasUncheckedBlock

func (_m *Store) HasUncheckedBlock(hash types.Hash, kind types.UncheckedKind) (bool, error)

HasUncheckedBlock provides a mock function with given fields: hash, kind

func (*Store) HasUncheckedSyncBlock

func (_m *Store) HasUncheckedSyncBlock(hash types.Hash) (bool, error)

HasUncheckedSyncBlock provides a mock function with given fields: hash

func (*Store) HasUnconfirmedSyncBlock

func (_m *Store) HasUnconfirmedSyncBlock(hash types.Hash) (bool, error)

HasUnconfirmedSyncBlock provides a mock function with given fields: hash

func (*Store) HasVmLogs

func (_m *Store) HasVmLogs(key types.Hash, c ...storage.Cache) (bool, error)

HasVmLogs provides a mock function with given fields: key, c

func (*Store) HasVoteHistory

func (_m *Store) HasVoteHistory(hash types.Hash, address types.Address) bool

HasVoteHistory provides a mock function with given fields: hash, address

func (*Store) Iterator

func (_m *Store) Iterator(_a0 []byte, _a1 []byte, _a2 func([]byte, []byte) error) error

Iterator provides a mock function with given fields: _a0, _a1, _a2

func (*Store) IteratorObject

func (_m *Store) IteratorObject(prefix []byte, end []byte, fn func([]byte, interface{}) error) error

IteratorObject provides a mock function with given fields: prefix, end, fn

func (*Store) ListTokens

func (_m *Store) ListTokens() ([]*types.TokenInfo, error)

ListTokens provides a mock function with given fields:

func (*Store) NeedToWriteTrie added in v1.4.2

func (_m *Store) NeedToWriteTrie(height uint64) bool

NeedToWriteTrie provides a mock function with given fields: height

func (*Store) NewVMIterator

func (_m *Store) NewVMIterator(address *types.Address) *ledger.Iterator

NewVMIterator provides a mock function with given fields: address

func (*Store) PendingAmount

func (_m *Store) PendingAmount(address types.Address, token types.Hash) (types.Balance, error)

PendingAmount provides a mock function with given fields: address, token

func (*Store) PovHeightAddGap

func (_m *Store) PovHeightAddGap(height uint64) error

PovHeightAddGap provides a mock function with given fields: height

func (*Store) PovHeightDeleteGap

func (_m *Store) PovHeightDeleteGap(height uint64) error

PovHeightDeleteGap provides a mock function with given fields: height

func (*Store) PovHeightHasGap

func (_m *Store) PovHeightHasGap(height uint64) (bool, error)

PovHeightHasGap provides a mock function with given fields: height

func (*Store) Put added in v1.4.2

func (_m *Store) Put(k []byte, v interface{}, c ...storage.Cache) error

Put provides a mock function with given fields: k, v, c

func (*Store) RemoveStorage

func (_m *Store) RemoveStorage(key []byte, val []byte, c storage.Cache) error

RemoveStorage provides a mock function with given fields: key, val, c

func (*Store) SaveStorage

func (_m *Store) SaveStorage(val map[string]interface{}, c ...storage.Cache) error

SaveStorage provides a mock function with given fields: val, c

func (*Store) SaveStorageByConvert

func (_m *Store) SaveStorageByConvert(key []byte, val []byte, c storage.Cache) error

SaveStorageByConvert provides a mock function with given fields: key, val, c

func (*Store) SearchVmLogs

func (_m *Store) SearchVmLogs(fn func(types.Hash, *types.VmLogs) error) error

SearchVmLogs provides a mock function with given fields: fn

func (*Store) SelectRelation

func (_m *Store) SelectRelation(dest interface{}, query string) error

SelectRelation provides a mock function with given fields: dest, query

func (*Store) SetLastGapPovHeight

func (_m *Store) SetLastGapPovHeight(height uint64) error

SetLastGapPovHeight provides a mock function with given fields: height

func (*Store) SetOnlineRepresentations

func (_m *Store) SetOnlineRepresentations(addresses []*types.Address) error

SetOnlineRepresentations provides a mock function with given fields: addresses

func (*Store) SetPovLatestHeight

func (_m *Store) SetPovLatestHeight(height uint64, batch ...storage.Batch) error

SetPovLatestHeight provides a mock function with given fields: height, batch

func (*Store) SetPovTxlScanCursor

func (_m *Store) SetPovTxlScanCursor(height uint64, batch ...storage.Batch) error

SetPovTxlScanCursor provides a mock function with given fields: height, batch

func (*Store) SetStorage

func (_m *Store) SetStorage(val map[string]interface{}) error

SetStorage provides a mock function with given fields: val

func (*Store) SubRepresentation

func (_m *Store) SubRepresentation(address types.Address, diff *types.Benefit, c storage.Cache) error

SubRepresentation provides a mock function with given fields: address, diff, c

func (*Store) UCache added in v1.4.2

func (_m *Store) UCache() *ledger.MemoryCache

UCache provides a mock function with given fields:

func (*Store) UpdateAccountMeta

func (_m *Store) UpdateAccountMeta(value *types.AccountMeta, c storage.Cache) error

UpdateAccountMeta provides a mock function with given fields: value, c

func (*Store) UpdateAccountMetaHistory

func (_m *Store) UpdateAccountMetaHistory(tm *types.TokenMeta, block *types.StateBlock, c storage.Cache) error

UpdateAccountMetaHistory provides a mock function with given fields: tm, block, c

func (*Store) UpdateAccountMeteCache

func (_m *Store) UpdateAccountMeteCache(value *types.AccountMeta, batch ...storage.Batch) error

UpdateAccountMeteCache provides a mock function with given fields: value, batch

func (*Store) UpdatePeerInfo

func (_m *Store) UpdatePeerInfo(value *types.PeerInfo) error

UpdatePeerInfo provides a mock function with given fields: value

func (*Store) UpdateStateBlock

func (_m *Store) UpdateStateBlock(block *types.StateBlock, c storage.Cache) error

UpdateStateBlock provides a mock function with given fields: block, c

func (*Store) WalkGapDoDSettleStateBlock added in v1.4.3

func (_m *Store) WalkGapDoDSettleStateBlock(visit types.GapDoDSettleStateBlockWalkFunc) error

WalkGapDoDSettleStateBlock provides a mock function with given fields: visit

func (*Store) WalkGapPovBlocks

func (_m *Store) WalkGapPovBlocks(visit types.GapPovBlockWalkFunc) error

WalkGapPovBlocks provides a mock function with given fields: visit

func (*Store) WalkGapPovBlocksWithHeight

func (_m *Store) WalkGapPovBlocksWithHeight(height uint64, visit types.GapPovBlockWalkFunc) error

WalkGapPovBlocksWithHeight provides a mock function with given fields: height, visit

func (*Store) WalkSyncCache

func (_m *Store) WalkSyncCache(visit common.SyncCacheWalkFunc)

WalkSyncCache provides a mock function with given fields: visit

func (*Store) Weight

func (_m *Store) Weight(account types.Address) types.Balance

Weight provides a mock function with given fields: account

Jump to

Keyboard shortcuts

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