Show / Hide Table of Contents

Class AccountDelta

Inheritance
Object
AccountDelta
Implements
IAccountDelta
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 class AccountDelta : IAccountDelta

Constructors

| Improve this Doc View Source

AccountDelta()

Declaration
public AccountDelta()

Properties

| Improve this Doc View Source

Fungibles

A dictionary representing the changed FungibleAssetValues for each Address and Currency pair.

Declaration
public IImmutableDictionary<(Address, Currency), BigInteger> Fungibles { get; }
Property Value
Type Description
IImmutableDictionary<(T1 Item1, T2 Item2)<Address, Currency>, BigInteger>
See Also
UpdatedFungibleAssets
| Improve this Doc View Source

FungibleUpdatedAddresses

A set of Addresses where each Address has its FungibleAssetValue changed.

This is equivalent to the set of Addresses that appear in UpdatedFungibleAssets, and in turn those that appear in Fungibles.

Declaration
public IImmutableSet<Address> FungibleUpdatedAddresses { get; }
Property Value
Type Description
IImmutableSet<Address>
See Also
UpdatedFungibleAssets
Fungibles
| Improve this Doc View Source

States

A dictionary representing changed states for each Address.

Declaration
public IImmutableDictionary<Address, IValue> States { get; }
Property Value
Type Description
IImmutableDictionary<Address, Bencodex.Types.IValue>
| Improve this Doc View Source

StateUpdatedAddresses

A set of Addresses where each Address has its state changed.

This is equivalent to the set of keys in States.

Declaration
public IImmutableSet<Address> StateUpdatedAddresses { get; }
Property Value
Type Description
IImmutableSet<Address>
See Also
States
| Improve this Doc View Source

TotalSupplies

A dictionary representing the changed total supply for each Currency.

Declaration
public IImmutableDictionary<Currency, BigInteger> TotalSupplies { get; }
Property Value
Type Description
IImmutableDictionary<Currency, BigInteger>
See Also
UpdatedTotalSupplyCurrencies
| Improve this Doc View Source

UpdatedAddresses

A set of Addresses where each Address has either its state changed or its FungibleAssetValue changed.

This is equivalent to the union of StateUpdatedAddresses and FungibleUpdatedAddresses.

Declaration
public IImmutableSet<Address> UpdatedAddresses { get; }
Property Value
Type Description
IImmutableSet<Address>
See Also
StateUpdatedAddresses
FungibleUpdatedAddresses
| Improve this Doc View Source

UpdatedFungibleAssets

A set of Address and Currency pairs where each pair has its asoociated FungibleAssetValue changed.

For example, if A transfers 10 FOO to B and B transfers 20 BAR to C, UpdatedFungibleAssets become likes { (A, FOO), (B, FOO), (B, BAR), (C, BAR) }.

Furthermore, this represents any pair that has been "touched", i.e., if A transfers 10 FOO to B and B transfers 10 FOO back to A, this becomes { (A, FOO), (B, BAR) } not an empty set.

This is equivalent to the keys of Fungibles.

Declaration
public IImmutableSet<(Address, Currency)> UpdatedFungibleAssets { get; }
Property Value
Type Description
IImmutableSet<(T1 Item1, T2 Item2)<Address, Currency>>
See Also
FungibleUpdatedAddresses
Fungibles
| Improve this Doc View Source

UpdatedTotalSupplyCurrencies

The set of Currencies with their total supplies updated.

This is equivalent to the set of keys in TotalSupplies.

Declaration
public IImmutableSet<Currency> UpdatedTotalSupplyCurrencies { get; }
Property Value
Type Description
IImmutableSet<Currency>
See Also
TotalSupplies
| Improve this Doc View Source

ValidatorSet

A representing a change in , if not null.

Declaration
public ValidatorSet ValidatorSet { get; }
Property Value
Type Description
ValidatorSet

Implements

IAccountDelta

Extension Methods

AccountDeltaExtensions.ToRawDelta(IAccountDelta)
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2023 Planetarium