Package nxt.ce
Class OrderIssueAttachment
java.lang.Object
nxt.blockchain.Appendix.AbstractAppendix
nxt.blockchain.Attachment.AbstractAttachment
nxt.ce.OrderIssueAttachment
- All Implemented Interfaces:
Appendix,Attachment
- Direct Known Subclasses:
OrderIssueFxtAttachment
Coin exchange order issue attachment for a child chain
-
Nested Class Summary
Nested classes/interfaces inherited from interface nxt.blockchain.Appendix
Appendix.AbstractAppendix, Appendix.Encryptable, Appendix.Parser, Appendix.PrunableNested classes/interfaces inherited from interface nxt.blockchain.Attachment
Attachment.AbstractAttachment, Attachment.EmptyAttachment, Attachment.PropertyDeleteAttachment -
Constructor Summary
ConstructorsConstructorDescriptionOrderIssueAttachment(Chain chain, Chain exchangeChain, long quantityQNT, long priceNQT) -
Method Summary
Modifier and TypeMethodDescriptiongetChain()Return the chainReturn the exchange chainprotected intlongReturn the exchange price with an implied 8 decimal placeslongReturn the exchange amount with an implied 8 decimal placesReturn the transaction typeprotected voidputMyBytes(ByteBuffer buffer) protected voidputMyJSON(org.json.simple.JSONObject attachment) Methods inherited from class nxt.blockchain.Attachment.AbstractAttachment
apply, getAppendixName, getAppendixType, getBaselineFee, getBaselineFeeHeight, getFinishValidationHeight, getNextFee, getNextFeeHeight, isAllowed, isPhasable, validate, validateIdMethods inherited from class nxt.blockchain.Appendix.AbstractAppendix
getFee, getFullSize, getJSONObject, getSize, getVersion, isPhased, loadPrunable, loadPrunable, putBytes, validateAtFinish, verifyVersionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface nxt.blockchain.Appendix
getFee, getFullSize, getJSONObject, getSize, getVersion, isPhased, putBytes
-
Constructor Details
-
OrderIssueAttachment
-
-
Method Details
-
getMySize
protected int getMySize()- Specified by:
getMySizein classAppendix.AbstractAppendix
-
putMyBytes
- Specified by:
putMyBytesin classAppendix.AbstractAppendix
-
putMyJSON
protected void putMyJSON(org.json.simple.JSONObject attachment) - Specified by:
putMyJSONin classAppendix.AbstractAppendix
-
getChain
Return the chain- Returns:
- Chain
-
getExchangeChain
Return the exchange chain- Returns:
- Exchange chain
-
getQuantityQNT
public long getQuantityQNT()Return the exchange amount with an implied 8 decimal places- Returns:
- Exchange amount
-
getPriceNQT
public long getPriceNQT()Return the exchange price with an implied 8 decimal places- Returns:
- Exchange price
-
getTransactionType
Return the transaction type- Returns:
- Transaction type
-