Class AccountState
A default implementation of IAccountState interface.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Namespace: Libplanet.Action.State
Assembly: Libplanet.Action.dll
Syntax
public class AccountState : IAccountState
Constructors
| Improve this Doc View SourceAccountState(ITrie)
A default implementation of IAccountState interface.
Declaration
public AccountState(ITrie trie)
Parameters
| Type | Name | Description |
|---|---|---|
| ITrie | trie |
Properties
| Improve this Doc View SourceTrie
The ITrie of the IAccountState.
Declaration
public ITrie Trie { get; }
Property Value
| Type | Description |
|---|---|
| ITrie |
Methods
| Improve this Doc View SourceGetState(Address)
Gets the account state of the given address.
Declaration
public IValue GetState(Address address)
Parameters
| Type | Name | Description |
|---|---|---|
| Address | address | The Address referring the account to get its state. |
Returns
| Type | Description |
|---|---|
| Bencodex.Types.IValue | The account state of the given |
GetStates(IReadOnlyList<Address>)
Gets multiple account states associated with the specified addresses
at once.
Declaration
public IReadOnlyList<IValue> GetStates(IReadOnlyList<Address> addresses)
Parameters
| Type | Name | Description |
|---|---|---|
| IReadOnlyList<Address> | addresses | The Addresses associated with states to get. |
Returns
| Type | Description |
|---|---|
| IReadOnlyList<Bencodex.Types.IValue> | The states associated to the specified |
GetValidatorSet()
A default implementation of IAccountState interface.
Declaration
public ValidatorSet GetValidatorSet()
Returns
| Type | Description |
|---|---|
| ValidatorSet |