Package nxt.ms
Class Currency
java.lang.Object
nxt.ms.Currency
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanaddListener(Listener<Currency> listener, Currency.Event eventType) booleancanBeDeletedBy(long senderAccountId) longgetAccounts(int from, int to) getAccounts(int height, int from, int to) bytestatic DbIterator<Currency>getAllCurrencies(int from, int to) getCode()static intgetCount()intstatic CurrencygetCurrency(long id) static CurrencygetCurrency(long id, boolean includeDeleted) static CurrencygetCurrencyByCode(ChildChain childChain, String code) static CurrencygetCurrencyByName(ChildChain childChain, String name) static DbIterator<Currency>getCurrencyIssuedBy(long accountId, int from, int to) longlongbytegetExchanges(ChildChain childChain, int from, int to) longgetId()longintintlongintlonggetName()longbytegetTransfers(int from, int to) intgetType()static voidimportCurrency(long id, long accountId, String code, String name, ChildChain childChain) static voidinit()booleanis(CurrencyType type) booleanisActive()booleanstatic booleanremoveListener(Listener<Currency> listener, Currency.Event eventType) static DbIterator<Currency>searchCurrencies(String query, int from, int to)
-
Field Details
-
CURRENCY_FREEZE_HEIGHT_PROPERTY_PREFIX
- See Also:
-
CURRENCY_MIGRATE_HEIGHT_PROPERTY_PREFIX
- See Also:
-
-
Method Details
-
addListener
-
removeListener
-
getAllCurrencies
-
getCount
public static int getCount() -
getCurrency
-
getCurrency
-
getCurrencyByName
-
getCurrencyByCode
-
getCurrencyIssuedBy
-
searchCurrencies
-
importCurrency
public static void importCurrency(long id, long accountId, String code, String name, ChildChain childChain) -
init
public static void init() -
getId
public long getId() -
getAccountId
public long getAccountId() -
getName
-
getCode
-
getDescription
-
getType
public int getType() -
getChildChain
-
getInitialSupplyQNT
public long getInitialSupplyQNT() -
getCurrentSupplyQNT
public long getCurrentSupplyQNT() -
getReserveSupplyQNT
public long getReserveSupplyQNT() -
getMaxSupplyQNT
public long getMaxSupplyQNT() -
getCreationHeight
public int getCreationHeight() -
getIssuanceHeight
public int getIssuanceHeight() -
getMinReservePerUnitNQT
public long getMinReservePerUnitNQT() -
getMinDifficulty
public int getMinDifficulty() -
getMaxDifficulty
public int getMaxDifficulty() -
getRuleset
public byte getRuleset() -
getAlgorithm
public byte getAlgorithm() -
getDecimals
public byte getDecimals() -
isDeleted
public boolean isDeleted() -
getCurrentReservePerUnitNQT
public long getCurrentReservePerUnitNQT() -
isActive
public boolean isActive() -
getAccounts
-
getAccounts
-
getExchanges
-
getTransfers
-
is
-
canBeDeletedBy
public boolean canBeDeletedBy(long senderAccountId)
-