Package nxt.ms

Class Currency

java.lang.Object
nxt.ms.Currency

public final class Currency extends Object
  • Field Details

    • CURRENCY_FREEZE_HEIGHT_PROPERTY_PREFIX

      public static final String CURRENCY_FREEZE_HEIGHT_PROPERTY_PREFIX
      See Also:
    • CURRENCY_MIGRATE_HEIGHT_PROPERTY_PREFIX

      public static final String CURRENCY_MIGRATE_HEIGHT_PROPERTY_PREFIX
      See Also:
  • Method Details

    • addListener

      public static boolean addListener(Listener<Currency> listener, Currency.Event eventType)
    • removeListener

      public static boolean removeListener(Listener<Currency> listener, Currency.Event eventType)
    • getAllCurrencies

      public static DbIterator<Currency> getAllCurrencies(int from, int to)
    • getCount

      public static int getCount()
    • getCurrency

      public static Currency getCurrency(long id)
    • getCurrency

      public static Currency getCurrency(long id, boolean includeDeleted)
    • getCurrencyByName

      public static Currency getCurrencyByName(ChildChain childChain, String name)
    • getCurrencyByCode

      public static Currency getCurrencyByCode(ChildChain childChain, String code)
    • getCurrencyIssuedBy

      public static DbIterator<Currency> getCurrencyIssuedBy(long accountId, int from, int to)
    • searchCurrencies

      public static DbIterator<Currency> searchCurrencies(String query, int from, int to)
    • 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

      public String getName()
    • getCode

      public String getCode()
    • getDescription

      public String getDescription()
    • getType

      public int getType()
    • getChildChain

      public ChildChain 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

      public DbIterator<Account.AccountCurrency> getAccounts(int from, int to)
    • getAccounts

      public DbIterator<Account.AccountCurrency> getAccounts(int height, int from, int to)
    • getExchanges

      public DbIterator<ExchangeHome.Exchange> getExchanges(ChildChain childChain, int from, int to)
    • getTransfers

      public DbIterator<CurrencyTransfer> getTransfers(int from, int to)
    • is

      public boolean is(CurrencyType type)
    • canBeDeletedBy

      public boolean canBeDeletedBy(long senderAccountId)