@algorandfoundation/algokit-utils 10.0.0-alpha.44 → 10.0.0-alpha.46

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 (1422) hide show
  1. package/_virtual/_rolldown/runtime.js +7 -13
  2. package/abi/index.js +6 -7
  3. package/abi/index.mjs +1 -2
  4. package/account-manager.js +17 -18
  5. package/account-manager.js.map +1 -1
  6. package/account-manager.mjs +4 -5
  7. package/account-manager.mjs.map +1 -1
  8. package/account.d.ts +4 -9
  9. package/account.js +2 -3
  10. package/account.js.map +1 -1
  11. package/account.mjs +1 -1
  12. package/algo25/index.js +3 -4
  13. package/algo25/index.mjs +1 -2
  14. package/algod-client/index.js +8 -9
  15. package/algod-client/index.mjs +1 -2
  16. package/algorand-client-transaction-creator.d.ts +4 -4
  17. package/algorand-client-transaction-creator.js +2 -3
  18. package/algorand-client-transaction-creator.js.map +1 -1
  19. package/algorand-client-transaction-creator.mjs +1 -1
  20. package/algorand-client-transaction-creator.mjs.map +1 -1
  21. package/algorand-client-transaction-sender.d.ts +5 -6
  22. package/algorand-client-transaction-sender.js +24 -25
  23. package/algorand-client-transaction-sender.js.map +1 -1
  24. package/algorand-client-transaction-sender.mjs +18 -19
  25. package/algorand-client-transaction-sender.mjs.map +1 -1
  26. package/algorand-client.js +12 -13
  27. package/algorand-client.js.map +1 -1
  28. package/algorand-client.mjs +1 -2
  29. package/algorand-client.mjs.map +1 -1
  30. package/amount.js +2 -3
  31. package/amount.js.map +1 -1
  32. package/amount.mjs +1 -1
  33. package/amount.mjs.map +1 -1
  34. package/app-client.d.ts +27 -49
  35. package/app-client.js +13 -14
  36. package/app-client.js.map +1 -1
  37. package/app-client.mjs +1 -2
  38. package/app-client.mjs.map +1 -1
  39. package/app-deployer.d.ts +6 -13
  40. package/app-deployer.js +19 -20
  41. package/app-deployer.js.map +1 -1
  42. package/app-deployer.mjs +11 -12
  43. package/app-deployer.mjs.map +1 -1
  44. package/app-factory.d.ts +24 -49
  45. package/app-factory.js +9 -10
  46. package/app-factory.js.map +1 -1
  47. package/app-factory.mjs +3 -4
  48. package/app-factory.mjs.map +1 -1
  49. package/app-manager.js +9 -12
  50. package/app-manager.js.map +1 -1
  51. package/app-manager.mjs +5 -8
  52. package/app-manager.mjs.map +1 -1
  53. package/app-spec.d.ts +1 -4
  54. package/app-spec.js +3 -4
  55. package/app-spec.js.map +1 -1
  56. package/app-spec.mjs +1 -2
  57. package/app-spec.mjs.map +1 -1
  58. package/app.d.ts +6 -12
  59. package/app.js +2 -3
  60. package/app.js.map +1 -1
  61. package/app.mjs +1 -1
  62. package/app.mjs.map +1 -1
  63. package/asset-manager.js +7 -8
  64. package/asset-manager.js.map +1 -1
  65. package/asset-manager.mjs +4 -5
  66. package/asset-manager.mjs.map +1 -1
  67. package/async-event-emitter.js +2 -3
  68. package/async-event-emitter.js.map +1 -1
  69. package/async-event-emitter.mjs +1 -1
  70. package/async-event-emitter.mjs.map +1 -1
  71. package/client-manager.js +10 -11
  72. package/client-manager.js.map +1 -1
  73. package/client-manager.mjs +1 -2
  74. package/client-manager.mjs.map +1 -1
  75. package/common/index.js +26 -27
  76. package/common/index.mjs +1 -2
  77. package/composer.d.ts +3 -8
  78. package/composer.js +26 -28
  79. package/composer.js.map +1 -1
  80. package/composer.mjs +5 -7
  81. package/composer.mjs.map +1 -1
  82. package/config.js +3 -5
  83. package/config.js.map +1 -1
  84. package/config.mjs +1 -2
  85. package/config.mjs.map +1 -1
  86. package/crypto/index.js +6 -7
  87. package/crypto/index.mjs +1 -2
  88. package/debugging.d.ts +4 -10
  89. package/debugging.js +2 -3
  90. package/debugging.js.map +1 -1
  91. package/debugging.mjs +1 -1
  92. package/dispenser-client.js +3 -4
  93. package/dispenser-client.js.map +1 -1
  94. package/dispenser-client.mjs +1 -2
  95. package/dispenser-client.mjs.map +1 -1
  96. package/index.js +26 -27
  97. package/index.mjs +1 -2
  98. package/indexer-client/index.js +8 -9
  99. package/indexer-client/index.mjs +1 -2
  100. package/indexer-client/indexer-lookup.js +1 -2
  101. package/indexer-client/indexer-lookup.js.map +1 -1
  102. package/indexer-client/indexer-lookup.mjs +1 -1
  103. package/indexer-client/indexer-lookup.mjs.map +1 -1
  104. package/indexer.d.ts +3 -3
  105. package/indexer.js +2 -3
  106. package/indexer.js.map +1 -1
  107. package/indexer.mjs +1 -1
  108. package/indexer.mjs.map +1 -1
  109. package/kmd-account-manager.js +9 -10
  110. package/kmd-account-manager.js.map +1 -1
  111. package/kmd-account-manager.mjs +1 -2
  112. package/kmd-account-manager.mjs.map +1 -1
  113. package/kmd-client/index.js +7 -8
  114. package/kmd-client/index.mjs +1 -2
  115. package/lifecycle-events.d.ts +1 -1
  116. package/lifecycle-events.js +2 -3
  117. package/lifecycle-events.js.map +1 -1
  118. package/lifecycle-events.mjs +1 -1
  119. package/lifecycle-events.mjs.map +1 -1
  120. package/logging.js +2 -3
  121. package/logging.js.map +1 -1
  122. package/logging.mjs +1 -1
  123. package/logic-error.js +2 -3
  124. package/logic-error.js.map +1 -1
  125. package/logic-error.mjs +1 -1
  126. package/logic-error.mjs.map +1 -1
  127. package/network-client.js +2 -3
  128. package/network-client.js.map +1 -1
  129. package/network-client.mjs +1 -1
  130. package/network-manager.js +2 -3
  131. package/network-manager.js.map +1 -1
  132. package/network-manager.mjs +1 -2
  133. package/network-manager.mjs.map +1 -1
  134. package/package.json +5 -2
  135. package/packages/abi/src/abi-method.d.ts +7 -12
  136. package/packages/abi/src/abi-method.js +3 -4
  137. package/packages/abi/src/abi-method.js.map +1 -1
  138. package/packages/abi/src/abi-method.mjs +1 -2
  139. package/packages/abi/src/abi-method.mjs.map +1 -1
  140. package/packages/abi/src/abi-type.d.ts +1 -4
  141. package/packages/abi/src/abi-type.js +22 -25
  142. package/packages/abi/src/abi-type.js.map +1 -1
  143. package/packages/abi/src/abi-type.mjs +18 -21
  144. package/packages/abi/src/abi-type.mjs.map +1 -1
  145. package/packages/abi/src/arc28-event.d.ts +4 -10
  146. package/packages/abi/src/arc56-contract.d.ts +66 -155
  147. package/packages/abi/src/arc56-contract.js +2 -3
  148. package/packages/abi/src/arc56-contract.js.map +1 -1
  149. package/packages/abi/src/arc56-contract.mjs +1 -2
  150. package/packages/abi/src/arc56-contract.mjs.map +1 -1
  151. package/packages/abi/src/bigint.js +1 -2
  152. package/packages/abi/src/bigint.js.map +1 -1
  153. package/packages/abi/src/bigint.mjs +1 -1
  154. package/packages/abi/src/utils.d.ts +0 -1
  155. package/packages/abi/src/utils.js +1 -2
  156. package/packages/abi/src/utils.js.map +1 -1
  157. package/packages/abi/src/utils.mjs +1 -1
  158. package/packages/algo25/src/english.js +2 -4
  159. package/packages/algo25/src/english.js.map +1 -1
  160. package/packages/algo25/src/english.mjs +2 -3
  161. package/packages/algo25/src/english.mjs.map +1 -1
  162. package/packages/algo25/src/index.js +3 -4
  163. package/packages/algo25/src/index.js.map +1 -1
  164. package/packages/algo25/src/index.mjs +5 -6
  165. package/packages/algo25/src/index.mjs.map +1 -1
  166. package/packages/algod_client/src/apis/api-service.js +33 -34
  167. package/packages/algod_client/src/apis/api-service.js.map +1 -1
  168. package/packages/algod_client/src/apis/api-service.mjs +1 -2
  169. package/packages/algod_client/src/apis/api-service.mjs.map +1 -1
  170. package/packages/algod_client/src/client.js +3 -4
  171. package/packages/algod_client/src/client.js.map +1 -1
  172. package/packages/algod_client/src/client.mjs +1 -2
  173. package/packages/algod_client/src/client.mjs.map +1 -1
  174. package/packages/algod_client/src/core/api-error.js +1 -2
  175. package/packages/algod_client/src/core/api-error.js.map +1 -1
  176. package/packages/algod_client/src/core/api-error.mjs +1 -1
  177. package/packages/algod_client/src/core/api-error.mjs.map +1 -1
  178. package/packages/algod_client/src/core/base-http-request.js +1 -2
  179. package/packages/algod_client/src/core/base-http-request.js.map +1 -1
  180. package/packages/algod_client/src/core/base-http-request.mjs +1 -1
  181. package/packages/algod_client/src/core/base-http-request.mjs.map +1 -1
  182. package/packages/algod_client/src/core/fetch-http-request.js +3 -4
  183. package/packages/algod_client/src/core/fetch-http-request.js.map +1 -1
  184. package/packages/algod_client/src/core/fetch-http-request.mjs +1 -2
  185. package/packages/algod_client/src/core/fetch-http-request.mjs.map +1 -1
  186. package/packages/algod_client/src/core/model-runtime.js +4 -5
  187. package/packages/algod_client/src/core/model-runtime.js.map +1 -1
  188. package/packages/algod_client/src/core/model-runtime.mjs +1 -2
  189. package/packages/algod_client/src/core/model-runtime.mjs.map +1 -1
  190. package/packages/algod_client/src/core/request.js +5 -6
  191. package/packages/algod_client/src/core/request.js.map +1 -1
  192. package/packages/algod_client/src/core/request.mjs +1 -2
  193. package/packages/algod_client/src/core/request.mjs.map +1 -1
  194. package/packages/algod_client/src/models/account-application-response.js +5 -6
  195. package/packages/algod_client/src/models/account-application-response.js.map +1 -1
  196. package/packages/algod_client/src/models/account-application-response.mjs +1 -2
  197. package/packages/algod_client/src/models/account-application-response.mjs.map +1 -1
  198. package/packages/algod_client/src/models/account-asset-response.js +5 -6
  199. package/packages/algod_client/src/models/account-asset-response.js.map +1 -1
  200. package/packages/algod_client/src/models/account-asset-response.mjs +1 -2
  201. package/packages/algod_client/src/models/account-asset-response.mjs.map +1 -1
  202. package/packages/algod_client/src/models/account-participation.js +3 -4
  203. package/packages/algod_client/src/models/account-participation.js.map +1 -1
  204. package/packages/algod_client/src/models/account-participation.mjs +1 -2
  205. package/packages/algod_client/src/models/account-participation.mjs.map +1 -1
  206. package/packages/algod_client/src/models/account-state-delta.d.ts +0 -1
  207. package/packages/algod_client/src/models/account-state-delta.js +4 -5
  208. package/packages/algod_client/src/models/account-state-delta.js.map +1 -1
  209. package/packages/algod_client/src/models/account-state-delta.mjs +1 -2
  210. package/packages/algod_client/src/models/account-state-delta.mjs.map +1 -1
  211. package/packages/algod_client/src/models/account.d.ts +0 -1
  212. package/packages/algod_client/src/models/account.js +14 -15
  213. package/packages/algod_client/src/models/account.js.map +1 -1
  214. package/packages/algod_client/src/models/account.mjs +1 -2
  215. package/packages/algod_client/src/models/account.mjs.map +1 -1
  216. package/packages/algod_client/src/models/application-initial-states.d.ts +0 -1
  217. package/packages/algod_client/src/models/application-initial-states.js +5 -6
  218. package/packages/algod_client/src/models/application-initial-states.js.map +1 -1
  219. package/packages/algod_client/src/models/application-initial-states.mjs +1 -2
  220. package/packages/algod_client/src/models/application-initial-states.mjs.map +1 -1
  221. package/packages/algod_client/src/models/application-kv-storage.d.ts +0 -1
  222. package/packages/algod_client/src/models/application-kv-storage.js +5 -6
  223. package/packages/algod_client/src/models/application-kv-storage.js.map +1 -1
  224. package/packages/algod_client/src/models/application-kv-storage.mjs +1 -2
  225. package/packages/algod_client/src/models/application-kv-storage.mjs.map +1 -1
  226. package/packages/algod_client/src/models/application-local-state.d.ts +0 -1
  227. package/packages/algod_client/src/models/application-local-state.js +6 -7
  228. package/packages/algod_client/src/models/application-local-state.js.map +1 -1
  229. package/packages/algod_client/src/models/application-local-state.mjs +1 -2
  230. package/packages/algod_client/src/models/application-local-state.mjs.map +1 -1
  231. package/packages/algod_client/src/models/application-params.d.ts +0 -1
  232. package/packages/algod_client/src/models/application-params.js +8 -9
  233. package/packages/algod_client/src/models/application-params.js.map +1 -1
  234. package/packages/algod_client/src/models/application-params.mjs +1 -2
  235. package/packages/algod_client/src/models/application-params.mjs.map +1 -1
  236. package/packages/algod_client/src/models/application-state-operation.d.ts +0 -1
  237. package/packages/algod_client/src/models/application-state-operation.js +6 -7
  238. package/packages/algod_client/src/models/application-state-operation.js.map +1 -1
  239. package/packages/algod_client/src/models/application-state-operation.mjs +1 -2
  240. package/packages/algod_client/src/models/application-state-operation.mjs.map +1 -1
  241. package/packages/algod_client/src/models/application-state-schema.js +2 -3
  242. package/packages/algod_client/src/models/application-state-schema.js.map +1 -1
  243. package/packages/algod_client/src/models/application-state-schema.mjs +1 -2
  244. package/packages/algod_client/src/models/application-state-schema.mjs.map +1 -1
  245. package/packages/algod_client/src/models/application.d.ts +0 -1
  246. package/packages/algod_client/src/models/application.js +4 -5
  247. package/packages/algod_client/src/models/application.js.map +1 -1
  248. package/packages/algod_client/src/models/application.mjs +1 -2
  249. package/packages/algod_client/src/models/application.mjs.map +1 -1
  250. package/packages/algod_client/src/models/asset-holding.js +3 -4
  251. package/packages/algod_client/src/models/asset-holding.js.map +1 -1
  252. package/packages/algod_client/src/models/asset-holding.mjs +1 -2
  253. package/packages/algod_client/src/models/asset-holding.mjs.map +1 -1
  254. package/packages/algod_client/src/models/asset-params.js +7 -8
  255. package/packages/algod_client/src/models/asset-params.js.map +1 -1
  256. package/packages/algod_client/src/models/asset-params.mjs +1 -2
  257. package/packages/algod_client/src/models/asset-params.mjs.map +1 -1
  258. package/packages/algod_client/src/models/asset.d.ts +0 -1
  259. package/packages/algod_client/src/models/asset.js +4 -5
  260. package/packages/algod_client/src/models/asset.js.map +1 -1
  261. package/packages/algod_client/src/models/asset.mjs +1 -2
  262. package/packages/algod_client/src/models/asset.mjs.map +1 -1
  263. package/packages/algod_client/src/models/avm-key-value.d.ts +0 -1
  264. package/packages/algod_client/src/models/avm-key-value.js +4 -5
  265. package/packages/algod_client/src/models/avm-key-value.js.map +1 -1
  266. package/packages/algod_client/src/models/avm-key-value.mjs +1 -2
  267. package/packages/algod_client/src/models/avm-key-value.mjs.map +1 -1
  268. package/packages/algod_client/src/models/avm-value.js +4 -6
  269. package/packages/algod_client/src/models/avm-value.js.map +1 -1
  270. package/packages/algod_client/src/models/avm-value.mjs +1 -2
  271. package/packages/algod_client/src/models/avm-value.mjs.map +1 -1
  272. package/packages/algod_client/src/models/block-hash-response.js +2 -4
  273. package/packages/algod_client/src/models/block-hash-response.js.map +1 -1
  274. package/packages/algod_client/src/models/block-hash-response.mjs +1 -2
  275. package/packages/algod_client/src/models/block-hash-response.mjs.map +1 -1
  276. package/packages/algod_client/src/models/block-response.d.ts +1 -3
  277. package/packages/algod_client/src/models/block-response.js +4 -6
  278. package/packages/algod_client/src/models/block-response.js.map +1 -1
  279. package/packages/algod_client/src/models/block-response.mjs +1 -2
  280. package/packages/algod_client/src/models/block-response.mjs.map +1 -1
  281. package/packages/algod_client/src/models/block-txids-response.js +2 -4
  282. package/packages/algod_client/src/models/block-txids-response.js.map +1 -1
  283. package/packages/algod_client/src/models/block-txids-response.mjs +1 -2
  284. package/packages/algod_client/src/models/block-txids-response.mjs.map +1 -1
  285. package/packages/algod_client/src/models/block.d.ts +41 -93
  286. package/packages/algod_client/src/models/block.js +12 -13
  287. package/packages/algod_client/src/models/block.js.map +1 -1
  288. package/packages/algod_client/src/models/block.mjs +1 -2
  289. package/packages/algod_client/src/models/block.mjs.map +1 -1
  290. package/packages/algod_client/src/models/box-descriptor.js +2 -4
  291. package/packages/algod_client/src/models/box-descriptor.js.map +1 -1
  292. package/packages/algod_client/src/models/box-descriptor.mjs +1 -2
  293. package/packages/algod_client/src/models/box-descriptor.mjs.map +1 -1
  294. package/packages/algod_client/src/models/box.js +3 -4
  295. package/packages/algod_client/src/models/box.js.map +1 -1
  296. package/packages/algod_client/src/models/box.mjs +1 -2
  297. package/packages/algod_client/src/models/box.mjs.map +1 -1
  298. package/packages/algod_client/src/models/boxes-response.js +4 -5
  299. package/packages/algod_client/src/models/boxes-response.js.map +1 -1
  300. package/packages/algod_client/src/models/boxes-response.mjs +1 -2
  301. package/packages/algod_client/src/models/boxes-response.mjs.map +1 -1
  302. package/packages/algod_client/src/models/build-version.js +3 -4
  303. package/packages/algod_client/src/models/build-version.js.map +1 -1
  304. package/packages/algod_client/src/models/build-version.mjs +1 -2
  305. package/packages/algod_client/src/models/build-version.mjs.map +1 -1
  306. package/packages/algod_client/src/models/compile-response.js +4 -5
  307. package/packages/algod_client/src/models/compile-response.js.map +1 -1
  308. package/packages/algod_client/src/models/compile-response.mjs +1 -2
  309. package/packages/algod_client/src/models/compile-response.mjs.map +1 -1
  310. package/packages/algod_client/src/models/disassemble-response.js +2 -4
  311. package/packages/algod_client/src/models/disassemble-response.js.map +1 -1
  312. package/packages/algod_client/src/models/disassemble-response.mjs +1 -2
  313. package/packages/algod_client/src/models/disassemble-response.mjs.map +1 -1
  314. package/packages/algod_client/src/models/eval-delta-key-value.d.ts +0 -1
  315. package/packages/algod_client/src/models/eval-delta-key-value.js +4 -5
  316. package/packages/algod_client/src/models/eval-delta-key-value.js.map +1 -1
  317. package/packages/algod_client/src/models/eval-delta-key-value.mjs +1 -2
  318. package/packages/algod_client/src/models/eval-delta-key-value.mjs.map +1 -1
  319. package/packages/algod_client/src/models/eval-delta.js +4 -6
  320. package/packages/algod_client/src/models/eval-delta.js.map +1 -1
  321. package/packages/algod_client/src/models/eval-delta.mjs +1 -2
  322. package/packages/algod_client/src/models/eval-delta.mjs.map +1 -1
  323. package/packages/algod_client/src/models/genesis-allocation.js +59 -62
  324. package/packages/algod_client/src/models/genesis-allocation.js.map +1 -1
  325. package/packages/algod_client/src/models/genesis-allocation.mjs +55 -58
  326. package/packages/algod_client/src/models/genesis-allocation.mjs.map +1 -1
  327. package/packages/algod_client/src/models/genesis.js +7 -8
  328. package/packages/algod_client/src/models/genesis.js.map +1 -1
  329. package/packages/algod_client/src/models/genesis.mjs +1 -2
  330. package/packages/algod_client/src/models/genesis.mjs.map +1 -1
  331. package/packages/algod_client/src/models/get-block-time-stamp-offset-response.js +2 -4
  332. package/packages/algod_client/src/models/get-block-time-stamp-offset-response.js.map +1 -1
  333. package/packages/algod_client/src/models/get-block-time-stamp-offset-response.mjs +1 -2
  334. package/packages/algod_client/src/models/get-block-time-stamp-offset-response.mjs.map +1 -1
  335. package/packages/algod_client/src/models/get-sync-round-response.js +2 -4
  336. package/packages/algod_client/src/models/get-sync-round-response.js.map +1 -1
  337. package/packages/algod_client/src/models/get-sync-round-response.mjs +1 -2
  338. package/packages/algod_client/src/models/get-sync-round-response.mjs.map +1 -1
  339. package/packages/algod_client/src/models/ledger-state-delta-for-transaction-group.d.ts +0 -1
  340. package/packages/algod_client/src/models/ledger-state-delta-for-transaction-group.js +4 -5
  341. package/packages/algod_client/src/models/ledger-state-delta-for-transaction-group.js.map +1 -1
  342. package/packages/algod_client/src/models/ledger-state-delta-for-transaction-group.mjs +1 -2
  343. package/packages/algod_client/src/models/ledger-state-delta-for-transaction-group.mjs.map +1 -1
  344. package/packages/algod_client/src/models/ledger-state-delta.d.ts +3 -8
  345. package/packages/algod_client/src/models/ledger-state-delta.js +98 -101
  346. package/packages/algod_client/src/models/ledger-state-delta.js.map +1 -1
  347. package/packages/algod_client/src/models/ledger-state-delta.mjs +205 -210
  348. package/packages/algod_client/src/models/ledger-state-delta.mjs.map +1 -1
  349. package/packages/algod_client/src/models/light-block-header-proof.js +3 -4
  350. package/packages/algod_client/src/models/light-block-header-proof.js.map +1 -1
  351. package/packages/algod_client/src/models/light-block-header-proof.mjs +1 -2
  352. package/packages/algod_client/src/models/light-block-header-proof.mjs.map +1 -1
  353. package/packages/algod_client/src/models/node-status-response.js +5 -6
  354. package/packages/algod_client/src/models/node-status-response.js.map +1 -1
  355. package/packages/algod_client/src/models/node-status-response.mjs +1 -2
  356. package/packages/algod_client/src/models/node-status-response.mjs.map +1 -1
  357. package/packages/algod_client/src/models/pending-transaction-response.d.ts +0 -1
  358. package/packages/algod_client/src/models/pending-transaction-response.js +9 -10
  359. package/packages/algod_client/src/models/pending-transaction-response.js.map +1 -1
  360. package/packages/algod_client/src/models/pending-transaction-response.mjs +1 -2
  361. package/packages/algod_client/src/models/pending-transaction-response.mjs.map +1 -1
  362. package/packages/algod_client/src/models/pending-transactions-response.d.ts +0 -1
  363. package/packages/algod_client/src/models/pending-transactions-response.js +5 -6
  364. package/packages/algod_client/src/models/pending-transactions-response.js.map +1 -1
  365. package/packages/algod_client/src/models/pending-transactions-response.mjs +1 -2
  366. package/packages/algod_client/src/models/pending-transactions-response.mjs.map +1 -1
  367. package/packages/algod_client/src/models/post-transactions-response.js +2 -4
  368. package/packages/algod_client/src/models/post-transactions-response.js.map +1 -1
  369. package/packages/algod_client/src/models/post-transactions-response.mjs +1 -2
  370. package/packages/algod_client/src/models/post-transactions-response.mjs.map +1 -1
  371. package/packages/algod_client/src/models/scratch-change.d.ts +0 -1
  372. package/packages/algod_client/src/models/scratch-change.js +4 -5
  373. package/packages/algod_client/src/models/scratch-change.js.map +1 -1
  374. package/packages/algod_client/src/models/scratch-change.mjs +1 -2
  375. package/packages/algod_client/src/models/scratch-change.mjs.map +1 -1
  376. package/packages/algod_client/src/models/simulate-initial-states.d.ts +0 -1
  377. package/packages/algod_client/src/models/simulate-initial-states.js +4 -5
  378. package/packages/algod_client/src/models/simulate-initial-states.js.map +1 -1
  379. package/packages/algod_client/src/models/simulate-initial-states.mjs +1 -2
  380. package/packages/algod_client/src/models/simulate-initial-states.mjs.map +1 -1
  381. package/packages/algod_client/src/models/simulate-request-transaction-group.d.ts +0 -1
  382. package/packages/algod_client/src/models/simulate-request-transaction-group.js +4 -5
  383. package/packages/algod_client/src/models/simulate-request-transaction-group.js.map +1 -1
  384. package/packages/algod_client/src/models/simulate-request-transaction-group.mjs +1 -2
  385. package/packages/algod_client/src/models/simulate-request-transaction-group.mjs.map +1 -1
  386. package/packages/algod_client/src/models/simulate-request.d.ts +0 -1
  387. package/packages/algod_client/src/models/simulate-request.js +8 -9
  388. package/packages/algod_client/src/models/simulate-request.js.map +1 -1
  389. package/packages/algod_client/src/models/simulate-request.mjs +1 -2
  390. package/packages/algod_client/src/models/simulate-request.mjs.map +1 -1
  391. package/packages/algod_client/src/models/simulate-response.js +10 -11
  392. package/packages/algod_client/src/models/simulate-response.js.map +1 -1
  393. package/packages/algod_client/src/models/simulate-response.mjs +1 -2
  394. package/packages/algod_client/src/models/simulate-response.mjs.map +1 -1
  395. package/packages/algod_client/src/models/simulate-trace-config.js +2 -3
  396. package/packages/algod_client/src/models/simulate-trace-config.js.map +1 -1
  397. package/packages/algod_client/src/models/simulate-trace-config.mjs +1 -2
  398. package/packages/algod_client/src/models/simulate-trace-config.mjs.map +1 -1
  399. package/packages/algod_client/src/models/simulate-transaction-group-result.d.ts +0 -1
  400. package/packages/algod_client/src/models/simulate-transaction-group-result.js +7 -8
  401. package/packages/algod_client/src/models/simulate-transaction-group-result.js.map +1 -1
  402. package/packages/algod_client/src/models/simulate-transaction-group-result.mjs +1 -2
  403. package/packages/algod_client/src/models/simulate-transaction-group-result.mjs.map +1 -1
  404. package/packages/algod_client/src/models/simulate-transaction-result.d.ts +0 -1
  405. package/packages/algod_client/src/models/simulate-transaction-result.js +7 -8
  406. package/packages/algod_client/src/models/simulate-transaction-result.js.map +1 -1
  407. package/packages/algod_client/src/models/simulate-transaction-result.mjs +1 -2
  408. package/packages/algod_client/src/models/simulate-transaction-result.mjs.map +1 -1
  409. package/packages/algod_client/src/models/simulate-unnamed-resources-accessed.d.ts +0 -1
  410. package/packages/algod_client/src/models/simulate-unnamed-resources-accessed.js +5 -6
  411. package/packages/algod_client/src/models/simulate-unnamed-resources-accessed.js.map +1 -1
  412. package/packages/algod_client/src/models/simulate-unnamed-resources-accessed.mjs +1 -2
  413. package/packages/algod_client/src/models/simulate-unnamed-resources-accessed.mjs.map +1 -1
  414. package/packages/algod_client/src/models/simulation-eval-overrides.js +3 -4
  415. package/packages/algod_client/src/models/simulation-eval-overrides.js.map +1 -1
  416. package/packages/algod_client/src/models/simulation-eval-overrides.mjs +1 -2
  417. package/packages/algod_client/src/models/simulation-eval-overrides.mjs.map +1 -1
  418. package/packages/algod_client/src/models/simulation-opcode-trace-unit.d.ts +0 -1
  419. package/packages/algod_client/src/models/simulation-opcode-trace-unit.js +7 -8
  420. package/packages/algod_client/src/models/simulation-opcode-trace-unit.js.map +1 -1
  421. package/packages/algod_client/src/models/simulation-opcode-trace-unit.mjs +1 -2
  422. package/packages/algod_client/src/models/simulation-opcode-trace-unit.mjs.map +1 -1
  423. package/packages/algod_client/src/models/simulation-transaction-exec-trace.d.ts +0 -1
  424. package/packages/algod_client/src/models/simulation-transaction-exec-trace.js +7 -8
  425. package/packages/algod_client/src/models/simulation-transaction-exec-trace.js.map +1 -1
  426. package/packages/algod_client/src/models/simulation-transaction-exec-trace.mjs +1 -2
  427. package/packages/algod_client/src/models/simulation-transaction-exec-trace.mjs.map +1 -1
  428. package/packages/algod_client/src/models/source-map.js +4 -5
  429. package/packages/algod_client/src/models/source-map.js.map +1 -1
  430. package/packages/algod_client/src/models/source-map.mjs +1 -2
  431. package/packages/algod_client/src/models/source-map.mjs.map +1 -1
  432. package/packages/algod_client/src/models/state-delta.d.ts +0 -1
  433. package/packages/algod_client/src/models/state-delta.js +4 -5
  434. package/packages/algod_client/src/models/state-delta.js.map +1 -1
  435. package/packages/algod_client/src/models/state-delta.mjs +1 -2
  436. package/packages/algod_client/src/models/state-delta.mjs.map +1 -1
  437. package/packages/algod_client/src/models/state-proof-message.js +3 -4
  438. package/packages/algod_client/src/models/state-proof-message.js.map +1 -1
  439. package/packages/algod_client/src/models/state-proof-message.mjs +1 -2
  440. package/packages/algod_client/src/models/state-proof-message.mjs.map +1 -1
  441. package/packages/algod_client/src/models/state-proof.d.ts +0 -1
  442. package/packages/algod_client/src/models/state-proof.js +4 -5
  443. package/packages/algod_client/src/models/state-proof.js.map +1 -1
  444. package/packages/algod_client/src/models/state-proof.mjs +1 -2
  445. package/packages/algod_client/src/models/state-proof.mjs.map +1 -1
  446. package/packages/algod_client/src/models/supply-response.js +2 -3
  447. package/packages/algod_client/src/models/supply-response.js.map +1 -1
  448. package/packages/algod_client/src/models/supply-response.mjs +1 -2
  449. package/packages/algod_client/src/models/supply-response.mjs.map +1 -1
  450. package/packages/algod_client/src/models/teal-key-value-store.d.ts +0 -1
  451. package/packages/algod_client/src/models/teal-key-value-store.js +4 -5
  452. package/packages/algod_client/src/models/teal-key-value-store.js.map +1 -1
  453. package/packages/algod_client/src/models/teal-key-value-store.mjs +1 -2
  454. package/packages/algod_client/src/models/teal-key-value-store.mjs.map +1 -1
  455. package/packages/algod_client/src/models/teal-key-value.d.ts +0 -1
  456. package/packages/algod_client/src/models/teal-key-value.js +4 -5
  457. package/packages/algod_client/src/models/teal-key-value.js.map +1 -1
  458. package/packages/algod_client/src/models/teal-key-value.mjs +1 -2
  459. package/packages/algod_client/src/models/teal-key-value.mjs.map +1 -1
  460. package/packages/algod_client/src/models/teal-value.js +4 -6
  461. package/packages/algod_client/src/models/teal-value.js.map +1 -1
  462. package/packages/algod_client/src/models/teal-value.mjs +1 -2
  463. package/packages/algod_client/src/models/teal-value.mjs.map +1 -1
  464. package/packages/algod_client/src/models/transaction-group-ledger-state-deltas-for-round-response.js +4 -5
  465. package/packages/algod_client/src/models/transaction-group-ledger-state-deltas-for-round-response.js.map +1 -1
  466. package/packages/algod_client/src/models/transaction-group-ledger-state-deltas-for-round-response.mjs +1 -2
  467. package/packages/algod_client/src/models/transaction-group-ledger-state-deltas-for-round-response.mjs.map +1 -1
  468. package/packages/algod_client/src/models/transaction-parameters-response.js +4 -5
  469. package/packages/algod_client/src/models/transaction-parameters-response.js.map +1 -1
  470. package/packages/algod_client/src/models/transaction-parameters-response.mjs +1 -2
  471. package/packages/algod_client/src/models/transaction-parameters-response.mjs.map +1 -1
  472. package/packages/algod_client/src/models/transaction-proof.js +4 -5
  473. package/packages/algod_client/src/models/transaction-proof.js.map +1 -1
  474. package/packages/algod_client/src/models/transaction-proof.mjs +1 -2
  475. package/packages/algod_client/src/models/transaction-proof.mjs.map +1 -1
  476. package/packages/algod_client/src/models/version.d.ts +0 -1
  477. package/packages/algod_client/src/models/version.js +6 -7
  478. package/packages/algod_client/src/models/version.js.map +1 -1
  479. package/packages/algod_client/src/models/version.mjs +1 -2
  480. package/packages/algod_client/src/models/version.mjs.map +1 -1
  481. package/packages/common/src/address.js +12 -13
  482. package/packages/common/src/address.js.map +1 -1
  483. package/packages/common/src/address.mjs +10 -11
  484. package/packages/common/src/address.mjs.map +1 -1
  485. package/packages/common/src/array.js +1 -2
  486. package/packages/common/src/array.js.map +1 -1
  487. package/packages/common/src/array.mjs +1 -1
  488. package/packages/common/src/codecs/codec.d.ts +0 -1
  489. package/packages/common/src/codecs/codec.js +1 -2
  490. package/packages/common/src/codecs/codec.js.map +1 -1
  491. package/packages/common/src/codecs/codec.mjs +1 -1
  492. package/packages/common/src/codecs/codec.mjs.map +1 -1
  493. package/packages/common/src/codecs/composite/array.js +8 -9
  494. package/packages/common/src/codecs/composite/array.js.map +1 -1
  495. package/packages/common/src/codecs/composite/array.mjs +1 -2
  496. package/packages/common/src/codecs/composite/array.mjs.map +1 -1
  497. package/packages/common/src/codecs/composite/map.d.ts +0 -1
  498. package/packages/common/src/codecs/composite/map.js +2 -3
  499. package/packages/common/src/codecs/composite/map.js.map +1 -1
  500. package/packages/common/src/codecs/composite/map.mjs +1 -2
  501. package/packages/common/src/codecs/composite/map.mjs.map +1 -1
  502. package/packages/common/src/codecs/composite/record.d.ts +0 -1
  503. package/packages/common/src/codecs/composite/record.js +3 -4
  504. package/packages/common/src/codecs/composite/record.js.map +1 -1
  505. package/packages/common/src/codecs/composite/record.mjs +1 -2
  506. package/packages/common/src/codecs/composite/record.mjs.map +1 -1
  507. package/packages/common/src/codecs/models/array-model.js +2 -3
  508. package/packages/common/src/codecs/models/array-model.js.map +1 -1
  509. package/packages/common/src/codecs/models/array-model.mjs +1 -2
  510. package/packages/common/src/codecs/models/array-model.mjs.map +1 -1
  511. package/packages/common/src/codecs/models/object-model.js +4 -6
  512. package/packages/common/src/codecs/models/object-model.js.map +1 -1
  513. package/packages/common/src/codecs/models/object-model.mjs +2 -4
  514. package/packages/common/src/codecs/models/object-model.mjs.map +1 -1
  515. package/packages/common/src/codecs/models/primitive-model.js +2 -3
  516. package/packages/common/src/codecs/models/primitive-model.js.map +1 -1
  517. package/packages/common/src/codecs/models/primitive-model.mjs +1 -2
  518. package/packages/common/src/codecs/models/primitive-model.mjs.map +1 -1
  519. package/packages/common/src/codecs/primitives/address.js +7 -8
  520. package/packages/common/src/codecs/primitives/address.js.map +1 -1
  521. package/packages/common/src/codecs/primitives/address.mjs +4 -5
  522. package/packages/common/src/codecs/primitives/address.mjs.map +1 -1
  523. package/packages/common/src/codecs/primitives/bigint.js +2 -3
  524. package/packages/common/src/codecs/primitives/bigint.js.map +1 -1
  525. package/packages/common/src/codecs/primitives/bigint.mjs +1 -2
  526. package/packages/common/src/codecs/primitives/bigint.mjs.map +1 -1
  527. package/packages/common/src/codecs/primitives/boolean.js +2 -3
  528. package/packages/common/src/codecs/primitives/boolean.js.map +1 -1
  529. package/packages/common/src/codecs/primitives/boolean.mjs +1 -2
  530. package/packages/common/src/codecs/primitives/boolean.mjs.map +1 -1
  531. package/packages/common/src/codecs/primitives/bytes-base64.js +3 -4
  532. package/packages/common/src/codecs/primitives/bytes-base64.js.map +1 -1
  533. package/packages/common/src/codecs/primitives/bytes-base64.mjs +1 -2
  534. package/packages/common/src/codecs/primitives/bytes-base64.mjs.map +1 -1
  535. package/packages/common/src/codecs/primitives/bytes.js +3 -4
  536. package/packages/common/src/codecs/primitives/bytes.js.map +1 -1
  537. package/packages/common/src/codecs/primitives/bytes.mjs +1 -2
  538. package/packages/common/src/codecs/primitives/bytes.mjs.map +1 -1
  539. package/packages/common/src/codecs/primitives/fixed-bytes.js +3 -4
  540. package/packages/common/src/codecs/primitives/fixed-bytes.js.map +1 -1
  541. package/packages/common/src/codecs/primitives/fixed-bytes.mjs +1 -2
  542. package/packages/common/src/codecs/primitives/fixed-bytes.mjs.map +1 -1
  543. package/packages/common/src/codecs/primitives/number.js +2 -3
  544. package/packages/common/src/codecs/primitives/number.js.map +1 -1
  545. package/packages/common/src/codecs/primitives/number.mjs +1 -2
  546. package/packages/common/src/codecs/primitives/number.mjs.map +1 -1
  547. package/packages/common/src/codecs/primitives/string.js +3 -4
  548. package/packages/common/src/codecs/primitives/string.js.map +1 -1
  549. package/packages/common/src/codecs/primitives/string.mjs +1 -2
  550. package/packages/common/src/codecs/primitives/string.mjs.map +1 -1
  551. package/packages/common/src/codecs/primitives/unknown.d.ts +0 -1
  552. package/packages/common/src/codecs/primitives/unknown.js +10 -11
  553. package/packages/common/src/codecs/primitives/unknown.js.map +1 -1
  554. package/packages/common/src/codecs/primitives/unknown.mjs +3 -4
  555. package/packages/common/src/codecs/primitives/unknown.mjs.map +1 -1
  556. package/packages/common/src/codecs/types.d.ts +0 -1
  557. package/packages/common/src/codecs/wire.js +2 -3
  558. package/packages/common/src/codecs/wire.js.map +1 -1
  559. package/packages/common/src/codecs/wire.mjs +1 -2
  560. package/packages/common/src/codecs/wire.mjs.map +1 -1
  561. package/packages/common/src/constants.js +2 -3
  562. package/packages/common/src/constants.js.map +1 -1
  563. package/packages/common/src/constants.mjs +2 -2
  564. package/packages/common/src/constants.mjs.map +1 -1
  565. package/packages/common/src/encoding.js +2 -3
  566. package/packages/common/src/encoding.js.map +1 -1
  567. package/packages/common/src/encoding.mjs +1 -2
  568. package/packages/common/src/encoding.mjs.map +1 -1
  569. package/packages/common/src/json.js +2 -3
  570. package/packages/common/src/json.js.map +1 -1
  571. package/packages/common/src/json.mjs +1 -2
  572. package/packages/common/src/json.mjs.map +1 -1
  573. package/packages/common/src/msgpack.js +2 -3
  574. package/packages/common/src/msgpack.js.map +1 -1
  575. package/packages/common/src/msgpack.mjs +1 -2
  576. package/packages/common/src/msgpack.mjs.map +1 -1
  577. package/packages/common/src/sourcemap.js +2 -3
  578. package/packages/common/src/sourcemap.js.map +1 -1
  579. package/packages/common/src/sourcemap.mjs +1 -2
  580. package/packages/common/src/sourcemap.mjs.map +1 -1
  581. package/packages/crypto/src/ed25519.js +2 -3
  582. package/packages/crypto/src/ed25519.js.map +1 -1
  583. package/packages/crypto/src/ed25519.mjs +1 -2
  584. package/packages/crypto/src/ed25519.mjs.map +1 -1
  585. package/packages/crypto/src/hash.js +4 -5
  586. package/packages/crypto/src/hash.js.map +1 -1
  587. package/packages/crypto/src/hash.mjs +3 -4
  588. package/packages/crypto/src/hash.mjs.map +1 -1
  589. package/packages/crypto/src/hd.d.ts +3 -7
  590. package/packages/crypto/src/hd.js +2 -3
  591. package/packages/crypto/src/hd.js.map +1 -1
  592. package/packages/crypto/src/hd.mjs +1 -2
  593. package/packages/crypto/src/hd.mjs.map +1 -1
  594. package/packages/crypto/src/index.js +8 -7
  595. package/packages/crypto/src/index.js.map +1 -1
  596. package/packages/crypto/src/index.mjs +7 -6
  597. package/packages/crypto/src/index.mjs.map +1 -1
  598. package/packages/indexer_client/src/apis/api-service.js +19 -20
  599. package/packages/indexer_client/src/apis/api-service.js.map +1 -1
  600. package/packages/indexer_client/src/apis/api-service.mjs +1 -2
  601. package/packages/indexer_client/src/apis/api-service.mjs.map +1 -1
  602. package/packages/indexer_client/src/client.js +3 -4
  603. package/packages/indexer_client/src/client.js.map +1 -1
  604. package/packages/indexer_client/src/client.mjs +1 -2
  605. package/packages/indexer_client/src/client.mjs.map +1 -1
  606. package/packages/indexer_client/src/core/api-error.js +1 -2
  607. package/packages/indexer_client/src/core/api-error.js.map +1 -1
  608. package/packages/indexer_client/src/core/api-error.mjs +1 -1
  609. package/packages/indexer_client/src/core/api-error.mjs.map +1 -1
  610. package/packages/indexer_client/src/core/base-http-request.js +1 -2
  611. package/packages/indexer_client/src/core/base-http-request.js.map +1 -1
  612. package/packages/indexer_client/src/core/base-http-request.mjs +1 -1
  613. package/packages/indexer_client/src/core/base-http-request.mjs.map +1 -1
  614. package/packages/indexer_client/src/core/fetch-http-request.js +3 -4
  615. package/packages/indexer_client/src/core/fetch-http-request.js.map +1 -1
  616. package/packages/indexer_client/src/core/fetch-http-request.mjs +1 -2
  617. package/packages/indexer_client/src/core/fetch-http-request.mjs.map +1 -1
  618. package/packages/indexer_client/src/core/model-runtime.js +2 -3
  619. package/packages/indexer_client/src/core/model-runtime.js.map +1 -1
  620. package/packages/indexer_client/src/core/model-runtime.mjs +1 -2
  621. package/packages/indexer_client/src/core/model-runtime.mjs.map +1 -1
  622. package/packages/indexer_client/src/core/request.js +5 -6
  623. package/packages/indexer_client/src/core/request.js.map +1 -1
  624. package/packages/indexer_client/src/core/request.mjs +1 -2
  625. package/packages/indexer_client/src/core/request.mjs.map +1 -1
  626. package/packages/indexer_client/src/models/account-participation.js +3 -4
  627. package/packages/indexer_client/src/models/account-participation.js.map +1 -1
  628. package/packages/indexer_client/src/models/account-participation.mjs +1 -2
  629. package/packages/indexer_client/src/models/account-participation.mjs.map +1 -1
  630. package/packages/indexer_client/src/models/account-response.js +4 -5
  631. package/packages/indexer_client/src/models/account-response.js.map +1 -1
  632. package/packages/indexer_client/src/models/account-response.mjs +1 -2
  633. package/packages/indexer_client/src/models/account-response.mjs.map +1 -1
  634. package/packages/indexer_client/src/models/account-state-delta.d.ts +0 -1
  635. package/packages/indexer_client/src/models/account-state-delta.js +4 -5
  636. package/packages/indexer_client/src/models/account-state-delta.js.map +1 -1
  637. package/packages/indexer_client/src/models/account-state-delta.mjs +1 -2
  638. package/packages/indexer_client/src/models/account-state-delta.mjs.map +1 -1
  639. package/packages/indexer_client/src/models/account.d.ts +0 -1
  640. package/packages/indexer_client/src/models/account.js +14 -15
  641. package/packages/indexer_client/src/models/account.js.map +1 -1
  642. package/packages/indexer_client/src/models/account.mjs +1 -2
  643. package/packages/indexer_client/src/models/account.mjs.map +1 -1
  644. package/packages/indexer_client/src/models/accounts-response.js +6 -7
  645. package/packages/indexer_client/src/models/accounts-response.js.map +1 -1
  646. package/packages/indexer_client/src/models/accounts-response.mjs +1 -2
  647. package/packages/indexer_client/src/models/accounts-response.mjs.map +1 -1
  648. package/packages/indexer_client/src/models/application-local-state.d.ts +0 -1
  649. package/packages/indexer_client/src/models/application-local-state.js +7 -8
  650. package/packages/indexer_client/src/models/application-local-state.js.map +1 -1
  651. package/packages/indexer_client/src/models/application-local-state.mjs +1 -2
  652. package/packages/indexer_client/src/models/application-local-state.mjs.map +1 -1
  653. package/packages/indexer_client/src/models/application-local-states-response.js +6 -7
  654. package/packages/indexer_client/src/models/application-local-states-response.js.map +1 -1
  655. package/packages/indexer_client/src/models/application-local-states-response.mjs +1 -2
  656. package/packages/indexer_client/src/models/application-local-states-response.mjs.map +1 -1
  657. package/packages/indexer_client/src/models/application-log-data.js +3 -4
  658. package/packages/indexer_client/src/models/application-log-data.js.map +1 -1
  659. package/packages/indexer_client/src/models/application-log-data.mjs +1 -2
  660. package/packages/indexer_client/src/models/application-log-data.mjs.map +1 -1
  661. package/packages/indexer_client/src/models/application-logs-response.js +6 -7
  662. package/packages/indexer_client/src/models/application-logs-response.js.map +1 -1
  663. package/packages/indexer_client/src/models/application-logs-response.mjs +1 -2
  664. package/packages/indexer_client/src/models/application-logs-response.mjs.map +1 -1
  665. package/packages/indexer_client/src/models/application-params.d.ts +0 -1
  666. package/packages/indexer_client/src/models/application-params.js +8 -9
  667. package/packages/indexer_client/src/models/application-params.js.map +1 -1
  668. package/packages/indexer_client/src/models/application-params.mjs +1 -2
  669. package/packages/indexer_client/src/models/application-params.mjs.map +1 -1
  670. package/packages/indexer_client/src/models/application-response.js +4 -5
  671. package/packages/indexer_client/src/models/application-response.js.map +1 -1
  672. package/packages/indexer_client/src/models/application-response.mjs +1 -2
  673. package/packages/indexer_client/src/models/application-response.mjs.map +1 -1
  674. package/packages/indexer_client/src/models/application-state-schema.js +2 -3
  675. package/packages/indexer_client/src/models/application-state-schema.js.map +1 -1
  676. package/packages/indexer_client/src/models/application-state-schema.mjs +1 -2
  677. package/packages/indexer_client/src/models/application-state-schema.mjs.map +1 -1
  678. package/packages/indexer_client/src/models/application.d.ts +0 -1
  679. package/packages/indexer_client/src/models/application.js +5 -6
  680. package/packages/indexer_client/src/models/application.js.map +1 -1
  681. package/packages/indexer_client/src/models/application.mjs +1 -2
  682. package/packages/indexer_client/src/models/application.mjs.map +1 -1
  683. package/packages/indexer_client/src/models/applications-response.js +6 -7
  684. package/packages/indexer_client/src/models/applications-response.js.map +1 -1
  685. package/packages/indexer_client/src/models/applications-response.mjs +1 -2
  686. package/packages/indexer_client/src/models/applications-response.mjs.map +1 -1
  687. package/packages/indexer_client/src/models/asset-balances-response.js +6 -7
  688. package/packages/indexer_client/src/models/asset-balances-response.js.map +1 -1
  689. package/packages/indexer_client/src/models/asset-balances-response.mjs +1 -2
  690. package/packages/indexer_client/src/models/asset-balances-response.mjs.map +1 -1
  691. package/packages/indexer_client/src/models/asset-holding.js +3 -4
  692. package/packages/indexer_client/src/models/asset-holding.js.map +1 -1
  693. package/packages/indexer_client/src/models/asset-holding.mjs +1 -2
  694. package/packages/indexer_client/src/models/asset-holding.mjs.map +1 -1
  695. package/packages/indexer_client/src/models/asset-holdings-response.js +6 -7
  696. package/packages/indexer_client/src/models/asset-holdings-response.js.map +1 -1
  697. package/packages/indexer_client/src/models/asset-holdings-response.mjs +1 -2
  698. package/packages/indexer_client/src/models/asset-holdings-response.mjs.map +1 -1
  699. package/packages/indexer_client/src/models/asset-params.js +7 -8
  700. package/packages/indexer_client/src/models/asset-params.js.map +1 -1
  701. package/packages/indexer_client/src/models/asset-params.mjs +1 -2
  702. package/packages/indexer_client/src/models/asset-params.mjs.map +1 -1
  703. package/packages/indexer_client/src/models/asset-response.js +4 -5
  704. package/packages/indexer_client/src/models/asset-response.js.map +1 -1
  705. package/packages/indexer_client/src/models/asset-response.mjs +1 -2
  706. package/packages/indexer_client/src/models/asset-response.mjs.map +1 -1
  707. package/packages/indexer_client/src/models/asset.d.ts +0 -1
  708. package/packages/indexer_client/src/models/asset.js +5 -6
  709. package/packages/indexer_client/src/models/asset.js.map +1 -1
  710. package/packages/indexer_client/src/models/asset.mjs +1 -2
  711. package/packages/indexer_client/src/models/asset.mjs.map +1 -1
  712. package/packages/indexer_client/src/models/assets-response.js +6 -7
  713. package/packages/indexer_client/src/models/assets-response.js.map +1 -1
  714. package/packages/indexer_client/src/models/assets-response.mjs +1 -2
  715. package/packages/indexer_client/src/models/assets-response.mjs.map +1 -1
  716. package/packages/indexer_client/src/models/block-headers-response.js +6 -7
  717. package/packages/indexer_client/src/models/block-headers-response.js.map +1 -1
  718. package/packages/indexer_client/src/models/block-headers-response.mjs +1 -2
  719. package/packages/indexer_client/src/models/block-headers-response.mjs.map +1 -1
  720. package/packages/indexer_client/src/models/block-rewards.js +3 -4
  721. package/packages/indexer_client/src/models/block-rewards.js.map +1 -1
  722. package/packages/indexer_client/src/models/block-rewards.mjs +1 -2
  723. package/packages/indexer_client/src/models/block-rewards.mjs.map +1 -1
  724. package/packages/indexer_client/src/models/block-upgrade-state.js +4 -5
  725. package/packages/indexer_client/src/models/block-upgrade-state.js.map +1 -1
  726. package/packages/indexer_client/src/models/block-upgrade-state.mjs +1 -2
  727. package/packages/indexer_client/src/models/block-upgrade-state.mjs.map +1 -1
  728. package/packages/indexer_client/src/models/block-upgrade-vote.js +4 -5
  729. package/packages/indexer_client/src/models/block-upgrade-vote.js.map +1 -1
  730. package/packages/indexer_client/src/models/block-upgrade-vote.mjs +1 -2
  731. package/packages/indexer_client/src/models/block-upgrade-vote.mjs.map +1 -1
  732. package/packages/indexer_client/src/models/block.d.ts +0 -1
  733. package/packages/indexer_client/src/models/block.js +14 -15
  734. package/packages/indexer_client/src/models/block.js.map +1 -1
  735. package/packages/indexer_client/src/models/block.mjs +1 -2
  736. package/packages/indexer_client/src/models/block.mjs.map +1 -1
  737. package/packages/indexer_client/src/models/box-descriptor.js +2 -4
  738. package/packages/indexer_client/src/models/box-descriptor.js.map +1 -1
  739. package/packages/indexer_client/src/models/box-descriptor.mjs +1 -2
  740. package/packages/indexer_client/src/models/box-descriptor.mjs.map +1 -1
  741. package/packages/indexer_client/src/models/box-reference.js +3 -4
  742. package/packages/indexer_client/src/models/box-reference.js.map +1 -1
  743. package/packages/indexer_client/src/models/box-reference.mjs +1 -2
  744. package/packages/indexer_client/src/models/box-reference.mjs.map +1 -1
  745. package/packages/indexer_client/src/models/box.js +3 -4
  746. package/packages/indexer_client/src/models/box.js.map +1 -1
  747. package/packages/indexer_client/src/models/box.mjs +1 -2
  748. package/packages/indexer_client/src/models/box.mjs.map +1 -1
  749. package/packages/indexer_client/src/models/boxes-response.js +6 -7
  750. package/packages/indexer_client/src/models/boxes-response.js.map +1 -1
  751. package/packages/indexer_client/src/models/boxes-response.mjs +1 -2
  752. package/packages/indexer_client/src/models/boxes-response.mjs.map +1 -1
  753. package/packages/indexer_client/src/models/eval-delta-key-value.d.ts +0 -1
  754. package/packages/indexer_client/src/models/eval-delta-key-value.js +4 -5
  755. package/packages/indexer_client/src/models/eval-delta-key-value.js.map +1 -1
  756. package/packages/indexer_client/src/models/eval-delta-key-value.mjs +1 -2
  757. package/packages/indexer_client/src/models/eval-delta-key-value.mjs.map +1 -1
  758. package/packages/indexer_client/src/models/eval-delta.js +4 -6
  759. package/packages/indexer_client/src/models/eval-delta.js.map +1 -1
  760. package/packages/indexer_client/src/models/eval-delta.mjs +1 -2
  761. package/packages/indexer_client/src/models/eval-delta.mjs.map +1 -1
  762. package/packages/indexer_client/src/models/hash-factory.js +2 -4
  763. package/packages/indexer_client/src/models/hash-factory.js.map +1 -1
  764. package/packages/indexer_client/src/models/hash-factory.mjs +1 -2
  765. package/packages/indexer_client/src/models/hash-factory.mjs.map +1 -1
  766. package/packages/indexer_client/src/models/hb-proof-fields.js +2 -3
  767. package/packages/indexer_client/src/models/hb-proof-fields.js.map +1 -1
  768. package/packages/indexer_client/src/models/hb-proof-fields.mjs +1 -2
  769. package/packages/indexer_client/src/models/hb-proof-fields.mjs.map +1 -1
  770. package/packages/indexer_client/src/models/health-check.js +7 -8
  771. package/packages/indexer_client/src/models/health-check.js.map +1 -1
  772. package/packages/indexer_client/src/models/health-check.mjs +1 -2
  773. package/packages/indexer_client/src/models/health-check.mjs.map +1 -1
  774. package/packages/indexer_client/src/models/holding-ref.d.ts +0 -1
  775. package/packages/indexer_client/src/models/holding-ref.js +3 -4
  776. package/packages/indexer_client/src/models/holding-ref.js.map +1 -1
  777. package/packages/indexer_client/src/models/holding-ref.mjs +1 -2
  778. package/packages/indexer_client/src/models/holding-ref.mjs.map +1 -1
  779. package/packages/indexer_client/src/models/indexer-state-proof-message.js +3 -4
  780. package/packages/indexer_client/src/models/indexer-state-proof-message.js.map +1 -1
  781. package/packages/indexer_client/src/models/indexer-state-proof-message.mjs +1 -2
  782. package/packages/indexer_client/src/models/indexer-state-proof-message.mjs.map +1 -1
  783. package/packages/indexer_client/src/models/locals-ref.d.ts +0 -1
  784. package/packages/indexer_client/src/models/locals-ref.js +3 -4
  785. package/packages/indexer_client/src/models/locals-ref.js.map +1 -1
  786. package/packages/indexer_client/src/models/locals-ref.mjs +1 -2
  787. package/packages/indexer_client/src/models/locals-ref.mjs.map +1 -1
  788. package/packages/indexer_client/src/models/merkle-array-proof.js +5 -6
  789. package/packages/indexer_client/src/models/merkle-array-proof.js.map +1 -1
  790. package/packages/indexer_client/src/models/merkle-array-proof.mjs +1 -2
  791. package/packages/indexer_client/src/models/merkle-array-proof.mjs.map +1 -1
  792. package/packages/indexer_client/src/models/mini-asset-holding.js +4 -6
  793. package/packages/indexer_client/src/models/mini-asset-holding.js.map +1 -1
  794. package/packages/indexer_client/src/models/mini-asset-holding.mjs +1 -2
  795. package/packages/indexer_client/src/models/mini-asset-holding.mjs.map +1 -1
  796. package/packages/indexer_client/src/models/on-completion.js +2 -4
  797. package/packages/indexer_client/src/models/on-completion.js.map +1 -1
  798. package/packages/indexer_client/src/models/on-completion.mjs +1 -2
  799. package/packages/indexer_client/src/models/on-completion.mjs.map +1 -1
  800. package/packages/indexer_client/src/models/participation-updates.js +2 -3
  801. package/packages/indexer_client/src/models/participation-updates.js.map +1 -1
  802. package/packages/indexer_client/src/models/participation-updates.mjs +1 -2
  803. package/packages/indexer_client/src/models/participation-updates.mjs.map +1 -1
  804. package/packages/indexer_client/src/models/resource-ref.d.ts +0 -1
  805. package/packages/indexer_client/src/models/resource-ref.js +7 -8
  806. package/packages/indexer_client/src/models/resource-ref.js.map +1 -1
  807. package/packages/indexer_client/src/models/resource-ref.mjs +1 -2
  808. package/packages/indexer_client/src/models/resource-ref.mjs.map +1 -1
  809. package/packages/indexer_client/src/models/state-delta.d.ts +0 -1
  810. package/packages/indexer_client/src/models/state-delta.js +4 -5
  811. package/packages/indexer_client/src/models/state-delta.js.map +1 -1
  812. package/packages/indexer_client/src/models/state-delta.mjs +1 -2
  813. package/packages/indexer_client/src/models/state-delta.mjs.map +1 -1
  814. package/packages/indexer_client/src/models/state-proof-fields.d.ts +0 -1
  815. package/packages/indexer_client/src/models/state-proof-fields.js +8 -9
  816. package/packages/indexer_client/src/models/state-proof-fields.js.map +1 -1
  817. package/packages/indexer_client/src/models/state-proof-fields.mjs +1 -2
  818. package/packages/indexer_client/src/models/state-proof-fields.mjs.map +1 -1
  819. package/packages/indexer_client/src/models/state-proof-participant.js +4 -5
  820. package/packages/indexer_client/src/models/state-proof-participant.js.map +1 -1
  821. package/packages/indexer_client/src/models/state-proof-participant.mjs +1 -2
  822. package/packages/indexer_client/src/models/state-proof-participant.mjs.map +1 -1
  823. package/packages/indexer_client/src/models/state-proof-reveal.js +5 -6
  824. package/packages/indexer_client/src/models/state-proof-reveal.js.map +1 -1
  825. package/packages/indexer_client/src/models/state-proof-reveal.mjs +1 -2
  826. package/packages/indexer_client/src/models/state-proof-reveal.mjs.map +1 -1
  827. package/packages/indexer_client/src/models/state-proof-sig-slot.js +4 -5
  828. package/packages/indexer_client/src/models/state-proof-sig-slot.js.map +1 -1
  829. package/packages/indexer_client/src/models/state-proof-sig-slot.mjs +1 -2
  830. package/packages/indexer_client/src/models/state-proof-sig-slot.mjs.map +1 -1
  831. package/packages/indexer_client/src/models/state-proof-signature.js +5 -6
  832. package/packages/indexer_client/src/models/state-proof-signature.js.map +1 -1
  833. package/packages/indexer_client/src/models/state-proof-signature.mjs +1 -2
  834. package/packages/indexer_client/src/models/state-proof-signature.mjs.map +1 -1
  835. package/packages/indexer_client/src/models/state-proof-tracking.js +4 -5
  836. package/packages/indexer_client/src/models/state-proof-tracking.js.map +1 -1
  837. package/packages/indexer_client/src/models/state-proof-tracking.mjs +1 -2
  838. package/packages/indexer_client/src/models/state-proof-tracking.mjs.map +1 -1
  839. package/packages/indexer_client/src/models/state-proof-verifier.js +3 -5
  840. package/packages/indexer_client/src/models/state-proof-verifier.js.map +1 -1
  841. package/packages/indexer_client/src/models/state-proof-verifier.mjs +1 -2
  842. package/packages/indexer_client/src/models/state-proof-verifier.mjs.map +1 -1
  843. package/packages/indexer_client/src/models/state-schema.js +2 -3
  844. package/packages/indexer_client/src/models/state-schema.js.map +1 -1
  845. package/packages/indexer_client/src/models/state-schema.mjs +1 -2
  846. package/packages/indexer_client/src/models/state-schema.mjs.map +1 -1
  847. package/packages/indexer_client/src/models/teal-key-value-store.d.ts +0 -1
  848. package/packages/indexer_client/src/models/teal-key-value-store.js +4 -5
  849. package/packages/indexer_client/src/models/teal-key-value-store.js.map +1 -1
  850. package/packages/indexer_client/src/models/teal-key-value-store.mjs +1 -2
  851. package/packages/indexer_client/src/models/teal-key-value-store.mjs.map +1 -1
  852. package/packages/indexer_client/src/models/teal-key-value.d.ts +0 -1
  853. package/packages/indexer_client/src/models/teal-key-value.js +4 -5
  854. package/packages/indexer_client/src/models/teal-key-value.js.map +1 -1
  855. package/packages/indexer_client/src/models/teal-key-value.mjs +1 -2
  856. package/packages/indexer_client/src/models/teal-key-value.mjs.map +1 -1
  857. package/packages/indexer_client/src/models/teal-value.js +4 -6
  858. package/packages/indexer_client/src/models/teal-value.js.map +1 -1
  859. package/packages/indexer_client/src/models/teal-value.mjs +1 -2
  860. package/packages/indexer_client/src/models/teal-value.mjs.map +1 -1
  861. package/packages/indexer_client/src/models/transaction-application.d.ts +0 -1
  862. package/packages/indexer_client/src/models/transaction-application.js +11 -12
  863. package/packages/indexer_client/src/models/transaction-application.js.map +1 -1
  864. package/packages/indexer_client/src/models/transaction-application.mjs +1 -2
  865. package/packages/indexer_client/src/models/transaction-application.mjs.map +1 -1
  866. package/packages/indexer_client/src/models/transaction-asset-config.d.ts +0 -1
  867. package/packages/indexer_client/src/models/transaction-asset-config.js +4 -5
  868. package/packages/indexer_client/src/models/transaction-asset-config.js.map +1 -1
  869. package/packages/indexer_client/src/models/transaction-asset-config.mjs +1 -2
  870. package/packages/indexer_client/src/models/transaction-asset-config.mjs.map +1 -1
  871. package/packages/indexer_client/src/models/transaction-asset-freeze.js +4 -6
  872. package/packages/indexer_client/src/models/transaction-asset-freeze.js.map +1 -1
  873. package/packages/indexer_client/src/models/transaction-asset-freeze.mjs +1 -2
  874. package/packages/indexer_client/src/models/transaction-asset-freeze.mjs.map +1 -1
  875. package/packages/indexer_client/src/models/transaction-asset-transfer.js +3 -4
  876. package/packages/indexer_client/src/models/transaction-asset-transfer.js.map +1 -1
  877. package/packages/indexer_client/src/models/transaction-asset-transfer.mjs +1 -2
  878. package/packages/indexer_client/src/models/transaction-asset-transfer.mjs.map +1 -1
  879. package/packages/indexer_client/src/models/transaction-heartbeat.d.ts +0 -1
  880. package/packages/indexer_client/src/models/transaction-heartbeat.js +7 -8
  881. package/packages/indexer_client/src/models/transaction-heartbeat.js.map +1 -1
  882. package/packages/indexer_client/src/models/transaction-heartbeat.mjs +1 -2
  883. package/packages/indexer_client/src/models/transaction-heartbeat.mjs.map +1 -1
  884. package/packages/indexer_client/src/models/transaction-keyreg.js +4 -5
  885. package/packages/indexer_client/src/models/transaction-keyreg.js.map +1 -1
  886. package/packages/indexer_client/src/models/transaction-keyreg.mjs +1 -2
  887. package/packages/indexer_client/src/models/transaction-keyreg.mjs.map +1 -1
  888. package/packages/indexer_client/src/models/transaction-payment.js +3 -4
  889. package/packages/indexer_client/src/models/transaction-payment.js.map +1 -1
  890. package/packages/indexer_client/src/models/transaction-payment.mjs +1 -2
  891. package/packages/indexer_client/src/models/transaction-payment.mjs.map +1 -1
  892. package/packages/indexer_client/src/models/transaction-response.js +4 -5
  893. package/packages/indexer_client/src/models/transaction-response.js.map +1 -1
  894. package/packages/indexer_client/src/models/transaction-response.mjs +1 -2
  895. package/packages/indexer_client/src/models/transaction-response.mjs.map +1 -1
  896. package/packages/indexer_client/src/models/transaction-signature-logicsig.d.ts +0 -1
  897. package/packages/indexer_client/src/models/transaction-signature-logicsig.js +6 -7
  898. package/packages/indexer_client/src/models/transaction-signature-logicsig.js.map +1 -1
  899. package/packages/indexer_client/src/models/transaction-signature-logicsig.mjs +1 -2
  900. package/packages/indexer_client/src/models/transaction-signature-logicsig.mjs.map +1 -1
  901. package/packages/indexer_client/src/models/transaction-signature-multisig-subsignature.js +2 -3
  902. package/packages/indexer_client/src/models/transaction-signature-multisig-subsignature.js.map +1 -1
  903. package/packages/indexer_client/src/models/transaction-signature-multisig-subsignature.mjs +1 -2
  904. package/packages/indexer_client/src/models/transaction-signature-multisig-subsignature.mjs.map +1 -1
  905. package/packages/indexer_client/src/models/transaction-signature-multisig.d.ts +0 -1
  906. package/packages/indexer_client/src/models/transaction-signature-multisig.js +5 -6
  907. package/packages/indexer_client/src/models/transaction-signature-multisig.js.map +1 -1
  908. package/packages/indexer_client/src/models/transaction-signature-multisig.mjs +1 -2
  909. package/packages/indexer_client/src/models/transaction-signature-multisig.mjs.map +1 -1
  910. package/packages/indexer_client/src/models/transaction-signature.d.ts +0 -1
  911. package/packages/indexer_client/src/models/transaction-signature.js +5 -6
  912. package/packages/indexer_client/src/models/transaction-signature.js.map +1 -1
  913. package/packages/indexer_client/src/models/transaction-signature.mjs +1 -2
  914. package/packages/indexer_client/src/models/transaction-signature.mjs.map +1 -1
  915. package/packages/indexer_client/src/models/transaction-state-proof.d.ts +0 -1
  916. package/packages/indexer_client/src/models/transaction-state-proof.js +5 -6
  917. package/packages/indexer_client/src/models/transaction-state-proof.js.map +1 -1
  918. package/packages/indexer_client/src/models/transaction-state-proof.mjs +1 -2
  919. package/packages/indexer_client/src/models/transaction-state-proof.mjs.map +1 -1
  920. package/packages/indexer_client/src/models/transaction.d.ts +0 -1
  921. package/packages/indexer_client/src/models/transaction.js +21 -22
  922. package/packages/indexer_client/src/models/transaction.js.map +1 -1
  923. package/packages/indexer_client/src/models/transaction.mjs +1 -2
  924. package/packages/indexer_client/src/models/transaction.mjs.map +1 -1
  925. package/packages/indexer_client/src/models/transactions-response.js +6 -7
  926. package/packages/indexer_client/src/models/transactions-response.js.map +1 -1
  927. package/packages/indexer_client/src/models/transactions-response.mjs +1 -2
  928. package/packages/indexer_client/src/models/transactions-response.mjs.map +1 -1
  929. package/packages/kmd_client/src/apis/api-service.js +44 -46
  930. package/packages/kmd_client/src/apis/api-service.js.map +1 -1
  931. package/packages/kmd_client/src/apis/api-service.mjs +3 -5
  932. package/packages/kmd_client/src/apis/api-service.mjs.map +1 -1
  933. package/packages/kmd_client/src/client.js +3 -4
  934. package/packages/kmd_client/src/client.js.map +1 -1
  935. package/packages/kmd_client/src/client.mjs +1 -2
  936. package/packages/kmd_client/src/client.mjs.map +1 -1
  937. package/packages/kmd_client/src/core/api-error.js +1 -2
  938. package/packages/kmd_client/src/core/api-error.js.map +1 -1
  939. package/packages/kmd_client/src/core/api-error.mjs +1 -1
  940. package/packages/kmd_client/src/core/api-error.mjs.map +1 -1
  941. package/packages/kmd_client/src/core/base-http-request.js +1 -2
  942. package/packages/kmd_client/src/core/base-http-request.js.map +1 -1
  943. package/packages/kmd_client/src/core/base-http-request.mjs +1 -1
  944. package/packages/kmd_client/src/core/base-http-request.mjs.map +1 -1
  945. package/packages/kmd_client/src/core/fetch-http-request.js +3 -4
  946. package/packages/kmd_client/src/core/fetch-http-request.js.map +1 -1
  947. package/packages/kmd_client/src/core/fetch-http-request.mjs +1 -2
  948. package/packages/kmd_client/src/core/fetch-http-request.mjs.map +1 -1
  949. package/packages/kmd_client/src/core/model-runtime.js +3 -4
  950. package/packages/kmd_client/src/core/model-runtime.js.map +1 -1
  951. package/packages/kmd_client/src/core/model-runtime.mjs +1 -2
  952. package/packages/kmd_client/src/core/model-runtime.mjs.map +1 -1
  953. package/packages/kmd_client/src/core/request.js +5 -6
  954. package/packages/kmd_client/src/core/request.js.map +1 -1
  955. package/packages/kmd_client/src/core/request.mjs +1 -2
  956. package/packages/kmd_client/src/core/request.mjs.map +1 -1
  957. package/packages/kmd_client/src/models/create-wallet-request.js +3 -4
  958. package/packages/kmd_client/src/models/create-wallet-request.js.map +1 -1
  959. package/packages/kmd_client/src/models/create-wallet-request.mjs +1 -2
  960. package/packages/kmd_client/src/models/create-wallet-request.mjs.map +1 -1
  961. package/packages/kmd_client/src/models/create-wallet-response.d.ts +0 -1
  962. package/packages/kmd_client/src/models/create-wallet-response.js +3 -4
  963. package/packages/kmd_client/src/models/create-wallet-response.js.map +1 -1
  964. package/packages/kmd_client/src/models/create-wallet-response.mjs +1 -2
  965. package/packages/kmd_client/src/models/create-wallet-response.mjs.map +1 -1
  966. package/packages/kmd_client/src/models/delete-key-request.d.ts +0 -1
  967. package/packages/kmd_client/src/models/delete-key-request.js +3 -4
  968. package/packages/kmd_client/src/models/delete-key-request.js.map +1 -1
  969. package/packages/kmd_client/src/models/delete-key-request.mjs +1 -2
  970. package/packages/kmd_client/src/models/delete-key-request.mjs.map +1 -1
  971. package/packages/kmd_client/src/models/delete-multisig-request.d.ts +0 -1
  972. package/packages/kmd_client/src/models/delete-multisig-request.js +3 -4
  973. package/packages/kmd_client/src/models/delete-multisig-request.js.map +1 -1
  974. package/packages/kmd_client/src/models/delete-multisig-request.mjs +1 -2
  975. package/packages/kmd_client/src/models/delete-multisig-request.mjs.map +1 -1
  976. package/packages/kmd_client/src/models/export-key-request.d.ts +0 -1
  977. package/packages/kmd_client/src/models/export-key-request.js +3 -4
  978. package/packages/kmd_client/src/models/export-key-request.js.map +1 -1
  979. package/packages/kmd_client/src/models/export-key-request.mjs +1 -2
  980. package/packages/kmd_client/src/models/export-key-request.mjs.map +1 -1
  981. package/packages/kmd_client/src/models/export-key-response.js +2 -4
  982. package/packages/kmd_client/src/models/export-key-response.js.map +1 -1
  983. package/packages/kmd_client/src/models/export-key-response.mjs +1 -2
  984. package/packages/kmd_client/src/models/export-key-response.mjs.map +1 -1
  985. package/packages/kmd_client/src/models/export-master-key-request.js +2 -3
  986. package/packages/kmd_client/src/models/export-master-key-request.js.map +1 -1
  987. package/packages/kmd_client/src/models/export-master-key-request.mjs +1 -2
  988. package/packages/kmd_client/src/models/export-master-key-request.mjs.map +1 -1
  989. package/packages/kmd_client/src/models/export-master-key-response.js +2 -4
  990. package/packages/kmd_client/src/models/export-master-key-response.js.map +1 -1
  991. package/packages/kmd_client/src/models/export-master-key-response.mjs +1 -2
  992. package/packages/kmd_client/src/models/export-master-key-response.mjs.map +1 -1
  993. package/packages/kmd_client/src/models/export-multisig-request.d.ts +0 -1
  994. package/packages/kmd_client/src/models/export-multisig-request.js +3 -4
  995. package/packages/kmd_client/src/models/export-multisig-request.js.map +1 -1
  996. package/packages/kmd_client/src/models/export-multisig-request.mjs +1 -2
  997. package/packages/kmd_client/src/models/export-multisig-request.mjs.map +1 -1
  998. package/packages/kmd_client/src/models/export-multisig-response.js +3 -4
  999. package/packages/kmd_client/src/models/export-multisig-response.js.map +1 -1
  1000. package/packages/kmd_client/src/models/export-multisig-response.mjs +1 -2
  1001. package/packages/kmd_client/src/models/export-multisig-response.mjs.map +1 -1
  1002. package/packages/kmd_client/src/models/generate-key-request.js +2 -4
  1003. package/packages/kmd_client/src/models/generate-key-request.js.map +1 -1
  1004. package/packages/kmd_client/src/models/generate-key-request.mjs +1 -2
  1005. package/packages/kmd_client/src/models/generate-key-request.mjs.map +1 -1
  1006. package/packages/kmd_client/src/models/generate-key-response.d.ts +0 -1
  1007. package/packages/kmd_client/src/models/generate-key-response.js +2 -4
  1008. package/packages/kmd_client/src/models/generate-key-response.js.map +1 -1
  1009. package/packages/kmd_client/src/models/generate-key-response.mjs +1 -2
  1010. package/packages/kmd_client/src/models/generate-key-response.mjs.map +1 -1
  1011. package/packages/kmd_client/src/models/import-key-request.js +3 -4
  1012. package/packages/kmd_client/src/models/import-key-request.js.map +1 -1
  1013. package/packages/kmd_client/src/models/import-key-request.mjs +1 -2
  1014. package/packages/kmd_client/src/models/import-key-request.mjs.map +1 -1
  1015. package/packages/kmd_client/src/models/import-key-response.d.ts +0 -1
  1016. package/packages/kmd_client/src/models/import-key-response.js +2 -4
  1017. package/packages/kmd_client/src/models/import-key-response.js.map +1 -1
  1018. package/packages/kmd_client/src/models/import-key-response.mjs +1 -2
  1019. package/packages/kmd_client/src/models/import-key-response.mjs.map +1 -1
  1020. package/packages/kmd_client/src/models/import-multisig-request.js +4 -5
  1021. package/packages/kmd_client/src/models/import-multisig-request.js.map +1 -1
  1022. package/packages/kmd_client/src/models/import-multisig-request.mjs +1 -2
  1023. package/packages/kmd_client/src/models/import-multisig-request.mjs.map +1 -1
  1024. package/packages/kmd_client/src/models/import-multisig-response.d.ts +0 -1
  1025. package/packages/kmd_client/src/models/import-multisig-response.js +2 -4
  1026. package/packages/kmd_client/src/models/import-multisig-response.js.map +1 -1
  1027. package/packages/kmd_client/src/models/import-multisig-response.mjs +1 -2
  1028. package/packages/kmd_client/src/models/import-multisig-response.mjs.map +1 -1
  1029. package/packages/kmd_client/src/models/init-wallet-handle-token-request.js +2 -3
  1030. package/packages/kmd_client/src/models/init-wallet-handle-token-request.js.map +1 -1
  1031. package/packages/kmd_client/src/models/init-wallet-handle-token-request.mjs +1 -2
  1032. package/packages/kmd_client/src/models/init-wallet-handle-token-request.mjs.map +1 -1
  1033. package/packages/kmd_client/src/models/init-wallet-handle-token-response.js +2 -4
  1034. package/packages/kmd_client/src/models/init-wallet-handle-token-response.js.map +1 -1
  1035. package/packages/kmd_client/src/models/init-wallet-handle-token-response.mjs +1 -2
  1036. package/packages/kmd_client/src/models/init-wallet-handle-token-response.mjs.map +1 -1
  1037. package/packages/kmd_client/src/models/list-keys-request.js +2 -4
  1038. package/packages/kmd_client/src/models/list-keys-request.js.map +1 -1
  1039. package/packages/kmd_client/src/models/list-keys-request.mjs +1 -2
  1040. package/packages/kmd_client/src/models/list-keys-request.mjs.map +1 -1
  1041. package/packages/kmd_client/src/models/list-keys-response.d.ts +0 -1
  1042. package/packages/kmd_client/src/models/list-keys-response.js +2 -4
  1043. package/packages/kmd_client/src/models/list-keys-response.js.map +1 -1
  1044. package/packages/kmd_client/src/models/list-keys-response.mjs +1 -2
  1045. package/packages/kmd_client/src/models/list-keys-response.mjs.map +1 -1
  1046. package/packages/kmd_client/src/models/list-multisig-request.js +2 -4
  1047. package/packages/kmd_client/src/models/list-multisig-request.js.map +1 -1
  1048. package/packages/kmd_client/src/models/list-multisig-request.mjs +1 -2
  1049. package/packages/kmd_client/src/models/list-multisig-request.mjs.map +1 -1
  1050. package/packages/kmd_client/src/models/list-multisig-response.d.ts +0 -1
  1051. package/packages/kmd_client/src/models/list-multisig-response.js +2 -4
  1052. package/packages/kmd_client/src/models/list-multisig-response.js.map +1 -1
  1053. package/packages/kmd_client/src/models/list-multisig-response.mjs +1 -2
  1054. package/packages/kmd_client/src/models/list-multisig-response.mjs.map +1 -1
  1055. package/packages/kmd_client/src/models/list-wallets-response.d.ts +0 -1
  1056. package/packages/kmd_client/src/models/list-wallets-response.js +4 -5
  1057. package/packages/kmd_client/src/models/list-wallets-response.js.map +1 -1
  1058. package/packages/kmd_client/src/models/list-wallets-response.mjs +1 -2
  1059. package/packages/kmd_client/src/models/list-wallets-response.mjs.map +1 -1
  1060. package/packages/kmd_client/src/models/multisig-sig.d.ts +0 -1
  1061. package/packages/kmd_client/src/models/multisig-sig.js +5 -6
  1062. package/packages/kmd_client/src/models/multisig-sig.js.map +1 -1
  1063. package/packages/kmd_client/src/models/multisig-sig.mjs +1 -2
  1064. package/packages/kmd_client/src/models/multisig-sig.mjs.map +1 -1
  1065. package/packages/kmd_client/src/models/multisig-subsig.js +2 -3
  1066. package/packages/kmd_client/src/models/multisig-subsig.js.map +1 -1
  1067. package/packages/kmd_client/src/models/multisig-subsig.mjs +1 -2
  1068. package/packages/kmd_client/src/models/multisig-subsig.mjs.map +1 -1
  1069. package/packages/kmd_client/src/models/release-wallet-handle-token-request.js +2 -4
  1070. package/packages/kmd_client/src/models/release-wallet-handle-token-request.js.map +1 -1
  1071. package/packages/kmd_client/src/models/release-wallet-handle-token-request.mjs +1 -2
  1072. package/packages/kmd_client/src/models/release-wallet-handle-token-request.mjs.map +1 -1
  1073. package/packages/kmd_client/src/models/rename-wallet-request.js +2 -3
  1074. package/packages/kmd_client/src/models/rename-wallet-request.js.map +1 -1
  1075. package/packages/kmd_client/src/models/rename-wallet-request.mjs +1 -2
  1076. package/packages/kmd_client/src/models/rename-wallet-request.mjs.map +1 -1
  1077. package/packages/kmd_client/src/models/rename-wallet-response.d.ts +0 -1
  1078. package/packages/kmd_client/src/models/rename-wallet-response.js +3 -4
  1079. package/packages/kmd_client/src/models/rename-wallet-response.js.map +1 -1
  1080. package/packages/kmd_client/src/models/rename-wallet-response.mjs +1 -2
  1081. package/packages/kmd_client/src/models/rename-wallet-response.mjs.map +1 -1
  1082. package/packages/kmd_client/src/models/renew-wallet-handle-token-request.js +2 -4
  1083. package/packages/kmd_client/src/models/renew-wallet-handle-token-request.js.map +1 -1
  1084. package/packages/kmd_client/src/models/renew-wallet-handle-token-request.mjs +1 -2
  1085. package/packages/kmd_client/src/models/renew-wallet-handle-token-request.mjs.map +1 -1
  1086. package/packages/kmd_client/src/models/renew-wallet-handle-token-response.d.ts +0 -1
  1087. package/packages/kmd_client/src/models/renew-wallet-handle-token-response.js +3 -4
  1088. package/packages/kmd_client/src/models/renew-wallet-handle-token-response.js.map +1 -1
  1089. package/packages/kmd_client/src/models/renew-wallet-handle-token-response.mjs +1 -2
  1090. package/packages/kmd_client/src/models/renew-wallet-handle-token-response.mjs.map +1 -1
  1091. package/packages/kmd_client/src/models/sign-multisig-response.js +2 -4
  1092. package/packages/kmd_client/src/models/sign-multisig-response.js.map +1 -1
  1093. package/packages/kmd_client/src/models/sign-multisig-response.mjs +1 -2
  1094. package/packages/kmd_client/src/models/sign-multisig-response.mjs.map +1 -1
  1095. package/packages/kmd_client/src/models/sign-multisig-txn-request.d.ts +0 -1
  1096. package/packages/kmd_client/src/models/sign-multisig-txn-request.js +5 -6
  1097. package/packages/kmd_client/src/models/sign-multisig-txn-request.js.map +1 -1
  1098. package/packages/kmd_client/src/models/sign-multisig-txn-request.mjs +1 -2
  1099. package/packages/kmd_client/src/models/sign-multisig-txn-request.mjs.map +1 -1
  1100. package/packages/kmd_client/src/models/sign-program-multisig-request.d.ts +0 -1
  1101. package/packages/kmd_client/src/models/sign-program-multisig-request.js +7 -8
  1102. package/packages/kmd_client/src/models/sign-program-multisig-request.js.map +1 -1
  1103. package/packages/kmd_client/src/models/sign-program-multisig-request.mjs +1 -2
  1104. package/packages/kmd_client/src/models/sign-program-multisig-request.mjs.map +1 -1
  1105. package/packages/kmd_client/src/models/sign-program-multisig-response.js +2 -4
  1106. package/packages/kmd_client/src/models/sign-program-multisig-response.js.map +1 -1
  1107. package/packages/kmd_client/src/models/sign-program-multisig-response.mjs +1 -2
  1108. package/packages/kmd_client/src/models/sign-program-multisig-response.mjs.map +1 -1
  1109. package/packages/kmd_client/src/models/sign-program-request.d.ts +0 -1
  1110. package/packages/kmd_client/src/models/sign-program-request.js +4 -5
  1111. package/packages/kmd_client/src/models/sign-program-request.js.map +1 -1
  1112. package/packages/kmd_client/src/models/sign-program-request.mjs +1 -2
  1113. package/packages/kmd_client/src/models/sign-program-request.mjs.map +1 -1
  1114. package/packages/kmd_client/src/models/sign-program-response.js +2 -4
  1115. package/packages/kmd_client/src/models/sign-program-response.js.map +1 -1
  1116. package/packages/kmd_client/src/models/sign-program-response.mjs +1 -2
  1117. package/packages/kmd_client/src/models/sign-program-response.mjs.map +1 -1
  1118. package/packages/kmd_client/src/models/sign-transaction-response.js +2 -4
  1119. package/packages/kmd_client/src/models/sign-transaction-response.js.map +1 -1
  1120. package/packages/kmd_client/src/models/sign-transaction-response.mjs +1 -2
  1121. package/packages/kmd_client/src/models/sign-transaction-response.mjs.map +1 -1
  1122. package/packages/kmd_client/src/models/sign-txn-request.js +3 -4
  1123. package/packages/kmd_client/src/models/sign-txn-request.js.map +1 -1
  1124. package/packages/kmd_client/src/models/sign-txn-request.mjs +1 -2
  1125. package/packages/kmd_client/src/models/sign-txn-request.mjs.map +1 -1
  1126. package/packages/kmd_client/src/models/tx-type.js +2 -4
  1127. package/packages/kmd_client/src/models/tx-type.js.map +1 -1
  1128. package/packages/kmd_client/src/models/tx-type.mjs +1 -2
  1129. package/packages/kmd_client/src/models/tx-type.mjs.map +1 -1
  1130. package/packages/kmd_client/src/models/versions-response.js +2 -4
  1131. package/packages/kmd_client/src/models/versions-response.js.map +1 -1
  1132. package/packages/kmd_client/src/models/versions-response.mjs +1 -2
  1133. package/packages/kmd_client/src/models/versions-response.mjs.map +1 -1
  1134. package/packages/kmd_client/src/models/wallet-handle.d.ts +0 -1
  1135. package/packages/kmd_client/src/models/wallet-handle.js +4 -5
  1136. package/packages/kmd_client/src/models/wallet-handle.js.map +1 -1
  1137. package/packages/kmd_client/src/models/wallet-handle.mjs +1 -2
  1138. package/packages/kmd_client/src/models/wallet-handle.mjs.map +1 -1
  1139. package/packages/kmd_client/src/models/wallet-info-request.js +2 -4
  1140. package/packages/kmd_client/src/models/wallet-info-request.js.map +1 -1
  1141. package/packages/kmd_client/src/models/wallet-info-request.mjs +1 -2
  1142. package/packages/kmd_client/src/models/wallet-info-request.mjs.map +1 -1
  1143. package/packages/kmd_client/src/models/wallet-info-response.d.ts +0 -1
  1144. package/packages/kmd_client/src/models/wallet-info-response.js +3 -4
  1145. package/packages/kmd_client/src/models/wallet-info-response.js.map +1 -1
  1146. package/packages/kmd_client/src/models/wallet-info-response.mjs +1 -2
  1147. package/packages/kmd_client/src/models/wallet-info-response.mjs.map +1 -1
  1148. package/packages/kmd_client/src/models/wallet.d.ts +0 -1
  1149. package/packages/kmd_client/src/models/wallet.js +7 -8
  1150. package/packages/kmd_client/src/models/wallet.js.map +1 -1
  1151. package/packages/kmd_client/src/models/wallet.mjs +1 -2
  1152. package/packages/kmd_client/src/models/wallet.mjs.map +1 -1
  1153. package/packages/testing/src/globalSetup.js +3 -4
  1154. package/packages/testing/src/globalSetup.js.map +1 -1
  1155. package/packages/testing/src/globalSetup.mjs +1 -2
  1156. package/packages/testing/src/globalSetup.mjs.map +1 -1
  1157. package/packages/testing/src/mockServer.js +1 -2
  1158. package/packages/testing/src/mockServer.js.map +1 -1
  1159. package/packages/testing/src/mockServer.mjs +1 -1
  1160. package/packages/transact/src/logicsig.d.ts +0 -1
  1161. package/packages/transact/src/logicsig.js +8 -9
  1162. package/packages/transact/src/logicsig.js.map +1 -1
  1163. package/packages/transact/src/logicsig.mjs +1 -2
  1164. package/packages/transact/src/logicsig.mjs.map +1 -1
  1165. package/packages/transact/src/multisig.js +9 -10
  1166. package/packages/transact/src/multisig.js.map +1 -1
  1167. package/packages/transact/src/multisig.mjs +6 -7
  1168. package/packages/transact/src/multisig.mjs.map +1 -1
  1169. package/packages/transact/src/signer.js +5 -6
  1170. package/packages/transact/src/signer.js.map +1 -1
  1171. package/packages/transact/src/signer.mjs +1 -2
  1172. package/packages/transact/src/signer.mjs.map +1 -1
  1173. package/packages/transact/src/transactions/app-call.d.ts +8 -19
  1174. package/packages/transact/src/transactions/app-call.js +22 -23
  1175. package/packages/transact/src/transactions/app-call.js.map +1 -1
  1176. package/packages/transact/src/transactions/app-call.mjs +21 -22
  1177. package/packages/transact/src/transactions/app-call.mjs.map +1 -1
  1178. package/packages/transact/src/transactions/asset-config.d.ts +0 -1
  1179. package/packages/transact/src/transactions/asset-config.js +11 -12
  1180. package/packages/transact/src/transactions/asset-config.js.map +1 -1
  1181. package/packages/transact/src/transactions/asset-config.mjs +10 -11
  1182. package/packages/transact/src/transactions/asset-config.mjs.map +1 -1
  1183. package/packages/transact/src/transactions/asset-freeze.d.ts +0 -1
  1184. package/packages/transact/src/transactions/asset-freeze.js +2 -3
  1185. package/packages/transact/src/transactions/asset-freeze.js.map +1 -1
  1186. package/packages/transact/src/transactions/asset-freeze.mjs +1 -2
  1187. package/packages/transact/src/transactions/asset-freeze.mjs.map +1 -1
  1188. package/packages/transact/src/transactions/asset-transfer.d.ts +0 -1
  1189. package/packages/transact/src/transactions/asset-transfer.js +2 -3
  1190. package/packages/transact/src/transactions/asset-transfer.js.map +1 -1
  1191. package/packages/transact/src/transactions/asset-transfer.mjs +1 -2
  1192. package/packages/transact/src/transactions/asset-transfer.mjs.map +1 -1
  1193. package/packages/transact/src/transactions/common.js +1 -2
  1194. package/packages/transact/src/transactions/common.js.map +1 -1
  1195. package/packages/transact/src/transactions/common.mjs +1 -1
  1196. package/packages/transact/src/transactions/common.mjs.map +1 -1
  1197. package/packages/transact/src/transactions/heartbeat.d.ts +8 -19
  1198. package/packages/transact/src/transactions/key-registration.js +2 -3
  1199. package/packages/transact/src/transactions/key-registration.js.map +1 -1
  1200. package/packages/transact/src/transactions/key-registration.mjs +1 -2
  1201. package/packages/transact/src/transactions/key-registration.mjs.map +1 -1
  1202. package/packages/transact/src/transactions/payment.d.ts +0 -1
  1203. package/packages/transact/src/transactions/reference-types-meta.d.ts +0 -1
  1204. package/packages/transact/src/transactions/reference-types-meta.js +4 -5
  1205. package/packages/transact/src/transactions/reference-types-meta.js.map +1 -1
  1206. package/packages/transact/src/transactions/reference-types-meta.mjs +1 -2
  1207. package/packages/transact/src/transactions/reference-types-meta.mjs.map +1 -1
  1208. package/packages/transact/src/transactions/signed-transaction-meta.d.ts +0 -1
  1209. package/packages/transact/src/transactions/signed-transaction-meta.js +8 -9
  1210. package/packages/transact/src/transactions/signed-transaction-meta.js.map +1 -1
  1211. package/packages/transact/src/transactions/signed-transaction-meta.mjs +1 -2
  1212. package/packages/transact/src/transactions/signed-transaction-meta.mjs.map +1 -1
  1213. package/packages/transact/src/transactions/signed-transaction.d.ts +0 -1
  1214. package/packages/transact/src/transactions/signed-transaction.js +5 -6
  1215. package/packages/transact/src/transactions/signed-transaction.js.map +1 -1
  1216. package/packages/transact/src/transactions/signed-transaction.mjs +1 -2
  1217. package/packages/transact/src/transactions/signed-transaction.mjs.map +1 -1
  1218. package/packages/transact/src/transactions/state-proof.d.ts +2 -5
  1219. package/packages/transact/src/transactions/transaction-meta.d.ts +0 -1
  1220. package/packages/transact/src/transactions/transaction-meta.js +15 -16
  1221. package/packages/transact/src/transactions/transaction-meta.js.map +1 -1
  1222. package/packages/transact/src/transactions/transaction-meta.mjs +1 -2
  1223. package/packages/transact/src/transactions/transaction-meta.mjs.map +1 -1
  1224. package/packages/transact/src/transactions/transaction-type.d.ts +1 -1
  1225. package/packages/transact/src/transactions/transaction-type.js +1 -2
  1226. package/packages/transact/src/transactions/transaction-type.js.map +1 -1
  1227. package/packages/transact/src/transactions/transaction-type.mjs +1 -1
  1228. package/packages/transact/src/transactions/transaction-type.mjs.map +1 -1
  1229. package/packages/transact/src/transactions/transaction.js +22 -23
  1230. package/packages/transact/src/transactions/transaction.js.map +1 -1
  1231. package/packages/transact/src/transactions/transaction.mjs +8 -9
  1232. package/packages/transact/src/transactions/transaction.mjs.map +1 -1
  1233. package/testing/account.d.ts +0 -1
  1234. package/testing/account.js +4 -5
  1235. package/testing/account.js.map +1 -1
  1236. package/testing/account.mjs +1 -2
  1237. package/testing/account.mjs.map +1 -1
  1238. package/testing/fixtures/algokit-log-capture-fixture.d.ts +0 -1
  1239. package/testing/fixtures/algokit-log-capture-fixture.js +3 -4
  1240. package/testing/fixtures/algokit-log-capture-fixture.js.map +1 -1
  1241. package/testing/fixtures/algokit-log-capture-fixture.mjs +1 -2
  1242. package/testing/fixtures/algokit-log-capture-fixture.mjs.map +1 -1
  1243. package/testing/fixtures/algorand-fixture.d.ts +0 -1
  1244. package/testing/fixtures/algorand-fixture.js +8 -9
  1245. package/testing/fixtures/algorand-fixture.js.map +1 -1
  1246. package/testing/fixtures/algorand-fixture.mjs +1 -2
  1247. package/testing/fixtures/algorand-fixture.mjs.map +1 -1
  1248. package/testing/index.js +10 -11
  1249. package/testing/index.mjs +1 -2
  1250. package/testing/indexer.js +1 -2
  1251. package/testing/indexer.js.map +1 -1
  1252. package/testing/indexer.mjs +1 -1
  1253. package/testing/test-logger.d.ts +0 -1
  1254. package/testing/test-logger.js +2 -3
  1255. package/testing/test-logger.js.map +1 -1
  1256. package/testing/test-logger.mjs +1 -2
  1257. package/testing/test-logger.mjs.map +1 -1
  1258. package/testing/transaction-logger.d.ts +0 -1
  1259. package/testing/transaction-logger.js +4 -5
  1260. package/testing/transaction-logger.js.map +1 -1
  1261. package/testing/transaction-logger.mjs +1 -2
  1262. package/testing/transaction-logger.mjs.map +1 -1
  1263. package/transact/index.js +12 -13
  1264. package/transact/index.mjs +1 -2
  1265. package/transaction/index.js +4 -5
  1266. package/transaction/index.mjs +1 -2
  1267. package/transaction/perform-transaction-composer-simulate.d.ts +0 -1
  1268. package/transaction/perform-transaction-composer-simulate.js +3 -5
  1269. package/transaction/perform-transaction-composer-simulate.js.map +1 -1
  1270. package/transaction/perform-transaction-composer-simulate.mjs +3 -4
  1271. package/transaction/perform-transaction-composer-simulate.mjs.map +1 -1
  1272. package/transaction/transaction.js +2 -3
  1273. package/transaction/transaction.js.map +1 -1
  1274. package/transaction/transaction.mjs +1 -2
  1275. package/transaction/transaction.mjs.map +1 -1
  1276. package/transactions/app-call.d.ts +15 -32
  1277. package/transactions/app-call.js +17 -18
  1278. package/transactions/app-call.js.map +1 -1
  1279. package/transactions/app-call.mjs +10 -11
  1280. package/transactions/app-call.mjs.map +1 -1
  1281. package/transactions/asset-config.d.ts +4 -10
  1282. package/transactions/asset-config.js +5 -6
  1283. package/transactions/asset-config.js.map +1 -1
  1284. package/transactions/asset-config.mjs +1 -2
  1285. package/transactions/asset-config.mjs.map +1 -1
  1286. package/transactions/asset-transfer.d.ts +4 -10
  1287. package/transactions/asset-transfer.js +5 -6
  1288. package/transactions/asset-transfer.js.map +1 -1
  1289. package/transactions/asset-transfer.mjs +1 -2
  1290. package/transactions/asset-transfer.mjs.map +1 -1
  1291. package/transactions/common.d.ts +7 -14
  1292. package/transactions/common.js +3 -4
  1293. package/transactions/common.js.map +1 -1
  1294. package/transactions/common.mjs +1 -2
  1295. package/transactions/common.mjs.map +1 -1
  1296. package/transactions/fee-coverage.js +1 -2
  1297. package/transactions/fee-coverage.js.map +1 -1
  1298. package/transactions/fee-coverage.mjs +1 -1
  1299. package/transactions/fee-coverage.mjs.map +1 -1
  1300. package/transactions/key-registration.d.ts +6 -14
  1301. package/transactions/key-registration.js +4 -5
  1302. package/transactions/key-registration.js.map +1 -1
  1303. package/transactions/key-registration.mjs +1 -2
  1304. package/transactions/key-registration.mjs.map +1 -1
  1305. package/transactions/method-call.d.ts +1 -3
  1306. package/transactions/method-call.js +11 -14
  1307. package/transactions/method-call.js.map +1 -1
  1308. package/transactions/method-call.mjs +2 -5
  1309. package/transactions/method-call.mjs.map +1 -1
  1310. package/transactions/payment.d.ts +1 -4
  1311. package/transactions/payment.js +5 -6
  1312. package/transactions/payment.js.map +1 -1
  1313. package/transactions/payment.mjs +1 -2
  1314. package/transactions/payment.mjs.map +1 -1
  1315. package/types/account-manager.js +3 -4
  1316. package/types/account-manager.js.map +1 -1
  1317. package/types/account-manager.mjs +1 -2
  1318. package/types/account-manager.mjs.map +1 -1
  1319. package/types/account.js +3 -5
  1320. package/types/account.js.map +1 -1
  1321. package/types/account.mjs +1 -2
  1322. package/types/account.mjs.map +1 -1
  1323. package/types/algorand-client-transaction-creator.js +3 -5
  1324. package/types/algorand-client-transaction-creator.js.map +1 -1
  1325. package/types/algorand-client-transaction-creator.mjs +1 -2
  1326. package/types/algorand-client-transaction-creator.mjs.map +1 -1
  1327. package/types/algorand-client-transaction-sender.js +3 -5
  1328. package/types/algorand-client-transaction-sender.js.map +1 -1
  1329. package/types/algorand-client-transaction-sender.mjs +1 -2
  1330. package/types/algorand-client-transaction-sender.mjs.map +1 -1
  1331. package/types/algorand-client.js +3 -5
  1332. package/types/algorand-client.js.map +1 -1
  1333. package/types/algorand-client.mjs +1 -2
  1334. package/types/algorand-client.mjs.map +1 -1
  1335. package/types/amount.js +3 -5
  1336. package/types/amount.js.map +1 -1
  1337. package/types/amount.mjs +1 -2
  1338. package/types/amount.mjs.map +1 -1
  1339. package/types/app-client.js +3 -5
  1340. package/types/app-client.js.map +1 -1
  1341. package/types/app-client.mjs +1 -2
  1342. package/types/app-client.mjs.map +1 -1
  1343. package/types/app-deployer.js +3 -5
  1344. package/types/app-deployer.js.map +1 -1
  1345. package/types/app-deployer.mjs +1 -2
  1346. package/types/app-deployer.mjs.map +1 -1
  1347. package/types/app-factory.js +3 -5
  1348. package/types/app-factory.js.map +1 -1
  1349. package/types/app-factory.mjs +1 -2
  1350. package/types/app-factory.mjs.map +1 -1
  1351. package/types/app-manager.js +3 -5
  1352. package/types/app-manager.js.map +1 -1
  1353. package/types/app-manager.mjs +1 -2
  1354. package/types/app-manager.mjs.map +1 -1
  1355. package/types/app-spec.js +3 -5
  1356. package/types/app-spec.js.map +1 -1
  1357. package/types/app-spec.mjs +1 -2
  1358. package/types/app-spec.mjs.map +1 -1
  1359. package/types/app.js +3 -4
  1360. package/types/app.js.map +1 -1
  1361. package/types/app.mjs +1 -2
  1362. package/types/app.mjs.map +1 -1
  1363. package/types/asset-manager.js +3 -5
  1364. package/types/asset-manager.js.map +1 -1
  1365. package/types/asset-manager.mjs +1 -2
  1366. package/types/asset-manager.mjs.map +1 -1
  1367. package/types/async-event-emitter.js +3 -5
  1368. package/types/async-event-emitter.js.map +1 -1
  1369. package/types/async-event-emitter.mjs +1 -2
  1370. package/types/async-event-emitter.mjs.map +1 -1
  1371. package/types/client-manager.js +3 -5
  1372. package/types/client-manager.js.map +1 -1
  1373. package/types/client-manager.mjs +1 -2
  1374. package/types/client-manager.mjs.map +1 -1
  1375. package/types/composer.js +3 -5
  1376. package/types/composer.js.map +1 -1
  1377. package/types/composer.mjs +1 -2
  1378. package/types/composer.mjs.map +1 -1
  1379. package/types/config.js +3 -5
  1380. package/types/config.js.map +1 -1
  1381. package/types/config.mjs +1 -2
  1382. package/types/config.mjs.map +1 -1
  1383. package/types/debugging.js +4 -5
  1384. package/types/debugging.js.map +1 -1
  1385. package/types/debugging.mjs +3 -4
  1386. package/types/debugging.mjs.map +1 -1
  1387. package/types/dispenser-client.js +3 -5
  1388. package/types/dispenser-client.js.map +1 -1
  1389. package/types/dispenser-client.mjs +1 -2
  1390. package/types/dispenser-client.mjs.map +1 -1
  1391. package/types/indexer.js +3 -4
  1392. package/types/indexer.js.map +1 -1
  1393. package/types/indexer.mjs +1 -2
  1394. package/types/indexer.mjs.map +1 -1
  1395. package/types/kmd-account-manager.js +3 -5
  1396. package/types/kmd-account-manager.js.map +1 -1
  1397. package/types/kmd-account-manager.mjs +1 -2
  1398. package/types/kmd-account-manager.mjs.map +1 -1
  1399. package/types/lifecycle-events.js +3 -5
  1400. package/types/lifecycle-events.js.map +1 -1
  1401. package/types/lifecycle-events.mjs +1 -2
  1402. package/types/lifecycle-events.mjs.map +1 -1
  1403. package/types/logging.js +3 -4
  1404. package/types/logging.js.map +1 -1
  1405. package/types/logging.mjs +1 -2
  1406. package/types/logging.mjs.map +1 -1
  1407. package/types/logic-error.js +3 -5
  1408. package/types/logic-error.js.map +1 -1
  1409. package/types/logic-error.mjs +1 -2
  1410. package/types/logic-error.mjs.map +1 -1
  1411. package/types/network-client.js +3 -5
  1412. package/types/network-client.js.map +1 -1
  1413. package/types/network-client.mjs +1 -2
  1414. package/types/network-client.mjs.map +1 -1
  1415. package/updatable-config.js +3 -4
  1416. package/updatable-config.js.map +1 -1
  1417. package/updatable-config.mjs +1 -2
  1418. package/updatable-config.mjs.map +1 -1
  1419. package/util.js +2 -3
  1420. package/util.js.map +1 -1
  1421. package/util.mjs +1 -2
  1422. package/util.mjs.map +1 -1
