Show / Hide Table of Contents

Class BaseBlockStatesStore

Inheritance
Object
BaseStore
BaseBlockStatesStore
DefaultStore
Implements
IStore
IDisposable
IBlockStatesStore
IStateStore
Inherited Members
BaseStore.ListChainIds()
BaseStore.GetCanonicalChainId()
BaseStore.SetCanonicalChainId(Guid)
BaseStore.CountIndex(Guid)
BaseStore.IterateIndexes(Guid, Int32, Nullable<Int32>)
BaseStore.IndexBlockHash(Guid, Int64)
BaseStore.AppendIndex(Guid, HashDigest<SHA256>)
BaseStore.ForkBlockIndexes(Guid, Guid, HashDigest<SHA256>)
BaseStore.StageTransactionIds(IImmutableSet<TxId>)
BaseStore.UnstageTransactionIds(ISet<TxId>)
BaseStore.IterateStagedTransactionIds()
BaseStore.IterateTransactionIds()
BaseStore.GetTransaction<T>(TxId)
BaseStore.PutTransaction<T>(Transaction<T>)
BaseStore.DeleteTransaction(TxId)
BaseStore.IterateBlockHashes()
BaseStore.GetBlock<T>(HashDigest<SHA256>)
BaseStore.GetBlockIndex(HashDigest<SHA256>)
BaseStore.GetBlockDigest(HashDigest<SHA256>)
BaseStore.PutBlock<T>(Block<T>)
BaseStore.DeleteBlock(HashDigest<SHA256>)
BaseStore.ContainsBlock(HashDigest<SHA256>)
BaseStore.ListTxNonces(Guid)
BaseStore.GetTxNonce(Guid, Address)
BaseStore.IncreaseTxNonce(Guid, Address, Int64)
BaseStore.CountTransactions()
BaseStore.CountBlocks()
BaseStore.ContainsTransaction(TxId)
BaseStore.DeleteChainId(Guid)
BaseStore.Dispose()
Namespace: Libplanet.Store
Assembly: Libplanet.dll
Syntax
public abstract class BaseBlockStatesStore : BaseStore, IStore, IDisposable, IBlockStatesStore, IStateStore

Methods

| Improve this Doc View Source

ContainsBlockStates(HashDigest<SHA256>)

Declaration
public bool ContainsBlockStates(HashDigest<SHA256> blockHash)
Parameters
Type Name Description
HashDigest<SHA256> blockHash
Returns
Type Description
Boolean
| Improve this Doc View Source

ForkStateReferences<T>(Guid, Guid, Block<T>)

Declaration
public abstract void ForkStateReferences<T>(Guid sourceChainId, Guid destinationChainId, Block<T> branchPoint)
    where T : IAction, new()
Parameters
Type Name Description
Guid sourceChainId
Guid destinationChainId
Block<T> branchPoint
Type Parameters
Name Description
T
| Improve this Doc View Source

ForkStates<T>(Guid, Guid, Block<T>)

Declaration
public void ForkStates<T>(Guid sourceChainId, Guid destinationChainId, Block<T> branchpoint)
    where T : IAction, new()
Parameters
Type Name Description
Guid sourceChainId
Guid destinationChainId
Block<T> branchpoint
Type Parameters
Name Description
T
| Improve this Doc View Source

GetBlockStates(HashDigest<SHA256>)

Declaration
public abstract IImmutableDictionary<string, IValue> GetBlockStates(HashDigest<SHA256> blockHash)
Parameters
Type Name Description
HashDigest<SHA256> blockHash
Returns
Type Description
IImmutableDictionary<String, IValue>
| Improve this Doc View Source

GetState(String, Nullable<HashDigest<SHA256>>, Nullable<Guid>)

Declaration
public IValue GetState(string stateKey, HashDigest<SHA256>? blockHash = null, Guid? chainId = null)
Parameters
Type Name Description
String stateKey
Nullable<HashDigest<SHA256>> blockHash
Nullable<Guid> chainId
Returns
Type Description
IValue
| Improve this Doc View Source

IterateStateReferences(Guid, String, Nullable<Int64>, Nullable<Int64>, Nullable<Int32>)

Declaration
public abstract IEnumerable<Tuple<HashDigest<SHA256>, long>> IterateStateReferences(Guid chainId, string key, long? highestIndex = null, long? lowestIndex = null, int? limit = null)
Parameters
Type Name Description
Guid chainId
String key
Nullable<Int64> highestIndex
Nullable<Int64> lowestIndex
Nullable<Int32> limit
Returns
Type Description
IEnumerable<Tuple<HashDigest<SHA256>, Int64>>
| Improve this Doc View Source

ListAllStateReferences(Guid, Int64, Int64)

Declaration
public abstract IImmutableDictionary<string, IImmutableList<HashDigest<SHA256>>> ListAllStateReferences(Guid chainId, long lowestIndex = null, long highestIndex = null)
Parameters
Type Name Description
Guid chainId
Int64 lowestIndex
Int64 highestIndex
Returns
Type Description
IImmutableDictionary<String, IImmutableList<HashDigest<SHA256>>>
| Improve this Doc View Source

ListStateKeys(Guid)

Declaration
public abstract IEnumerable<string> ListStateKeys(Guid chainId)
Parameters
Type Name Description
Guid chainId
Returns
Type Description
IEnumerable<String>
| Improve this Doc View Source

LookupStateReference(Guid, String, Int64)

Declaration
public abstract Tuple<HashDigest<SHA256>, long> LookupStateReference(Guid chainId, string key, long lookupUntilBlockIndex)
Parameters
Type Name Description
Guid chainId
String key
Int64 lookupUntilBlockIndex
Returns
Type Description
Tuple<HashDigest<SHA256>, Int64>
| Improve this Doc View Source

PruneBlockStates<T>(Guid, Block<T>)

Declaration
public abstract void PruneBlockStates<T>(Guid chainId, Block<T> until)
    where T : IAction, new()
Parameters
Type Name Description
Guid chainId
Block<T> until
Type Parameters
Name Description
T
| Improve this Doc View Source

SetBlockStates(HashDigest<SHA256>, IImmutableDictionary<String, IValue>)

Declaration
public abstract void SetBlockStates(HashDigest<SHA256> blockHash, IImmutableDictionary<string, IValue> states)
Parameters
Type Name Description
HashDigest<SHA256> blockHash
IImmutableDictionary<String, IValue> states
| Improve this Doc View Source

SetStates<T>(Block<T>, IImmutableDictionary<String, IValue>)

Declaration
public void SetStates<T>(Block<T> block, IImmutableDictionary<string, IValue> states)
    where T : IAction, new()
Parameters
Type Name Description
Block<T> block
IImmutableDictionary<String, IValue> states
Type Parameters
Name Description
T
| Improve this Doc View Source

StoreStateReference(Guid, IImmutableSet<String>, HashDigest<SHA256>, Int64)

Declaration
public abstract void StoreStateReference(Guid chainId, IImmutableSet<string> keys, HashDigest<SHA256> blockHash, long blockIndex)
Parameters
Type Name Description
Guid chainId
IImmutableSet<String> keys
HashDigest<SHA256> blockHash
Int64 blockIndex

Implements

IStore
IDisposable
IBlockStatesStore
IStateStore
  • Improve this Doc
  • View Source
Back to top Copyright © 2019–2020 Planetarium