public abstract class ChildTransactionType extends TransactionType
| Modifier and Type | Field and Description |
|---|---|
protected static byte |
TYPE_ACCOUNT_CONTROL |
protected static byte |
TYPE_ACCOUNT_PROPERTY |
protected static byte |
TYPE_ALIASES |
protected static byte |
TYPE_ASSET_EXCHANGE |
protected static byte |
TYPE_CHILD_CHAIN_CONTROL |
protected static byte |
TYPE_COIN_EXCHANGE |
protected static byte |
TYPE_DATA |
protected static byte |
TYPE_DIGITAL_GOODS |
protected static byte |
TYPE_LIGHT_CONTRACT |
protected static byte |
TYPE_MESSAGING |
protected static byte |
TYPE_MONETARY_SYSTEM |
protected static byte |
TYPE_PAYMENT |
protected static byte |
TYPE_SHUFFLING |
protected static byte |
TYPE_VOTING |
| Constructor and Description |
|---|
ChildTransactionType() |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(TransactionImpl transaction,
Account senderAccount,
Account recipientAccount) |
protected abstract void |
applyAttachment(ChildTransactionImpl transaction,
Account senderAccount,
Account recipientAccount) |
void |
applyAttachment(Transaction transaction,
Account senderAccount,
Account recipientAccount) |
protected abstract boolean |
applyAttachmentUnconfirmed(ChildTransactionImpl transaction,
Account senderAccount) |
boolean |
applyAttachmentUnconfirmed(Transaction transaction,
Account senderAccount) |
boolean |
applyUnconfirmed(TransactionImpl transaction,
Account senderAccount) |
static TransactionType |
findTransactionType(byte type,
byte subtype) |
Fee |
getBaselineFee(Transaction transaction) |
protected java.util.List<ChildChain> |
getInvolvedChildChains(ChildTransactionImpl transaction) |
java.util.List<ChildChain> |
getInvolvedChildChains(Transaction transaction) |
protected abstract void |
undoAttachmentUnconfirmed(ChildTransactionImpl transaction,
Account senderAccount) |
void |
undoAttachmentUnconfirmed(Transaction transaction,
Account senderAccount) |
void |
undoUnconfirmed(TransactionImpl transaction,
Account senderAccount) |
protected abstract void |
validateAttachment(ChildTransactionImpl transaction) |
void |
validateAttachment(Transaction transaction) |
protected void |
validateId(ChildTransactionImpl transaction) |
protected void |
validateId(Transaction transaction) |
canHaveRecipient, getBaselineFeeHeight, getLedgerEvent, getName, getNextFee, getNextFeeHeight, getSubtype, getType, isBlockDuplicate, isDuplicate, isDuplicate, isDuplicate, isGlobal, isPhasable, isPhasingSafe, isPruned, isUnconfirmedDuplicate, mustHaveRecipient, parseAttachment, parseAttachment, toStringprotected static final byte TYPE_PAYMENT
protected static final byte TYPE_MESSAGING
protected static final byte TYPE_ASSET_EXCHANGE
protected static final byte TYPE_DIGITAL_GOODS
protected static final byte TYPE_ACCOUNT_CONTROL
protected static final byte TYPE_MONETARY_SYSTEM
protected static final byte TYPE_DATA
protected static final byte TYPE_SHUFFLING
protected static final byte TYPE_ALIASES
protected static final byte TYPE_VOTING
protected static final byte TYPE_ACCOUNT_PROPERTY
protected static final byte TYPE_COIN_EXCHANGE
protected static final byte TYPE_LIGHT_CONTRACT
protected static final byte TYPE_CHILD_CHAIN_CONTROL
public static TransactionType findTransactionType(byte type, byte subtype)
public Fee getBaselineFee(Transaction transaction)
getBaselineFee in class TransactionTypepublic final boolean applyUnconfirmed(TransactionImpl transaction, Account senderAccount)
applyUnconfirmed in class TransactionTypepublic final void apply(TransactionImpl transaction, Account senderAccount, Account recipientAccount)
apply in class TransactionTypepublic final void undoUnconfirmed(TransactionImpl transaction, Account senderAccount)
undoUnconfirmed in class TransactionTypepublic final void validateAttachment(Transaction transaction) throws NxtException.ValidationException
validateAttachment in class TransactionTypeNxtException.ValidationExceptionprotected abstract void validateAttachment(ChildTransactionImpl transaction) throws NxtException.ValidationException
NxtException.ValidationExceptionpublic final boolean applyAttachmentUnconfirmed(Transaction transaction, Account senderAccount)
applyAttachmentUnconfirmed in class TransactionTypeprotected abstract boolean applyAttachmentUnconfirmed(ChildTransactionImpl transaction, Account senderAccount)
transaction - Transaction to apply as unconfirmedsenderAccount - Cached sender accountpublic final void applyAttachment(Transaction transaction, Account senderAccount, Account recipientAccount)
applyAttachment in class TransactionTypeprotected abstract void applyAttachment(ChildTransactionImpl transaction, Account senderAccount, Account recipientAccount)
public final void undoAttachmentUnconfirmed(Transaction transaction, Account senderAccount)
undoAttachmentUnconfirmed in class TransactionTypeprotected abstract void undoAttachmentUnconfirmed(ChildTransactionImpl transaction, Account senderAccount)
protected final void validateId(Transaction transaction) throws NxtException.ValidationException
validateId in class TransactionTypeNxtException.ValidationExceptionprotected void validateId(ChildTransactionImpl transaction) throws NxtException.NotCurrentlyValidException
public final java.util.List<ChildChain> getInvolvedChildChains(Transaction transaction)
getInvolvedChildChains in class TransactionTypeprotected java.util.List<ChildChain> getInvolvedChildChains(ChildTransactionImpl transaction)