package/account.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"account.js","names":[],"sources":["../src/account.ts"],"sourcesContent":["import {\n AccountParticipation,\n Application,\n ApplicationLocalState,\n ApplicationStateSchema,\n Asset,\n AssetHolding,\n} from '@algorandfoundation/algokit-algod-client'\nimport { Address } from '@algorandfoundation/algokit-common'\nimport { AddressWithTransactionSigner } from '@algorandfoundation/algokit-transact'\nimport { AlgoAmount } from './amount'\n\n/**\n * The account name identifier used for fund dispensing in test environments\n */\nexport const DISPENSER_ACCOUNT = 'DISPENSER'\n\n/** @deprecated Use AddressWithSigner */\nexport type TransactionSignerAccount = AddressWithTransactionSigner\n\n/** Account information at a given round. */\nexport type AccountInformation = {\n /**\n * The account public key\n */\n address: Address\n\n /** The balance of Algo currently held by the account. */\n balance: AlgoAmount\n\n /**\n * The amount of Algo in the account, without the pending rewards.\n */\n amountWithoutPendingRewards: AlgoAmount\n\n /**\n * Algo balance required to be held by the account.\n *\n * The requirement grows based on asset and application usage.\n */\n minBalance: AlgoAmount\n /**\n * Amount of Algo of pending rewards in this account.\n */\n pendingRewards: AlgoAmount\n\n /**\n * Total rewards of Algo the account has received, including pending\n * rewards.\n */\n rewards: AlgoAmount\n\n /**\n * The round number for which this information is relevant.\n */\n validAsOfRound: bigint\n\n /**\n * Delegation status of the account's Algo:\n * * Offline - indicates that the associated account is delegated.\n * * Online - indicates that the associated account used as part of the delegation pool.\n * * NotParticipating - indicates that the associated account is neither a delegator nor a delegate.\n */\n status: string\n\n /**\n * The count of all applications that have been opted in, equivalent to the count\n * of application local data (AppLocalState objects) stored in this account.\n */\n totalAppsOptedIn: number\n\n /**\n * The count of all assets that have been opted in, equivalent to the count of\n * AssetHolding objects held by this account.\n */\n totalAssetsOptedIn: number\n\n /**\n * The count of all apps (AppParams objects) created by this account.\n */\n totalCreatedApps: number\n\n /**\n * The count of all assets (AssetParams objects) created by this account.\n */\n totalCreatedAssets: number\n\n /**\n * Applications local data stored in this account.\n */\n appsLocalState?: ApplicationLocalState[]\n\n /**\n * The sum of all extra application program pages for this account.\n */\n appsTotalExtraPages?: number\n /**\n * (tsch) stores the sum of all of the local schemas and global schemas in this\n * account.\n * Note: the raw account uses `StateSchema` for this type.\n */\n appsTotalSchema?: ApplicationStateSchema\n\n /**\n * Assets held by this account.\n */\n assets?: AssetHolding[]\n\n /**\n * The address against which signing should be checked. If empty, the\n * address of the current account is used. This field can be updated in any\n * transaction by setting the `RekeyTo` field.\n */\n authAddr?: Address\n\n /**\n * Parameters of applications created by this account including app global data.\n */\n createdApps?: Application[]\n\n /**\n * (apar) parameters of assets created by this account.\n * Note: the raw account uses `map[int] -> Asset` for this type.\n */\n createdAssets?: Asset[]\n\n /**\n * AccountParticipation describes the parameters used by this account in consensus\n * protocol.\n */\n participation?: AccountParticipation\n\n /**\n * Used as part of the rewards computation. Only applicable to accounts\n * which are participating.\n */\n rewardBase?: number\n\n /**\n * Indicates what type of signature is used by this account, must be one of:\n * * sig\n * * msig\n * * lsig\n */\n sigType?: string\n\n /**\n * The total number of bytes used by this account's app's box keys and\n * values.\n */\n totalBoxBytes?: number\n\n /**\n * The number of existing boxes created by this account's app.\n */\n totalBoxes?: number\n\n /**\n * The round in which this account last went online, or explicitly renewed their\n * online status.\n */\n lastHeartbeatRound?: bigint\n\n /**\n * The round in which this account last proposed the block.\n */\n lastProposedRound?: bigint\n}\n\n/** Account asset holding information at a given round. */\nexport type AccountAssetInformation = {\n /** The ID of the asset held. */\n assetId: bigint\n /** The current balance of that asset holding. */\n balance: bigint\n /** Whether or not the asset is frozen for the account. */\n frozen: boolean\n /** The round as at which the holding was correct. */\n round: bigint\n}\n"],"mappings":";;;;;;AAeA,MAAa,oBAAoB"}
1
+ {"version":3,"file":"account.js","names":[],"sources":["../src/account.ts"],"sourcesContent":["import {\n AccountParticipation,\n Application,\n ApplicationLocalState,\n ApplicationStateSchema,\n Asset,\n AssetHolding,\n} from '@algorandfoundation/algokit-algod-client'\nimport { Address } from '@algorandfoundation/algokit-common'\nimport { AddressWithTransactionSigner } from '@algorandfoundation/algokit-transact'\nimport { AlgoAmount } from './amount'\n\n/**\n * The account name identifier used for fund dispensing in test environments\n */\nexport const DISPENSER_ACCOUNT = 'DISPENSER'\n\n/** @deprecated Use AddressWithSigner */\nexport type TransactionSignerAccount = AddressWithTransactionSigner\n\n/** Account information at a given round. */\nexport type AccountInformation = {\n /**\n * The account public key\n */\n address: Address\n\n /** The balance of Algo currently held by the account. */\n balance: AlgoAmount\n\n /**\n * The amount of Algo in the account, without the pending rewards.\n */\n amountWithoutPendingRewards: AlgoAmount\n\n /**\n * Algo balance required to be held by the account.\n *\n * The requirement grows based on asset and application usage.\n */\n minBalance: AlgoAmount\n /**\n * Amount of Algo of pending rewards in this account.\n */\n pendingRewards: AlgoAmount\n\n /**\n * Total rewards of Algo the account has received, including pending\n * rewards.\n */\n rewards: AlgoAmount\n\n /**\n * The round number for which this information is relevant.\n */\n validAsOfRound: bigint\n\n /**\n * Delegation status of the account's Algo:\n * * Offline - indicates that the associated account is delegated.\n * * Online - indicates that the associated account used as part of the delegation pool.\n * * NotParticipating - indicates that the associated account is neither a delegator nor a delegate.\n */\n status: string\n\n /**\n * The count of all applications that have been opted in, equivalent to the count\n * of application local data (AppLocalState objects) stored in this account.\n */\n totalAppsOptedIn: number\n\n /**\n * The count of all assets that have been opted in, equivalent to the count of\n * AssetHolding objects held by this account.\n */\n totalAssetsOptedIn: number\n\n /**\n * The count of all apps (AppParams objects) created by this account.\n */\n totalCreatedApps: number\n\n /**\n * The count of all assets (AssetParams objects) created by this account.\n */\n totalCreatedAssets: number\n\n /**\n * Applications local data stored in this account.\n */\n appsLocalState?: ApplicationLocalState[]\n\n /**\n * The sum of all extra application program pages for this account.\n */\n appsTotalExtraPages?: number\n /**\n * (tsch) stores the sum of all of the local schemas and global schemas in this\n * account.\n * Note: the raw account uses `StateSchema` for this type.\n */\n appsTotalSchema?: ApplicationStateSchema\n\n /**\n * Assets held by this account.\n */\n assets?: AssetHolding[]\n\n /**\n * The address against which signing should be checked. If empty, the\n * address of the current account is used. This field can be updated in any\n * transaction by setting the `RekeyTo` field.\n */\n authAddr?: Address\n\n /**\n * Parameters of applications created by this account including app global data.\n */\n createdApps?: Application[]\n\n /**\n * (apar) parameters of assets created by this account.\n * Note: the raw account uses `map[int] -> Asset` for this type.\n */\n createdAssets?: Asset[]\n\n /**\n * AccountParticipation describes the parameters used by this account in consensus\n * protocol.\n */\n participation?: AccountParticipation\n\n /**\n * Used as part of the rewards computation. Only applicable to accounts\n * which are participating.\n */\n rewardBase?: number\n\n /**\n * Indicates what type of signature is used by this account, must be one of:\n * * sig\n * * msig\n * * lsig\n */\n sigType?: string\n\n /**\n * The total number of bytes used by this account's app's box keys and\n * values.\n */\n totalBoxBytes?: number\n\n /**\n * The number of existing boxes created by this account's app.\n */\n totalBoxes?: number\n\n /**\n * The round in which this account last went online, or explicitly renewed their\n * online status.\n */\n lastHeartbeatRound?: bigint\n\n /**\n * The round in which this account last proposed the block.\n */\n lastProposedRound?: bigint\n}\n\n/** Account asset holding information at a given round. */\nexport type AccountAssetInformation = {\n /** The ID of the asset held. */\n assetId: bigint\n /** The current balance of that asset holding. */\n balance: bigint\n /** Whether or not the asset is frozen for the account. */\n frozen: boolean\n /** The round as at which the holding was correct. */\n round: bigint\n}\n"],"mappings":";;;;;AAeA,MAAa,oBAAoB"}
package/account.mjs CHANGED
@@ -3,7 +3,7 @@
3
3
  * The account name identifier used for fund dispensing in test environments
