lib/order/txns/index.js

  1. const makeApplicationCreateTxn = require('./makeApplicationCreateTxn');
  2. const buyTxns = require('./buy');
  3. const sellTxns = require('./sell');
  4. const closeTxns = require('./close');
  5. /**
  6. * # Transactions
  7. *
  8. * @namespace Transactions
  9. **/
  10. module.exports = {
  11. ...buyTxns,
  12. ...sellTxns,
  13. ...closeTxns,
  14. makeApplicationCreateTxn,
  15. };
  16. /**
  17. * # Signable Transaction
  18. *
  19. * A shape for all transactions. It's main purpoes is to associate a transaction to it's signing method.
  20. * It either has a Logic Signature Account or needs to be signed by the end user's Wallet.
  21. *
  22. * @typedef {Object} SignableTxn
  23. * @property {algosdk.Transaction} unsignedTxn A unsigned Transaction
  24. * @property {algosdk.Account | Wallet | undefined} [senderAcct] Wallet or Algosdk Account
  25. * @property {algosdk.LogicSigAccount | undefined} [lsig] Logic Signature Account
  26. * @memberOf Transactions
  27. */
  28. /**
  29. * # Outer Transactions
  30. *
  31. * Returned by any transaction factory in the {@link module:txns/buy} or {@link module:txns/sell} modules. These
  32. * structures are based on the underlying TEAL Smart Contract. You can find out more in each transaction
  33. * generators documentation page.
  34. *
  35. * @typedef {Transactions.SignableTxn} OuterTransactions
  36. * @memberOf Transactions
  37. */
  38. JAVASCRIPT
    Copied!