Class BaseBlockStatesStore
Inheritance
BaseBlockStatesStore
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
|
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
|
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
|
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
Returns
|
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
Returns
|
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
|
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
|
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
|
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
IDisposable