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, toString
protected 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 TransactionType
public final boolean applyUnconfirmed(TransactionImpl transaction, Account senderAccount)
applyUnconfirmed
in class TransactionType
public final void apply(TransactionImpl transaction, Account senderAccount, Account recipientAccount)
apply
in class TransactionType
public final void undoUnconfirmed(TransactionImpl transaction, Account senderAccount)
undoUnconfirmed
in class TransactionType
public final void validateAttachment(Transaction transaction) throws NxtException.ValidationException
validateAttachment
in class TransactionType
NxtException.ValidationException
protected abstract void validateAttachment(ChildTransactionImpl transaction) throws NxtException.ValidationException
NxtException.ValidationException
public final boolean applyAttachmentUnconfirmed(Transaction transaction, Account senderAccount)
applyAttachmentUnconfirmed
in class TransactionType
protected 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 TransactionType
protected abstract void applyAttachment(ChildTransactionImpl transaction, Account senderAccount, Account recipientAccount)
public final void undoAttachmentUnconfirmed(Transaction transaction, Account senderAccount)
undoAttachmentUnconfirmed
in class TransactionType
protected abstract void undoAttachmentUnconfirmed(ChildTransactionImpl transaction, Account senderAccount)
protected final void validateId(Transaction transaction) throws NxtException.ValidationException
validateId
in class TransactionType
NxtException.ValidationException
protected void validateId(ChildTransactionImpl transaction) throws NxtException.NotCurrentlyValidException
public final java.util.List<ChildChain> getInvolvedChildChains(Transaction transaction)
getInvolvedChildChains
in class TransactionType
protected java.util.List<ChildChain> getInvolvedChildChains(ChildTransactionImpl transaction)