Class GarageUtils
- Namespace
- Nekoyume.Action.Garages
- Assembly
- Lib9c.dll
public static class GarageUtils
- Inheritance
-
GarageUtils
- Inherited Members
-
Methods
ConvertToFungibleItemGarage(IValue?, Address, HashDigest<SHA256>)
public static FungibleItemGarage ConvertToFungibleItemGarage(IValue? garageState, Address garageAddr, HashDigest<SHA256> fungibleId)
Parameters
garageState
IValue
garageAddr
Address
fungibleId
HashDigest<SHA256>
Returns
- FungibleItemGarage
MergeAndSort(IEnumerable<(HashDigest<SHA256> fungibleId, int count)>?)
public static IOrderedEnumerable<(HashDigest<SHA256> fungibleId, int count)>? MergeAndSort(IEnumerable<(HashDigest<SHA256> fungibleId, int count)>? fungibleIdAndCounts)
Parameters
fungibleIdAndCounts
IEnumerable<(HashDigest<SHA256> fungibleId, int count)>
Returns
- IOrderedEnumerable<(HashDigest<SHA256> fungibleId, int count)>
MergeAndSort(IEnumerable<(Address balanceAddr, FungibleAssetValue value)>?)
public static IOrderedEnumerable<(Address balanceAddr, FungibleAssetValue value)>? MergeAndSort(IEnumerable<(Address balanceAddr, FungibleAssetValue value)>? fungibleAssetValues)
Parameters
fungibleAssetValues
IEnumerable<(Address balanceAddr, FungibleAssetValue value)>
Returns
- IOrderedEnumerable<(Address balanceAddr, FungibleAssetValue value)>
WithGarageStateTuples(Address, IWorldState, IEnumerable<(HashDigest<SHA256> fungibleId, int count)>)
public static IOrderedEnumerable<(HashDigest<SHA256> fungibleId, int count, Address garageAddr, IValue? garageState)> WithGarageStateTuples(Address agentAddr, IWorldState states, IEnumerable<(HashDigest<SHA256> fungibleId, int count)> fungibleIdAndCounts)
Parameters
agentAddr
Address
states
IWorldState
fungibleIdAndCounts
IEnumerable<(HashDigest<SHA256> fungibleId, int count)>
Returns
- IOrderedEnumerable<(HashDigest<SHA256> fungibleId, int count, Address garageAddr, IValue garageState)>
WithGarageStateTuples(Address, Address, IWorldState, IEnumerable<(HashDigest<SHA256> fungibleId, int count)>)
public static IOrderedEnumerable<(HashDigest<SHA256> fungibleId, int count, Address senderGarageAddr, FungibleItemGarage senderGarage, Address recipientGarageAddr, IValue? recipientGarageState)> WithGarageStateTuples(Address senderAgentAddr, Address recipientAgentAddr, IWorldState states, IEnumerable<(HashDigest<SHA256> fungibleId, int count)> fungibleIdAndCounts)
Parameters
senderAgentAddr
Address
recipientAgentAddr
Address
states
IWorldState
fungibleIdAndCounts
IEnumerable<(HashDigest<SHA256> fungibleId, int count)>
Returns
- IOrderedEnumerable<(HashDigest<SHA256> fungibleId, int count, Address senderGarageAddr, FungibleItemGarage senderGarage, Address recipientGarageAddr, IValue recipientGarageState)>
WithGarageTuples(Address, IWorldState, IEnumerable<(HashDigest<SHA256> fungibleId, int count)>)
public static IOrderedEnumerable<(HashDigest<SHA256> fungibleId, int count, Address garageAddr, FungibleItemGarage garage)> WithGarageTuples(Address agentAddr, IWorldState states, IEnumerable<(HashDigest<SHA256> fungibleId, int count)> fungibleIdAndCounts)
Parameters
agentAddr
Address
states
IWorldState
fungibleIdAndCounts
IEnumerable<(HashDigest<SHA256> fungibleId, int count)>
Returns
- IOrderedEnumerable<(HashDigest<SHA256> fungibleId, int count, Address garageAddr, FungibleItemGarage garage)>