Class AccountDeltaExtensions
Inherited Members
Namespace: Libplanet.Action.State
Assembly: Libplanet.Action.dll
Syntax
public static class AccountDeltaExtensions
Methods
| Improve this Doc View SourceOrderedSum(IReadOnlyList<IAccountDelta>)
Aggregates a list of IAccountDeltas in order.
Declaration
public static IAccountDelta OrderedSum(this IReadOnlyList<IAccountDelta> deltas)
Parameters
| Type | Name | Description |
|---|---|---|
| IReadOnlyList<IAccountDelta> | deltas | The list of IAccounts to aggregate. |
Returns
| Type | Description |
|---|---|
| IAccountDelta | The aggregate of |
Remarks
As aggregation is done by partially overwriting previous values,
the order in which deltas is important.
ToRawDelta(IAccountDelta)
Gets a raw dictionary representation of IAccountDelta that gets actually written to an IStateStore.
Declaration
public static IImmutableDictionary<KeyBytes, IValue> ToRawDelta(this IAccountDelta delta)
Parameters
| Type | Name | Description |
|---|---|---|
| IAccountDelta | delta | The IAccountDelta to convert. |
Returns
| Type | Description |
|---|---|
| IImmutableDictionary<KeyBytes, Bencodex.Types.IValue> | A raw dictionary representation of IAccountDelta to write to an IStateStore. |