Class Currencies
- Namespace
- Lib9c
- Assembly
- Lib9c.dll
public static class Currencies
- Inheritance
-
Currencies
- Inherited Members
Fields
Crystal
public static readonly Currency Crystal
Field Value
- Currency
DailyRewardRune
public static readonly Currency DailyRewardRune
Field Value
- Currency
FreyaBlessingRune
public static readonly Currency FreyaBlessingRune
Field Value
- Currency
FreyaLiberationRune
public static readonly Currency FreyaLiberationRune
Field Value
- Currency
Garage
public static readonly Currency Garage
Field Value
- Currency
GuildGold
public static readonly Currency GuildGold
Field Value
- Currency
Mead
public static readonly Currency Mead
Field Value
- Currency
OdinWeaknessRune
public static readonly Currency OdinWeaknessRune
Field Value
- Currency
OdinWisdomRune
public static readonly Currency OdinWisdomRune
Field Value
- Currency
StakeRune
public static readonly Currency StakeRune
Field Value
- Currency
Methods
GetItemCurrency(int, bool)
public static Currency GetItemCurrency(int itemId, bool tradable)
Parameters
Returns
- Currency
GetMinterlessCurrency(string?)
Covers the reward.CurrencyTicker is following cases: - Currencies.Crystal.Ticker - Currencies.Garage.Ticker - lower case is starting with "rune_" or "runestone_" - lower case is starting with "soulstone_"
public static Currency GetMinterlessCurrency(string? ticker)
Parameters
ticker
string
Returns
- Currency
Exceptions
GetRune(string?)
public static Currency GetRune(string? ticker)
Parameters
ticker
string
Returns
- Currency
GetRunes(RuneSheet?)
public static IOrderedEnumerable<Currency> GetRunes(RuneSheet? sheet)
Parameters
sheet
RuneSheet
Returns
- IOrderedEnumerable<Currency>
GetRunes(params string?[])
public static IOrderedEnumerable<Currency> GetRunes(params string?[] tickers)
Parameters
tickers
string[]
Returns
- IOrderedEnumerable<Currency>
GetSoulStone(string?)
public static Currency GetSoulStone(string? ticker)
Parameters
ticker
string
Returns
- Currency
GetSoulStones(PetSheet?)
public static IOrderedEnumerable<Currency> GetSoulStones(PetSheet? sheet)
Parameters
sheet
PetSheet
Returns
- IOrderedEnumerable<Currency>
GetSoulStones(params string?[])
public static IOrderedEnumerable<Currency> GetSoulStones(params string?[] tickers)
Parameters
tickers
string[]
Returns
- IOrderedEnumerable<Currency>
GetUnwrappedCurrency(Currency)
public static Currency GetUnwrappedCurrency(Currency currency)
Parameters
currency
Currency
Returns
- Currency
GetWrappedCurrency(Currency)
public static Currency GetWrappedCurrency(Currency currency)
Parameters
currency
Currency
Returns
- Currency
IsRuneTicker(string)
public static bool IsRuneTicker(string ticker)
Parameters
ticker
string
Returns
IsSoulstoneTicker(string)
public static bool IsSoulstoneTicker(string ticker)
Parameters
ticker
string
Returns
IsWrappedCurrency(Currency)
public static bool IsWrappedCurrency(Currency currency)
Parameters
currency
Currency
Returns
ParseItemCurrency(Currency)
public static (bool tradable, int itemId) ParseItemCurrency(Currency currency)
Parameters
currency
Currency
Returns
PickAddress(Currency, Address, Address)
pick address by currency ticker
public static Address PickAddress(Currency currency, Address agentAddress, Address avatarAddress)
Parameters
currency
CurrencyLibplanet.Types.Assets.Currency
agentAddress
AddressLibplanet.Crypto.Address
avatarAddress
AddressLibplanet.Crypto.Address
Returns
- Address
agentAddress when ticker is NCG or Crystal or Garage or Mead else avatarAddress