Table of Contents

Class StateResolver

Namespace
Nekoyume.Module
Assembly
Lib9c.dll
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 IWorldState

An Libplanet.Action.State.IWorld instance of to get state from.

address Address

The Libplanet.Crypto.Address of the state to get.

accountAddress Address

The 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 IWorldState

An Libplanet.Action.State.IWorld instance of to get state from.

address Address

The Libplanet.Crypto.Address of the state to get.

accountAddress Address

The Libplanet.Crypto.Address of the account to get.

legacyAddress Address

The 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.