algosdk 1.23.2 → 1.24.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (909) hide show
  1. package/README.md +4 -4
  2. package/dist/browser/algosdk.min.js +1 -1
  3. package/dist/browser/algosdk.min.js.map +1 -1
  4. package/dist/cjs/abi/abi_type.js +693 -0
  5. package/dist/cjs/abi/abi_type.js.map +1 -0
  6. package/dist/cjs/{src/abi → abi}/contract.js +0 -0
  7. package/dist/cjs/abi/contract.js.map +1 -0
  8. package/dist/cjs/{src/abi → abi}/index.js +0 -0
  9. package/dist/cjs/abi/index.js.map +1 -0
  10. package/dist/cjs/{src/abi → abi}/interface.js +0 -0
  11. package/dist/cjs/abi/interface.js.map +1 -0
  12. package/dist/cjs/{src/abi → abi}/method.js +0 -0
  13. package/dist/cjs/abi/method.js.map +1 -0
  14. package/dist/cjs/{src/abi → abi}/reference.js +0 -0
  15. package/dist/cjs/abi/reference.js.map +1 -0
  16. package/dist/cjs/{src/abi → abi}/transaction.js +0 -0
  17. package/dist/cjs/abi/transaction.js.map +1 -0
  18. package/dist/cjs/{src/account.js → account.js} +0 -0
  19. package/dist/cjs/account.js.map +1 -0
  20. package/dist/cjs/{src/bid.js → bid.js} +0 -0
  21. package/dist/cjs/bid.js.map +1 -0
  22. package/dist/cjs/{src/boxStorage.js → boxStorage.js} +0 -0
  23. package/dist/cjs/boxStorage.js.map +1 -0
  24. package/dist/cjs/{src/client → client}/algod.js +0 -0
  25. package/dist/cjs/client/algod.js.map +1 -0
  26. package/dist/cjs/{src/client → client}/baseHTTPClient.js +0 -0
  27. package/dist/cjs/client/baseHTTPClient.js.map +1 -0
  28. package/dist/cjs/{src/client → client}/client.js +0 -0
  29. package/dist/cjs/client/client.js.map +1 -0
  30. package/dist/cjs/{src/client → client}/kmd.js +0 -0
  31. package/dist/cjs/client/kmd.js.map +1 -0
  32. package/dist/cjs/{src/client → client}/urlTokenBaseHTTPClient.js +0 -0
  33. package/dist/cjs/client/urlTokenBaseHTTPClient.js.map +1 -0
  34. package/dist/cjs/{src/client → client}/v2/algod/accountApplicationInformation.js +0 -0
  35. package/dist/cjs/client/v2/algod/accountApplicationInformation.js.map +1 -0
  36. package/dist/cjs/{src/client → client}/v2/algod/accountAssetInformation.js +0 -0
  37. package/dist/cjs/client/v2/algod/accountAssetInformation.js.map +1 -0
  38. package/dist/cjs/{src/client → client}/v2/algod/accountInformation.js +0 -0
  39. package/dist/cjs/client/v2/algod/accountInformation.js.map +1 -0
  40. package/dist/cjs/{src/client → client}/v2/algod/algod.js +0 -0
  41. package/dist/cjs/client/v2/algod/algod.js.map +1 -0
  42. package/dist/cjs/{src/client → client}/v2/algod/block.js +0 -0
  43. package/dist/cjs/client/v2/algod/block.js.map +1 -0
  44. package/dist/cjs/{src/client → client}/v2/algod/compile.js +0 -0
  45. package/dist/cjs/client/v2/algod/compile.js.map +1 -0
  46. package/dist/cjs/{src/client → client}/v2/algod/dryrun.js +0 -0
  47. package/dist/cjs/client/v2/algod/dryrun.js.map +1 -0
  48. package/dist/cjs/{src/client → client}/v2/algod/genesis.js +0 -0
  49. package/dist/cjs/client/v2/algod/genesis.js.map +1 -0
  50. package/dist/cjs/{src/client → client}/v2/algod/getApplicationBoxByName.js +0 -0
  51. package/dist/cjs/client/v2/algod/getApplicationBoxByName.js.map +1 -0
  52. package/dist/cjs/{src/client → client}/v2/algod/getApplicationBoxes.js +0 -0
  53. package/dist/cjs/client/v2/algod/getApplicationBoxes.js.map +1 -0
  54. package/dist/cjs/{src/client → client}/v2/algod/getApplicationByID.js +0 -0
  55. package/dist/cjs/client/v2/algod/getApplicationByID.js.map +1 -0
  56. package/dist/cjs/{src/client → client}/v2/algod/getAssetByID.js +0 -0
  57. package/dist/cjs/client/v2/algod/getAssetByID.js.map +1 -0
  58. package/dist/cjs/{src/client → client}/v2/algod/getBlockHash.js +0 -0
  59. package/dist/cjs/client/v2/algod/getBlockHash.js.map +1 -0
  60. package/dist/cjs/{src/client → client}/v2/algod/getTransactionProof.js +0 -0
  61. package/dist/cjs/client/v2/algod/getTransactionProof.js.map +1 -0
  62. package/dist/cjs/{src/client → client}/v2/algod/healthCheck.js +0 -0
  63. package/dist/cjs/client/v2/algod/healthCheck.js.map +1 -0
  64. package/dist/cjs/{src/client → client}/v2/algod/lightBlockHeaderProof.js +0 -0
  65. package/dist/cjs/client/v2/algod/lightBlockHeaderProof.js.map +1 -0
  66. package/dist/cjs/client/v2/algod/models/types.js +2047 -0
  67. package/dist/cjs/client/v2/algod/models/types.js.map +1 -0
  68. package/dist/cjs/{src/client → client}/v2/algod/pendingTransactionInformation.js +0 -0
  69. package/dist/cjs/client/v2/algod/pendingTransactionInformation.js.map +1 -0
  70. package/dist/cjs/{src/client → client}/v2/algod/pendingTransactions.js +0 -0
  71. package/dist/cjs/client/v2/algod/pendingTransactions.js.map +1 -0
  72. package/dist/cjs/{src/client → client}/v2/algod/pendingTransactionsByAddress.js +0 -0
  73. package/dist/cjs/client/v2/algod/pendingTransactionsByAddress.js.map +1 -0
  74. package/dist/cjs/{src/client → client}/v2/algod/sendRawTransaction.js +0 -0
  75. package/dist/cjs/client/v2/algod/sendRawTransaction.js.map +1 -0
  76. package/dist/cjs/{src/client → client}/v2/algod/stateproof.js +0 -0
  77. package/dist/cjs/client/v2/algod/stateproof.js.map +1 -0
  78. package/dist/cjs/{src/client → client}/v2/algod/status.js +0 -0
  79. package/dist/cjs/client/v2/algod/status.js.map +1 -0
  80. package/dist/cjs/{src/client → client}/v2/algod/statusAfterBlock.js +0 -0
  81. package/dist/cjs/client/v2/algod/statusAfterBlock.js.map +1 -0
  82. package/dist/cjs/{src/client → client}/v2/algod/suggestedParams.js +0 -0
  83. package/dist/cjs/client/v2/algod/suggestedParams.js.map +1 -0
  84. package/dist/cjs/{src/client → client}/v2/algod/supply.js +0 -0
  85. package/dist/cjs/client/v2/algod/supply.js.map +1 -0
  86. package/dist/cjs/{src/client → client}/v2/algod/versions.js +0 -0
  87. package/dist/cjs/client/v2/algod/versions.js.map +1 -0
  88. package/dist/cjs/{src/client → client}/v2/basemodel.js +0 -0
  89. package/dist/cjs/client/v2/basemodel.js.map +1 -0
  90. package/dist/cjs/{src/client → client}/v2/indexer/indexer.js +0 -0
  91. package/dist/cjs/client/v2/indexer/indexer.js.map +1 -0
  92. package/dist/cjs/{src/client → client}/v2/indexer/lookupAccountAppLocalStates.js +0 -0
  93. package/dist/cjs/client/v2/indexer/lookupAccountAppLocalStates.js.map +1 -0
  94. package/dist/cjs/{src/client → client}/v2/indexer/lookupAccountAssets.js +0 -0
  95. package/dist/cjs/client/v2/indexer/lookupAccountAssets.js.map +1 -0
  96. package/dist/cjs/{src/client → client}/v2/indexer/lookupAccountByID.js +0 -0
  97. package/dist/cjs/client/v2/indexer/lookupAccountByID.js.map +1 -0
  98. package/dist/cjs/{src/client → client}/v2/indexer/lookupAccountCreatedApplications.js +0 -0
  99. package/dist/cjs/client/v2/indexer/lookupAccountCreatedApplications.js.map +1 -0
  100. package/dist/cjs/{src/client → client}/v2/indexer/lookupAccountCreatedAssets.js +0 -0
  101. package/dist/cjs/client/v2/indexer/lookupAccountCreatedAssets.js.map +1 -0
  102. package/dist/cjs/{src/client → client}/v2/indexer/lookupAccountTransactions.js +0 -0
  103. package/dist/cjs/client/v2/indexer/lookupAccountTransactions.js.map +1 -0
  104. package/dist/cjs/{src/client → client}/v2/indexer/lookupApplicationBoxByIDandName.js +0 -0
  105. package/dist/cjs/client/v2/indexer/lookupApplicationBoxByIDandName.js.map +1 -0
  106. package/dist/cjs/{src/client → client}/v2/indexer/lookupApplicationLogs.js +0 -0
  107. package/dist/cjs/client/v2/indexer/lookupApplicationLogs.js.map +1 -0
  108. package/dist/cjs/{src/client → client}/v2/indexer/lookupApplications.js +0 -0
  109. package/dist/cjs/client/v2/indexer/lookupApplications.js.map +1 -0
  110. package/dist/cjs/{src/client → client}/v2/indexer/lookupAssetBalances.js +0 -0
  111. package/dist/cjs/client/v2/indexer/lookupAssetBalances.js.map +1 -0
  112. package/dist/cjs/{src/client → client}/v2/indexer/lookupAssetByID.js +0 -0
  113. package/dist/cjs/client/v2/indexer/lookupAssetByID.js.map +1 -0
  114. package/dist/cjs/{src/client → client}/v2/indexer/lookupAssetTransactions.js +0 -0
  115. package/dist/cjs/client/v2/indexer/lookupAssetTransactions.js.map +1 -0
  116. package/dist/cjs/{src/client → client}/v2/indexer/lookupBlock.js +0 -0
  117. package/dist/cjs/client/v2/indexer/lookupBlock.js.map +1 -0
  118. package/dist/cjs/{src/client → client}/v2/indexer/lookupTransactionByID.js +0 -0
  119. package/dist/cjs/client/v2/indexer/lookupTransactionByID.js.map +1 -0
  120. package/dist/cjs/{src/client → client}/v2/indexer/makeHealthCheck.js +0 -0
  121. package/dist/cjs/client/v2/indexer/makeHealthCheck.js.map +1 -0
  122. package/dist/cjs/{src/client → client}/v2/indexer/models/types.js +0 -0
  123. package/dist/cjs/client/v2/indexer/models/types.js.map +1 -0
  124. package/dist/cjs/{src/client → client}/v2/indexer/searchAccounts.js +0 -0
  125. package/dist/cjs/client/v2/indexer/searchAccounts.js.map +1 -0
  126. package/dist/cjs/{src/client → client}/v2/indexer/searchForApplicationBoxes.js +0 -0
  127. package/dist/cjs/client/v2/indexer/searchForApplicationBoxes.js.map +1 -0
  128. package/dist/cjs/{src/client → client}/v2/indexer/searchForApplications.js +0 -0
  129. package/dist/cjs/client/v2/indexer/searchForApplications.js.map +1 -0
  130. package/dist/cjs/{src/client → client}/v2/indexer/searchForAssets.js +0 -0
  131. package/dist/cjs/client/v2/indexer/searchForAssets.js.map +1 -0
  132. package/dist/cjs/{src/client → client}/v2/indexer/searchForTransactions.js +0 -0
  133. package/dist/cjs/client/v2/indexer/searchForTransactions.js.map +1 -0
  134. package/dist/cjs/{src/client → client}/v2/jsonrequest.js +0 -0
  135. package/dist/cjs/client/v2/jsonrequest.js.map +1 -0
  136. package/dist/cjs/{src/client → client}/v2/serviceClient.js +0 -0
  137. package/dist/cjs/client/v2/serviceClient.js.map +1 -0
  138. package/dist/cjs/{src/composer.js → composer.js} +0 -0
  139. package/dist/cjs/composer.js.map +1 -0
  140. package/dist/cjs/{src/convert.js → convert.js} +0 -0
  141. package/dist/cjs/convert.js.map +1 -0
  142. package/dist/cjs/{src/dryrun.js → dryrun.js} +0 -0
  143. package/dist/cjs/dryrun.js.map +1 -0
  144. package/dist/cjs/{src/encoding → encoding}/address.js +0 -0
  145. package/dist/cjs/encoding/address.js.map +1 -0
  146. package/dist/cjs/{src/encoding → encoding}/bigint.js +0 -0
  147. package/dist/cjs/encoding/bigint.js.map +1 -0
  148. package/dist/cjs/{src/encoding → encoding}/encoding.js +0 -0
  149. package/dist/cjs/encoding/encoding.js.map +1 -0
  150. package/dist/cjs/{src/encoding → encoding}/uint64.js +0 -0
  151. package/dist/cjs/encoding/uint64.js.map +1 -0
  152. package/dist/cjs/{src/group.js → group.js} +0 -0
  153. package/dist/cjs/group.js.map +1 -0
  154. package/dist/cjs/index.js +2 -2
  155. package/dist/cjs/index.js.map +1 -1
  156. package/dist/cjs/{src/logic → logic}/langspec.json +0 -0
  157. package/dist/cjs/{src/logic → logic}/logic.js +0 -0
  158. package/dist/cjs/logic/logic.js.map +1 -0
  159. package/dist/cjs/{src/logic → logic}/sourcemap.js +0 -0
  160. package/dist/cjs/logic/sourcemap.js.map +1 -0
  161. package/dist/cjs/{src/logicTemplates → logicTemplates}/dynamicfee.js +0 -0
  162. package/dist/cjs/logicTemplates/dynamicfee.js.map +1 -0
  163. package/dist/cjs/{src/logicTemplates → logicTemplates}/htlc.js +0 -0
  164. package/dist/cjs/logicTemplates/htlc.js.map +1 -0
  165. package/dist/cjs/{src/logicTemplates → logicTemplates}/index.js +0 -0
  166. package/dist/cjs/logicTemplates/index.js.map +1 -0
  167. package/dist/cjs/{src/logicTemplates → logicTemplates}/limitorder.js +0 -0
  168. package/dist/cjs/logicTemplates/limitorder.js.map +1 -0
  169. package/dist/cjs/{src/logicTemplates → logicTemplates}/periodicpayment.js +0 -0
  170. package/dist/cjs/logicTemplates/periodicpayment.js.map +1 -0
  171. package/dist/cjs/{src/logicTemplates → logicTemplates}/split.js +0 -0
  172. package/dist/cjs/logicTemplates/split.js.map +1 -0
  173. package/dist/cjs/{src/logicTemplates → logicTemplates}/templates.js +0 -0
  174. package/dist/cjs/logicTemplates/templates.js.map +1 -0
  175. package/dist/cjs/{src/logicsig.js → logicsig.js} +0 -0
  176. package/dist/cjs/logicsig.js.map +1 -0
  177. package/dist/cjs/{src/main.js → main.js} +0 -0
  178. package/dist/cjs/main.js.map +1 -0
  179. package/dist/cjs/{src/makeTxn.js → makeTxn.js} +0 -0
  180. package/dist/cjs/makeTxn.js.map +1 -0
  181. package/dist/cjs/{src/mnemonic → mnemonic}/mnemonic.js +0 -0
  182. package/dist/cjs/mnemonic/mnemonic.js.map +1 -0
  183. package/dist/cjs/{src/mnemonic → mnemonic}/wordlists/english.js +0 -0
  184. package/dist/cjs/mnemonic/wordlists/english.js.map +1 -0
  185. package/dist/cjs/multisig.js +398 -0
  186. package/dist/cjs/multisig.js.map +1 -0
  187. package/dist/cjs/{src/nacl → nacl}/naclWrappers.js +0 -0
  188. package/dist/cjs/nacl/naclWrappers.js.map +1 -0
  189. package/dist/cjs/{src/signer.js → signer.js} +0 -0
  190. package/dist/cjs/signer.js.map +1 -0
  191. package/dist/cjs/{src/transaction.js → transaction.js} +0 -0
  192. package/dist/cjs/transaction.js.map +1 -0
  193. package/dist/cjs/{src/types → types}/account.js +0 -0
  194. package/dist/cjs/types/account.js.map +1 -0
  195. package/dist/cjs/{src/types → types}/address.js +0 -0
  196. package/dist/cjs/types/address.js.map +1 -0
  197. package/dist/cjs/{src/types → types}/blockHeader.js +0 -0
  198. package/dist/cjs/types/blockHeader.js.map +1 -0
  199. package/dist/cjs/{src/types → types}/index.js +0 -0
  200. package/dist/cjs/types/index.js.map +1 -0
  201. package/dist/cjs/{src/types → types}/intDecoding.js +0 -0
  202. package/dist/cjs/types/intDecoding.js.map +1 -0
  203. package/dist/cjs/{src/types → types}/multisig.js +0 -0
  204. package/dist/cjs/types/multisig.js.map +1 -0
  205. package/dist/cjs/{src/types → types}/transactions/application.js +0 -0
  206. package/dist/cjs/types/transactions/application.js.map +1 -0
  207. package/dist/cjs/{src/types → types}/transactions/asset.js +0 -0
  208. package/dist/cjs/types/transactions/asset.js.map +1 -0
  209. package/dist/cjs/{src/types → types}/transactions/base.js +0 -0
  210. package/dist/cjs/types/transactions/base.js.map +1 -0
  211. package/dist/cjs/{src/types → types}/transactions/builder.js +0 -0
  212. package/dist/cjs/types/transactions/builder.js.map +1 -0
  213. package/dist/cjs/{src/types → types}/transactions/encoded.js +0 -0
  214. package/dist/cjs/types/transactions/encoded.js.map +1 -0
  215. package/dist/cjs/{src/types → types}/transactions/index.js +0 -0
  216. package/dist/cjs/types/transactions/index.js.map +1 -0
  217. package/dist/cjs/{src/types → types}/transactions/keyreg.js +0 -0
  218. package/dist/cjs/types/transactions/keyreg.js.map +1 -0
  219. package/dist/cjs/{src/types → types}/transactions/payment.js +0 -0
  220. package/dist/cjs/types/transactions/payment.js.map +1 -0
  221. package/dist/cjs/{src/types → types}/transactions/stateproof.js +0 -0
  222. package/dist/cjs/types/transactions/stateproof.js.map +1 -0
  223. package/dist/cjs/{src/types → types}/utils.js +0 -0
  224. package/dist/cjs/types/utils.js.map +1 -0
  225. package/dist/cjs/{src/utils → utils}/utils.js +0 -0
  226. package/dist/cjs/utils/utils.js.map +1 -0
  227. package/dist/cjs/{src/wait.js → wait.js} +0 -0
  228. package/dist/cjs/wait.js.map +1 -0
  229. package/dist/esm/abi/abi_type.js +680 -0
  230. package/dist/esm/abi/abi_type.js.map +1 -0
  231. package/dist/esm/{src/abi → abi}/contract.js +0 -0
  232. package/dist/esm/abi/contract.js.map +1 -0
  233. package/dist/esm/{src/abi → abi}/index.js +0 -0
  234. package/dist/esm/abi/index.js.map +1 -0
  235. package/dist/esm/{src/abi → abi}/interface.js +0 -0
  236. package/dist/esm/abi/interface.js.map +1 -0
  237. package/dist/esm/{src/abi → abi}/method.js +0 -0
  238. package/dist/esm/abi/method.js.map +1 -0
  239. package/dist/esm/{src/abi → abi}/reference.js +0 -0
  240. package/dist/esm/abi/reference.js.map +1 -0
  241. package/dist/esm/{src/abi → abi}/transaction.js +0 -0
  242. package/dist/esm/abi/transaction.js.map +1 -0
  243. package/dist/esm/{src/account.js → account.js} +0 -0
  244. package/dist/esm/account.js.map +1 -0
  245. package/dist/esm/{src/bid.js → bid.js} +0 -0
  246. package/dist/esm/bid.js.map +1 -0
  247. package/dist/esm/{src/boxStorage.js → boxStorage.js} +0 -0
  248. package/dist/esm/boxStorage.js.map +1 -0
  249. package/dist/esm/{src/client → client}/algod.js +0 -0
  250. package/dist/esm/client/algod.js.map +1 -0
  251. package/dist/esm/{src/client → client}/baseHTTPClient.js +0 -0
  252. package/dist/esm/client/baseHTTPClient.js.map +1 -0
  253. package/dist/esm/{src/client → client}/client.js +0 -0
  254. package/dist/esm/client/client.js.map +1 -0
  255. package/dist/esm/{src/client → client}/kmd.js +0 -0
  256. package/dist/esm/client/kmd.js.map +1 -0
  257. package/dist/esm/{src/client → client}/urlTokenBaseHTTPClient.js +0 -0
  258. package/dist/esm/client/urlTokenBaseHTTPClient.js.map +1 -0
  259. package/dist/esm/{src/client → client}/v2/algod/accountApplicationInformation.js +0 -0
  260. package/dist/esm/client/v2/algod/accountApplicationInformation.js.map +1 -0
  261. package/dist/esm/{src/client → client}/v2/algod/accountAssetInformation.js +0 -0
  262. package/dist/esm/client/v2/algod/accountAssetInformation.js.map +1 -0
  263. package/dist/esm/{src/client → client}/v2/algod/accountInformation.js +0 -0
  264. package/dist/esm/client/v2/algod/accountInformation.js.map +1 -0
  265. package/dist/esm/{src/client → client}/v2/algod/algod.js +0 -0
  266. package/dist/esm/client/v2/algod/algod.js.map +1 -0
  267. package/dist/esm/{src/client → client}/v2/algod/block.js +0 -0
  268. package/dist/esm/client/v2/algod/block.js.map +1 -0
  269. package/dist/esm/{src/client → client}/v2/algod/compile.js +0 -0
  270. package/dist/esm/client/v2/algod/compile.js.map +1 -0
  271. package/dist/esm/{src/client → client}/v2/algod/dryrun.js +0 -0
  272. package/dist/esm/client/v2/algod/dryrun.js.map +1 -0
  273. package/dist/esm/{src/client → client}/v2/algod/genesis.js +0 -0
  274. package/dist/esm/client/v2/algod/genesis.js.map +1 -0
  275. package/dist/esm/{src/client → client}/v2/algod/getApplicationBoxByName.js +0 -0
  276. package/dist/esm/client/v2/algod/getApplicationBoxByName.js.map +1 -0
  277. package/dist/esm/{src/client → client}/v2/algod/getApplicationBoxes.js +0 -0
  278. package/dist/esm/client/v2/algod/getApplicationBoxes.js.map +1 -0
  279. package/dist/esm/{src/client → client}/v2/algod/getApplicationByID.js +0 -0
  280. package/dist/esm/client/v2/algod/getApplicationByID.js.map +1 -0
  281. package/dist/esm/{src/client → client}/v2/algod/getAssetByID.js +0 -0
  282. package/dist/esm/client/v2/algod/getAssetByID.js.map +1 -0
  283. package/dist/esm/{src/client → client}/v2/algod/getBlockHash.js +0 -0
  284. package/dist/esm/client/v2/algod/getBlockHash.js.map +1 -0
  285. package/dist/esm/{src/client → client}/v2/algod/getTransactionProof.js +0 -0
  286. package/dist/esm/client/v2/algod/getTransactionProof.js.map +1 -0
  287. package/dist/esm/{src/client → client}/v2/algod/healthCheck.js +0 -0
  288. package/dist/esm/client/v2/algod/healthCheck.js.map +1 -0
  289. package/dist/esm/{src/client → client}/v2/algod/lightBlockHeaderProof.js +0 -0
  290. package/dist/esm/client/v2/algod/lightBlockHeaderProof.js.map +1 -0
  291. package/dist/esm/client/v2/algod/models/types.js +1998 -0
  292. package/dist/esm/client/v2/algod/models/types.js.map +1 -0
  293. package/dist/esm/{src/client → client}/v2/algod/pendingTransactionInformation.js +0 -0
  294. package/dist/esm/client/v2/algod/pendingTransactionInformation.js.map +1 -0
  295. package/dist/esm/{src/client → client}/v2/algod/pendingTransactions.js +0 -0
  296. package/dist/esm/client/v2/algod/pendingTransactions.js.map +1 -0
  297. package/dist/esm/{src/client → client}/v2/algod/pendingTransactionsByAddress.js +0 -0
  298. package/dist/esm/client/v2/algod/pendingTransactionsByAddress.js.map +1 -0
  299. package/dist/esm/{src/client → client}/v2/algod/sendRawTransaction.js +0 -0
  300. package/dist/esm/client/v2/algod/sendRawTransaction.js.map +1 -0
  301. package/dist/esm/{src/client → client}/v2/algod/stateproof.js +0 -0
  302. package/dist/esm/client/v2/algod/stateproof.js.map +1 -0
  303. package/dist/esm/{src/client → client}/v2/algod/status.js +0 -0
  304. package/dist/esm/client/v2/algod/status.js.map +1 -0
  305. package/dist/esm/{src/client → client}/v2/algod/statusAfterBlock.js +0 -0
  306. package/dist/esm/client/v2/algod/statusAfterBlock.js.map +1 -0
  307. package/dist/esm/{src/client → client}/v2/algod/suggestedParams.js +0 -0
  308. package/dist/esm/client/v2/algod/suggestedParams.js.map +1 -0
  309. package/dist/esm/{src/client → client}/v2/algod/supply.js +0 -0
  310. package/dist/esm/client/v2/algod/supply.js.map +1 -0
  311. package/dist/esm/{src/client → client}/v2/algod/versions.js +0 -0
  312. package/dist/esm/client/v2/algod/versions.js.map +1 -0
  313. package/dist/esm/{src/client → client}/v2/basemodel.js +0 -0
  314. package/dist/esm/client/v2/basemodel.js.map +1 -0
  315. package/dist/esm/{src/client → client}/v2/indexer/indexer.js +0 -0
  316. package/dist/esm/client/v2/indexer/indexer.js.map +1 -0
  317. package/dist/esm/{src/client → client}/v2/indexer/lookupAccountAppLocalStates.js +0 -0
  318. package/dist/esm/client/v2/indexer/lookupAccountAppLocalStates.js.map +1 -0
  319. package/dist/esm/{src/client → client}/v2/indexer/lookupAccountAssets.js +0 -0
  320. package/dist/esm/client/v2/indexer/lookupAccountAssets.js.map +1 -0
  321. package/dist/esm/{src/client → client}/v2/indexer/lookupAccountByID.js +0 -0
  322. package/dist/esm/client/v2/indexer/lookupAccountByID.js.map +1 -0
  323. package/dist/esm/{src/client → client}/v2/indexer/lookupAccountCreatedApplications.js +0 -0
  324. package/dist/esm/client/v2/indexer/lookupAccountCreatedApplications.js.map +1 -0
  325. package/dist/esm/{src/client → client}/v2/indexer/lookupAccountCreatedAssets.js +0 -0
  326. package/dist/esm/client/v2/indexer/lookupAccountCreatedAssets.js.map +1 -0
  327. package/dist/esm/{src/client → client}/v2/indexer/lookupAccountTransactions.js +0 -0
  328. package/dist/esm/client/v2/indexer/lookupAccountTransactions.js.map +1 -0
  329. package/dist/esm/{src/client → client}/v2/indexer/lookupApplicationBoxByIDandName.js +0 -0
  330. package/dist/esm/client/v2/indexer/lookupApplicationBoxByIDandName.js.map +1 -0
  331. package/dist/esm/{src/client → client}/v2/indexer/lookupApplicationLogs.js +0 -0
  332. package/dist/esm/client/v2/indexer/lookupApplicationLogs.js.map +1 -0
  333. package/dist/esm/{src/client → client}/v2/indexer/lookupApplications.js +0 -0
  334. package/dist/esm/client/v2/indexer/lookupApplications.js.map +1 -0
  335. package/dist/esm/{src/client → client}/v2/indexer/lookupAssetBalances.js +0 -0
  336. package/dist/esm/client/v2/indexer/lookupAssetBalances.js.map +1 -0
  337. package/dist/esm/{src/client → client}/v2/indexer/lookupAssetByID.js +0 -0
  338. package/dist/esm/client/v2/indexer/lookupAssetByID.js.map +1 -0
  339. package/dist/esm/{src/client → client}/v2/indexer/lookupAssetTransactions.js +0 -0
  340. package/dist/esm/client/v2/indexer/lookupAssetTransactions.js.map +1 -0
  341. package/dist/esm/{src/client → client}/v2/indexer/lookupBlock.js +0 -0
  342. package/dist/esm/client/v2/indexer/lookupBlock.js.map +1 -0
  343. package/dist/esm/{src/client → client}/v2/indexer/lookupTransactionByID.js +0 -0
  344. package/dist/esm/client/v2/indexer/lookupTransactionByID.js.map +1 -0
  345. package/dist/esm/{src/client → client}/v2/indexer/makeHealthCheck.js +0 -0
  346. package/dist/esm/client/v2/indexer/makeHealthCheck.js.map +1 -0
  347. package/dist/esm/{src/client → client}/v2/indexer/models/types.js +0 -0
  348. package/dist/esm/client/v2/indexer/models/types.js.map +1 -0
  349. package/dist/esm/{src/client → client}/v2/indexer/searchAccounts.js +0 -0
  350. package/dist/esm/client/v2/indexer/searchAccounts.js.map +1 -0
  351. package/dist/esm/{src/client → client}/v2/indexer/searchForApplicationBoxes.js +0 -0
  352. package/dist/esm/client/v2/indexer/searchForApplicationBoxes.js.map +1 -0
  353. package/dist/esm/{src/client → client}/v2/indexer/searchForApplications.js +0 -0
  354. package/dist/esm/client/v2/indexer/searchForApplications.js.map +1 -0
  355. package/dist/esm/{src/client → client}/v2/indexer/searchForAssets.js +0 -0
  356. package/dist/esm/client/v2/indexer/searchForAssets.js.map +1 -0
  357. package/dist/esm/{src/client → client}/v2/indexer/searchForTransactions.js +0 -0
  358. package/dist/esm/client/v2/indexer/searchForTransactions.js.map +1 -0
  359. package/dist/esm/{src/client → client}/v2/jsonrequest.js +0 -0
  360. package/dist/esm/client/v2/jsonrequest.js.map +1 -0
  361. package/dist/esm/{src/client → client}/v2/serviceClient.js +0 -0
  362. package/dist/esm/client/v2/serviceClient.js.map +1 -0
  363. package/dist/esm/{src/composer.js → composer.js} +0 -0
  364. package/dist/esm/composer.js.map +1 -0
  365. package/dist/esm/{src/convert.js → convert.js} +0 -0
  366. package/dist/esm/convert.js.map +1 -0
  367. package/dist/esm/{src/dryrun.js → dryrun.js} +0 -0
  368. package/dist/esm/dryrun.js.map +1 -0
  369. package/dist/esm/{src/encoding → encoding}/address.js +0 -0
  370. package/dist/esm/encoding/address.js.map +1 -0
  371. package/dist/esm/{src/encoding → encoding}/bigint.js +0 -0
  372. package/dist/esm/encoding/bigint.js.map +1 -0
  373. package/dist/esm/{src/encoding → encoding}/encoding.js +0 -0
  374. package/dist/esm/encoding/encoding.js.map +1 -0
  375. package/dist/esm/{src/encoding → encoding}/uint64.js +0 -0
  376. package/dist/esm/encoding/uint64.js.map +1 -0
  377. package/dist/esm/{src/group.js → group.js} +0 -0
  378. package/dist/esm/group.js.map +1 -0
  379. package/dist/esm/index.js +2 -2
  380. package/dist/esm/index.js.map +1 -1
  381. package/dist/esm/{src/logic → logic}/langspec.json +0 -0
  382. package/dist/esm/{src/logic → logic}/logic.js +0 -0
  383. package/dist/esm/logic/logic.js.map +1 -0
  384. package/dist/esm/{src/logic → logic}/sourcemap.js +0 -0
  385. package/dist/esm/logic/sourcemap.js.map +1 -0
  386. package/dist/esm/{src/logicTemplates → logicTemplates}/dynamicfee.js +0 -0
  387. package/dist/esm/logicTemplates/dynamicfee.js.map +1 -0
  388. package/dist/esm/{src/logicTemplates → logicTemplates}/htlc.js +0 -0
  389. package/dist/esm/logicTemplates/htlc.js.map +1 -0
  390. package/dist/esm/{src/logicTemplates → logicTemplates}/index.js +0 -0
  391. package/dist/esm/logicTemplates/index.js.map +1 -0
  392. package/dist/esm/{src/logicTemplates → logicTemplates}/limitorder.js +0 -0
  393. package/dist/esm/logicTemplates/limitorder.js.map +1 -0
  394. package/dist/esm/{src/logicTemplates → logicTemplates}/periodicpayment.js +0 -0
  395. package/dist/esm/logicTemplates/periodicpayment.js.map +1 -0
  396. package/dist/esm/{src/logicTemplates → logicTemplates}/split.js +0 -0
  397. package/dist/esm/logicTemplates/split.js.map +1 -0
  398. package/dist/esm/{src/logicTemplates → logicTemplates}/templates.js +0 -0
  399. package/dist/esm/logicTemplates/templates.js.map +1 -0
  400. package/dist/esm/{src/logicsig.js → logicsig.js} +0 -0
  401. package/dist/esm/logicsig.js.map +1 -0
  402. package/dist/esm/{src/main.js → main.js} +0 -0
  403. package/dist/esm/main.js.map +1 -0
  404. package/dist/esm/{src/makeTxn.js → makeTxn.js} +0 -0
  405. package/dist/esm/makeTxn.js.map +1 -0
  406. package/dist/esm/{src/mnemonic → mnemonic}/mnemonic.js +0 -0
  407. package/dist/esm/mnemonic/mnemonic.js.map +1 -0
  408. package/dist/esm/{src/mnemonic → mnemonic}/wordlists/english.js +0 -0
  409. package/dist/esm/mnemonic/wordlists/english.js.map +1 -0
  410. package/dist/esm/multisig.js +364 -0
  411. package/dist/esm/multisig.js.map +1 -0
  412. package/dist/esm/{src/nacl → nacl}/naclWrappers.js +0 -0
  413. package/dist/esm/nacl/naclWrappers.js.map +1 -0
  414. package/dist/esm/{src/signer.js → signer.js} +0 -0
  415. package/dist/esm/signer.js.map +1 -0
  416. package/dist/esm/{src/transaction.js → transaction.js} +0 -0
  417. package/dist/esm/transaction.js.map +1 -0
  418. package/dist/esm/{src/types → types}/account.js +0 -0
  419. package/dist/esm/types/account.js.map +1 -0
  420. package/dist/esm/{src/types → types}/address.js +0 -0
  421. package/dist/esm/types/address.js.map +1 -0
  422. package/dist/esm/{src/types → types}/blockHeader.js +0 -0
  423. package/dist/esm/types/blockHeader.js.map +1 -0
  424. package/dist/esm/{src/types → types}/index.js +0 -0
  425. package/dist/esm/types/index.js.map +1 -0
  426. package/dist/esm/{src/types → types}/intDecoding.js +0 -0
  427. package/dist/esm/types/intDecoding.js.map +1 -0
  428. package/dist/esm/{src/types → types}/multisig.js +0 -0
  429. package/dist/esm/types/multisig.js.map +1 -0
  430. package/dist/esm/{src/types → types}/transactions/application.js +0 -0
  431. package/dist/esm/types/transactions/application.js.map +1 -0
  432. package/dist/esm/{src/types → types}/transactions/asset.js +0 -0
  433. package/dist/esm/types/transactions/asset.js.map +1 -0
  434. package/dist/esm/{src/types → types}/transactions/base.js +0 -0
  435. package/dist/esm/types/transactions/base.js.map +1 -0
  436. package/dist/esm/{src/types → types}/transactions/builder.js +0 -0
  437. package/dist/esm/types/transactions/builder.js.map +1 -0
  438. package/dist/esm/{src/types → types}/transactions/encoded.js +0 -0
  439. package/dist/esm/types/transactions/encoded.js.map +1 -0
  440. package/dist/esm/{src/types → types}/transactions/index.js +0 -0
  441. package/dist/esm/types/transactions/index.js.map +1 -0
  442. package/dist/esm/{src/types → types}/transactions/keyreg.js +0 -0
  443. package/dist/esm/types/transactions/keyreg.js.map +1 -0
  444. package/dist/esm/{src/types → types}/transactions/payment.js +0 -0
  445. package/dist/esm/types/transactions/payment.js.map +1 -0
  446. package/dist/esm/{src/types → types}/transactions/stateproof.js +0 -0
  447. package/dist/esm/types/transactions/stateproof.js.map +1 -0
  448. package/dist/esm/{src/types → types}/utils.js +0 -0
  449. package/dist/esm/types/utils.js.map +1 -0
  450. package/dist/esm/{src/utils → utils}/utils.js +0 -0
  451. package/dist/esm/utils/utils.js.map +1 -0
  452. package/dist/esm/{src/wait.js → wait.js} +0 -0
  453. package/dist/esm/wait.js.map +1 -0
  454. package/dist/types/{src/abi → abi}/abi_type.d.ts +0 -0
  455. package/dist/types/{src/abi → abi}/contract.d.ts +0 -0
  456. package/dist/types/{src/abi → abi}/index.d.ts +0 -0
  457. package/dist/types/{src/abi → abi}/interface.d.ts +0 -0
  458. package/dist/types/{src/abi → abi}/method.d.ts +0 -0
  459. package/dist/types/{src/abi → abi}/reference.d.ts +0 -0
  460. package/dist/types/{src/abi → abi}/transaction.d.ts +0 -0
  461. package/dist/types/{src/account.d.ts → account.d.ts} +0 -0
  462. package/dist/types/{src/bid.d.ts → bid.d.ts} +0 -0
  463. package/dist/types/{src/boxStorage.d.ts → boxStorage.d.ts} +0 -0
  464. package/dist/types/{src/client → client}/algod.d.ts +0 -0
  465. package/dist/types/{src/client → client}/baseHTTPClient.d.ts +0 -0
  466. package/dist/types/{src/client → client}/client.d.ts +0 -0
  467. package/dist/types/{src/client → client}/kmd.d.ts +0 -0
  468. package/dist/types/{src/client → client}/urlTokenBaseHTTPClient.d.ts +0 -0
  469. package/dist/types/{src/client → client}/v2/algod/accountApplicationInformation.d.ts +0 -0
  470. package/dist/types/{src/client → client}/v2/algod/accountAssetInformation.d.ts +0 -0
  471. package/dist/types/{src/client → client}/v2/algod/accountInformation.d.ts +0 -0
  472. package/dist/types/{src/client → client}/v2/algod/algod.d.ts +0 -0
  473. package/dist/types/{src/client → client}/v2/algod/block.d.ts +0 -0
  474. package/dist/types/{src/client → client}/v2/algod/compile.d.ts +0 -0
  475. package/dist/types/{src/client → client}/v2/algod/dryrun.d.ts +0 -0
  476. package/dist/types/{src/client → client}/v2/algod/genesis.d.ts +0 -0
  477. package/dist/types/{src/client → client}/v2/algod/getApplicationBoxByName.d.ts +0 -0
  478. package/dist/types/{src/client → client}/v2/algod/getApplicationBoxes.d.ts +0 -0
  479. package/dist/types/{src/client → client}/v2/algod/getApplicationByID.d.ts +0 -0
  480. package/dist/types/{src/client → client}/v2/algod/getAssetByID.d.ts +0 -0
  481. package/dist/types/{src/client → client}/v2/algod/getBlockHash.d.ts +0 -0
  482. package/dist/types/{src/client → client}/v2/algod/getTransactionProof.d.ts +0 -0
  483. package/dist/types/{src/client → client}/v2/algod/healthCheck.d.ts +0 -0
  484. package/dist/types/{src/client → client}/v2/algod/lightBlockHeaderProof.d.ts +0 -0
  485. package/dist/types/client/v2/algod/models/types.d.ts +1634 -0
  486. package/dist/types/{src/client → client}/v2/algod/pendingTransactionInformation.d.ts +0 -0
  487. package/dist/types/{src/client → client}/v2/algod/pendingTransactions.d.ts +0 -0
  488. package/dist/types/{src/client → client}/v2/algod/pendingTransactionsByAddress.d.ts +0 -0
  489. package/dist/types/{src/client → client}/v2/algod/sendRawTransaction.d.ts +0 -0
  490. package/dist/types/{src/client → client}/v2/algod/stateproof.d.ts +0 -0
  491. package/dist/types/{src/client → client}/v2/algod/status.d.ts +0 -0
  492. package/dist/types/{src/client → client}/v2/algod/statusAfterBlock.d.ts +0 -0
  493. package/dist/types/{src/client → client}/v2/algod/suggestedParams.d.ts +0 -0
  494. package/dist/types/{src/client → client}/v2/algod/supply.d.ts +0 -0
  495. package/dist/types/{src/client → client}/v2/algod/versions.d.ts +0 -0
  496. package/dist/types/{src/client → client}/v2/basemodel.d.ts +0 -0
  497. package/dist/types/{src/client → client}/v2/indexer/indexer.d.ts +0 -0
  498. package/dist/types/{src/client → client}/v2/indexer/lookupAccountAppLocalStates.d.ts +0 -0
  499. package/dist/types/{src/client → client}/v2/indexer/lookupAccountAssets.d.ts +0 -0
  500. package/dist/types/{src/client → client}/v2/indexer/lookupAccountByID.d.ts +0 -0
  501. package/dist/types/{src/client → client}/v2/indexer/lookupAccountCreatedApplications.d.ts +0 -0
  502. package/dist/types/{src/client → client}/v2/indexer/lookupAccountCreatedAssets.d.ts +0 -0
  503. package/dist/types/{src/client → client}/v2/indexer/lookupAccountTransactions.d.ts +0 -0
  504. package/dist/types/{src/client → client}/v2/indexer/lookupApplicationBoxByIDandName.d.ts +0 -0
  505. package/dist/types/{src/client → client}/v2/indexer/lookupApplicationLogs.d.ts +0 -0
  506. package/dist/types/{src/client → client}/v2/indexer/lookupApplications.d.ts +0 -0
  507. package/dist/types/{src/client → client}/v2/indexer/lookupAssetBalances.d.ts +0 -0
  508. package/dist/types/{src/client → client}/v2/indexer/lookupAssetByID.d.ts +0 -0
  509. package/dist/types/{src/client → client}/v2/indexer/lookupAssetTransactions.d.ts +0 -0
  510. package/dist/types/{src/client → client}/v2/indexer/lookupBlock.d.ts +0 -0
  511. package/dist/types/{src/client → client}/v2/indexer/lookupTransactionByID.d.ts +0 -0
  512. package/dist/types/{src/client → client}/v2/indexer/makeHealthCheck.d.ts +0 -0
  513. package/dist/types/{src/client → client}/v2/indexer/models/types.d.ts +0 -0
  514. package/dist/types/{src/client → client}/v2/indexer/searchAccounts.d.ts +0 -0
  515. package/dist/types/{src/client → client}/v2/indexer/searchForApplicationBoxes.d.ts +0 -0
  516. package/dist/types/{src/client → client}/v2/indexer/searchForApplications.d.ts +0 -0
  517. package/dist/types/{src/client → client}/v2/indexer/searchForAssets.d.ts +0 -0
  518. package/dist/types/{src/client → client}/v2/indexer/searchForTransactions.d.ts +0 -0
  519. package/dist/types/{src/client → client}/v2/jsonrequest.d.ts +0 -0
  520. package/dist/types/{src/client → client}/v2/serviceClient.d.ts +0 -0
  521. package/dist/types/{src/composer.d.ts → composer.d.ts} +0 -0
  522. package/dist/types/{src/convert.d.ts → convert.d.ts} +0 -0
  523. package/dist/types/{src/dryrun.d.ts → dryrun.d.ts} +0 -0
  524. package/dist/types/{src/encoding → encoding}/address.d.ts +0 -0
  525. package/dist/types/{src/encoding → encoding}/bigint.d.ts +0 -0
  526. package/dist/types/{src/encoding → encoding}/encoding.d.ts +0 -0
  527. package/dist/types/{src/encoding → encoding}/uint64.d.ts +0 -0
  528. package/dist/types/{src/group.d.ts → group.d.ts} +0 -0
  529. package/dist/types/index.d.ts +2 -2
  530. package/dist/types/{src/logic → logic}/logic.d.ts +0 -0
  531. package/dist/types/{src/logic → logic}/sourcemap.d.ts +0 -0
  532. package/dist/types/{src/logicTemplates → logicTemplates}/dynamicfee.d.ts +0 -0
  533. package/dist/types/{src/logicTemplates → logicTemplates}/htlc.d.ts +0 -0
  534. package/dist/types/{src/logicTemplates → logicTemplates}/index.d.ts +0 -0
  535. package/dist/types/{src/logicTemplates → logicTemplates}/limitorder.d.ts +0 -0
  536. package/dist/types/{src/logicTemplates → logicTemplates}/periodicpayment.d.ts +0 -0
  537. package/dist/types/{src/logicTemplates → logicTemplates}/split.d.ts +0 -0
  538. package/dist/types/{src/logicTemplates → logicTemplates}/templates.d.ts +0 -0
  539. package/dist/types/{src/logicsig.d.ts → logicsig.d.ts} +0 -0
  540. package/dist/types/{src/main.d.ts → main.d.ts} +0 -0
  541. package/dist/types/{src/makeTxn.d.ts → makeTxn.d.ts} +0 -0
  542. package/dist/types/{src/mnemonic → mnemonic}/mnemonic.d.ts +0 -0
  543. package/dist/types/{src/mnemonic → mnemonic}/wordlists/english.d.ts +0 -0
  544. package/dist/types/multisig.d.ts +125 -0
  545. package/dist/types/{src/nacl → nacl}/naclWrappers.d.ts +0 -0
  546. package/dist/types/{src/signer.d.ts → signer.d.ts} +0 -0
  547. package/dist/types/{src/transaction.d.ts → transaction.d.ts} +0 -0
  548. package/dist/types/{src/types → types}/account.d.ts +0 -0
  549. package/dist/types/{src/types → types}/address.d.ts +0 -0
  550. package/dist/types/{src/types → types}/blockHeader.d.ts +0 -0
  551. package/dist/types/{src/types → types}/index.d.ts +0 -0
  552. package/dist/types/{src/types → types}/intDecoding.d.ts +0 -0
  553. package/dist/types/{src/types → types}/multisig.d.ts +0 -0
  554. package/dist/types/{src/types → types}/transactions/application.d.ts +0 -0
  555. package/dist/types/{src/types → types}/transactions/asset.d.ts +0 -0
  556. package/dist/types/{src/types → types}/transactions/base.d.ts +0 -0
  557. package/dist/types/{src/types → types}/transactions/builder.d.ts +0 -0
  558. package/dist/types/{src/types → types}/transactions/encoded.d.ts +0 -0
  559. package/dist/types/{src/types → types}/transactions/index.d.ts +0 -0
  560. package/dist/types/{src/types → types}/transactions/keyreg.d.ts +0 -0
  561. package/dist/types/{src/types → types}/transactions/payment.d.ts +0 -0
  562. package/dist/types/{src/types → types}/transactions/stateproof.d.ts +0 -0
  563. package/dist/types/{src/types → types}/utils.d.ts +0 -0
  564. package/dist/types/{src/utils → utils}/utils.d.ts +0 -0
  565. package/dist/types/{src/wait.d.ts → wait.d.ts} +0 -0
  566. package/package.json +10 -6
  567. package/src/abi/abi_type.ts +846 -0
  568. package/src/abi/contract.ts +51 -0
  569. package/src/abi/index.ts +6 -0
  570. package/src/abi/interface.ts +35 -0
  571. package/src/abi/method.ts +186 -0
  572. package/src/abi/reference.ts +24 -0
  573. package/src/abi/transaction.ts +61 -0
  574. package/src/account.ts +12 -0
  575. package/src/bid.ts +95 -0
  576. package/src/boxStorage.ts +42 -0
  577. package/src/client/algod.js +365 -0
  578. package/src/client/baseHTTPClient.ts +58 -0
  579. package/src/client/client.ts +306 -0
  580. package/src/client/kmd.ts +423 -0
  581. package/src/client/urlTokenBaseHTTPClient.ts +217 -0
  582. package/src/client/v2/algod/accountApplicationInformation.ts +20 -0
  583. package/src/client/v2/algod/accountAssetInformation.ts +20 -0
  584. package/src/client/v2/algod/accountInformation.ts +37 -0
  585. package/src/client/v2/algod/algod.ts +561 -0
  586. package/src/client/v2/algod/block.ts +30 -0
  587. package/src/client/v2/algod/compile.ts +50 -0
  588. package/src/client/v2/algod/dryrun.ts +33 -0
  589. package/src/client/v2/algod/genesis.ts +8 -0
  590. package/src/client/v2/algod/getApplicationBoxByName.ts +49 -0
  591. package/src/client/v2/algod/getApplicationBoxes.ts +61 -0
  592. package/src/client/v2/algod/getApplicationByID.ts +14 -0
  593. package/src/client/v2/algod/getAssetByID.ts +14 -0
  594. package/src/client/v2/algod/getBlockHash.ts +18 -0
  595. package/src/client/v2/algod/getTransactionProof.ts +43 -0
  596. package/src/client/v2/algod/healthCheck.ts +19 -0
  597. package/src/client/v2/algod/lightBlockHeaderProof.ts +15 -0
  598. package/src/client/v2/algod/models/types.ts +3662 -0
  599. package/src/client/v2/algod/pendingTransactionInformation.ts +32 -0
  600. package/src/client/v2/algod/pendingTransactions.ts +32 -0
  601. package/src/client/v2/algod/pendingTransactionsByAddress.ts +32 -0
  602. package/src/client/v2/algod/sendRawTransaction.ts +59 -0
  603. package/src/client/v2/algod/stateproof.ts +15 -0
  604. package/src/client/v2/algod/status.ts +8 -0
  605. package/src/client/v2/algod/statusAfterBlock.ts +15 -0
  606. package/src/client/v2/algod/suggestedParams.ts +24 -0
  607. package/src/client/v2/algod/supply.ts +8 -0
  608. package/src/client/v2/algod/versions.ts +11 -0
  609. package/src/client/v2/basemodel.ts +79 -0
  610. package/src/client/v2/indexer/indexer.ts +432 -0
  611. package/src/client/v2/indexer/lookupAccountAppLocalStates.ts +140 -0
  612. package/src/client/v2/indexer/lookupAccountAssets.ts +141 -0
  613. package/src/client/v2/indexer/lookupAccountByID.ts +109 -0
  614. package/src/client/v2/indexer/lookupAccountCreatedApplications.ts +141 -0
  615. package/src/client/v2/indexer/lookupAccountCreatedAssets.ts +142 -0
  616. package/src/client/v2/indexer/lookupAccountTransactions.ts +393 -0
  617. package/src/client/v2/indexer/lookupApplicationBoxByIDandName.ts +50 -0
  618. package/src/client/v2/indexer/lookupApplicationLogs.ts +156 -0
  619. package/src/client/v2/indexer/lookupApplications.ts +59 -0
  620. package/src/client/v2/indexer/lookupAssetBalances.ts +146 -0
  621. package/src/client/v2/indexer/lookupAssetByID.ts +58 -0
  622. package/src/client/v2/indexer/lookupAssetTransactions.ts +406 -0
  623. package/src/client/v2/indexer/lookupBlock.ts +39 -0
  624. package/src/client/v2/indexer/lookupTransactionByID.ts +30 -0
  625. package/src/client/v2/indexer/makeHealthCheck.ts +23 -0
  626. package/src/client/v2/indexer/models/types.ts +5667 -0
  627. package/src/client/v2/indexer/searchAccounts.ts +268 -0
  628. package/src/client/v2/indexer/searchForApplicationBoxes.ts +101 -0
  629. package/src/client/v2/indexer/searchForApplications.ts +134 -0
  630. package/src/client/v2/indexer/searchForAssets.ts +175 -0
  631. package/src/client/v2/indexer/searchForTransactions.ts +435 -0
  632. package/src/client/v2/jsonrequest.ts +103 -0
  633. package/src/client/v2/serviceClient.ts +86 -0
  634. package/src/composer.ts +688 -0
  635. package/src/convert.ts +25 -0
  636. package/src/dryrun.ts +468 -0
  637. package/src/encoding/address.ts +191 -0
  638. package/src/encoding/bigint.ts +33 -0
  639. package/src/encoding/encoding.ts +56 -0
  640. package/src/encoding/uint64.ts +84 -0
  641. package/src/group.ts +97 -0
  642. package/src/index.ts +4 -0
  643. package/src/logic/langspec.json +2014 -0
  644. package/src/logic/logic.ts +316 -0
  645. package/src/logic/sourcemap.ts +67 -0
  646. package/src/logicTemplates/dynamicfee.js +219 -0
  647. package/src/logicTemplates/htlc.js +165 -0
  648. package/src/logicTemplates/index.js +20 -0
  649. package/src/logicTemplates/limitorder.js +227 -0
  650. package/src/logicTemplates/periodicpayment.js +208 -0
  651. package/src/logicTemplates/split.js +208 -0
  652. package/src/logicTemplates/templates.js +78 -0
  653. package/src/logicsig.ts +523 -0
  654. package/src/main.ts +185 -0
  655. package/src/makeTxn.ts +1871 -0
  656. package/src/mnemonic/mnemonic.ts +181 -0
  657. package/src/mnemonic/wordlists/english.ts +2052 -0
  658. package/src/multisig.ts +495 -0
  659. package/src/nacl/naclWrappers.ts +49 -0
  660. package/src/signer.ts +105 -0
  661. package/src/transaction.ts +1363 -0
  662. package/src/types/account.ts +16 -0
  663. package/src/types/address.ts +7 -0
  664. package/src/types/blockHeader.ts +81 -0
  665. package/src/types/index.ts +3 -0
  666. package/src/types/intDecoding.ts +29 -0
  667. package/src/types/multisig.ts +22 -0
  668. package/src/types/transactions/application.ts +111 -0
  669. package/src/types/transactions/asset.ts +108 -0
  670. package/src/types/transactions/base.ts +428 -0
  671. package/src/types/transactions/builder.ts +69 -0
  672. package/src/types/transactions/encoded.ts +423 -0
  673. package/src/types/transactions/index.ts +72 -0
  674. package/src/types/transactions/keyreg.ts +23 -0
  675. package/src/types/transactions/payment.ts +14 -0
  676. package/src/types/transactions/stateproof.ts +17 -0
  677. package/src/types/utils.ts +63 -0
  678. package/src/utils/utils.ts +121 -0
  679. package/src/wait.ts +58 -0
  680. package/dist/cjs/src/abi/abi_type.js +0 -693
  681. package/dist/cjs/src/abi/abi_type.js.map +0 -1
  682. package/dist/cjs/src/abi/contract.js.map +0 -1
  683. package/dist/cjs/src/abi/index.js.map +0 -1
  684. package/dist/cjs/src/abi/interface.js.map +0 -1
  685. package/dist/cjs/src/abi/method.js.map +0 -1
  686. package/dist/cjs/src/abi/reference.js.map +0 -1
  687. package/dist/cjs/src/abi/transaction.js.map +0 -1
  688. package/dist/cjs/src/account.js.map +0 -1
  689. package/dist/cjs/src/bid.js.map +0 -1
  690. package/dist/cjs/src/boxStorage.js.map +0 -1
  691. package/dist/cjs/src/client/algod.js.map +0 -1
  692. package/dist/cjs/src/client/baseHTTPClient.js.map +0 -1
  693. package/dist/cjs/src/client/client.js.map +0 -1
  694. package/dist/cjs/src/client/kmd.js.map +0 -1
  695. package/dist/cjs/src/client/urlTokenBaseHTTPClient.js.map +0 -1
  696. package/dist/cjs/src/client/v2/algod/accountApplicationInformation.js.map +0 -1
  697. package/dist/cjs/src/client/v2/algod/accountAssetInformation.js.map +0 -1
  698. package/dist/cjs/src/client/v2/algod/accountInformation.js.map +0 -1
  699. package/dist/cjs/src/client/v2/algod/algod.js.map +0 -1
  700. package/dist/cjs/src/client/v2/algod/block.js.map +0 -1
  701. package/dist/cjs/src/client/v2/algod/compile.js.map +0 -1
  702. package/dist/cjs/src/client/v2/algod/dryrun.js.map +0 -1
  703. package/dist/cjs/src/client/v2/algod/genesis.js.map +0 -1
  704. package/dist/cjs/src/client/v2/algod/getApplicationBoxByName.js.map +0 -1
  705. package/dist/cjs/src/client/v2/algod/getApplicationBoxes.js.map +0 -1
  706. package/dist/cjs/src/client/v2/algod/getApplicationByID.js.map +0 -1
  707. package/dist/cjs/src/client/v2/algod/getAssetByID.js.map +0 -1
  708. package/dist/cjs/src/client/v2/algod/getBlockHash.js.map +0 -1
  709. package/dist/cjs/src/client/v2/algod/getTransactionProof.js.map +0 -1
  710. package/dist/cjs/src/client/v2/algod/healthCheck.js.map +0 -1
  711. package/dist/cjs/src/client/v2/algod/lightBlockHeaderProof.js.map +0 -1
  712. package/dist/cjs/src/client/v2/algod/models/types.js +0 -2033
  713. package/dist/cjs/src/client/v2/algod/models/types.js.map +0 -1
  714. package/dist/cjs/src/client/v2/algod/pendingTransactionInformation.js.map +0 -1
  715. package/dist/cjs/src/client/v2/algod/pendingTransactions.js.map +0 -1
  716. package/dist/cjs/src/client/v2/algod/pendingTransactionsByAddress.js.map +0 -1
  717. package/dist/cjs/src/client/v2/algod/sendRawTransaction.js.map +0 -1
  718. package/dist/cjs/src/client/v2/algod/stateproof.js.map +0 -1
  719. package/dist/cjs/src/client/v2/algod/status.js.map +0 -1
  720. package/dist/cjs/src/client/v2/algod/statusAfterBlock.js.map +0 -1
  721. package/dist/cjs/src/client/v2/algod/suggestedParams.js.map +0 -1
  722. package/dist/cjs/src/client/v2/algod/supply.js.map +0 -1
  723. package/dist/cjs/src/client/v2/algod/versions.js.map +0 -1
  724. package/dist/cjs/src/client/v2/basemodel.js.map +0 -1
  725. package/dist/cjs/src/client/v2/indexer/indexer.js.map +0 -1
  726. package/dist/cjs/src/client/v2/indexer/lookupAccountAppLocalStates.js.map +0 -1
  727. package/dist/cjs/src/client/v2/indexer/lookupAccountAssets.js.map +0 -1
  728. package/dist/cjs/src/client/v2/indexer/lookupAccountByID.js.map +0 -1
  729. package/dist/cjs/src/client/v2/indexer/lookupAccountCreatedApplications.js.map +0 -1
  730. package/dist/cjs/src/client/v2/indexer/lookupAccountCreatedAssets.js.map +0 -1
  731. package/dist/cjs/src/client/v2/indexer/lookupAccountTransactions.js.map +0 -1
  732. package/dist/cjs/src/client/v2/indexer/lookupApplicationBoxByIDandName.js.map +0 -1
  733. package/dist/cjs/src/client/v2/indexer/lookupApplicationLogs.js.map +0 -1
  734. package/dist/cjs/src/client/v2/indexer/lookupApplications.js.map +0 -1
  735. package/dist/cjs/src/client/v2/indexer/lookupAssetBalances.js.map +0 -1
  736. package/dist/cjs/src/client/v2/indexer/lookupAssetByID.js.map +0 -1
  737. package/dist/cjs/src/client/v2/indexer/lookupAssetTransactions.js.map +0 -1
  738. package/dist/cjs/src/client/v2/indexer/lookupBlock.js.map +0 -1
  739. package/dist/cjs/src/client/v2/indexer/lookupTransactionByID.js.map +0 -1
  740. package/dist/cjs/src/client/v2/indexer/makeHealthCheck.js.map +0 -1
  741. package/dist/cjs/src/client/v2/indexer/models/types.js.map +0 -1
  742. package/dist/cjs/src/client/v2/indexer/searchAccounts.js.map +0 -1
  743. package/dist/cjs/src/client/v2/indexer/searchForApplicationBoxes.js.map +0 -1
  744. package/dist/cjs/src/client/v2/indexer/searchForApplications.js.map +0 -1
  745. package/dist/cjs/src/client/v2/indexer/searchForAssets.js.map +0 -1
  746. package/dist/cjs/src/client/v2/indexer/searchForTransactions.js.map +0 -1
  747. package/dist/cjs/src/client/v2/jsonrequest.js.map +0 -1
  748. package/dist/cjs/src/client/v2/serviceClient.js.map +0 -1
  749. package/dist/cjs/src/composer.js.map +0 -1
  750. package/dist/cjs/src/convert.js.map +0 -1
  751. package/dist/cjs/src/dryrun.js.map +0 -1
  752. package/dist/cjs/src/encoding/address.js.map +0 -1
  753. package/dist/cjs/src/encoding/bigint.js.map +0 -1
  754. package/dist/cjs/src/encoding/encoding.js.map +0 -1
  755. package/dist/cjs/src/encoding/uint64.js.map +0 -1
  756. package/dist/cjs/src/group.js.map +0 -1
  757. package/dist/cjs/src/logic/logic.js.map +0 -1
  758. package/dist/cjs/src/logic/sourcemap.js.map +0 -1
  759. package/dist/cjs/src/logicTemplates/dynamicfee.js.map +0 -1
  760. package/dist/cjs/src/logicTemplates/htlc.js.map +0 -1
  761. package/dist/cjs/src/logicTemplates/index.js.map +0 -1
  762. package/dist/cjs/src/logicTemplates/limitorder.js.map +0 -1
  763. package/dist/cjs/src/logicTemplates/periodicpayment.js.map +0 -1
  764. package/dist/cjs/src/logicTemplates/split.js.map +0 -1
  765. package/dist/cjs/src/logicTemplates/templates.js.map +0 -1
  766. package/dist/cjs/src/logicsig.js.map +0 -1
  767. package/dist/cjs/src/main.js.map +0 -1
  768. package/dist/cjs/src/makeTxn.js.map +0 -1
  769. package/dist/cjs/src/mnemonic/mnemonic.js.map +0 -1
  770. package/dist/cjs/src/mnemonic/wordlists/english.js.map +0 -1
  771. package/dist/cjs/src/multisig.js +0 -398
  772. package/dist/cjs/src/multisig.js.map +0 -1
  773. package/dist/cjs/src/nacl/naclWrappers.js.map +0 -1
  774. package/dist/cjs/src/signer.js.map +0 -1
  775. package/dist/cjs/src/transaction.js.map +0 -1
  776. package/dist/cjs/src/types/account.js.map +0 -1
  777. package/dist/cjs/src/types/address.js.map +0 -1
  778. package/dist/cjs/src/types/blockHeader.js.map +0 -1
  779. package/dist/cjs/src/types/index.js.map +0 -1
  780. package/dist/cjs/src/types/intDecoding.js.map +0 -1
  781. package/dist/cjs/src/types/multisig.js.map +0 -1
  782. package/dist/cjs/src/types/transactions/application.js.map +0 -1
  783. package/dist/cjs/src/types/transactions/asset.js.map +0 -1
  784. package/dist/cjs/src/types/transactions/base.js.map +0 -1
  785. package/dist/cjs/src/types/transactions/builder.js.map +0 -1
  786. package/dist/cjs/src/types/transactions/encoded.js.map +0 -1
  787. package/dist/cjs/src/types/transactions/index.js.map +0 -1
  788. package/dist/cjs/src/types/transactions/keyreg.js.map +0 -1
  789. package/dist/cjs/src/types/transactions/payment.js.map +0 -1
  790. package/dist/cjs/src/types/transactions/stateproof.js.map +0 -1
  791. package/dist/cjs/src/types/utils.js.map +0 -1
  792. package/dist/cjs/src/utils/utils.js.map +0 -1
  793. package/dist/cjs/src/wait.js.map +0 -1
  794. package/dist/esm/src/abi/abi_type.js +0 -680
  795. package/dist/esm/src/abi/abi_type.js.map +0 -1
  796. package/dist/esm/src/abi/contract.js.map +0 -1
  797. package/dist/esm/src/abi/index.js.map +0 -1
  798. package/dist/esm/src/abi/interface.js.map +0 -1
  799. package/dist/esm/src/abi/method.js.map +0 -1
  800. package/dist/esm/src/abi/reference.js.map +0 -1
  801. package/dist/esm/src/abi/transaction.js.map +0 -1
  802. package/dist/esm/src/account.js.map +0 -1
  803. package/dist/esm/src/bid.js.map +0 -1
  804. package/dist/esm/src/boxStorage.js.map +0 -1
  805. package/dist/esm/src/client/algod.js.map +0 -1
  806. package/dist/esm/src/client/baseHTTPClient.js.map +0 -1
  807. package/dist/esm/src/client/client.js.map +0 -1
  808. package/dist/esm/src/client/kmd.js.map +0 -1
  809. package/dist/esm/src/client/urlTokenBaseHTTPClient.js.map +0 -1
  810. package/dist/esm/src/client/v2/algod/accountApplicationInformation.js.map +0 -1
  811. package/dist/esm/src/client/v2/algod/accountAssetInformation.js.map +0 -1
  812. package/dist/esm/src/client/v2/algod/accountInformation.js.map +0 -1
  813. package/dist/esm/src/client/v2/algod/algod.js.map +0 -1
  814. package/dist/esm/src/client/v2/algod/block.js.map +0 -1
  815. package/dist/esm/src/client/v2/algod/compile.js.map +0 -1
  816. package/dist/esm/src/client/v2/algod/dryrun.js.map +0 -1
  817. package/dist/esm/src/client/v2/algod/genesis.js.map +0 -1
  818. package/dist/esm/src/client/v2/algod/getApplicationBoxByName.js.map +0 -1
  819. package/dist/esm/src/client/v2/algod/getApplicationBoxes.js.map +0 -1
  820. package/dist/esm/src/client/v2/algod/getApplicationByID.js.map +0 -1
  821. package/dist/esm/src/client/v2/algod/getAssetByID.js.map +0 -1
  822. package/dist/esm/src/client/v2/algod/getBlockHash.js.map +0 -1
  823. package/dist/esm/src/client/v2/algod/getTransactionProof.js.map +0 -1
  824. package/dist/esm/src/client/v2/algod/healthCheck.js.map +0 -1
  825. package/dist/esm/src/client/v2/algod/lightBlockHeaderProof.js.map +0 -1
  826. package/dist/esm/src/client/v2/algod/models/types.js +0 -1984
  827. package/dist/esm/src/client/v2/algod/models/types.js.map +0 -1
  828. package/dist/esm/src/client/v2/algod/pendingTransactionInformation.js.map +0 -1
  829. package/dist/esm/src/client/v2/algod/pendingTransactions.js.map +0 -1
  830. package/dist/esm/src/client/v2/algod/pendingTransactionsByAddress.js.map +0 -1
  831. package/dist/esm/src/client/v2/algod/sendRawTransaction.js.map +0 -1
  832. package/dist/esm/src/client/v2/algod/stateproof.js.map +0 -1
  833. package/dist/esm/src/client/v2/algod/status.js.map +0 -1
  834. package/dist/esm/src/client/v2/algod/statusAfterBlock.js.map +0 -1
  835. package/dist/esm/src/client/v2/algod/suggestedParams.js.map +0 -1
  836. package/dist/esm/src/client/v2/algod/supply.js.map +0 -1
  837. package/dist/esm/src/client/v2/algod/versions.js.map +0 -1
  838. package/dist/esm/src/client/v2/basemodel.js.map +0 -1
  839. package/dist/esm/src/client/v2/indexer/indexer.js.map +0 -1
  840. package/dist/esm/src/client/v2/indexer/lookupAccountAppLocalStates.js.map +0 -1
  841. package/dist/esm/src/client/v2/indexer/lookupAccountAssets.js.map +0 -1
  842. package/dist/esm/src/client/v2/indexer/lookupAccountByID.js.map +0 -1
  843. package/dist/esm/src/client/v2/indexer/lookupAccountCreatedApplications.js.map +0 -1
  844. package/dist/esm/src/client/v2/indexer/lookupAccountCreatedAssets.js.map +0 -1
  845. package/dist/esm/src/client/v2/indexer/lookupAccountTransactions.js.map +0 -1
  846. package/dist/esm/src/client/v2/indexer/lookupApplicationBoxByIDandName.js.map +0 -1
  847. package/dist/esm/src/client/v2/indexer/lookupApplicationLogs.js.map +0 -1
  848. package/dist/esm/src/client/v2/indexer/lookupApplications.js.map +0 -1
  849. package/dist/esm/src/client/v2/indexer/lookupAssetBalances.js.map +0 -1
  850. package/dist/esm/src/client/v2/indexer/lookupAssetByID.js.map +0 -1
  851. package/dist/esm/src/client/v2/indexer/lookupAssetTransactions.js.map +0 -1
  852. package/dist/esm/src/client/v2/indexer/lookupBlock.js.map +0 -1
  853. package/dist/esm/src/client/v2/indexer/lookupTransactionByID.js.map +0 -1
  854. package/dist/esm/src/client/v2/indexer/makeHealthCheck.js.map +0 -1
  855. package/dist/esm/src/client/v2/indexer/models/types.js.map +0 -1
  856. package/dist/esm/src/client/v2/indexer/searchAccounts.js.map +0 -1
  857. package/dist/esm/src/client/v2/indexer/searchForApplicationBoxes.js.map +0 -1
  858. package/dist/esm/src/client/v2/indexer/searchForApplications.js.map +0 -1
  859. package/dist/esm/src/client/v2/indexer/searchForAssets.js.map +0 -1
  860. package/dist/esm/src/client/v2/indexer/searchForTransactions.js.map +0 -1
  861. package/dist/esm/src/client/v2/jsonrequest.js.map +0 -1
  862. package/dist/esm/src/client/v2/serviceClient.js.map +0 -1
  863. package/dist/esm/src/composer.js.map +0 -1
  864. package/dist/esm/src/convert.js.map +0 -1
  865. package/dist/esm/src/dryrun.js.map +0 -1
  866. package/dist/esm/src/encoding/address.js.map +0 -1
  867. package/dist/esm/src/encoding/bigint.js.map +0 -1
  868. package/dist/esm/src/encoding/encoding.js.map +0 -1
  869. package/dist/esm/src/encoding/uint64.js.map +0 -1
  870. package/dist/esm/src/group.js.map +0 -1
  871. package/dist/esm/src/logic/logic.js.map +0 -1
  872. package/dist/esm/src/logic/sourcemap.js.map +0 -1
  873. package/dist/esm/src/logicTemplates/dynamicfee.js.map +0 -1
  874. package/dist/esm/src/logicTemplates/htlc.js.map +0 -1
  875. package/dist/esm/src/logicTemplates/index.js.map +0 -1
  876. package/dist/esm/src/logicTemplates/limitorder.js.map +0 -1
  877. package/dist/esm/src/logicTemplates/periodicpayment.js.map +0 -1
  878. package/dist/esm/src/logicTemplates/split.js.map +0 -1
  879. package/dist/esm/src/logicTemplates/templates.js.map +0 -1
  880. package/dist/esm/src/logicsig.js.map +0 -1
  881. package/dist/esm/src/main.js.map +0 -1
  882. package/dist/esm/src/makeTxn.js.map +0 -1
  883. package/dist/esm/src/mnemonic/mnemonic.js.map +0 -1
  884. package/dist/esm/src/mnemonic/wordlists/english.js.map +0 -1
  885. package/dist/esm/src/multisig.js +0 -364
  886. package/dist/esm/src/multisig.js.map +0 -1
  887. package/dist/esm/src/nacl/naclWrappers.js.map +0 -1
  888. package/dist/esm/src/signer.js.map +0 -1
  889. package/dist/esm/src/transaction.js.map +0 -1
  890. package/dist/esm/src/types/account.js.map +0 -1
  891. package/dist/esm/src/types/address.js.map +0 -1
  892. package/dist/esm/src/types/blockHeader.js.map +0 -1
  893. package/dist/esm/src/types/index.js.map +0 -1
  894. package/dist/esm/src/types/intDecoding.js.map +0 -1
  895. package/dist/esm/src/types/multisig.js.map +0 -1
  896. package/dist/esm/src/types/transactions/application.js.map +0 -1
  897. package/dist/esm/src/types/transactions/asset.js.map +0 -1
  898. package/dist/esm/src/types/transactions/base.js.map +0 -1
  899. package/dist/esm/src/types/transactions/builder.js.map +0 -1
  900. package/dist/esm/src/types/transactions/encoded.js.map +0 -1
  901. package/dist/esm/src/types/transactions/index.js.map +0 -1
  902. package/dist/esm/src/types/transactions/keyreg.js.map +0 -1
  903. package/dist/esm/src/types/transactions/payment.js.map +0 -1
  904. package/dist/esm/src/types/transactions/stateproof.js.map +0 -1
  905. package/dist/esm/src/types/utils.js.map +0 -1
  906. package/dist/esm/src/utils/utils.js.map +0 -1
  907. package/dist/esm/src/wait.js.map +0 -1
  908. package/dist/types/src/client/v2/algod/models/types.d.ts +0 -1612
  909. package/dist/types/src/multisig.d.ts +0 -125
