Class StakeStateUtils
- Namespace
- Nekoyume.Model.Stake
- Assembly
- Lib9c.dll
public static class StakeStateUtils
- Inheritance
-
StakeStateUtils
- Inherited Members
-
Methods
MigrateV1ToV2(IValue, GameConfigState)
public static StakeState? MigrateV1ToV2(IValue serialized, GameConfigState gameConfigState)
Parameters
serialized
IValue
gameConfigState
GameConfigState
Returns
- StakeState?
TryMigrateV1ToV2(IValue, GameConfigState, out StakeState)
public static bool TryMigrateV1ToV2(IValue serialized, GameConfigState gameConfigState, out StakeState stakeState)
Parameters
serialized
IValue
gameConfigState
GameConfigState
stakeState
StakeState
Returns
- bool
TryMigrateV1ToV2(IWorldState, Address, out StakeState)
public static bool TryMigrateV1ToV2(IWorldState state, Address stakeStateAddr, out StakeState stakeState)
Parameters
state
IWorldState
stakeStateAddr
Address
stakeState
StakeState
Returns
- bool
TryMigrateV2ToV3(IActionContext, IWorld, Address, StakeState, out (IWorld world, StakeState newStakeState)?)
public static bool TryMigrateV2ToV3(IActionContext context, IWorld world, Address stakeStateAddr, StakeState stakeState, out (IWorld world, StakeState newStakeState)? result)
Parameters
context
IActionContext
world
IWorld
stakeStateAddr
Address
stakeState
StakeState
result
(IWorld world, StakeState newStakeState)?
Returns
- bool