4
4
  */
5
5
  const DISPENSER_ACCOUNT = "DISPENSER";
6
-
7
6
  //#endregion
8
7
  export { DISPENSER_ACCOUNT };
8
+
9
9
  //# sourceMappingURL=account.mjs.map
package/algo25/index.js CHANGED
@@ -1,10 +1,9 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_index = require('../packages/algo25/src/index.js');
3
-
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_index = require("../packages/algo25/src/index.js");
4
3
  exports.FAIL_TO_DECODE_MNEMONIC_ERROR_MSG = require_index.FAIL_TO_DECODE_MNEMONIC_ERROR_MSG;
5
4
  exports.NOT_IN_WORDS_LIST_ERROR_MSG = require_index.NOT_IN_WORDS_LIST_ERROR_MSG;
6
5
  exports.masterDerivationKeyToMnemonic = require_index.masterDerivationKeyToMnemonic;
7
6
  exports.mnemonicFromSeed = require_index.mnemonicFromSeed;
8
7
  exports.mnemonicToMasterDerivationKey = require_index.mnemonicToMasterDerivationKey;
9
8
  exports.secretKeyToMnemonic = require_index.secretKeyToMnemonic;
10
- exports.seedFromMnemonic = require_index.seedFromMnemonic;
9
+ exports.seedFromMnemonic = require_index.seedFromMnemonic;
package/algo25/index.mjs CHANGED
@@ -1,3 +1,2 @@
1
1
  import { FAIL_TO_DECODE_MNEMONIC_ERROR_MSG, NOT_IN_WORDS_LIST_ERROR_MSG, masterDerivationKeyToMnemonic, mnemonicFromSeed, mnemonicToMasterDerivationKey, secretKeyToMnemonic, seedFromMnemonic } from "../packages/algo25/src/index.mjs";
