Package nxt.account
Enum Class AccountLedger.LedgerEvent
- All Implemented Interfaces:
Serializable,Comparable<AccountLedger.LedgerEvent>,Constable
- Enclosing class:
- AccountLedger
Ledger events
There must be a ledger event defined for each transaction (type,subtype) pair. When adding
a new event, do not change the existing code assignments since these codes are stored in
the event_type field of the account_ledger table.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic AccountLedger.LedgerEventfromCode(int code) Get the event from the event codeintgetCode()Return the event codebooleanCheck if the event identifier is a transactionstatic AccountLedger.LedgerEventReturns the enum constant of this class with the specified name.static AccountLedger.LedgerEvent[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BLOCK_GENERATED
-
FORGING_BACK_FEES
-
SHUFFLING_PENALTY_FORGER_AWARD
-
REJECT_PHASED_TRANSACTION
-
TRANSACTION_FEE
-
CHILD_BLOCK
-
ORDINARY_PAYMENT
-
FXT_PAYMENT
-
ACCOUNT_INFO
-
ALIAS_ASSIGNMENT
-
ALIAS_BUY
-
ALIAS_DELETE
-
ALIAS_SELL
-
ARBITRARY_MESSAGE
-
PHASING_VOTE_CASTING
-
POLL_CREATION
-
VOTE_CASTING
-
ACCOUNT_PROPERTY_SET
-
ACCOUNT_PROPERTY_DELETE
-
ASSET_ASK_ORDER_CANCELLATION
-
ASSET_ASK_ORDER_PLACEMENT
-
ASSET_BID_ORDER_CANCELLATION
-
ASSET_BID_ORDER_PLACEMENT
-
ASSET_DIVIDEND_PAYMENT
-
ASSET_ISSUANCE
-
ASSET_TRADE
-
ASSET_TRANSFER
-
ASSET_DELETE
-
ASSET_INCREASE
-
ASSET_SET_PHASING_CONTROL
-
ASSET_PROPERTY_SET
-
ASSET_PROPERTY_DELETE
-
ASSET_SET_TRADING_ROYALTIES
-
ASSET_TRADING_ROYALTIES
-
DIGITAL_GOODS_DELISTED
-
DIGITAL_GOODS_DELISTING
-
DIGITAL_GOODS_DELIVERY
-
DIGITAL_GOODS_FEEDBACK
-
DIGITAL_GOODS_LISTING
-
DIGITAL_GOODS_PRICE_CHANGE
-
DIGITAL_GOODS_PURCHASE
-
DIGITAL_GOODS_PURCHASE_EXPIRED
-
DIGITAL_GOODS_QUANTITY_CHANGE
-
DIGITAL_GOODS_REFUND
-
ACCOUNT_CONTROL_EFFECTIVE_BALANCE_LEASING
-
ACCOUNT_CONTROL_PHASING_ONLY
-
CURRENCY_DELETION
-
CURRENCY_DISTRIBUTION
-
CURRENCY_EXCHANGE
-
CURRENCY_EXCHANGE_BUY
-
CURRENCY_EXCHANGE_SELL
-
CURRENCY_ISSUANCE
-
CURRENCY_MINTING
-
CURRENCY_OFFER_EXPIRED
-
CURRENCY_OFFER_REPLACED
-
CURRENCY_PUBLISH_EXCHANGE_OFFER
-
CURRENCY_RESERVE_CLAIM
-
CURRENCY_RESERVE_INCREASE
-
CURRENCY_TRANSFER
-
CURRENCY_UNDO_CROWDFUNDING
-
TAGGED_DATA_UPLOAD
-
SHUFFLING_REGISTRATION
-
SHUFFLING_PROCESSING
-
SHUFFLING_CANCELLATION
-
SHUFFLING_DISTRIBUTION
-
COIN_EXCHANGE_ORDER_ISSUE
-
COIN_EXCHANGE_ORDER_CANCEL
-
COIN_EXCHANGE_TRADE
-
CONTRACT_REFERENCE_SET
-
CONTRACT_REFERENCE_DELETE
-
ADD_PERMISSION
-
REMOVE_PERMISSION
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isTransaction
public boolean isTransaction()Check if the event identifier is a transaction- Returns:
- TRUE if the event identifier is a transaction
-
getCode
public int getCode()Return the event code- Returns:
- Event code
-
fromCode
Get the event from the event code- Parameters:
code- Event code- Returns:
- Event
-