@@ -1,2033 +0,0 @@
1
- "use strict";
2
- /**
3
- * NOTICE: This file was generated. Editing this file manually is not recommended.
4
- */
5
- var __importDefault = (this && this.__importDefault) || function (mod) {
6
- return (mod && mod.__esModule) ? mod : { "default": mod };
7
- };
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.Version = exports.TransactionProofResponse = exports.TransactionParametersResponse = exports.TealValue = exports.TealKeyValue = exports.SupplyResponse = exports.StateProofMessage = exports.StateProof = exports.PostTransactionsResponse = exports.PendingTransactionsResponse = exports.PendingTransactionResponse = exports.NodeStatusResponse = exports.LightBlockHeaderProof = exports.EvalDeltaKeyValue = exports.EvalDelta = exports.ErrorResponse = exports.DryrunTxnResult = exports.DryrunState = exports.DryrunSource = exports.DryrunResponse = exports.DryrunRequest = exports.DisassembleResponse = exports.CompileResponse = exports.CatchpointStartResponse = exports.CatchpointAbortResponse = exports.BuildVersion = exports.BoxesResponse = exports.BoxDescriptor = exports.Box = exports.BlockResponse = exports.BlockHashResponse = exports.AssetParams = exports.AssetHolding = exports.Asset = exports.ApplicationStateSchema = exports.ApplicationParams = exports.ApplicationLocalState = exports.Application = exports.AccountStateDelta = exports.AccountParticipation = exports.AccountAssetResponse = exports.AccountApplicationResponse = exports.Account = void 0;
10
- /* eslint-disable no-use-before-define */
11
- const basemodel_1 = __importDefault(require("../../basemodel"));
12
- /**
13
- * Account information at a given round.
14
- * Definition:
15
- * data/basics/userBalance.go : AccountData
16
- */
17
- class Account extends basemodel_1.default {
18
- /**
19
- * Creates a new `Account` object.
20
- * @param address - the account public key
21
- * @param amount - (algo) total number of MicroAlgos in the account
22
- * @param amountWithoutPendingRewards - specifies the amount of MicroAlgos in the account, without the pending rewards.
23
- * @param minBalance - MicroAlgo balance required by the account.
24
- * The requirement grows based on asset and application usage.
25
- * @param pendingRewards - amount of MicroAlgos of pending rewards in this account.
26
- * @param rewards - (ern) total rewards of MicroAlgos the account has received, including pending
27
- * rewards.
28
- * @param round - The round for which this information is relevant.
29
- * @param status - (onl) delegation status of the account's MicroAlgos
30
- * * Offline - indicates that the associated account is delegated.
31
- * * Online - indicates that the associated account used as part of the delegation
32
- * pool.
33
- * * NotParticipating - indicates that the associated account is neither a
34
- * delegator nor a delegate.
35
- * @param totalAppsOptedIn - The count of all applications that have been opted in, equivalent to the count
36
- * of application local data (AppLocalState objects) stored in this account.
37
- * @param totalAssetsOptedIn - The count of all assets that have been opted in, equivalent to the count of
38
- * AssetHolding objects held by this account.
39
- * @param totalCreatedApps - The count of all apps (AppParams objects) created by this account.
40
- * @param totalCreatedAssets - The count of all assets (AssetParams objects) created by this account.
41
- * @param appsLocalState - (appl) applications local data stored in this account.
42
- * Note the raw object uses `map[int] -> AppLocalState` for this type.
43
- * @param appsTotalExtraPages - (teap) the sum of all extra application program pages for this account.
44
- * @param appsTotalSchema - (tsch) stores the sum of all of the local schemas and global schemas in this
45
- * account.
46
- * Note: the raw account uses `StateSchema` for this type.
47
- * @param assets - (asset) assets held by this account.
48
- * Note the raw object uses `map[int] -> AssetHolding` for this type.
49
- * @param authAddr - (spend) the address against which signing should be checked. If empty, the
50
- * address of the current account is used. This field can be updated in any
51
- * transaction by setting the RekeyTo field.
52
- * @param createdApps - (appp) parameters of applications created by this account including app global
53
- * data.
54
- * Note: the raw account uses `map[int] -> AppParams` for this type.
55
- * @param createdAssets - (apar) parameters of assets created by this account.
56
- * Note: the raw account uses `map[int] -> Asset` for this type.
57
- * @param participation - AccountParticipation describes the parameters used by this account in consensus
58
- * protocol.
59
- * @param rewardBase - (ebase) used as part of the rewards computation. Only applicable to accounts
60
- * which are participating.
61
- * @param sigType - Indicates what type of signature is used by this account, must be one of:
62
- * * sig
63
- * * msig
64
- * * lsig
65
- * @param totalBoxBytes - (tbxb) The total number of bytes used by this account's app's box keys and
66
- * values.
67
- * @param totalBoxes - (tbx) The number of existing boxes created by this account's app.
68
- */
69
- constructor({ address, amount, amountWithoutPendingRewards, minBalance, pendingRewards, rewards, round, status, totalAppsOptedIn, totalAssetsOptedIn, totalCreatedApps, totalCreatedAssets, appsLocalState, appsTotalExtraPages, appsTotalSchema, assets, authAddr, createdApps, createdAssets, participation, rewardBase, sigType, totalBoxBytes, totalBoxes, }) {
70
- super();
71
- this.address = address;
72
- this.amount = amount;
73
- this.amountWithoutPendingRewards = amountWithoutPendingRewards;
74
- this.minBalance = minBalance;
75
- this.pendingRewards = pendingRewards;
76
- this.rewards = rewards;
77
- this.round = round;
78
- this.status = status;
79
- this.totalAppsOptedIn = totalAppsOptedIn;
80
- this.totalAssetsOptedIn = totalAssetsOptedIn;
81
- this.totalCreatedApps = totalCreatedApps;
82
- this.totalCreatedAssets = totalCreatedAssets;
83
- this.appsLocalState = appsLocalState;
84
- this.appsTotalExtraPages = appsTotalExtraPages;
85
- this.appsTotalSchema = appsTotalSchema;
86
- this.assets = assets;
87
- this.authAddr = authAddr;
88
- this.createdApps = createdApps;
89
- this.createdAssets = createdAssets;
90
- this.participation = participation;
91
- this.rewardBase = rewardBase;
92
- this.sigType = sigType;
93
- this.totalBoxBytes = totalBoxBytes;
94
- this.totalBoxes = totalBoxes;
95
- this.attribute_map = {
96
- address: 'address',
97
- amount: 'amount',
98
- amountWithoutPendingRewards: 'amount-without-pending-rewards',
99
- minBalance: 'min-balance',
100
- pendingRewards: 'pending-rewards',
101
- rewards: 'rewards',
102
- round: 'round',
103
- status: 'status',
104
- totalAppsOptedIn: 'total-apps-opted-in',
105
- totalAssetsOptedIn: 'total-assets-opted-in',
106
- totalCreatedApps: 'total-created-apps',
107
- totalCreatedAssets: 'total-created-assets',
108
- appsLocalState: 'apps-local-state',
109
- appsTotalExtraPages: 'apps-total-extra-pages',
110
- appsTotalSchema: 'apps-total-schema',
111
- assets: 'assets',
112
- authAddr: 'auth-addr',
113
- createdApps: 'created-apps',
114
- createdAssets: 'created-assets',
115
- participation: 'participation',
116
- rewardBase: 'reward-base',
117
- sigType: 'sig-type',
118
- totalBoxBytes: 'total-box-bytes',
119
- totalBoxes: 'total-boxes',
120
- };
121
- }
122
- // eslint-disable-next-line camelcase
123
- static from_obj_for_encoding(data) {
124
- /* eslint-disable dot-notation */
125
- if (typeof data['address'] === 'undefined')
126
- throw new Error(`Response is missing required field 'address': ${data}`);
127
- if (typeof data['amount'] === 'undefined')
128
- throw new Error(`Response is missing required field 'amount': ${data}`);
129
- if (typeof data['amount-without-pending-rewards'] === 'undefined')
130
- throw new Error(`Response is missing required field 'amount-without-pending-rewards': ${data}`);
131
- if (typeof data['min-balance'] === 'undefined')
132
- throw new Error(`Response is missing required field 'min-balance': ${data}`);
133
- if (typeof data['pending-rewards'] === 'undefined')
134
- throw new Error(`Response is missing required field 'pending-rewards': ${data}`);
135
- if (typeof data['rewards'] === 'undefined')
136
- throw new Error(`Response is missing required field 'rewards': ${data}`);
137
- if (typeof data['round'] === 'undefined')
138
- throw new Error(`Response is missing required field 'round': ${data}`);
139
- if (typeof data['status'] === 'undefined')
140
- throw new Error(`Response is missing required field 'status': ${data}`);
141
- if (typeof data['total-apps-opted-in'] === 'undefined')
142
- throw new Error(`Response is missing required field 'total-apps-opted-in': ${data}`);
143
- if (typeof data['total-assets-opted-in'] === 'undefined')
144
- throw new Error(`Response is missing required field 'total-assets-opted-in': ${data}`);
145
- if (typeof data['total-created-apps'] === 'undefined')
146
- throw new Error(`Response is missing required field 'total-created-apps': ${data}`);
147
- if (typeof data['total-created-assets'] === 'undefined')
148
- throw new Error(`Response is missing required field 'total-created-assets': ${data}`);
149
- return new Account({
150
- address: data['address'],
151
- amount: data['amount'],
152
- amountWithoutPendingRewards: data['amount-without-pending-rewards'],
153
- minBalance: data['min-balance'],
154
- pendingRewards: data['pending-rewards'],
155
- rewards: data['rewards'],
156
- round: data['round'],
157
- status: data['status'],
158
- totalAppsOptedIn: data['total-apps-opted-in'],
159
- totalAssetsOptedIn: data['total-assets-opted-in'],
160
- totalCreatedApps: data['total-created-apps'],
161
- totalCreatedAssets: data['total-created-assets'],
162
- appsLocalState: typeof data['apps-local-state'] !== 'undefined'
163
- ? data['apps-local-state'].map(ApplicationLocalState.from_obj_for_encoding)
164
- : undefined,
165
- appsTotalExtraPages: data['apps-total-extra-pages'],
166
- appsTotalSchema: typeof data['apps-total-schema'] !== 'undefined'
167
- ? ApplicationStateSchema.from_obj_for_encoding(data['apps-total-schema'])
168
- : undefined,
169
- assets: typeof data['assets'] !== 'undefined'
170
- ? data['assets'].map(AssetHolding.from_obj_for_encoding)
171
- : undefined,
172
- authAddr: data['auth-addr'],
173
- createdApps: typeof data['created-apps'] !== 'undefined'
174
- ? data['created-apps'].map(Application.from_obj_for_encoding)
175
- : undefined,
176
- createdAssets: typeof data['created-assets'] !== 'undefined'
177
- ? data['created-assets'].map(Asset.from_obj_for_encoding)
178
- : undefined,
179
- participation: typeof data['participation'] !== 'undefined'
180
- ? AccountParticipation.from_obj_for_encoding(data['participation'])
181
- : undefined,
182
- rewardBase: data['reward-base'],
183
- sigType: data['sig-type'],
184
- totalBoxBytes: data['total-box-bytes'],
185
- totalBoxes: data['total-boxes'],
186
- });
187
- /* eslint-enable dot-notation */
188
- }
189
- }
190
- exports.Account = Account;
191
- /**
192
- * AccountApplicationResponse describes the account's application local state and
193
- * global state (AppLocalState and AppParams, if either exists) for a specific
194
- * application ID. Global state will only be returned if the provided address is
195
- * the application's creator.
196
- */
197
- class AccountApplicationResponse extends basemodel_1.default {
198
- /**
199
- * Creates a new `AccountApplicationResponse` object.
200
- * @param round - The round for which this information is relevant.
201
- * @param appLocalState - (appl) the application local data stored in this account.
202
- * The raw account uses `AppLocalState` for this type.
203
- * @param createdApp - (appp) parameters of the application created by this account including app
204
- * global data.
205
- * The raw account uses `AppParams` for this type.
206
- */
207
- constructor(round, appLocalState, createdApp) {
208
- super();
209
- this.round = round;
210
- this.appLocalState = appLocalState;
211
- this.createdApp = createdApp;
212
- this.attribute_map = {
213
- round: 'round',
214
- appLocalState: 'app-local-state',
215
- createdApp: 'created-app',
216
- };
217
- }
218
- // eslint-disable-next-line camelcase
219
- static from_obj_for_encoding(data) {
220
- /* eslint-disable dot-notation */
221
- if (typeof data['round'] === 'undefined')
222
- throw new Error(`Response is missing required field 'round': ${data}`);
223
- return new AccountApplicationResponse(data['round'], typeof data['app-local-state'] !== 'undefined'
224
- ? ApplicationLocalState.from_obj_for_encoding(data['app-local-state'])
225
- : undefined, typeof data['created-app'] !== 'undefined'
226
- ? ApplicationParams.from_obj_for_encoding(data['created-app'])
227
- : undefined);
228
- /* eslint-enable dot-notation */
229
- }
230
- }
231
- exports.AccountApplicationResponse = AccountApplicationResponse;
232
- /**
233
- * AccountAssetResponse describes the account's asset holding and asset parameters
234
- * (if either exist) for a specific asset ID. Asset parameters will only be
235
- * returned if the provided address is the asset's creator.
236
- */
237
- class AccountAssetResponse extends basemodel_1.default {
238
- /**
239
- * Creates a new `AccountAssetResponse` object.
240
- * @param round - The round for which this information is relevant.
241
- * @param assetHolding - (asset) Details about the asset held by this account.
242
- * The raw account uses `AssetHolding` for this type.
243
- * @param createdAsset - (apar) parameters of the asset created by this account.
244
- * The raw account uses `AssetParams` for this type.
245
- */
246
- constructor(round, assetHolding, createdAsset) {
247
- super();
248
- this.round = round;
249
- this.assetHolding = assetHolding;
250
- this.createdAsset = createdAsset;
251
- this.attribute_map = {
252
- round: 'round',
253
- assetHolding: 'asset-holding',
254
- createdAsset: 'created-asset',
255
- };
256
- }
257
- // eslint-disable-next-line camelcase
258
- static from_obj_for_encoding(data) {
259
- /* eslint-disable dot-notation */
260
- if (typeof data['round'] === 'undefined')
261
- throw new Error(`Response is missing required field 'round': ${data}`);
262
- return new AccountAssetResponse(data['round'], typeof data['asset-holding'] !== 'undefined'
263
- ? AssetHolding.from_obj_for_encoding(data['asset-holding'])
264
- : undefined, typeof data['created-asset'] !== 'undefined'
265
- ? AssetParams.from_obj_for_encoding(data['created-asset'])
266
- : undefined);
267
- /* eslint-enable dot-notation */
268
- }
269
- }
270
- exports.AccountAssetResponse = AccountAssetResponse;
271
- /**
272
- * AccountParticipation describes the parameters used by this account in consensus
273
- * protocol.
274
- */
275
- class AccountParticipation extends basemodel_1.default {
276
- /**
277
- * Creates a new `AccountParticipation` object.
278
- * @param selectionParticipationKey - (sel) Selection public key (if any) currently registered for this round.
279
- * @param voteFirstValid - (voteFst) First round for which this participation is valid.
280
- * @param voteKeyDilution - (voteKD) Number of subkeys in each batch of participation keys.
281
- * @param voteLastValid - (voteLst) Last round for which this participation is valid.
282
- * @param voteParticipationKey - (vote) root participation public key (if any) currently registered for this
283
- * round.
284
- * @param stateProofKey - (stprf) Root of the state proof key (if any)
285
- */
286
- constructor({ selectionParticipationKey, voteFirstValid, voteKeyDilution, voteLastValid, voteParticipationKey, stateProofKey, }) {
287
- super();
288
- this.selectionParticipationKey =
289
- typeof selectionParticipationKey === 'string'
290
- ? new Uint8Array(Buffer.from(selectionParticipationKey, 'base64'))
291
- : selectionParticipationKey;
292
- this.voteFirstValid = voteFirstValid;
293
- this.voteKeyDilution = voteKeyDilution;
294
- this.voteLastValid = voteLastValid;
295
- this.voteParticipationKey =
296
- typeof voteParticipationKey === 'string'
297
- ? new Uint8Array(Buffer.from(voteParticipationKey, 'base64'))
298
- : voteParticipationKey;
299
- this.stateProofKey =
300
- typeof stateProofKey === 'string'
301
- ? new Uint8Array(Buffer.from(stateProofKey, 'base64'))
302
- : stateProofKey;
303
- this.attribute_map = {
304
- selectionParticipationKey: 'selection-participation-key',
305
- voteFirstValid: 'vote-first-valid',
306
- voteKeyDilution: 'vote-key-dilution',
307
- voteLastValid: 'vote-last-valid',
308
- voteParticipationKey: 'vote-participation-key',
309
- stateProofKey: 'state-proof-key',
310
- };
311
- }
312
- // eslint-disable-next-line camelcase
313
- static from_obj_for_encoding(data) {
314
- /* eslint-disable dot-notation */
315
- if (typeof data['selection-participation-key'] === 'undefined')
316
- throw new Error(`Response is missing required field 'selection-participation-key': ${data}`);
317
- if (typeof data['vote-first-valid'] === 'undefined')
318
- throw new Error(`Response is missing required field 'vote-first-valid': ${data}`);
319
- if (typeof data['vote-key-dilution'] === 'undefined')
320
- throw new Error(`Response is missing required field 'vote-key-dilution': ${data}`);
321
- if (typeof data['vote-last-valid'] === 'undefined')
322
- throw new Error(`Response is missing required field 'vote-last-valid': ${data}`);
323
- if (typeof data['vote-participation-key'] === 'undefined')
324
- throw new Error(`Response is missing required field 'vote-participation-key': ${data}`);
325
- return new AccountParticipation({
326
- selectionParticipationKey: data['selection-participation-key'],
327
- voteFirstValid: data['vote-first-valid'],
328
- voteKeyDilution: data['vote-key-dilution'],
329
- voteLastValid: data['vote-last-valid'],
330
- voteParticipationKey: data['vote-participation-key'],
331
- stateProofKey: data['state-proof-key'],
332
- });
333
- /* eslint-enable dot-notation */
334
- }
335
- }
336
- exports.AccountParticipation = AccountParticipation;
337
- /**
338
- * Application state delta.
339
- */
340
- class AccountStateDelta extends basemodel_1.default {
341
- /**
342
- * Creates a new `AccountStateDelta` object.
343
- * @param address -
344
- * @param delta - Application state delta.
345
- */
346
- constructor(address, delta) {
347
- super();
348
- this.address = address;
349
- this.delta = delta;
350
- this.attribute_map = {
351
- address: 'address',
352
- delta: 'delta',
353
- };
354
- }
355
- // eslint-disable-next-line camelcase
356
- static from_obj_for_encoding(data) {
357
- /* eslint-disable dot-notation */
358
- if (typeof data['address'] === 'undefined')
359
- throw new Error(`Response is missing required field 'address': ${data}`);
360
- if (!Array.isArray(data['delta']))
361
- throw new Error(`Response is missing required array field 'delta': ${data}`);
362
- return new AccountStateDelta(data['address'], data['delta'].map(EvalDeltaKeyValue.from_obj_for_encoding));
363
- /* eslint-enable dot-notation */
364
- }
365
- }
366
- exports.AccountStateDelta = AccountStateDelta;
367
- /**
368
- * Application index and its parameters
369
- */
370
- class Application extends basemodel_1.default {
371
- /**
372
- * Creates a new `Application` object.
373
- * @param id - (appidx) application index.
374
- * @param params - (appparams) application parameters.
375
- */
376
- constructor(id, params) {
377
- super();
378
- this.id = id;
379
- this.params = params;
380
- this.attribute_map = {
381
- id: 'id',
382
- params: 'params',
383
- };
384
- }
385
- // eslint-disable-next-line camelcase
386
- static from_obj_for_encoding(data) {
387
- /* eslint-disable dot-notation */
388
- if (typeof data['id'] === 'undefined')
389
- throw new Error(`Response is missing required field 'id': ${data}`);
390
- if (typeof data['params'] === 'undefined')
391
- throw new Error(`Response is missing required field 'params': ${data}`);
392
- return new Application(data['id'], ApplicationParams.from_obj_for_encoding(data['params']));
393
- /* eslint-enable dot-notation */
394
- }
395
- }
396
- exports.Application = Application;
397
- /**
398
- * Stores local state associated with an application.
399
- */
400
- class ApplicationLocalState extends basemodel_1.default {
401
- /**
402
- * Creates a new `ApplicationLocalState` object.
403
- * @param id - The application which this local state is for.
404
- * @param schema - (hsch) schema.
405
- * @param keyValue - (tkv) storage.
406
- */
407
- constructor(id, schema, keyValue) {
408
- super();
409
- this.id = id;
410
- this.schema = schema;
411
- this.keyValue = keyValue;
412
- this.attribute_map = {
413
- id: 'id',
414
- schema: 'schema',
415
- keyValue: 'key-value',
416
- };
417
- }
418
- // eslint-disable-next-line camelcase
419
- static from_obj_for_encoding(data) {
420
- /* eslint-disable dot-notation */
421
- if (typeof data['id'] === 'undefined')
422
- throw new Error(`Response is missing required field 'id': ${data}`);
423
- if (typeof data['schema'] === 'undefined')
424
- throw new Error(`Response is missing required field 'schema': ${data}`);
425
- return new ApplicationLocalState(data['id'], ApplicationStateSchema.from_obj_for_encoding(data['schema']), typeof data['key-value'] !== 'undefined'
426
- ? data['key-value'].map(TealKeyValue.from_obj_for_encoding)
427
- : undefined);
428
- /* eslint-enable dot-notation */
429
- }
430
- }
431
- exports.ApplicationLocalState = ApplicationLocalState;
432
- /**
433
- * Stores the global information associated with an application.
434
- */
435
- class ApplicationParams extends basemodel_1.default {
436
- /**
437
- * Creates a new `ApplicationParams` object.
438
- * @param approvalProgram - (approv) approval program.
439
- * @param clearStateProgram - (clearp) approval program.
440
- * @param creator - The address that created this application. This is the address where the
441
- * parameters and global state for this application can be found.
442
- * @param extraProgramPages - (epp) the amount of extra program pages available to this app.
443
- * @param globalState - [\gs) global schema
444
- * @param globalStateSchema - [\gsch) global schema
445
- * @param localStateSchema - [\lsch) local schema
446
- */
447
- constructor({ approvalProgram, clearStateProgram, creator, extraProgramPages, globalState, globalStateSchema, localStateSchema, }) {
448
- super();
449
- this.approvalProgram =
450
- typeof approvalProgram === 'string'
451
- ? new Uint8Array(Buffer.from(approvalProgram, 'base64'))
452
- : approvalProgram;
453
- this.clearStateProgram =
454
- typeof clearStateProgram === 'string'
455
- ? new Uint8Array(Buffer.from(clearStateProgram, 'base64'))
456
- : clearStateProgram;
457
- this.creator = creator;
458
- this.extraProgramPages = extraProgramPages;
459
- this.globalState = globalState;
460
- this.globalStateSchema = globalStateSchema;
461
- this.localStateSchema = localStateSchema;
462
- this.attribute_map = {
463
- approvalProgram: 'approval-program',
464
- clearStateProgram: 'clear-state-program',
465
- creator: 'creator',
466
- extraProgramPages: 'extra-program-pages',
467
- globalState: 'global-state',
468
- globalStateSchema: 'global-state-schema',
469
- localStateSchema: 'local-state-schema',
470
- };
471
- }
472
- // eslint-disable-next-line camelcase
473
- static from_obj_for_encoding(data) {
474
- /* eslint-disable dot-notation */
475
- if (typeof data['approval-program'] === 'undefined')
476
- throw new Error(`Response is missing required field 'approval-program': ${data}`);
477
- if (typeof data['clear-state-program'] === 'undefined')
478
- throw new Error(`Response is missing required field 'clear-state-program': ${data}`);
479
- if (typeof data['creator'] === 'undefined')
480
- throw new Error(`Response is missing required field 'creator': ${data}`);
481
- return new ApplicationParams({
482
- approvalProgram: data['approval-program'],
483
- clearStateProgram: data['clear-state-program'],
484
- creator: data['creator'],
485
- extraProgramPages: data['extra-program-pages'],
486
- globalState: typeof data['global-state'] !== 'undefined'
487
- ? data['global-state'].map(TealKeyValue.from_obj_for_encoding)
488
- : undefined,
489
- globalStateSchema: typeof data['global-state-schema'] !== 'undefined'
490
- ? ApplicationStateSchema.from_obj_for_encoding(data['global-state-schema'])
491
- : undefined,
492
- localStateSchema: typeof data['local-state-schema'] !== 'undefined'
493
- ? ApplicationStateSchema.from_obj_for_encoding(data['local-state-schema'])
494
- : undefined,
495
- });
496
- /* eslint-enable dot-notation */
497
- }
498
- }
499
- exports.ApplicationParams = ApplicationParams;
500
- /**
501
- * Specifies maximums on the number of each type that may be stored.
502
- */
503
- class ApplicationStateSchema extends basemodel_1.default {
504
- /**
505
- * Creates a new `ApplicationStateSchema` object.
506
- * @param numUint - (nui) num of uints.
507
- * @param numByteSlice - (nbs) num of byte slices.
508
- */
509
- constructor(numUint, numByteSlice) {
510
- super();
511
- this.numUint = numUint;
512
- this.numByteSlice = numByteSlice;
513
- this.attribute_map = {
514
- numUint: 'num-uint',
515
- numByteSlice: 'num-byte-slice',
516
- };
517
- }
518
- // eslint-disable-next-line camelcase
519
- static from_obj_for_encoding(data) {
520
- /* eslint-disable dot-notation */
521
- if (typeof data['num-uint'] === 'undefined')
522
- throw new Error(`Response is missing required field 'num-uint': ${data}`);
523
- if (typeof data['num-byte-slice'] === 'undefined')
524
- throw new Error(`Response is missing required field 'num-byte-slice': ${data}`);
525
- return new ApplicationStateSchema(data['num-uint'], data['num-byte-slice']);
526
- /* eslint-enable dot-notation */
527
- }
528
- }
529
- exports.ApplicationStateSchema = ApplicationStateSchema;
530
- /**
531
- * Specifies both the unique identifier and the parameters for an asset
532
- */
533
- class Asset extends basemodel_1.default {
534
- /**
535
- * Creates a new `Asset` object.
536
- * @param index - unique asset identifier
537
- * @param params - AssetParams specifies the parameters for an asset.
538
- * (apar) when part of an AssetConfig transaction.
539
- * Definition:
540
- * data/transactions/asset.go : AssetParams
541
- */
542
- constructor(index, params) {
543
- super();
544
- this.index = index;
545
- this.params = params;
546
- this.attribute_map = {
547
- index: 'index',
548
- params: 'params',
549
- };
550
- }
551
- // eslint-disable-next-line camelcase
552
- static from_obj_for_encoding(data) {
553
- /* eslint-disable dot-notation */
554
- if (typeof data['index'] === 'undefined')
555
- throw new Error(`Response is missing required field 'index': ${data}`);
556
- if (typeof data['params'] === 'undefined')
557
- throw new Error(`Response is missing required field 'params': ${data}`);
558
- return new Asset(data['index'], AssetParams.from_obj_for_encoding(data['params']));
559
- /* eslint-enable dot-notation */
560
- }
561
- }
562
- exports.Asset = Asset;
563
- /**
564
- * Describes an asset held by an account.
565
- * Definition:
566
- * data/basics/userBalance.go : AssetHolding
567
- */
568
- class AssetHolding extends basemodel_1.default {
569
- /**
570
- * Creates a new `AssetHolding` object.
571
- * @param amount - (a) number of units held.
572
- * @param assetId - Asset ID of the holding.
573
- * @param isFrozen - (f) whether or not the holding is frozen.
574
- */
575
- constructor(amount, assetId, isFrozen) {
576
- super();
577
- this.amount = amount;
578
- this.assetId = assetId;
579
- this.isFrozen = isFrozen;
580
- this.attribute_map = {
581
- amount: 'amount',
582
- assetId: 'asset-id',
583
- isFrozen: 'is-frozen',
584
- };
585
- }
586
- // eslint-disable-next-line camelcase
587
- static from_obj_for_encoding(data) {
588
- /* eslint-disable dot-notation */
589
- if (typeof data['amount'] === 'undefined')
590
- throw new Error(`Response is missing required field 'amount': ${data}`);
591
- if (typeof data['asset-id'] === 'undefined')
592
- throw new Error(`Response is missing required field 'asset-id': ${data}`);
593
- if (typeof data['is-frozen'] === 'undefined')
594
- throw new Error(`Response is missing required field 'is-frozen': ${data}`);
595
- return new AssetHolding(data['amount'], data['asset-id'], data['is-frozen']);
596
- /* eslint-enable dot-notation */
597
- }
598
- }
599
- exports.AssetHolding = AssetHolding;
600
- /**
601
- * AssetParams specifies the parameters for an asset.
602
- * (apar) when part of an AssetConfig transaction.
603
- * Definition:
604
- * data/transactions/asset.go : AssetParams
605
- */
606
- class AssetParams extends basemodel_1.default {
607
- /**
608
- * Creates a new `AssetParams` object.
609
- * @param creator - The address that created this asset. This is the address where the parameters
610
- * for this asset can be found, and also the address where unwanted asset units can
611
- * be sent in the worst case.
612
- * @param decimals - (dc) The number of digits to use after the decimal point when displaying this
613
- * asset. If 0, the asset is not divisible. If 1, the base unit of the asset is in
614
- * tenths. If 2, the base unit of the asset is in hundredths, and so on. This value
615
- * must be between 0 and 19 (inclusive).
616
- * @param total - (t) The total number of units of this asset.
617
- * @param clawback - (c) Address of account used to clawback holdings of this asset. If empty,
618
- * clawback is not permitted.
619
- * @param defaultFrozen - (df) Whether holdings of this asset are frozen by default.
620
- * @param freeze - (f) Address of account used to freeze holdings of this asset. If empty, freezing
621
- * is not permitted.
622
- * @param manager - (m) Address of account used to manage the keys of this asset and to destroy it.
623
- * @param metadataHash - (am) A commitment to some unspecified asset metadata. The format of this
624
- * metadata is up to the application.
625
- * @param name - (an) Name of this asset, as supplied by the creator. Included only when the
626
- * asset name is composed of printable utf-8 characters.
627
- * @param nameB64 - Base64 encoded name of this asset, as supplied by the creator.
628
- * @param reserve - (r) Address of account holding reserve (non-minted) units of this asset.
629
- * @param unitName - (un) Name of a unit of this asset, as supplied by the creator. Included only
630
- * when the name of a unit of this asset is composed of printable utf-8 characters.
631
- * @param unitNameB64 - Base64 encoded name of a unit of this asset, as supplied by the creator.
632
- * @param url - (au) URL where more information about the asset can be retrieved. Included only
633
- * when the URL is composed of printable utf-8 characters.
634
- * @param urlB64 - Base64 encoded URL where more information about the asset can be retrieved.
635
- */
636
- constructor({ creator, decimals, total, clawback, defaultFrozen, freeze, manager, metadataHash, name, nameB64, reserve, unitName, unitNameB64, url, urlB64, }) {
637
- super();
638
- this.creator = creator;
639
- this.decimals = decimals;
640
- this.total = total;
641
- this.clawback = clawback;
642
- this.defaultFrozen = defaultFrozen;
643
- this.freeze = freeze;
644
- this.manager = manager;
645
- this.metadataHash =
646
- typeof metadataHash === 'string'
647
- ? new Uint8Array(Buffer.from(metadataHash, 'base64'))
648
- : metadataHash;
649
- this.name = name;
650
- this.nameB64 =
651
- typeof nameB64 === 'string'
652
- ? new Uint8Array(Buffer.from(nameB64, 'base64'))
653
- : nameB64;
654
- this.reserve = reserve;
655
- this.unitName = unitName;
656
- this.unitNameB64 =
657
- typeof unitNameB64 === 'string'
658
- ? new Uint8Array(Buffer.from(unitNameB64, 'base64'))
659
- : unitNameB64;
660
- this.url = url;
661
- this.urlB64 =
662
- typeof urlB64 === 'string'
663
- ? new Uint8Array(Buffer.from(urlB64, 'base64'))
664
- : urlB64;
665
- this.attribute_map = {
666
- creator: 'creator',
667
- decimals: 'decimals',
668
- total: 'total',
669
- clawback: 'clawback',
670
- defaultFrozen: 'default-frozen',
671
- freeze: 'freeze',
672
- manager: 'manager',
673
- metadataHash: 'metadata-hash',
674
- name: 'name',
675
- nameB64: 'name-b64',
676
- reserve: 'reserve',
677
- unitName: 'unit-name',
678
- unitNameB64: 'unit-name-b64',
679
- url: 'url',
680
- urlB64: 'url-b64',
681
- };
682
- }
683
- // eslint-disable-next-line camelcase
684
- static from_obj_for_encoding(data) {
685
- /* eslint-disable dot-notation */
686
- if (typeof data['creator'] === 'undefined')
687
- throw new Error(`Response is missing required field 'creator': ${data}`);
688
- if (typeof data['decimals'] === 'undefined')
689
- throw new Error(`Response is missing required field 'decimals': ${data}`);
690
- if (typeof data['total'] === 'undefined')
691
- throw new Error(`Response is missing required field 'total': ${data}`);
692
- return new AssetParams({
693
- creator: data['creator'],
694
- decimals: data['decimals'],
695
- total: data['total'],
696
- clawback: data['clawback'],
697
- defaultFrozen: data['default-frozen'],
698
- freeze: data['freeze'],
699
- manager: data['manager'],
700
- metadataHash: data['metadata-hash'],
701
- name: data['name'],
702
- nameB64: data['name-b64'],
703
- reserve: data['reserve'],
704
- unitName: data['unit-name'],
705
- unitNameB64: data['unit-name-b64'],
706
- url: data['url'],
707
- urlB64: data['url-b64'],
708
- });
709
- /* eslint-enable dot-notation */
710
- }
711
- }
712
- exports.AssetParams = AssetParams;
713
- /**
714
- * Hash of a block header.
715
- */
716
- class BlockHashResponse extends basemodel_1.default {
717
- /**
718
- * Creates a new `BlockHashResponse` object.
719
- * @param blockhash - Block header hash.
720
- */
721
- constructor(blockhash) {
722
- super();
723
- this.blockhash = blockhash;
724
- this.attribute_map = {
725
- blockhash: 'blockHash',
726
- };
727
- }
728
- // eslint-disable-next-line camelcase
729
- static from_obj_for_encoding(data) {
730
- /* eslint-disable dot-notation */
731
- if (typeof data['blockHash'] === 'undefined')
732
- throw new Error(`Response is missing required field 'blockHash': ${data}`);
733
- return new BlockHashResponse(data['blockHash']);
734
- /* eslint-enable dot-notation */
735
- }
736
- }
737
- exports.BlockHashResponse = BlockHashResponse;
738
- /**
739
- * Encoded block object.
740
- */
741
- class BlockResponse extends basemodel_1.default {
742
- /**
743
- * Creates a new `BlockResponse` object.
744
- * @param block - Block header data.
745
- * @param cert - Optional certificate object. This is only included when the format is set to
746
- * message pack.
747
- */
748
- constructor(block, cert) {
749
- super();
750
- this.block = block;
751
- this.cert = cert;
752
- this.attribute_map = {
753
- block: 'block',
754
- cert: 'cert',
755
- };
756
- }
757
- // eslint-disable-next-line camelcase
758
- static from_obj_for_encoding(data) {
759
- /* eslint-disable dot-notation */
760
- if (typeof data['block'] === 'undefined')
761
- throw new Error(`Response is missing required field 'block': ${data}`);
762
- return new BlockResponse(data['block'], data['cert']);
763
- /* eslint-enable dot-notation */
764
- }
765
- }
766
- exports.BlockResponse = BlockResponse;
767
- /**
768
- * Box name and its content.
769
- */
770
- class Box extends basemodel_1.default {
771
- /**
772
- * Creates a new `Box` object.
773
- * @param name - (name) box name, base64 encoded
774
- * @param value - (value) box value, base64 encoded.
775
- */
776
- constructor(name, value) {
777
- super();
778
- this.name =
779
- typeof name === 'string'
780
- ? new Uint8Array(Buffer.from(name, 'base64'))
781
- : name;
782
- this.value =
783
- typeof value === 'string'
784
- ? new Uint8Array(Buffer.from(value, 'base64'))
785
- : value;
786
- this.attribute_map = {
787
- name: 'name',
788
- value: 'value',
789
- };
790
- }
791
- // eslint-disable-next-line camelcase
792
- static from_obj_for_encoding(data) {
793
- /* eslint-disable dot-notation */
794
- if (typeof data['name'] === 'undefined')
795
- throw new Error(`Response is missing required field 'name': ${data}`);
796
- if (typeof data['value'] === 'undefined')
797
- throw new Error(`Response is missing required field 'value': ${data}`);
798
- return new Box(data['name'], data['value']);
799
- /* eslint-enable dot-notation */
800
- }
801
- }
802
- exports.Box = Box;
803
- /**
804
- * Box descriptor describes a Box.
805
- */
806
- class BoxDescriptor extends basemodel_1.default {
807
- /**
808
- * Creates a new `BoxDescriptor` object.
809
- * @param name - Base64 encoded box name
810
- */
811
- constructor(name) {
812
- super();
813
- this.name =
814
- typeof name === 'string'
815
- ? new Uint8Array(Buffer.from(name, 'base64'))
816
- : name;
817
- this.attribute_map = {
818
- name: 'name',
819
- };
820
- }
821
- // eslint-disable-next-line camelcase
822
- static from_obj_for_encoding(data) {
823
- /* eslint-disable dot-notation */
824
- if (typeof data['name'] === 'undefined')
825
- throw new Error(`Response is missing required field 'name': ${data}`);
826
- return new BoxDescriptor(data['name']);
827
- /* eslint-enable dot-notation */
828
- }
829
- }
830
- exports.BoxDescriptor = BoxDescriptor;
831
- /**
832
- * Box names of an application
833
- */
834
- class BoxesResponse extends basemodel_1.default {
835
- /**
836
- * Creates a new `BoxesResponse` object.
837
- * @param boxes -
838
- */
839
- constructor(boxes) {
840
- super();
841
- this.boxes = boxes;
842
- this.attribute_map = {
843
- boxes: 'boxes',
844
- };
845
- }
846
- // eslint-disable-next-line camelcase
847
- static from_obj_for_encoding(data) {
848
- /* eslint-disable dot-notation */
849
- if (!Array.isArray(data['boxes']))
850
- throw new Error(`Response is missing required array field 'boxes': ${data}`);
851
- return new BoxesResponse(data['boxes'].map(BoxDescriptor.from_obj_for_encoding));
852
- /* eslint-enable dot-notation */
853
- }
854
- }
855
- exports.BoxesResponse = BoxesResponse;
856
- class BuildVersion extends basemodel_1.default {
857
- /**
858
- * Creates a new `BuildVersion` object.
859
- * @param branch -
860
- * @param buildNumber -
861
- * @param channel -
862
- * @param commitHash -
863
- * @param major -
864
- * @param minor -
865
- */
866
- constructor({ branch, buildNumber, channel, commitHash, major, minor, }) {
867
- super();
868
- this.branch = branch;
869
- this.buildNumber = buildNumber;
870
- this.channel = channel;
871
- this.commitHash = commitHash;
872
- this.major = major;
873
- this.minor = minor;
874
- this.attribute_map = {
875
- branch: 'branch',
876
- buildNumber: 'build_number',
877
- channel: 'channel',
878
- commitHash: 'commit_hash',
879
- major: 'major',
880
- minor: 'minor',
881
- };
882
- }
883
- // eslint-disable-next-line camelcase
884
- static from_obj_for_encoding(data) {
885
- /* eslint-disable dot-notation */
886
- if (typeof data['branch'] === 'undefined')
887
- throw new Error(`Response is missing required field 'branch': ${data}`);
888
- if (typeof data['build_number'] === 'undefined')
889
- throw new Error(`Response is missing required field 'build_number': ${data}`);
890
- if (typeof data['channel'] === 'undefined')
891
- throw new Error(`Response is missing required field 'channel': ${data}`);
892
- if (typeof data['commit_hash'] === 'undefined')
893
- throw new Error(`Response is missing required field 'commit_hash': ${data}`);
894
- if (typeof data['major'] === 'undefined')
895
- throw new Error(`Response is missing required field 'major': ${data}`);
896
- if (typeof data['minor'] === 'undefined')
897
- throw new Error(`Response is missing required field 'minor': ${data}`);
898
- return new BuildVersion({
899
- branch: data['branch'],
900
- buildNumber: data['build_number'],
901
- channel: data['channel'],
902
- commitHash: data['commit_hash'],
903
- major: data['major'],
904
- minor: data['minor'],
905
- });
906
- /* eslint-enable dot-notation */
907
- }
908
- }
909
- exports.BuildVersion = BuildVersion;
910
- /**
911
- *
912
- */
913
- class CatchpointAbortResponse extends basemodel_1.default {
914
- /**
915
- * Creates a new `CatchpointAbortResponse` object.
916
- * @param catchupMessage - Catchup abort response string
917
- */
918
- constructor(catchupMessage) {
919
- super();
920
- this.catchupMessage = catchupMessage;
921
- this.attribute_map = {
922
- catchupMessage: 'catchup-message',
923
- };
924
- }
925
- // eslint-disable-next-line camelcase
926
- static from_obj_for_encoding(data) {
927
- /* eslint-disable dot-notation */
928
- if (typeof data['catchup-message'] === 'undefined')
929
- throw new Error(`Response is missing required field 'catchup-message': ${data}`);
930
- return new CatchpointAbortResponse(data['catchup-message']);
931
- /* eslint-enable dot-notation */
932
- }
933
- }
934
- exports.CatchpointAbortResponse = CatchpointAbortResponse;
935
- /**
936
- *
937
- */
938
- class CatchpointStartResponse extends basemodel_1.default {
939
- /**
940
- * Creates a new `CatchpointStartResponse` object.
941
- * @param catchupMessage - Catchup start response string
942
- */
943
- constructor(catchupMessage) {
944
- super();
945
- this.catchupMessage = catchupMessage;
946
- this.attribute_map = {
947
- catchupMessage: 'catchup-message',
948
- };
949
- }
950
- // eslint-disable-next-line camelcase
951
- static from_obj_for_encoding(data) {
952
- /* eslint-disable dot-notation */
953
- if (typeof data['catchup-message'] === 'undefined')
954
- throw new Error(`Response is missing required field 'catchup-message': ${data}`);
955
- return new CatchpointStartResponse(data['catchup-message']);
956
- /* eslint-enable dot-notation */
957
- }
958
- }
959
- exports.CatchpointStartResponse = CatchpointStartResponse;
960
- /**
961
- * Teal compile Result
962
- */
963
- class CompileResponse extends basemodel_1.default {
964
- /**
965
- * Creates a new `CompileResponse` object.
966
- * @param hash - base32 SHA512_256 of program bytes (Address style)
967
- * @param result - base64 encoded program bytes
968
- * @param sourcemap - JSON of the source map
969
- */
970
- constructor(hash, result, sourcemap) {
971
- super();
972
- this.hash = hash;
973
- this.result = result;
974
- this.sourcemap = sourcemap;
975
- this.attribute_map = {
976
- hash: 'hash',
977
- result: 'result',
978
- sourcemap: 'sourcemap',
979
- };
980
- }
981
- // eslint-disable-next-line camelcase
982
- static from_obj_for_encoding(data) {
983
- /* eslint-disable dot-notation */
984
- if (typeof data['hash'] === 'undefined')
985
- throw new Error(`Response is missing required field 'hash': ${data}`);
986
- if (typeof data['result'] === 'undefined')
987
- throw new Error(`Response is missing required field 'result': ${data}`);
988
- return new CompileResponse(data['hash'], data['result'], data['sourcemap']);
989
- /* eslint-enable dot-notation */
990
- }
991
- }
992
- exports.CompileResponse = CompileResponse;
993
- /**
994
- * Teal disassembly Result
995
- */
996
- class DisassembleResponse extends basemodel_1.default {
997
- /**
998
- * Creates a new `DisassembleResponse` object.
999
- * @param result - disassembled Teal code
1000
- */
1001
- constructor(result) {
1002
- super();
1003
- this.result = result;
1004
- this.attribute_map = {
1005
- result: 'result',
1006
- };
1007
- }
1008
- // eslint-disable-next-line camelcase
1009
- static from_obj_for_encoding(data) {
1010
- /* eslint-disable dot-notation */
1011
- if (typeof data['result'] === 'undefined')
1012
- throw new Error(`Response is missing required field 'result': ${data}`);
1013
- return new DisassembleResponse(data['result']);
1014
- /* eslint-enable dot-notation */
1015
- }
1016
- }
1017
- exports.DisassembleResponse = DisassembleResponse;
1018
- /**
1019
- * Request data type for dryrun endpoint. Given the Transactions and simulated
1020
- * ledger state upload, run TEAL scripts and return debugging information.
1021
- */
1022
- class DryrunRequest extends basemodel_1.default {
1023
- /**
1024
- * Creates a new `DryrunRequest` object.
1025
- * @param accounts -
1026
- * @param apps -
1027
- * @param latestTimestamp - LatestTimestamp is available to some TEAL scripts. Defaults to the latest
1028
- * confirmed timestamp this algod is attached to.
1029
- * @param protocolVersion - ProtocolVersion specifies a specific version string to operate under, otherwise
1030
- * whatever the current protocol of the network this algod is running in.
1031
- * @param round - Round is available to some TEAL scripts. Defaults to the current round on the
1032
- * network this algod is attached to.
1033
- * @param sources -
1034
- * @param txns -
1035
- */
1036
- constructor({ accounts, apps, latestTimestamp, protocolVersion, round, sources, txns, }) {
1037
- super();
1038
- this.accounts = accounts;
1039
- this.apps = apps;
1040
- this.latestTimestamp = latestTimestamp;
1041
- this.protocolVersion = protocolVersion;
1042
- this.round = round;
1043
- this.sources = sources;
1044
- this.txns = txns;
1045
- this.attribute_map = {
1046
- accounts: 'accounts',
1047
- apps: 'apps',
1048
- latestTimestamp: 'latest-timestamp',
1049
- protocolVersion: 'protocol-version',
1050
- round: 'round',
1051
- sources: 'sources',
1052
- txns: 'txns',
1053
- };
1054
- }
1055
- // eslint-disable-next-line camelcase
1056
- static from_obj_for_encoding(data) {
1057
- /* eslint-disable dot-notation */
1058
- if (!Array.isArray(data['accounts']))
1059
- throw new Error(`Response is missing required array field 'accounts': ${data}`);
1060
- if (!Array.isArray(data['apps']))
1061
- throw new Error(`Response is missing required array field 'apps': ${data}`);
1062
- if (typeof data['latest-timestamp'] === 'undefined')
1063
- throw new Error(`Response is missing required field 'latest-timestamp': ${data}`);
1064
- if (typeof data['protocol-version'] === 'undefined')
1065
- throw new Error(`Response is missing required field 'protocol-version': ${data}`);
1066
- if (typeof data['round'] === 'undefined')
1067
- throw new Error(`Response is missing required field 'round': ${data}`);
1068
- if (!Array.isArray(data['sources']))
1069
- throw new Error(`Response is missing required array field 'sources': ${data}`);
1070
- if (!Array.isArray(data['txns']))
1071
- throw new Error(`Response is missing required array field 'txns': ${data}`);
1072
- return new DryrunRequest({
1073
- accounts: data['accounts'].map(Account.from_obj_for_encoding),
1074
- apps: data['apps'].map(Application.from_obj_for_encoding),
1075
- latestTimestamp: data['latest-timestamp'],
1076
- protocolVersion: data['protocol-version'],
1077
- round: data['round'],
1078
- sources: data['sources'].map(DryrunSource.from_obj_for_encoding),
1079
- txns: data['txns'],
1080
- });
1081
- /* eslint-enable dot-notation */
1082
- }
1083
- }
1084
- exports.DryrunRequest = DryrunRequest;
1085
- /**
1086
- * DryrunResponse contains per-txn debug information from a dryrun.
1087
- */
1088
- class DryrunResponse extends basemodel_1.default {
1089
- /**
1090
- * Creates a new `DryrunResponse` object.
1091
- * @param error -
1092
- * @param protocolVersion - Protocol version is the protocol version Dryrun was operated under.
1093
- * @param txns -
1094
- */
1095
- constructor(error, protocolVersion, txns) {
1096
- super();
1097
- this.error = error;
1098
- this.protocolVersion = protocolVersion;
1099
- this.txns = txns;
1100
- this.attribute_map = {
1101
- error: 'error',
1102
- protocolVersion: 'protocol-version',
1103
- txns: 'txns',
1104
- };
1105
- }
1106
- // eslint-disable-next-line camelcase
1107
- static from_obj_for_encoding(data) {
1108
- /* eslint-disable dot-notation */
1109
- if (typeof data['error'] === 'undefined')
1110
- throw new Error(`Response is missing required field 'error': ${data}`);
1111
- if (typeof data['protocol-version'] === 'undefined')
1112
- throw new Error(`Response is missing required field 'protocol-version': ${data}`);
1113
- if (!Array.isArray(data['txns']))
1114
- throw new Error(`Response is missing required array field 'txns': ${data}`);
1115
- return new DryrunResponse(data['error'], data['protocol-version'], data['txns'].map(DryrunTxnResult.from_obj_for_encoding));
1116
- /* eslint-enable dot-notation */
1117
- }
1118
- }
1119
- exports.DryrunResponse = DryrunResponse;
1120
- /**
1121
- * DryrunSource is TEAL source text that gets uploaded, compiled, and inserted into
1122
- * transactions or application state.
1123
- */
1124
- class DryrunSource extends basemodel_1.default {
1125
- /**
1126
- * Creates a new `DryrunSource` object.
1127
- * @param fieldName - FieldName is what kind of sources this is. If lsig then it goes into the
1128
- * transactions[this.TxnIndex].LogicSig. If approv or clearp it goes into the
1129
- * Approval Program or Clear State Program of application[this.AppIndex].
1130
- * @param source -
1131
- * @param txnIndex -
1132
- * @param appIndex -
1133
- */
1134
- constructor(fieldName, source, txnIndex, appIndex) {
1135
- super();
1136
- this.fieldName = fieldName;
1137
- this.source = source;
1138
- this.txnIndex = txnIndex;
1139
- this.appIndex = appIndex;
1140
- this.attribute_map = {
1141
- fieldName: 'field-name',
1142
- source: 'source',
1143
- txnIndex: 'txn-index',
1144
- appIndex: 'app-index',
1145
- };
1146
- }
1147
- // eslint-disable-next-line camelcase
1148
- static from_obj_for_encoding(data) {
1149
- /* eslint-disable dot-notation */
1150
- if (typeof data['field-name'] === 'undefined')
1151
- throw new Error(`Response is missing required field 'field-name': ${data}`);
1152
- if (typeof data['source'] === 'undefined')
1153
- throw new Error(`Response is missing required field 'source': ${data}`);
1154
- if (typeof data['txn-index'] === 'undefined')
1155
- throw new Error(`Response is missing required field 'txn-index': ${data}`);
1156
- if (typeof data['app-index'] === 'undefined')
1157
- throw new Error(`Response is missing required field 'app-index': ${data}`);
1158
- return new DryrunSource(data['field-name'], data['source'], data['txn-index'], data['app-index']);
1159
- /* eslint-enable dot-notation */
1160
- }
1161
- }
1162
- exports.DryrunSource = DryrunSource;
1163
- /**
1164
- * Stores the TEAL eval step data
1165
- */
1166
- class DryrunState extends basemodel_1.default {
1167
- /**
1168
- * Creates a new `DryrunState` object.
1169
- * @param line - Line number
1170
- * @param pc - Program counter
1171
- * @param stack -
1172
- * @param error - Evaluation error if any
1173
- * @param scratch -
1174
- */
1175
- constructor({ line, pc, stack, error, scratch, }) {
1176
- super();
1177
- this.line = line;
1178
- this.pc = pc;
1179
- this.stack = stack;
1180
- this.error = error;
1181
- this.scratch = scratch;
1182
- this.attribute_map = {
1183
- line: 'line',
1184
- pc: 'pc',
1185
- stack: 'stack',
1186
- error: 'error',
1187
- scratch: 'scratch',
1188
- };
1189
- }
1190
- // eslint-disable-next-line camelcase
1191
- static from_obj_for_encoding(data) {
1192
- /* eslint-disable dot-notation */
1193
- if (typeof data['line'] === 'undefined')
1194
- throw new Error(`Response is missing required field 'line': ${data}`);
1195
- if (typeof data['pc'] === 'undefined')
1196
- throw new Error(`Response is missing required field 'pc': ${data}`);
1197
- if (!Array.isArray(data['stack']))
1198
- throw new Error(`Response is missing required array field 'stack': ${data}`);
1199
- return new DryrunState({
1200
- line: data['line'],
1201
- pc: data['pc'],
1202
- stack: data['stack'].map(TealValue.from_obj_for_encoding),
1203
- error: data['error'],
1204
- scratch: typeof data['scratch'] !== 'undefined'
1205
- ? data['scratch'].map(TealValue.from_obj_for_encoding)
1206
- : undefined,
1207
- });
1208
- /* eslint-enable dot-notation */
1209
- }
1210
- }
1211
- exports.DryrunState = DryrunState;
1212
- /**
1213
- * DryrunTxnResult contains any LogicSig or ApplicationCall program debug
1214
- * information and state updates from a dryrun.
1215
- */
1216
- class DryrunTxnResult extends basemodel_1.default {
1217
- /**
1218
- * Creates a new `DryrunTxnResult` object.
1219
- * @param disassembly - Disassembled program line by line.
1220
- * @param appCallMessages -
1221
- * @param appCallTrace -
1222
- * @param budgetAdded - Budget added during execution of app call transaction.
1223
- * @param budgetConsumed - Budget consumed during execution of app call transaction.
1224
- * @param cost - Net cost of app execution. Field is DEPRECATED and is subject for removal.
1225
- * Instead, use `budget-added` and `budget-consumed.
1226
- * @param globalDelta - Application state delta.
1227
- * @param localDeltas -
1228
- * @param logicSigDisassembly - Disassembled lsig program line by line.
1229
- * @param logicSigMessages -
1230
- * @param logicSigTrace -
1231
- * @param logs -
1232
- */
1233
- constructor({ disassembly, appCallMessages, appCallTrace, budgetAdded, budgetConsumed, cost, globalDelta, localDeltas, logicSigDisassembly, logicSigMessages, logicSigTrace, logs, }) {
1234
- super();
1235
- this.disassembly = disassembly;
1236
- this.appCallMessages = appCallMessages;
1237
- this.appCallTrace = appCallTrace;
1238
- this.budgetAdded = budgetAdded;
1239
- this.budgetConsumed = budgetConsumed;
1240
- this.cost = cost;
1241
- this.globalDelta = globalDelta;
1242
- this.localDeltas = localDeltas;
1243
- this.logicSigDisassembly = logicSigDisassembly;
1244
- this.logicSigMessages = logicSigMessages;
1245
- this.logicSigTrace = logicSigTrace;
1246
- this.logs = logs;
1247
- this.attribute_map = {
1248
- disassembly: 'disassembly',
1249
- appCallMessages: 'app-call-messages',
1250
- appCallTrace: 'app-call-trace',
1251
- budgetAdded: 'budget-added',
1252
- budgetConsumed: 'budget-consumed',
1253
- cost: 'cost',
1254
- globalDelta: 'global-delta',
1255
- localDeltas: 'local-deltas',
1256
- logicSigDisassembly: 'logic-sig-disassembly',
1257
- logicSigMessages: 'logic-sig-messages',
1258
- logicSigTrace: 'logic-sig-trace',
1259
- logs: 'logs',
1260
- };
1261
- }
1262
- // eslint-disable-next-line camelcase
1263
- static from_obj_for_encoding(data) {
1264
- /* eslint-disable dot-notation */
1265
- if (!Array.isArray(data['disassembly']))
1266
- throw new Error(`Response is missing required array field 'disassembly': ${data}`);
1267
- return new DryrunTxnResult({
1268
- disassembly: data['disassembly'],
1269
- appCallMessages: data['app-call-messages'],
1270
- appCallTrace: typeof data['app-call-trace'] !== 'undefined'
1271
- ? data['app-call-trace'].map(DryrunState.from_obj_for_encoding)
1272
- : undefined,
1273
- budgetAdded: data['budget-added'],
1274
- budgetConsumed: data['budget-consumed'],
1275
- cost: data['cost'],
1276
- globalDelta: typeof data['global-delta'] !== 'undefined'
1277
- ? data['global-delta'].map(EvalDeltaKeyValue.from_obj_for_encoding)
1278
- : undefined,
1279
- localDeltas: typeof data['local-deltas'] !== 'undefined'
1280
- ? data['local-deltas'].map(AccountStateDelta.from_obj_for_encoding)
1281
- : undefined,
1282
- logicSigDisassembly: data['logic-sig-disassembly'],
1283
- logicSigMessages: data['logic-sig-messages'],
1284
- logicSigTrace: typeof data['logic-sig-trace'] !== 'undefined'
1285
- ? data['logic-sig-trace'].map(DryrunState.from_obj_for_encoding)
1286
- : undefined,
1287
- logs: data['logs'],
1288
- });
1289
- /* eslint-enable dot-notation */
1290
- }
1291
- }
1292
- exports.DryrunTxnResult = DryrunTxnResult;
1293
- /**
1294
- * An error response with optional data field.
1295
- */
1296
- class ErrorResponse extends basemodel_1.default {
1297
- /**
1298
- * Creates a new `ErrorResponse` object.
1299
- * @param message -
1300
- * @param data -
1301
- */
1302
- constructor(message, data) {
1303
- super();
1304
- this.message = message;
1305
- this.data = data;
1306
- this.attribute_map = {
1307
- message: 'message',
1308
- data: 'data',
1309
- };
1310
- }
1311
- // eslint-disable-next-line camelcase
1312
- static from_obj_for_encoding(data) {
1313
- /* eslint-disable dot-notation */
1314
- if (typeof data['message'] === 'undefined')
1315
- throw new Error(`Response is missing required field 'message': ${data}`);
1316
- return new ErrorResponse(data['message'], data['data']);
1317
- /* eslint-enable dot-notation */
1318
- }
1319
- }
1320
- exports.ErrorResponse = ErrorResponse;
1321
- /**
1322
- * Represents a TEAL value delta.
1323
- */
1324
- class EvalDelta extends basemodel_1.default {
1325
- /**
1326
- * Creates a new `EvalDelta` object.
1327
- * @param action - (at) delta action.
1328
- * @param bytes - (bs) bytes value.
1329
- * @param uint - (ui) uint value.
1330
- */
1331
- constructor(action, bytes, uint) {
1332
- super();
1333
- this.action = action;
1334
- this.bytes = bytes;
1335
- this.uint = uint;
1336
- this.attribute_map = {
1337
- action: 'action',
1338
- bytes: 'bytes',
1339
- uint: 'uint',
1340
- };
1341
- }
1342
- // eslint-disable-next-line camelcase
1343
- static from_obj_for_encoding(data) {
1344
- /* eslint-disable dot-notation */
1345
- if (typeof data['action'] === 'undefined')
1346
- throw new Error(`Response is missing required field 'action': ${data}`);
1347
- return new EvalDelta(data['action'], data['bytes'], data['uint']);
1348
- /* eslint-enable dot-notation */
1349
- }
1350
- }
1351
- exports.EvalDelta = EvalDelta;
1352
- /**
1353
- * Key-value pairs for StateDelta.
1354
- */
1355
- class EvalDeltaKeyValue extends basemodel_1.default {
1356
- /**
1357
- * Creates a new `EvalDeltaKeyValue` object.
1358
- * @param key -
1359
- * @param value - Represents a TEAL value delta.
1360
- */
1361
- constructor(key, value) {
1362
- super();
1363
- this.key = key;
1364
- this.value = value;
1365
- this.attribute_map = {
1366
- key: 'key',
1367
- value: 'value',
1368
- };
1369
- }
1370
- // eslint-disable-next-line camelcase
1371
- static from_obj_for_encoding(data) {
1372
- /* eslint-disable dot-notation */
1373
- if (typeof data['key'] === 'undefined')
1374
- throw new Error(`Response is missing required field 'key': ${data}`);
1375
- if (typeof data['value'] === 'undefined')
1376
- throw new Error(`Response is missing required field 'value': ${data}`);
1377
- return new EvalDeltaKeyValue(data['key'], EvalDelta.from_obj_for_encoding(data['value']));
1378
- /* eslint-enable dot-notation */
1379
- }
1380
- }
1381
- exports.EvalDeltaKeyValue = EvalDeltaKeyValue;
1382
- /**
1383
- * Proof of membership and position of a light block header.
1384
- */
1385
- class LightBlockHeaderProof extends basemodel_1.default {
1386
- /**
1387
- * Creates a new `LightBlockHeaderProof` object.
1388
- * @param index - The index of the light block header in the vector commitment tree
1389
- * @param proof - The encoded proof.
1390
- * @param treedepth - Represents the depth of the tree that is being proven, i.e. the number of edges
1391
- * from a leaf to the root.
1392
- */
1393
- constructor(index, proof, treedepth) {
1394
- super();
1395
- this.index = index;
1396
- this.proof =
1397
- typeof proof === 'string'
1398
- ? new Uint8Array(Buffer.from(proof, 'base64'))
1399
- : proof;
1400
- this.treedepth = treedepth;
1401
- this.attribute_map = {
1402
- index: 'index',
1403
- proof: 'proof',
1404
- treedepth: 'treedepth',
1405
- };
1406
- }
1407
- // eslint-disable-next-line camelcase
1408
- static from_obj_for_encoding(data) {
1409
- /* eslint-disable dot-notation */
1410
- if (typeof data['index'] === 'undefined')
1411
- throw new Error(`Response is missing required field 'index': ${data}`);
1412
- if (typeof data['proof'] === 'undefined')
1413
- throw new Error(`Response is missing required field 'proof': ${data}`);
1414
- if (typeof data['treedepth'] === 'undefined')
1415
- throw new Error(`Response is missing required field 'treedepth': ${data}`);
1416
- return new LightBlockHeaderProof(data['index'], data['proof'], data['treedepth']);
1417
- /* eslint-enable dot-notation */
1418
- }
1419
- }
1420
- exports.LightBlockHeaderProof = LightBlockHeaderProof;
1421
- /**
1422
- *
1423
- */
1424
- class NodeStatusResponse extends basemodel_1.default {
1425
- /**
1426
- * Creates a new `NodeStatusResponse` object.
1427
- * @param catchupTime - CatchupTime in nanoseconds
1428
- * @param lastRound - LastRound indicates the last round seen
1429
- * @param lastVersion - LastVersion indicates the last consensus version supported
1430
- * @param nextVersion - NextVersion of consensus protocol to use
1431
- * @param nextVersionRound - NextVersionRound is the round at which the next consensus version will apply
1432
- * @param nextVersionSupported - NextVersionSupported indicates whether the next consensus version is supported
1433
- * by this node
1434
- * @param stoppedAtUnsupportedRound - StoppedAtUnsupportedRound indicates that the node does not support the new
1435
- * rounds and has stopped making progress
1436
- * @param timeSinceLastRound - TimeSinceLastRound in nanoseconds
1437
- * @param catchpoint - The current catchpoint that is being caught up to
1438
- * @param catchpointAcquiredBlocks - The number of blocks that have already been obtained by the node as part of the
1439
- * catchup
1440
- * @param catchpointProcessedAccounts - The number of accounts from the current catchpoint that have been processed so
1441
- * far as part of the catchup
1442
- * @param catchpointTotalAccounts - The total number of accounts included in the current catchpoint
1443
- * @param catchpointTotalBlocks - The total number of blocks that are required to complete the current catchpoint
1444
- * catchup
1445
- * @param catchpointVerifiedAccounts - The number of accounts from the current catchpoint that have been verified so
1446
- * far as part of the catchup
1447
- * @param lastCatchpoint - The last catchpoint seen by the node
1448
- */
1449
- constructor({ catchupTime, lastRound, lastVersion, nextVersion, nextVersionRound, nextVersionSupported, stoppedAtUnsupportedRound, timeSinceLastRound, catchpoint, catchpointAcquiredBlocks, catchpointProcessedAccounts, catchpointTotalAccounts, catchpointTotalBlocks, catchpointVerifiedAccounts, lastCatchpoint, }) {
1450
- super();
1451
- this.catchupTime = catchupTime;
1452
- this.lastRound = lastRound;
1453
- this.lastVersion = lastVersion;
1454
- this.nextVersion = nextVersion;
1455
- this.nextVersionRound = nextVersionRound;
1456
- this.nextVersionSupported = nextVersionSupported;
1457
- this.stoppedAtUnsupportedRound = stoppedAtUnsupportedRound;
1458
- this.timeSinceLastRound = timeSinceLastRound;
1459
- this.catchpoint = catchpoint;
1460
- this.catchpointAcquiredBlocks = catchpointAcquiredBlocks;
1461
- this.catchpointProcessedAccounts = catchpointProcessedAccounts;
1462
- this.catchpointTotalAccounts = catchpointTotalAccounts;
1463
- this.catchpointTotalBlocks = catchpointTotalBlocks;
1464
- this.catchpointVerifiedAccounts = catchpointVerifiedAccounts;
1465
- this.lastCatchpoint = lastCatchpoint;
1466
- this.attribute_map = {
1467
- catchupTime: 'catchup-time',
1468
- lastRound: 'last-round',
1469
- lastVersion: 'last-version',
1470
- nextVersion: 'next-version',
1471
- nextVersionRound: 'next-version-round',
1472
- nextVersionSupported: 'next-version-supported',
1473
- stoppedAtUnsupportedRound: 'stopped-at-unsupported-round',
1474
- timeSinceLastRound: 'time-since-last-round',
1475
- catchpoint: 'catchpoint',
1476
- catchpointAcquiredBlocks: 'catchpoint-acquired-blocks',
1477
- catchpointProcessedAccounts: 'catchpoint-processed-accounts',
1478
- catchpointTotalAccounts: 'catchpoint-total-accounts',
1479
- catchpointTotalBlocks: 'catchpoint-total-blocks',
1480
- catchpointVerifiedAccounts: 'catchpoint-verified-accounts',
1481
- lastCatchpoint: 'last-catchpoint',
1482
- };
1483
- }
1484
- // eslint-disable-next-line camelcase
1485
- static from_obj_for_encoding(data) {
1486
- /* eslint-disable dot-notation */
1487
- if (typeof data['catchup-time'] === 'undefined')
1488
- throw new Error(`Response is missing required field 'catchup-time': ${data}`);
1489
- if (typeof data['last-round'] === 'undefined')
1490
- throw new Error(`Response is missing required field 'last-round': ${data}`);
1491
- if (typeof data['last-version'] === 'undefined')
1492
- throw new Error(`Response is missing required field 'last-version': ${data}`);
1493
- if (typeof data['next-version'] === 'undefined')
1494
- throw new Error(`Response is missing required field 'next-version': ${data}`);
1495
- if (typeof data['next-version-round'] === 'undefined')
1496
- throw new Error(`Response is missing required field 'next-version-round': ${data}`);
1497
- if (typeof data['next-version-supported'] === 'undefined')
1498
- throw new Error(`Response is missing required field 'next-version-supported': ${data}`);
1499
- if (typeof data['stopped-at-unsupported-round'] === 'undefined')
1500
- throw new Error(`Response is missing required field 'stopped-at-unsupported-round': ${data}`);
1501
- if (typeof data['time-since-last-round'] === 'undefined')
1502
- throw new Error(`Response is missing required field 'time-since-last-round': ${data}`);
1503
- return new NodeStatusResponse({
1504
- catchupTime: data['catchup-time'],
1505
- lastRound: data['last-round'],
1506
- lastVersion: data['last-version'],
1507
- nextVersion: data['next-version'],
1508
- nextVersionRound: data['next-version-round'],
1509
- nextVersionSupported: data['next-version-supported'],
1510
- stoppedAtUnsupportedRound: data['stopped-at-unsupported-round'],
1511
- timeSinceLastRound: data['time-since-last-round'],
1512
- catchpoint: data['catchpoint'],
1513
- catchpointAcquiredBlocks: data['catchpoint-acquired-blocks'],
1514
- catchpointProcessedAccounts: data['catchpoint-processed-accounts'],
1515
- catchpointTotalAccounts: data['catchpoint-total-accounts'],
1516
- catchpointTotalBlocks: data['catchpoint-total-blocks'],
1517
- catchpointVerifiedAccounts: data['catchpoint-verified-accounts'],
1518
- lastCatchpoint: data['last-catchpoint'],
1519
- });
1520
- /* eslint-enable dot-notation */
1521
- }
1522
- }
1523
- exports.NodeStatusResponse = NodeStatusResponse;
1524
- /**
1525
- * Details about a pending transaction. If the transaction was recently confirmed,
1526
- * includes confirmation details like the round and reward details.
1527
- */
1528
- class PendingTransactionResponse extends basemodel_1.default {
1529
- /**
1530
- * Creates a new `PendingTransactionResponse` object.
1531
- * @param poolError - Indicates that the transaction was kicked out of this node's transaction pool
1532
- * (and specifies why that happened). An empty string indicates the transaction
1533
- * wasn't kicked out of this node's txpool due to an error.
1534
- * @param txn - The raw signed transaction.
1535
- * @param applicationIndex - The application index if the transaction was found and it created an
1536
- * application.
1537
- * @param assetClosingAmount - The number of the asset's unit that were transferred to the close-to address.
1538
- * @param assetIndex - The asset index if the transaction was found and it created an asset.
1539
- * @param closeRewards - Rewards in microalgos applied to the close remainder to account.
1540
- * @param closingAmount - Closing amount for the transaction.
1541
- * @param confirmedRound - The round where this transaction was confirmed, if present.
1542
- * @param globalStateDelta - (gd) Global state key/value changes for the application being executed by this
1543
- * transaction.
1544
- * @param innerTxns - Inner transactions produced by application execution.
1545
- * @param localStateDelta - (ld) Local state key/value changes for the application being executed by this
1546
- * transaction.
1547
- * @param logs - (lg) Logs for the application being executed by this transaction.
1548
- * @param receiverRewards - Rewards in microalgos applied to the receiver account.
1549
- * @param senderRewards - Rewards in microalgos applied to the sender account.
1550
- */
1551
- constructor({ poolError, txn, applicationIndex, assetClosingAmount, assetIndex, closeRewards, closingAmount, confirmedRound, globalStateDelta, innerTxns, localStateDelta, logs, receiverRewards, senderRewards, }) {
1552
- super();
1553
- this.poolError = poolError;
1554
- this.txn = txn;
1555
- this.applicationIndex = applicationIndex;
1556
- this.assetClosingAmount = assetClosingAmount;
1557
- this.assetIndex = assetIndex;
1558
- this.closeRewards = closeRewards;
1559
- this.closingAmount = closingAmount;
1560
- this.confirmedRound = confirmedRound;
1561
- this.globalStateDelta = globalStateDelta;
1562
- this.innerTxns = innerTxns;
1563
- this.localStateDelta = localStateDelta;
1564
- this.logs = logs;
1565
- this.receiverRewards = receiverRewards;
1566
- this.senderRewards = senderRewards;
1567
- this.attribute_map = {
1568
- poolError: 'pool-error',
1569
- txn: 'txn',
1570
- applicationIndex: 'application-index',
1571
- assetClosingAmount: 'asset-closing-amount',
1572
- assetIndex: 'asset-index',
1573
- closeRewards: 'close-rewards',
1574
- closingAmount: 'closing-amount',
1575
- confirmedRound: 'confirmed-round',
1576
- globalStateDelta: 'global-state-delta',
1577
- innerTxns: 'inner-txns',
1578
- localStateDelta: 'local-state-delta',
1579
- logs: 'logs',
1580
- receiverRewards: 'receiver-rewards',
1581
- senderRewards: 'sender-rewards',
1582
- };
1583
- }
1584
- // eslint-disable-next-line camelcase
1585
- static from_obj_for_encoding(data) {
1586
- /* eslint-disable dot-notation */
1587
- if (typeof data['pool-error'] === 'undefined')
1588
- throw new Error(`Response is missing required field 'pool-error': ${data}`);
1589
- if (typeof data['txn'] === 'undefined')
1590
- throw new Error(`Response is missing required field 'txn': ${data}`);
1591
- return new PendingTransactionResponse({
1592
- poolError: data['pool-error'],
1593
- txn: data['txn'],
1594
- applicationIndex: data['application-index'],
1595
- assetClosingAmount: data['asset-closing-amount'],
1596
- assetIndex: data['asset-index'],
1597
- closeRewards: data['close-rewards'],
1598
- closingAmount: data['closing-amount'],
1599
- confirmedRound: data['confirmed-round'],
1600
- globalStateDelta: typeof data['global-state-delta'] !== 'undefined'
1601
- ? data['global-state-delta'].map(EvalDeltaKeyValue.from_obj_for_encoding)
1602
- : undefined,
1603
- innerTxns: typeof data['inner-txns'] !== 'undefined'
1604
- ? data['inner-txns'].map(PendingTransactionResponse.from_obj_for_encoding)
1605
- : undefined,
1606
- localStateDelta: typeof data['local-state-delta'] !== 'undefined'
1607
- ? data['local-state-delta'].map(AccountStateDelta.from_obj_for_encoding)
1608
- : undefined,
1609
- logs: data['logs'],
1610
- receiverRewards: data['receiver-rewards'],
1611
- senderRewards: data['sender-rewards'],
1612
- });
1613
- /* eslint-enable dot-notation */
1614
- }
1615
- }
1616
- exports.PendingTransactionResponse = PendingTransactionResponse;
1617
- /**
1618
- * A potentially truncated list of transactions currently in the node's transaction
1619
- * pool. You can compute whether or not the list is truncated if the number of
1620
- * elements in the **top-transactions** array is fewer than **total-transactions**.
1621
- */
1622
- class PendingTransactionsResponse extends basemodel_1.default {
1623
- /**
1624
- * Creates a new `PendingTransactionsResponse` object.
1625
- * @param topTransactions - An array of signed transaction objects.
1626
- * @param totalTransactions - Total number of transactions in the pool.
1627
- */
1628
- constructor(topTransactions, totalTransactions) {
1629
- super();
1630
- this.topTransactions = topTransactions;
1631
- this.totalTransactions = totalTransactions;
1632
- this.attribute_map = {
1633
- topTransactions: 'top-transactions',
1634
- totalTransactions: 'total-transactions',
1635
- };
1636
- }
1637
- // eslint-disable-next-line camelcase
1638
- static from_obj_for_encoding(data) {
1639
- /* eslint-disable dot-notation */
1640
- if (!Array.isArray(data['top-transactions']))
1641
- throw new Error(`Response is missing required array field 'top-transactions': ${data}`);
1642
- if (typeof data['total-transactions'] === 'undefined')
1643
- throw new Error(`Response is missing required field 'total-transactions': ${data}`);
1644
- return new PendingTransactionsResponse(data['top-transactions'], data['total-transactions']);
1645
- /* eslint-enable dot-notation */
1646
- }
1647
- }
1648
- exports.PendingTransactionsResponse = PendingTransactionsResponse;
1649
- /**
1650
- * Transaction ID of the submission.
1651
- */
1652
- class PostTransactionsResponse extends basemodel_1.default {
1653
- /**
1654
- * Creates a new `PostTransactionsResponse` object.
1655
- * @param txid - encoding of the transaction hash.
1656
- */
1657
- constructor(txid) {
1658
- super();
1659
- this.txid = txid;
1660
- this.attribute_map = {
1661
- txid: 'txId',
1662
- };
1663
- }
1664
- // eslint-disable-next-line camelcase
1665
- static from_obj_for_encoding(data) {
1666
- /* eslint-disable dot-notation */
1667
- if (typeof data['txId'] === 'undefined')
1668
- throw new Error(`Response is missing required field 'txId': ${data}`);
1669
- return new PostTransactionsResponse(data['txId']);
1670
- /* eslint-enable dot-notation */
1671
- }
1672
- }
1673
- exports.PostTransactionsResponse = PostTransactionsResponse;
1674
- /**
1675
- * Represents a state proof and its corresponding message
1676
- */
1677
- class StateProof extends basemodel_1.default {
1678
- /**
1679
- * Creates a new `StateProof` object.
1680
- * @param message - Represents the message that the state proofs are attesting to.
1681
- * @param stateproof - The encoded StateProof for the message.
1682
- */
1683
- constructor(message, stateproof) {
1684
- super();
1685
- this.message = message;
1686
- this.stateproof =
1687
- typeof stateproof === 'string'
1688
- ? new Uint8Array(Buffer.from(stateproof, 'base64'))
1689
- : stateproof;
1690
- this.attribute_map = {
1691
- message: 'Message',
1692
- stateproof: 'StateProof',
1693
- };
1694
- }
1695
- // eslint-disable-next-line camelcase
1696
- static from_obj_for_encoding(data) {
1697
- /* eslint-disable dot-notation */
1698
- if (typeof data['Message'] === 'undefined')
1699
- throw new Error(`Response is missing required field 'Message': ${data}`);
1700
- if (typeof data['StateProof'] === 'undefined')
1701
- throw new Error(`Response is missing required field 'StateProof': ${data}`);
1702
- return new StateProof(StateProofMessage.from_obj_for_encoding(data['Message']), data['StateProof']);
1703
- /* eslint-enable dot-notation */
1704
- }
1705
- }
1706
- exports.StateProof = StateProof;
1707
- /**
1708
- * Represents the message that the state proofs are attesting to.
1709
- */
1710
- class StateProofMessage extends basemodel_1.default {
1711
- /**
1712
- * Creates a new `StateProofMessage` object.
1713
- * @param blockheaderscommitment - The vector commitment root on all light block headers within a state proof
1714
- * interval.
1715
- * @param firstattestedround - The first round the message attests to.
1716
- * @param lastattestedround - The last round the message attests to.
1717
- * @param lnprovenweight - An integer value representing the natural log of the proven weight with 16 bits
1718
- * of precision. This value would be used to verify the next state proof.
1719
- * @param voterscommitment - The vector commitment root of the top N accounts to sign the next StateProof.
1720
- */
1721
- constructor({ blockheaderscommitment, firstattestedround, lastattestedround, lnprovenweight, voterscommitment, }) {
1722
- super();
1723
- this.blockheaderscommitment =
1724
- typeof blockheaderscommitment === 'string'
1725
- ? new Uint8Array(Buffer.from(blockheaderscommitment, 'base64'))
1726
- : blockheaderscommitment;
1727
- this.firstattestedround = firstattestedround;
1728
- this.lastattestedround = lastattestedround;
1729
- this.lnprovenweight = lnprovenweight;
1730
- this.voterscommitment =
1731
- typeof voterscommitment === 'string'
1732
- ? new Uint8Array(Buffer.from(voterscommitment, 'base64'))
1733
- : voterscommitment;
1734
- this.attribute_map = {
1735
- blockheaderscommitment: 'BlockHeadersCommitment',
1736
- firstattestedround: 'FirstAttestedRound',
1737
- lastattestedround: 'LastAttestedRound',
1738
- lnprovenweight: 'LnProvenWeight',
1739
- voterscommitment: 'VotersCommitment',
1740
- };
1741
- }
1742
- // eslint-disable-next-line camelcase
1743
- static from_obj_for_encoding(data) {
1744
- /* eslint-disable dot-notation */
1745
- if (typeof data['BlockHeadersCommitment'] === 'undefined')
1746
- throw new Error(`Response is missing required field 'BlockHeadersCommitment': ${data}`);
1747
- if (typeof data['FirstAttestedRound'] === 'undefined')
1748
- throw new Error(`Response is missing required field 'FirstAttestedRound': ${data}`);
1749
- if (typeof data['LastAttestedRound'] === 'undefined')
1750
- throw new Error(`Response is missing required field 'LastAttestedRound': ${data}`);
1751
- if (typeof data['LnProvenWeight'] === 'undefined')
1752
- throw new Error(`Response is missing required field 'LnProvenWeight': ${data}`);
1753
- if (typeof data['VotersCommitment'] === 'undefined')
1754
- throw new Error(`Response is missing required field 'VotersCommitment': ${data}`);
1755
- return new StateProofMessage({
1756
- blockheaderscommitment: data['BlockHeadersCommitment'],
1757
- firstattestedround: data['FirstAttestedRound'],
1758
- lastattestedround: data['LastAttestedRound'],
1759
- lnprovenweight: data['LnProvenWeight'],
1760
- voterscommitment: data['VotersCommitment'],
1761
- });
1762
- /* eslint-enable dot-notation */
1763
- }
1764
- }
1765
- exports.StateProofMessage = StateProofMessage;
1766
- /**
1767
- * Supply represents the current supply of MicroAlgos in the system.
1768
- */
1769
- class SupplyResponse extends basemodel_1.default {
1770
- /**
1771
- * Creates a new `SupplyResponse` object.
1772
- * @param currentRound - Round
1773
- * @param onlineMoney - OnlineMoney
1774
- * @param totalMoney - TotalMoney
1775
- */
1776
- constructor(currentRound, onlineMoney, totalMoney) {
1777
- super();
1778
- this.currentRound = currentRound;
1779
- this.onlineMoney = onlineMoney;
1780
- this.totalMoney = totalMoney;
1781
- this.attribute_map = {
1782
- currentRound: 'current_round',
1783
- onlineMoney: 'online-money',
1784
- totalMoney: 'total-money',
1785
- };
1786
- }
1787
- // eslint-disable-next-line camelcase
1788
- static from_obj_for_encoding(data) {
1789
- /* eslint-disable dot-notation */
1790
- if (typeof data['current_round'] === 'undefined')
1791
- throw new Error(`Response is missing required field 'current_round': ${data}`);
1792
- if (typeof data['online-money'] === 'undefined')
1793
- throw new Error(`Response is missing required field 'online-money': ${data}`);
1794
- if (typeof data['total-money'] === 'undefined')
1795
- throw new Error(`Response is missing required field 'total-money': ${data}`);
1796
- return new SupplyResponse(data['current_round'], data['online-money'], data['total-money']);
1797
- /* eslint-enable dot-notation */
1798
- }
1799
- }
1800
- exports.SupplyResponse = SupplyResponse;
1801
- /**
1802
- * Represents a key-value pair in an application store.
1803
- */
1804
- class TealKeyValue extends basemodel_1.default {
1805
- /**
1806
- * Creates a new `TealKeyValue` object.
1807
- * @param key -
1808
- * @param value - Represents a TEAL value.
1809
- */
1810
- constructor(key, value) {
1811
- super();
1812
- this.key = key;
1813
- this.value = value;
1814
- this.attribute_map = {
1815
- key: 'key',
1816
- value: 'value',
1817
- };
1818
- }
1819
- // eslint-disable-next-line camelcase
1820
- static from_obj_for_encoding(data) {
1821
- /* eslint-disable dot-notation */
1822
- if (typeof data['key'] === 'undefined')
1823
- throw new Error(`Response is missing required field 'key': ${data}`);
1824
- if (typeof data['value'] === 'undefined')
1825
- throw new Error(`Response is missing required field 'value': ${data}`);
1826
- return new TealKeyValue(data['key'], TealValue.from_obj_for_encoding(data['value']));
1827
- /* eslint-enable dot-notation */
1828
- }
1829
- }
1830
- exports.TealKeyValue = TealKeyValue;
1831
- /**
1832
- * Represents a TEAL value.
1833
- */
1834
- class TealValue extends basemodel_1.default {
1835
- /**
1836
- * Creates a new `TealValue` object.
1837
- * @param type - (tt) value type. Value `1` refers to **bytes**, value `2` refers to **uint**
1838
- * @param bytes - (tb) bytes value.
1839
- * @param uint - (ui) uint value.
1840
- */
1841
- constructor(type, bytes, uint) {
1842
- super();
1843
- this.type = type;
1844
- this.bytes = bytes;
1845
- this.uint = uint;
1846
- this.attribute_map = {
1847
- type: 'type',
1848
- bytes: 'bytes',
1849
- uint: 'uint',
1850
- };
1851
- }
1852
- // eslint-disable-next-line camelcase
1853
- static from_obj_for_encoding(data) {
1854
- /* eslint-disable dot-notation */
1855
- if (typeof data['type'] === 'undefined')
1856
- throw new Error(`Response is missing required field 'type': ${data}`);
1857
- if (typeof data['bytes'] === 'undefined')
1858
- throw new Error(`Response is missing required field 'bytes': ${data}`);
1859
- if (typeof data['uint'] === 'undefined')
1860
- throw new Error(`Response is missing required field 'uint': ${data}`);
1861
- return new TealValue(data['type'], data['bytes'], data['uint']);
1862
- /* eslint-enable dot-notation */
1863
- }
1864
- }
1865
- exports.TealValue = TealValue;
1866
- /**
1867
- * TransactionParams contains the parameters that help a client construct a new
1868
- * transaction.
1869
- */
1870
- class TransactionParametersResponse extends basemodel_1.default {
1871
- /**
1872
- * Creates a new `TransactionParametersResponse` object.
1873
- * @param consensusVersion - ConsensusVersion indicates the consensus protocol version
1874
- * as of LastRound.
1875
- * @param fee - Fee is the suggested transaction fee
1876
- * Fee is in units of micro-Algos per byte.
1877
- * Fee may fall to zero but transactions must still have a fee of
1878
- * at least MinTxnFee for the current network protocol.
1879
- * @param genesisHash - GenesisHash is the hash of the genesis block.
1880
- * @param genesisId - GenesisID is an ID listed in the genesis block.
1881
- * @param lastRound - LastRound indicates the last round seen
1882
- * @param minFee - The minimum transaction fee (not per byte) required for the
1883
- * txn to validate for the current network protocol.
1884
- */
1885
- constructor({ consensusVersion, fee, genesisHash, genesisId, lastRound, minFee, }) {
1886
- super();
1887
- this.consensusVersion = consensusVersion;
1888
- this.fee = fee;
1889
- this.genesisHash =
1890
- typeof genesisHash === 'string'
1891
- ? new Uint8Array(Buffer.from(genesisHash, 'base64'))
1892
- : genesisHash;
1893
- this.genesisId = genesisId;
1894
- this.lastRound = lastRound;
1895
- this.minFee = minFee;
1896
- this.attribute_map = {
1897
- consensusVersion: 'consensus-version',
1898
- fee: 'fee',
1899
- genesisHash: 'genesis-hash',
1900
- genesisId: 'genesis-id',
1901
- lastRound: 'last-round',
1902
- minFee: 'min-fee',
1903
- };
1904
- }
1905
- // eslint-disable-next-line camelcase
1906
- static from_obj_for_encoding(data) {
1907
- /* eslint-disable dot-notation */
1908
- if (typeof data['consensus-version'] === 'undefined')
1909
- throw new Error(`Response is missing required field 'consensus-version': ${data}`);
1910
- if (typeof data['fee'] === 'undefined')
1911
- throw new Error(`Response is missing required field 'fee': ${data}`);
1912
- if (typeof data['genesis-hash'] === 'undefined')
1913
- throw new Error(`Response is missing required field 'genesis-hash': ${data}`);
1914
- if (typeof data['genesis-id'] === 'undefined')
1915
- throw new Error(`Response is missing required field 'genesis-id': ${data}`);
1916
- if (typeof data['last-round'] === 'undefined')
1917
- throw new Error(`Response is missing required field 'last-round': ${data}`);
1918
- if (typeof data['min-fee'] === 'undefined')
1919
- throw new Error(`Response is missing required field 'min-fee': ${data}`);
1920
- return new TransactionParametersResponse({
1921
- consensusVersion: data['consensus-version'],
1922
- fee: data['fee'],
1923
- genesisHash: data['genesis-hash'],
1924
- genesisId: data['genesis-id'],
1925
- lastRound: data['last-round'],
1926
- minFee: data['min-fee'],
1927
- });
1928
- /* eslint-enable dot-notation */
1929
- }
1930
- }
1931
- exports.TransactionParametersResponse = TransactionParametersResponse;
1932
- /**
1933
- * Proof of transaction in a block.
1934
- */
1935
- class TransactionProofResponse extends basemodel_1.default {
1936
- /**
1937
- * Creates a new `TransactionProofResponse` object.
1938
- * @param idx - Index of the transaction in the block's payset.
1939
- * @param proof - Proof of transaction membership.
1940
- * @param stibhash - Hash of SignedTxnInBlock for verifying proof.
1941
- * @param treedepth - Represents the depth of the tree that is being proven, i.e. the number of edges
1942
- * from a leaf to the root.
1943
- * @param hashtype - The type of hash function used to create the proof, must be one of:
1944
- * * sha512_256
1945
- * * sha256
1946
- */
1947
- constructor({ idx, proof, stibhash, treedepth, hashtype, }) {
1948
- super();
1949
- this.idx = idx;
1950
- this.proof =
1951
- typeof proof === 'string'
1952
- ? new Uint8Array(Buffer.from(proof, 'base64'))
1953
- : proof;
1954
- this.stibhash =
1955
- typeof stibhash === 'string'
1956
- ? new Uint8Array(Buffer.from(stibhash, 'base64'))
1957
- : stibhash;
1958
- this.treedepth = treedepth;
1959
- this.hashtype = hashtype;
1960
- this.attribute_map = {
1961
- idx: 'idx',
1962
- proof: 'proof',
1963
- stibhash: 'stibhash',
1964
- treedepth: 'treedepth',
1965
- hashtype: 'hashtype',
1966
- };
1967
- }
1968
- // eslint-disable-next-line camelcase
1969
- static from_obj_for_encoding(data) {
1970
- /* eslint-disable dot-notation */
1971
- if (typeof data['idx'] === 'undefined')
1972
- throw new Error(`Response is missing required field 'idx': ${data}`);
1973
- if (typeof data['proof'] === 'undefined')
1974
- throw new Error(`Response is missing required field 'proof': ${data}`);
1975
- if (typeof data['stibhash'] === 'undefined')
1976
- throw new Error(`Response is missing required field 'stibhash': ${data}`);
1977
- if (typeof data['treedepth'] === 'undefined')
1978
- throw new Error(`Response is missing required field 'treedepth': ${data}`);
1979
- return new TransactionProofResponse({
1980
- idx: data['idx'],
1981
- proof: data['proof'],
1982
- stibhash: data['stibhash'],
1983
- treedepth: data['treedepth'],
1984
- hashtype: data['hashtype'],
1985
- });
1986
- /* eslint-enable dot-notation */
1987
- }
1988
- }
1989
- exports.TransactionProofResponse = TransactionProofResponse;
1990
- /**
1991
- * algod version information.
1992
- */
1993
- class Version extends basemodel_1.default {
1994
- /**
1995
- * Creates a new `Version` object.
1996
- * @param build -
1997
- * @param genesisHashB64 -
1998
- * @param genesisId -
1999
- * @param versions -
2000
- */
2001
- constructor(build, genesisHashB64, genesisId, versions) {
2002
- super();
2003
- this.build = build;
2004
- this.genesisHashB64 =
2005
- typeof genesisHashB64 === 'string'
2006
- ? new Uint8Array(Buffer.from(genesisHashB64, 'base64'))
2007
- : genesisHashB64;
2008
- this.genesisId = genesisId;
2009
- this.versions = versions;
2010
- this.attribute_map = {
2011
- build: 'build',
2012
- genesisHashB64: 'genesis_hash_b64',
2013
- genesisId: 'genesis_id',
2014
- versions: 'versions',
2015
- };
2016
- }
2017
- // eslint-disable-next-line camelcase
2018
- static from_obj_for_encoding(data) {
2019
- /* eslint-disable dot-notation */
2020
- if (typeof data['build'] === 'undefined')
2021
- throw new Error(`Response is missing required field 'build': ${data}`);
2022
- if (typeof data['genesis_hash_b64'] === 'undefined')
2023
- throw new Error(`Response is missing required field 'genesis_hash_b64': ${data}`);
2024
- if (typeof data['genesis_id'] === 'undefined')
2025
- throw new Error(`Response is missing required field 'genesis_id': ${data}`);
2026
- if (!Array.isArray(data['versions']))
2027
- throw new Error(`Response is missing required array field 'versions': ${data}`);
2028
- return new Version(BuildVersion.from_obj_for_encoding(data['build']), data['genesis_hash_b64'], data['genesis_id'], data['versions']);
2029
- /* eslint-enable dot-notation */
2030
- }
2031
- }
2032
- exports.Version = Version;
2033
- //# sourceMappingURL=types.js.map