algosdk 2.8.0 → 3.0.0-beta.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 (810) hide show
  1. package/README.md +8 -4
  2. package/dist/browser/algosdk.min.js +1 -1
  3. package/dist/browser/algosdk.min.js.LICENSE.txt +0 -9
  4. package/dist/browser/algosdk.min.js.map +1 -1
  5. package/dist/cjs/abi/abi_type.js +34 -27
  6. package/dist/cjs/abi/abi_type.js.map +1 -1
  7. package/dist/cjs/abi/contract.js +5 -3
  8. package/dist/cjs/abi/contract.js.map +1 -1
  9. package/dist/cjs/{types/transactions/asset.js → abi/event.js} +1 -1
  10. package/dist/cjs/abi/event.js.map +1 -0
  11. package/dist/cjs/abi/index.js +6 -6
  12. package/dist/cjs/abi/index.js.map +1 -1
  13. package/dist/cjs/abi/interface.js +3 -3
  14. package/dist/cjs/abi/interface.js.map +1 -1
  15. package/dist/cjs/abi/method.js +14 -10
  16. package/dist/cjs/abi/method.js.map +1 -1
  17. package/dist/cjs/abi/reference.js +1 -1
  18. package/dist/cjs/abi/reference.js.map +1 -1
  19. package/dist/cjs/abi/transaction.js +2 -2
  20. package/dist/cjs/abi/transaction.js.map +1 -1
  21. package/dist/cjs/account.js +4 -4
  22. package/dist/cjs/account.js.map +1 -1
  23. package/dist/cjs/boxStorage.js +17 -17
  24. package/dist/cjs/boxStorage.js.map +1 -1
  25. package/dist/cjs/client/client.js +77 -41
  26. package/dist/cjs/client/client.js.map +1 -1
  27. package/dist/cjs/client/index.js +29 -0
  28. package/dist/cjs/client/index.js.map +1 -0
  29. package/dist/cjs/client/kmd.js +69 -86
  30. package/dist/cjs/client/kmd.js.map +1 -1
  31. package/dist/cjs/client/urlTokenBaseHTTPClient.js +16 -11
  32. package/dist/cjs/client/urlTokenBaseHTTPClient.js.map +1 -1
  33. package/dist/cjs/client/v2/algod/accountApplicationInformation.js +11 -7
  34. package/dist/cjs/client/v2/algod/accountApplicationInformation.js.map +1 -1
  35. package/dist/cjs/client/v2/algod/accountAssetInformation.js +11 -7
  36. package/dist/cjs/client/v2/algod/accountAssetInformation.js.map +1 -1
  37. package/dist/cjs/client/v2/algod/accountInformation.js +11 -6
  38. package/dist/cjs/client/v2/algod/accountInformation.js.map +1 -1
  39. package/dist/cjs/client/v2/algod/algod.js +85 -83
  40. package/dist/cjs/client/v2/algod/algod.js.map +1 -1
  41. package/dist/cjs/client/v2/algod/block.js +6 -33
  42. package/dist/cjs/client/v2/algod/block.js.map +1 -1
  43. package/dist/cjs/client/v2/algod/compile.js +17 -11
  44. package/dist/cjs/client/v2/algod/compile.js.map +1 -1
  45. package/dist/cjs/client/v2/algod/disassemble.js +17 -11
  46. package/dist/cjs/client/v2/algod/disassemble.js.map +1 -1
  47. package/dist/cjs/client/v2/algod/dryrun.js +18 -37
  48. package/dist/cjs/client/v2/algod/dryrun.js.map +1 -1
  49. package/dist/cjs/client/v2/algod/genesis.js +6 -2
  50. package/dist/cjs/client/v2/algod/genesis.js.map +1 -1
  51. package/dist/cjs/client/v2/algod/getApplicationBoxByName.js +10 -10
  52. package/dist/cjs/client/v2/algod/getApplicationBoxByName.js.map +1 -1
  53. package/dist/cjs/client/v2/algod/getApplicationBoxes.js +8 -8
  54. package/dist/cjs/client/v2/algod/getApplicationBoxes.js.map +1 -1
  55. package/dist/cjs/client/v2/algod/getApplicationByID.js +10 -5
  56. package/dist/cjs/client/v2/algod/getApplicationByID.js.map +1 -1
  57. package/dist/cjs/client/v2/algod/getAssetByID.js +10 -5
  58. package/dist/cjs/client/v2/algod/getAssetByID.js.map +1 -1
  59. package/dist/cjs/client/v2/algod/getBlockHash.js +10 -6
  60. package/dist/cjs/client/v2/algod/getBlockHash.js.map +1 -1
  61. package/dist/cjs/client/v2/algod/getBlockOffsetTimestamp.js +6 -5
  62. package/dist/cjs/client/v2/algod/getBlockOffsetTimestamp.js.map +1 -1
  63. package/dist/cjs/client/v2/algod/getBlockTxids.js +10 -4
  64. package/dist/cjs/client/v2/algod/getBlockTxids.js.map +1 -1
  65. package/dist/cjs/client/v2/algod/getLedgerStateDelta.js +11 -6
  66. package/dist/cjs/client/v2/algod/getLedgerStateDelta.js.map +1 -1
  67. package/dist/cjs/client/v2/algod/getLedgerStateDeltaForTransactionGroup.js +11 -6
  68. package/dist/cjs/client/v2/algod/getLedgerStateDeltaForTransactionGroup.js.map +1 -1
  69. package/dist/cjs/client/v2/algod/getSyncRound.js +6 -5
  70. package/dist/cjs/client/v2/algod/getSyncRound.js.map +1 -1
  71. package/dist/cjs/client/v2/algod/getTransactionGroupLedgerStateDeltasForRound.js +9 -9
  72. package/dist/cjs/client/v2/algod/getTransactionGroupLedgerStateDeltasForRound.js.map +1 -1
  73. package/dist/cjs/client/v2/algod/getTransactionProof.js +10 -6
  74. package/dist/cjs/client/v2/algod/getTransactionProof.js.map +1 -1
  75. package/dist/cjs/client/v2/algod/healthCheck.js +4 -9
  76. package/dist/cjs/client/v2/algod/healthCheck.js.map +1 -1
  77. package/dist/cjs/{types → client/v2/algod}/index.js +5 -3
  78. package/dist/cjs/client/v2/algod/index.js.map +1 -0
  79. package/dist/cjs/client/v2/algod/lightBlockHeaderProof.js +10 -5
  80. package/dist/cjs/client/v2/algod/lightBlockHeaderProof.js.map +1 -1
  81. package/dist/cjs/client/v2/algod/models/types.js +3712 -1824
  82. package/dist/cjs/client/v2/algod/models/types.js.map +1 -1
  83. package/dist/cjs/client/v2/algod/pendingTransactionInformation.js +6 -32
  84. package/dist/cjs/client/v2/algod/pendingTransactionInformation.js.map +1 -1
  85. package/dist/cjs/client/v2/algod/pendingTransactions.js +6 -31
  86. package/dist/cjs/client/v2/algod/pendingTransactions.js.map +1 -1
  87. package/dist/cjs/client/v2/algod/pendingTransactionsByAddress.js +7 -33
  88. package/dist/cjs/client/v2/algod/pendingTransactionsByAddress.js.map +1 -1
  89. package/dist/cjs/client/v2/algod/ready.js +4 -2
  90. package/dist/cjs/client/v2/algod/ready.js.map +1 -1
  91. package/dist/cjs/client/v2/algod/sendRawTransaction.js +17 -8
  92. package/dist/cjs/client/v2/algod/sendRawTransaction.js.map +1 -1
  93. package/dist/cjs/client/v2/algod/setBlockOffsetTimestamp.js +13 -8
  94. package/dist/cjs/client/v2/algod/setBlockOffsetTimestamp.js.map +1 -1
  95. package/dist/cjs/client/v2/algod/setSyncRound.js +13 -8
  96. package/dist/cjs/client/v2/algod/setSyncRound.js.map +1 -1
  97. package/dist/cjs/client/v2/algod/simulateTransaction.js +15 -35
  98. package/dist/cjs/client/v2/algod/simulateTransaction.js.map +1 -1
  99. package/dist/cjs/client/v2/algod/stateproof.js +10 -5
  100. package/dist/cjs/client/v2/algod/stateproof.js.map +1 -1
  101. package/dist/cjs/client/v2/algod/status.js +8 -2
  102. package/dist/cjs/client/v2/algod/status.js.map +1 -1
  103. package/dist/cjs/client/v2/algod/statusAfterBlock.js +10 -5
  104. package/dist/cjs/client/v2/algod/statusAfterBlock.js.map +1 -1
  105. package/dist/cjs/client/v2/algod/suggestedParams.js +13 -9
  106. package/dist/cjs/client/v2/algod/suggestedParams.js.map +1 -1
  107. package/dist/cjs/client/v2/algod/supply.js +8 -2
  108. package/dist/cjs/client/v2/algod/supply.js.map +1 -1
  109. package/dist/cjs/client/v2/algod/unsetSyncRound.js +11 -5
  110. package/dist/cjs/client/v2/algod/unsetSyncRound.js.map +1 -1
  111. package/dist/cjs/client/v2/algod/versions.js +8 -2
  112. package/dist/cjs/client/v2/algod/versions.js.map +1 -1
  113. package/dist/cjs/client/v2/indexer/index.js +22 -0
  114. package/dist/cjs/client/v2/indexer/index.js.map +1 -0
  115. package/dist/cjs/client/v2/indexer/indexer.js +44 -43
  116. package/dist/cjs/client/v2/indexer/indexer.js.map +1 -1
  117. package/dist/cjs/client/v2/indexer/lookupAccountAppLocalStates.js +11 -6
  118. package/dist/cjs/client/v2/indexer/lookupAccountAppLocalStates.js.map +1 -1
  119. package/dist/cjs/client/v2/indexer/lookupAccountAssets.js +11 -6
  120. package/dist/cjs/client/v2/indexer/lookupAccountAssets.js.map +1 -1
  121. package/dist/cjs/client/v2/indexer/lookupAccountByID.js +11 -6
  122. package/dist/cjs/client/v2/indexer/lookupAccountByID.js.map +1 -1
  123. package/dist/cjs/client/v2/indexer/lookupAccountCreatedApplications.js +11 -6
  124. package/dist/cjs/client/v2/indexer/lookupAccountCreatedApplications.js.map +1 -1
  125. package/dist/cjs/client/v2/indexer/lookupAccountCreatedAssets.js +11 -6
  126. package/dist/cjs/client/v2/indexer/lookupAccountCreatedAssets.js.map +1 -1
  127. package/dist/cjs/client/v2/indexer/lookupAccountTransactions.js +19 -12
  128. package/dist/cjs/client/v2/indexer/lookupAccountTransactions.js.map +1 -1
  129. package/dist/cjs/client/v2/indexer/lookupApplicationBoxByIDandName.js +10 -10
  130. package/dist/cjs/client/v2/indexer/lookupApplicationBoxByIDandName.js.map +1 -1
  131. package/dist/cjs/client/v2/indexer/lookupApplicationLogs.js +10 -5
  132. package/dist/cjs/client/v2/indexer/lookupApplicationLogs.js.map +1 -1
  133. package/dist/cjs/client/v2/indexer/lookupApplications.js +10 -5
  134. package/dist/cjs/client/v2/indexer/lookupApplications.js.map +1 -1
  135. package/dist/cjs/client/v2/indexer/lookupAssetBalances.js +10 -5
  136. package/dist/cjs/client/v2/indexer/lookupAssetBalances.js.map +1 -1
  137. package/dist/cjs/client/v2/indexer/lookupAssetByID.js +10 -5
  138. package/dist/cjs/client/v2/indexer/lookupAssetByID.js.map +1 -1
  139. package/dist/cjs/client/v2/indexer/lookupAssetTransactions.js +19 -12
  140. package/dist/cjs/client/v2/indexer/lookupAssetTransactions.js.map +1 -1
  141. package/dist/cjs/client/v2/indexer/lookupBlock.js +10 -5
  142. package/dist/cjs/client/v2/indexer/lookupBlock.js.map +1 -1
  143. package/dist/cjs/client/v2/indexer/lookupTransactionByID.js +10 -5
  144. package/dist/cjs/client/v2/indexer/lookupTransactionByID.js.map +1 -1
  145. package/dist/cjs/client/v2/indexer/makeHealthCheck.js +8 -2
  146. package/dist/cjs/client/v2/indexer/makeHealthCheck.js.map +1 -1
  147. package/dist/cjs/client/v2/indexer/models/types.js +3591 -1651
  148. package/dist/cjs/client/v2/indexer/models/types.js.map +1 -1
  149. package/dist/cjs/client/v2/indexer/searchAccounts.js +9 -3
  150. package/dist/cjs/client/v2/indexer/searchAccounts.js.map +1 -1
  151. package/dist/cjs/client/v2/indexer/searchForApplicationBoxes.js +8 -8
  152. package/dist/cjs/client/v2/indexer/searchForApplicationBoxes.js.map +1 -1
  153. package/dist/cjs/client/v2/indexer/searchForApplications.js +9 -3
  154. package/dist/cjs/client/v2/indexer/searchForApplications.js.map +1 -1
  155. package/dist/cjs/client/v2/indexer/searchForAssets.js +9 -3
  156. package/dist/cjs/client/v2/indexer/searchForAssets.js.map +1 -1
  157. package/dist/cjs/client/v2/indexer/searchForTransactions.js +17 -9
  158. package/dist/cjs/client/v2/indexer/searchForTransactions.js.map +1 -1
  159. package/dist/cjs/client/v2/jsonrequest.js +22 -54
  160. package/dist/cjs/client/v2/jsonrequest.js.map +1 -1
  161. package/dist/cjs/client/v2/serviceClient.js +5 -25
  162. package/dist/cjs/client/v2/serviceClient.js.map +1 -1
  163. package/dist/cjs/client/v2/untypedmodel.js +22 -0
  164. package/dist/cjs/client/v2/untypedmodel.js.map +1 -0
  165. package/dist/cjs/composer.js +64 -58
  166. package/dist/cjs/composer.js.map +1 -1
  167. package/dist/cjs/convert.js.map +1 -1
  168. package/dist/cjs/dryrun.js +107 -203
  169. package/dist/cjs/dryrun.js.map +1 -1
  170. package/dist/cjs/encoding/address.js +88 -104
  171. package/dist/cjs/encoding/address.js.map +1 -1
  172. package/dist/cjs/encoding/bigint.js +2 -3
  173. package/dist/cjs/encoding/bigint.js.map +1 -1
  174. package/dist/cjs/encoding/binarydata.js +82 -0
  175. package/dist/cjs/encoding/binarydata.js.map +1 -0
  176. package/dist/cjs/encoding/encoding.js +353 -38
  177. package/dist/cjs/encoding/encoding.js.map +1 -1
  178. package/dist/cjs/encoding/schema/address.js +41 -0
  179. package/dist/cjs/encoding/schema/address.js.map +1 -0
  180. package/dist/cjs/encoding/schema/array.js +43 -0
  181. package/dist/cjs/encoding/schema/array.js.map +1 -0
  182. package/dist/cjs/encoding/schema/binarystring.js +55 -0
  183. package/dist/cjs/encoding/schema/binarystring.js.map +1 -0
  184. package/dist/cjs/encoding/schema/blockhash.js +67 -0
  185. package/dist/cjs/encoding/schema/blockhash.js.map +1 -0
  186. package/dist/cjs/encoding/schema/boolean.js +42 -0
  187. package/dist/cjs/encoding/schema/boolean.js.map +1 -0
  188. package/dist/cjs/encoding/schema/bytearray.js +98 -0
  189. package/dist/cjs/encoding/schema/bytearray.js.map +1 -0
  190. package/dist/cjs/encoding/schema/index.js +34 -0
  191. package/dist/cjs/encoding/schema/index.js.map +1 -0
  192. package/dist/cjs/encoding/schema/map.js +528 -0
  193. package/dist/cjs/encoding/schema/map.js.map +1 -0
  194. package/dist/cjs/encoding/schema/optional.js +58 -0
  195. package/dist/cjs/encoding/schema/optional.js.map +1 -0
  196. package/dist/cjs/encoding/schema/string.js +43 -0
  197. package/dist/cjs/encoding/schema/string.js.map +1 -0
  198. package/dist/cjs/encoding/schema/uint64.js +36 -0
  199. package/dist/cjs/encoding/schema/uint64.js.map +1 -0
  200. package/dist/cjs/encoding/schema/untyped.js +33 -0
  201. package/dist/cjs/encoding/schema/untyped.js.map +1 -0
  202. package/dist/cjs/encoding/uint64.js +2 -2
  203. package/dist/cjs/encoding/uint64.js.map +1 -1
  204. package/dist/cjs/group.js +23 -60
  205. package/dist/cjs/group.js.map +1 -1
  206. package/dist/cjs/index.js +2 -2
  207. package/dist/cjs/index.js.map +1 -1
  208. package/dist/cjs/logic/sourcemap.js +56 -25
  209. package/dist/cjs/logic/sourcemap.js.map +1 -1
  210. package/dist/cjs/logicsig.js +113 -146
  211. package/dist/cjs/logicsig.js.map +1 -1
  212. package/dist/cjs/main.js +113 -122
  213. package/dist/cjs/main.js.map +1 -1
  214. package/dist/cjs/makeTxn.js +320 -554
  215. package/dist/cjs/makeTxn.js.map +1 -1
  216. package/dist/cjs/mnemonic/mnemonic.js +8 -8
  217. package/dist/cjs/mnemonic/mnemonic.js.map +1 -1
  218. package/dist/cjs/multisig.js +60 -312
  219. package/dist/cjs/multisig.js.map +1 -1
  220. package/dist/cjs/multisigSigning.js +285 -0
  221. package/dist/cjs/multisigSigning.js.map +1 -0
  222. package/dist/cjs/nacl/naclWrappers.js +2 -2
  223. package/dist/cjs/nacl/naclWrappers.js.map +1 -1
  224. package/dist/cjs/signedTransaction.js +106 -0
  225. package/dist/cjs/signedTransaction.js.map +1 -0
  226. package/dist/cjs/signer.js +7 -7
  227. package/dist/cjs/signer.js.map +1 -1
  228. package/dist/cjs/signing.js +105 -0
  229. package/dist/cjs/signing.js.map +1 -0
  230. package/dist/cjs/stateproof.js +421 -0
  231. package/dist/cjs/stateproof.js.map +1 -0
  232. package/dist/cjs/transaction.js +724 -1009
  233. package/dist/cjs/transaction.js.map +1 -1
  234. package/dist/cjs/types/block.js +813 -0
  235. package/dist/cjs/types/block.js.map +1 -0
  236. package/dist/cjs/types/intDecoding.js +1 -1
  237. package/dist/cjs/types/intDecoding.js.map +1 -1
  238. package/dist/cjs/types/statedelta.js +1155 -0
  239. package/dist/cjs/types/statedelta.js.map +1 -0
  240. package/dist/cjs/types/transactions/base.js +22 -5
  241. package/dist/cjs/types/transactions/base.js.map +1 -1
  242. package/dist/cjs/types/transactions/encoded.js +67 -0
  243. package/dist/cjs/types/transactions/encoded.js.map +1 -1
  244. package/dist/cjs/types/transactions/index.js +2 -5
  245. package/dist/cjs/types/transactions/index.js.map +1 -1
  246. package/dist/cjs/utils/utils.js +86 -22
  247. package/dist/cjs/utils/utils.js.map +1 -1
  248. package/dist/cjs/wait.js +4 -4
  249. package/dist/cjs/wait.js.map +1 -1
  250. package/dist/esm/abi/abi_type.js +22 -15
  251. package/dist/esm/abi/abi_type.js.map +1 -1
  252. package/dist/esm/abi/contract.js +3 -1
  253. package/dist/esm/abi/contract.js.map +1 -1
  254. package/dist/esm/abi/event.js +2 -0
  255. package/dist/esm/abi/event.js.map +1 -0
  256. package/dist/esm/abi/index.js +6 -6
  257. package/dist/esm/abi/index.js.map +1 -1
  258. package/dist/esm/abi/interface.js +1 -1
  259. package/dist/esm/abi/interface.js.map +1 -1
  260. package/dist/esm/abi/method.js +8 -4
  261. package/dist/esm/abi/method.js.map +1 -1
  262. package/dist/esm/abi/transaction.js +1 -1
  263. package/dist/esm/abi/transaction.js.map +1 -1
  264. package/dist/esm/account.js +4 -4
  265. package/dist/esm/account.js.map +1 -1
  266. package/dist/esm/boxStorage.js +15 -15
  267. package/dist/esm/boxStorage.js.map +1 -1
  268. package/dist/esm/client/client.js +74 -40
  269. package/dist/esm/client/client.js.map +1 -1
  270. package/dist/esm/client/index.js +7 -0
  271. package/dist/esm/client/index.js.map +1 -0
  272. package/dist/esm/client/kmd.js +67 -62
  273. package/dist/esm/client/kmd.js.map +1 -1
  274. package/dist/esm/client/urlTokenBaseHTTPClient.js +16 -11
  275. package/dist/esm/client/urlTokenBaseHTTPClient.js.map +1 -1
  276. package/dist/esm/client/v2/algod/accountApplicationInformation.js +10 -6
  277. package/dist/esm/client/v2/algod/accountApplicationInformation.js.map +1 -1
  278. package/dist/esm/client/v2/algod/accountAssetInformation.js +10 -6
  279. package/dist/esm/client/v2/algod/accountAssetInformation.js.map +1 -1
  280. package/dist/esm/client/v2/algod/accountInformation.js +10 -5
  281. package/dist/esm/client/v2/algod/accountInformation.js.map +1 -1
  282. package/dist/esm/client/v2/algod/algod.js +71 -70
  283. package/dist/esm/client/v2/algod/algod.js.map +1 -1
  284. package/dist/esm/client/v2/algod/block.js +5 -9
  285. package/dist/esm/client/v2/algod/block.js.map +1 -1
  286. package/dist/esm/client/v2/algod/compile.js +16 -10
  287. package/dist/esm/client/v2/algod/compile.js.map +1 -1
  288. package/dist/esm/client/v2/algod/disassemble.js +16 -10
  289. package/dist/esm/client/v2/algod/disassemble.js.map +1 -1
  290. package/dist/esm/client/v2/algod/dryrun.js +16 -12
  291. package/dist/esm/client/v2/algod/dryrun.js.map +1 -1
  292. package/dist/esm/client/v2/algod/genesis.js +5 -1
  293. package/dist/esm/client/v2/algod/genesis.js.map +1 -1
  294. package/dist/esm/client/v2/algod/getApplicationBoxByName.js +9 -9
  295. package/dist/esm/client/v2/algod/getApplicationBoxByName.js.map +1 -1
  296. package/dist/esm/client/v2/algod/getApplicationBoxes.js +7 -7
  297. package/dist/esm/client/v2/algod/getApplicationBoxes.js.map +1 -1
  298. package/dist/esm/client/v2/algod/getApplicationByID.js +9 -4
  299. package/dist/esm/client/v2/algod/getApplicationByID.js.map +1 -1
  300. package/dist/esm/client/v2/algod/getAssetByID.js +9 -4
  301. package/dist/esm/client/v2/algod/getAssetByID.js.map +1 -1
  302. package/dist/esm/client/v2/algod/getBlockHash.js +9 -5
  303. package/dist/esm/client/v2/algod/getBlockHash.js.map +1 -1
  304. package/dist/esm/client/v2/algod/getBlockOffsetTimestamp.js +5 -4
  305. package/dist/esm/client/v2/algod/getBlockOffsetTimestamp.js.map +1 -1
  306. package/dist/esm/client/v2/algod/getBlockTxids.js +9 -3
  307. package/dist/esm/client/v2/algod/getBlockTxids.js.map +1 -1
  308. package/dist/esm/client/v2/algod/getLedgerStateDelta.js +10 -5
  309. package/dist/esm/client/v2/algod/getLedgerStateDelta.js.map +1 -1
  310. package/dist/esm/client/v2/algod/getLedgerStateDeltaForTransactionGroup.js +10 -5
  311. package/dist/esm/client/v2/algod/getLedgerStateDeltaForTransactionGroup.js.map +1 -1
  312. package/dist/esm/client/v2/algod/getSyncRound.js +5 -4
  313. package/dist/esm/client/v2/algod/getSyncRound.js.map +1 -1
  314. package/dist/esm/client/v2/algod/getTransactionGroupLedgerStateDeltasForRound.js +8 -8
  315. package/dist/esm/client/v2/algod/getTransactionGroupLedgerStateDeltasForRound.js.map +1 -1
  316. package/dist/esm/client/v2/algod/getTransactionProof.js +9 -5
  317. package/dist/esm/client/v2/algod/getTransactionProof.js.map +1 -1
  318. package/dist/esm/client/v2/algod/healthCheck.js +3 -8
  319. package/dist/esm/client/v2/algod/healthCheck.js.map +1 -1
  320. package/dist/esm/client/v2/algod/index.js +4 -0
  321. package/dist/esm/client/v2/algod/index.js.map +1 -0
  322. package/dist/esm/client/v2/algod/lightBlockHeaderProof.js +9 -4
  323. package/dist/esm/client/v2/algod/lightBlockHeaderProof.js.map +1 -1
  324. package/dist/esm/client/v2/algod/models/types.js +3712 -1821
  325. package/dist/esm/client/v2/algod/models/types.js.map +1 -1
  326. package/dist/esm/client/v2/algod/pendingTransactionInformation.js +5 -8
  327. package/dist/esm/client/v2/algod/pendingTransactionInformation.js.map +1 -1
  328. package/dist/esm/client/v2/algod/pendingTransactions.js +5 -7
  329. package/dist/esm/client/v2/algod/pendingTransactions.js.map +1 -1
  330. package/dist/esm/client/v2/algod/pendingTransactionsByAddress.js +6 -9
  331. package/dist/esm/client/v2/algod/pendingTransactionsByAddress.js.map +1 -1
  332. package/dist/esm/client/v2/algod/ready.js +3 -1
  333. package/dist/esm/client/v2/algod/ready.js.map +1 -1
  334. package/dist/esm/client/v2/algod/sendRawTransaction.js +15 -6
  335. package/dist/esm/client/v2/algod/sendRawTransaction.js.map +1 -1
  336. package/dist/esm/client/v2/algod/setBlockOffsetTimestamp.js +12 -7
  337. package/dist/esm/client/v2/algod/setBlockOffsetTimestamp.js.map +1 -1
  338. package/dist/esm/client/v2/algod/setSyncRound.js +12 -7
  339. package/dist/esm/client/v2/algod/setSyncRound.js.map +1 -1
  340. package/dist/esm/client/v2/algod/simulateTransaction.js +14 -11
  341. package/dist/esm/client/v2/algod/simulateTransaction.js.map +1 -1
  342. package/dist/esm/client/v2/algod/stateproof.js +9 -4
  343. package/dist/esm/client/v2/algod/stateproof.js.map +1 -1
  344. package/dist/esm/client/v2/algod/status.js +7 -1
  345. package/dist/esm/client/v2/algod/status.js.map +1 -1
  346. package/dist/esm/client/v2/algod/statusAfterBlock.js +9 -4
  347. package/dist/esm/client/v2/algod/statusAfterBlock.js.map +1 -1
  348. package/dist/esm/client/v2/algod/suggestedParams.js +12 -8
  349. package/dist/esm/client/v2/algod/suggestedParams.js.map +1 -1
  350. package/dist/esm/client/v2/algod/supply.js +7 -1
  351. package/dist/esm/client/v2/algod/supply.js.map +1 -1
  352. package/dist/esm/client/v2/algod/unsetSyncRound.js +10 -4
  353. package/dist/esm/client/v2/algod/unsetSyncRound.js.map +1 -1
  354. package/dist/esm/client/v2/algod/versions.js +7 -1
  355. package/dist/esm/client/v2/algod/versions.js.map +1 -1
  356. package/dist/esm/client/v2/indexer/index.js +4 -0
  357. package/dist/esm/client/v2/indexer/index.js.map +1 -0
  358. package/dist/esm/client/v2/indexer/indexer.js +42 -42
  359. package/dist/esm/client/v2/indexer/indexer.js.map +1 -1
  360. package/dist/esm/client/v2/indexer/lookupAccountAppLocalStates.js +10 -5
  361. package/dist/esm/client/v2/indexer/lookupAccountAppLocalStates.js.map +1 -1
  362. package/dist/esm/client/v2/indexer/lookupAccountAssets.js +10 -5
  363. package/dist/esm/client/v2/indexer/lookupAccountAssets.js.map +1 -1
  364. package/dist/esm/client/v2/indexer/lookupAccountByID.js +10 -5
  365. package/dist/esm/client/v2/indexer/lookupAccountByID.js.map +1 -1
  366. package/dist/esm/client/v2/indexer/lookupAccountCreatedApplications.js +10 -5
  367. package/dist/esm/client/v2/indexer/lookupAccountCreatedApplications.js.map +1 -1
  368. package/dist/esm/client/v2/indexer/lookupAccountCreatedAssets.js +10 -5
  369. package/dist/esm/client/v2/indexer/lookupAccountCreatedAssets.js.map +1 -1
  370. package/dist/esm/client/v2/indexer/lookupAccountTransactions.js +18 -11
  371. package/dist/esm/client/v2/indexer/lookupAccountTransactions.js.map +1 -1
  372. package/dist/esm/client/v2/indexer/lookupApplicationBoxByIDandName.js +9 -9
  373. package/dist/esm/client/v2/indexer/lookupApplicationBoxByIDandName.js.map +1 -1
  374. package/dist/esm/client/v2/indexer/lookupApplicationLogs.js +9 -4
  375. package/dist/esm/client/v2/indexer/lookupApplicationLogs.js.map +1 -1
  376. package/dist/esm/client/v2/indexer/lookupApplications.js +9 -4
  377. package/dist/esm/client/v2/indexer/lookupApplications.js.map +1 -1
  378. package/dist/esm/client/v2/indexer/lookupAssetBalances.js +9 -4
  379. package/dist/esm/client/v2/indexer/lookupAssetBalances.js.map +1 -1
  380. package/dist/esm/client/v2/indexer/lookupAssetByID.js +9 -4
  381. package/dist/esm/client/v2/indexer/lookupAssetByID.js.map +1 -1
  382. package/dist/esm/client/v2/indexer/lookupAssetTransactions.js +17 -10
  383. package/dist/esm/client/v2/indexer/lookupAssetTransactions.js.map +1 -1
  384. package/dist/esm/client/v2/indexer/lookupBlock.js +9 -4
  385. package/dist/esm/client/v2/indexer/lookupBlock.js.map +1 -1
  386. package/dist/esm/client/v2/indexer/lookupTransactionByID.js +9 -4
  387. package/dist/esm/client/v2/indexer/lookupTransactionByID.js.map +1 -1
  388. package/dist/esm/client/v2/indexer/makeHealthCheck.js +7 -1
  389. package/dist/esm/client/v2/indexer/makeHealthCheck.js.map +1 -1
  390. package/dist/esm/client/v2/indexer/models/types.js +3591 -1648
  391. package/dist/esm/client/v2/indexer/models/types.js.map +1 -1
  392. package/dist/esm/client/v2/indexer/searchAccounts.js +8 -2
  393. package/dist/esm/client/v2/indexer/searchAccounts.js.map +1 -1
  394. package/dist/esm/client/v2/indexer/searchForApplicationBoxes.js +7 -7
  395. package/dist/esm/client/v2/indexer/searchForApplicationBoxes.js.map +1 -1
  396. package/dist/esm/client/v2/indexer/searchForApplications.js +8 -2
  397. package/dist/esm/client/v2/indexer/searchForApplications.js.map +1 -1
  398. package/dist/esm/client/v2/indexer/searchForAssets.js +8 -2
  399. package/dist/esm/client/v2/indexer/searchForAssets.js.map +1 -1
  400. package/dist/esm/client/v2/indexer/searchForTransactions.js +15 -7
  401. package/dist/esm/client/v2/indexer/searchForTransactions.js.map +1 -1
  402. package/dist/esm/client/v2/jsonrequest.js +22 -51
  403. package/dist/esm/client/v2/jsonrequest.js.map +1 -1
  404. package/dist/esm/client/v2/serviceClient.js +3 -20
  405. package/dist/esm/client/v2/serviceClient.js.map +1 -1
  406. package/dist/esm/client/v2/untypedmodel.js +18 -0
  407. package/dist/esm/client/v2/untypedmodel.js.map +1 -0
  408. package/dist/esm/composer.js +43 -37
  409. package/dist/esm/composer.js.map +1 -1
  410. package/dist/esm/convert.js.map +1 -1
  411. package/dist/esm/dryrun.js +98 -195
  412. package/dist/esm/dryrun.js.map +1 -1
  413. package/dist/esm/encoding/address.js +85 -100
  414. package/dist/esm/encoding/address.js.map +1 -1
  415. package/dist/esm/encoding/bigint.js +2 -3
  416. package/dist/esm/encoding/bigint.js.map +1 -1
  417. package/dist/esm/encoding/binarydata.js +73 -0
  418. package/dist/esm/encoding/binarydata.js.map +1 -0
  419. package/dist/esm/encoding/encoding.js +337 -12
  420. package/dist/esm/encoding/encoding.js.map +1 -1
  421. package/dist/esm/encoding/schema/address.js +37 -0
  422. package/dist/esm/encoding/schema/address.js.map +1 -0
  423. package/dist/esm/encoding/schema/array.js +39 -0
  424. package/dist/esm/encoding/schema/array.js.map +1 -0
  425. package/dist/esm/encoding/schema/binarystring.js +51 -0
  426. package/dist/esm/encoding/schema/binarystring.js.map +1 -0
  427. package/dist/esm/encoding/schema/blockhash.js +60 -0
  428. package/dist/esm/encoding/schema/blockhash.js.map +1 -0
  429. package/dist/esm/encoding/schema/boolean.js +38 -0
  430. package/dist/esm/encoding/schema/boolean.js.map +1 -0
  431. package/dist/esm/encoding/schema/bytearray.js +93 -0
  432. package/dist/esm/encoding/schema/bytearray.js.map +1 -0
  433. package/dist/esm/encoding/schema/index.js +12 -0
  434. package/dist/esm/encoding/schema/index.js.map +1 -0
  435. package/dist/esm/encoding/schema/map.js +517 -0
  436. package/dist/esm/encoding/schema/map.js.map +1 -0
  437. package/dist/esm/encoding/schema/optional.js +54 -0
  438. package/dist/esm/encoding/schema/optional.js.map +1 -0
  439. package/dist/esm/encoding/schema/string.js +39 -0
  440. package/dist/esm/encoding/schema/string.js.map +1 -0
  441. package/dist/esm/encoding/schema/uint64.js +32 -0
  442. package/dist/esm/encoding/schema/uint64.js.map +1 -0
  443. package/dist/esm/encoding/schema/untyped.js +29 -0
  444. package/dist/esm/encoding/schema/untyped.js.map +1 -0
  445. package/dist/esm/encoding/uint64.js +1 -1
  446. package/dist/esm/encoding/uint64.js.map +1 -1
  447. package/dist/esm/group.js +22 -58
  448. package/dist/esm/group.js.map +1 -1
  449. package/dist/esm/index.js +2 -2
  450. package/dist/esm/index.js.map +1 -1
  451. package/dist/esm/logic/sourcemap.js +54 -23
  452. package/dist/esm/logic/sourcemap.js.map +1 -1
  453. package/dist/esm/logicsig.js +110 -141
  454. package/dist/esm/logicsig.js.map +1 -1
  455. package/dist/esm/main.js +47 -76
  456. package/dist/esm/main.js.map +1 -1
  457. package/dist/esm/makeTxn.js +314 -513
  458. package/dist/esm/makeTxn.js.map +1 -1
  459. package/dist/esm/mnemonic/mnemonic.js +5 -5
  460. package/dist/esm/mnemonic/mnemonic.js.map +1 -1
  461. package/dist/esm/multisig.js +56 -305
  462. package/dist/esm/multisig.js.map +1 -1
  463. package/dist/esm/multisigSigning.js +254 -0
  464. package/dist/esm/multisigSigning.js.map +1 -0
  465. package/dist/esm/nacl/naclWrappers.js +1 -1
  466. package/dist/esm/nacl/naclWrappers.js.map +1 -1
  467. package/dist/esm/package.json +1 -0
  468. package/dist/esm/signedTransaction.js +100 -0
  469. package/dist/esm/signedTransaction.js.map +1 -0
  470. package/dist/esm/signer.js +3 -3
  471. package/dist/esm/signer.js.map +1 -1
  472. package/dist/esm/signing.js +77 -0
  473. package/dist/esm/signing.js.map +1 -0
  474. package/dist/esm/stateproof.js +408 -0
  475. package/dist/esm/stateproof.js.map +1 -0
  476. package/dist/esm/transaction.js +723 -1005
  477. package/dist/esm/transaction.js.map +1 -1
  478. package/dist/esm/types/block.js +797 -0
  479. package/dist/esm/types/block.js.map +1 -0
  480. package/dist/esm/types/intDecoding.js +1 -1
  481. package/dist/esm/types/intDecoding.js.map +1 -1
  482. package/dist/esm/types/statedelta.js +1129 -0
  483. package/dist/esm/types/statedelta.js.map +1 -0
  484. package/dist/esm/types/transactions/base.js +18 -2
  485. package/dist/esm/types/transactions/base.js.map +1 -1
  486. package/dist/esm/types/transactions/encoded.js +62 -1
  487. package/dist/esm/types/transactions/encoded.js.map +1 -1
  488. package/dist/esm/types/transactions/index.js +2 -3
  489. package/dist/esm/types/transactions/index.js.map +1 -1
  490. package/dist/esm/utils/utils.js +80 -21
  491. package/dist/esm/utils/utils.js.map +1 -1
  492. package/dist/esm/wait.js +4 -4
  493. package/dist/esm/wait.js.map +1 -1
  494. package/dist/types/abi/abi_type.d.ts +1 -1
  495. package/dist/types/abi/contract.d.ts +5 -1
  496. package/dist/types/abi/event.d.ts +16 -0
  497. package/dist/types/abi/index.d.ts +6 -6
  498. package/dist/types/abi/interface.d.ts +1 -1
  499. package/dist/types/abi/method.d.ts +12 -5
  500. package/dist/types/abi/transaction.d.ts +1 -1
  501. package/dist/types/account.d.ts +1 -1
  502. package/dist/types/boxStorage.d.ts +4 -5
  503. package/dist/types/client/baseHTTPClient.d.ts +9 -6
  504. package/dist/types/client/client.d.ts +59 -18
  505. package/dist/types/client/index.d.ts +5 -0
  506. package/dist/types/client/kmd.d.ts +12 -10
  507. package/dist/types/client/urlTokenBaseHTTPClient.d.ts +8 -5
  508. package/dist/types/client/v2/algod/accountApplicationInformation.d.ts +8 -6
  509. package/dist/types/client/v2/algod/accountAssetInformation.d.ts +8 -6
  510. package/dist/types/client/v2/algod/accountInformation.d.ts +7 -5
  511. package/dist/types/client/v2/algod/algod.d.ts +53 -52
  512. package/dist/types/client/v2/algod/block.d.ts +5 -4
  513. package/dist/types/client/v2/algod/compile.d.ts +7 -9
  514. package/dist/types/client/v2/algod/disassemble.d.ts +7 -9
  515. package/dist/types/client/v2/algod/dryrun.d.ts +7 -9
  516. package/dist/types/client/v2/algod/genesis.d.ts +4 -2
  517. package/dist/types/client/v2/algod/getApplicationBoxByName.d.ts +6 -7
  518. package/dist/types/client/v2/algod/getApplicationBoxes.d.ts +6 -7
  519. package/dist/types/client/v2/algod/getApplicationByID.d.ts +6 -5
  520. package/dist/types/client/v2/algod/getAssetByID.d.ts +6 -5
  521. package/dist/types/client/v2/algod/getBlockHash.d.ts +7 -6
  522. package/dist/types/client/v2/algod/getBlockOffsetTimestamp.d.ts +5 -4
  523. package/dist/types/client/v2/algod/getBlockTxids.d.ts +6 -5
  524. package/dist/types/client/v2/algod/getLedgerStateDelta.d.ts +6 -5
  525. package/dist/types/client/v2/algod/getLedgerStateDeltaForTransactionGroup.d.ts +6 -5
  526. package/dist/types/client/v2/algod/getSyncRound.d.ts +5 -4
  527. package/dist/types/client/v2/algod/getTransactionGroupLedgerStateDeltasForRound.d.ts +6 -7
  528. package/dist/types/client/v2/algod/getTransactionProof.d.ts +6 -5
  529. package/dist/types/client/v2/algod/healthCheck.d.ts +4 -3
  530. package/dist/types/client/v2/algod/index.d.ts +2 -0
  531. package/dist/types/client/v2/algod/lightBlockHeaderProof.d.ts +6 -5
  532. package/dist/types/client/v2/algod/models/types.d.ts +629 -318
  533. package/dist/types/client/v2/algod/pendingTransactionInformation.d.ts +5 -4
  534. package/dist/types/client/v2/algod/pendingTransactions.d.ts +5 -4
  535. package/dist/types/client/v2/algod/pendingTransactionsByAddress.d.ts +7 -5
  536. package/dist/types/client/v2/algod/ready.d.ts +4 -2
  537. package/dist/types/client/v2/algod/sendRawTransaction.d.ts +7 -5
  538. package/dist/types/client/v2/algod/setBlockOffsetTimestamp.d.ts +6 -6
  539. package/dist/types/client/v2/algod/setSyncRound.d.ts +6 -6
  540. package/dist/types/client/v2/algod/simulateTransaction.d.ts +7 -7
  541. package/dist/types/client/v2/algod/stateproof.d.ts +6 -5
  542. package/dist/types/client/v2/algod/status.d.ts +5 -2
  543. package/dist/types/client/v2/algod/statusAfterBlock.d.ts +6 -5
  544. package/dist/types/client/v2/algod/suggestedParams.d.ts +25 -4
  545. package/dist/types/client/v2/algod/supply.d.ts +5 -2
  546. package/dist/types/client/v2/algod/unsetSyncRound.d.ts +5 -3
  547. package/dist/types/client/v2/algod/versions.d.ts +5 -2
  548. package/dist/types/client/v2/indexer/index.d.ts +2 -0
  549. package/dist/types/client/v2/indexer/indexer.d.ts +31 -30
  550. package/dist/types/client/v2/indexer/lookupAccountAppLocalStates.d.ts +7 -5
  551. package/dist/types/client/v2/indexer/lookupAccountAssets.d.ts +7 -5
  552. package/dist/types/client/v2/indexer/lookupAccountByID.d.ts +7 -5
  553. package/dist/types/client/v2/indexer/lookupAccountCreatedApplications.d.ts +7 -5
  554. package/dist/types/client/v2/indexer/lookupAccountCreatedAssets.d.ts +7 -5
  555. package/dist/types/client/v2/indexer/lookupAccountTransactions.d.ts +11 -9
  556. package/dist/types/client/v2/indexer/lookupApplicationBoxByIDandName.d.ts +6 -7
  557. package/dist/types/client/v2/indexer/lookupApplicationLogs.d.ts +6 -5
  558. package/dist/types/client/v2/indexer/lookupApplications.d.ts +6 -5
  559. package/dist/types/client/v2/indexer/lookupAssetBalances.d.ts +6 -5
  560. package/dist/types/client/v2/indexer/lookupAssetByID.d.ts +6 -5
  561. package/dist/types/client/v2/indexer/lookupAssetTransactions.d.ts +12 -10
  562. package/dist/types/client/v2/indexer/lookupBlock.d.ts +6 -5
  563. package/dist/types/client/v2/indexer/lookupTransactionByID.d.ts +6 -5
  564. package/dist/types/client/v2/indexer/makeHealthCheck.d.ts +5 -2
  565. package/dist/types/client/v2/indexer/models/types.d.ts +513 -267
  566. package/dist/types/client/v2/indexer/searchAccounts.d.ts +7 -3
  567. package/dist/types/client/v2/indexer/searchForApplicationBoxes.d.ts +6 -7
  568. package/dist/types/client/v2/indexer/searchForApplications.d.ts +7 -3
  569. package/dist/types/client/v2/indexer/searchForAssets.d.ts +7 -3
  570. package/dist/types/client/v2/indexer/searchForTransactions.d.ts +11 -7
  571. package/dist/types/client/v2/jsonrequest.d.ts +20 -33
  572. package/dist/types/client/v2/serviceClient.d.ts +4 -18
  573. package/dist/types/client/v2/untypedmodel.d.ts +10 -0
  574. package/dist/types/composer.d.ts +18 -17
  575. package/dist/types/dryrun.d.ts +8 -80
  576. package/dist/types/encoding/address.d.ts +40 -31
  577. package/dist/types/encoding/binarydata.d.ts +30 -0
  578. package/dist/types/encoding/encoding.d.ts +219 -7
  579. package/dist/types/encoding/schema/address.d.ts +10 -0
  580. package/dist/types/encoding/schema/array.d.ts +11 -0
  581. package/dist/types/encoding/schema/binarystring.d.ts +18 -0
  582. package/dist/types/encoding/schema/blockhash.d.ts +16 -0
  583. package/dist/types/encoding/schema/boolean.d.ts +10 -0
  584. package/dist/types/encoding/schema/bytearray.d.ts +19 -0
  585. package/dist/types/encoding/schema/index.d.ts +11 -0
  586. package/dist/types/encoding/schema/map.d.ts +125 -0
  587. package/dist/types/encoding/schema/optional.d.ts +24 -0
  588. package/dist/types/encoding/schema/string.d.ts +9 -0
  589. package/dist/types/encoding/schema/uint64.d.ts +9 -0
  590. package/dist/types/encoding/schema/untyped.d.ts +9 -0
  591. package/dist/types/encoding/uint64.d.ts +1 -0
  592. package/dist/types/group.d.ts +6 -25
  593. package/dist/types/index.d.ts +2 -2
  594. package/dist/types/logic/sourcemap.d.ts +39 -13
  595. package/dist/types/logicsig.d.ts +27 -57
  596. package/dist/types/main.d.ts +43 -54
  597. package/dist/types/makeTxn.d.ts +129 -388
  598. package/dist/types/mnemonic/mnemonic.d.ts +1 -1
  599. package/dist/types/multisig.d.ts +28 -99
  600. package/dist/types/multisigSigning.d.ts +72 -0
  601. package/dist/types/signedTransaction.d.ts +55 -0
  602. package/dist/types/signer.d.ts +5 -5
  603. package/dist/types/signing.d.ts +29 -0
  604. package/dist/types/stateproof.d.ts +194 -0
  605. package/dist/types/transaction.d.ts +103 -182
  606. package/dist/types/types/account.d.ts +2 -1
  607. package/dist/types/types/block.d.ts +407 -0
  608. package/dist/types/types/intDecoding.d.ts +1 -1
  609. package/dist/types/types/statedelta.d.ts +575 -0
  610. package/dist/types/types/transactions/base.d.ts +206 -118
  611. package/dist/types/types/transactions/encoded.d.ts +7 -301
  612. package/dist/types/types/transactions/index.d.ts +2 -15
  613. package/dist/types/types/utils.d.ts +7 -7
  614. package/dist/types/utils/utils.d.ts +21 -16
  615. package/dist/types/wait.d.ts +3 -2
  616. package/package.json +48 -20
  617. package/src/abi/abi_type.ts +28 -18
  618. package/src/abi/contract.ts +7 -1
  619. package/src/abi/event.ts +16 -0
  620. package/src/abi/index.ts +6 -6
  621. package/src/abi/interface.ts +1 -1
  622. package/src/abi/method.ts +22 -8
  623. package/src/abi/transaction.ts +2 -2
  624. package/src/account.ts +5 -5
  625. package/src/boxStorage.ts +25 -23
  626. package/src/client/baseHTTPClient.ts +12 -6
  627. package/src/client/client.ts +147 -75
  628. package/src/client/index.ts +6 -0
  629. package/src/client/kmd.ts +79 -72
  630. package/src/client/urlTokenBaseHTTPClient.ts +25 -14
  631. package/src/client/v2/algod/accountApplicationInformation.ts +16 -9
  632. package/src/client/v2/algod/accountAssetInformation.ts +16 -9
  633. package/src/client/v2/algod/accountInformation.ts +16 -11
  634. package/src/client/v2/algod/algod.ts +83 -105
  635. package/src/client/v2/algod/block.ts +7 -11
  636. package/src/client/v2/algod/compile.ts +27 -19
  637. package/src/client/v2/algod/disassemble.ts +27 -19
  638. package/src/client/v2/algod/dryrun.ts +23 -19
  639. package/src/client/v2/algod/genesis.ts +8 -2
  640. package/src/client/v2/algod/getApplicationBoxByName.ts +10 -15
  641. package/src/client/v2/algod/getApplicationBoxes.ts +12 -13
  642. package/src/client/v2/algod/getApplicationByID.ts +15 -7
  643. package/src/client/v2/algod/getAssetByID.ts +15 -7
  644. package/src/client/v2/algod/getBlockHash.ts +13 -9
  645. package/src/client/v2/algod/getBlockOffsetTimestamp.ts +7 -8
  646. package/src/client/v2/algod/getBlockTxids.ts +12 -6
  647. package/src/client/v2/algod/getLedgerStateDelta.ts +16 -8
  648. package/src/client/v2/algod/getLedgerStateDeltaForTransactionGroup.ts +16 -8
  649. package/src/client/v2/algod/getSyncRound.ts +7 -8
  650. package/src/client/v2/algod/getTransactionGroupLedgerStateDeltasForRound.ts +15 -15
  651. package/src/client/v2/algod/getTransactionProof.ts +11 -9
  652. package/src/client/v2/algod/healthCheck.ts +5 -9
  653. package/src/client/v2/algod/index.ts +3 -0
  654. package/src/client/v2/algod/lightBlockHeaderProof.ts +15 -8
  655. package/src/client/v2/algod/models/types.ts +4729 -2254
  656. package/src/client/v2/algod/pendingTransactionInformation.ts +11 -11
  657. package/src/client/v2/algod/pendingTransactions.ts +7 -9
  658. package/src/client/v2/algod/pendingTransactionsByAddress.ts +12 -11
  659. package/src/client/v2/algod/ready.ts +6 -2
  660. package/src/client/v2/algod/sendRawTransaction.ts +24 -13
  661. package/src/client/v2/algod/setBlockOffsetTimestamp.ts +21 -11
  662. package/src/client/v2/algod/setSyncRound.ts +21 -11
  663. package/src/client/v2/algod/simulateTransaction.ts +22 -23
  664. package/src/client/v2/algod/stateproof.ts +15 -8
  665. package/src/client/v2/algod/status.ts +10 -2
  666. package/src/client/v2/algod/statusAfterBlock.ts +15 -7
  667. package/src/client/v2/algod/suggestedParams.ts +40 -10
  668. package/src/client/v2/algod/supply.ts +10 -2
  669. package/src/client/v2/algod/unsetSyncRound.ts +16 -5
  670. package/src/client/v2/algod/versions.ts +10 -2
  671. package/src/client/v2/indexer/index.ts +3 -0
  672. package/src/client/v2/indexer/indexer.ts +51 -59
  673. package/src/client/v2/indexer/lookupAccountAppLocalStates.ts +16 -11
  674. package/src/client/v2/indexer/lookupAccountAssets.ts +16 -11
  675. package/src/client/v2/indexer/lookupAccountByID.ts +16 -11
  676. package/src/client/v2/indexer/lookupAccountCreatedApplications.ts +16 -11
  677. package/src/client/v2/indexer/lookupAccountCreatedAssets.ts +16 -11
  678. package/src/client/v2/indexer/lookupAccountTransactions.ts +26 -19
  679. package/src/client/v2/indexer/lookupApplicationBoxByIDandName.ts +10 -15
  680. package/src/client/v2/indexer/lookupApplicationLogs.ts +15 -7
  681. package/src/client/v2/indexer/lookupApplications.ts +15 -7
  682. package/src/client/v2/indexer/lookupAssetBalances.ts +15 -7
  683. package/src/client/v2/indexer/lookupAssetByID.ts +15 -7
  684. package/src/client/v2/indexer/lookupAssetTransactions.ts +27 -16
  685. package/src/client/v2/indexer/lookupBlock.ts +15 -7
  686. package/src/client/v2/indexer/lookupTransactionByID.ts +15 -7
  687. package/src/client/v2/indexer/makeHealthCheck.ts +10 -2
  688. package/src/client/v2/indexer/models/types.ts +4454 -1988
  689. package/src/client/v2/indexer/searchAccounts.ts +13 -4
  690. package/src/client/v2/indexer/searchForApplicationBoxes.ts +12 -13
  691. package/src/client/v2/indexer/searchForApplications.ts +13 -4
  692. package/src/client/v2/indexer/searchForAssets.ts +13 -4
  693. package/src/client/v2/indexer/searchForTransactions.ts +22 -11
  694. package/src/client/v2/jsonrequest.ts +39 -57
  695. package/src/client/v2/serviceClient.ts +9 -31
  696. package/src/client/v2/untypedmodel.ts +25 -0
  697. package/src/composer.ts +83 -60
  698. package/src/dryrun.ts +129 -306
  699. package/src/encoding/address.ts +134 -146
  700. package/src/encoding/bigint.ts +2 -4
  701. package/src/encoding/binarydata.ts +80 -0
  702. package/src/encoding/encoding.ts +558 -13
  703. package/src/encoding/schema/address.ts +53 -0
  704. package/src/encoding/schema/array.ts +66 -0
  705. package/src/encoding/schema/binarystring.ts +73 -0
  706. package/src/encoding/schema/blockhash.ts +84 -0
  707. package/src/encoding/schema/boolean.ts +54 -0
  708. package/src/encoding/schema/bytearray.ts +127 -0
  709. package/src/encoding/schema/index.ts +26 -0
  710. package/src/encoding/schema/map.ts +713 -0
  711. package/src/encoding/schema/optional.ts +72 -0
  712. package/src/encoding/schema/string.ts +55 -0
  713. package/src/encoding/schema/uint64.ts +46 -0
  714. package/src/encoding/schema/untyped.ts +47 -0
  715. package/src/encoding/uint64.ts +2 -1
  716. package/src/group.ts +27 -75
  717. package/src/index.ts +2 -2
  718. package/src/logic/sourcemap.ts +94 -29
  719. package/src/logicsig.ts +154 -202
  720. package/src/main.ts +91 -94
  721. package/src/makeTxn.ts +670 -1320
  722. package/src/mnemonic/mnemonic.ts +14 -14
  723. package/src/multisig.ts +89 -403
  724. package/src/multisigSigning.ts +359 -0
  725. package/src/nacl/naclWrappers.ts +1 -1
  726. package/src/signedTransaction.ts +163 -0
  727. package/src/signer.ts +10 -5
  728. package/src/signing.ts +95 -0
  729. package/src/stateproof.ts +595 -0
  730. package/src/transaction.ts +986 -1242
  731. package/src/types/account.ts +3 -1
  732. package/src/types/block.ts +1278 -0
  733. package/src/types/intDecoding.ts +1 -1
  734. package/src/types/statedelta.ts +1717 -0
  735. package/src/types/transactions/base.ts +230 -122
  736. package/src/types/transactions/encoded.ts +81 -371
  737. package/src/types/transactions/index.ts +2 -72
  738. package/src/types/utils.ts +3 -3
  739. package/src/utils/utils.ts +96 -25
  740. package/src/wait.ts +8 -7
  741. package/dist/cjs/bid.js +0 -83
  742. package/dist/cjs/bid.js.map +0 -1
  743. package/dist/cjs/client/v2/basemodel.js +0 -67
  744. package/dist/cjs/client/v2/basemodel.js.map +0 -1
  745. package/dist/cjs/types/address.js +0 -3
  746. package/dist/cjs/types/address.js.map +0 -1
  747. package/dist/cjs/types/blockHeader.js +0 -3
  748. package/dist/cjs/types/blockHeader.js.map +0 -1
  749. package/dist/cjs/types/index.js.map +0 -1
  750. package/dist/cjs/types/multisig.js +0 -3
  751. package/dist/cjs/types/multisig.js.map +0 -1
  752. package/dist/cjs/types/transactions/application.js +0 -3
  753. package/dist/cjs/types/transactions/application.js.map +0 -1
  754. package/dist/cjs/types/transactions/asset.js.map +0 -1
  755. package/dist/cjs/types/transactions/builder.js +0 -3
  756. package/dist/cjs/types/transactions/builder.js.map +0 -1
  757. package/dist/cjs/types/transactions/keyreg.js +0 -3
  758. package/dist/cjs/types/transactions/keyreg.js.map +0 -1
  759. package/dist/cjs/types/transactions/payment.js +0 -3
  760. package/dist/cjs/types/transactions/payment.js.map +0 -1
  761. package/dist/cjs/types/transactions/stateproof.js +0 -3
  762. package/dist/cjs/types/transactions/stateproof.js.map +0 -1
  763. package/dist/esm/bid.js +0 -57
  764. package/dist/esm/bid.js.map +0 -1
  765. package/dist/esm/client/v2/basemodel.js +0 -64
  766. package/dist/esm/client/v2/basemodel.js.map +0 -1
  767. package/dist/esm/types/address.js +0 -2
  768. package/dist/esm/types/address.js.map +0 -1
  769. package/dist/esm/types/blockHeader.js +0 -2
  770. package/dist/esm/types/blockHeader.js.map +0 -1
  771. package/dist/esm/types/index.js +0 -4
  772. package/dist/esm/types/index.js.map +0 -1
  773. package/dist/esm/types/multisig.js +0 -2
  774. package/dist/esm/types/multisig.js.map +0 -1
  775. package/dist/esm/types/transactions/application.js +0 -2
  776. package/dist/esm/types/transactions/application.js.map +0 -1
  777. package/dist/esm/types/transactions/asset.js +0 -2
  778. package/dist/esm/types/transactions/asset.js.map +0 -1
  779. package/dist/esm/types/transactions/builder.js +0 -2
  780. package/dist/esm/types/transactions/builder.js.map +0 -1
  781. package/dist/esm/types/transactions/keyreg.js +0 -2
  782. package/dist/esm/types/transactions/keyreg.js.map +0 -1
  783. package/dist/esm/types/transactions/payment.js +0 -2
  784. package/dist/esm/types/transactions/payment.js.map +0 -1
  785. package/dist/esm/types/transactions/stateproof.js +0 -2
  786. package/dist/esm/types/transactions/stateproof.js.map +0 -1
  787. package/dist/types/bid.d.ts +0 -38
  788. package/dist/types/client/v2/basemodel.d.ts +0 -11
  789. package/dist/types/types/address.d.ts +0 -7
  790. package/dist/types/types/blockHeader.d.ts +0 -67
  791. package/dist/types/types/index.d.ts +0 -3
  792. package/dist/types/types/multisig.d.ts +0 -20
  793. package/dist/types/types/transactions/application.d.ts +0 -22
  794. package/dist/types/types/transactions/asset.d.ts +0 -28
  795. package/dist/types/types/transactions/builder.d.ts +0 -36
  796. package/dist/types/types/transactions/keyreg.d.ts +0 -8
  797. package/dist/types/types/transactions/payment.d.ts +0 -8
  798. package/dist/types/types/transactions/stateproof.d.ts +0 -8
  799. package/src/bid.ts +0 -96
  800. package/src/client/v2/basemodel.ts +0 -81
  801. package/src/types/address.ts +0 -7
  802. package/src/types/blockHeader.ts +0 -81
  803. package/src/types/index.ts +0 -3
  804. package/src/types/multisig.ts +0 -22
  805. package/src/types/transactions/application.ts +0 -111
  806. package/src/types/transactions/asset.ts +0 -108
  807. package/src/types/transactions/builder.ts +0 -69
  808. package/src/types/transactions/keyreg.ts +0 -23
  809. package/src/types/transactions/payment.ts +0 -14
  810. package/src/types/transactions/stateproof.ts +0 -17