2
-
3
- export { FAIL_TO_DECODE_MNEMONIC_ERROR_MSG, NOT_IN_WORDS_LIST_ERROR_MSG, masterDerivationKeyToMnemonic, mnemonicFromSeed, mnemonicToMasterDerivationKey, secretKeyToMnemonic, seedFromMnemonic };
2
+ export { FAIL_TO_DECODE_MNEMONIC_ERROR_MSG, NOT_IN_WORDS_LIST_ERROR_MSG, masterDerivationKeyToMnemonic, mnemonicFromSeed, mnemonicToMasterDerivationKey, secretKeyToMnemonic, seedFromMnemonic };
@@ -1,11 +1,10 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_base_http_request = require('../packages/algod_client/src/core/base-http-request.js');
3
- const require_api_error = require('../packages/algod_client/src/core/api-error.js');
4
- const require_fetch_http_request = require('../packages/algod_client/src/core/fetch-http-request.js');
5
- const require_simulate_response = require('../packages/algod_client/src/models/simulate-response.js');
6
- const require_api_service = require('../packages/algod_client/src/apis/api-service.js');
7
- const require_client = require('../packages/algod_client/src/client.js');
8
-
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_base_http_request = require("../packages/algod_client/src/core/base-http-request.js");
3
+ const require_api_error = require("../packages/algod_client/src/core/api-error.js");
4
+ const require_fetch_http_request = require("../packages/algod_client/src/core/fetch-http-request.js");
5
+ const require_simulate_response = require("../packages/algod_client/src/models/simulate-response.js");
6
+ const require_api_service = require("../packages/algod_client/src/apis/api-service.js");
7
+ const require_client = require("../packages/algod_client/src/client.js");
9
8
  exports.AlgodApi = require_api_service.AlgodApi;
