Package nxt.ms
Class PublishExchangeOfferAttachment
java.lang.Object
nxt.blockchain.Appendix.AbstractAppendix
nxt.blockchain.Attachment.AbstractAttachment
nxt.ms.PublishExchangeOfferAttachment
- All Implemented Interfaces:
Appendix,Attachment
-
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
ConstructorsConstructorDescriptionPublishExchangeOfferAttachment(long currencyId, long buyRateNQT, long sellRateNQT, long totalBuyLimitQNT, long totalSellLimitQNT, long initialBuySupplyQNT, long initialSellSupplyQNT, int expirationHeight) PublishExchangeOfferAttachment(org.json.simple.JSONObject attachmentData) -
Method Summary
Modifier and TypeMethodDescriptionlonglongintlonglongprotected intlonglonglongprotected 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
-
PublishExchangeOfferAttachment
-
PublishExchangeOfferAttachment
public PublishExchangeOfferAttachment(org.json.simple.JSONObject attachmentData) -
PublishExchangeOfferAttachment
public PublishExchangeOfferAttachment(long currencyId, long buyRateNQT, long sellRateNQT, long totalBuyLimitQNT, long totalSellLimitQNT, long initialBuySupplyQNT, long initialSellSupplyQNT, int expirationHeight)
-
-
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
-
getTransactionType
- Specified by:
getTransactionTypein interfaceAttachment
-
getCurrencyId
public long getCurrencyId() -
getBuyRateNQT
public long getBuyRateNQT() -
getSellRateNQT
public long getSellRateNQT() -
getTotalBuyLimitQNT
public long getTotalBuyLimitQNT() -
getTotalSellLimitQNT
public long getTotalSellLimitQNT() -
getInitialBuySupplyQNT
public long getInitialBuySupplyQNT() -
getInitialSellSupplyQNT
public long getInitialSellSupplyQNT() -
getExpirationHeight
public int getExpirationHeight()
-