public final class Currency
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Currency.Event |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CURRENCY_FREEZE_HEIGHT_PROPERTY_PREFIX |
static java.lang.String |
CURRENCY_MIGRATE_HEIGHT_PROPERTY_PREFIX |
Modifier and Type | Method and Description |
---|---|
static boolean |
addListener(Listener<Currency> listener,
Currency.Event eventType) |
boolean |
canBeDeletedBy(long senderAccountId) |
long |
getAccountId() |
DbIterator<Account.AccountCurrency> |
getAccounts(int from,
int to) |
DbIterator<Account.AccountCurrency> |
getAccounts(int height,
int from,
int to) |
byte |
getAlgorithm() |
static DbIterator<Currency> |
getAllCurrencies(int from,
int to) |
ChildChain |
getChildChain() |
java.lang.String |
getCode() |
static int |
getCount() |
int |
getCreationHeight() |
static Currency |
getCurrency(long id) |
static Currency |
getCurrency(long id,
boolean includeDeleted) |
static Currency |
getCurrencyByCode(ChildChain childChain,
java.lang.String code) |
static Currency |
getCurrencyByName(ChildChain childChain,
java.lang.String name) |
static DbIterator<Currency> |
getCurrencyIssuedBy(long accountId,
int from,
int to) |
long |
getCurrentReservePerUnitNQT() |
long |
getCurrentSupplyQNT() |
byte |
getDecimals() |
java.lang.String |
getDescription() |
DbIterator<ExchangeHome.Exchange> |
getExchanges(ChildChain childChain,
int from,
int to) |
long |
getId() |
long |
getInitialSupplyQNT() |
int |
getIssuanceHeight() |
int |
getMaxDifficulty() |
long |
getMaxSupplyQNT() |
int |
getMinDifficulty() |
long |
getMinReservePerUnitNQT() |
java.lang.String |
getName() |
long |
getReserveSupplyQNT() |
byte |
getRuleset() |
DbIterator<CurrencyTransfer> |
getTransfers(int from,
int to) |
int |
getType() |
static void |
importCurrency(long id,
long accountId,
java.lang.String code,
java.lang.String name) |
static void |
init() |
boolean |
is(CurrencyType type) |
boolean |
isActive() |
boolean |
isDeleted() |
static boolean |
removeListener(Listener<Currency> listener,
Currency.Event eventType) |
static DbIterator<Currency> |
searchCurrencies(java.lang.String query,
int from,
int to) |
public static final java.lang.String CURRENCY_FREEZE_HEIGHT_PROPERTY_PREFIX
public static final java.lang.String CURRENCY_MIGRATE_HEIGHT_PROPERTY_PREFIX
public static boolean addListener(Listener<Currency> listener, Currency.Event eventType)
public static boolean removeListener(Listener<Currency> listener, Currency.Event eventType)
public static DbIterator<Currency> getAllCurrencies(int from, int to)
public static int getCount()
public static Currency getCurrency(long id)
public static Currency getCurrency(long id, boolean includeDeleted)
public static Currency getCurrencyByName(ChildChain childChain, java.lang.String name)
public static Currency getCurrencyByCode(ChildChain childChain, java.lang.String code)
public static DbIterator<Currency> getCurrencyIssuedBy(long accountId, int from, int to)
public static DbIterator<Currency> searchCurrencies(java.lang.String query, int from, int to)
public static void importCurrency(long id, long accountId, java.lang.String code, java.lang.String name)
public static void init()
public long getId()
public long getAccountId()
public java.lang.String getName()
public java.lang.String getCode()
public java.lang.String getDescription()
public int getType()
public ChildChain getChildChain()
public long getInitialSupplyQNT()
public long getCurrentSupplyQNT()
public long getReserveSupplyQNT()
public long getMaxSupplyQNT()
public int getCreationHeight()
public int getIssuanceHeight()
public long getMinReservePerUnitNQT()
public int getMinDifficulty()
public int getMaxDifficulty()
public byte getRuleset()
public byte getAlgorithm()
public byte getDecimals()
public boolean isDeleted()
public long getCurrentReservePerUnitNQT()
public boolean isActive()
public DbIterator<Account.AccountCurrency> getAccounts(int from, int to)
public DbIterator<Account.AccountCurrency> getAccounts(int height, int from, int to)
public DbIterator<ExchangeHome.Exchange> getExchanges(ChildChain childChain, int from, int to)
public DbIterator<CurrencyTransfer> getTransfers(int from, int to)
public boolean is(CurrencyType type)
public boolean canBeDeletedBy(long senderAccountId)