Package nxt.ce

Class OrderIssueAttachment

All Implemented Interfaces:
Appendix, Attachment
Direct Known Subclasses:
OrderIssueFxtAttachment

public class OrderIssueAttachment extends Attachment.AbstractAttachment
Coin exchange order issue attachment for a child chain
  • Constructor Details

    • OrderIssueAttachment

      public OrderIssueAttachment(Chain chain, Chain exchangeChain, long quantityQNT, long priceNQT)
  • Method Details

    • getMySize

      protected int getMySize()
      Specified by:
      getMySize in class Appendix.AbstractAppendix
    • putMyBytes

      protected void putMyBytes(ByteBuffer buffer)
      Specified by:
      putMyBytes in class Appendix.AbstractAppendix
    • putMyJSON

      protected void putMyJSON(org.json.simple.JSONObject attachment)
      Specified by:
      putMyJSON in class Appendix.AbstractAppendix
    • getChain

      public Chain getChain()
      Return the chain
      Returns:
      Chain
    • getExchangeChain

      public 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

      public TransactionType getTransactionType()
      Return the transaction type
      Returns:
      Transaction type