@@ -1,15 +1,20 @@
1
1
  /**
2
2
  * NOTICE: This file was generated. Editing this file manually is not recommended.
3
3
  */
4
- import BaseModel from '../../basemodel';
5
- import { EncodedSignedTransaction } from '../../../../types/transactions/encoded';
6
- import BlockHeader from '../../../../types/blockHeader';
4
+ import { Encodable, Schema } from '../../../../encoding/encoding.js';
5
+ import { Block } from '../../../../types/block.js';
6
+ import { LedgerStateDelta } from '../../../../types/statedelta.js';
7
+ import { SignedTransaction } from '../../../../signedTransaction.js';
8
+ import { Address } from '../../../../encoding/address.js';
9
+ import { UntypedValue } from '../../untypedmodel.js';
7
10
  /**
8
11
  * Account information at a given round.
9
12
  * Definition:
10
13
  * data/basics/userBalance.go : AccountData
11
14
  */
12
- export declare class Account extends BaseModel {
15
+ export declare class Account implements Encodable {
16
+ private static encodingSchemaValue;
17
+ static get encodingSchema(): Schema;
13
18
  /**
14
19
  * the account public key
15
20
  */
@@ -17,29 +22,29 @@ export declare class Account extends BaseModel {
17
22
  /**
18
23
  * (algo) total number of MicroAlgos in the account
19
24
  */
20
- amount: number | bigint;
25
+ amount: bigint;
21
26
  /**
22
27
  * specifies the amount of MicroAlgos in the account, without the pending rewards.
23
28
  */
24
- amountWithoutPendingRewards: number | bigint;
29
+ amountWithoutPendingRewards: bigint;
25
30
  /**
26
31
  * MicroAlgo balance required by the account.
27
32
  * The requirement grows based on asset and application usage.
28
33
  */
29
- minBalance: number | bigint;
34
+ minBalance: bigint;
30
35
  /**
31
36
  * amount of MicroAlgos of pending rewards in this account.
32
37
  */
33
- pendingRewards: number | bigint;
38
+ pendingRewards: bigint;
34
39
  /**
35
40
  * (ern) total rewards of MicroAlgos the account has received, including pending
36
41
  * rewards.
37
42
  */
38
- rewards: number | bigint;
43
+ rewards: bigint;
39
44
  /**
40
45
  * The round for which this information is relevant.
41
46
  */
42
- round: number | bigint;
47
+ round: bigint;
43
48
  /**
44
49
  * (onl) delegation status of the account's MicroAlgos
45
50
  * * Offline - indicates that the associated account is delegated.
@@ -53,20 +58,20 @@ export declare class Account extends BaseModel {
53
58
  * The count of all applications that have been opted in, equivalent to the count
54
59
  * of application local data (AppLocalState objects) stored in this account.
55
60
  */
56
- totalAppsOptedIn: number | bigint;
61
+ totalAppsOptedIn: number;
57
62
  /**
58
63
  * The count of all assets that have been opted in, equivalent to the count of
59
64
  * AssetHolding objects held by this account.
60
65
  */
61
- totalAssetsOptedIn: number | bigint;
66
+ totalAssetsOptedIn: number;
62
67
  /**
63
68
  * The count of all apps (AppParams objects) created by this account.
64
69
  */
65
- totalCreatedApps: number | bigint;
70
+ totalCreatedApps: number;
66
71
  /**
67
72
  * The count of all assets (AssetParams objects) created by this account.
68
73
  */
69
- totalCreatedAssets: number | bigint;
74
+ totalCreatedAssets: number;
70
75
  /**
71
76
  * (appl) applications local data stored in this account.
72
77
  * Note the raw object uses `map[int] -> AppLocalState` for this type.
@@ -75,7 +80,7 @@ export declare class Account extends BaseModel {
75
80
  /**
76
81
  * (teap) the sum of all extra application program pages for this account.
77
82
  */
78
- appsTotalExtraPages?: number | bigint;
83
+ appsTotalExtraPages?: number;
79
84
  /**
80
85
  * (tsch) stores the sum of all of the local schemas and global schemas in this
81
86
  * account.
@@ -92,7 +97,7 @@ export declare class Account extends BaseModel {
92
97
  * address of the current account is used. This field can be updated in any
93
98
  * transaction by setting the RekeyTo field.
94
99
  */
95
- authAddr?: string;
100
+ authAddr?: Address;
96
101
  /**
97
102
  * (appp) parameters of applications created by this account including app global
98
103
  * data.
@@ -113,11 +118,11 @@ export declare class Account extends BaseModel {
113
118
  * The round in which this account last went online, or explicitly renewed their
114
119
  * online status.
115
120
  */
116
- lastHeartbeat?: number | bigint;
121
+ lastHeartbeat?: number;
117
122
  /**
118
123
  * The round in which this account last proposed the block.
119
124
  */
120
- lastProposed?: number | bigint;
125
+ lastProposed?: number;
121
126
  /**
122
127
  * AccountParticipation describes the parameters used by this account in consensus
123
128
  * protocol.
@@ -127,7 +132,7 @@ export declare class Account extends BaseModel {
127
132
  * (ebase) used as part of the rewards computation. Only applicable to accounts
128
133
  * which are participating.
129
134
  */
130
- rewardBase?: number | bigint;
135
+ rewardBase?: bigint;
131
136
  /**
132
137
  * Indicates what type of signature is used by this account, must be one of:
133
138
  * * sig
@@ -139,11 +144,11 @@ export declare class Account extends BaseModel {
139
144
  * (tbxb) The total number of bytes used by this account's app's box keys and
140
145
  * values.
141
146
  */
142
- totalBoxBytes?: number | bigint;
147
+ totalBoxBytes?: number;
143
148
  /**
144
149
  * (tbx) The number of existing boxes created by this account's app.
145
150
  */
146
- totalBoxes?: number | bigint;
151
+ totalBoxes?: number;
147
152
  /**
148
153
  * Creates a new `Account` object.
149
154
  * @param address - the account public key
@@ -217,7 +222,7 @@ export declare class Account extends BaseModel {
217
222
  appsTotalExtraPages?: number | bigint;
218
223
  appsTotalSchema?: ApplicationStateSchema;
219
224
  assets?: AssetHolding[];
220
- authAddr?: string;
225
+ authAddr?: Address | string;
221
226
  createdApps?: Application[];
222
227
  createdAssets?: Asset[];
223
228
  incentiveEligible?: boolean;
@@ -229,7 +234,9 @@ export declare class Account extends BaseModel {
229
234
  totalBoxBytes?: number | bigint;
230
235
  totalBoxes?: number | bigint;
231
236
  });
232
- static from_obj_for_encoding(data: Record<string, any>): Account;
237
+ getEncodingSchema(): Schema;
238
+ toEncodingData(): Map<string, unknown>;
239
+ static fromEncodingData(data: unknown): Account;
233
240
  }
234
241
  /**
235
242
  * AccountApplicationResponse describes the account's application local state and
@@ -237,11 +244,13 @@ export declare class Account extends BaseModel {
237
244
  * application ID. Global state will only be returned if the provided address is
238
245
  * the application's creator.
239
246
  */
240
- export declare class AccountApplicationResponse extends BaseModel {
247
+ export declare class AccountApplicationResponse implements Encodable {
248
+ private static encodingSchemaValue;
249
+ static get encodingSchema(): Schema;
241
250
  /**
242
251
  * The round for which this information is relevant.
243
252
  */
244
- round: number | bigint;
253
+ round: bigint;
245
254
  /**
246
255
  * (appl) the application local data stored in this account.
247
256
  * The raw account uses `AppLocalState` for this type.
@@ -267,13 +276,17 @@ export declare class AccountApplicationResponse extends BaseModel {
267
276
  appLocalState?: ApplicationLocalState;
268
277
  createdApp?: ApplicationParams;
269
278
  });
270
- static from_obj_for_encoding(data: Record<string, any>): AccountApplicationResponse;
279
+ getEncodingSchema(): Schema;
280
+ toEncodingData(): Map<string, unknown>;
281
+ static fromEncodingData(data: unknown): AccountApplicationResponse;
271
282
  }
272
283
  /**
273
284
  * AccountAssetHolding describes the account's asset holding and asset parameters
274
285
  * (if either exist) for a specific asset ID.
275
286
  */
276
- export declare class AccountAssetHolding extends BaseModel {
287
+ export declare class AccountAssetHolding implements Encodable {
288
+ private static encodingSchemaValue;
289
+ static get encodingSchema(): Schema;
277
290
  /**
278
291
  * (asset) Details about the asset held by this account.
279
292
  * The raw account uses `AssetHolding` for this type.
@@ -295,18 +308,22 @@ export declare class AccountAssetHolding extends BaseModel {
295
308
  assetHolding: AssetHolding;
296
309
  assetParams?: AssetParams;
297
310
  });
298
- static from_obj_for_encoding(data: Record<string, any>): AccountAssetHolding;
311
+ getEncodingSchema(): Schema;
312
+ toEncodingData(): Map<string, unknown>;
313
+ static fromEncodingData(data: unknown): AccountAssetHolding;
299
314
  }
300
315
  /**
301
316
  * AccountAssetResponse describes the account's asset holding and asset parameters
302
317
  * (if either exist) for a specific asset ID. Asset parameters will only be
303
318
  * returned if the provided address is the asset's creator.
304
319
  */
305
- export declare class AccountAssetResponse extends BaseModel {
320
+ export declare class AccountAssetResponse implements Encodable {
321
+ private static encodingSchemaValue;
322
+ static get encodingSchema(): Schema;
306
323
  /**
307
324
  * The round for which this information is relevant.
308
325
  */
309
- round: number | bigint;
326
+ round: bigint;
310
327
  /**
311
328
  * (asset) Details about the asset held by this account.
312
329
  * The raw account uses `AssetHolding` for this type.
@@ -330,16 +347,20 @@ export declare class AccountAssetResponse extends BaseModel {
330
347
  assetHolding?: AssetHolding;
331
348
  createdAsset?: AssetParams;
332
349
  });
333
- static from_obj_for_encoding(data: Record<string, any>): AccountAssetResponse;
350
+ getEncodingSchema(): Schema;
351
+ toEncodingData(): Map<string, unknown>;
352
+ static fromEncodingData(data: unknown): AccountAssetResponse;
334
353
  }
335
354
  /**
336
355
  * AccountAssetsInformationResponse contains a list of assets held by an account.
337
356
  */
338
- export declare class AccountAssetsInformationResponse extends BaseModel {
357
+ export declare class AccountAssetsInformationResponse implements Encodable {
358
+ private static encodingSchemaValue;
359
+ static get encodingSchema(): Schema;
339
360
  /**
340
361
  * The round for which this information is relevant.
341
362
  */
342
- round: number | bigint;
363
+ round: number;
343
364
  assetHoldings?: AccountAssetHolding[];
344
365
  /**
345
366
  * Used for pagination, when making another request provide this token with the
@@ -358,13 +379,17 @@ export declare class AccountAssetsInformationResponse extends BaseModel {
358
379
  assetHoldings?: AccountAssetHolding[];
359
380
  nextToken?: string;
360
381
  });
361
- static from_obj_for_encoding(data: Record<string, any>): AccountAssetsInformationResponse;
382
+ getEncodingSchema(): Schema;
383
+ toEncodingData(): Map<string, unknown>;
384
+ static fromEncodingData(data: unknown): AccountAssetsInformationResponse;
362
385
  }
363
386
  /**
364
387
  * AccountParticipation describes the parameters used by this account in consensus
365
388
  * protocol.
366
389
  */
367
- export declare class AccountParticipation extends BaseModel {
390
+ export declare class AccountParticipation implements Encodable {
391
+ private static encodingSchemaValue;
392
+ static get encodingSchema(): Schema;
368
393
  /**
369
394
  * (sel) Selection public key (if any) currently registered for this round.
370
395
  */
@@ -372,15 +397,15 @@ export declare class AccountParticipation extends BaseModel {
372
397
  /**
373
398
  * (voteFst) First round for which this participation is valid.
374
399
  */
375
- voteFirstValid: number | bigint;
400
+ voteFirstValid: bigint;
376
401
  /**
377
402
  * (voteKD) Number of subkeys in each batch of participation keys.
378
403
  */
379
- voteKeyDilution: number | bigint;
404
+ voteKeyDilution: bigint;
380
405
  /**
381
406
  * (voteLst) Last round for which this participation is valid.
382
407
  */
383
- voteLastValid: number | bigint;
408
+ voteLastValid: bigint;
384
409
  /**
385
410
  * (vote) root participation public key (if any) currently registered for this
386
411
  * round.
@@ -408,12 +433,16 @@ export declare class AccountParticipation extends BaseModel {
408
433
  voteParticipationKey: string | Uint8Array;
409
434
  stateProofKey?: string | Uint8Array;
410
435
  });
411
- static from_obj_for_encoding(data: Record<string, any>): AccountParticipation;
436
+ getEncodingSchema(): Schema;
437
+ toEncodingData(): Map<string, unknown>;
438
+ static fromEncodingData(data: unknown): AccountParticipation;
412
439
  }
413
440
  /**
414
441
  * Application state delta.
415
442
  */
416
- export declare class AccountStateDelta extends BaseModel {
443
+ export declare class AccountStateDelta implements Encodable {
444
+ private static encodingSchemaValue;
445
+ static get encodingSchema(): Schema;
417
446
  address: string;
418
447
  /**
419
448
  * Application state delta.
@@ -428,17 +457,21 @@ export declare class AccountStateDelta extends BaseModel {
428
457
  address: string;
429
458
  delta: EvalDeltaKeyValue[];
430
459
  });
431
- static from_obj_for_encoding(data: Record<string, any>): AccountStateDelta;
460
+ getEncodingSchema(): Schema;
461
+ toEncodingData(): Map<string, unknown>;
462
+ static fromEncodingData(data: unknown): AccountStateDelta;
432
463
  }
433
464
  /**
434
465
  * The logged messages from an app call along with the app ID and outer transaction
435
466
  * ID. Logs appear in the same order that they were emitted.
436
467
  */
437
- export declare class AppCallLogs extends BaseModel {
468
+ export declare class AppCallLogs implements Encodable {
469
+ private static encodingSchemaValue;
470
+ static get encodingSchema(): Schema;
438
471
  /**
439
472
  * The application from which the logs were generated
440
473
  */
441
- applicationIndex: number | bigint;
474
+ applicationIndex: number;
442
475
  /**
443
476
  * An array of logs
444
477
  */
@@ -458,16 +491,20 @@ export declare class AppCallLogs extends BaseModel {
458
491
  logs: Uint8Array[];
459
492
  txid: string;
460
493
  });
461
- static from_obj_for_encoding(data: Record<string, any>): AppCallLogs;
494
+ getEncodingSchema(): Schema;
495
+ toEncodingData(): Map<string, unknown>;
496
+ static fromEncodingData(data: unknown): AppCallLogs;
462
497
  }
463
498
  /**
464
499
  * Application index and its parameters
465
500
  */
466
- export declare class Application extends BaseModel {
501
+ export declare class Application implements Encodable {
502
+ private static encodingSchemaValue;
503
+ static get encodingSchema(): Schema;
467
504
  /**
468
505
  * (appidx) application index.
469
506
  */
470
- id: number | bigint;
507
+ id: bigint;
471
508
  /**
472
509
  * (appparams) application parameters.
473
510
  */
@@ -481,17 +518,21 @@ export declare class Application extends BaseModel {
481
518
  id: number | bigint;
482
519
  params: ApplicationParams;
483
520
  });
484
- static from_obj_for_encoding(data: Record<string, any>): Application;
521
+ getEncodingSchema(): Schema;
522
+ toEncodingData(): Map<string, unknown>;
523
+ static fromEncodingData(data: unknown): Application;
485
524
  }
486
525
  /**
487
526
  * An application's initial global/local/box states that were accessed during
488
527
  * simulation.
489
528
  */
490
- export declare class ApplicationInitialStates extends BaseModel {
529
+ export declare class ApplicationInitialStates implements Encodable {
530
+ private static encodingSchemaValue;
531
+ static get encodingSchema(): Schema;
491
532
  /**
492
533
  * Application index.
493
534
  */
494
- id: number | bigint;
535
+ id: bigint;
495
536
  /**
496
537
  * An application's global/local/box state.
497
538
  */
@@ -517,12 +558,16 @@ export declare class ApplicationInitialStates extends BaseModel {
517
558
  appGlobals?: ApplicationKVStorage;
518
559
  appLocals?: ApplicationKVStorage[];
519
560
  });
520
- static from_obj_for_encoding(data: Record<string, any>): ApplicationInitialStates;
561
+ getEncodingSchema(): Schema;
562
+ toEncodingData(): Map<string, unknown>;
563
+ static fromEncodingData(data: unknown): ApplicationInitialStates;
521
564
  }
522
565
  /**
523
566
  * An application's global/local/box state.
524
567
  */
525
- export declare class ApplicationKVStorage extends BaseModel {
568
+ export declare class ApplicationKVStorage implements Encodable {
569
+ private static encodingSchemaValue;
570
+ static get encodingSchema(): Schema;
526
571
  /**
527
572
  * Key-Value pairs representing application states.
528
573
  */
@@ -530,49 +575,57 @@ export declare class ApplicationKVStorage extends BaseModel {
530
575
  /**
531
576
  * The address of the account associated with the local state.
532
577
  */
533
- account?: string;
578
+ account?: Address;
534
579
  /**
535
580
  * Creates a new `ApplicationKVStorage` object.
536
581
  * @param kvs - Key-Value pairs representing application states.
537
582
  * @param account - The address of the account associated with the local state.
538
583
  */
539
- constructor({ kvs, account }: {
584
+ constructor({ kvs, account, }: {
540
585
  kvs: AvmKeyValue[];
541
- account?: string;
586
+ account?: Address | string;
542
587
  });
543
- static from_obj_for_encoding(data: Record<string, any>): ApplicationKVStorage;
588
+ getEncodingSchema(): Schema;
589
+ toEncodingData(): Map<string, unknown>;
590
+ static fromEncodingData(data: unknown): ApplicationKVStorage;
544
591
  }
545
592
  /**
546
593
  * References an account's local state for an application.
547
594
  */
548
- export declare class ApplicationLocalReference extends BaseModel {
595
+ export declare class ApplicationLocalReference implements Encodable {
596
+ private static encodingSchemaValue;
597
+ static get encodingSchema(): Schema;
549
598
  /**
550
599
  * Address of the account with the local state.
551
600
  */
552
- account: string;
601
+ account: Address;
553
602
  /**
554
603
  * Application ID of the local state application.
555
604
  */
556
- app: number | bigint;
605
+ app: bigint;
557
606
  /**
558
607
  * Creates a new `ApplicationLocalReference` object.
559
608
  * @param account - Address of the account with the local state.
560
609
  * @param app - Application ID of the local state application.
561
610
  */
562
- constructor({ account, app }: {
563
- account: string;
611
+ constructor({ account, app, }: {
612
+ account: Address | string;
564
613
  app: number | bigint;
565
614
  });
566
- static from_obj_for_encoding(data: Record<string, any>): ApplicationLocalReference;
615
+ getEncodingSchema(): Schema;
616
+ toEncodingData(): Map<string, unknown>;
617
+ static fromEncodingData(data: unknown): ApplicationLocalReference;
567
618
  }
568
619
  /**
569
620
  * Stores local state associated with an application.
570
621
  */
571
- export declare class ApplicationLocalState extends BaseModel {
622
+ export declare class ApplicationLocalState implements Encodable {
623
+ private static encodingSchemaValue;
624
+ static get encodingSchema(): Schema;
572
625
  /**
573
626
  * The application which this local state is for.
574
627
  */
575
- id: number | bigint;
628
+ id: bigint;
576
629
  /**
577
630
  * (hsch) schema.
578
631
  */
@@ -592,12 +645,16 @@ export declare class ApplicationLocalState extends BaseModel {
592
645
  schema: ApplicationStateSchema;
593
646
  keyValue?: TealKeyValue[];
594
647
  });
595
- static from_obj_for_encoding(data: Record<string, any>): ApplicationLocalState;
648
+ getEncodingSchema(): Schema;
649
+ toEncodingData(): Map<string, unknown>;
650
+ static fromEncodingData(data: unknown): ApplicationLocalState;
596
651
  }
597
652
  /**
598
653
  * Stores the global information associated with an application.
599
654
  */
600
- export declare class ApplicationParams extends BaseModel {
655
+ export declare class ApplicationParams implements Encodable {
656
+ private static encodingSchemaValue;
657
+ static get encodingSchema(): Schema;
601
658
  /**
602
659
  * (approv) approval program.
603
660
  */
@@ -610,11 +667,11 @@ export declare class ApplicationParams extends BaseModel {
610
667
  * The address that created this application. This is the address where the
611
668
  * parameters and global state for this application can be found.
612
669
  */
613
- creator: string;
670
+ creator: Address;
614
671
  /**
615
672
  * (epp) the amount of extra program pages available to this app.
616
673
  */
617
- extraProgramPages?: number | bigint;
674
+ extraProgramPages?: number;
618
675
  /**
619
676
  * (gs) global state
620
677
  */
@@ -641,18 +698,22 @@ export declare class ApplicationParams extends BaseModel {
641
698
  constructor({ approvalProgram, clearStateProgram, creator, extraProgramPages, globalState, globalStateSchema, localStateSchema, }: {
642
699
  approvalProgram: string | Uint8Array;
643
700
  clearStateProgram: string | Uint8Array;
644
- creator: string;
701
+ creator: Address | string;
645
702
  extraProgramPages?: number | bigint;
646
703
  globalState?: TealKeyValue[];
647
704
  globalStateSchema?: ApplicationStateSchema;
648
705
  localStateSchema?: ApplicationStateSchema;
649
706
  });
650
- static from_obj_for_encoding(data: Record<string, any>): ApplicationParams;
707
+ getEncodingSchema(): Schema;
708
+ toEncodingData(): Map<string, unknown>;
709
+ static fromEncodingData(data: unknown): ApplicationParams;
651
710
  }
652
711
  /**
653
712
  * An operation against an application's global/local/box state.
654
713
  */
655
- export declare class ApplicationStateOperation extends BaseModel {
714
+ export declare class ApplicationStateOperation implements Encodable {
715
+ private static encodingSchemaValue;
716
+ static get encodingSchema(): Schema;
656
717
  /**
657
718
  * Type of application state. Value `g` is **global state**, `l` is **local
658
719
  * state**, `b` is **boxes**.
@@ -670,7 +731,7 @@ export declare class ApplicationStateOperation extends BaseModel {
670
731
  * For local state changes, the address of the account associated with the local
671
732
  * state.
672
733
  */
673
- account?: string;
734
+ account?: Address;
674
735
  /**
675
736
  * Represents an AVM value.
676
737
  */
@@ -689,42 +750,50 @@ export declare class ApplicationStateOperation extends BaseModel {
689
750
  appStateType: string;
690
751
  key: string | Uint8Array;
691
752
  operation: string;
692
- account?: string;
753
+ account?: Address | string;
693
754
  newValue?: AvmValue;
694
755
  });
695
- static from_obj_for_encoding(data: Record<string, any>): ApplicationStateOperation;
756
+ getEncodingSchema(): Schema;
757
+ toEncodingData(): Map<string, unknown>;
758
+ static fromEncodingData(data: unknown): ApplicationStateOperation;
696
759
  }
697
760
  /**
698
761
  * Specifies maximums on the number of each type that may be stored.
699
762
  */
700
- export declare class ApplicationStateSchema extends BaseModel {
763
+ export declare class ApplicationStateSchema implements Encodable {
764
+ private static encodingSchemaValue;
765
+ static get encodingSchema(): Schema;
701
766
  /**
702
- * (nui) num of uints.
767
+ * (nbs) num of byte slices.
703
768
  */
704
- numUint: number | bigint;
769
+ numByteSlice: number;
705
770
  /**
706
- * (nbs) num of byte slices.
771
+ * (nui) num of uints.
707
772
  */
708
- numByteSlice: number | bigint;
773
+ numUint: number;
709
774
  /**
710
775
  * Creates a new `ApplicationStateSchema` object.
711
- * @param numUint - (nui) num of uints.
712
776
  * @param numByteSlice - (nbs) num of byte slices.
777
+ * @param numUint - (nui) num of uints.
713
778
  */
714
- constructor({ numUint, numByteSlice, }: {
715
- numUint: number | bigint;
779
+ constructor({ numByteSlice, numUint, }: {
716
780
  numByteSlice: number | bigint;
781
+ numUint: number | bigint;
717
782
  });
718
- static from_obj_for_encoding(data: Record<string, any>): ApplicationStateSchema;
783
+ getEncodingSchema(): Schema;
784
+ toEncodingData(): Map<string, unknown>;
785
+ static fromEncodingData(data: unknown): ApplicationStateSchema;
719
786
  }
720
787
  /**
721
788
  * Specifies both the unique identifier and the parameters for an asset
722
789
  */
723
- export declare class Asset extends BaseModel {
790
+ export declare class Asset implements Encodable {
791
+ private static encodingSchemaValue;
792
+ static get encodingSchema(): Schema;
724
793
  /**
725
794
  * unique asset identifier
726
795
  */
727
- index: number | bigint;
796
+ index: bigint;
728
797
  /**
729
798
  * AssetParams specifies the parameters for an asset.
730
799
  * (apar) when part of an AssetConfig transaction.
@@ -744,22 +813,26 @@ export declare class Asset extends BaseModel {
744
813
  index: number | bigint;
745
814
  params: AssetParams;
746
815
  });
747
- static from_obj_for_encoding(data: Record<string, any>): Asset;
816
+ getEncodingSchema(): Schema;
817
+ toEncodingData(): Map<string, unknown>;
818
+ static fromEncodingData(data: unknown): Asset;
748
819
  }
749
820
  /**
750
821
  * Describes an asset held by an account.
751
822
  * Definition:
752
823
  * data/basics/userBalance.go : AssetHolding
753
824
  */
754
- export declare class AssetHolding extends BaseModel {
825
+ export declare class AssetHolding implements Encodable {
826
+ private static encodingSchemaValue;
827
+ static get encodingSchema(): Schema;
755
828
  /**
756
829
  * (a) number of units held.
757
830
  */
758
- amount: number | bigint;
831
+ amount: bigint;
759
832
  /**
760
833
  * Asset ID of the holding.
761
834
  */
762
- assetId: number | bigint;
835
+ assetId: bigint;
763
836
  /**
764
837
  * (f) whether or not the holding is frozen.
765
838
  */
@@ -775,30 +848,36 @@ export declare class AssetHolding extends BaseModel {
775
848
  assetId: number | bigint;
776
849
  isFrozen: boolean;
777
850
  });
778
- static from_obj_for_encoding(data: Record<string, any>): AssetHolding;
851
+ getEncodingSchema(): Schema;
852
+ toEncodingData(): Map<string, unknown>;
853
+ static fromEncodingData(data: unknown): AssetHolding;
779
854
  }
780
855
  /**
781
856
  * References an asset held by an account.
782
857
  */
783
- export declare class AssetHoldingReference extends BaseModel {
858
+ export declare class AssetHoldingReference implements Encodable {
859
+ private static encodingSchemaValue;
860
+ static get encodingSchema(): Schema;
784
861
  /**
785
862
  * Address of the account holding the asset.
786
863
  */
787
- account: string;
864
+ account: Address;
788
865
  /**
789
866
  * Asset ID of the holding.
790
867
  */
791
- asset: number | bigint;
868
+ asset: bigint;
792
869
  /**
793
870
  * Creates a new `AssetHoldingReference` object.
794
871
  * @param account - Address of the account holding the asset.
795
872
  * @param asset - Asset ID of the holding.
796
873
  */
797
- constructor({ account, asset }: {
798
- account: string;
874
+ constructor({ account, asset, }: {
875
+ account: Address | string;
799
876
  asset: number | bigint;
800
877
  });
801
- static from_obj_for_encoding(data: Record<string, any>): AssetHoldingReference;
878
+ getEncodingSchema(): Schema;
879
+ toEncodingData(): Map<string, unknown>;
880
+ static fromEncodingData(data: unknown): AssetHoldingReference;
802
881
  }
803
882
  /**
804
883
  * AssetParams specifies the parameters for an asset.
@@ -806,7 +885,9 @@ export declare class AssetHoldingReference extends BaseModel {
806
885
  * Definition:
807
886
  * data/transactions/asset.go : AssetParams
808
887
  */
809
- export declare class AssetParams extends BaseModel {
888
+ export declare class AssetParams implements Encodable {
889
+ private static encodingSchemaValue;
890
+ static get encodingSchema(): Schema;
810
891
  /**
811
892
  * The address that created this asset. This is the address where the parameters
812
893
  * for this asset can be found, and also the address where unwanted asset units can
@@ -819,11 +900,11 @@ export declare class AssetParams extends BaseModel {
819
900
  * tenths. If 2, the base unit of the asset is in hundredths, and so on. This value
820
901
  * must be between 0 and 19 (inclusive).
821
902
  */
822
- decimals: number | bigint;
903
+ decimals: number;
823
904
  /**
824
905
  * (t) The total number of units of this asset.
825
906
  */
826
- total: number | bigint;
907
+ total: bigint;
827
908
  /**
828
909
  * (c) Address of account used to clawback holdings of this asset. If empty,
829
910
  * clawback is not permitted.
@@ -924,12 +1005,16 @@ export declare class AssetParams extends BaseModel {
924
1005
  url?: string;
925
1006
  urlB64?: string | Uint8Array;
926
1007
  });
927
- static from_obj_for_encoding(data: Record<string, any>): AssetParams;
1008
+ getEncodingSchema(): Schema;
1009
+ toEncodingData(): Map<string, unknown>;
1010
+ static fromEncodingData(data: unknown): AssetParams;
928
1011
  }
929
1012
  /**
930
1013
  * Represents an AVM key-value pair in an application store.
931
1014
  */
932
- export declare class AvmKeyValue extends BaseModel {
1015
+ export declare class AvmKeyValue implements Encodable {
1016
+ private static encodingSchemaValue;
1017
+ static get encodingSchema(): Schema;
933
1018
  key: Uint8Array;
934
1019
  /**
935
1020
  * Represents an AVM value.
@@ -944,16 +1029,20 @@ export declare class AvmKeyValue extends BaseModel {
944
1029
  key: string | Uint8Array;
945
1030
  value: AvmValue;
946
1031
  });
947
- static from_obj_for_encoding(data: Record<string, any>): AvmKeyValue;
1032
+ getEncodingSchema(): Schema;
1033
+ toEncodingData(): Map<string, unknown>;
1034
+ static fromEncodingData(data: unknown): AvmKeyValue;
948
1035
  }
949
1036
  /**
950
1037
  * Represents an AVM value.
951
1038
  */
952
- export declare class AvmValue extends BaseModel {
1039
+ export declare class AvmValue implements Encodable {
1040
+ private static encodingSchemaValue;
1041
+ static get encodingSchema(): Schema;
953
1042
  /**
954
1043
  * value type. Value `1` refers to **bytes**, value `2` refers to **uint64**
955
1044
  */
956
- type: number | bigint;
1045
+ type: number;
957
1046
  /**
958
1047
  * bytes value.
959
1048
  */
@@ -961,7 +1050,7 @@ export declare class AvmValue extends BaseModel {
961
1050
  /**
962
1051
  * uint value.
963
1052
  */
964
- uint?: number | bigint;
1053
+ uint?: bigint;
965
1054
  /**
966
1055
  * Creates a new `AvmValue` object.
967
1056
  * @param type - value type. Value `1` refers to **bytes**, value `2` refers to **uint64**
@@ -973,12 +1062,16 @@ export declare class AvmValue extends BaseModel {
973
1062
  bytes?: string | Uint8Array;
974
1063
  uint?: number | bigint;
975
1064
  });
976
- static from_obj_for_encoding(data: Record<string, any>): AvmValue;
1065
+ getEncodingSchema(): Schema;
1066
+ toEncodingData(): Map<string, unknown>;
1067
+ static fromEncodingData(data: unknown): AvmValue;
977
1068
  }
978
1069
  /**
979
1070
  * Hash of a block header.
980
1071
  */
981
- export declare class BlockHashResponse extends BaseModel {
1072
+ export declare class BlockHashResponse implements Encodable {
1073
+ private static encodingSchemaValue;
1074
+ static get encodingSchema(): Schema;
982
1075
  /**
983
1076
  * Block header hash.
984
1077
  */
@@ -990,7 +1083,9 @@ export declare class BlockHashResponse extends BaseModel {
990
1083
  constructor({ blockhash }: {
991
1084
  blockhash: string;
992
1085
  });
993
- static from_obj_for_encoding(data: Record<string, any>): BlockHashResponse;
1086
+ getEncodingSchema(): Schema;
1087
+ toEncodingData(): Map<string, unknown>;
1088
+ static fromEncodingData(data: unknown): BlockHashResponse;
994
1089
  }
995
1090
  /**
996
1091
  * All logs emitted in the given round. Each app call, whether top-level or inner,
@@ -1001,7 +1096,9 @@ export declare class BlockHashResponse extends BaseModel {
1001
1096
  * that their corresponding app call appeared in the block (pre-order traversal of
1002
1097
  * inner app calls)
1003
1098
  */
1004
- export declare class BlockLogsResponse extends BaseModel {
1099
+ export declare class BlockLogsResponse implements Encodable {
1100
+ private static encodingSchemaValue;
1101
+ static get encodingSchema(): Schema;
1005
1102
  logs: AppCallLogs[];
1006
1103
  /**
1007
1104
  * Creates a new `BlockLogsResponse` object.
@@ -1010,37 +1107,45 @@ export declare class BlockLogsResponse extends BaseModel {
1010
1107
  constructor({ logs }: {
1011
1108
  logs: AppCallLogs[];
1012
1109
  });
1013
- static from_obj_for_encoding(data: Record<string, any>): BlockLogsResponse;
1110
+ getEncodingSchema(): Schema;
1111
+ toEncodingData(): Map<string, unknown>;
1112
+ static fromEncodingData(data: unknown): BlockLogsResponse;
1014
1113
  }
1015
1114
  /**
1016
1115
  * Encoded block object.
1017
1116
  */
1018
- export declare class BlockResponse extends BaseModel {
1117
+ export declare class BlockResponse implements Encodable {
1118
+ private static encodingSchemaValue;
1119
+ static get encodingSchema(): Schema;
1019
1120
  /**
1020
1121
  * Block header data.
1021
1122
  */
1022
- block: BlockHeader;
1123
+ block: Block;
1023
1124
  /**
1024
1125
  * Optional certificate object. This is only included when the format is set to
1025
1126
  * message pack.
1026
1127
  */
1027
- cert?: Record<string, any>;
1128
+ cert?: UntypedValue;
1028
1129
  /**
1029
1130
  * Creates a new `BlockResponse` object.
1030
1131
  * @param block - Block header data.
1031
1132
  * @param cert - Optional certificate object. This is only included when the format is set to
1032
1133
  * message pack.
1033
1134
  */
1034
- constructor({ block, cert, }: {
1035
- block: BlockHeader;
1036
- cert?: Record<string, any>;
1135
+ constructor({ block, cert }: {
1136
+ block: Block;
1137
+ cert?: UntypedValue;
1037
1138
  });
1038
- static from_obj_for_encoding(data: Record<string, any>): BlockResponse;
1139
+ getEncodingSchema(): Schema;
1140
+ toEncodingData(): Map<string, unknown>;
1141
+ static fromEncodingData(data: unknown): BlockResponse;
1039
1142
  }
1040
1143
  /**
1041
1144
  * Top level transaction IDs in a block.
1042
1145
  */
1043
- export declare class BlockTxidsResponse extends BaseModel {
1146
+ export declare class BlockTxidsResponse implements Encodable {
1147
+ private static encodingSchemaValue;
1148
+ static get encodingSchema(): Schema;
1044
1149
  /**
1045
1150
  * Block transaction IDs.
1046
1151
  */
@@ -1052,12 +1157,16 @@ export declare class BlockTxidsResponse extends BaseModel {
1052
1157
  constructor({ blocktxids }: {
1053
1158
  blocktxids: string[];
1054
1159
  });
1055
- static from_obj_for_encoding(data: Record<string, any>): BlockTxidsResponse;
1160
+ getEncodingSchema(): Schema;
1161
+ toEncodingData(): Map<string, unknown>;
1162
+ static fromEncodingData(data: unknown): BlockTxidsResponse;
1056
1163
  }
1057
1164
  /**
1058
1165
  * Box name and its content.
1059
1166
  */
1060
- export declare class Box extends BaseModel {
1167
+ export declare class Box implements Encodable {
1168
+ private static encodingSchemaValue;
1169
+ static get encodingSchema(): Schema;
1061
1170
  /**
1062
1171
  * (name) box name, base64 encoded
1063
1172
  */
@@ -1065,7 +1174,7 @@ export declare class Box extends BaseModel {
1065
1174
  /**
1066
1175
  * The round for which this information is relevant
1067
1176
  */
1068
- round: number | bigint;
1177
+ round: bigint;
1069
1178
  /**
1070
1179
  * (value) box value, base64 encoded.
1071
1180
  */
@@ -1081,12 +1190,16 @@ export declare class Box extends BaseModel {
1081
1190
  round: number | bigint;
1082
1191
  value: string | Uint8Array;
1083
1192
  });
1084
- static from_obj_for_encoding(data: Record<string, any>): Box;
1193
+ getEncodingSchema(): Schema;
1194
+ toEncodingData(): Map<string, unknown>;
1195
+ static fromEncodingData(data: unknown): Box;
1085
1196
  }
1086
1197
  /**
1087
1198
  * Box descriptor describes a Box.
1088
1199
  */
1089
- export declare class BoxDescriptor extends BaseModel {
1200
+ export declare class BoxDescriptor implements Encodable {
1201
+ private static encodingSchemaValue;
1202
+ static get encodingSchema(): Schema;
1090
1203
  /**
1091
1204
  * Base64 encoded box name
1092
1205
  */
@@ -1098,16 +1211,20 @@ export declare class BoxDescriptor extends BaseModel {
1098
1211
  constructor({ name }: {
1099
1212
  name: string | Uint8Array;
1100
1213
  });
1101
- static from_obj_for_encoding(data: Record<string, any>): BoxDescriptor;
1214
+ getEncodingSchema(): Schema;
1215
+ toEncodingData(): Map<string, unknown>;
1216
+ static fromEncodingData(data: unknown): BoxDescriptor;
1102
1217
  }
1103
1218
  /**
1104
1219
  * References a box of an application.
1105
1220
  */
1106
- export declare class BoxReference extends BaseModel {
1221
+ export declare class BoxReference implements Encodable {
1222
+ private static encodingSchemaValue;
1223
+ static get encodingSchema(): Schema;
1107
1224
  /**
1108
1225
  * Application ID which this box belongs to
1109
1226
  */
1110
- app: number | bigint;
1227
+ app: bigint;
1111
1228
  /**
1112
1229
  * Base64 encoded box name
1113
1230
  */
@@ -1121,12 +1238,16 @@ export declare class BoxReference extends BaseModel {
1121
1238
  app: number | bigint;
1122
1239
  name: string | Uint8Array;
1123
1240
  });
1124
- static from_obj_for_encoding(data: Record<string, any>): BoxReference;
1241
+ getEncodingSchema(): Schema;
1242
+ toEncodingData(): Map<string, unknown>;
1243
+ static fromEncodingData(data: unknown): BoxReference;
1125
1244
  }
1126
1245
  /**
1127
1246
  * Box names of an application
1128
1247
  */
1129
- export declare class BoxesResponse extends BaseModel {
1248
+ export declare class BoxesResponse implements Encodable {
1249
+ private static encodingSchemaValue;
1250
+ static get encodingSchema(): Schema;
1130
1251
  boxes: BoxDescriptor[];
1131
1252
  /**
1132
1253
  * Creates a new `BoxesResponse` object.
@@ -1135,15 +1256,19 @@ export declare class BoxesResponse extends BaseModel {
1135
1256
  constructor({ boxes }: {
1136
1257
  boxes: BoxDescriptor[];
1137
1258
  });
1138
- static from_obj_for_encoding(data: Record<string, any>): BoxesResponse;
1259
+ getEncodingSchema(): Schema;
1260
+ toEncodingData(): Map<string, unknown>;
1261
+ static fromEncodingData(data: unknown): BoxesResponse;
1139
1262
  }
1140
- export declare class BuildVersion extends BaseModel {
1263
+ export declare class BuildVersion implements Encodable {
1264
+ private static encodingSchemaValue;
1265
+ static get encodingSchema(): Schema;
1141
1266
  branch: string;
1142
- buildNumber: number | bigint;
1267
+ buildNumber: number;
1143
1268
  channel: string;
1144
1269
  commitHash: string;
1145
- major: number | bigint;
1146
- minor: number | bigint;
1270
+ major: number;
1271
+ minor: number;
1147
1272
  /**
1148
1273
  * Creates a new `BuildVersion` object.
1149
1274
  * @param branch -
@@ -1161,12 +1286,16 @@ export declare class BuildVersion extends BaseModel {
1161
1286
  major: number | bigint;
1162
1287
  minor: number | bigint;
1163
1288
  });
1164
- static from_obj_for_encoding(data: Record<string, any>): BuildVersion;
1289
+ getEncodingSchema(): Schema;
1290
+ toEncodingData(): Map<string, unknown>;
1291
+ static fromEncodingData(data: unknown): BuildVersion;
1165
1292
  }
1166
1293
  /**
1167
1294
  * Teal compile Result
1168
1295
  */
1169
- export declare class CompileResponse extends BaseModel {
1296
+ export declare class CompileResponse implements Encodable {
1297
+ private static encodingSchemaValue;
1298
+ static get encodingSchema(): Schema;
1170
1299
  /**
1171
1300
  * base32 SHA512_256 of program bytes (Address style)
1172
1301
  */
@@ -1178,7 +1307,7 @@ export declare class CompileResponse extends BaseModel {
1178
1307
  /**
1179
1308
  * JSON of the source map
1180
1309
  */
1181
- sourcemap?: Record<string, any>;
1310
+ sourcemap?: UntypedValue;
1182
1311
  /**
1183
1312
  * Creates a new `CompileResponse` object.
1184
1313
  * @param hash - base32 SHA512_256 of program bytes (Address style)
@@ -1188,14 +1317,18 @@ export declare class CompileResponse extends BaseModel {
1188
1317
  constructor({ hash, result, sourcemap, }: {
1189
1318
  hash: string;
1190
1319
  result: string;
1191
- sourcemap?: Record<string, any>;
1320
+ sourcemap?: UntypedValue;
1192
1321
  });
1193
- static from_obj_for_encoding(data: Record<string, any>): CompileResponse;
1322
+ getEncodingSchema(): Schema;
1323
+ toEncodingData(): Map<string, unknown>;
1324
+ static fromEncodingData(data: unknown): CompileResponse;
1194
1325
  }
1195
1326
  /**
1196
1327
  * Teal disassembly Result
1197
1328
  */
1198
- export declare class DisassembleResponse extends BaseModel {
1329
+ export declare class DisassembleResponse implements Encodable {
1330
+ private static encodingSchemaValue;
1331
+ static get encodingSchema(): Schema;
1199
1332
  /**
1200
1333
  * disassembled Teal code
1201
1334
  */
@@ -1207,20 +1340,24 @@ export declare class DisassembleResponse extends BaseModel {
1207
1340
  constructor({ result }: {
1208
1341
  result: string;
1209
1342
  });
1210
- static from_obj_for_encoding(data: Record<string, any>): DisassembleResponse;
1343
+ getEncodingSchema(): Schema;
1344
+ toEncodingData(): Map<string, unknown>;
1345
+ static fromEncodingData(data: unknown): DisassembleResponse;
1211
1346
  }
1212
1347
  /**
1213
1348
  * Request data type for dryrun endpoint. Given the Transactions and simulated
1214
1349
  * ledger state upload, run TEAL scripts and return debugging information.
1215
1350
  */
1216
- export declare class DryrunRequest extends BaseModel {
1351
+ export declare class DryrunRequest implements Encodable {
1352
+ private static encodingSchemaValue;
1353
+ static get encodingSchema(): Schema;
1217
1354
  accounts: Account[];
1218
1355
  apps: Application[];
1219
1356
  /**
1220
1357
  * LatestTimestamp is available to some TEAL scripts. Defaults to the latest
1221
1358
  * confirmed timestamp this algod is attached to.
1222
1359
  */
1223
- latestTimestamp: number | bigint;
1360
+ latestTimestamp: number;
1224
1361
  /**
1225
1362
  * ProtocolVersion specifies a specific version string to operate under, otherwise
1226
1363
  * whatever the current protocol of the network this algod is running in.
@@ -1230,9 +1367,9 @@ export declare class DryrunRequest extends BaseModel {
1230
1367
  * Round is available to some TEAL scripts. Defaults to the current round on the
1231
1368
  * network this algod is attached to.
1232
1369
  */
1233
- round: number | bigint;
1370
+ round: bigint;
1234
1371
  sources: DryrunSource[];
1235
- txns: EncodedSignedTransaction[];
1372
+ txns: SignedTransaction[];
1236
1373
  /**
1237
1374
  * Creates a new `DryrunRequest` object.
1238
1375
  * @param accounts -
@@ -1253,14 +1390,18 @@ export declare class DryrunRequest extends BaseModel {
1253
1390
  protocolVersion: string;
1254
1391
  round: number | bigint;
1255
1392
  sources: DryrunSource[];
1256
- txns: EncodedSignedTransaction[];
1393
+ txns: SignedTransaction[];
1257
1394
  });
1258
- static from_obj_for_encoding(data: Record<string, any>): DryrunRequest;
1395
+ getEncodingSchema(): Schema;
1396
+ toEncodingData(): Map<string, unknown>;
1397
+ static fromEncodingData(data: unknown): DryrunRequest;
1259
1398
  }
1260
1399
  /**
1261
1400
  * DryrunResponse contains per-txn debug information from a dryrun.
1262
1401
  */
1263
- export declare class DryrunResponse extends BaseModel {
1402
+ export declare class DryrunResponse implements Encodable {
1403
+ private static encodingSchemaValue;
1404
+ static get encodingSchema(): Schema;
1264
1405
  error: string;
1265
1406
  /**
1266
1407
  * Protocol version is the protocol version Dryrun was operated under.
@@ -1278,13 +1419,18 @@ export declare class DryrunResponse extends BaseModel {
1278
1419
  protocolVersion: string;
1279
1420
  txns: DryrunTxnResult[];
1280
1421
  });
1281
- static from_obj_for_encoding(data: Record<string, any>): DryrunResponse;
1422
+ getEncodingSchema(): Schema;
1423
+ toEncodingData(): Map<string, unknown>;
1424
+ static fromEncodingData(data: unknown): DryrunResponse;
1282
1425
  }
1283
1426
  /**
1284
1427
  * DryrunSource is TEAL source text that gets uploaded, compiled, and inserted into
1285
1428
  * transactions or application state.
1286
1429
  */
1287
- export declare class DryrunSource extends BaseModel {
1430
+ export declare class DryrunSource implements Encodable {
1431
+ private static encodingSchemaValue;
1432
+ static get encodingSchema(): Schema;
1433
+ appIndex: bigint;
1288
1434
  /**
1289
1435
  * FieldName is what kind of sources this is. If lsig then it goes into the
1290
1436
  * transactions[this.TxnIndex].LogicSig. If approv or clearp it goes into the
@@ -1292,37 +1438,40 @@ export declare class DryrunSource extends BaseModel {
1292
1438
  */
1293
1439
  fieldName: string;
1294
1440
  source: string;
1295
- txnIndex: number | bigint;
1296
- appIndex: number | bigint;
1441
+ txnIndex: number;
1297
1442
  /**
1298
1443
  * Creates a new `DryrunSource` object.
1444
+ * @param appIndex -
1299
1445
  * @param fieldName - FieldName is what kind of sources this is. If lsig then it goes into the
1300
1446
  * transactions[this.TxnIndex].LogicSig. If approv or clearp it goes into the
1301
1447
  * Approval Program or Clear State Program of application[this.AppIndex].
1302
1448
  * @param source -
1303
1449
  * @param txnIndex -
1304
- * @param appIndex -
1305
1450
  */
1306
- constructor({ fieldName, source, txnIndex, appIndex, }: {
1451
+ constructor({ appIndex, fieldName, source, txnIndex, }: {
1452
+ appIndex: number | bigint;
1307
1453
  fieldName: string;
1308
1454
  source: string;
1309
1455
  txnIndex: number | bigint;
1310
- appIndex: number | bigint;
1311
1456
  });
1312
- static from_obj_for_encoding(data: Record<string, any>): DryrunSource;
1457
+ getEncodingSchema(): Schema;
1458
+ toEncodingData(): Map<string, unknown>;
1459
+ static fromEncodingData(data: unknown): DryrunSource;
1313
1460
  }
1314
1461
  /**
1315
1462
  * Stores the TEAL eval step data
1316
1463
  */
1317
- export declare class DryrunState extends BaseModel {
1464
+ export declare class DryrunState implements Encodable {
1465
+ private static encodingSchemaValue;
1466
+ static get encodingSchema(): Schema;
1318
1467
  /**
1319
1468
  * Line number
1320
1469
  */
1321
- line: number | bigint;
1470
+ line: number;
1322
1471
  /**
1323
1472
  * Program counter
1324
1473
  */
1325
- pc: number | bigint;
1474
+ pc: number;
1326
1475
  stack: TealValue[];
1327
1476
  /**
1328
1477
  * Evaluation error if any
@@ -1344,13 +1493,17 @@ export declare class DryrunState extends BaseModel {
1344
1493
  error?: string;
1345
1494
  scratch?: TealValue[];
1346
1495
  });
1347
- static from_obj_for_encoding(data: Record<string, any>): DryrunState;
1496
+ getEncodingSchema(): Schema;
1497
+ toEncodingData(): Map<string, unknown>;
1498
+ static fromEncodingData(data: unknown): DryrunState;
1348
1499
  }
1349
1500
  /**
1350
1501
  * DryrunTxnResult contains any LogicSig or ApplicationCall program debug
1351
1502
  * information and state updates from a dryrun.
1352
1503
  */
1353
- export declare class DryrunTxnResult extends BaseModel {
1504
+ export declare class DryrunTxnResult implements Encodable {
1505
+ private static encodingSchemaValue;
1506
+ static get encodingSchema(): Schema;
1354
1507
  /**
1355
1508
  * Disassembled program line by line.
1356
1509
  */
@@ -1360,11 +1513,11 @@ export declare class DryrunTxnResult extends BaseModel {
1360
1513
  /**
1361
1514
  * Budget added during execution of app call transaction.
1362
1515
  */
1363
- budgetAdded?: number | bigint;
1516
+ budgetAdded?: number;
1364
1517
  /**
1365
1518
  * Budget consumed during execution of app call transaction.
1366
1519
  */
1367
- budgetConsumed?: number | bigint;
1520
+ budgetConsumed?: number;
1368
1521
  /**
1369
1522
  * Application state delta.
1370
1523
  */
@@ -1404,33 +1557,41 @@ export declare class DryrunTxnResult extends BaseModel {
1404
1557
  logicSigTrace?: DryrunState[];
1405
1558
  logs?: Uint8Array[];
1406
1559
  });
1407
- static from_obj_for_encoding(data: Record<string, any>): DryrunTxnResult;
1560
+ getEncodingSchema(): Schema;
1561
+ toEncodingData(): Map<string, unknown>;
1562
+ static fromEncodingData(data: unknown): DryrunTxnResult;
1408
1563
  }
1409
1564
  /**
1410
1565
  * An error response with optional data field.
1411
1566
  */
1412
- export declare class ErrorResponse extends BaseModel {
1567
+ export declare class ErrorResponse implements Encodable {
1568
+ private static encodingSchemaValue;
1569
+ static get encodingSchema(): Schema;
1413
1570
  message: string;
1414
- data?: Record<string, any>;
1571
+ data?: UntypedValue;
1415
1572
  /**
1416
1573
  * Creates a new `ErrorResponse` object.
1417
1574
  * @param message -
1418
1575
  * @param data -
1419
1576
  */
1420
- constructor({ message, data, }: {
1577
+ constructor({ message, data }: {
1421
1578
  message: string;
1422
- data?: Record<string, any>;
1579
+ data?: UntypedValue;
1423
1580
  });
1424
- static from_obj_for_encoding(data: Record<string, any>): ErrorResponse;
1581
+ getEncodingSchema(): Schema;
1582
+ toEncodingData(): Map<string, unknown>;
1583
+ static fromEncodingData(data: unknown): ErrorResponse;
1425
1584
  }
1426
1585
  /**
1427
1586
  * Represents a TEAL value delta.
1428
1587
  */
1429
- export declare class EvalDelta extends BaseModel {
1588
+ export declare class EvalDelta implements Encodable {
1589
+ private static encodingSchemaValue;
1590
+ static get encodingSchema(): Schema;
1430
1591
  /**
1431
1592
  * (at) delta action.
1432
1593
  */
1433
- action: number | bigint;
1594
+ action: number;
1434
1595
  /**
1435
1596
  * (bs) bytes value.
1436
1597
  */
@@ -1438,7 +1599,7 @@ export declare class EvalDelta extends BaseModel {
1438
1599
  /**
1439
1600
  * (ui) uint value.
1440
1601
  */
1441
- uint?: number | bigint;
1602
+ uint?: bigint;
1442
1603
  /**
1443
1604
  * Creates a new `EvalDelta` object.
1444
1605
  * @param action - (at) delta action.
@@ -1450,12 +1611,16 @@ export declare class EvalDelta extends BaseModel {
1450
1611
  bytes?: string;
1451
1612
  uint?: number | bigint;
1452
1613
  });
1453
- static from_obj_for_encoding(data: Record<string, any>): EvalDelta;
1614
+ getEncodingSchema(): Schema;
1615
+ toEncodingData(): Map<string, unknown>;
1616
+ static fromEncodingData(data: unknown): EvalDelta;
1454
1617
  }
1455
1618
  /**
1456
1619
  * Key-value pairs for StateDelta.
1457
1620
  */
1458
- export declare class EvalDeltaKeyValue extends BaseModel {
1621
+ export declare class EvalDeltaKeyValue implements Encodable {
1622
+ private static encodingSchemaValue;
1623
+ static get encodingSchema(): Schema;
1459
1624
  key: string;
1460
1625
  /**
1461
1626
  * Represents a TEAL value delta.
@@ -1470,16 +1635,20 @@ export declare class EvalDeltaKeyValue extends BaseModel {
1470
1635
  key: string;
1471
1636
  value: EvalDelta;
1472
1637
  });
1473
- static from_obj_for_encoding(data: Record<string, any>): EvalDeltaKeyValue;
1638
+ getEncodingSchema(): Schema;
1639
+ toEncodingData(): Map<string, unknown>;
1640
+ static fromEncodingData(data: unknown): EvalDeltaKeyValue;
1474
1641
  }
1475
1642
  /**
1476
1643
  * Response containing the timestamp offset in seconds
1477
1644
  */
1478
- export declare class GetBlockTimeStampOffsetResponse extends BaseModel {
1645
+ export declare class GetBlockTimeStampOffsetResponse implements Encodable {
1646
+ private static encodingSchemaValue;
1647
+ static get encodingSchema(): Schema;
1479
1648
  /**
1480
1649
  * Timestamp offset in seconds.
1481
1650
  */
1482
- offset: number | bigint;
1651
+ offset: number;
1483
1652
  /**
1484
1653
  * Creates a new `GetBlockTimeStampOffsetResponse` object.
1485
1654
  * @param offset - Timestamp offset in seconds.
@@ -1487,16 +1656,20 @@ export declare class GetBlockTimeStampOffsetResponse extends BaseModel {
1487
1656
  constructor({ offset }: {
1488
1657
  offset: number | bigint;
1489
1658
  });
1490
- static from_obj_for_encoding(data: Record<string, any>): GetBlockTimeStampOffsetResponse;
1659
+ getEncodingSchema(): Schema;
1660
+ toEncodingData(): Map<string, unknown>;
1661
+ static fromEncodingData(data: unknown): GetBlockTimeStampOffsetResponse;
1491
1662
  }
1492
1663
  /**
1493
1664
  * Response containing the ledger's minimum sync round
1494
1665
  */
1495
- export declare class GetSyncRoundResponse extends BaseModel {
1666
+ export declare class GetSyncRoundResponse implements Encodable {
1667
+ private static encodingSchemaValue;
1668
+ static get encodingSchema(): Schema;
1496
1669
  /**
1497
1670
  * The minimum sync round for the ledger.
1498
1671
  */
1499
- round: number | bigint;
1672
+ round: bigint;
1500
1673
  /**
1501
1674
  * Creates a new `GetSyncRoundResponse` object.
1502
1675
  * @param round - The minimum sync round for the ledger.
@@ -1504,13 +1677,17 @@ export declare class GetSyncRoundResponse extends BaseModel {
1504
1677
  constructor({ round }: {
1505
1678
  round: number | bigint;
1506
1679
  });
1507
- static from_obj_for_encoding(data: Record<string, any>): GetSyncRoundResponse;
1680
+ getEncodingSchema(): Schema;
1681
+ toEncodingData(): Map<string, unknown>;
1682
+ static fromEncodingData(data: unknown): GetSyncRoundResponse;
1508
1683
  }
1509
1684
  /**
1510
1685
  * A single Delta containing the key, the previous value and the current value for
1511
1686
  * a single round.
1512
1687
  */
1513
- export declare class KvDelta extends BaseModel {
1688
+ export declare class KvDelta implements Encodable {
1689
+ private static encodingSchemaValue;
1690
+ static get encodingSchema(): Schema;
1514
1691
  /**
1515
1692
  * The key, base64 encoded.
1516
1693
  */
@@ -1528,16 +1705,20 @@ export declare class KvDelta extends BaseModel {
1528
1705
  key?: string | Uint8Array;
1529
1706
  value?: string | Uint8Array;
1530
1707
  });
1531
- static from_obj_for_encoding(data: Record<string, any>): KvDelta;
1708
+ getEncodingSchema(): Schema;
1709
+ toEncodingData(): Map<string, unknown>;
1710
+ static fromEncodingData(data: unknown): KvDelta;
1532
1711
  }
1533
1712
  /**
1534
1713
  * Contains a ledger delta for a single transaction group
1535
1714
  */
1536
- export declare class LedgerStateDeltaForTransactionGroup extends BaseModel {
1715
+ export declare class LedgerStateDeltaForTransactionGroup implements Encodable {
1716
+ private static encodingSchemaValue;
1717
+ static get encodingSchema(): Schema;
1537
1718
  /**
1538
1719
  * Ledger StateDelta object
1539
1720
  */
1540
- delta: Record<string, any>;
1721
+ delta: LedgerStateDelta;
1541
1722
  ids: string[];
1542
1723
  /**
1543
1724
  * Creates a new `LedgerStateDeltaForTransactionGroup` object.
@@ -1545,19 +1726,23 @@ export declare class LedgerStateDeltaForTransactionGroup extends BaseModel {
1545
1726
  * @param ids -
1546
1727
  */
1547
1728
  constructor({ delta, ids }: {
1548
- delta: Record<string, any>;
1729
+ delta: LedgerStateDelta;
1549
1730
  ids: string[];
1550
1731
  });
1551
- static from_obj_for_encoding(data: Record<string, any>): LedgerStateDeltaForTransactionGroup;
1732
+ getEncodingSchema(): Schema;
1733
+ toEncodingData(): Map<string, unknown>;
1734
+ static fromEncodingData(data: unknown): LedgerStateDeltaForTransactionGroup;
1552
1735
  }
1553
1736
  /**
1554
1737
  * Proof of membership and position of a light block header.
1555
1738
  */
1556
- export declare class LightBlockHeaderProof extends BaseModel {
1739
+ export declare class LightBlockHeaderProof implements Encodable {
1740
+ private static encodingSchemaValue;
1741
+ static get encodingSchema(): Schema;
1557
1742
  /**
1558
1743
  * The index of the light block header in the vector commitment tree
1559
1744
  */
1560
- index: number | bigint;
1745
+ index: number;
1561
1746
  /**
1562
1747
  * The encoded proof.
1563
1748
  */
@@ -1566,7 +1751,7 @@ export declare class LightBlockHeaderProof extends BaseModel {
1566
1751
  * Represents the depth of the tree that is being proven, i.e. the number of edges
1567
1752
  * from a leaf to the root.
1568
1753
  */
1569
- treedepth: number | bigint;
1754
+ treedepth: number;
1570
1755
  /**
1571
1756
  * Creates a new `LightBlockHeaderProof` object.
1572
1757
  * @param index - The index of the light block header in the vector commitment tree
@@ -1579,20 +1764,24 @@ export declare class LightBlockHeaderProof extends BaseModel {
1579
1764
  proof: string | Uint8Array;
1580
1765
  treedepth: number | bigint;
1581
1766
  });
1582
- static from_obj_for_encoding(data: Record<string, any>): LightBlockHeaderProof;
1767
+ getEncodingSchema(): Schema;
1768
+ toEncodingData(): Map<string, unknown>;
1769
+ static fromEncodingData(data: unknown): LightBlockHeaderProof;
1583
1770
  }
1584
1771
  /**
1585
1772
  *
1586
1773
  */
1587
- export declare class NodeStatusResponse extends BaseModel {
1774
+ export declare class NodeStatusResponse implements Encodable {
1775
+ private static encodingSchemaValue;
1776
+ static get encodingSchema(): Schema;
1588
1777
  /**
1589
1778
  * CatchupTime in nanoseconds
1590
1779
  */
1591
- catchupTime: number | bigint;
1780
+ catchupTime: bigint;
1592
1781
  /**
1593
1782
  * LastRound indicates the last round seen
1594
1783
  */
1595
- lastRound: number | bigint;
1784
+ lastRound: bigint;
1596
1785
  /**
1597
1786
  * LastVersion indicates the last consensus version supported
1598
1787
  */
@@ -1604,7 +1793,7 @@ export declare class NodeStatusResponse extends BaseModel {
1604
1793
  /**
1605
1794
  * NextVersionRound is the round at which the next consensus version will apply
1606
1795
  */
1607
- nextVersionRound: number | bigint;
1796
+ nextVersionRound: bigint;
1608
1797
  /**
1609
1798
  * NextVersionSupported indicates whether the next consensus version is supported
1610
1799
  * by this node
@@ -1618,7 +1807,7 @@ export declare class NodeStatusResponse extends BaseModel {
1618
1807
  /**
1619
1808
  * TimeSinceLastRound in nanoseconds
1620
1809
  */
1621
- timeSinceLastRound: number | bigint;
1810
+ timeSinceLastRound: bigint;
1622
1811
  /**
1623
1812
  * The current catchpoint that is being caught up to
1624
1813
  */
@@ -1627,40 +1816,40 @@ export declare class NodeStatusResponse extends BaseModel {
1627
1816
  * The number of blocks that have already been obtained by the node as part of the
1628
1817
  * catchup
1629
1818
  */
1630
- catchpointAcquiredBlocks?: number | bigint;
1819
+ catchpointAcquiredBlocks?: number;
1631
1820
  /**
1632
1821
  * The number of accounts from the current catchpoint that have been processed so
1633
1822
  * far as part of the catchup
1634
1823
  */
1635
- catchpointProcessedAccounts?: number | bigint;
1824
+ catchpointProcessedAccounts?: number;
1636
1825
  /**
1637
1826
  * The number of key-values (KVs) from the current catchpoint that have been
1638
1827
  * processed so far as part of the catchup
1639
1828
  */
1640
- catchpointProcessedKvs?: number | bigint;
1829
+ catchpointProcessedKvs?: number;
1641
1830
  /**
1642
1831
  * The total number of accounts included in the current catchpoint
1643
1832
  */
1644
- catchpointTotalAccounts?: number | bigint;
1833
+ catchpointTotalAccounts?: number;
1645
1834
  /**
1646
1835
  * The total number of blocks that are required to complete the current catchpoint
1647
1836
  * catchup
1648
1837
  */
1649
- catchpointTotalBlocks?: number | bigint;
1838
+ catchpointTotalBlocks?: number;
1650
1839
  /**
1651
1840
  * The total number of key-values (KVs) included in the current catchpoint
1652
1841
  */
1653
- catchpointTotalKvs?: number | bigint;
1842
+ catchpointTotalKvs?: number;
1654
1843
  /**
1655
1844
  * The number of accounts from the current catchpoint that have been verified so
1656
1845
  * far as part of the catchup
1657
1846
  */
1658
- catchpointVerifiedAccounts?: number | bigint;
1847
+ catchpointVerifiedAccounts?: number;
1659
1848
  /**
1660
1849
  * The number of key-values (KVs) from the current catchpoint that have been
1661
1850
  * verified so far as part of the catchup
1662
1851
  */
1663
- catchpointVerifiedKvs?: number | bigint;
1852
+ catchpointVerifiedKvs?: number;
1664
1853
  /**
1665
1854
  * The last catchpoint seen by the node
1666
1855
  */
@@ -1668,15 +1857,15 @@ export declare class NodeStatusResponse extends BaseModel {
1668
1857
  /**
1669
1858
  * Upgrade delay
1670
1859
  */
1671
- upgradeDelay?: number | bigint;
1860
+ upgradeDelay?: bigint;
1672
1861
  /**
1673
1862
  * Next protocol round
1674
1863
  */
1675
- upgradeNextProtocolVoteBefore?: number | bigint;
1864
+ upgradeNextProtocolVoteBefore?: bigint;
1676
1865
  /**
1677
1866
  * No votes cast for consensus upgrade
1678
1867
  */
1679
- upgradeNoVotes?: number | bigint;
1868
+ upgradeNoVotes?: number;
1680
1869
  /**
1681
1870
  * This node's upgrade vote
1682
1871
  */
@@ -1684,19 +1873,19 @@ export declare class NodeStatusResponse extends BaseModel {
1684
1873
  /**
1685
1874
  * Total voting rounds for current upgrade
1686
1875
  */
1687
- upgradeVoteRounds?: number | bigint;
1876
+ upgradeVoteRounds?: number;
1688
1877
  /**
1689
1878
  * Total votes cast for consensus upgrade
1690
1879
  */
1691
- upgradeVotes?: number | bigint;
1880
+ upgradeVotes?: number;
1692
1881
  /**
1693
1882
  * Yes votes required for consensus upgrade
1694
1883
  */
1695
- upgradeVotesRequired?: number | bigint;
1884
+ upgradeVotesRequired?: number;
1696
1885
  /**
1697
1886
  * Yes votes cast for consensus upgrade
1698
1887
  */
1699
- upgradeYesVotes?: number | bigint;
1888
+ upgradeYesVotes?: number;
1700
1889
  /**
1701
1890
  * Creates a new `NodeStatusResponse` object.
1702
1891
  * @param catchupTime - CatchupTime in nanoseconds
@@ -1762,13 +1951,17 @@ export declare class NodeStatusResponse extends BaseModel {
1762
1951
  upgradeVotesRequired?: number | bigint;
1763
1952
  upgradeYesVotes?: number | bigint;
1764
1953
  });
1765
- static from_obj_for_encoding(data: Record<string, any>): NodeStatusResponse;
1954
+ getEncodingSchema(): Schema;
1955
+ toEncodingData(): Map<string, unknown>;
1956
+ static fromEncodingData(data: unknown): NodeStatusResponse;
1766
1957
  }
1767
1958
  /**
1768
1959
  * Details about a pending transaction. If the transaction was recently confirmed,
1769
1960
  * includes confirmation details like the round and reward details.
1770
1961
  */
1771
- export declare class PendingTransactionResponse extends BaseModel {
1962
+ export declare class PendingTransactionResponse implements Encodable {
1963
+ private static encodingSchemaValue;
1964
+ static get encodingSchema(): Schema;
1772
1965
  /**
1773
1966
  * Indicates that the transaction was kicked out of this node's transaction pool
1774
1967
  * (and specifies why that happened). An empty string indicates the transaction
@@ -1778,32 +1971,32 @@ export declare class PendingTransactionResponse extends BaseModel {
1778
1971
  /**
1779
1972
  * The raw signed transaction.
1780
1973
  */
1781
- txn: EncodedSignedTransaction;
1974
+ txn: SignedTransaction;
1782
1975
  /**
1783
1976
  * The application index if the transaction was found and it created an
1784
1977
  * application.
1785
1978
  */
1786
- applicationIndex?: number | bigint;
1979
+ applicationIndex?: bigint;
1787
1980
  /**
1788
1981
  * The number of the asset's unit that were transferred to the close-to address.
1789
1982
  */
1790
- assetClosingAmount?: number | bigint;
1983
+ assetClosingAmount?: bigint;
1791
1984
  /**
1792
1985
  * The asset index if the transaction was found and it created an asset.
1793
1986
  */
1794
- assetIndex?: number | bigint;
1987
+ assetIndex?: bigint;
1795
1988
  /**
1796
1989
  * Rewards in microalgos applied to the close remainder to account.
1797
1990
  */
1798
- closeRewards?: number | bigint;
1991
+ closeRewards?: bigint;
1799
1992
  /**
1800
1993
  * Closing amount for the transaction.
1801
1994
  */
1802
- closingAmount?: number | bigint;
1995
+ closingAmount?: bigint;
1803
1996
  /**
1804
1997
  * The round where this transaction was confirmed, if present.
1805
1998
  */
1806
- confirmedRound?: number | bigint;
1999
+ confirmedRound?: bigint;
1807
2000
  /**
1808
2001
  * Global state key/value changes for the application being executed by this
1809
2002
  * transaction.
@@ -1825,11 +2018,11 @@ export declare class PendingTransactionResponse extends BaseModel {
1825
2018
  /**
1826
2019
  * Rewards in microalgos applied to the receiver account.
1827
2020
  */
1828
- receiverRewards?: number | bigint;
2021
+ receiverRewards?: bigint;
1829
2022
  /**
1830
2023
  * Rewards in microalgos applied to the sender account.
1831
2024
  */
1832
- senderRewards?: number | bigint;
2025
+ senderRewards?: bigint;
1833
2026
  /**
1834
2027
  * Creates a new `PendingTransactionResponse` object.
1835
2028
  * @param poolError - Indicates that the transaction was kicked out of this node's transaction pool
@@ -1854,7 +2047,7 @@ export declare class PendingTransactionResponse extends BaseModel {
1854
2047
  */
1855
2048
  constructor({ poolError, txn, applicationIndex, assetClosingAmount, assetIndex, closeRewards, closingAmount, confirmedRound, globalStateDelta, innerTxns, localStateDelta, logs, receiverRewards, senderRewards, }: {
1856
2049
  poolError: string;
1857
- txn: EncodedSignedTransaction;
2050
+ txn: SignedTransaction;
1858
2051
  applicationIndex?: number | bigint;
1859
2052
  assetClosingAmount?: number | bigint;
1860
2053
  assetIndex?: number | bigint;
@@ -1868,37 +2061,45 @@ export declare class PendingTransactionResponse extends BaseModel {
1868
2061
  receiverRewards?: number | bigint;
1869
2062
  senderRewards?: number | bigint;
1870
2063
  });
1871
- static from_obj_for_encoding(data: Record<string, any>): PendingTransactionResponse;
2064
+ getEncodingSchema(): Schema;
2065
+ toEncodingData(): Map<string, unknown>;
2066
+ static fromEncodingData(data: unknown): PendingTransactionResponse;
1872
2067
  }
1873
2068
  /**
1874
2069
  * A potentially truncated list of transactions currently in the node's transaction
1875
2070
  * pool. You can compute whether or not the list is truncated if the number of
1876
2071
  * elements in the **top-transactions** array is fewer than **total-transactions**.
1877
2072
  */
1878
- export declare class PendingTransactionsResponse extends BaseModel {
2073
+ export declare class PendingTransactionsResponse implements Encodable {
2074
+ private static encodingSchemaValue;
2075
+ static get encodingSchema(): Schema;
1879
2076
  /**
1880
2077
  * An array of signed transaction objects.
1881
2078
  */
1882
- topTransactions: EncodedSignedTransaction[];
2079
+ topTransactions: SignedTransaction[];
1883
2080
  /**
1884
2081
  * Total number of transactions in the pool.
1885
2082
  */
1886
- totalTransactions: number | bigint;
2083
+ totalTransactions: number;
1887
2084
  /**
1888
2085
  * Creates a new `PendingTransactionsResponse` object.
1889
2086
  * @param topTransactions - An array of signed transaction objects.
1890
2087
  * @param totalTransactions - Total number of transactions in the pool.
1891
2088
  */
1892
2089
  constructor({ topTransactions, totalTransactions, }: {
1893
- topTransactions: EncodedSignedTransaction[];
2090
+ topTransactions: SignedTransaction[];
1894
2091
  totalTransactions: number | bigint;
1895
2092
  });
1896
- static from_obj_for_encoding(data: Record<string, any>): PendingTransactionsResponse;
2093
+ getEncodingSchema(): Schema;
2094
+ toEncodingData(): Map<string, unknown>;
2095
+ static fromEncodingData(data: unknown): PendingTransactionsResponse;
1897
2096
  }
1898
2097
  /**
1899
2098
  * Transaction ID of the submission.
1900
2099
  */
1901
- export declare class PostTransactionsResponse extends BaseModel {
2100
+ export declare class PostTransactionsResponse implements Encodable {
2101
+ private static encodingSchemaValue;
2102
+ static get encodingSchema(): Schema;
1902
2103
  /**
1903
2104
  * encoding of the transaction hash.
1904
2105
  */
@@ -1910,12 +2111,16 @@ export declare class PostTransactionsResponse extends BaseModel {
1910
2111
  constructor({ txid }: {
1911
2112
  txid: string;
1912
2113
  });
1913
- static from_obj_for_encoding(data: Record<string, any>): PostTransactionsResponse;
2114
+ getEncodingSchema(): Schema;
2115
+ toEncodingData(): Map<string, unknown>;
2116
+ static fromEncodingData(data: unknown): PostTransactionsResponse;
1914
2117
  }
1915
2118
  /**
1916
2119
  * A write operation into a scratch slot.
1917
2120
  */
1918
- export declare class ScratchChange extends BaseModel {
2121
+ export declare class ScratchChange implements Encodable {
2122
+ private static encodingSchemaValue;
2123
+ static get encodingSchema(): Schema;
1919
2124
  /**
1920
2125
  * Represents an AVM value.
1921
2126
  */
@@ -1923,7 +2128,7 @@ export declare class ScratchChange extends BaseModel {
1923
2128
  /**
1924
2129
  * The scratch slot written.
1925
2130
  */
1926
- slot: number | bigint;
2131
+ slot: number;
1927
2132
  /**
1928
2133
  * Creates a new `ScratchChange` object.
1929
2134
  * @param newValue - Represents an AVM value.
@@ -1933,12 +2138,16 @@ export declare class ScratchChange extends BaseModel {
1933
2138
  newValue: AvmValue;
1934
2139
  slot: number | bigint;
1935
2140
  });
1936
- static from_obj_for_encoding(data: Record<string, any>): ScratchChange;
2141
+ getEncodingSchema(): Schema;
2142
+ toEncodingData(): Map<string, unknown>;
2143
+ static fromEncodingData(data: unknown): ScratchChange;
1937
2144
  }
1938
2145
  /**
1939
2146
  * Initial states of resources that were accessed during simulation.
1940
2147
  */
1941
- export declare class SimulateInitialStates extends BaseModel {
2148
+ export declare class SimulateInitialStates implements Encodable {
2149
+ private static encodingSchemaValue;
2150
+ static get encodingSchema(): Schema;
1942
2151
  /**
1943
2152
  * The initial states of accessed application before simulation. The order of this
1944
2153
  * array is arbitrary.
@@ -1952,12 +2161,16 @@ export declare class SimulateInitialStates extends BaseModel {
1952
2161
  constructor({ appInitialStates, }: {
1953
2162
  appInitialStates?: ApplicationInitialStates[];
1954
2163
  });
1955
- static from_obj_for_encoding(data: Record<string, any>): SimulateInitialStates;
2164
+ getEncodingSchema(): Schema;
2165
+ toEncodingData(): Map<string, unknown>;
2166
+ static fromEncodingData(data: unknown): SimulateInitialStates;
1956
2167
  }
1957
2168
  /**
1958
2169
  * Request type for simulation endpoint.
1959
2170
  */
1960
- export declare class SimulateRequest extends BaseModel {
2171
+ export declare class SimulateRequest implements Encodable {
2172
+ private static encodingSchemaValue;
2173
+ static get encodingSchema(): Schema;
1961
2174
  /**
1962
2175
  * The transaction groups to simulate.
1963
2176
  */
@@ -1982,14 +2195,19 @@ export declare class SimulateRequest extends BaseModel {
1982
2195
  /**
1983
2196
  * Applies extra opcode budget during simulation for each transaction group.
1984
2197
  */
1985
- extraOpcodeBudget?: number | bigint;
2198
+ extraOpcodeBudget?: number;
2199
+ /**
2200
+ * If true, signers for transactions that are missing signatures will be fixed
2201
+ * during evaluation.
2202
+ */
2203
+ fixSigners?: boolean;
1986
2204
  /**
1987
2205
  * If provided, specifies the round preceding the simulation. State changes through
1988
2206
  * this round will be used to run this simulation. Usually only the 4 most recent
1989
2207
  * rounds will be available (controlled by the node config value MaxAcctLookback).
1990
2208
  * If not specified, defaults to the latest available round.
1991
2209
  */
1992
- round?: number | bigint;
2210
+ round?: bigint;
1993
2211
  /**
1994
2212
  * Creates a new `SimulateRequest` object.
1995
2213
  * @param txnGroups - The transaction groups to simulate.
@@ -1999,48 +2217,59 @@ export declare class SimulateRequest extends BaseModel {
1999
2217
  * @param allowUnnamedResources - Allows access to unnamed resources during simulation.
2000
2218
  * @param execTraceConfig - An object that configures simulation execution trace.
2001
2219
  * @param extraOpcodeBudget - Applies extra opcode budget during simulation for each transaction group.
2220
+ * @param fixSigners - If true, signers for transactions that are missing signatures will be fixed
2221
+ * during evaluation.
2002
2222
  * @param round - If provided, specifies the round preceding the simulation. State changes through
2003
2223
  * this round will be used to run this simulation. Usually only the 4 most recent
2004
2224
  * rounds will be available (controlled by the node config value MaxAcctLookback).
2005
2225
  * If not specified, defaults to the latest available round.
2006
2226
  */
2007
- constructor({ txnGroups, allowEmptySignatures, allowMoreLogging, allowUnnamedResources, execTraceConfig, extraOpcodeBudget, round, }: {
2227
+ constructor({ txnGroups, allowEmptySignatures, allowMoreLogging, allowUnnamedResources, execTraceConfig, extraOpcodeBudget, fixSigners, round, }: {
2008
2228
  txnGroups: SimulateRequestTransactionGroup[];
2009
2229
  allowEmptySignatures?: boolean;
2010
2230
  allowMoreLogging?: boolean;
2011
2231
  allowUnnamedResources?: boolean;
2012
2232
  execTraceConfig?: SimulateTraceConfig;
2013
2233
  extraOpcodeBudget?: number | bigint;
2234
+ fixSigners?: boolean;
2014
2235
  round?: number | bigint;
2015
2236
  });
2016
- static from_obj_for_encoding(data: Record<string, any>): SimulateRequest;
2237
+ getEncodingSchema(): Schema;
2238
+ toEncodingData(): Map<string, unknown>;
2239
+ static fromEncodingData(data: unknown): SimulateRequest;
2017
2240
  }
2018
2241
  /**
2019
2242
  * A transaction group to simulate.
2020
2243
  */
2021
- export declare class SimulateRequestTransactionGroup extends BaseModel {
2244
+ export declare class SimulateRequestTransactionGroup implements Encodable {
2245
+ private static encodingSchemaValue;
2246
+ static get encodingSchema(): Schema;
2022
2247
  /**
2023
2248
  * An atomic transaction group.
2024
2249
  */
2025
- txns: EncodedSignedTransaction[];
2250
+ txns: SignedTransaction[];
2026
2251
  /**
2027
2252
  * Creates a new `SimulateRequestTransactionGroup` object.
2028
2253
  * @param txns - An atomic transaction group.
2029
2254
  */
2030
2255
  constructor({ txns }: {
2031
- txns: EncodedSignedTransaction[];
2256
+ txns: SignedTransaction[];
2032
2257
  });
2033
- static from_obj_for_encoding(data: Record<string, any>): SimulateRequestTransactionGroup;
2258
+ getEncodingSchema(): Schema;
2259
+ toEncodingData(): Map<string, unknown>;
2260
+ static fromEncodingData(data: unknown): SimulateRequestTransactionGroup;
2034
2261
  }
2035
2262
  /**
2036
2263
  * Result of a transaction group simulation.
2037
2264
  */
2038
- export declare class SimulateResponse extends BaseModel {
2265
+ export declare class SimulateResponse implements Encodable {
2266
+ private static encodingSchemaValue;
2267
+ static get encodingSchema(): Schema;
2039
2268
  /**
2040
2269
  * The round immediately preceding this simulation. State changes through this
2041
2270
  * round were used to run this simulation.
2042
2271
  */
2043
- lastRound: number | bigint;
2272
+ lastRound: bigint;
2044
2273
  /**
2045
2274
  * A result object for each transaction group that was simulated.
2046
2275
  */
@@ -2048,7 +2277,7 @@ export declare class SimulateResponse extends BaseModel {
2048
2277
  /**
2049
2278
  * The version of this response object.
2050
2279
  */
2051
- version: number | bigint;
2280
+ version: number;
2052
2281
  /**
2053
2282
  * The set of parameters and limits override during simulation. If this set of
2054
2283
  * parameters is present, then evaluation parameters may differ from standard
@@ -2083,12 +2312,16 @@ export declare class SimulateResponse extends BaseModel {
2083
2312
  execTraceConfig?: SimulateTraceConfig;
2084
2313
  initialStates?: SimulateInitialStates;
2085
2314
  });
2086
- static from_obj_for_encoding(data: Record<string, any>): SimulateResponse;
2315
+ getEncodingSchema(): Schema;
2316
+ toEncodingData(): Map<string, unknown>;
2317
+ static fromEncodingData(data: unknown): SimulateResponse;
2087
2318
  }
2088
2319
  /**
2089
2320
  * An object that configures simulation execution trace.
2090
2321
  */
2091
- export declare class SimulateTraceConfig extends BaseModel {
2322
+ export declare class SimulateTraceConfig implements Encodable {
2323
+ private static encodingSchemaValue;
2324
+ static get encodingSchema(): Schema;
2092
2325
  /**
2093
2326
  * A boolean option for opting in execution trace features simulation endpoint.
2094
2327
  */
@@ -2124,12 +2357,16 @@ export declare class SimulateTraceConfig extends BaseModel {
2124
2357
  stackChange?: boolean;
2125
2358
  stateChange?: boolean;
2126
2359
  });
2127
- static from_obj_for_encoding(data: Record<string, any>): SimulateTraceConfig;
2360
+ getEncodingSchema(): Schema;
2361
+ toEncodingData(): Map<string, unknown>;
2362
+ static fromEncodingData(data: unknown): SimulateTraceConfig;
2128
2363
  }
2129
2364
  /**
2130
2365
  * Simulation result for an atomic transaction group
2131
2366
  */
2132
- export declare class SimulateTransactionGroupResult extends BaseModel {
2367
+ export declare class SimulateTransactionGroupResult implements Encodable {
2368
+ private static encodingSchemaValue;
2369
+ static get encodingSchema(): Schema;
2133
2370
  /**
2134
2371
  * Simulation result for individual transactions
2135
2372
  */
@@ -2137,18 +2374,18 @@ export declare class SimulateTransactionGroupResult extends BaseModel {
2137
2374
  /**
2138
2375
  * Total budget added during execution of app calls in the transaction group.
2139
2376
  */
2140
- appBudgetAdded?: number | bigint;
2377
+ appBudgetAdded?: number;
2141
2378
  /**
2142
2379
  * Total budget consumed during execution of app calls in the transaction group.
2143
2380
  */
2144
- appBudgetConsumed?: number | bigint;
2381
+ appBudgetConsumed?: number;
2145
2382
  /**
2146
2383
  * If present, indicates which transaction in this group caused the failure. This
2147
2384
  * array represents the path to the failing transaction. Indexes are zero based,
2148
2385
  * the first element indicates the top-level transaction, and successive elements
2149
2386
  * indicate deeper inner transactions.
2150
2387
  */
2151
- failedAt?: (number | bigint)[];
2388
+ failedAt?: number[];
2152
2389
  /**
2153
2390
  * If present, indicates that the transaction group failed and specifies why that
2154
2391
  * happened
@@ -2195,12 +2432,16 @@ export declare class SimulateTransactionGroupResult extends BaseModel {
2195
2432
  failureMessage?: string;
2196
2433
  unnamedResourcesAccessed?: SimulateUnnamedResourcesAccessed;
2197
2434
  });
2198
- static from_obj_for_encoding(data: Record<string, any>): SimulateTransactionGroupResult;
2435
+ getEncodingSchema(): Schema;
2436
+ toEncodingData(): Map<string, unknown>;
2437
+ static fromEncodingData(data: unknown): SimulateTransactionGroupResult;
2199
2438
  }
2200
2439
  /**
2201
2440
  * Simulation result for an individual transaction
2202
2441
  */
2203
- export declare class SimulateTransactionResult extends BaseModel {
2442
+ export declare class SimulateTransactionResult implements Encodable {
2443
+ private static encodingSchemaValue;
2444
+ static get encodingSchema(): Schema;
2204
2445
  /**
2205
2446
  * Details about a pending transaction. If the transaction was recently confirmed,
2206
2447
  * includes confirmation details like the round and reward details.
@@ -2210,16 +2451,21 @@ export declare class SimulateTransactionResult extends BaseModel {
2210
2451
  * Budget used during execution of an app call transaction. This value includes
2211
2452
  * budged used by inner app calls spawned by this transaction.
2212
2453
  */
2213
- appBudgetConsumed?: number | bigint;
2454
+ appBudgetConsumed?: number;
2214
2455
  /**
2215
2456
  * The execution trace of calling an app or a logic sig, containing the inner app
2216
2457
  * call trace in a recursive way.
2217
2458
  */
2218
2459
  execTrace?: SimulationTransactionExecTrace;
2460
+ /**
2461
+ * The account that needed to sign this transaction when no signature was provided
2462
+ * and the provided signer was incorrect.
2463
+ */
2464
+ fixedSigner?: Address;
2219
2465
  /**
2220
2466
  * Budget used during execution of a logic sig transaction.
2221
2467
  */
2222
- logicSigBudgetConsumed?: number | bigint;
2468
+ logicSigBudgetConsumed?: number;
2223
2469
  /**
2224
2470
  * These are resources that were accessed by this group that would normally have
2225
2471
  * caused failure, but were allowed in simulation. Depending on where this object
@@ -2240,6 +2486,8 @@ export declare class SimulateTransactionResult extends BaseModel {
2240
2486
  * budged used by inner app calls spawned by this transaction.
2241
2487
  * @param execTrace - The execution trace of calling an app or a logic sig, containing the inner app
2242
2488
  * call trace in a recursive way.
2489
+ * @param fixedSigner - The account that needed to sign this transaction when no signature was provided
2490
+ * and the provided signer was incorrect.
2243
2491
  * @param logicSigBudgetConsumed - Budget used during execution of a logic sig transaction.
2244
2492
  * @param unnamedResourcesAccessed - These are resources that were accessed by this group that would normally have
2245
2493
  * caused failure, but were allowed in simulation. Depending on where this object
@@ -2251,14 +2499,17 @@ export declare class SimulateTransactionResult extends BaseModel {
2251
2499
  * transaction of the group; otherwise, resources must be placed in the same
2252
2500
  * transaction which accessed them.
2253
2501
  */
2254
- constructor({ txnResult, appBudgetConsumed, execTrace, logicSigBudgetConsumed, unnamedResourcesAccessed, }: {
2502
+ constructor({ txnResult, appBudgetConsumed, execTrace, fixedSigner, logicSigBudgetConsumed, unnamedResourcesAccessed, }: {
2255
2503
  txnResult: PendingTransactionResponse;
2256
2504
  appBudgetConsumed?: number | bigint;
2257
2505
  execTrace?: SimulationTransactionExecTrace;
2506
+ fixedSigner?: Address | string;
2258
2507
  logicSigBudgetConsumed?: number | bigint;
2259
2508
  unnamedResourcesAccessed?: SimulateUnnamedResourcesAccessed;
2260
2509
  });
2261
- static from_obj_for_encoding(data: Record<string, any>): SimulateTransactionResult;
2510
+ getEncodingSchema(): Schema;
2511
+ toEncodingData(): Map<string, unknown>;
2512
+ static fromEncodingData(data: unknown): SimulateTransactionResult;
2262
2513
  }
2263
2514
  /**
2264
2515
  * These are resources that were accessed by this group that would normally have
@@ -2271,11 +2522,13 @@ export declare class SimulateTransactionResult extends BaseModel {
2271
2522
  * transaction of the group; otherwise, resources must be placed in the same
2272
2523
  * transaction which accessed them.
2273
2524
  */
2274
- export declare class SimulateUnnamedResourcesAccessed extends BaseModel {
2525
+ export declare class SimulateUnnamedResourcesAccessed implements Encodable {
2526
+ private static encodingSchemaValue;
2527
+ static get encodingSchema(): Schema;
2275
2528
  /**
2276
2529
  * The unnamed accounts that were referenced. The order of this array is arbitrary.
2277
2530
  */
2278
- accounts?: string[];
2531
+ accounts?: Address[];
2279
2532
  /**
2280
2533
  * The unnamed application local states that were referenced. The order of this
2281
2534
  * array is arbitrary.
@@ -2285,7 +2538,7 @@ export declare class SimulateUnnamedResourcesAccessed extends BaseModel {
2285
2538
  * The unnamed applications that were referenced. The order of this array is
2286
2539
  * arbitrary.
2287
2540
  */
2288
- apps?: (number | bigint)[];
2541
+ apps?: bigint[];
2289
2542
  /**
2290
2543
  * The unnamed asset holdings that were referenced. The order of this array is
2291
2544
  * arbitrary.
@@ -2294,7 +2547,7 @@ export declare class SimulateUnnamedResourcesAccessed extends BaseModel {
2294
2547
  /**
2295
2548
  * The unnamed assets that were referenced. The order of this array is arbitrary.
2296
2549
  */
2297
- assets?: (number | bigint)[];
2550
+ assets?: bigint[];
2298
2551
  /**
2299
2552
  * The unnamed boxes that were referenced. The order of this array is arbitrary.
2300
2553
  */
@@ -2304,7 +2557,7 @@ export declare class SimulateUnnamedResourcesAccessed extends BaseModel {
2304
2557
  * addition to the references defined in the input transaction group and any
2305
2558
  * referenced to unnamed boxes.
2306
2559
  */
2307
- extraBoxRefs?: number | bigint;
2560
+ extraBoxRefs?: number;
2308
2561
  /**
2309
2562
  * Creates a new `SimulateUnnamedResourcesAccessed` object.
2310
2563
  * @param accounts - The unnamed accounts that were referenced. The order of this array is arbitrary.
@@ -2321,7 +2574,7 @@ export declare class SimulateUnnamedResourcesAccessed extends BaseModel {
2321
2574
  * referenced to unnamed boxes.
2322
2575
  */
2323
2576
  constructor({ accounts, appLocals, apps, assetHoldings, assets, boxes, extraBoxRefs, }: {
2324
- accounts?: string[];
2577
+ accounts?: (Address | string)[];
2325
2578
  appLocals?: ApplicationLocalReference[];
2326
2579
  apps?: (number | bigint)[];
2327
2580
  assetHoldings?: AssetHoldingReference[];
@@ -2329,14 +2582,18 @@ export declare class SimulateUnnamedResourcesAccessed extends BaseModel {
2329
2582
  boxes?: BoxReference[];
2330
2583
  extraBoxRefs?: number | bigint;
2331
2584
  });
2332
- static from_obj_for_encoding(data: Record<string, any>): SimulateUnnamedResourcesAccessed;
2585
+ getEncodingSchema(): Schema;
2586
+ toEncodingData(): Map<string, unknown>;
2587
+ static fromEncodingData(data: unknown): SimulateUnnamedResourcesAccessed;
2333
2588
  }
2334
2589
  /**
2335
2590
  * The set of parameters and limits override during simulation. If this set of
2336
2591
  * parameters is present, then evaluation parameters may differ from standard
2337
2592
  * evaluation in certain ways.
2338
2593
  */
2339
- export declare class SimulationEvalOverrides extends BaseModel {
2594
+ export declare class SimulationEvalOverrides implements Encodable {
2595
+ private static encodingSchemaValue;
2596
+ static get encodingSchema(): Schema;
2340
2597
  /**
2341
2598
  * If true, transactions without signatures are allowed and simulated as if they
2342
2599
  * were properly signed.
@@ -2349,41 +2606,53 @@ export declare class SimulationEvalOverrides extends BaseModel {
2349
2606
  /**
2350
2607
  * The extra opcode budget added to each transaction group during simulation
2351
2608
  */
2352
- extraOpcodeBudget?: number | bigint;
2609
+ extraOpcodeBudget?: number;
2610
+ /**
2611
+ * If true, signers for transactions that are missing signatures will be fixed
2612
+ * during evaluation.
2613
+ */
2614
+ fixSigners?: boolean;
2353
2615
  /**
2354
2616
  * The maximum log calls one can make during simulation
2355
2617
  */
2356
- maxLogCalls?: number | bigint;
2618
+ maxLogCalls?: number;
2357
2619
  /**
2358
2620
  * The maximum byte number to log during simulation
2359
2621
  */
2360
- maxLogSize?: number | bigint;
2622
+ maxLogSize?: number;
2361
2623
  /**
2362
2624
  * Creates a new `SimulationEvalOverrides` object.
2363
2625
  * @param allowEmptySignatures - If true, transactions without signatures are allowed and simulated as if they
2364
2626
  * were properly signed.
2365
2627
  * @param allowUnnamedResources - If true, allows access to unnamed resources during simulation.
2366
2628
  * @param extraOpcodeBudget - The extra opcode budget added to each transaction group during simulation
2629
+ * @param fixSigners - If true, signers for transactions that are missing signatures will be fixed
2630
+ * during evaluation.
2367
2631
  * @param maxLogCalls - The maximum log calls one can make during simulation
2368
2632
  * @param maxLogSize - The maximum byte number to log during simulation
2369
2633
  */
2370
- constructor({ allowEmptySignatures, allowUnnamedResources, extraOpcodeBudget, maxLogCalls, maxLogSize, }: {
2634
+ constructor({ allowEmptySignatures, allowUnnamedResources, extraOpcodeBudget, fixSigners, maxLogCalls, maxLogSize, }: {
2371
2635
  allowEmptySignatures?: boolean;
2372
2636
  allowUnnamedResources?: boolean;
2373
2637
  extraOpcodeBudget?: number | bigint;
2638
+ fixSigners?: boolean;
2374
2639
  maxLogCalls?: number | bigint;
2375
2640
  maxLogSize?: number | bigint;
2376
2641
  });
2377
- static from_obj_for_encoding(data: Record<string, any>): SimulationEvalOverrides;
2642
+ getEncodingSchema(): Schema;
2643
+ toEncodingData(): Map<string, unknown>;
2644
+ static fromEncodingData(data: unknown): SimulationEvalOverrides;
2378
2645
  }
2379
2646
  /**
2380
2647
  * The set of trace information and effect from evaluating a single opcode.
2381
2648
  */
2382
- export declare class SimulationOpcodeTraceUnit extends BaseModel {
2649
+ export declare class SimulationOpcodeTraceUnit implements Encodable {
2650
+ private static encodingSchemaValue;
2651
+ static get encodingSchema(): Schema;
2383
2652
  /**
2384
2653
  * The program counter of the current opcode being evaluated.
2385
2654
  */
2386
- pc: number | bigint;
2655
+ pc: number;
2387
2656
  /**
2388
2657
  * The writes into scratch slots.
2389
2658
  */
@@ -2391,7 +2660,7 @@ export declare class SimulationOpcodeTraceUnit extends BaseModel {
2391
2660
  /**
2392
2661
  * The indexes of the traces for inner transactions spawned by this opcode, if any.
2393
2662
  */
2394
- spawnedInners?: (number | bigint)[];
2663
+ spawnedInners?: number[];
2395
2664
  /**
2396
2665
  * The values added by this opcode to the stack.
2397
2666
  */
@@ -2399,7 +2668,7 @@ export declare class SimulationOpcodeTraceUnit extends BaseModel {
2399
2668
  /**
2400
2669
  * The number of deleted stack values by this opcode.
2401
2670
  */
2402
- stackPopCount?: number | bigint;
2671
+ stackPopCount?: number;
2403
2672
  /**
2404
2673
  * The operations against the current application's states.
2405
2674
  */
@@ -2421,13 +2690,17 @@ export declare class SimulationOpcodeTraceUnit extends BaseModel {
2421
2690
  stackPopCount?: number | bigint;
2422
2691
  stateChanges?: ApplicationStateOperation[];
2423
2692
  });
2424
- static from_obj_for_encoding(data: Record<string, any>): SimulationOpcodeTraceUnit;
2693
+ getEncodingSchema(): Schema;
2694
+ toEncodingData(): Map<string, unknown>;
2695
+ static fromEncodingData(data: unknown): SimulationOpcodeTraceUnit;
2425
2696
  }
2426
2697
  /**
2427
2698
  * The execution trace of calling an app or a logic sig, containing the inner app
2428
2699
  * call trace in a recursive way.
2429
2700
  */
2430
- export declare class SimulationTransactionExecTrace extends BaseModel {
2701
+ export declare class SimulationTransactionExecTrace implements Encodable {
2702
+ private static encodingSchemaValue;
2703
+ static get encodingSchema(): Schema;
2431
2704
  /**
2432
2705
  * SHA512_256 hash digest of the approval program executed in transaction.
2433
2706
  */
@@ -2495,12 +2768,16 @@ export declare class SimulationTransactionExecTrace extends BaseModel {
2495
2768
  logicSigHash?: string | Uint8Array;
2496
2769
  logicSigTrace?: SimulationOpcodeTraceUnit[];
2497
2770
  });
2498
- static from_obj_for_encoding(data: Record<string, any>): SimulationTransactionExecTrace;
2771
+ getEncodingSchema(): Schema;
2772
+ toEncodingData(): Map<string, unknown>;
2773
+ static fromEncodingData(data: unknown): SimulationTransactionExecTrace;
2499
2774
  }
2500
2775
  /**
2501
2776
  * Represents a state proof and its corresponding message
2502
2777
  */
2503
- export declare class StateProof extends BaseModel {
2778
+ export declare class StateProof implements Encodable {
2779
+ private static encodingSchemaValue;
2780
+ static get encodingSchema(): Schema;
2504
2781
  /**
2505
2782
  * Represents the message that the state proofs are attesting to.
2506
2783
  */
@@ -2518,12 +2795,16 @@ export declare class StateProof extends BaseModel {
2518
2795
  message: StateProofMessage;
2519
2796
  stateproof: string | Uint8Array;
2520
2797
  });
2521
- static from_obj_for_encoding(data: Record<string, any>): StateProof;
2798
+ getEncodingSchema(): Schema;
2799
+ toEncodingData(): Map<string, unknown>;
2800
+ static fromEncodingData(data: unknown): StateProof;
2522
2801
  }
2523
2802
  /**
2524
2803
  * Represents the message that the state proofs are attesting to.
2525
2804
  */
2526
- export declare class StateProofMessage extends BaseModel {
2805
+ export declare class StateProofMessage implements Encodable {
2806
+ private static encodingSchemaValue;
2807
+ static get encodingSchema(): Schema;
2527
2808
  /**
2528
2809
  * The vector commitment root on all light block headers within a state proof
2529
2810
  * interval.
@@ -2532,16 +2813,16 @@ export declare class StateProofMessage extends BaseModel {
2532
2813
  /**
2533
2814
  * The first round the message attests to.
2534
2815
  */
2535
- firstattestedround: number | bigint;
2816
+ firstattestedround: bigint;
2536
2817
  /**
2537
2818
  * The last round the message attests to.
2538
2819
  */
2539
- lastattestedround: number | bigint;
2820
+ lastattestedround: bigint;
2540
2821
  /**
2541
2822
  * An integer value representing the natural log of the proven weight with 16 bits
2542
2823
  * of precision. This value would be used to verify the next state proof.
2543
2824
  */
2544
- lnprovenweight: number | bigint;
2825
+ lnprovenweight: bigint;
2545
2826
  /**
2546
2827
  * The vector commitment root of the top N accounts to sign the next StateProof.
2547
2828
  */
@@ -2563,24 +2844,28 @@ export declare class StateProofMessage extends BaseModel {
2563
2844
  lnprovenweight: number | bigint;
2564
2845
  voterscommitment: string | Uint8Array;
2565
2846
  });
2566
- static from_obj_for_encoding(data: Record<string, any>): StateProofMessage;
2847
+ getEncodingSchema(): Schema;
2848
+ toEncodingData(): Map<string, unknown>;
2849
+ static fromEncodingData(data: unknown): StateProofMessage;
2567
2850
  }
2568
2851
  /**
2569
2852
  * Supply represents the current supply of MicroAlgos in the system.
2570
2853
  */
2571
- export declare class SupplyResponse extends BaseModel {
2854
+ export declare class SupplyResponse implements Encodable {
2855
+ private static encodingSchemaValue;
2856
+ static get encodingSchema(): Schema;
2572
2857
  /**
2573
2858
  * Round
2574
2859
  */
2575
- currentRound: number | bigint;
2860
+ currentRound: bigint;
2576
2861
  /**
2577
2862
  * OnlineMoney
2578
2863
  */
2579
- onlineMoney: number | bigint;
2864
+ onlineMoney: bigint;
2580
2865
  /**
2581
2866
  * TotalMoney
2582
2867
  */
2583
- totalMoney: number | bigint;
2868
+ totalMoney: bigint;
2584
2869
  /**
2585
2870
  * Creates a new `SupplyResponse` object.
2586
2871
  * @param currentRound - Round
@@ -2592,13 +2877,17 @@ export declare class SupplyResponse extends BaseModel {
2592
2877
  onlineMoney: number | bigint;
2593
2878
  totalMoney: number | bigint;
2594
2879
  });
2595
- static from_obj_for_encoding(data: Record<string, any>): SupplyResponse;
2880
+ getEncodingSchema(): Schema;
2881
+ toEncodingData(): Map<string, unknown>;
2882
+ static fromEncodingData(data: unknown): SupplyResponse;
2596
2883
  }
2597
2884
  /**
2598
2885
  * Represents a key-value pair in an application store.
2599
2886
  */
2600
- export declare class TealKeyValue extends BaseModel {
2601
- key: string;
2887
+ export declare class TealKeyValue implements Encodable {
2888
+ private static encodingSchemaValue;
2889
+ static get encodingSchema(): Schema;
2890
+ key: Uint8Array;
2602
2891
  /**
2603
2892
  * Represents a TEAL value.
2604
2893
  */
@@ -2609,45 +2898,53 @@ export declare class TealKeyValue extends BaseModel {
2609
2898
  * @param value - Represents a TEAL value.
2610
2899
  */
2611
2900
  constructor({ key, value }: {
2612
- key: string;
2901
+ key: string | Uint8Array;
2613
2902
  value: TealValue;
2614
2903
  });
2615
- static from_obj_for_encoding(data: Record<string, any>): TealKeyValue;
2904
+ getEncodingSchema(): Schema;
2905
+ toEncodingData(): Map<string, unknown>;
2906
+ static fromEncodingData(data: unknown): TealKeyValue;
2616
2907
  }
2617
2908
  /**
2618
2909
  * Represents a TEAL value.
2619
2910
  */
2620
- export declare class TealValue extends BaseModel {
2911
+ export declare class TealValue implements Encodable {
2912
+ private static encodingSchemaValue;
2913
+ static get encodingSchema(): Schema;
2621
2914
  /**
2622
- * (tt) value type. Value `1` refers to **bytes**, value `2` refers to **uint**
2915
+ * (tb) bytes value.
2623
2916
  */
2624
- type: number | bigint;
2917
+ bytes: Uint8Array;
2625
2918
  /**
2626
- * (tb) bytes value.
2919
+ * (tt) value type. Value `1` refers to **bytes**, value `2` refers to **uint**
2627
2920
  */
2628
- bytes: string;
2921
+ type: number;
2629
2922
  /**
2630
2923
  * (ui) uint value.
2631
2924
  */
2632
- uint: number | bigint;
2925
+ uint: bigint;
2633
2926
  /**
2634
2927
  * Creates a new `TealValue` object.
2635
- * @param type - (tt) value type. Value `1` refers to **bytes**, value `2` refers to **uint**
2636
2928
  * @param bytes - (tb) bytes value.
2929
+ * @param type - (tt) value type. Value `1` refers to **bytes**, value `2` refers to **uint**
2637
2930
  * @param uint - (ui) uint value.
2638
2931
  */
2639
- constructor({ type, bytes, uint, }: {
2932
+ constructor({ bytes, type, uint, }: {
2933
+ bytes: string | Uint8Array;
2640
2934
  type: number | bigint;
2641
- bytes: string;
2642
2935
  uint: number | bigint;
2643
2936
  });
2644
- static from_obj_for_encoding(data: Record<string, any>): TealValue;
2937
+ getEncodingSchema(): Schema;
2938
+ toEncodingData(): Map<string, unknown>;
2939
+ static fromEncodingData(data: unknown): TealValue;
2645
2940
  }
2646
2941
  /**
2647
2942
  * Response containing all ledger state deltas for transaction groups, with their
2648
2943
  * associated Ids, in a single round.
2649
2944
  */
2650
- export declare class TransactionGroupLedgerStateDeltasForRoundResponse extends BaseModel {
2945
+ export declare class TransactionGroupLedgerStateDeltasForRoundResponse implements Encodable {
2946
+ private static encodingSchemaValue;
2947
+ static get encodingSchema(): Schema;
2651
2948
  deltas: LedgerStateDeltaForTransactionGroup[];
2652
2949
  /**
2653
2950
  * Creates a new `TransactionGroupLedgerStateDeltasForRoundResponse` object.
@@ -2656,13 +2953,17 @@ export declare class TransactionGroupLedgerStateDeltasForRoundResponse extends B
2656
2953
  constructor({ deltas }: {
2657
2954
  deltas: LedgerStateDeltaForTransactionGroup[];
2658
2955
  });
2659
- static from_obj_for_encoding(data: Record<string, any>): TransactionGroupLedgerStateDeltasForRoundResponse;
2956
+ getEncodingSchema(): Schema;
2957
+ toEncodingData(): Map<string, unknown>;
2958
+ static fromEncodingData(data: unknown): TransactionGroupLedgerStateDeltasForRoundResponse;
2660
2959
  }
2661
2960
  /**
2662
2961
  * TransactionParams contains the parameters that help a client construct a new
2663
2962
  * transaction.
2664
2963
  */
2665
- export declare class TransactionParametersResponse extends BaseModel {
2964
+ export declare class TransactionParametersResponse implements Encodable {
2965
+ private static encodingSchemaValue;
2966
+ static get encodingSchema(): Schema;
2666
2967
  /**
2667
2968
  * ConsensusVersion indicates the consensus protocol version
2668
2969
  * as of LastRound.
@@ -2674,7 +2975,7 @@ export declare class TransactionParametersResponse extends BaseModel {
2674
2975
  * Fee may fall to zero but transactions must still have a fee of
2675
2976
  * at least MinTxnFee for the current network protocol.
2676
2977
  */
2677
- fee: number | bigint;
2978
+ fee: bigint;
2678
2979
  /**
2679
2980
  * GenesisHash is the hash of the genesis block.
2680
2981
  */
@@ -2686,12 +2987,12 @@ export declare class TransactionParametersResponse extends BaseModel {
2686
2987
  /**
2687
2988
  * LastRound indicates the last round seen
2688
2989
  */
2689
- lastRound: number | bigint;
2990
+ lastRound: bigint;
2690
2991
  /**
2691
2992
  * The minimum transaction fee (not per byte) required for the
2692
2993
  * txn to validate for the current network protocol.
2693
2994
  */
2694
- minFee: number | bigint;
2995
+ minFee: bigint;
2695
2996
  /**
2696
2997
  * Creates a new `TransactionParametersResponse` object.
2697
2998
  * @param consensusVersion - ConsensusVersion indicates the consensus protocol version
@@ -2714,16 +3015,20 @@ export declare class TransactionParametersResponse extends BaseModel {
2714
3015
  lastRound: number | bigint;
2715
3016
  minFee: number | bigint;
2716
3017
  });
2717
- static from_obj_for_encoding(data: Record<string, any>): TransactionParametersResponse;
3018
+ getEncodingSchema(): Schema;
3019
+ toEncodingData(): Map<string, unknown>;
3020
+ static fromEncodingData(data: unknown): TransactionParametersResponse;
2718
3021
  }
2719
3022
  /**
2720
3023
  * Proof of transaction in a block.
2721
3024
  */
2722
- export declare class TransactionProofResponse extends BaseModel {
3025
+ export declare class TransactionProofResponse implements Encodable {
3026
+ private static encodingSchemaValue;
3027
+ static get encodingSchema(): Schema;
2723
3028
  /**
2724
3029
  * Index of the transaction in the block's payset.
2725
3030
  */
2726
- idx: number | bigint;
3031
+ idx: number;
2727
3032
  /**
2728
3033
  * Proof of transaction membership.
2729
3034
  */
@@ -2736,7 +3041,7 @@ export declare class TransactionProofResponse extends BaseModel {
2736
3041
  * Represents the depth of the tree that is being proven, i.e. the number of edges
2737
3042
  * from a leaf to the root.
2738
3043
  */
2739
- treedepth: number | bigint;
3044
+ treedepth: number;
2740
3045
  /**
2741
3046
  * The type of hash function used to create the proof, must be one of:
2742
3047
  * * sha512_256
@@ -2761,12 +3066,16 @@ export declare class TransactionProofResponse extends BaseModel {
2761
3066
  treedepth: number | bigint;
2762
3067
  hashtype?: string;
2763
3068
  });
2764
- static from_obj_for_encoding(data: Record<string, any>): TransactionProofResponse;
3069
+ getEncodingSchema(): Schema;
3070
+ toEncodingData(): Map<string, unknown>;
3071
+ static fromEncodingData(data: unknown): TransactionProofResponse;
2765
3072
  }
2766
3073
  /**
2767
3074
  * algod version information.
2768
3075
  */
2769
- export declare class Version extends BaseModel {
3076
+ export declare class Version implements Encodable {
3077
+ private static encodingSchemaValue;
3078
+ static get encodingSchema(): Schema;
2770
3079
  build: BuildVersion;
2771
3080
  genesisHashB64: Uint8Array;
2772
3081
  genesisId: string;
@@ -2784,5 +3093,7 @@ export declare class Version extends BaseModel {
2784
3093
  genesisId: string;
2785
3094
  versions: string[];
2786
3095
  });
2787
- static from_obj_for_encoding(data: Record<string, any>): Version;
3096
+ getEncodingSchema(): Schema;
3097
+ toEncodingData(): Map<string, unknown>;
3098
+ static fromEncodingData(data: unknown): Version;
2788
3099
  }