10
9
  exports.AlgodClient = require_client.AlgodClient;
11
10
  exports.ApiError = require_api_error.ApiError;
@@ -13,4 +12,4 @@ exports.BaseHttpRequest = require_base_http_request.BaseHttpRequest;
13
12
  exports.FetchHttpRequest = require_fetch_http_request.FetchHttpRequest;
14
13
  exports.decodeSimulateResponseFromJson = require_simulate_response.decodeSimulateResponseFromJson;
15
14
  exports.encodeSimulateResponseToJson = require_simulate_response.encodeSimulateResponseToJson;
16
- exports.inputValueAsString = require_base_http_request.inputValueAsString;
15
+ exports.inputValueAsString = require_base_http_request.inputValueAsString;
@@ -4,5 +4,4 @@ import { FetchHttpRequest } from "../packages/algod_client/src/core/fetch-http-r
4
4
  import { decodeSimulateResponseFromJson, encodeSimulateResponseToJson } from "../packages/algod_client/src/models/simulate-response.mjs";
5
5
  import { AlgodApi } from "../packages/algod_client/src/apis/api-service.mjs";
6
6
  import { AlgodClient } from "../packages/algod_client/src/client.mjs";
7
-
8
- export { AlgodApi, AlgodClient, ApiError, BaseHttpRequest, FetchHttpRequest, decodeSimulateResponseFromJson, encodeSimulateResponseToJson, inputValueAsString };
7
+ export { AlgodApi, AlgodClient, ApiError, BaseHttpRequest, FetchHttpRequest, decodeSimulateResponseFromJson, encodeSimulateResponseToJson, inputValueAsString };
@@ -569,6 +569,7 @@ declare class AlgorandClientTransactionCreator {
569
569
  */
570
570
  appCreateMethodCall: (params: {
571
571
  signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
572
+ appId?: 0 | undefined;
572
573
  sender: SendingAddress;
573
574
  rekeyTo?: ReadableAddress | undefined;
574
575
  note?: (Uint8Array | string) | undefined;
@@ -579,7 +580,6 @@ declare class AlgorandClientTransactionCreator {
579
580
  validityWindow?: number | bigint | undefined;
580
581
  firstValidRound?: bigint | undefined;
581
582
  lastValidRound?: bigint | undefined;
582
- appId?: 0 | undefined;
583
583
  onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
584
584
  accountReferences?: ReadableAddress[] | undefined;
585
585
  appReferences?: bigint[] | undefined;
@@ -650,6 +650,7 @@ declare class AlgorandClientTransactionCreator {
650
650
  */
651
651
  appUpdateMethodCall: (params: {
652
652
  signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
653
+ appId: bigint;
653
654
  sender: SendingAddress;
654
655
  rekeyTo?: ReadableAddress | undefined;
655
656
  note?: (Uint8Array | string) | undefined;
@@ -660,7 +661,6 @@ declare class AlgorandClientTransactionCreator {
660
661
  validityWindow?: number | bigint | undefined;
661
662
  firstValidRound?: bigint | undefined;
662
663
  lastValidRound?: bigint | undefined;
663
- appId: bigint;
664
664
  onComplete?: OnApplicationComplete.UpdateApplication | undefined;
665
665
  accountReferences?: ReadableAddress[] | undefined;
666
666
  appReferences?: bigint[] | undefined;
@@ -722,6 +722,7 @@ declare class AlgorandClientTransactionCreator {
722
722
  */
723
723
  appDeleteMethodCall: (params: {
724
724
  signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
725
+ appId: bigint;
725
726
  sender: SendingAddress;
726
727
  rekeyTo?: ReadableAddress | undefined;
727
728
  note?: (Uint8Array | string) | undefined;
@@ -732,7 +733,6 @@ declare class AlgorandClientTransactionCreator {
732
733
  validityWindow?: number | bigint | undefined;
733
734
  firstValidRound?: bigint | undefined;
734
735
  lastValidRound?: bigint | undefined;
735
- appId: bigint;
736
736
  onComplete?: OnApplicationComplete.DeleteApplication | undefined;
737
737
  accountReferences?: ReadableAddress[] | undefined;
738
738
  appReferences?: bigint[] | undefined;
@@ -792,6 +792,7 @@ declare class AlgorandClientTransactionCreator {
792
792
  */
793
793
  appCallMethodCall: (params: {
794
794
  signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
795
+ appId: bigint;
795
796
  sender: SendingAddress;
796
797
  rekeyTo?: ReadableAddress | undefined;
797
798
  note?: (Uint8Array | string) | undefined;
@@ -802,7 +803,6 @@ declare class AlgorandClientTransactionCreator {
802
803
  validityWindow?: number | bigint | undefined;
803
804
  firstValidRound?: bigint | undefined;
804
805
  lastValidRound?: bigint | undefined;
805
- appId: bigint;
806
806
  onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.DeleteApplication | undefined;
807
807
  accountReferences?: ReadableAddress[] | undefined;
808
808
  appReferences?: bigint[] | undefined;
@@ -1,5 +1,4 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
-
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
2
  //#region src/algorand-client-transaction-creator.ts
4
3
  /** Orchestrates creating transactions for `AlgorandClient`. */
5
4
  var AlgorandClientTransactionCreator = class {
@@ -730,7 +729,7 @@ var AlgorandClientTransactionCreator = class {
730
729
  */
731
730
  offlineKeyRegistration = this._transaction((c) => c.addOfflineKeyRegistration);
732
731
  };
733
-
734
732
  //#endregion
735
733
  exports.AlgorandClientTransactionCreator = AlgorandClientTransactionCreator;
734
+
736
735
  //# sourceMappingURL=algorand-client-transaction-creator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"algorand-client-transaction-creator.js","names":[],"sources":["../src/algorand-client-transaction-creator.ts"],"sourcesContent":["import { Expand } from '@algorandfoundation/algokit-common'\nimport { Transaction } from '@algorandfoundation/algokit-transact'\nimport { BuiltTransactions, TransactionComposer, TransactionComposerConfig } from './composer'\n\n/** Orchestrates creating transactions for `AlgorandClient`. */\nexport class AlgorandClientTransactionCreator {\n private _newGroup: () => TransactionComposer\n\n /**\n * Creates a new `AlgorandClientTransactionCreator`\n * @param newGroup A lambda that starts a new `TransactionComposer` transaction group\n * @example\n * ```typescript\n * const transactionCreator = new AlgorandClientTransactionCreator(() => new TransactionComposer())\n * ```\n */\n constructor(newGroup: (config?: TransactionComposerConfig) => TransactionComposer) {\n this._newGroup = newGroup\n }\n\n private _transaction<T>(c: (c: TransactionComposer) => (params: T) => TransactionComposer): (params: T) => Promise<Transaction> {\n return async (params: T) => {\n const composer = this._newGroup()\n const result = await c(composer).apply(composer, [params]).buildTransactions()\n return result.transactions.at(-1)!\n }\n }\n\n private _transactions<T>(\n c: (c: TransactionComposer) => (params: T) => TransactionComposer,\n ): (params: T) => Promise<Expand<BuiltTransactions>> {\n return async (params: T) => {\n const composer = this._newGroup()\n return await c(composer).apply(composer, [params]).buildTransactions()\n }\n }\n\n /**\n * Create a payment transaction to transfer Algo between accounts.\n * @param params The parameters for the payment transaction\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.payment({\n * sender: 'SENDERADDRESS',\n * receiver: 'RECEIVERADDRESS',\n * amount: (4).algo(),\n * })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.payment({\n * amount: (4).algo(),\n * receiver: 'RECEIVERADDRESS',\n * sender: 'SENDERADDRESS',\n * closeRemainderTo: 'CLOSEREMAINDERTOADDRESS',\n * lease: 'lease',\n * note: 'note',\n * // Use this with caution, it's generally better to use algorand.account.rekeyAccount\n * rekeyTo: 'REKEYTOADDRESS',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * })\n * ```\n * @returns The payment transaction\n */\n payment = this._transaction((c) => c.addPayment)\n /** Create a create Algorand Standard Asset transaction.\n *\n * The account that sends this transaction will automatically be\n * opted in to the asset and will hold all units after creation.\n *\n * @param params The parameters for the asset creation transaction\n *\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.assetCreate({ sender: \"CREATORADDRESS\", total: 100n})\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.assetCreate({\n * sender: 'CREATORADDRESS',\n * total: 100n,\n * decimals: 2,\n * assetName: 'asset',\n * unitName: 'unit',\n * url: 'url',\n * metadataHash: 'metadataHash',\n * defaultFrozen: false,\n * manager: 'MANAGERADDRESS',\n * reserve: 'RESERVEADDRESS',\n * freeze: 'FREEZEADDRESS',\n * clawback: 'CLAWBACKADDRESS',\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * })\n * ```\n * @returns The asset create transaction\n */\n assetCreate = this._transaction((c) => c.addAssetCreate)\n /** Create an asset config transaction to reconfigure an existing Algorand Standard Asset.\n *\n * **Note:** The manager, reserve, freeze, and clawback addresses\n * are immutably empty if they are not set. If manager is not set then\n * all fields are immutable from that point forward.\n *\n * @param params The parameters for the asset config transaction\n *\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.assetConfig({ sender: \"MANAGERADDRESS\", assetId: 123456n, manager: \"MANAGERADDRESS\" })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.assetConfig({\n * sender: 'MANAGERADDRESS',\n * assetId: 123456n,\n * manager: 'MANAGERADDRESS',\n * reserve: 'RESERVEADDRESS',\n * freeze: 'FREEZEADDRESS',\n * clawback: 'CLAWBACKADDRESS',\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * })\n * ```\n * @returns The asset config transaction\n */\n assetConfig = this._transaction((c) => c.addAssetConfig)\n /** Create an Algorand Standard Asset freeze transaction.\n *\n * @param params The parameters for the asset freeze transaction\n *\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.assetFreeze({ sender: \"MANAGERADDRESS\", assetId: 123456n, account: \"ACCOUNTADDRESS\", frozen: true })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.assetFreeze({\n * sender: 'MANAGERADDRESS',\n * assetId: 123456n,\n * account: 'ACCOUNTADDRESS',\n * frozen: true,\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * })\n * ```\n * @returns The asset freeze transaction\n */\n assetFreeze = this._transaction((c) => c.addAssetFreeze)\n /** Create an Algorand Standard Asset destroy transaction.\n *\n * Created assets can be destroyed only by the asset manager account.\n * All of the assets must be owned by the creator of the asset before\n * the asset can be deleted.\n *\n * @param params The parameters for the asset destroy transaction\n *\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.assetDestroy({ sender: \"MANAGERADDRESS\", assetId: 123456n })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.assetDestroy({\n * sender: 'MANAGERADDRESS',\n * assetId: 123456n,\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * })\n * ```\n * @returns The asset destroy transaction\n */\n assetDestroy = this._transaction((c) => c.addAssetDestroy)\n /** Create an Algorand Standard Asset transfer transaction.\n *\n * @param params The parameters for the asset transfer transaction\n *\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.assetTransfer({ sender: \"HOLDERADDRESS\", assetId: 123456n, amount: 1n, receiver: \"RECEIVERADDRESS\" })\n * ```\n * @example Advanced example (with clawback)\n * ```typescript\n * await algorand.createTransaction.assetTransfer({\n * sender: 'CLAWBACKADDRESS',\n * assetId: 123456n,\n * amount: 1n,\n * receiver: 'RECEIVERADDRESS',\n * clawbackTarget: 'HOLDERADDRESS',\n * // This field needs to be used with caution\n * closeAssetTo: 'ADDRESSTOCLOSETO'\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * })\n * ```\n * @returns The result of the asset transfer transaction\n */\n assetTransfer = this._transaction((c) => c.addAssetTransfer)\n /** Create an Algorand Standard Asset opt-in transaction.\n *\n * @param params The parameters for the asset opt-in transaction\n *\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.assetOptIn({ sender: \"SENDERADDRESS\", assetId: 123456n })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.assetOptIn({\n * sender: 'SENDERADDRESS',\n * assetId: 123456n,\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * })\n * ```\n * @returns The asset opt-in transaction\n */\n assetOptIn = this._transaction((c) => c.addAssetOptIn)\n /** Create an asset opt-out transaction.\n *\n * *Note:* If the account has a balance of the asset,\n * it will lose those assets\n *\n * @param params The parameters for the asset opt-out transaction\n *\n * @example Basic example (without creator, will be retrieved from algod)\n * ```typescript\n * await algorand.createTransaction.assetOptOut({ sender: \"SENDERADDRESS\", assetId: 123456n, ensureZeroBalance: true })\n * ```\n * @example Basic example (with creator)\n * ```typescript\n * await algorand.createTransaction.assetOptOut({ sender: \"SENDERADDRESS\", creator: \"CREATORADDRESS\", assetId: 123456n, ensureZeroBalance: true })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.assetOptOut({\n * sender: 'SENDERADDRESS',\n * assetId: 123456n,\n * creator: 'CREATORADDRESS',\n * ensureZeroBalance: true,\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * })\n * ```\n * @returns The asset opt-out transaction\n */\n assetOptOut = this._transaction((c) => c.addAssetOptOut)\n /** Create an application create transaction.\n *\n * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.\n *\n * @param params The parameters for the app creation transaction\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.appCreate({ sender: 'CREATORADDRESS', approvalProgram: 'TEALCODE', clearStateProgram: 'TEALCODE' })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.appCreate({\n * sender: 'CREATORADDRESS',\n * approvalProgram: \"TEALCODE\",\n * clearStateProgram: \"TEALCODE\",\n * schema: {\n * globalInts: 1,\n * globalByteSlices: 2,\n * localInts: 3,\n * localByteSlices: 4\n * },\n * extraProgramPages: 1,\n * onComplete: OnApplicationComplete.OptIn,\n * args: [new Uint8Array(1, 2, 3, 4)]\n * accountReferences: [\"ACCOUNT_1\"]\n * appReferences: [123n, 1234n]\n * assetReferences: [12345n]\n * boxReferences: [\"box1\", {appId: 1234n, name: \"box2\"}]\n * accessReferences: [{ appId: 1234n }]\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * rejectVersion: 1,\n *})\n * ```\n * @returns The application create transaction\n */\n appCreate = this._transaction((c) => c.addAppCreate)\n /** Create an application update transaction.\n *\n * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.\n *\n * @param params The parameters for the app update transaction\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.appUpdate({ sender: 'CREATORADDRESS', approvalProgram: 'TEALCODE', clearStateProgram: 'TEALCODE' })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.appUpdate({\n * sender: 'CREATORADDRESS',\n * approvalProgram: \"TEALCODE\",\n * clearStateProgram: \"TEALCODE\",\n * onComplete: OnApplicationComplete.UpdateApplication,\n * args: [new Uint8Array(1, 2, 3, 4)]\n * accountReferences: [\"ACCOUNT_1\"]\n * appReferences: [123n, 1234n]\n * assetReferences: [12345n]\n * boxReferences: [\"box1\", {appId: 1234n, name: \"box2\"}]\n * accessReferences: [{ appId: 1234n }]\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * rejectVersion: 1,\n *})\n * ```\n * @returns The application update transaction\n */\n appUpdate = this._transaction((c) => c.addAppUpdate)\n /** Create an application delete transaction.\n *\n * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.\n *\n * @param params The parameters for the app deletion transaction\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.appDelete({ sender: 'CREATORADDRESS' })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.appDelete({\n * sender: 'CREATORADDRESS',\n * onComplete: OnApplicationComplete.DeleteApplication,\n * args: [new Uint8Array(1, 2, 3, 4)]\n * accountReferences: [\"ACCOUNT_1\"]\n * appReferences: [123n, 1234n]\n * assetReferences: [12345n]\n * boxReferences: [\"box1\", {appId: 1234n, name: \"box2\"}]\n * accessReferences: [{ appId: 1234n }]\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * rejectVersion: 1,\n *})\n * ```\n * @returns The application delete transaction\n */\n appDelete = this._transaction((c) => c.addAppDelete)\n /** Create an application call transaction.\n *\n * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.\n *\n * @param params The parameters for the app call transaction\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.appCall({ sender: 'CREATORADDRESS' })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.appCall({\n * sender: 'CREATORADDRESS',\n * onComplete: OnApplicationComplete.OptIn,\n * args: [new Uint8Array(1, 2, 3, 4)]\n * accountReferences: [\"ACCOUNT_1\"]\n * appReferences: [123n, 1234n]\n * assetReferences: [12345n]\n * boxReferences: [\"box1\", {appId: 1234n, name: \"box2\"}]\n * accessReferences: [{ appId: 1234n }]\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * rejectVersion: 1,\n *})\n * ```\n * @returns The application call transaction\n */\n appCall = this._transaction((c) => c.addAppCall)\n /** Create an application create call with ABI method call transaction.\n *\n * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.\n *\n * @param params The parameters for the app creation transaction\n * @example Basic example\n * ```typescript\n * const method = new ABIMethod({\n * name: 'method',\n * args: [{ name: 'arg1', type: 'string' }],\n * returns: { type: 'string' },\n * })\n * await algorand.createTransaction.appCreateMethodCall({ sender: 'CREATORADDRESS', approvalProgram: 'TEALCODE', clearStateProgram: 'TEALCODE', method: method, args: [\"arg1_value\"] })\n * ```\n * @example Advanced example\n * ```typescript\n * const method = new ABIMethod({\n * name: 'method',\n * args: [{ name: 'arg1', type: 'string' }],\n * returns: { type: 'string' },\n * })\n * await algorand.createTransaction.appCreateMethodCall({\n * sender: 'CREATORADDRESS',\n * method: method,\n * args: [\"arg1_value\"],\n * approvalProgram: \"TEALCODE\",\n * clearStateProgram: \"TEALCODE\",\n * schema: {\n * globalInts: 1,\n * globalByteSlices: 2,\n * localInts: 3,\n * localByteSlices: 4\n * },\n * extraProgramPages: 1,\n * onComplete: OnApplicationComplete.OptIn,\n * args: [new Uint8Array(1, 2, 3, 4)]\n * accountReferences: [\"ACCOUNT_1\"]\n * appReferences: [123n, 1234n]\n * assetReferences: [12345n]\n * boxReferences: [\"box1\", {appId: 1234n, name: \"box2\"}]\n * accessReferences: [{ appId: 1234n }]\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * rejectVersion: 1,\n *})\n * ```\n * @returns The application ABI method create transaction\n */\n appCreateMethodCall = this._transactions((c) => c.addAppCreateMethodCall)\n /** Create an application update call with ABI method call transaction.\n *\n * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.\n *\n * @param params The parameters for the app update transaction\n * @example Basic example\n * ```typescript\n * const method = new ABIMethod({\n * name: 'method',\n * args: [{ name: 'arg1', type: 'string' }],\n * returns: { type: 'string' },\n * })\n * await algorand.createTransaction.appUpdateMethodCall({ sender: 'CREATORADDRESS', approvalProgram: 'TEALCODE', clearStateProgram: 'TEALCODE', method: method, args: [\"arg1_value\"] })\n * ```\n * @example Advanced example\n * ```typescript\n * const method = new ABIMethod({\n * name: 'method',\n * args: [{ name: 'arg1', type: 'string' }],\n * returns: { type: 'string' },\n * })\n * await algorand.createTransaction.appUpdateMethodCall({\n * sender: 'CREATORADDRESS',\n * method: method,\n * args: [\"arg1_value\"],\n * approvalProgram: \"TEALCODE\",\n * clearStateProgram: \"TEALCODE\",\n * onComplete: OnApplicationComplete.UpdateApplication,\n * args: [new Uint8Array(1, 2, 3, 4)]\n * accountReferences: [\"ACCOUNT_1\"]\n * appReferences: [123n, 1234n]\n * assetReferences: [12345n]\n * boxReferences: [\"box1\", {appId: 1234n, name: \"box2\"}]\n * accessReferences: [{ appId: 1234n }]\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * rejectVersion: 1,\n *})\n * ```\n * @returns The application ABI method update transaction\n */\n appUpdateMethodCall = this._transactions((c) => c.addAppUpdateMethodCall)\n /** Create an application delete call with ABI method call transaction.\n *\n * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.\n *\n * @param params The parameters for the app deletion transaction\n * @example Basic example\n * ```typescript\n * const method = new ABIMethod({\n * name: 'method',\n * args: [{ name: 'arg1', type: 'string' }],\n * returns: { type: 'string' },\n * })\n * await algorand.createTransaction.appDeleteMethodCall({ sender: 'CREATORADDRESS', method: method, args: [\"arg1_value\"] })\n * ```\n * @example Advanced example\n * ```typescript\n * const method = new ABIMethod({\n * name: 'method',\n * args: [{ name: 'arg1', type: 'string' }],\n * returns: { type: 'string' },\n * })\n * await algorand.createTransaction.appDeleteMethodCall({\n * sender: 'CREATORADDRESS',\n * method: method,\n * args: [\"arg1_value\"],\n * onComplete: OnApplicationComplete.DeleteApplication,\n * args: [new Uint8Array(1, 2, 3, 4)]\n * accountReferences: [\"ACCOUNT_1\"]\n * appReferences: [123n, 1234n]\n * assetReferences: [12345n]\n * boxReferences: [\"box1\", {appId: 1234n, name: \"box2\"}]\n * accessReferences: [{ appId: 1234n }]\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * rejectVersion: 1,\n *})\n * ```\n * @returns The application ABI method delete transaction\n */\n appDeleteMethodCall = this._transactions((c) => c.addAppDeleteMethodCall)\n /** Create an application call with ABI method call transaction.\n *\n * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.\n *\n * @param params The parameters for the app call transaction\n * @example Basic example\n * ```typescript\n * const method = new ABIMethod({\n * name: 'method',\n * args: [{ name: 'arg1', type: 'string' }],\n * returns: { type: 'string' },\n * })\n * await algorand.createTransaction.appCallMethodCall({ sender: 'CREATORADDRESS', method: method, args: [\"arg1_value\"] })\n * ```\n * @example Advanced example\n * ```typescript\n * const method = new ABIMethod({\n * name: 'method',\n * args: [{ name: 'arg1', type: 'string' }],\n * returns: { type: 'string' },\n * })\n * await algorand.createTransaction.appCallMethodCall({\n * sender: 'CREATORADDRESS',\n * method: method,\n * args: [\"arg1_value\"],\n * onComplete: OnApplicationComplete.OptIn,\n * args: [new Uint8Array(1, 2, 3, 4)]\n * accountReferences: [\"ACCOUNT_1\"]\n * appReferences: [123n, 1234n]\n * assetReferences: [12345n]\n * boxReferences: [\"box1\", {appId: 1234n, name: \"box2\"}]\n * accessReferences: [{ appId: 1234n }]\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * rejectVersion: 1,\n *})\n * ```\n * @returns The application ABI method call transaction\n */\n appCallMethodCall = this._transactions((c) => c.addAppCallMethodCall)\n /**\n * Create an online key registration transaction.\n * @param params The parameters for the key registration transaction\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.onlineKeyRegistration({\n * sender: 'SENDERADDRESS',\n * voteKey: Uint8Array.from(Buffer.from(\"voteKeyBase64\", 'base64')),\n * selectionKey: Uint8Array.from(Buffer.from(\"selectionKeyBase64\", 'base64')),\n * stateProofKey: Uint8Array.from(Buffer.from(\"stateProofKeyBase64\", 'base64')),\n * voteFirst: 1n,\n * voteLast: 1000n,\n * voteKeyDilution: 1n,\n * })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.onlineKeyRegistration({\n * sender: 'SENDERADDRESS',\n * voteKey: Uint8Array.from(Buffer.from(\"voteKeyBase64\", 'base64')),\n * selectionKey: Uint8Array.from(Buffer.from(\"selectionKeyBase64\", 'base64')),\n * stateProofKey: Uint8Array.from(Buffer.from(\"stateProofKeyBase64\", 'base64')),\n * voteFirst: 1n,\n * voteLast: 1000n,\n * voteKeyDilution: 1n,\n * lease: 'lease',\n * note: 'note',\n * // Use this with caution, it's generally better to use algorand.account.rekeyAccount\n * rekeyTo: 'REKEYTOADDRESS',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * })\n * ```\n * @returns The online key registration transaction\n */\n onlineKeyRegistration = this._transaction((c) => c.addOnlineKeyRegistration)\n /**\n * Create an offline key registration transaction.\n * @param params The parameters for the key registration transaction\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.offlineKeyRegistration({\n * sender: 'SENDERADDRESS',\n * })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.offlineKeyRegistration({\n * sender: 'SENDERADDRESS',\n * lease: 'lease',\n * note: 'note',\n * // Use this with caution, it's generally better to use algorand.account.rekeyAccount\n * rekeyTo: 'REKEYTOADDRESS',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * })\n * ```\n * @returns The offline key registration transaction\n */\n offlineKeyRegistration = this._transaction((c) => c.addOfflineKeyRegistration)\n}\n"],"mappings":";;;;AAKA,IAAa,mCAAb,MAA8C;CAC5C,AAAQ;;;;;;;;;CAUR,YAAY,UAAuE;AACjF,OAAK,YAAY;;CAGnB,AAAQ,aAAgB,GAAwG;AAC9H,SAAO,OAAO,WAAc;GAC1B,MAAM,WAAW,KAAK,WAAW;AAEjC,WADe,MAAM,EAAE,SAAS,CAAC,MAAM,UAAU,CAAC,OAAO,CAAC,CAAC,mBAAmB,EAChE,aAAa,GAAG,GAAG;;;CAIrC,AAAQ,cACN,GACmD;AACnD,SAAO,OAAO,WAAc;GAC1B,MAAM,WAAW,KAAK,WAAW;AACjC,UAAO,MAAM,EAAE,SAAS,CAAC,MAAM,UAAU,CAAC,OAAO,CAAC,CAAC,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsC1E,UAAU,KAAK,cAAc,MAAM,EAAE,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyChD,cAAc,KAAK,cAAc,MAAM,EAAE,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCxD,cAAc,KAAK,cAAc,MAAM,EAAE,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BxD,cAAc,KAAK,cAAc,MAAM,EAAE,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCxD,eAAe,KAAK,cAAc,MAAM,EAAE,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiC1D,gBAAgB,KAAK,cAAc,MAAM,EAAE,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4B5D,aAAa,KAAK,cAAc,MAAM,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCtD,cAAc,KAAK,cAAc,MAAM,EAAE,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6CxD,YAAY,KAAK,cAAc,MAAM,EAAE,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCpD,YAAY,KAAK,cAAc,MAAM,EAAE,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCpD,YAAY,KAAK,cAAc,MAAM,EAAE,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCpD,UAAU,KAAK,cAAc,MAAM,EAAE,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyDhD,sBAAsB,KAAK,eAAe,MAAM,EAAE,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDzE,sBAAsB,KAAK,eAAe,MAAM,EAAE,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDzE,sBAAsB,KAAK,eAAe,MAAM,EAAE,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDzE,oBAAoB,KAAK,eAAe,MAAM,EAAE,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0CrE,wBAAwB,KAAK,cAAc,MAAM,EAAE,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8B5E,yBAAyB,KAAK,cAAc,MAAM,EAAE,0BAA0B"}
1
+ {"version":3,"file":"algorand-client-transaction-creator.js","names":[],"sources":["../src/algorand-client-transaction-creator.ts"],"sourcesContent":["import { Expand } from '@algorandfoundation/algokit-common'\nimport { Transaction } from '@algorandfoundation/algokit-transact'\nimport { BuiltTransactions, TransactionComposer, TransactionComposerConfig } from './composer'\n\n/** Orchestrates creating transactions for `AlgorandClient`. */\nexport class AlgorandClientTransactionCreator {\n private _newGroup: () => TransactionComposer\n\n /**\n * Creates a new `AlgorandClientTransactionCreator`\n * @param newGroup A lambda that starts a new `TransactionComposer` transaction group\n * @example\n * ```typescript\n * const transactionCreator = new AlgorandClientTransactionCreator(() => new TransactionComposer())\n * ```\n */\n constructor(newGroup: (config?: TransactionComposerConfig) => TransactionComposer) {\n this._newGroup = newGroup\n }\n\n private _transaction<T>(c: (c: TransactionComposer) => (params: T) => TransactionComposer): (params: T) => Promise<Transaction> {\n return async (params: T) => {\n const composer = this._newGroup()\n const result = await c(composer).apply(composer, [params]).buildTransactions()\n return result.transactions.at(-1)!\n }\n }\n\n private _transactions<T>(\n c: (c: TransactionComposer) => (params: T) => TransactionComposer,\n ): (params: T) => Promise<Expand<BuiltTransactions>> {\n return async (params: T) => {\n const composer = this._newGroup()\n return await c(composer).apply(composer, [params]).buildTransactions()\n }\n }\n\n /**\n * Create a payment transaction to transfer Algo between accounts.\n * @param params The parameters for the payment transaction\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.payment({\n * sender: 'SENDERADDRESS',\n * receiver: 'RECEIVERADDRESS',\n * amount: (4).algo(),\n * })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.payment({\n * amount: (4).algo(),\n * receiver: 'RECEIVERADDRESS',\n * sender: 'SENDERADDRESS',\n * closeRemainderTo: 'CLOSEREMAINDERTOADDRESS',\n * lease: 'lease',\n * note: 'note',\n * // Use this with caution, it's generally better to use algorand.account.rekeyAccount\n * rekeyTo: 'REKEYTOADDRESS',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * })\n * ```\n * @returns The payment transaction\n */\n payment = this._transaction((c) => c.addPayment)\n /** Create a create Algorand Standard Asset transaction.\n *\n * The account that sends this transaction will automatically be\n * opted in to the asset and will hold all units after creation.\n *\n * @param params The parameters for the asset creation transaction\n *\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.assetCreate({ sender: \"CREATORADDRESS\", total: 100n})\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.assetCreate({\n * sender: 'CREATORADDRESS',\n * total: 100n,\n * decimals: 2,\n * assetName: 'asset',\n * unitName: 'unit',\n * url: 'url',\n * metadataHash: 'metadataHash',\n * defaultFrozen: false,\n * manager: 'MANAGERADDRESS',\n * reserve: 'RESERVEADDRESS',\n * freeze: 'FREEZEADDRESS',\n * clawback: 'CLAWBACKADDRESS',\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * })\n * ```\n * @returns The asset create transaction\n */\n assetCreate = this._transaction((c) => c.addAssetCreate)\n /** Create an asset config transaction to reconfigure an existing Algorand Standard Asset.\n *\n * **Note:** The manager, reserve, freeze, and clawback addresses\n * are immutably empty if they are not set. If manager is not set then\n * all fields are immutable from that point forward.\n *\n * @param params The parameters for the asset config transaction\n *\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.assetConfig({ sender: \"MANAGERADDRESS\", assetId: 123456n, manager: \"MANAGERADDRESS\" })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.assetConfig({\n * sender: 'MANAGERADDRESS',\n * assetId: 123456n,\n * manager: 'MANAGERADDRESS',\n * reserve: 'RESERVEADDRESS',\n * freeze: 'FREEZEADDRESS',\n * clawback: 'CLAWBACKADDRESS',\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * })\n * ```\n * @returns The asset config transaction\n */\n assetConfig = this._transaction((c) => c.addAssetConfig)\n /** Create an Algorand Standard Asset freeze transaction.\n *\n * @param params The parameters for the asset freeze transaction\n *\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.assetFreeze({ sender: \"MANAGERADDRESS\", assetId: 123456n, account: \"ACCOUNTADDRESS\", frozen: true })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.assetFreeze({\n * sender: 'MANAGERADDRESS',\n * assetId: 123456n,\n * account: 'ACCOUNTADDRESS',\n * frozen: true,\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * })\n * ```\n * @returns The asset freeze transaction\n */\n assetFreeze = this._transaction((c) => c.addAssetFreeze)\n /** Create an Algorand Standard Asset destroy transaction.\n *\n * Created assets can be destroyed only by the asset manager account.\n * All of the assets must be owned by the creator of the asset before\n * the asset can be deleted.\n *\n * @param params The parameters for the asset destroy transaction\n *\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.assetDestroy({ sender: \"MANAGERADDRESS\", assetId: 123456n })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.assetDestroy({\n * sender: 'MANAGERADDRESS',\n * assetId: 123456n,\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * })\n * ```\n * @returns The asset destroy transaction\n */\n assetDestroy = this._transaction((c) => c.addAssetDestroy)\n /** Create an Algorand Standard Asset transfer transaction.\n *\n * @param params The parameters for the asset transfer transaction\n *\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.assetTransfer({ sender: \"HOLDERADDRESS\", assetId: 123456n, amount: 1n, receiver: \"RECEIVERADDRESS\" })\n * ```\n * @example Advanced example (with clawback)\n * ```typescript\n * await algorand.createTransaction.assetTransfer({\n * sender: 'CLAWBACKADDRESS',\n * assetId: 123456n,\n * amount: 1n,\n * receiver: 'RECEIVERADDRESS',\n * clawbackTarget: 'HOLDERADDRESS',\n * // This field needs to be used with caution\n * closeAssetTo: 'ADDRESSTOCLOSETO'\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * })\n * ```\n * @returns The result of the asset transfer transaction\n */\n assetTransfer = this._transaction((c) => c.addAssetTransfer)\n /** Create an Algorand Standard Asset opt-in transaction.\n *\n * @param params The parameters for the asset opt-in transaction\n *\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.assetOptIn({ sender: \"SENDERADDRESS\", assetId: 123456n })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.assetOptIn({\n * sender: 'SENDERADDRESS',\n * assetId: 123456n,\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * })\n * ```\n * @returns The asset opt-in transaction\n */\n assetOptIn = this._transaction((c) => c.addAssetOptIn)\n /** Create an asset opt-out transaction.\n *\n * *Note:* If the account has a balance of the asset,\n * it will lose those assets\n *\n * @param params The parameters for the asset opt-out transaction\n *\n * @example Basic example (without creator, will be retrieved from algod)\n * ```typescript\n * await algorand.createTransaction.assetOptOut({ sender: \"SENDERADDRESS\", assetId: 123456n, ensureZeroBalance: true })\n * ```\n * @example Basic example (with creator)\n * ```typescript\n * await algorand.createTransaction.assetOptOut({ sender: \"SENDERADDRESS\", creator: \"CREATORADDRESS\", assetId: 123456n, ensureZeroBalance: true })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.assetOptOut({\n * sender: 'SENDERADDRESS',\n * assetId: 123456n,\n * creator: 'CREATORADDRESS',\n * ensureZeroBalance: true,\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * })\n * ```\n * @returns The asset opt-out transaction\n */\n assetOptOut = this._transaction((c) => c.addAssetOptOut)\n /** Create an application create transaction.\n *\n * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.\n *\n * @param params The parameters for the app creation transaction\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.appCreate({ sender: 'CREATORADDRESS', approvalProgram: 'TEALCODE', clearStateProgram: 'TEALCODE' })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.appCreate({\n * sender: 'CREATORADDRESS',\n * approvalProgram: \"TEALCODE\",\n * clearStateProgram: \"TEALCODE\",\n * schema: {\n * globalInts: 1,\n * globalByteSlices: 2,\n * localInts: 3,\n * localByteSlices: 4\n * },\n * extraProgramPages: 1,\n * onComplete: OnApplicationComplete.OptIn,\n * args: [new Uint8Array(1, 2, 3, 4)]\n * accountReferences: [\"ACCOUNT_1\"]\n * appReferences: [123n, 1234n]\n * assetReferences: [12345n]\n * boxReferences: [\"box1\", {appId: 1234n, name: \"box2\"}]\n * accessReferences: [{ appId: 1234n }]\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * rejectVersion: 1,\n *})\n * ```\n * @returns The application create transaction\n */\n appCreate = this._transaction((c) => c.addAppCreate)\n /** Create an application update transaction.\n *\n * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.\n *\n * @param params The parameters for the app update transaction\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.appUpdate({ sender: 'CREATORADDRESS', approvalProgram: 'TEALCODE', clearStateProgram: 'TEALCODE' })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.appUpdate({\n * sender: 'CREATORADDRESS',\n * approvalProgram: \"TEALCODE\",\n * clearStateProgram: \"TEALCODE\",\n * onComplete: OnApplicationComplete.UpdateApplication,\n * args: [new Uint8Array(1, 2, 3, 4)]\n * accountReferences: [\"ACCOUNT_1\"]\n * appReferences: [123n, 1234n]\n * assetReferences: [12345n]\n * boxReferences: [\"box1\", {appId: 1234n, name: \"box2\"}]\n * accessReferences: [{ appId: 1234n }]\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * rejectVersion: 1,\n *})\n * ```\n * @returns The application update transaction\n */\n appUpdate = this._transaction((c) => c.addAppUpdate)\n /** Create an application delete transaction.\n *\n * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.\n *\n * @param params The parameters for the app deletion transaction\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.appDelete({ sender: 'CREATORADDRESS' })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.appDelete({\n * sender: 'CREATORADDRESS',\n * onComplete: OnApplicationComplete.DeleteApplication,\n * args: [new Uint8Array(1, 2, 3, 4)]\n * accountReferences: [\"ACCOUNT_1\"]\n * appReferences: [123n, 1234n]\n * assetReferences: [12345n]\n * boxReferences: [\"box1\", {appId: 1234n, name: \"box2\"}]\n * accessReferences: [{ appId: 1234n }]\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * rejectVersion: 1,\n *})\n * ```\n * @returns The application delete transaction\n */\n appDelete = this._transaction((c) => c.addAppDelete)\n /** Create an application call transaction.\n *\n * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.\n *\n * @param params The parameters for the app call transaction\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.appCall({ sender: 'CREATORADDRESS' })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.appCall({\n * sender: 'CREATORADDRESS',\n * onComplete: OnApplicationComplete.OptIn,\n * args: [new Uint8Array(1, 2, 3, 4)]\n * accountReferences: [\"ACCOUNT_1\"]\n * appReferences: [123n, 1234n]\n * assetReferences: [12345n]\n * boxReferences: [\"box1\", {appId: 1234n, name: \"box2\"}]\n * accessReferences: [{ appId: 1234n }]\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * rejectVersion: 1,\n *})\n * ```\n * @returns The application call transaction\n */\n appCall = this._transaction((c) => c.addAppCall)\n /** Create an application create call with ABI method call transaction.\n *\n * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.\n *\n * @param params The parameters for the app creation transaction\n * @example Basic example\n * ```typescript\n * const method = new ABIMethod({\n * name: 'method',\n * args: [{ name: 'arg1', type: 'string' }],\n * returns: { type: 'string' },\n * })\n * await algorand.createTransaction.appCreateMethodCall({ sender: 'CREATORADDRESS', approvalProgram: 'TEALCODE', clearStateProgram: 'TEALCODE', method: method, args: [\"arg1_value\"] })\n * ```\n * @example Advanced example\n * ```typescript\n * const method = new ABIMethod({\n * name: 'method',\n * args: [{ name: 'arg1', type: 'string' }],\n * returns: { type: 'string' },\n * })\n * await algorand.createTransaction.appCreateMethodCall({\n * sender: 'CREATORADDRESS',\n * method: method,\n * args: [\"arg1_value\"],\n * approvalProgram: \"TEALCODE\",\n * clearStateProgram: \"TEALCODE\",\n * schema: {\n * globalInts: 1,\n * globalByteSlices: 2,\n * localInts: 3,\n * localByteSlices: 4\n * },\n * extraProgramPages: 1,\n * onComplete: OnApplicationComplete.OptIn,\n * args: [new Uint8Array(1, 2, 3, 4)]\n * accountReferences: [\"ACCOUNT_1\"]\n * appReferences: [123n, 1234n]\n * assetReferences: [12345n]\n * boxReferences: [\"box1\", {appId: 1234n, name: \"box2\"}]\n * accessReferences: [{ appId: 1234n }]\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * rejectVersion: 1,\n *})\n * ```\n * @returns The application ABI method create transaction\n */\n appCreateMethodCall = this._transactions((c) => c.addAppCreateMethodCall)\n /** Create an application update call with ABI method call transaction.\n *\n * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.\n *\n * @param params The parameters for the app update transaction\n * @example Basic example\n * ```typescript\n * const method = new ABIMethod({\n * name: 'method',\n * args: [{ name: 'arg1', type: 'string' }],\n * returns: { type: 'string' },\n * })\n * await algorand.createTransaction.appUpdateMethodCall({ sender: 'CREATORADDRESS', approvalProgram: 'TEALCODE', clearStateProgram: 'TEALCODE', method: method, args: [\"arg1_value\"] })\n * ```\n * @example Advanced example\n * ```typescript\n * const method = new ABIMethod({\n * name: 'method',\n * args: [{ name: 'arg1', type: 'string' }],\n * returns: { type: 'string' },\n * })\n * await algorand.createTransaction.appUpdateMethodCall({\n * sender: 'CREATORADDRESS',\n * method: method,\n * args: [\"arg1_value\"],\n * approvalProgram: \"TEALCODE\",\n * clearStateProgram: \"TEALCODE\",\n * onComplete: OnApplicationComplete.UpdateApplication,\n * args: [new Uint8Array(1, 2, 3, 4)]\n * accountReferences: [\"ACCOUNT_1\"]\n * appReferences: [123n, 1234n]\n * assetReferences: [12345n]\n * boxReferences: [\"box1\", {appId: 1234n, name: \"box2\"}]\n * accessReferences: [{ appId: 1234n }]\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * rejectVersion: 1,\n *})\n * ```\n * @returns The application ABI method update transaction\n */\n appUpdateMethodCall = this._transactions((c) => c.addAppUpdateMethodCall)\n /** Create an application delete call with ABI method call transaction.\n *\n * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.\n *\n * @param params The parameters for the app deletion transaction\n * @example Basic example\n * ```typescript\n * const method = new ABIMethod({\n * name: 'method',\n * args: [{ name: 'arg1', type: 'string' }],\n * returns: { type: 'string' },\n * })\n * await algorand.createTransaction.appDeleteMethodCall({ sender: 'CREATORADDRESS', method: method, args: [\"arg1_value\"] })\n * ```\n * @example Advanced example\n * ```typescript\n * const method = new ABIMethod({\n * name: 'method',\n * args: [{ name: 'arg1', type: 'string' }],\n * returns: { type: 'string' },\n * })\n * await algorand.createTransaction.appDeleteMethodCall({\n * sender: 'CREATORADDRESS',\n * method: method,\n * args: [\"arg1_value\"],\n * onComplete: OnApplicationComplete.DeleteApplication,\n * args: [new Uint8Array(1, 2, 3, 4)]\n * accountReferences: [\"ACCOUNT_1\"]\n * appReferences: [123n, 1234n]\n * assetReferences: [12345n]\n * boxReferences: [\"box1\", {appId: 1234n, name: \"box2\"}]\n * accessReferences: [{ appId: 1234n }]\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * rejectVersion: 1,\n *})\n * ```\n * @returns The application ABI method delete transaction\n */\n appDeleteMethodCall = this._transactions((c) => c.addAppDeleteMethodCall)\n /** Create an application call with ABI method call transaction.\n *\n * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.\n *\n * @param params The parameters for the app call transaction\n * @example Basic example\n * ```typescript\n * const method = new ABIMethod({\n * name: 'method',\n * args: [{ name: 'arg1', type: 'string' }],\n * returns: { type: 'string' },\n * })\n * await algorand.createTransaction.appCallMethodCall({ sender: 'CREATORADDRESS', method: method, args: [\"arg1_value\"] })\n * ```\n * @example Advanced example\n * ```typescript\n * const method = new ABIMethod({\n * name: 'method',\n * args: [{ name: 'arg1', type: 'string' }],\n * returns: { type: 'string' },\n * })\n * await algorand.createTransaction.appCallMethodCall({\n * sender: 'CREATORADDRESS',\n * method: method,\n * args: [\"arg1_value\"],\n * onComplete: OnApplicationComplete.OptIn,\n * args: [new Uint8Array(1, 2, 3, 4)]\n * accountReferences: [\"ACCOUNT_1\"]\n * appReferences: [123n, 1234n]\n * assetReferences: [12345n]\n * boxReferences: [\"box1\", {appId: 1234n, name: \"box2\"}]\n * accessReferences: [{ appId: 1234n }]\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * rejectVersion: 1,\n *})\n * ```\n * @returns The application ABI method call transaction\n */\n appCallMethodCall = this._transactions((c) => c.addAppCallMethodCall)\n /**\n * Create an online key registration transaction.\n * @param params The parameters for the key registration transaction\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.onlineKeyRegistration({\n * sender: 'SENDERADDRESS',\n * voteKey: Uint8Array.from(Buffer.from(\"voteKeyBase64\", 'base64')),\n * selectionKey: Uint8Array.from(Buffer.from(\"selectionKeyBase64\", 'base64')),\n * stateProofKey: Uint8Array.from(Buffer.from(\"stateProofKeyBase64\", 'base64')),\n * voteFirst: 1n,\n * voteLast: 1000n,\n * voteKeyDilution: 1n,\n * })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.onlineKeyRegistration({\n * sender: 'SENDERADDRESS',\n * voteKey: Uint8Array.from(Buffer.from(\"voteKeyBase64\", 'base64')),\n * selectionKey: Uint8Array.from(Buffer.from(\"selectionKeyBase64\", 'base64')),\n * stateProofKey: Uint8Array.from(Buffer.from(\"stateProofKeyBase64\", 'base64')),\n * voteFirst: 1n,\n * voteLast: 1000n,\n * voteKeyDilution: 1n,\n * lease: 'lease',\n * note: 'note',\n * // Use this with caution, it's generally better to use algorand.account.rekeyAccount\n * rekeyTo: 'REKEYTOADDRESS',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * })\n * ```\n * @returns The online key registration transaction\n */\n onlineKeyRegistration = this._transaction((c) => c.addOnlineKeyRegistration)\n /**\n * Create an offline key registration transaction.\n * @param params The parameters for the key registration transaction\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.offlineKeyRegistration({\n * sender: 'SENDERADDRESS',\n * })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.offlineKeyRegistration({\n * sender: 'SENDERADDRESS',\n * lease: 'lease',\n * note: 'note',\n * // Use this with caution, it's generally better to use algorand.account.rekeyAccount\n * rekeyTo: 'REKEYTOADDRESS',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * })\n * ```\n * @returns The offline key registration transaction\n */\n offlineKeyRegistration = this._transaction((c) => c.addOfflineKeyRegistration)\n}\n"],"mappings":";;;AAKA,IAAa,mCAAb,MAA8C;CAC5C;;;;;;;;;CAUA,YAAY,UAAuE;AACjF,OAAK,YAAY;;CAGnB,aAAwB,GAAwG;AAC9H,SAAO,OAAO,WAAc;GAC1B,MAAM,WAAW,KAAK,WAAW;AAEjC,WADe,MAAM,EAAE,SAAS,CAAC,MAAM,UAAU,CAAC,OAAO,CAAC,CAAC,mBAAmB,EAChE,aAAa,GAAG,GAAG;;;CAIrC,cACE,GACmD;AACnD,SAAO,OAAO,WAAc;GAC1B,MAAM,WAAW,KAAK,WAAW;AACjC,UAAO,MAAM,EAAE,SAAS,CAAC,MAAM,UAAU,CAAC,OAAO,CAAC,CAAC,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsC1E,UAAU,KAAK,cAAc,MAAM,EAAE,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyChD,cAAc,KAAK,cAAc,MAAM,EAAE,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCxD,cAAc,KAAK,cAAc,MAAM,EAAE,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BxD,cAAc,KAAK,cAAc,MAAM,EAAE,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCxD,eAAe,KAAK,cAAc,MAAM,EAAE,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiC1D,gBAAgB,KAAK,cAAc,MAAM,EAAE,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4B5D,aAAa,KAAK,cAAc,MAAM,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCtD,cAAc,KAAK,cAAc,MAAM,EAAE,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6CxD,YAAY,KAAK,cAAc,MAAM,EAAE,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCpD,YAAY,KAAK,cAAc,MAAM,EAAE,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCpD,YAAY,KAAK,cAAc,MAAM,EAAE,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCpD,UAAU,KAAK,cAAc,MAAM,EAAE,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyDhD,sBAAsB,KAAK,eAAe,MAAM,EAAE,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDzE,sBAAsB,KAAK,eAAe,MAAM,EAAE,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDzE,sBAAsB,KAAK,eAAe,MAAM,EAAE,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDzE,oBAAoB,KAAK,eAAe,MAAM,EAAE,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0CrE,wBAAwB,KAAK,cAAc,MAAM,EAAE,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8B5E,yBAAyB,KAAK,cAAc,MAAM,EAAE,0BAA0B"}
@@ -728,7 +728,7 @@ var AlgorandClientTransactionCreator = class {
728
728
  */
729
729
  offlineKeyRegistration = this._transaction((c) => c.addOfflineKeyRegistration);
730
730
  };
731
-
732
731
  //#endregion
733
732
  export { AlgorandClientTransactionCreator };
733
+
734
734
  //# sourceMappingURL=algorand-client-transaction-creator.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"algorand-client-transaction-creator.mjs","names":[],"sources":["../src/algorand-client-transaction-creator.ts"],"sourcesContent":["import { Expand } from '@algorandfoundation/algokit-common'\nimport { Transaction } from '@algorandfoundation/algokit-transact'\nimport { BuiltTransactions, TransactionComposer, TransactionComposerConfig } from './composer'\n\n/** Orchestrates creating transactions for `AlgorandClient`. */\nexport class AlgorandClientTransactionCreator {\n private _newGroup: () => TransactionComposer\n\n /**\n * Creates a new `AlgorandClientTransactionCreator`\n * @param newGroup A lambda that starts a new `TransactionComposer` transaction group\n * @example\n * ```typescript\n * const transactionCreator = new AlgorandClientTransactionCreator(() => new TransactionComposer())\n * ```\n */\n constructor(newGroup: (config?: TransactionComposerConfig) => TransactionComposer) {\n this._newGroup = newGroup\n }\n\n private _transaction<T>(c: (c: TransactionComposer) => (params: T) => TransactionComposer): (params: T) => Promise<Transaction> {\n return async (params: T) => {\n const composer = this._newGroup()\n const result = await c(composer).apply(composer, [params]).buildTransactions()\n return result.transactions.at(-1)!\n }\n }\n\n private _transactions<T>(\n c: (c: TransactionComposer) => (params: T) => TransactionComposer,\n ): (params: T) => Promise<Expand<BuiltTransactions>> {\n return async (params: T) => {\n const composer = this._newGroup()\n return await c(composer).apply(composer, [params]).buildTransactions()\n }\n }\n\n /**\n * Create a payment transaction to transfer Algo between accounts.\n * @param params The parameters for the payment transaction\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.payment({\n * sender: 'SENDERADDRESS',\n * receiver: 'RECEIVERADDRESS',\n * amount: (4).algo(),\n * })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.payment({\n * amount: (4).algo(),\n * receiver: 'RECEIVERADDRESS',\n * sender: 'SENDERADDRESS',\n * closeRemainderTo: 'CLOSEREMAINDERTOADDRESS',\n * lease: 'lease',\n * note: 'note',\n * // Use this with caution, it's generally better to use algorand.account.rekeyAccount\n * rekeyTo: 'REKEYTOADDRESS',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * })\n * ```\n * @returns The payment transaction\n */\n payment = this._transaction((c) => c.addPayment)\n /** Create a create Algorand Standard Asset transaction.\n *\n * The account that sends this transaction will automatically be\n * opted in to the asset and will hold all units after creation.\n *\n * @param params The parameters for the asset creation transaction\n *\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.assetCreate({ sender: \"CREATORADDRESS\", total: 100n})\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.assetCreate({\n * sender: 'CREATORADDRESS',\n * total: 100n,\n * decimals: 2,\n * assetName: 'asset',\n * unitName: 'unit',\n * url: 'url',\n * metadataHash: 'metadataHash',\n * defaultFrozen: false,\n * manager: 'MANAGERADDRESS',\n * reserve: 'RESERVEADDRESS',\n * freeze: 'FREEZEADDRESS',\n * clawback: 'CLAWBACKADDRESS',\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * })\n * ```\n * @returns The asset create transaction\n */\n assetCreate = this._transaction((c) => c.addAssetCreate)\n /** Create an asset config transaction to reconfigure an existing Algorand Standard Asset.\n *\n * **Note:** The manager, reserve, freeze, and clawback addresses\n * are immutably empty if they are not set. If manager is not set then\n * all fields are immutable from that point forward.\n *\n * @param params The parameters for the asset config transaction\n *\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.assetConfig({ sender: \"MANAGERADDRESS\", assetId: 123456n, manager: \"MANAGERADDRESS\" })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.assetConfig({\n * sender: 'MANAGERADDRESS',\n * assetId: 123456n,\n * manager: 'MANAGERADDRESS',\n * reserve: 'RESERVEADDRESS',\n * freeze: 'FREEZEADDRESS',\n * clawback: 'CLAWBACKADDRESS',\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * })\n * ```\n * @returns The asset config transaction\n */\n assetConfig = this._transaction((c) => c.addAssetConfig)\n /** Create an Algorand Standard Asset freeze transaction.\n *\n * @param params The parameters for the asset freeze transaction\n *\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.assetFreeze({ sender: \"MANAGERADDRESS\", assetId: 123456n, account: \"ACCOUNTADDRESS\", frozen: true })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.assetFreeze({\n * sender: 'MANAGERADDRESS',\n * assetId: 123456n,\n * account: 'ACCOUNTADDRESS',\n * frozen: true,\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * })\n * ```\n * @returns The asset freeze transaction\n */\n assetFreeze = this._transaction((c) => c.addAssetFreeze)\n /** Create an Algorand Standard Asset destroy transaction.\n *\n * Created assets can be destroyed only by the asset manager account.\n * All of the assets must be owned by the creator of the asset before\n * the asset can be deleted.\n *\n * @param params The parameters for the asset destroy transaction\n *\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.assetDestroy({ sender: \"MANAGERADDRESS\", assetId: 123456n })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.assetDestroy({\n * sender: 'MANAGERADDRESS',\n * assetId: 123456n,\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * })\n * ```\n * @returns The asset destroy transaction\n */\n assetDestroy = this._transaction((c) => c.addAssetDestroy)\n /** Create an Algorand Standard Asset transfer transaction.\n *\n * @param params The parameters for the asset transfer transaction\n *\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.assetTransfer({ sender: \"HOLDERADDRESS\", assetId: 123456n, amount: 1n, receiver: \"RECEIVERADDRESS\" })\n * ```\n * @example Advanced example (with clawback)\n * ```typescript\n * await algorand.createTransaction.assetTransfer({\n * sender: 'CLAWBACKADDRESS',\n * assetId: 123456n,\n * amount: 1n,\n * receiver: 'RECEIVERADDRESS',\n * clawbackTarget: 'HOLDERADDRESS',\n * // This field needs to be used with caution\n * closeAssetTo: 'ADDRESSTOCLOSETO'\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * })\n * ```\n * @returns The result of the asset transfer transaction\n */\n assetTransfer = this._transaction((c) => c.addAssetTransfer)\n /** Create an Algorand Standard Asset opt-in transaction.\n *\n * @param params The parameters for the asset opt-in transaction\n *\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.assetOptIn({ sender: \"SENDERADDRESS\", assetId: 123456n })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.assetOptIn({\n * sender: 'SENDERADDRESS',\n * assetId: 123456n,\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * })\n * ```\n * @returns The asset opt-in transaction\n */\n assetOptIn = this._transaction((c) => c.addAssetOptIn)\n /** Create an asset opt-out transaction.\n *\n * *Note:* If the account has a balance of the asset,\n * it will lose those assets\n *\n * @param params The parameters for the asset opt-out transaction\n *\n * @example Basic example (without creator, will be retrieved from algod)\n * ```typescript\n * await algorand.createTransaction.assetOptOut({ sender: \"SENDERADDRESS\", assetId: 123456n, ensureZeroBalance: true })\n * ```\n * @example Basic example (with creator)\n * ```typescript\n * await algorand.createTransaction.assetOptOut({ sender: \"SENDERADDRESS\", creator: \"CREATORADDRESS\", assetId: 123456n, ensureZeroBalance: true })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.assetOptOut({\n * sender: 'SENDERADDRESS',\n * assetId: 123456n,\n * creator: 'CREATORADDRESS',\n * ensureZeroBalance: true,\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * })\n * ```\n * @returns The asset opt-out transaction\n */\n assetOptOut = this._transaction((c) => c.addAssetOptOut)\n /** Create an application create transaction.\n *\n * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.\n *\n * @param params The parameters for the app creation transaction\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.appCreate({ sender: 'CREATORADDRESS', approvalProgram: 'TEALCODE', clearStateProgram: 'TEALCODE' })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.appCreate({\n * sender: 'CREATORADDRESS',\n * approvalProgram: \"TEALCODE\",\n * clearStateProgram: \"TEALCODE\",\n * schema: {\n * globalInts: 1,\n * globalByteSlices: 2,\n * localInts: 3,\n * localByteSlices: 4\n * },\n * extraProgramPages: 1,\n * onComplete: OnApplicationComplete.OptIn,\n * args: [new Uint8Array(1, 2, 3, 4)]\n * accountReferences: [\"ACCOUNT_1\"]\n * appReferences: [123n, 1234n]\n * assetReferences: [12345n]\n * boxReferences: [\"box1\", {appId: 1234n, name: \"box2\"}]\n * accessReferences: [{ appId: 1234n }]\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * rejectVersion: 1,\n *})\n * ```\n * @returns The application create transaction\n */\n appCreate = this._transaction((c) => c.addAppCreate)\n /** Create an application update transaction.\n *\n * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.\n *\n * @param params The parameters for the app update transaction\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.appUpdate({ sender: 'CREATORADDRESS', approvalProgram: 'TEALCODE', clearStateProgram: 'TEALCODE' })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.appUpdate({\n * sender: 'CREATORADDRESS',\n * approvalProgram: \"TEALCODE\",\n * clearStateProgram: \"TEALCODE\",\n * onComplete: OnApplicationComplete.UpdateApplication,\n * args: [new Uint8Array(1, 2, 3, 4)]\n * accountReferences: [\"ACCOUNT_1\"]\n * appReferences: [123n, 1234n]\n * assetReferences: [12345n]\n * boxReferences: [\"box1\", {appId: 1234n, name: \"box2\"}]\n * accessReferences: [{ appId: 1234n }]\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * rejectVersion: 1,\n *})\n * ```\n * @returns The application update transaction\n */\n appUpdate = this._transaction((c) => c.addAppUpdate)\n /** Create an application delete transaction.\n *\n * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.\n *\n * @param params The parameters for the app deletion transaction\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.appDelete({ sender: 'CREATORADDRESS' })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.appDelete({\n * sender: 'CREATORADDRESS',\n * onComplete: OnApplicationComplete.DeleteApplication,\n * args: [new Uint8Array(1, 2, 3, 4)]\n * accountReferences: [\"ACCOUNT_1\"]\n * appReferences: [123n, 1234n]\n * assetReferences: [12345n]\n * boxReferences: [\"box1\", {appId: 1234n, name: \"box2\"}]\n * accessReferences: [{ appId: 1234n }]\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * rejectVersion: 1,\n *})\n * ```\n * @returns The application delete transaction\n */\n appDelete = this._transaction((c) => c.addAppDelete)\n /** Create an application call transaction.\n *\n * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.\n *\n * @param params The parameters for the app call transaction\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.appCall({ sender: 'CREATORADDRESS' })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.appCall({\n * sender: 'CREATORADDRESS',\n * onComplete: OnApplicationComplete.OptIn,\n * args: [new Uint8Array(1, 2, 3, 4)]\n * accountReferences: [\"ACCOUNT_1\"]\n * appReferences: [123n, 1234n]\n * assetReferences: [12345n]\n * boxReferences: [\"box1\", {appId: 1234n, name: \"box2\"}]\n * accessReferences: [{ appId: 1234n }]\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * rejectVersion: 1,\n *})\n * ```\n * @returns The application call transaction\n */\n appCall = this._transaction((c) => c.addAppCall)\n /** Create an application create call with ABI method call transaction.\n *\n * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.\n *\n * @param params The parameters for the app creation transaction\n * @example Basic example\n * ```typescript\n * const method = new ABIMethod({\n * name: 'method',\n * args: [{ name: 'arg1', type: 'string' }],\n * returns: { type: 'string' },\n * })\n * await algorand.createTransaction.appCreateMethodCall({ sender: 'CREATORADDRESS', approvalProgram: 'TEALCODE', clearStateProgram: 'TEALCODE', method: method, args: [\"arg1_value\"] })\n * ```\n * @example Advanced example\n * ```typescript\n * const method = new ABIMethod({\n * name: 'method',\n * args: [{ name: 'arg1', type: 'string' }],\n * returns: { type: 'string' },\n * })\n * await algorand.createTransaction.appCreateMethodCall({\n * sender: 'CREATORADDRESS',\n * method: method,\n * args: [\"arg1_value\"],\n * approvalProgram: \"TEALCODE\",\n * clearStateProgram: \"TEALCODE\",\n * schema: {\n * globalInts: 1,\n * globalByteSlices: 2,\n * localInts: 3,\n * localByteSlices: 4\n * },\n * extraProgramPages: 1,\n * onComplete: OnApplicationComplete.OptIn,\n * args: [new Uint8Array(1, 2, 3, 4)]\n * accountReferences: [\"ACCOUNT_1\"]\n * appReferences: [123n, 1234n]\n * assetReferences: [12345n]\n * boxReferences: [\"box1\", {appId: 1234n, name: \"box2\"}]\n * accessReferences: [{ appId: 1234n }]\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * rejectVersion: 1,\n *})\n * ```\n * @returns The application ABI method create transaction\n */\n appCreateMethodCall = this._transactions((c) => c.addAppCreateMethodCall)\n /** Create an application update call with ABI method call transaction.\n *\n * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.\n *\n * @param params The parameters for the app update transaction\n * @example Basic example\n * ```typescript\n * const method = new ABIMethod({\n * name: 'method',\n * args: [{ name: 'arg1', type: 'string' }],\n * returns: { type: 'string' },\n * })\n * await algorand.createTransaction.appUpdateMethodCall({ sender: 'CREATORADDRESS', approvalProgram: 'TEALCODE', clearStateProgram: 'TEALCODE', method: method, args: [\"arg1_value\"] })\n * ```\n * @example Advanced example\n * ```typescript\n * const method = new ABIMethod({\n * name: 'method',\n * args: [{ name: 'arg1', type: 'string' }],\n * returns: { type: 'string' },\n * })\n * await algorand.createTransaction.appUpdateMethodCall({\n * sender: 'CREATORADDRESS',\n * method: method,\n * args: [\"arg1_value\"],\n * approvalProgram: \"TEALCODE\",\n * clearStateProgram: \"TEALCODE\",\n * onComplete: OnApplicationComplete.UpdateApplication,\n * args: [new Uint8Array(1, 2, 3, 4)]\n * accountReferences: [\"ACCOUNT_1\"]\n * appReferences: [123n, 1234n]\n * assetReferences: [12345n]\n * boxReferences: [\"box1\", {appId: 1234n, name: \"box2\"}]\n * accessReferences: [{ appId: 1234n }]\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * rejectVersion: 1,\n *})\n * ```\n * @returns The application ABI method update transaction\n */\n appUpdateMethodCall = this._transactions((c) => c.addAppUpdateMethodCall)\n /** Create an application delete call with ABI method call transaction.\n *\n * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.\n *\n * @param params The parameters for the app deletion transaction\n * @example Basic example\n * ```typescript\n * const method = new ABIMethod({\n * name: 'method',\n * args: [{ name: 'arg1', type: 'string' }],\n * returns: { type: 'string' },\n * })\n * await algorand.createTransaction.appDeleteMethodCall({ sender: 'CREATORADDRESS', method: method, args: [\"arg1_value\"] })\n * ```\n * @example Advanced example\n * ```typescript\n * const method = new ABIMethod({\n * name: 'method',\n * args: [{ name: 'arg1', type: 'string' }],\n * returns: { type: 'string' },\n * })\n * await algorand.createTransaction.appDeleteMethodCall({\n * sender: 'CREATORADDRESS',\n * method: method,\n * args: [\"arg1_value\"],\n * onComplete: OnApplicationComplete.DeleteApplication,\n * args: [new Uint8Array(1, 2, 3, 4)]\n * accountReferences: [\"ACCOUNT_1\"]\n * appReferences: [123n, 1234n]\n * assetReferences: [12345n]\n * boxReferences: [\"box1\", {appId: 1234n, name: \"box2\"}]\n * accessReferences: [{ appId: 1234n }]\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * rejectVersion: 1,\n *})\n * ```\n * @returns The application ABI method delete transaction\n */\n appDeleteMethodCall = this._transactions((c) => c.addAppDeleteMethodCall)\n /** Create an application call with ABI method call transaction.\n *\n * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.\n *\n * @param params The parameters for the app call transaction\n * @example Basic example\n * ```typescript\n * const method = new ABIMethod({\n * name: 'method',\n * args: [{ name: 'arg1', type: 'string' }],\n * returns: { type: 'string' },\n * })\n * await algorand.createTransaction.appCallMethodCall({ sender: 'CREATORADDRESS', method: method, args: [\"arg1_value\"] })\n * ```\n * @example Advanced example\n * ```typescript\n * const method = new ABIMethod({\n * name: 'method',\n * args: [{ name: 'arg1', type: 'string' }],\n * returns: { type: 'string' },\n * })\n * await algorand.createTransaction.appCallMethodCall({\n * sender: 'CREATORADDRESS',\n * method: method,\n * args: [\"arg1_value\"],\n * onComplete: OnApplicationComplete.OptIn,\n * args: [new Uint8Array(1, 2, 3, 4)]\n * accountReferences: [\"ACCOUNT_1\"]\n * appReferences: [123n, 1234n]\n * assetReferences: [12345n]\n * boxReferences: [\"box1\", {appId: 1234n, name: \"box2\"}]\n * accessReferences: [{ appId: 1234n }]\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * rejectVersion: 1,\n *})\n * ```\n * @returns The application ABI method call transaction\n */\n appCallMethodCall = this._transactions((c) => c.addAppCallMethodCall)\n /**\n * Create an online key registration transaction.\n * @param params The parameters for the key registration transaction\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.onlineKeyRegistration({\n * sender: 'SENDERADDRESS',\n * voteKey: Uint8Array.from(Buffer.from(\"voteKeyBase64\", 'base64')),\n * selectionKey: Uint8Array.from(Buffer.from(\"selectionKeyBase64\", 'base64')),\n * stateProofKey: Uint8Array.from(Buffer.from(\"stateProofKeyBase64\", 'base64')),\n * voteFirst: 1n,\n * voteLast: 1000n,\n * voteKeyDilution: 1n,\n * })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.onlineKeyRegistration({\n * sender: 'SENDERADDRESS',\n * voteKey: Uint8Array.from(Buffer.from(\"voteKeyBase64\", 'base64')),\n * selectionKey: Uint8Array.from(Buffer.from(\"selectionKeyBase64\", 'base64')),\n * stateProofKey: Uint8Array.from(Buffer.from(\"stateProofKeyBase64\", 'base64')),\n * voteFirst: 1n,\n * voteLast: 1000n,\n * voteKeyDilution: 1n,\n * lease: 'lease',\n * note: 'note',\n * // Use this with caution, it's generally better to use algorand.account.rekeyAccount\n * rekeyTo: 'REKEYTOADDRESS',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * })\n * ```\n * @returns The online key registration transaction\n */\n onlineKeyRegistration = this._transaction((c) => c.addOnlineKeyRegistration)\n /**\n * Create an offline key registration transaction.\n * @param params The parameters for the key registration transaction\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.offlineKeyRegistration({\n * sender: 'SENDERADDRESS',\n * })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.offlineKeyRegistration({\n * sender: 'SENDERADDRESS',\n * lease: 'lease',\n * note: 'note',\n * // Use this with caution, it's generally better to use algorand.account.rekeyAccount\n * rekeyTo: 'REKEYTOADDRESS',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * })\n * ```\n * @returns The offline key registration transaction\n */\n offlineKeyRegistration = this._transaction((c) => c.addOfflineKeyRegistration)\n}\n"],"mappings":";;AAKA,IAAa,mCAAb,MAA8C;CAC5C,AAAQ;;;;;;;;;CAUR,YAAY,UAAuE;AACjF,OAAK,YAAY;;CAGnB,AAAQ,aAAgB,GAAwG;AAC9H,SAAO,OAAO,WAAc;GAC1B,MAAM,WAAW,KAAK,WAAW;AAEjC,WADe,MAAM,EAAE,SAAS,CAAC,MAAM,UAAU,CAAC,OAAO,CAAC,CAAC,mBAAmB,EAChE,aAAa,GAAG,GAAG;;;CAIrC,AAAQ,cACN,GACmD;AACnD,SAAO,OAAO,WAAc;GAC1B,MAAM,WAAW,KAAK,WAAW;AACjC,UAAO,MAAM,EAAE,SAAS,CAAC,MAAM,UAAU,CAAC,OAAO,CAAC,CAAC,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsC1E,UAAU,KAAK,cAAc,MAAM,EAAE,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyChD,cAAc,KAAK,cAAc,MAAM,EAAE,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCxD,cAAc,KAAK,cAAc,MAAM,EAAE,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BxD,cAAc,KAAK,cAAc,MAAM,EAAE,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCxD,eAAe,KAAK,cAAc,MAAM,EAAE,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiC1D,gBAAgB,KAAK,cAAc,MAAM,EAAE,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4B5D,aAAa,KAAK,cAAc,MAAM,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCtD,cAAc,KAAK,cAAc,MAAM,EAAE,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6CxD,YAAY,KAAK,cAAc,MAAM,EAAE,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCpD,YAAY,KAAK,cAAc,MAAM,EAAE,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCpD,YAAY,KAAK,cAAc,MAAM,EAAE,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCpD,UAAU,KAAK,cAAc,MAAM,EAAE,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyDhD,sBAAsB,KAAK,eAAe,MAAM,EAAE,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDzE,sBAAsB,KAAK,eAAe,MAAM,EAAE,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDzE,sBAAsB,KAAK,eAAe,MAAM,EAAE,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDzE,oBAAoB,KAAK,eAAe,MAAM,EAAE,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0CrE,wBAAwB,KAAK,cAAc,MAAM,EAAE,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8B5E,yBAAyB,KAAK,cAAc,MAAM,EAAE,0BAA0B"}
1
+ {"version":3,"file":"algorand-client-transaction-creator.mjs","names":[],"sources":["../src/algorand-client-transaction-creator.ts"],"sourcesContent":["import { Expand } from '@algorandfoundation/algokit-common'\nimport { Transaction } from '@algorandfoundation/algokit-transact'\nimport { BuiltTransactions, TransactionComposer, TransactionComposerConfig } from './composer'\n\n/** Orchestrates creating transactions for `AlgorandClient`. */\nexport class AlgorandClientTransactionCreator {\n private _newGroup: () => TransactionComposer\n\n /**\n * Creates a new `AlgorandClientTransactionCreator`\n * @param newGroup A lambda that starts a new `TransactionComposer` transaction group\n * @example\n * ```typescript\n * const transactionCreator = new AlgorandClientTransactionCreator(() => new TransactionComposer())\n * ```\n */\n constructor(newGroup: (config?: TransactionComposerConfig) => TransactionComposer) {\n this._newGroup = newGroup\n }\n\n private _transaction<T>(c: (c: TransactionComposer) => (params: T) => TransactionComposer): (params: T) => Promise<Transaction> {\n return async (params: T) => {\n const composer = this._newGroup()\n const result = await c(composer).apply(composer, [params]).buildTransactions()\n return result.transactions.at(-1)!\n }\n }\n\n private _transactions<T>(\n c: (c: TransactionComposer) => (params: T) => TransactionComposer,\n ): (params: T) => Promise<Expand<BuiltTransactions>> {\n return async (params: T) => {\n const composer = this._newGroup()\n return await c(composer).apply(composer, [params]).buildTransactions()\n }\n }\n\n /**\n * Create a payment transaction to transfer Algo between accounts.\n * @param params The parameters for the payment transaction\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.payment({\n * sender: 'SENDERADDRESS',\n * receiver: 'RECEIVERADDRESS',\n * amount: (4).algo(),\n * })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.payment({\n * amount: (4).algo(),\n * receiver: 'RECEIVERADDRESS',\n * sender: 'SENDERADDRESS',\n * closeRemainderTo: 'CLOSEREMAINDERTOADDRESS',\n * lease: 'lease',\n * note: 'note',\n * // Use this with caution, it's generally better to use algorand.account.rekeyAccount\n * rekeyTo: 'REKEYTOADDRESS',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * })\n * ```\n * @returns The payment transaction\n */\n payment = this._transaction((c) => c.addPayment)\n /** Create a create Algorand Standard Asset transaction.\n *\n * The account that sends this transaction will automatically be\n * opted in to the asset and will hold all units after creation.\n *\n * @param params The parameters for the asset creation transaction\n *\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.assetCreate({ sender: \"CREATORADDRESS\", total: 100n})\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.assetCreate({\n * sender: 'CREATORADDRESS',\n * total: 100n,\n * decimals: 2,\n * assetName: 'asset',\n * unitName: 'unit',\n * url: 'url',\n * metadataHash: 'metadataHash',\n * defaultFrozen: false,\n * manager: 'MANAGERADDRESS',\n * reserve: 'RESERVEADDRESS',\n * freeze: 'FREEZEADDRESS',\n * clawback: 'CLAWBACKADDRESS',\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * })\n * ```\n * @returns The asset create transaction\n */\n assetCreate = this._transaction((c) => c.addAssetCreate)\n /** Create an asset config transaction to reconfigure an existing Algorand Standard Asset.\n *\n * **Note:** The manager, reserve, freeze, and clawback addresses\n * are immutably empty if they are not set. If manager is not set then\n * all fields are immutable from that point forward.\n *\n * @param params The parameters for the asset config transaction\n *\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.assetConfig({ sender: \"MANAGERADDRESS\", assetId: 123456n, manager: \"MANAGERADDRESS\" })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.assetConfig({\n * sender: 'MANAGERADDRESS',\n * assetId: 123456n,\n * manager: 'MANAGERADDRESS',\n * reserve: 'RESERVEADDRESS',\n * freeze: 'FREEZEADDRESS',\n * clawback: 'CLAWBACKADDRESS',\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * })\n * ```\n * @returns The asset config transaction\n */\n assetConfig = this._transaction((c) => c.addAssetConfig)\n /** Create an Algorand Standard Asset freeze transaction.\n *\n * @param params The parameters for the asset freeze transaction\n *\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.assetFreeze({ sender: \"MANAGERADDRESS\", assetId: 123456n, account: \"ACCOUNTADDRESS\", frozen: true })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.assetFreeze({\n * sender: 'MANAGERADDRESS',\n * assetId: 123456n,\n * account: 'ACCOUNTADDRESS',\n * frozen: true,\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * })\n * ```\n * @returns The asset freeze transaction\n */\n assetFreeze = this._transaction((c) => c.addAssetFreeze)\n /** Create an Algorand Standard Asset destroy transaction.\n *\n * Created assets can be destroyed only by the asset manager account.\n * All of the assets must be owned by the creator of the asset before\n * the asset can be deleted.\n *\n * @param params The parameters for the asset destroy transaction\n *\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.assetDestroy({ sender: \"MANAGERADDRESS\", assetId: 123456n })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.assetDestroy({\n * sender: 'MANAGERADDRESS',\n * assetId: 123456n,\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * })\n * ```\n * @returns The asset destroy transaction\n */\n assetDestroy = this._transaction((c) => c.addAssetDestroy)\n /** Create an Algorand Standard Asset transfer transaction.\n *\n * @param params The parameters for the asset transfer transaction\n *\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.assetTransfer({ sender: \"HOLDERADDRESS\", assetId: 123456n, amount: 1n, receiver: \"RECEIVERADDRESS\" })\n * ```\n * @example Advanced example (with clawback)\n * ```typescript\n * await algorand.createTransaction.assetTransfer({\n * sender: 'CLAWBACKADDRESS',\n * assetId: 123456n,\n * amount: 1n,\n * receiver: 'RECEIVERADDRESS',\n * clawbackTarget: 'HOLDERADDRESS',\n * // This field needs to be used with caution\n * closeAssetTo: 'ADDRESSTOCLOSETO'\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * })\n * ```\n * @returns The result of the asset transfer transaction\n */\n assetTransfer = this._transaction((c) => c.addAssetTransfer)\n /** Create an Algorand Standard Asset opt-in transaction.\n *\n * @param params The parameters for the asset opt-in transaction\n *\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.assetOptIn({ sender: \"SENDERADDRESS\", assetId: 123456n })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.assetOptIn({\n * sender: 'SENDERADDRESS',\n * assetId: 123456n,\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * })\n * ```\n * @returns The asset opt-in transaction\n */\n assetOptIn = this._transaction((c) => c.addAssetOptIn)\n /** Create an asset opt-out transaction.\n *\n * *Note:* If the account has a balance of the asset,\n * it will lose those assets\n *\n * @param params The parameters for the asset opt-out transaction\n *\n * @example Basic example (without creator, will be retrieved from algod)\n * ```typescript\n * await algorand.createTransaction.assetOptOut({ sender: \"SENDERADDRESS\", assetId: 123456n, ensureZeroBalance: true })\n * ```\n * @example Basic example (with creator)\n * ```typescript\n * await algorand.createTransaction.assetOptOut({ sender: \"SENDERADDRESS\", creator: \"CREATORADDRESS\", assetId: 123456n, ensureZeroBalance: true })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.assetOptOut({\n * sender: 'SENDERADDRESS',\n * assetId: 123456n,\n * creator: 'CREATORADDRESS',\n * ensureZeroBalance: true,\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * })\n * ```\n * @returns The asset opt-out transaction\n */\n assetOptOut = this._transaction((c) => c.addAssetOptOut)\n /** Create an application create transaction.\n *\n * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.\n *\n * @param params The parameters for the app creation transaction\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.appCreate({ sender: 'CREATORADDRESS', approvalProgram: 'TEALCODE', clearStateProgram: 'TEALCODE' })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.appCreate({\n * sender: 'CREATORADDRESS',\n * approvalProgram: \"TEALCODE\",\n * clearStateProgram: \"TEALCODE\",\n * schema: {\n * globalInts: 1,\n * globalByteSlices: 2,\n * localInts: 3,\n * localByteSlices: 4\n * },\n * extraProgramPages: 1,\n * onComplete: OnApplicationComplete.OptIn,\n * args: [new Uint8Array(1, 2, 3, 4)]\n * accountReferences: [\"ACCOUNT_1\"]\n * appReferences: [123n, 1234n]\n * assetReferences: [12345n]\n * boxReferences: [\"box1\", {appId: 1234n, name: \"box2\"}]\n * accessReferences: [{ appId: 1234n }]\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * rejectVersion: 1,\n *})\n * ```\n * @returns The application create transaction\n */\n appCreate = this._transaction((c) => c.addAppCreate)\n /** Create an application update transaction.\n *\n * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.\n *\n * @param params The parameters for the app update transaction\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.appUpdate({ sender: 'CREATORADDRESS', approvalProgram: 'TEALCODE', clearStateProgram: 'TEALCODE' })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.appUpdate({\n * sender: 'CREATORADDRESS',\n * approvalProgram: \"TEALCODE\",\n * clearStateProgram: \"TEALCODE\",\n * onComplete: OnApplicationComplete.UpdateApplication,\n * args: [new Uint8Array(1, 2, 3, 4)]\n * accountReferences: [\"ACCOUNT_1\"]\n * appReferences: [123n, 1234n]\n * assetReferences: [12345n]\n * boxReferences: [\"box1\", {appId: 1234n, name: \"box2\"}]\n * accessReferences: [{ appId: 1234n }]\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * rejectVersion: 1,\n *})\n * ```\n * @returns The application update transaction\n */\n appUpdate = this._transaction((c) => c.addAppUpdate)\n /** Create an application delete transaction.\n *\n * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.\n *\n * @param params The parameters for the app deletion transaction\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.appDelete({ sender: 'CREATORADDRESS' })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.appDelete({\n * sender: 'CREATORADDRESS',\n * onComplete: OnApplicationComplete.DeleteApplication,\n * args: [new Uint8Array(1, 2, 3, 4)]\n * accountReferences: [\"ACCOUNT_1\"]\n * appReferences: [123n, 1234n]\n * assetReferences: [12345n]\n * boxReferences: [\"box1\", {appId: 1234n, name: \"box2\"}]\n * accessReferences: [{ appId: 1234n }]\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * rejectVersion: 1,\n *})\n * ```\n * @returns The application delete transaction\n */\n appDelete = this._transaction((c) => c.addAppDelete)\n /** Create an application call transaction.\n *\n * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.\n *\n * @param params The parameters for the app call transaction\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.appCall({ sender: 'CREATORADDRESS' })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.appCall({\n * sender: 'CREATORADDRESS',\n * onComplete: OnApplicationComplete.OptIn,\n * args: [new Uint8Array(1, 2, 3, 4)]\n * accountReferences: [\"ACCOUNT_1\"]\n * appReferences: [123n, 1234n]\n * assetReferences: [12345n]\n * boxReferences: [\"box1\", {appId: 1234n, name: \"box2\"}]\n * accessReferences: [{ appId: 1234n }]\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * rejectVersion: 1,\n *})\n * ```\n * @returns The application call transaction\n */\n appCall = this._transaction((c) => c.addAppCall)\n /** Create an application create call with ABI method call transaction.\n *\n * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.\n *\n * @param params The parameters for the app creation transaction\n * @example Basic example\n * ```typescript\n * const method = new ABIMethod({\n * name: 'method',\n * args: [{ name: 'arg1', type: 'string' }],\n * returns: { type: 'string' },\n * })\n * await algorand.createTransaction.appCreateMethodCall({ sender: 'CREATORADDRESS', approvalProgram: 'TEALCODE', clearStateProgram: 'TEALCODE', method: method, args: [\"arg1_value\"] })\n * ```\n * @example Advanced example\n * ```typescript\n * const method = new ABIMethod({\n * name: 'method',\n * args: [{ name: 'arg1', type: 'string' }],\n * returns: { type: 'string' },\n * })\n * await algorand.createTransaction.appCreateMethodCall({\n * sender: 'CREATORADDRESS',\n * method: method,\n * args: [\"arg1_value\"],\n * approvalProgram: \"TEALCODE\",\n * clearStateProgram: \"TEALCODE\",\n * schema: {\n * globalInts: 1,\n * globalByteSlices: 2,\n * localInts: 3,\n * localByteSlices: 4\n * },\n * extraProgramPages: 1,\n * onComplete: OnApplicationComplete.OptIn,\n * args: [new Uint8Array(1, 2, 3, 4)]\n * accountReferences: [\"ACCOUNT_1\"]\n * appReferences: [123n, 1234n]\n * assetReferences: [12345n]\n * boxReferences: [\"box1\", {appId: 1234n, name: \"box2\"}]\n * accessReferences: [{ appId: 1234n }]\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * rejectVersion: 1,\n *})\n * ```\n * @returns The application ABI method create transaction\n */\n appCreateMethodCall = this._transactions((c) => c.addAppCreateMethodCall)\n /** Create an application update call with ABI method call transaction.\n *\n * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.\n *\n * @param params The parameters for the app update transaction\n * @example Basic example\n * ```typescript\n * const method = new ABIMethod({\n * name: 'method',\n * args: [{ name: 'arg1', type: 'string' }],\n * returns: { type: 'string' },\n * })\n * await algorand.createTransaction.appUpdateMethodCall({ sender: 'CREATORADDRESS', approvalProgram: 'TEALCODE', clearStateProgram: 'TEALCODE', method: method, args: [\"arg1_value\"] })\n * ```\n * @example Advanced example\n * ```typescript\n * const method = new ABIMethod({\n * name: 'method',\n * args: [{ name: 'arg1', type: 'string' }],\n * returns: { type: 'string' },\n * })\n * await algorand.createTransaction.appUpdateMethodCall({\n * sender: 'CREATORADDRESS',\n * method: method,\n * args: [\"arg1_value\"],\n * approvalProgram: \"TEALCODE\",\n * clearStateProgram: \"TEALCODE\",\n * onComplete: OnApplicationComplete.UpdateApplication,\n * args: [new Uint8Array(1, 2, 3, 4)]\n * accountReferences: [\"ACCOUNT_1\"]\n * appReferences: [123n, 1234n]\n * assetReferences: [12345n]\n * boxReferences: [\"box1\", {appId: 1234n, name: \"box2\"}]\n * accessReferences: [{ appId: 1234n }]\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * rejectVersion: 1,\n *})\n * ```\n * @returns The application ABI method update transaction\n */\n appUpdateMethodCall = this._transactions((c) => c.addAppUpdateMethodCall)\n /** Create an application delete call with ABI method call transaction.\n *\n * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.\n *\n * @param params The parameters for the app deletion transaction\n * @example Basic example\n * ```typescript\n * const method = new ABIMethod({\n * name: 'method',\n * args: [{ name: 'arg1', type: 'string' }],\n * returns: { type: 'string' },\n * })\n * await algorand.createTransaction.appDeleteMethodCall({ sender: 'CREATORADDRESS', method: method, args: [\"arg1_value\"] })\n * ```\n * @example Advanced example\n * ```typescript\n * const method = new ABIMethod({\n * name: 'method',\n * args: [{ name: 'arg1', type: 'string' }],\n * returns: { type: 'string' },\n * })\n * await algorand.createTransaction.appDeleteMethodCall({\n * sender: 'CREATORADDRESS',\n * method: method,\n * args: [\"arg1_value\"],\n * onComplete: OnApplicationComplete.DeleteApplication,\n * args: [new Uint8Array(1, 2, 3, 4)]\n * accountReferences: [\"ACCOUNT_1\"]\n * appReferences: [123n, 1234n]\n * assetReferences: [12345n]\n * boxReferences: [\"box1\", {appId: 1234n, name: \"box2\"}]\n * accessReferences: [{ appId: 1234n }]\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * rejectVersion: 1,\n *})\n * ```\n * @returns The application ABI method delete transaction\n */\n appDeleteMethodCall = this._transactions((c) => c.addAppDeleteMethodCall)\n /** Create an application call with ABI method call transaction.\n *\n * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.\n *\n * @param params The parameters for the app call transaction\n * @example Basic example\n * ```typescript\n * const method = new ABIMethod({\n * name: 'method',\n * args: [{ name: 'arg1', type: 'string' }],\n * returns: { type: 'string' },\n * })\n * await algorand.createTransaction.appCallMethodCall({ sender: 'CREATORADDRESS', method: method, args: [\"arg1_value\"] })\n * ```\n * @example Advanced example\n * ```typescript\n * const method = new ABIMethod({\n * name: 'method',\n * args: [{ name: 'arg1', type: 'string' }],\n * returns: { type: 'string' },\n * })\n * await algorand.createTransaction.appCallMethodCall({\n * sender: 'CREATORADDRESS',\n * method: method,\n * args: [\"arg1_value\"],\n * onComplete: OnApplicationComplete.OptIn,\n * args: [new Uint8Array(1, 2, 3, 4)]\n * accountReferences: [\"ACCOUNT_1\"]\n * appReferences: [123n, 1234n]\n * assetReferences: [12345n]\n * boxReferences: [\"box1\", {appId: 1234n, name: \"box2\"}]\n * accessReferences: [{ appId: 1234n }]\n * lease: 'lease',\n * note: 'note',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * rejectVersion: 1,\n *})\n * ```\n * @returns The application ABI method call transaction\n */\n appCallMethodCall = this._transactions((c) => c.addAppCallMethodCall)\n /**\n * Create an online key registration transaction.\n * @param params The parameters for the key registration transaction\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.onlineKeyRegistration({\n * sender: 'SENDERADDRESS',\n * voteKey: Uint8Array.from(Buffer.from(\"voteKeyBase64\", 'base64')),\n * selectionKey: Uint8Array.from(Buffer.from(\"selectionKeyBase64\", 'base64')),\n * stateProofKey: Uint8Array.from(Buffer.from(\"stateProofKeyBase64\", 'base64')),\n * voteFirst: 1n,\n * voteLast: 1000n,\n * voteKeyDilution: 1n,\n * })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.onlineKeyRegistration({\n * sender: 'SENDERADDRESS',\n * voteKey: Uint8Array.from(Buffer.from(\"voteKeyBase64\", 'base64')),\n * selectionKey: Uint8Array.from(Buffer.from(\"selectionKeyBase64\", 'base64')),\n * stateProofKey: Uint8Array.from(Buffer.from(\"stateProofKeyBase64\", 'base64')),\n * voteFirst: 1n,\n * voteLast: 1000n,\n * voteKeyDilution: 1n,\n * lease: 'lease',\n * note: 'note',\n * // Use this with caution, it's generally better to use algorand.account.rekeyAccount\n * rekeyTo: 'REKEYTOADDRESS',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * })\n * ```\n * @returns The online key registration transaction\n */\n onlineKeyRegistration = this._transaction((c) => c.addOnlineKeyRegistration)\n /**\n * Create an offline key registration transaction.\n * @param params The parameters for the key registration transaction\n * @example Basic example\n * ```typescript\n * await algorand.createTransaction.offlineKeyRegistration({\n * sender: 'SENDERADDRESS',\n * })\n * ```\n * @example Advanced example\n * ```typescript\n * await algorand.createTransaction.offlineKeyRegistration({\n * sender: 'SENDERADDRESS',\n * lease: 'lease',\n * note: 'note',\n * // Use this with caution, it's generally better to use algorand.account.rekeyAccount\n * rekeyTo: 'REKEYTOADDRESS',\n * // You wouldn't normally set this field\n * firstValidRound: 1000n,\n * validityWindow: 10,\n * extraFee: (1000).microAlgo(),\n * staticFee: (1000).microAlgo(),\n * // Max fee doesn't make sense with extraFee AND staticFee\n * // already specified, but here for completeness\n * maxFee: (3000).microAlgo(),\n * })\n * ```\n * @returns The offline key registration transaction\n */\n offlineKeyRegistration = this._transaction((c) => c.addOfflineKeyRegistration)\n}\n"],"mappings":";;AAKA,IAAa,mCAAb,MAA8C;CAC5C;;;;;;;;;CAUA,YAAY,UAAuE;AACjF,OAAK,YAAY;;CAGnB,aAAwB,GAAwG;AAC9H,SAAO,OAAO,WAAc;GAC1B,MAAM,WAAW,KAAK,WAAW;AAEjC,WADe,MAAM,EAAE,SAAS,CAAC,MAAM,UAAU,CAAC,OAAO,CAAC,CAAC,mBAAmB,EAChE,aAAa,GAAG,GAAG;;;CAIrC,cACE,GACmD;AACnD,SAAO,OAAO,WAAc;GAC1B,MAAM,WAAW,KAAK,WAAW;AACjC,UAAO,MAAM,EAAE,SAAS,CAAC,MAAM,UAAU,CAAC,OAAO,CAAC,CAAC,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsC1E,UAAU,KAAK,cAAc,MAAM,EAAE,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyChD,cAAc,KAAK,cAAc,MAAM,EAAE,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCxD,cAAc,KAAK,cAAc,MAAM,EAAE,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BxD,cAAc,KAAK,cAAc,MAAM,EAAE,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCxD,eAAe,KAAK,cAAc,MAAM,EAAE,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiC1D,gBAAgB,KAAK,cAAc,MAAM,EAAE,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4B5D,aAAa,KAAK,cAAc,MAAM,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCtD,cAAc,KAAK,cAAc,MAAM,EAAE,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6CxD,YAAY,KAAK,cAAc,MAAM,EAAE,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCpD,YAAY,KAAK,cAAc,MAAM,EAAE,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCpD,YAAY,KAAK,cAAc,MAAM,EAAE,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCpD,UAAU,KAAK,cAAc,MAAM,EAAE,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyDhD,sBAAsB,KAAK,eAAe,MAAM,EAAE,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDzE,sBAAsB,KAAK,eAAe,MAAM,EAAE,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDzE,sBAAsB,KAAK,eAAe,MAAM,EAAE,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDzE,oBAAoB,KAAK,eAAe,MAAM,EAAE,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0CrE,wBAAwB,KAAK,cAAc,MAAM,EAAE,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8B5E,yBAAyB,KAAK,cAAc,MAAM,EAAE,0BAA0B"}
@@ -402,8 +402,7 @@ declare class AlgorandClientTransactionSender {
402
402
  * @returns The result of the asset opt-out transaction and the transaction that was sent
403
403
  */
404
404
  assetOptOut: (params: Omit<AssetOptOutParams, "creator"> & {
405
- /** Optional asset creator account address; if not specified it will be retrieved from algod */
406
- creator?: ReadableAddress;
405
+ /** Optional asset creator account address; if not specified it will be retrieved from algod */creator?: ReadableAddress;
407
406
  /** Whether or not to check if the account has a zero balance first or not.
408
407
  *
409
408
  * If this is set to `true` and the account has an asset balance it will throw an error.
@@ -747,6 +746,7 @@ declare class AlgorandClientTransactionSender {
747
746
  */
748
747
  appCreateMethodCall: (params: {
749
748
  signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
749
+ appId?: 0 | undefined;
750
750
  sender: SendingAddress;
751
751
  rekeyTo?: ReadableAddress | undefined;
752
752
  note?: (Uint8Array | string) | undefined;
@@ -757,7 +757,6 @@ declare class AlgorandClientTransactionSender {
757
757
  validityWindow?: number | bigint | undefined;
758
758
  firstValidRound?: bigint | undefined;
759
759
  lastValidRound?: bigint | undefined;
760
- appId?: 0 | undefined;
761
760
  onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
762
761
  accountReferences?: ReadableAddress[] | undefined;
763
762
  appReferences?: bigint[] | undefined;
@@ -835,6 +834,7 @@ declare class AlgorandClientTransactionSender {
835
834
  */
836
835
  appUpdateMethodCall: (params: {
837
836
  signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
837
+ appId: bigint;
838
838
  sender: SendingAddress;
839
839
  rekeyTo?: ReadableAddress | undefined;
840
840
  note?: (Uint8Array | string) | undefined;
@@ -845,7 +845,6 @@ declare class AlgorandClientTransactionSender {
845
845
  validityWindow?: number | bigint | undefined;
846
846
  firstValidRound?: bigint | undefined;
847
847
  lastValidRound?: bigint | undefined;
848
- appId: bigint;
849
848
  onComplete?: OnApplicationComplete.UpdateApplication | undefined;
850
849
  accountReferences?: ReadableAddress[] | undefined;
851
850
  appReferences?: bigint[] | undefined;
@@ -914,6 +913,7 @@ declare class AlgorandClientTransactionSender {
914
913
  */
915
914
  appDeleteMethodCall: (params: {
916
915
  signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
916
+ appId: bigint;
917
917
  sender: SendingAddress;
918
918
  rekeyTo?: ReadableAddress | undefined;
919
919
  note?: (Uint8Array | string) | undefined;
@@ -924,7 +924,6 @@ declare class AlgorandClientTransactionSender {
924
924
  validityWindow?: number | bigint | undefined;
925
925
  firstValidRound?: bigint | undefined;
926
926
  lastValidRound?: bigint | undefined;
927
- appId: bigint;
928
927
  onComplete?: OnApplicationComplete.DeleteApplication | undefined;
929
928
  accountReferences?: ReadableAddress[] | undefined;
930
929
  appReferences?: bigint[] | undefined;
@@ -991,6 +990,7 @@ declare class AlgorandClientTransactionSender {
991
990
  */
992
991
  appCallMethodCall: (params: {
993
992
  signer?: (TransactionSigner | AddressWithTransactionSigner) | undefined;
993
+ appId: bigint;
994
994
  sender: SendingAddress;
995
995
  rekeyTo?: ReadableAddress | undefined;
996
996
  note?: (Uint8Array | string) | undefined;
@@ -1001,7 +1001,6 @@ declare class AlgorandClientTransactionSender {
1001
1001
  validityWindow?: number | bigint | undefined;
1002
1002
  firstValidRound?: bigint | undefined;
1003
1003
  lastValidRound?: bigint | undefined;
1004
- appId: bigint;
1005
1004
  onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.DeleteApplication | undefined;
1006
1005
  accountReferences?: ReadableAddress[] | undefined;
1007
1006
  appReferences?: bigint[] | undefined;