Class StateResolver
public static class StateResolver
- Inheritance
-
StateResolver
- Inherited Members
Methods
GetResolvedState(IWorldState, Address, Address)
Gets the account of address address
if it exists.
If not, returns from the legacy account.
public static IValue? GetResolvedState(this IWorldState world, Address address, Address accountAddress)
Parameters
world
IWorldStateAn Libplanet.Action.State.IWorld instance of to get state from.
address
AddressThe Libplanet.Crypto.Address of the state to get.
accountAddress
AddressThe Libplanet.Crypto.Address of the account to get.
Returns
- IValue
An Libplanet.Action.State.IAccountState instance of address
address
if exits. If not, legacy account.
GetResolvedState(IWorldState, Address, Address, Address)
Gets the account of address address
if it exists.
If not, returns from the legacy account with legacyAddress
.
public static IValue? GetResolvedState(this IWorldState world, Address address, Address accountAddress, Address legacyAddress)
Parameters
world
IWorldStateAn Libplanet.Action.State.IWorld instance of to get state from.
address
AddressThe Libplanet.Crypto.Address of the state to get.
accountAddress
AddressThe Libplanet.Crypto.Address of the account to get.
legacyAddress
AddressThe Libplanet.Crypto.Address of the state to get from the legacy account.
Returns
- IValue
An Libplanet.Action.State.IAccountState instance of address
address
if exits. If not, legacy account.