Show / Hide Table of Contents

Class AccountDeltaExtensions

Inheritance
Object
AccountDeltaExtensions
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Libplanet.Action.State
Assembly: Libplanet.Action.dll
Syntax
public static class AccountDeltaExtensions

Methods

| Improve this Doc View Source

OrderedSum(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 deltas as an IAccount.

Remarks

As aggregation is done by partially overwriting previous values, the order in which deltas is important.

| Improve this Doc View Source

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.

  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2023 Planetarium