@algorandfoundation/algokit-utils 10.0.0-alpha.3 → 10.0.0-alpha.32

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 (704) hide show
  1. package/_virtual/rolldown_runtime.js +10 -15
  2. package/abi/index.d.ts +2 -1
  3. package/abi/index.js +3 -0
  4. package/abi/index.mjs +2 -1
  5. package/account-manager.d.ts +448 -0
  6. package/account-manager.js +623 -0
  7. package/account-manager.js.map +1 -0
  8. package/account-manager.mjs +620 -0
  9. package/account-manager.mjs.map +1 -0
  10. package/account.d.ts +156 -0
  11. package/account.js +10 -0
  12. package/account.js.map +1 -0
  13. package/account.mjs +9 -0
  14. package/account.mjs.map +1 -0
  15. package/algod-client/index.d.ts +3 -7
  16. package/algod-client/index.js +2 -5
  17. package/algod-client/index.mjs +2 -2
  18. package/algorand-client-transaction-creator.d.ts +1103 -0
  19. package/algorand-client-transaction-creator.js +735 -0
  20. package/algorand-client-transaction-creator.js.map +1 -0
  21. package/algorand-client-transaction-creator.mjs +734 -0
  22. package/algorand-client-transaction-creator.mjs.map +1 -0
  23. package/algorand-client-transaction-sender.d.ts +1317 -0
  24. package/algorand-client-transaction-sender.js +933 -0
  25. package/algorand-client-transaction-sender.js.map +1 -0
  26. package/algorand-client-transaction-sender.mjs +932 -0
  27. package/algorand-client-transaction-sender.mjs.map +1 -0
  28. package/algorand-client.d.ts +246 -0
  29. package/algorand-client.js +325 -0
  30. package/algorand-client.js.map +1 -0
  31. package/algorand-client.mjs +325 -0
  32. package/algorand-client.mjs.map +1 -0
  33. package/amount.d.ts +46 -3
  34. package/amount.js +92 -13
  35. package/amount.js.map +1 -1
  36. package/amount.mjs +80 -3
  37. package/amount.mjs.map +1 -1
  38. package/app-client.d.ts +2130 -0
  39. package/app-client.js +909 -0
  40. package/app-client.js.map +1 -0
  41. package/app-client.mjs +908 -0
  42. package/app-client.mjs.map +1 -0
  43. package/app-deployer.d.ts +166 -0
  44. package/app-deployer.js +353 -0
  45. package/app-deployer.js.map +1 -0
  46. package/app-deployer.mjs +353 -0
  47. package/app-deployer.mjs.map +1 -0
  48. package/app-factory.d.ts +965 -0
  49. package/app-factory.js +448 -0
  50. package/app-factory.js.map +1 -0
  51. package/app-factory.mjs +448 -0
  52. package/app-factory.mjs.map +1 -0
  53. package/app-manager.d.ts +323 -0
  54. package/app-manager.js +468 -0
  55. package/app-manager.js.map +1 -0
  56. package/app-manager.mjs +468 -0
  57. package/app-manager.mjs.map +1 -0
  58. package/app-spec.d.ts +203 -0
  59. package/app-spec.js +137 -0
  60. package/app-spec.js.map +1 -0
  61. package/app-spec.mjs +137 -0
  62. package/app-spec.mjs.map +1 -0
  63. package/app.d.ts +257 -0
  64. package/app.js +49 -0
  65. package/app.js.map +1 -0
  66. package/app.mjs +42 -0
  67. package/app.mjs.map +1 -0
  68. package/asset-manager.d.ts +212 -0
  69. package/asset-manager.js +166 -0
  70. package/asset-manager.js.map +1 -0
  71. package/asset-manager.mjs +166 -0
  72. package/asset-manager.mjs.map +1 -0
  73. package/async-event-emitter.d.ts +16 -0
  74. package/async-event-emitter.js +38 -0
  75. package/async-event-emitter.js.map +1 -0
  76. package/async-event-emitter.mjs +37 -0
  77. package/async-event-emitter.mjs.map +1 -0
  78. package/client-manager.d.ts +475 -0
  79. package/client-manager.js +616 -0
  80. package/client-manager.js.map +1 -0
  81. package/client-manager.mjs +616 -0
  82. package/client-manager.mjs.map +1 -0
  83. package/composer.d.ts +947 -0
  84. package/composer.js +1584 -0
  85. package/composer.js.map +1 -0
  86. package/composer.mjs +1583 -0
  87. package/composer.mjs.map +1 -0
  88. package/config.d.ts +1 -1
  89. package/config.js +2 -2
  90. package/config.js.map +1 -1
  91. package/config.mjs +1 -1
  92. package/config.mjs.map +1 -1
  93. package/debugging.d.ts +47 -0
  94. package/debugging.js +20 -0
  95. package/debugging.js.map +1 -0
  96. package/debugging.mjs +15 -0
  97. package/debugging.mjs.map +1 -0
  98. package/dispenser-client.d.ts +90 -0
  99. package/dispenser-client.js +127 -0
  100. package/dispenser-client.js.map +1 -0
  101. package/dispenser-client.mjs +127 -0
  102. package/dispenser-client.mjs.map +1 -0
  103. package/expand.d.ts +2 -0
  104. package/expand.js +0 -0
  105. package/expand.mjs +0 -0
  106. package/index.d.ts +6 -6
  107. package/index.js +4 -10
  108. package/index.mjs +5 -6
  109. package/indexer-client/index.d.ts +2 -2
  110. package/indexer-client/index.js +6 -6
  111. package/indexer-client/index.mjs +2 -2
  112. package/{indexer-lookup.d.ts → indexer-client/indexer-lookup.d.ts} +8 -11
  113. package/{indexer-lookup.mjs → indexer-client/indexer-lookup.js} +6 -10
  114. package/indexer-client/indexer-lookup.js.map +1 -0
  115. package/{indexer-lookup.js → indexer-client/indexer-lookup.mjs} +3 -18
  116. package/indexer-client/indexer-lookup.mjs.map +1 -0
  117. package/indexer.d.ts +40 -0
  118. package/indexer.js +38 -0
  119. package/indexer.js.map +1 -0
  120. package/indexer.mjs +35 -0
  121. package/indexer.mjs.map +1 -0
  122. package/instance-of.d.ts +8 -0
  123. package/kmd-account-manager.d.ts +74 -0
  124. package/kmd-account-manager.js +167 -0
  125. package/kmd-account-manager.js.map +1 -0
  126. package/kmd-account-manager.mjs +165 -0
  127. package/kmd-account-manager.mjs.map +1 -0
  128. package/kmd-client/index.d.ts +1 -2
  129. package/kmd-client/index.js +0 -5
  130. package/kmd-client/index.mjs +1 -2
  131. package/lifecycle-events.d.ts +14 -0
  132. package/lifecycle-events.js +11 -0
  133. package/lifecycle-events.js.map +1 -0
  134. package/lifecycle-events.mjs +10 -0
  135. package/lifecycle-events.mjs.map +1 -0
  136. package/logging.d.ts +13 -0
  137. package/logging.js +47 -0
  138. package/logging.js.map +1 -0
  139. package/logging.mjs +42 -0
  140. package/logging.mjs.map +1 -0
  141. package/logic-error.d.ts +39 -0
  142. package/logic-error.js +54 -0
  143. package/logic-error.js.map +1 -0
  144. package/logic-error.mjs +53 -0
  145. package/logic-error.mjs.map +1 -0
  146. package/network-client.d.ts +43 -0
  147. package/network-client.js +14 -0
  148. package/network-client.js.map +1 -0
  149. package/network-client.mjs +13 -0
  150. package/network-client.mjs.map +1 -0
  151. package/package.json +14 -5
  152. package/packages/abi/src/abi-method.d.ts +1 -1
  153. package/packages/abi/src/abi-method.js +1 -1
  154. package/packages/abi/src/abi-method.js.map +1 -1
  155. package/packages/abi/src/abi-method.mjs +1 -1
  156. package/packages/abi/src/abi-method.mjs.map +1 -1
  157. package/packages/abi/src/abi-type.d.ts +1 -3
  158. package/packages/abi/src/abi-type.js +7 -36
  159. package/packages/abi/src/abi-type.js.map +1 -1
  160. package/packages/abi/src/abi-type.mjs +7 -36
  161. package/packages/abi/src/abi-type.mjs.map +1 -1
  162. package/packages/abi/src/arc56-contract.js +1 -0
  163. package/packages/abi/src/arc56-contract.js.map +1 -1
  164. package/packages/abi/src/arc56-contract.mjs +1 -0
  165. package/packages/abi/src/arc56-contract.mjs.map +1 -1
  166. package/packages/abi/src/utils.d.ts +22 -0
  167. package/packages/abi/src/utils.js +57 -0
  168. package/packages/abi/src/utils.js.map +1 -0
  169. package/packages/abi/src/utils.mjs +55 -0
  170. package/packages/abi/src/utils.mjs.map +1 -0
  171. package/packages/algo25/src/index.js +1 -1
  172. package/packages/algo25/src/index.mjs +1 -1
  173. package/packages/algod_client/src/apis/api-service.d.ts +44 -44
  174. package/packages/algod_client/src/apis/api-service.js +155 -155
  175. package/packages/algod_client/src/apis/api-service.js.map +1 -1
  176. package/packages/algod_client/src/apis/api-service.mjs +155 -155
  177. package/packages/algod_client/src/apis/api-service.mjs.map +1 -1
  178. package/packages/algod_client/src/core/api-error.js +3 -1
  179. package/packages/algod_client/src/core/api-error.js.map +1 -1
  180. package/packages/algod_client/src/core/api-error.mjs +3 -1
  181. package/packages/algod_client/src/core/api-error.mjs.map +1 -1
  182. package/packages/algod_client/src/core/model-runtime.js +6 -6
  183. package/packages/algod_client/src/core/model-runtime.js.map +1 -1
  184. package/packages/algod_client/src/core/model-runtime.mjs +8 -8
  185. package/packages/algod_client/src/core/model-runtime.mjs.map +1 -1
  186. package/packages/algod_client/src/models/account-participation.js +4 -4
  187. package/packages/algod_client/src/models/account-participation.js.map +1 -1
  188. package/packages/algod_client/src/models/account-participation.mjs +4 -4
  189. package/packages/algod_client/src/models/account-participation.mjs.map +1 -1
  190. package/packages/algod_client/src/models/application-state-schema.d.ts +2 -2
  191. package/packages/algod_client/src/models/application-state-schema.js +2 -2
  192. package/packages/algod_client/src/models/application-state-schema.js.map +1 -1
  193. package/packages/algod_client/src/models/application-state-schema.mjs +2 -2
  194. package/packages/algod_client/src/models/application-state-schema.mjs.map +1 -1
  195. package/packages/algod_client/src/models/asset-params.js +2 -1
  196. package/packages/algod_client/src/models/asset-params.js.map +1 -1
  197. package/packages/algod_client/src/models/asset-params.mjs +2 -1
  198. package/packages/algod_client/src/models/asset-params.mjs.map +1 -1
  199. package/packages/algod_client/src/models/block-response.js +1 -2
  200. package/packages/algod_client/src/models/block-response.js.map +1 -1
  201. package/packages/algod_client/src/models/block-response.mjs +2 -3
  202. package/packages/algod_client/src/models/block-response.mjs.map +1 -1
  203. package/packages/algod_client/src/models/block.d.ts +60 -40
  204. package/packages/algod_client/src/models/block.js +184 -108
  205. package/packages/algod_client/src/models/block.js.map +1 -1
  206. package/packages/algod_client/src/models/block.mjs +184 -108
  207. package/packages/algod_client/src/models/block.mjs.map +1 -1
  208. package/packages/algod_client/src/models/eval-delta-key-value.js +2 -2
  209. package/packages/algod_client/src/models/eval-delta-key-value.js.map +1 -1
  210. package/packages/algod_client/src/models/eval-delta-key-value.mjs +2 -2
  211. package/packages/algod_client/src/models/eval-delta-key-value.mjs.map +1 -1
  212. package/packages/algod_client/src/models/eval-delta.js +2 -2
  213. package/packages/algod_client/src/models/eval-delta.js.map +1 -1
  214. package/packages/algod_client/src/models/eval-delta.mjs +2 -2
  215. package/packages/algod_client/src/models/eval-delta.mjs.map +1 -1
  216. package/packages/algod_client/src/models/ledger-state-delta.js +1 -1
  217. package/packages/algod_client/src/models/ledger-state-delta.js.map +1 -1
  218. package/packages/algod_client/src/models/ledger-state-delta.mjs +2 -2
  219. package/packages/algod_client/src/models/ledger-state-delta.mjs.map +1 -1
  220. package/packages/algod_client/src/models/simulate-request.js +1 -1
  221. package/packages/algod_client/src/models/simulate-request.mjs +1 -1
  222. package/packages/algod_client/src/models/simulate-response.d.ts +2 -1
  223. package/packages/algod_client/src/models/simulate-response.js +6 -1
  224. package/packages/algod_client/src/models/simulate-response.js.map +1 -1
  225. package/packages/algod_client/src/models/simulate-response.mjs +6 -2
  226. package/packages/algod_client/src/models/simulate-response.mjs.map +1 -1
  227. package/packages/algod_client/src/models/simulate-unnamed-resources-accessed.d.ts +3 -5
  228. package/packages/algod_client/src/models/simulate-unnamed-resources-accessed.js +4 -6
  229. package/packages/algod_client/src/models/simulate-unnamed-resources-accessed.js.map +1 -1
  230. package/packages/algod_client/src/models/simulate-unnamed-resources-accessed.mjs +3 -5
  231. package/packages/algod_client/src/models/simulate-unnamed-resources-accessed.mjs.map +1 -1
  232. package/packages/algod_client/src/models/transaction-parameters-response.js +2 -2
  233. package/packages/algod_client/src/models/transaction-parameters-response.js.map +1 -1
  234. package/packages/algod_client/src/models/transaction-parameters-response.mjs +2 -2
  235. package/packages/algod_client/src/models/transaction-parameters-response.mjs.map +1 -1
  236. package/packages/common/src/address.d.ts +0 -1
  237. package/packages/common/src/address.js +4 -17
  238. package/packages/common/src/address.js.map +1 -1
  239. package/packages/common/src/address.mjs +5 -17
  240. package/packages/common/src/address.mjs.map +1 -1
  241. package/packages/common/src/codecs/composite/map.js +7 -4
  242. package/packages/common/src/codecs/composite/map.js.map +1 -1
  243. package/packages/common/src/codecs/composite/map.mjs +7 -4
  244. package/packages/common/src/codecs/composite/map.mjs.map +1 -1
  245. package/packages/common/src/codecs/composite/record.js +0 -1
  246. package/packages/common/src/codecs/composite/record.js.map +1 -1
  247. package/packages/common/src/codecs/primitives/address.js +0 -1
  248. package/packages/common/src/codecs/primitives/address.js.map +1 -1
  249. package/packages/common/src/codecs/primitives/bytes-base64.js +26 -0
  250. package/packages/common/src/codecs/primitives/bytes-base64.js.map +1 -0
  251. package/packages/common/src/codecs/primitives/bytes-base64.mjs +25 -0
  252. package/packages/common/src/codecs/primitives/bytes-base64.mjs.map +1 -0
  253. package/packages/common/src/codecs/primitives/bytes.js +0 -1
  254. package/packages/common/src/codecs/primitives/bytes.js.map +1 -1
  255. package/packages/common/src/codecs/primitives/fixed-bytes.js +0 -1
  256. package/packages/common/src/codecs/primitives/fixed-bytes.js.map +1 -1
  257. package/packages/common/src/codecs/wire.js +0 -1
  258. package/packages/common/src/codecs/wire.js.map +1 -1
  259. package/packages/common/src/json.mjs +2 -2
  260. package/packages/common/src/json.mjs.map +1 -1
  261. package/packages/common/src/msgpack.js +0 -1
  262. package/packages/common/src/msgpack.js.map +1 -1
  263. package/packages/{sdk/src/logic → common/src}/sourcemap.d.ts +2 -2
  264. package/packages/{sdk/src/logic → common/src}/sourcemap.js +2 -2
  265. package/packages/{sdk/src/logic → common/src}/sourcemap.js.map +1 -1
  266. package/packages/{sdk/src/logic → common/src}/sourcemap.mjs +1 -1
  267. package/packages/{sdk/src/logic → common/src}/sourcemap.mjs.map +1 -1
  268. package/packages/indexer_client/src/apis/api-service.d.ts +1 -1
  269. package/packages/indexer_client/src/apis/api-service.js +12 -12
  270. package/packages/indexer_client/src/apis/api-service.js.map +1 -1
  271. package/packages/indexer_client/src/apis/api-service.mjs +12 -12
  272. package/packages/indexer_client/src/apis/api-service.mjs.map +1 -1
  273. package/packages/indexer_client/src/core/api-error.js +3 -1
  274. package/packages/indexer_client/src/core/api-error.js.map +1 -1
  275. package/packages/indexer_client/src/core/api-error.mjs +3 -1
  276. package/packages/indexer_client/src/core/api-error.mjs.map +1 -1
  277. package/packages/indexer_client/src/core/model-runtime.js +0 -15
  278. package/packages/indexer_client/src/core/model-runtime.js.map +1 -1
  279. package/packages/indexer_client/src/core/model-runtime.mjs +1 -13
  280. package/packages/indexer_client/src/core/model-runtime.mjs.map +1 -1
  281. package/packages/indexer_client/src/models/account-participation.js +4 -4
  282. package/packages/indexer_client/src/models/account-participation.js.map +1 -1
  283. package/packages/indexer_client/src/models/account-participation.mjs +4 -4
  284. package/packages/indexer_client/src/models/account-participation.mjs.map +1 -1
  285. package/packages/indexer_client/src/models/application-state-schema.d.ts +2 -2
  286. package/packages/indexer_client/src/models/application-state-schema.js +2 -2
  287. package/packages/indexer_client/src/models/application-state-schema.js.map +1 -1
  288. package/packages/indexer_client/src/models/application-state-schema.mjs +2 -2
  289. package/packages/indexer_client/src/models/application-state-schema.mjs.map +1 -1
  290. package/packages/indexer_client/src/models/asset-params.js +2 -1
  291. package/packages/indexer_client/src/models/asset-params.js.map +1 -1
  292. package/packages/indexer_client/src/models/asset-params.mjs +2 -1
  293. package/packages/indexer_client/src/models/asset-params.mjs.map +1 -1
  294. package/packages/indexer_client/src/models/block.d.ts +5 -5
  295. package/packages/indexer_client/src/models/block.js +13 -13
  296. package/packages/indexer_client/src/models/block.js.map +1 -1
  297. package/packages/indexer_client/src/models/block.mjs +13 -13
  298. package/packages/indexer_client/src/models/block.mjs.map +1 -1
  299. package/packages/indexer_client/src/models/eval-delta-key-value.d.ts +1 -1
  300. package/packages/indexer_client/src/models/eval-delta-key-value.js +2 -2
  301. package/packages/indexer_client/src/models/eval-delta-key-value.js.map +1 -1
  302. package/packages/indexer_client/src/models/eval-delta-key-value.mjs +2 -2
  303. package/packages/indexer_client/src/models/eval-delta-key-value.mjs.map +1 -1
  304. package/packages/indexer_client/src/models/eval-delta.d.ts +1 -1
  305. package/packages/indexer_client/src/models/eval-delta.js +2 -2
  306. package/packages/indexer_client/src/models/eval-delta.js.map +1 -1
  307. package/packages/indexer_client/src/models/eval-delta.mjs +2 -2
  308. package/packages/indexer_client/src/models/eval-delta.mjs.map +1 -1
  309. package/packages/indexer_client/src/models/hb-proof-fields.js +6 -6
  310. package/packages/indexer_client/src/models/hb-proof-fields.js.map +1 -1
  311. package/packages/indexer_client/src/models/hb-proof-fields.mjs +6 -6
  312. package/packages/indexer_client/src/models/hb-proof-fields.mjs.map +1 -1
  313. package/packages/indexer_client/src/models/participation-updates.d.ts +2 -2
  314. package/packages/indexer_client/src/models/participation-updates.js +2 -2
  315. package/packages/indexer_client/src/models/participation-updates.js.map +1 -1
  316. package/packages/indexer_client/src/models/participation-updates.mjs +2 -2
  317. package/packages/indexer_client/src/models/participation-updates.mjs.map +1 -1
  318. package/packages/indexer_client/src/models/state-proof-verifier.js +2 -2
  319. package/packages/indexer_client/src/models/state-proof-verifier.js.map +1 -1
  320. package/packages/indexer_client/src/models/state-proof-verifier.mjs +2 -2
  321. package/packages/indexer_client/src/models/state-proof-verifier.mjs.map +1 -1
  322. package/packages/indexer_client/src/models/state-schema.d.ts +2 -2
  323. package/packages/indexer_client/src/models/state-schema.js +2 -2
  324. package/packages/indexer_client/src/models/state-schema.js.map +1 -1
  325. package/packages/indexer_client/src/models/state-schema.mjs +2 -2
  326. package/packages/indexer_client/src/models/state-schema.mjs.map +1 -1
  327. package/packages/indexer_client/src/models/teal-key-value.d.ts +1 -1
  328. package/packages/indexer_client/src/models/teal-key-value.js +2 -2
  329. package/packages/indexer_client/src/models/teal-key-value.js.map +1 -1
  330. package/packages/indexer_client/src/models/teal-key-value.mjs +2 -2
  331. package/packages/indexer_client/src/models/teal-key-value.mjs.map +1 -1
  332. package/packages/indexer_client/src/models/transaction-heartbeat.js +2 -1
  333. package/packages/indexer_client/src/models/transaction-heartbeat.js.map +1 -1
  334. package/packages/indexer_client/src/models/transaction-heartbeat.mjs +2 -1
  335. package/packages/indexer_client/src/models/transaction-heartbeat.mjs.map +1 -1
  336. package/packages/indexer_client/src/models/transaction-keyreg.js +4 -4
  337. package/packages/indexer_client/src/models/transaction-keyreg.js.map +1 -1
  338. package/packages/indexer_client/src/models/transaction-keyreg.mjs +4 -4
  339. package/packages/indexer_client/src/models/transaction-keyreg.mjs.map +1 -1
  340. package/packages/indexer_client/src/models/transaction-signature-logicsig.js +2 -1
  341. package/packages/indexer_client/src/models/transaction-signature-logicsig.js.map +1 -1
  342. package/packages/indexer_client/src/models/transaction-signature-logicsig.mjs +2 -1
  343. package/packages/indexer_client/src/models/transaction-signature-logicsig.mjs.map +1 -1
  344. package/packages/indexer_client/src/models/transaction-signature-multisig-subsignature.js +3 -3
  345. package/packages/indexer_client/src/models/transaction-signature-multisig-subsignature.js.map +1 -1
  346. package/packages/indexer_client/src/models/transaction-signature-multisig-subsignature.mjs +3 -3
  347. package/packages/indexer_client/src/models/transaction-signature-multisig-subsignature.mjs.map +1 -1
  348. package/packages/indexer_client/src/models/transaction-state-proof.d.ts +1 -1
  349. package/packages/indexer_client/src/models/transaction-state-proof.js +2 -2
  350. package/packages/indexer_client/src/models/transaction-state-proof.js.map +1 -1
  351. package/packages/indexer_client/src/models/transaction-state-proof.mjs +2 -2
  352. package/packages/indexer_client/src/models/transaction-state-proof.mjs.map +1 -1
  353. package/packages/indexer_client/src/models/transaction.d.ts +2 -2
  354. package/packages/indexer_client/src/models/transaction.js +6 -5
  355. package/packages/indexer_client/src/models/transaction.js.map +1 -1
  356. package/packages/indexer_client/src/models/transaction.mjs +6 -5
  357. package/packages/indexer_client/src/models/transaction.mjs.map +1 -1
  358. package/packages/kmd_client/src/apis/api-service.d.ts +5 -5
  359. package/packages/kmd_client/src/apis/api-service.js +32 -32
  360. package/packages/kmd_client/src/apis/api-service.js.map +1 -1
  361. package/packages/kmd_client/src/apis/api-service.mjs +32 -32
  362. package/packages/kmd_client/src/apis/api-service.mjs.map +1 -1
  363. package/packages/kmd_client/src/core/api-error.js +3 -1
  364. package/packages/kmd_client/src/core/api-error.js.map +1 -1
  365. package/packages/kmd_client/src/core/api-error.mjs +3 -1
  366. package/packages/kmd_client/src/core/api-error.mjs.map +1 -1
  367. package/packages/kmd_client/src/core/model-runtime.js +2 -12
  368. package/packages/kmd_client/src/core/model-runtime.js.map +1 -1
  369. package/packages/kmd_client/src/core/model-runtime.mjs +3 -11
  370. package/packages/kmd_client/src/core/model-runtime.mjs.map +1 -1
  371. package/packages/transact/src/logicsig.d.ts +35 -33
  372. package/packages/transact/src/logicsig.js +74 -76
  373. package/packages/transact/src/logicsig.js.map +1 -1
  374. package/packages/transact/src/logicsig.mjs +77 -78
  375. package/packages/transact/src/logicsig.mjs.map +1 -1
  376. package/packages/transact/src/multisig.d.ts +11 -116
  377. package/packages/transact/src/multisig.js +106 -136
  378. package/packages/transact/src/multisig.js.map +1 -1
  379. package/packages/transact/src/multisig.mjs +108 -118
  380. package/packages/transact/src/multisig.mjs.map +1 -1
  381. package/packages/transact/src/signer.js +9 -2
  382. package/packages/transact/src/signer.js.map +1 -1
  383. package/packages/transact/src/signer.mjs +10 -3
  384. package/packages/transact/src/signer.mjs.map +1 -1
  385. package/packages/transact/src/transactions/app-call.d.ts +10 -15
  386. package/packages/transact/src/transactions/app-call.js.map +1 -1
  387. package/packages/transact/src/transactions/app-call.mjs.map +1 -1
  388. package/packages/transact/src/transactions/asset-config.d.ts +1 -6
  389. package/packages/transact/src/transactions/asset-config.js.map +1 -1
  390. package/packages/transact/src/transactions/asset-config.mjs.map +1 -1
  391. package/packages/transact/src/transactions/asset-freeze.d.ts +1 -6
  392. package/packages/transact/src/transactions/asset-transfer.d.ts +1 -6
  393. package/packages/transact/src/transactions/key-registration.d.ts +1 -8
  394. package/packages/transact/src/transactions/reference-types-meta.d.ts +26 -0
  395. package/packages/transact/src/transactions/reference-types-meta.js +71 -0
  396. package/packages/transact/src/transactions/reference-types-meta.js.map +1 -0
  397. package/packages/transact/src/transactions/reference-types-meta.mjs +69 -0
  398. package/packages/transact/src/transactions/reference-types-meta.mjs.map +1 -0
  399. package/packages/transact/src/transactions/signed-transaction-meta.js +8 -9
  400. package/packages/transact/src/transactions/signed-transaction-meta.js.map +1 -1
  401. package/packages/transact/src/transactions/signed-transaction-meta.mjs +8 -8
  402. package/packages/transact/src/transactions/signed-transaction-meta.mjs.map +1 -1
  403. package/packages/transact/src/transactions/signed-transaction.d.ts +10 -6
  404. package/packages/transact/src/transactions/signed-transaction.js +1 -1
  405. package/packages/transact/src/transactions/signed-transaction.js.map +1 -1
  406. package/packages/transact/src/transactions/signed-transaction.mjs +1 -2
  407. package/packages/transact/src/transactions/signed-transaction.mjs.map +1 -1
  408. package/packages/transact/src/transactions/state-proof.d.ts +1 -1
  409. package/packages/transact/src/transactions/transaction-meta.js +29 -23
  410. package/packages/transact/src/transactions/transaction-meta.js.map +1 -1
  411. package/packages/transact/src/transactions/transaction-meta.mjs +29 -23
  412. package/packages/transact/src/transactions/transaction-meta.mjs.map +1 -1
  413. package/packages/transact/src/transactions/transaction.d.ts +5 -2
  414. package/packages/transact/src/transactions/transaction.js +5 -4
  415. package/packages/transact/src/transactions/transaction.js.map +1 -1
  416. package/packages/transact/src/transactions/transaction.mjs +5 -4
  417. package/packages/transact/src/transactions/transaction.mjs.map +1 -1
  418. package/testing/account.d.ts +2 -2
  419. package/testing/account.js +2 -3
  420. package/testing/account.js.map +1 -1
  421. package/testing/account.mjs +2 -3
  422. package/testing/account.mjs.map +1 -1
  423. package/testing/fixtures/algokit-log-capture-fixture.d.ts +1 -1
  424. package/testing/fixtures/algokit-log-capture-fixture.js.map +1 -1
  425. package/testing/fixtures/algokit-log-capture-fixture.mjs.map +1 -1
  426. package/testing/fixtures/algorand-fixture.d.ts +5 -5
  427. package/testing/fixtures/algorand-fixture.js +2 -2
  428. package/testing/fixtures/algorand-fixture.js.map +1 -1
  429. package/testing/fixtures/algorand-fixture.mjs +2 -2
  430. package/testing/fixtures/algorand-fixture.mjs.map +1 -1
  431. package/testing/index.d.ts +2 -1
  432. package/testing/test-logger.d.ts +1 -1
  433. package/testing/test-logger.js.map +1 -1
  434. package/testing/test-logger.mjs.map +1 -1
  435. package/testing/transaction-logger.js +1 -1
  436. package/testing/transaction-logger.mjs +1 -1
  437. package/testing/types.d.ts +156 -0
  438. package/transact/index.d.ts +11 -10
  439. package/transact/index.js +7 -31
  440. package/transact/index.mjs +7 -10
  441. package/transaction/index.d.ts +4 -0
  442. package/transaction/index.js +9 -0
  443. package/transaction/index.mjs +4 -0
  444. package/transaction/perform-transaction-composer-simulate.d.ts +1 -1
  445. package/transaction/perform-transaction-composer-simulate.js.map +1 -1
  446. package/transaction/perform-transaction-composer-simulate.mjs.map +1 -1
  447. package/transaction/transaction.d.ts +2 -2
  448. package/transaction/transaction.js +2 -2
  449. package/transaction/transaction.js.map +1 -1
  450. package/transaction/transaction.mjs +2 -2
  451. package/transaction/transaction.mjs.map +1 -1
  452. package/transaction/types.d.ts +133 -0
  453. package/transactions/app-call.d.ts +6 -5
  454. package/transactions/app-call.js +17 -17
  455. package/transactions/app-call.js.map +1 -1
  456. package/transactions/app-call.mjs +17 -17
  457. package/transactions/app-call.mjs.map +1 -1
  458. package/transactions/asset-config.d.ts +1 -1
  459. package/transactions/asset-config.js +1 -1
  460. package/transactions/asset-config.js.map +1 -1
  461. package/transactions/asset-config.mjs +1 -1
  462. package/transactions/asset-config.mjs.map +1 -1
  463. package/transactions/common.d.ts +1 -1
  464. package/transactions/common.js.map +1 -1
  465. package/transactions/common.mjs.map +1 -1
  466. package/transactions/key-registration.d.ts +1 -1
  467. package/transactions/key-registration.js.map +1 -1
  468. package/transactions/key-registration.mjs.map +1 -1
  469. package/transactions/method-call.d.ts +2 -2
  470. package/transactions/method-call.js +78 -85
  471. package/transactions/method-call.js.map +1 -1
  472. package/transactions/method-call.mjs +78 -85
  473. package/transactions/method-call.mjs.map +1 -1
  474. package/transactions/payment.d.ts +1 -1
  475. package/transactions/payment.js.map +1 -1
  476. package/transactions/payment.mjs.map +1 -1
  477. package/types/account-manager.d.ts +11 -444
  478. package/types/account-manager.js +5 -606
  479. package/types/account-manager.js.map +1 -1
  480. package/types/account-manager.mjs +5 -604
  481. package/types/account-manager.mjs.map +1 -1
  482. package/types/account.d.ts +8 -150
  483. package/types/account.js +3 -4
  484. package/types/account.js.map +1 -1
  485. package/types/account.mjs +4 -4
  486. package/types/account.mjs.map +1 -1
  487. package/types/algorand-client-transaction-creator.d.ts +5 -1084
  488. package/types/algorand-client-transaction-creator.js +3 -721
  489. package/types/algorand-client-transaction-creator.js.map +1 -1
  490. package/types/algorand-client-transaction-creator.mjs +4 -721
  491. package/types/algorand-client-transaction-creator.mjs.map +1 -1
  492. package/types/algorand-client-transaction-sender.d.ts +5 -1298
  493. package/types/algorand-client-transaction-sender.js +3 -920
  494. package/types/algorand-client-transaction-sender.js.map +1 -1
  495. package/types/algorand-client-transaction-sender.mjs +3 -918
  496. package/types/algorand-client-transaction-sender.mjs.map +1 -1
  497. package/types/algorand-client.d.ts +5 -241
  498. package/types/algorand-client.js +3 -319
  499. package/types/algorand-client.js.map +1 -1
  500. package/types/algorand-client.mjs +3 -319
  501. package/types/algorand-client.mjs.map +1 -1
  502. package/types/amount.d.ts +6 -45
  503. package/types/amount.js +3 -60
  504. package/types/amount.js.map +1 -1
  505. package/types/amount.mjs +3 -60
  506. package/types/amount.mjs.map +1 -1
  507. package/types/app-client.d.ts +75 -2120
  508. package/types/app-client.js +3 -904
  509. package/types/app-client.js.map +1 -1
  510. package/types/app-client.mjs +3 -902
  511. package/types/app-client.mjs.map +1 -1
  512. package/types/app-deployer.d.ts +21 -161
  513. package/types/app-deployer.js +3 -347
  514. package/types/app-deployer.js.map +1 -1
  515. package/types/app-deployer.mjs +3 -347
  516. package/types/app-deployer.mjs.map +1 -1
  517. package/types/app-factory.d.ts +21 -957
  518. package/types/app-factory.js +3 -442
  519. package/types/app-factory.js.map +1 -1
  520. package/types/app-factory.mjs +3 -442
  521. package/types/app-factory.mjs.map +1 -1
  522. package/types/app-manager.d.ts +15 -316
  523. package/types/app-manager.js +3 -456
  524. package/types/app-manager.js.map +1 -1
  525. package/types/app-manager.mjs +3 -456
  526. package/types/app-manager.mjs.map +1 -1
  527. package/types/app-spec.d.ts +39 -198
  528. package/types/app-spec.js +3 -124
  529. package/types/app-spec.js.map +1 -1
  530. package/types/app-spec.mjs +3 -124
  531. package/types/app-spec.mjs.map +1 -1
  532. package/types/app.d.ts +62 -247
  533. package/types/app.js +15 -37
  534. package/types/app.js.map +1 -1
  535. package/types/app.mjs +16 -37
  536. package/types/app.mjs.map +1 -1
  537. package/types/asset-manager.d.ts +9 -207
  538. package/types/asset-manager.js +3 -160
  539. package/types/asset-manager.js.map +1 -1
  540. package/types/asset-manager.mjs +3 -160
  541. package/types/asset-manager.mjs.map +1 -1
  542. package/types/async-event-emitter.d.ts +7 -14
  543. package/types/async-event-emitter.js +3 -32
  544. package/types/async-event-emitter.js.map +1 -1
  545. package/types/async-event-emitter.mjs +4 -32
  546. package/types/async-event-emitter.mjs.map +1 -1
  547. package/types/client-manager.d.ts +27 -470
  548. package/types/client-manager.js +3 -610
  549. package/types/client-manager.js.map +1 -1
  550. package/types/client-manager.mjs +3 -610
  551. package/types/client-manager.mjs.map +1 -1
  552. package/types/composer.d.ts +79 -935
  553. package/types/composer.js +3 -1569
  554. package/types/composer.js.map +1 -1
  555. package/types/composer.mjs +3 -1567
  556. package/types/composer.mjs.map +1 -1
  557. package/types/config.d.ts +7 -52
  558. package/types/config.js +3 -74
  559. package/types/config.js.map +1 -1
  560. package/types/config.mjs +3 -74
  561. package/types/config.mjs.map +1 -1
  562. package/types/debugging.d.ts +12 -33
  563. package/types/debugging.js +11 -10
  564. package/types/debugging.js.map +1 -1
  565. package/types/debugging.mjs +12 -10
  566. package/types/debugging.mjs.map +1 -1
  567. package/types/dispenser-client.d.ts +11 -85
  568. package/types/dispenser-client.js +3 -121
  569. package/types/dispenser-client.js.map +1 -1
  570. package/types/dispenser-client.mjs +3 -121
  571. package/types/dispenser-client.mjs.map +1 -1
  572. package/types/expand.d.ts +4 -5
  573. package/types/indexer.d.ts +16 -36
  574. package/types/indexer.js +7 -30
  575. package/types/indexer.js.map +1 -1
  576. package/types/indexer.mjs +8 -30
  577. package/types/indexer.mjs.map +1 -1
  578. package/types/instance-of.d.ts +4 -4
  579. package/types/kmd-account-manager.d.ts +5 -68
  580. package/types/kmd-account-manager.js +3 -150
  581. package/types/kmd-account-manager.js.map +1 -1
  582. package/types/kmd-account-manager.mjs +3 -148
  583. package/types/kmd-account-manager.mjs.map +1 -1
  584. package/types/lifecycle-events.d.ts +7 -10
  585. package/types/lifecycle-events.js +3 -5
  586. package/types/lifecycle-events.js.map +1 -1
  587. package/types/lifecycle-events.mjs +4 -5
  588. package/types/lifecycle-events.mjs.map +1 -1
  589. package/types/logging.d.ts +14 -9
  590. package/types/logging.js +11 -37
  591. package/types/logging.js.map +1 -1
  592. package/types/logging.mjs +12 -37
  593. package/types/logging.mjs.map +1 -1
  594. package/types/logic-error.d.ts +8 -35
  595. package/types/logic-error.js +3 -48
  596. package/types/logic-error.js.map +1 -1
  597. package/types/logic-error.mjs +4 -48
  598. package/types/logic-error.mjs.map +1 -1
  599. package/types/network-client.d.ts +10 -39
  600. package/types/network-client.js +3 -8
  601. package/types/network-client.js.map +1 -1
  602. package/types/network-client.mjs +4 -8
  603. package/types/network-client.mjs.map +1 -1
  604. package/types/testing.d.ts +13 -151
  605. package/types/transaction.d.ts +33 -128
  606. package/updatable-config.d.ts +57 -0
  607. package/updatable-config.js +80 -0
  608. package/updatable-config.js.map +1 -0
  609. package/updatable-config.mjs +80 -0
  610. package/updatable-config.mjs.map +1 -0
  611. package/util.js +1 -1
  612. package/util.js.map +1 -1
  613. package/util.mjs +1 -1
  614. package/util.mjs.map +1 -1
  615. package/_virtual/rolldown_runtime.mjs +0 -13
  616. package/indexer-lookup.js.map +0 -1
  617. package/indexer-lookup.mjs.map +0 -1
  618. package/packages/algod_client/src/core/model-runtime.d.ts +0 -10
  619. package/packages/algod_client/src/models/application-local-reference.d.ts +0 -20
  620. package/packages/algod_client/src/models/application-local-reference.js +0 -23
  621. package/packages/algod_client/src/models/application-local-reference.js.map +0 -1
  622. package/packages/algod_client/src/models/application-local-reference.mjs +0 -23
  623. package/packages/algod_client/src/models/application-local-reference.mjs.map +0 -1
  624. package/packages/algod_client/src/models/asset-holding-reference.d.ts +0 -20
  625. package/packages/algod_client/src/models/asset-holding-reference.js +0 -23
  626. package/packages/algod_client/src/models/asset-holding-reference.js.map +0 -1
  627. package/packages/algod_client/src/models/asset-holding-reference.mjs +0 -23
  628. package/packages/algod_client/src/models/asset-holding-reference.mjs.map +0 -1
  629. package/packages/algod_client/src/models/box-reference.d.ts +0 -17
  630. package/packages/algod_client/src/models/box-reference.js +0 -23
  631. package/packages/algod_client/src/models/box-reference.js.map +0 -1
  632. package/packages/algod_client/src/models/box-reference.mjs +0 -23
  633. package/packages/algod_client/src/models/box-reference.mjs.map +0 -1
  634. package/packages/indexer_client/src/core/model-runtime.d.ts +0 -10
  635. package/packages/kmd_client/src/core/model-runtime.d.ts +0 -10
  636. package/packages/sdk/src/convert.d.ts +0 -17
  637. package/packages/sdk/src/convert.js +0 -28
  638. package/packages/sdk/src/convert.js.map +0 -1
  639. package/packages/sdk/src/convert.mjs +0 -25
  640. package/packages/sdk/src/convert.mjs.map +0 -1
  641. package/packages/sdk/src/encoding/binarydata.d.ts +0 -34
  642. package/packages/sdk/src/encoding/binarydata.js +0 -65
  643. package/packages/sdk/src/encoding/binarydata.js.map +0 -1
  644. package/packages/sdk/src/encoding/binarydata.mjs +0 -60
  645. package/packages/sdk/src/encoding/binarydata.mjs.map +0 -1
  646. package/packages/sdk/src/encoding/encoding.d.ts +0 -237
  647. package/packages/sdk/src/encoding/encoding.js +0 -302
  648. package/packages/sdk/src/encoding/encoding.js.map +0 -1
  649. package/packages/sdk/src/encoding/encoding.mjs +0 -287
  650. package/packages/sdk/src/encoding/encoding.mjs.map +0 -1
  651. package/packages/sdk/src/encoding/schema/array.js +0 -35
  652. package/packages/sdk/src/encoding/schema/array.js.map +0 -1
  653. package/packages/sdk/src/encoding/schema/array.mjs +0 -35
  654. package/packages/sdk/src/encoding/schema/array.mjs.map +0 -1
  655. package/packages/sdk/src/encoding/schema/bytearray.js +0 -49
  656. package/packages/sdk/src/encoding/schema/bytearray.js.map +0 -1
  657. package/packages/sdk/src/encoding/schema/bytearray.mjs +0 -49
  658. package/packages/sdk/src/encoding/schema/bytearray.mjs.map +0 -1
  659. package/packages/sdk/src/encoding/schema/map.d.ts +0 -58
  660. package/packages/sdk/src/encoding/schema/map.js +0 -110
  661. package/packages/sdk/src/encoding/schema/map.js.map +0 -1
  662. package/packages/sdk/src/encoding/schema/map.mjs +0 -107
  663. package/packages/sdk/src/encoding/schema/map.mjs.map +0 -1
  664. package/packages/sdk/src/encoding/schema/optional.js +0 -46
  665. package/packages/sdk/src/encoding/schema/optional.js.map +0 -1
  666. package/packages/sdk/src/encoding/schema/optional.mjs +0 -46
  667. package/packages/sdk/src/encoding/schema/optional.mjs.map +0 -1
  668. package/packages/sdk/src/encoding/schema/uint64.js +0 -30
  669. package/packages/sdk/src/encoding/schema/uint64.js.map +0 -1
  670. package/packages/sdk/src/encoding/schema/uint64.mjs +0 -30
  671. package/packages/sdk/src/encoding/schema/uint64.mjs.map +0 -1
  672. package/packages/sdk/src/encoding/uint64.d.ts +0 -34
  673. package/packages/sdk/src/encoding/uint64.js +0 -34
  674. package/packages/sdk/src/encoding/uint64.js.map +0 -1
  675. package/packages/sdk/src/encoding/uint64.mjs +0 -33
  676. package/packages/sdk/src/encoding/uint64.mjs.map +0 -1
  677. package/packages/sdk/src/index.d.ts +0 -44
  678. package/packages/sdk/src/index.js +0 -62
  679. package/packages/sdk/src/index.js.map +0 -1
  680. package/packages/sdk/src/index.mjs +0 -58
  681. package/packages/sdk/src/index.mjs.map +0 -1
  682. package/packages/sdk/src/nacl/naclWrappers.js +0 -14
  683. package/packages/sdk/src/nacl/naclWrappers.js.map +0 -1
  684. package/packages/sdk/src/nacl/naclWrappers.mjs +0 -11
  685. package/packages/sdk/src/nacl/naclWrappers.mjs.map +0 -1
  686. package/packages/sdk/src/types/intDecoding.d.ts +0 -28
  687. package/packages/sdk/src/types/intDecoding.js +0 -32
  688. package/packages/sdk/src/types/intDecoding.js.map +0 -1
  689. package/packages/sdk/src/types/intDecoding.mjs +0 -31
  690. package/packages/sdk/src/types/intDecoding.mjs.map +0 -1
  691. package/packages/sdk/src/types/transactions/encoded.d.ts +0 -40
  692. package/packages/sdk/src/types/transactions/encoded.js +0 -64
  693. package/packages/sdk/src/types/transactions/encoded.js.map +0 -1
  694. package/packages/sdk/src/types/transactions/encoded.mjs +0 -59
  695. package/packages/sdk/src/types/transactions/encoded.mjs.map +0 -1
  696. package/packages/sdk/src/utils/utils.d.ts +0 -64
  697. package/packages/sdk/src/utils/utils.js +0 -140
  698. package/packages/sdk/src/utils/utils.js.map +0 -1
  699. package/packages/sdk/src/utils/utils.mjs +0 -128
  700. package/packages/sdk/src/utils/utils.mjs.map +0 -1
  701. package/packages/transact/src/transactions/common.d.ts +0 -37
  702. package/sdk/index.d.ts +0 -10
  703. package/sdk/index.js +0 -59
  704. package/sdk/index.mjs +0 -11
@@ -1,939 +1,83 @@
1
- import { ReadableAddress } from "../packages/common/src/address.js";
2
- import { ABIMethod } from "../packages/abi/src/abi-method.js";
3
- import { Transaction } from "../packages/transact/src/transactions/transaction.js";
4
- import { SignedTransaction } from "../packages/transact/src/transactions/signed-transaction.js";
5
- import { TransactionSigner } from "../packages/transact/src/signer.js";
6
- import { SimulateRequest } from "../packages/algod_client/src/models/simulate-request.js";
7
- import { SimulateResponse } from "../packages/algod_client/src/models/simulate-response.js";
8
- import { SuggestedParams } from "../packages/algod_client/src/models/suggested-params.js";
9
- import { AlgodClient } from "../packages/algod_client/src/client.js";
10
- import { AlgoAmount } from "./amount.js";
11
- import { AppManager } from "./app-manager.js";
12
- import { Expand } from "./expand.js";
13
- import { CommonTransactionParams } from "../transactions/common.js";
14
- import { AppCallParams, AppCreateParams, AppDeleteParams, AppMethodCallParams, AppUpdateParams, CommonAppCallParams } from "../transactions/app-call.js";
15
- import { AssetOptInParams, AssetOptOutParams, AssetTransferParams } from "../transactions/asset-transfer.js";
16
- import { AssetConfigParams, AssetCreateParams, AssetDestroyParams, AssetFreezeParams } from "../transactions/asset-config.js";
17
- import { OfflineKeyRegistrationParams, OnlineKeyRegistrationParams } from "../transactions/key-registration.js";
18
- import { AppCallMethodCall, AppCreateMethodCall, AppDeleteMethodCall, AppMethodCall, AppMethodCallTransactionArgument, AppUpdateMethodCall, ProcessedAppCallMethodCall, ProcessedAppCreateMethodCall, ProcessedAppUpdateMethodCall } from "../transactions/method-call.js";
19
- import { PaymentParams } from "../transactions/payment.js";
20
- import { Arc2TransactionNote, SendParams, SendTransactionComposerResults } from "./transaction.js";
21
- import { TransactionWithSigner } from "../transaction/transaction.js";
1
+ import { CommonTransactionParams as CommonTransactionParams$1 } from "../transactions/common.js";
2
+ import { AppCallParams as AppCallParams$1, AppCreateParams as AppCreateParams$1, AppDeleteParams as AppDeleteParams$1, AppMethodCallParams as AppMethodCallParams$1, AppUpdateParams as AppUpdateParams$1, CommonAppCallParams as CommonAppCallParams$1 } from "../transactions/app-call.js";
3
+ import { AssetOptInParams as AssetOptInParams$1, AssetOptOutParams as AssetOptOutParams$1, AssetTransferParams as AssetTransferParams$1 } from "../transactions/asset-transfer.js";
4
+ import { AssetConfigParams as AssetConfigParams$1, AssetCreateParams as AssetCreateParams$1, AssetDestroyParams as AssetDestroyParams$1, AssetFreezeParams as AssetFreezeParams$1 } from "../transactions/asset-config.js";
5
+ import { OfflineKeyRegistrationParams as OfflineKeyRegistrationParams$1, OnlineKeyRegistrationParams as OnlineKeyRegistrationParams$1 } from "../transactions/key-registration.js";
6
+ import { AppCallMethodCall as AppCallMethodCall$1, AppCreateMethodCall as AppCreateMethodCall$1, AppDeleteMethodCall as AppDeleteMethodCall$1, AppMethodCall as AppMethodCall$1, AppMethodCallTransactionArgument as AppMethodCallTransactionArgument$1, AppUpdateMethodCall as AppUpdateMethodCall$1, ProcessedAppCallMethodCall as ProcessedAppCallMethodCall$1, ProcessedAppCreateMethodCall as ProcessedAppCreateMethodCall$1, ProcessedAppUpdateMethodCall as ProcessedAppUpdateMethodCall$1 } from "../transactions/method-call.js";
7
+ import { PaymentParams as PaymentParams$1 } from "../transactions/payment.js";
8
+ import { BuiltTransactions as BuiltTransactions$1, ErrorTransformer as ErrorTransformer$1, RawSimulateOptions as RawSimulateOptions$1, SimulateOptions as SimulateOptions$1, SkipSignaturesSimulateOptions as SkipSignaturesSimulateOptions$1, TransactionComposer as TransactionComposer$1, TransactionComposerConfig as TransactionComposerConfig$1, TransactionComposerParams as TransactionComposerParams$1 } from "../composer.js";
22
9
 
23
10
  //#region src/types/composer.d.ts
24
- /** Options to control a simulate request, that does not require transaction signing */
25
- type SkipSignaturesSimulateOptions = Expand<Omit<RawSimulateOptions, 'fixSigners' | 'allowEmptySignatures'> & {
26
- /** Whether or not to skip signatures for all built transactions and use an empty signer instead.
27
- * This will set `fixSigners` and `allowEmptySignatures` when sending the request to the algod API.
28
- */
29
- skipSignatures: boolean;
30
- }>;
31
- /** The raw API options to control a simulate request.
32
- * See algod API docs for more information: https://dev.algorand.co/reference/rest-apis/algod/#simulatetransaction
33
- */
34
- type RawSimulateOptions = Expand<Omit<SimulateRequest, 'txnGroups'>> & {
35
- /** Whether or not to return the result on simulation failure instead of throwing an error */
36
- resultOnFailure?: boolean;
37
- };
38
- /** All options to control a simulate request */
39
- type SimulateOptions = Expand<Partial<SkipSignaturesSimulateOptions> & RawSimulateOptions>;
40
- /**
41
- * A function that transforms an error into a new error.
42
- *
43
- * In most cases, an ErrorTransformer should first check if it can or should transform the error
44
- * and return the input error if it cannot or should not transform it.
45
- */
46
- type ErrorTransformer = (error: Error) => Promise<Error>;
47
- type TransactionComposerConfig = {
48
- coverAppCallInnerTransactionFees: boolean;
49
- populateAppCallResources: boolean;
50
- };
51
- /** Parameters to create an `TransactionComposer`. */
52
- type TransactionComposerParams = {
53
- /** The algod client to use to get suggestedParams and send the transaction group */
54
- algod: AlgodClient;
55
- /** The function used to get the TransactionSigner for a given address */
56
- getSigner: (address: ReadableAddress) => TransactionSigner;
57
- /** The method used to get SuggestedParams for transactions in the group */
58
- getSuggestedParams?: () => Promise<SuggestedParams>;
59
- /** How many rounds a transaction should be valid for by default; if not specified
60
- * then will be 10 rounds (or 1000 rounds if issuing transactions to LocalNet).
61
- */
62
- defaultValidityWindow?: bigint;
63
- /** An existing `AppManager` to use to manage app compilation and cache compilation results.
64
- *
65
- * If not specified then an ephemeral one will be created.
66
- */
67
- appManager?: AppManager;
68
- /**
69
- * An array of error transformers to use when an error is caught in simulate or execute
70
- * callbacks can later be registered with `registerErrorTransformer`
71
- */
72
- errorTransformers?: ErrorTransformer[];
73
- composerConfig?: TransactionComposerConfig;
74
- };
75
- /** Set of transactions built by `TransactionComposer`. */
76
- interface BuiltTransactions {
77
- /** The built transactions */
78
- transactions: Transaction[];
79
- /** Any `ABIMethod` objects associated with any of the transactions in a map keyed by transaction index. */
80
- methodCalls: Map<number, ABIMethod>;
81
- /** Any `TransactionSigner` objects associated with any of the transactions in a map keyed by transaction index. */
82
- signers: Map<number, TransactionSigner>;
83
- }
84
- /** TransactionComposer helps you compose and execute transactions as a transaction group. */
85
- declare class TransactionComposer {
86
- /** Transactions that have not yet been composed */
87
- private txns;
88
- /** The algod client used by the composer. */
89
- private algod;
90
- /** An async function that will return suggested params for the transaction. */
91
- private getSuggestedParams;
92
- /** A function that takes in an address and return a signer function for that address. */
93
- private getSigner;
94
- /** The default transaction validity window */
95
- private defaultValidityWindow;
96
- /** Whether the validity window was explicitly set on construction */
97
- private defaultValidityWindowIsExplicit;
98
- private appManager;
99
- private errorTransformers;
100
- private composerConfig;
101
- private transactionsWithSigners?;
102
- private signedTransactions?;
103
- private rawBuildTransactions?;
104
- private transformError;
105
- private validateReferenceParams;
106
- /**
107
- * Create a `TransactionComposer`.
108
- * @param params The configuration for this composer
109
- * @returns The `TransactionComposer` instance
110
- */
111
- constructor(params: TransactionComposerParams);
112
- private cloneTransaction;
113
- private push;
114
- clone(composerConfig?: TransactionComposerConfig): TransactionComposer;
115
- /**
116
- * Register a function that will be used to transform an error caught when simulating or executing
117
- *
118
- * @returns The composer so you can chain method calls
119
- */
120
- registerErrorTransformer(transformer: ErrorTransformer): this;
121
- /**
122
- * Add a pre-built transaction to the transaction group.
123
- * @param transaction The pre-built transaction
124
- * @param signer Optional signer override for the transaction
125
- * @returns The composer so you can chain method calls
126
- * @example
127
- * ```typescript
128
- * composer.addTransaction(txn)
129
- * ```
130
- */
131
- addTransaction(transaction: Transaction, signer?: TransactionSigner): TransactionComposer;
132
- /**
133
- * Add another transaction composer to the current transaction composer.
134
- * The transaction params of the input transaction composer will be added.
135
- * If the input transaction composer is updated, it won't affect the current transaction composer.
136
- * @param composer The transaction composer to add
137
- * @returns The composer so you can chain method calls
138
- * @example
139
- * ```typescript
140
- * const innerComposer = algorand.newGroup()
141
- * .addPayment({ sender: 'SENDER', receiver: 'RECEIVER', amount: (1).algo() })
142
- * .addPayment({ sender: 'SENDER', receiver: 'RECEIVER', amount: (2).algo() })
143
- *
144
- * composer.addTransactionComposer(innerComposer)
145
- * ```
146
- */
147
- addTransactionComposer(composer: TransactionComposer): TransactionComposer;
148
- /**
149
- * Add a payment transaction to the transaction group.
150
- * @param params The payment transaction parameters
151
- * @returns The composer so you can chain method calls
152
- * @example Basic example
153
- * ```typescript
154
- * composer.addPayment({
155
- * sender: 'SENDERADDRESS',
156
- * receiver: 'RECEIVERADDRESS',
157
- * amount: (4).algo(),
158
- * })
159
- * ```
160
- * @example Advanced example
161
- * ```typescript
162
- * composer.addPayment({
163
- * amount: (4).algo(),
164
- * receiver: 'RECEIVERADDRESS',
165
- * sender: 'SENDERADDRESS',
166
- * closeRemainderTo: 'CLOSEREMAINDERTOADDRESS',
167
- * lease: 'lease',
168
- * note: 'note',
169
- * // Use this with caution, it's generally better to use algorand.account.rekeyAccount
170
- * rekeyTo: 'REKEYTOADDRESS',
171
- * // You wouldn't normally set this field
172
- * firstValidRound: 1000n,
173
- * validityWindow: 10,
174
- * extraFee: (1000).microAlgo(),
175
- * staticFee: (1000).microAlgo(),
176
- * // Max fee doesn't make sense with extraFee AND staticFee
177
- * // already specified, but here for completeness
178
- * maxFee: (3000).microAlgo(),
179
- * })
180
- */
181
- addPayment(params: PaymentParams): TransactionComposer;
182
- /**
183
- * Add an asset create transaction to the transaction group.
184
- * @param params The asset create transaction parameters
185
- * @returns The composer so you can chain method calls
186
- * @example Basic example
187
- * ```typescript
188
- * composer.addAssetCreate({ sender: "CREATORADDRESS", total: 100n})
189
- * ```
190
- * @example Advanced example
191
- * ```typescript
192
- * composer.addAssetCreate({
193
- * sender: 'CREATORADDRESS',
194
- * total: 100n,
195
- * decimals: 2,
196
- * assetName: 'asset',
197
- * unitName: 'unit',
198
- * url: 'url',
199
- * metadataHash: 'metadataHash',
200
- * defaultFrozen: false,
201
- * manager: 'MANAGERADDRESS',
202
- * reserve: 'RESERVEADDRESS',
203
- * freeze: 'FREEZEADDRESS',
204
- * clawback: 'CLAWBACKADDRESS',
205
- * lease: 'lease',
206
- * note: 'note',
207
- * // You wouldn't normally set this field
208
- * firstValidRound: 1000n,
209
- * validityWindow: 10,
210
- * extraFee: (1000).microAlgo(),
211
- * staticFee: (1000).microAlgo(),
212
- * // Max fee doesn't make sense with extraFee AND staticFee
213
- * // already specified, but here for completeness
214
- * maxFee: (3000).microAlgo(),
215
- * })
216
- */
217
- addAssetCreate(params: AssetCreateParams): TransactionComposer;
218
- /**
219
- * Add an asset config transaction to the transaction group.
220
- * @param params The asset config transaction parameters
221
- * @returns The composer so you can chain method calls
222
- * @example Basic example
223
- * ```typescript
224
- * composer.addAssetConfig({ sender: "MANAGERADDRESS", assetId: 123456n, manager: "MANAGERADDRESS" })
225
- * ```
226
- * @example Advanced example
227
- * ```typescript
228
- * composer.addAssetConfig({
229
- * sender: 'MANAGERADDRESS',
230
- * assetId: 123456n,
231
- * manager: 'MANAGERADDRESS',
232
- * reserve: 'RESERVEADDRESS',
233
- * freeze: 'FREEZEADDRESS',
234
- * clawback: 'CLAWBACKADDRESS',
235
- * lease: 'lease',
236
- * note: 'note',
237
- * // You wouldn't normally set this field
238
- * firstValidRound: 1000n,
239
- * validityWindow: 10,
240
- * extraFee: (1000).microAlgo(),
241
- * staticFee: (1000).microAlgo(),
242
- * // Max fee doesn't make sense with extraFee AND staticFee
243
- * // already specified, but here for completeness
244
- * maxFee: (3000).microAlgo(),
245
- * })
246
- */
247
- addAssetConfig(params: AssetConfigParams): TransactionComposer;
248
- /**
249
- * Add an asset freeze transaction to the transaction group.
250
- * @param params The asset freeze transaction parameters
251
- * @returns The composer so you can chain method calls
252
- * @example Basic example
253
- * ```typescript
254
- * composer.addAssetFreeze({ sender: "MANAGERADDRESS", assetId: 123456n, account: "ACCOUNTADDRESS", frozen: true })
255
- * ```
256
- * @example Advanced example
257
- * ```typescript
258
- * composer.addAssetFreeze({
259
- * sender: 'MANAGERADDRESS',
260
- * assetId: 123456n,
261
- * account: 'ACCOUNTADDRESS',
262
- * frozen: true,
263
- * lease: 'lease',
264
- * note: 'note',
265
- * // You wouldn't normally set this field
266
- * firstValidRound: 1000n,
267
- * validityWindow: 10,
268
- * extraFee: (1000).microAlgo(),
269
- * staticFee: (1000).microAlgo(),
270
- * // Max fee doesn't make sense with extraFee AND staticFee
271
- * // already specified, but here for completeness
272
- * maxFee: (3000).microAlgo(),
273
- * })
274
- * ```
275
- */
276
- addAssetFreeze(params: AssetFreezeParams): TransactionComposer;
277
- /**
278
- * Add an asset destroy transaction to the transaction group.
279
- * @param params The asset destroy transaction parameters
280
- * @returns The composer so you can chain method calls
281
- * @example Basic example
282
- * ```typescript
283
- * composer.addAssetDestroy({ sender: "MANAGERADDRESS", assetId: 123456n })
284
- * ```
285
- * @example Advanced example
286
- * ```typescript
287
- * composer.addAssetDestroy({
288
- * sender: 'MANAGERADDRESS',
289
- * assetId: 123456n,
290
- * lease: 'lease',
291
- * note: 'note',
292
- * // You wouldn't normally set this field
293
- * firstValidRound: 1000n,
294
- * validityWindow: 10,
295
- * extraFee: (1000).microAlgo(),
296
- * staticFee: (1000).microAlgo(),
297
- * // Max fee doesn't make sense with extraFee AND staticFee
298
- * // already specified, but here for completeness
299
- * maxFee: (3000).microAlgo(),
300
- * })
301
- * ```
302
- */
303
- addAssetDestroy(params: AssetDestroyParams): TransactionComposer;
304
- /**
305
- * Add an asset transfer transaction to the transaction group.
306
- * @param params The asset transfer transaction parameters
307
- * @returns The composer so you can chain method calls
308
- * @example Basic example
309
- * ```typescript
310
- * composer.addAssetTransfer({ sender: "HOLDERADDRESS", assetId: 123456n, amount: 1n, receiver: "RECEIVERADDRESS" })
311
- * ```
312
- * @example Advanced example (with clawback)
313
- * ```typescript
314
- * composer.addAssetTransfer({
315
- * sender: 'CLAWBACKADDRESS',
316
- * assetId: 123456n,
317
- * amount: 1n,
318
- * receiver: 'RECEIVERADDRESS',
319
- * clawbackTarget: 'HOLDERADDRESS',
320
- * // This field needs to be used with caution
321
- * closeAssetTo: 'ADDRESSTOCLOSETO'
322
- * lease: 'lease',
323
- * note: 'note',
324
- * // You wouldn't normally set this field
325
- * firstValidRound: 1000n,
326
- * validityWindow: 10,
327
- * extraFee: (1000).microAlgo(),
328
- * staticFee: (1000).microAlgo(),
329
- * // Max fee doesn't make sense with extraFee AND staticFee
330
- * // already specified, but here for completeness
331
- * maxFee: (3000).microAlgo(),
332
- * })
333
- * ```
334
- */
335
- addAssetTransfer(params: AssetTransferParams): TransactionComposer;
336
- /**
337
- * Add an asset opt-in transaction to the transaction group.
338
- * @param params The asset opt-in transaction parameters
339
- * @returns The composer so you can chain method calls
340
- * @example Basic example
341
- * ```typescript
342
- * composer.addAssetOptIn({ sender: "SENDERADDRESS", assetId: 123456n })
343
- * ```
344
- * @example Advanced example
345
- * ```typescript
346
- * composer.addAssetOptIn({
347
- * sender: 'SENDERADDRESS',
348
- * assetId: 123456n,
349
- * lease: 'lease',
350
- * note: 'note',
351
- * // You wouldn't normally set this field
352
- * firstValidRound: 1000n,
353
- * validityWindow: 10,
354
- * extraFee: (1000).microAlgo(),
355
- * staticFee: (1000).microAlgo(),
356
- * // Max fee doesn't make sense with extraFee AND staticFee
357
- * // already specified, but here for completeness
358
- * maxFee: (3000).microAlgo(),
359
- * })
360
- * ```
361
- */
362
- addAssetOptIn(params: AssetOptInParams): TransactionComposer;
363
- /**
364
- * Add an asset opt-out transaction to the transaction group.
365
- * @param params The asset opt-out transaction parameters
366
- * @returns The composer so you can chain method calls
367
- * @example Basic example (without creator, will be retrieved from algod)
368
- * ```typescript
369
- * composer.addAssetOptOut({ sender: "SENDERADDRESS", assetId: 123456n, ensureZeroBalance: true })
370
- * ```
371
- * @example Basic example (with creator)
372
- * ```typescript
373
- * composer.addAssetOptOut({ sender: "SENDERADDRESS", creator: "CREATORADDRESS", assetId: 123456n, ensureZeroBalance: true })
374
- * ```
375
- * @example Advanced example
376
- * ```typescript
377
- * composer.addAssetOptOut({
378
- * sender: 'SENDERADDRESS',
379
- * assetId: 123456n,
380
- * creator: 'CREATORADDRESS',
381
- * ensureZeroBalance: true,
382
- * lease: 'lease',
383
- * note: 'note',
384
- * // You wouldn't normally set this field
385
- * firstValidRound: 1000n,
386
- * validityWindow: 10,
387
- * extraFee: (1000).microAlgo(),
388
- * staticFee: (1000).microAlgo(),
389
- * // Max fee doesn't make sense with extraFee AND staticFee
390
- * // already specified, but here for completeness
391
- * maxFee: (3000).microAlgo(),
392
- * })
393
- * ```
394
- */
395
- addAssetOptOut(params: AssetOptOutParams): TransactionComposer;
396
- /**
397
- * Add an application create transaction to the transaction group.
398
- *
399
- * Note: we recommend using app clients to make it easier to make app calls.
400
- * @param params The application create transaction parameters
401
- * @returns The composer so you can chain method calls
402
- * @example Basic example
403
- * ```typescript
404
- * composer.addAppCreate({ sender: 'CREATORADDRESS', approvalProgram: 'TEALCODE', clearStateProgram: 'TEALCODE' })
405
- * ```
406
- * @example Advanced example
407
- * ```typescript
408
- * composer.addAppCreate({
409
- * sender: 'CREATORADDRESS',
410
- * approvalProgram: "TEALCODE",
411
- * clearStateProgram: "TEALCODE",
412
- * schema: {
413
- * globalInts: 1,
414
- * globalByteSlices: 2,
415
- * localInts: 3,
416
- * localByteSlices: 4
417
- * },
418
- * extraProgramPages: 1,
419
- * onComplete: OnApplicationComplete.OptIn,
420
- * args: [new Uint8Array(1, 2, 3, 4)]
421
- * accountReferences: ["ACCOUNT_1"]
422
- * appReferences: [123n, 1234n]
423
- * assetReferences: [12345n]
424
- * boxReferences: ["box1", {appId: 1234n, name: "box2"}]
425
- * accessReferences: [{ appId: 1234n }]
426
- * lease: 'lease',
427
- * note: 'note',
428
- * // You wouldn't normally set this field
429
- * firstValidRound: 1000n,
430
- * validityWindow: 10,
431
- * extraFee: (1000).microAlgo(),
432
- * staticFee: (1000).microAlgo(),
433
- * // Max fee doesn't make sense with extraFee AND staticFee
434
- * // already specified, but here for completeness
435
- * maxFee: (3000).microAlgo(),
436
- * // Signer only needed if you want to provide one,
437
- * // generally you'd register it with AlgorandClient
438
- * // against the sender and not need to pass it in
439
- * signer: transactionSigner,
440
- * maxRoundsToWaitForConfirmation: 5,
441
- * suppressLog: true,
442
- *})
443
- * ```
444
- */
445
- addAppCreate(params: AppCreateParams): TransactionComposer;
446
- /**
447
- * Add an application update transaction to the transaction group.
448
- *
449
- * Note: we recommend using app clients to make it easier to make app calls.
450
- * @param params The application update transaction parameters
451
- * @returns The composer so you can chain method calls
452
- * @example Basic example
453
- * ```typescript
454
- * composer.addAppUpdate({ sender: 'CREATORADDRESS', approvalProgram: 'TEALCODE', clearStateProgram: 'TEALCODE' })
455
- * ```
456
- * @example Advanced example
457
- * ```typescript
458
- * composer.addAppUpdate({
459
- * sender: 'CREATORADDRESS',
460
- * approvalProgram: "TEALCODE",
461
- * clearStateProgram: "TEALCODE",
462
- * onComplete: OnApplicationComplete.UpdateApplication,
463
- * args: [new Uint8Array(1, 2, 3, 4)]
464
- * accountReferences: ["ACCOUNT_1"]
465
- * appReferences: [123n, 1234n]
466
- * assetReferences: [12345n]
467
- * boxReferences: ["box1", {appId: 1234n, name: "box2"}]
468
- * accessReferences: [{ appId: 1234n }]
469
- * lease: 'lease',
470
- * note: 'note',
471
- * // You wouldn't normally set this field
472
- * firstValidRound: 1000n,
473
- * validityWindow: 10,
474
- * extraFee: (1000).microAlgo(),
475
- * staticFee: (1000).microAlgo(),
476
- * // Max fee doesn't make sense with extraFee AND staticFee
477
- * // already specified, but here for completeness
478
- * maxFee: (3000).microAlgo(),
479
- *})
480
- * ```
481
- */
482
- addAppUpdate(params: AppUpdateParams): TransactionComposer;
483
- /**
484
- * Add an application delete transaction to the transaction group.
485
- *
486
- * Note: we recommend using app clients to make it easier to make app calls.
487
- * @param params The application delete transaction parameters
488
- * @returns The composer so you can chain method calls
489
- * @example Basic example
490
- * ```typescript
491
- * composer.addAppDelete({ sender: 'CREATORADDRESS' })
492
- * ```
493
- * @example Advanced example
494
- * ```typescript
495
- * composer.addAppDelete({
496
- * sender: 'CREATORADDRESS',
497
- * onComplete: OnApplicationComplete.DeleteApplication,
498
- * args: [new Uint8Array(1, 2, 3, 4)]
499
- * accountReferences: ["ACCOUNT_1"]
500
- * appReferences: [123n, 1234n]
501
- * assetReferences: [12345n]
502
- * boxReferences: ["box1", {appId: 1234n, name: "box2"}]
503
- * accessReferences: [{ appId: 1234n }]
504
- * lease: 'lease',
505
- * note: 'note',
506
- * // You wouldn't normally set this field
507
- * firstValidRound: 1000n,
508
- * validityWindow: 10,
509
- * extraFee: (1000).microAlgo(),
510
- * staticFee: (1000).microAlgo(),
511
- * // Max fee doesn't make sense with extraFee AND staticFee
512
- * // already specified, but here for completeness
513
- * maxFee: (3000).microAlgo(),
514
- *})
515
- * ```
516
- */
517
- addAppDelete(params: AppDeleteParams): TransactionComposer;
518
- /**
519
- * Add an application call transaction to the transaction group.
520
- *
521
- * If you want to create or update an app use `addAppCreate` or `addAppUpdate`.
522
- *
523
- * Note: we recommend using app clients to make it easier to make app calls.
524
- * @param params The application call transaction parameters
525
- * @returns The composer so you can chain method calls
526
- * @example Basic example
527
- * ```typescript
528
- * composer.addAppCall({ sender: 'CREATORADDRESS' })
529
- * ```
530
- * @example Advanced example
531
- * ```typescript
532
- * composer.addAppCall({
533
- * sender: 'CREATORADDRESS',
534
- * onComplete: OnApplicationComplete.OptIn,
535
- * args: [new Uint8Array(1, 2, 3, 4)]
536
- * accountReferences: ["ACCOUNT_1"]
537
- * appReferences: [123n, 1234n]
538
- * assetReferences: [12345n]
539
- * boxReferences: ["box1", {appId: 1234n, name: "box2"}]
540
- * accessReferences: [{ appId: 1234n }]
541
- * lease: 'lease',
542
- * note: 'note',
543
- * // You wouldn't normally set this field
544
- * firstValidRound: 1000n,
545
- * validityWindow: 10,
546
- * extraFee: (1000).microAlgo(),
547
- * staticFee: (1000).microAlgo(),
548
- * // Max fee doesn't make sense with extraFee AND staticFee
549
- * // already specified, but here for completeness
550
- * maxFee: (3000).microAlgo(),
551
- *})
552
- * ```
553
- */
554
- addAppCall(params: AppCallParams): TransactionComposer;
555
- /**
556
- * Add an ABI method create application call transaction to the transaction group.
557
- *
558
- * Note: we recommend using app clients to make it easier to make app calls.
559
- * @param params The ABI create method application call transaction parameters
560
- * @returns The composer so you can chain method calls
561
- * @example Basic example
562
- * ```typescript
563
- * const method = new ABIMethod({
564
- * name: 'method',
565
- * args: [{ name: 'arg1', type: 'string' }],
566
- * returns: { type: 'string' },
567
- * })
568
- * composer.addAppCreateMethodCall({ sender: 'CREATORADDRESS', approvalProgram: 'TEALCODE', clearStateProgram: 'TEALCODE', method: method, args: ["arg1_value"] })
569
- * ```
570
- * @example Advanced example
571
- * ```typescript
572
- * const method = new ABIMethod({
573
- * name: 'method',
574
- * args: [{ name: 'arg1', type: 'string' }],
575
- * returns: { type: 'string' },
576
- * })
577
- * composer.addAppCreateMethodCall({
578
- * sender: 'CREATORADDRESS',
579
- * method: method,
580
- * args: ["arg1_value"],
581
- * approvalProgram: "TEALCODE",
582
- * clearStateProgram: "TEALCODE",
583
- * schema: {
584
- * globalInts: 1,
585
- * globalByteSlices: 2,
586
- * localInts: 3,
587
- * localByteSlices: 4
588
- * },
589
- * extraProgramPages: 1,
590
- * onComplete: OnApplicationComplete.OptIn,
591
- * args: [new Uint8Array(1, 2, 3, 4)]
592
- * accountReferences: ["ACCOUNT_1"]
593
- * appReferences: [123n, 1234n]
594
- * assetReferences: [12345n]
595
- * boxReferences: ["box1", {appId: 1234n, name: "box2"}]
596
- * accessReferences: [{ appId: 1234n }]
597
- * lease: 'lease',
598
- * note: 'note',
599
- * // You wouldn't normally set this field
600
- * firstValidRound: 1000n,
601
- * validityWindow: 10,
602
- * extraFee: (1000).microAlgo(),
603
- * staticFee: (1000).microAlgo(),
604
- * // Max fee doesn't make sense with extraFee AND staticFee
605
- * // already specified, but here for completeness
606
- * maxFee: (3000).microAlgo(),
607
- *})
608
- * ```
609
- */
610
- addAppCreateMethodCall(params: AppCreateMethodCall): this;
611
- /**
612
- * Add an ABI method update application call transaction to the transaction group.
613
- *
614
- * Note: we recommend using app clients to make it easier to make app calls.
615
- * @param params The ABI update method application call transaction parameters
616
- * @returns The composer so you can chain method calls
617
- * @example Basic example
618
- * ```typescript
619
- * const method = new ABIMethod({
620
- * name: 'method',
621
- * args: [{ name: 'arg1', type: 'string' }],
622
- * returns: { type: 'string' },
623
- * })
624
- * composer.addAppUpdateMethodCall({ sender: 'CREATORADDRESS', approvalProgram: 'TEALCODE', clearStateProgram: 'TEALCODE', method: method, args: ["arg1_value"] })
625
- * ```
626
- * @example Advanced example
627
- * ```typescript
628
- * const method = new ABIMethod({
629
- * name: 'method',
630
- * args: [{ name: 'arg1', type: 'string' }],
631
- * returns: { type: 'string' },
632
- * })
633
- * composer.addAppUpdateMethodCall({
634
- * sender: 'CREATORADDRESS',
635
- * method: method,
636
- * args: ["arg1_value"],
637
- * approvalProgram: "TEALCODE",
638
- * clearStateProgram: "TEALCODE",
639
- * onComplete: OnApplicationComplete.UpdateApplication,
640
- * args: [new Uint8Array(1, 2, 3, 4)]
641
- * accountReferences: ["ACCOUNT_1"]
642
- * appReferences: [123n, 1234n]
643
- * assetReferences: [12345n]
644
- * boxReferences: ["box1", {appId: 1234n, name: "box2"}]
645
- * accessReferences: [{ appId: 1234n }]
646
- * lease: 'lease',
647
- * note: 'note',
648
- * // You wouldn't normally set this field
649
- * firstValidRound: 1000n,
650
- * validityWindow: 10,
651
- * extraFee: (1000).microAlgo(),
652
- * staticFee: (1000).microAlgo(),
653
- * // Max fee doesn't make sense with extraFee AND staticFee
654
- * // already specified, but here for completeness
655
- * maxFee: (3000).microAlgo(),
656
- *})
657
- * ```
658
- */
659
- addAppUpdateMethodCall(params: AppUpdateMethodCall): this;
660
- /**
661
- * Add an ABI method delete application call transaction to the transaction group.
662
- *
663
- * Note: we recommend using app clients to make it easier to make app calls.
664
- * @param params The ABI delete method application call transaction parameters
665
- * @returns The composer so you can chain method calls
666
- * @example Basic example
667
- * ```typescript
668
- * const method = new ABIMethod({
669
- * name: 'method',
670
- * args: [{ name: 'arg1', type: 'string' }],
671
- * returns: { type: 'string' },
672
- * })
673
- * composer.addAppDeleteMethodCall({ sender: 'CREATORADDRESS', method: method, args: ["arg1_value"] })
674
- * ```
675
- * @example Advanced example
676
- * ```typescript
677
- * const method = new ABIMethod({
678
- * name: 'method',
679
- * args: [{ name: 'arg1', type: 'string' }],
680
- * returns: { type: 'string' },
681
- * })
682
- * composer.addAppDeleteMethodCall({
683
- * sender: 'CREATORADDRESS',
684
- * method: method,
685
- * args: ["arg1_value"],
686
- * onComplete: OnApplicationComplete.DeleteApplication,
687
- * args: [new Uint8Array(1, 2, 3, 4)]
688
- * accountReferences: ["ACCOUNT_1"]
689
- * appReferences: [123n, 1234n]
690
- * assetReferences: [12345n]
691
- * boxReferences: ["box1", {appId: 1234n, name: "box2"}]
692
- * accessReferences: [{ appId: 1234n }]
693
- * lease: 'lease',
694
- * note: 'note',
695
- * // You wouldn't normally set this field
696
- * firstValidRound: 1000n,
697
- * validityWindow: 10,
698
- * extraFee: (1000).microAlgo(),
699
- * staticFee: (1000).microAlgo(),
700
- * // Max fee doesn't make sense with extraFee AND staticFee
701
- * // already specified, but here for completeness
702
- * maxFee: (3000).microAlgo(),
703
- *})
704
- * ```
705
- */
706
- addAppDeleteMethodCall(params: AppDeleteMethodCall): this;
707
- /**
708
- * Add a non-create/non-update ABI method application call transaction to the transaction group.
709
- *
710
- * Note: we recommend using app clients to make it easier to make app calls.
711
- * @param params The ABI method application call transaction parameters
712
- * @returns The composer so you can chain method calls
713
- * @example Basic example
714
- * ```typescript
715
- * const method = new ABIMethod({
716
- * name: 'method',
717
- * args: [{ name: 'arg1', type: 'string' }],
718
- * returns: { type: 'string' },
719
- * })
720
- * composer.addAppCallMethodCall({ sender: 'CREATORADDRESS', method: method, args: ["arg1_value"] })
721
- * ```
722
- * @example Advanced example
723
- * ```typescript
724
- * const method = new ABIMethod({
725
- * name: 'method',
726
- * args: [{ name: 'arg1', type: 'string' }],
727
- * returns: { type: 'string' },
728
- * })
729
- * composer.addAppCallMethodCall({
730
- * sender: 'CREATORADDRESS',
731
- * method: method,
732
- * args: ["arg1_value"],
733
- * onComplete: OnApplicationComplete.OptIn,
734
- * args: [new Uint8Array(1, 2, 3, 4)]
735
- * accountReferences: ["ACCOUNT_1"]
736
- * appReferences: [123n, 1234n]
737
- * assetReferences: [12345n]
738
- * boxReferences: ["box1", {appId: 1234n, name: "box2"}]
739
- * accessReferences: [{ appId: 1234n }]
740
- * lease: 'lease',
741
- * note: 'note',
742
- * // You wouldn't normally set this field
743
- * firstValidRound: 1000n,
744
- * validityWindow: 10,
745
- * extraFee: (1000).microAlgo(),
746
- * staticFee: (1000).microAlgo(),
747
- * // Max fee doesn't make sense with extraFee AND staticFee
748
- * // already specified, but here for completeness
749
- * maxFee: (3000).microAlgo(),
750
- *})
751
- * ```
752
- */
753
- addAppCallMethodCall(params: AppCallMethodCall): this;
754
- /**
755
- * Add an online key registration transaction to the transaction group.
756
- * @param params The online key registration transaction parameters
757
- * @returns The composer so you can chain method calls
758
- * @example Basic example
759
- * ```typescript
760
- * composer.addOnlineKeyRegistration({
761
- * sender: 'SENDERADDRESS',
762
- * voteKey: Uint8Array.from(Buffer.from("voteKeyBase64", 'base64')),
763
- * selectionKey: Uint8Array.from(Buffer.from("selectionKeyBase64", 'base64')),
764
- * stateProofKey: Uint8Array.from(Buffer.from("stateProofKeyBase64", 'base64')),
765
- * voteFirst: 1n,
766
- * voteLast: 1000n,
767
- * voteKeyDilution: 1n,
768
- * })
769
- * ```
770
- * @example Advanced example
771
- * ```typescript
772
- * composer.addOnlineKeyRegistration({
773
- * sender: 'SENDERADDRESS',
774
- * voteKey: Uint8Array.from(Buffer.from("voteKeyBase64", 'base64')),
775
- * selectionKey: Uint8Array.from(Buffer.from("selectionKeyBase64", 'base64')),
776
- * stateProofKey: Uint8Array.from(Buffer.from("stateProofKeyBase64", 'base64')),
777
- * voteFirst: 1n,
778
- * voteLast: 1000n,
779
- * voteKeyDilution: 1n,
780
- * lease: 'lease',
781
- * note: 'note',
782
- * // Use this with caution, it's generally better to use algorand.account.rekeyAccount
783
- * rekeyTo: 'REKEYTOADDRESS',
784
- * // You wouldn't normally set this field
785
- * firstValidRound: 1000n,
786
- * validityWindow: 10,
787
- * extraFee: (1000).microAlgo(),
788
- * staticFee: (1000).microAlgo(),
789
- * // Max fee doesn't make sense with extraFee AND staticFee
790
- * // already specified, but here for completeness
791
- * maxFee: (3000).microAlgo(),
792
- * })
793
- * ```
794
- */
795
- addOnlineKeyRegistration(params: OnlineKeyRegistrationParams): TransactionComposer;
796
- /**
797
- * Add an offline key registration transaction to the transaction group.
798
- * @param params The offline key registration transaction parameters
799
- * @returns The composer so you can chain method calls
800
- * @example Basic example
801
- * ```typescript
802
- * composer.addOfflineKeyRegistration({
803
- * sender: 'SENDERADDRESS',
804
- * })
805
- * ```
806
- * @example Advanced example
807
- * ```typescript
808
- * composer.addOfflineKeyRegistration({
809
- * sender: 'SENDERADDRESS',
810
- * lease: 'lease',
811
- * note: 'note',
812
- * // Use this with caution, it's generally better to use algorand.account.rekeyAccount
813
- * rekeyTo: 'REKEYTOADDRESS',
814
- * // You wouldn't normally set this field
815
- * firstValidRound: 1000n,
816
- * validityWindow: 10,
817
- * extraFee: (1000).microAlgo(),
818
- * staticFee: (1000).microAlgo(),
819
- * // Max fee doesn't make sense with extraFee AND staticFee
820
- * // already specified, but here for completeness
821
- * maxFee: (3000).microAlgo(),
822
- * })
823
- * ```
824
- */
825
- addOfflineKeyRegistration(params: OfflineKeyRegistrationParams): TransactionComposer;
826
- /**
827
- * Get the number of transactions currently added to this composer.
828
- * @returns The number of transactions currently added to this composer
829
- */
830
- count(): number;
831
- /**
832
- * Build the transaction composer.
833
- *
834
- * This method performs resource population and inner transaction fee coverage if these options are set in the composer.
835
- *
836
- * Once this method is called, no further transactions will be able to be added.
837
- * You can safely call this method multiple times to get the same result.
838
- * @returns The built transaction composer, the transactions and any corresponding method calls
839
- * @example
840
- * ```typescript
841
- * const { transactions, methodCalls } = await composer.build()
842
- * ```
843
- */
844
- build(): Promise<{
845
- transactions: TransactionWithSigner[];
846
- methodCalls: Map<number, ABIMethod>;
847
- }>;
848
- private _buildTransactions;
849
- /**
850
- * Builds all transactions in the composer and returns them along with method calls and signers.
851
- *
852
- * Note: This method only builds the transactions as-is without resource population or automatic grouping.
853
- * Use this when you need the raw transactions.
854
- * @returns An object containing the array of built transactions, method calls, and signers
855
- * @example
856
- * ```typescript
857
- * const { transactions, methodCalls, signers } = await composer.buildTransactions()
858
- * ```
859
- */
860
- buildTransactions(): Promise<BuiltTransactions>;
861
- private populateTransactionAndGroupResources;
862
- private analyzeGroupRequirements;
863
- /**
864
- * Rebuild the group, discarding any previously built transactions.
865
- * This will potentially cause new signers and suggested params to be used if the callbacks return a new value compared to the first build.
866
- * @returns The newly built transaction composer and the transactions
867
- * @example
868
- * ```typescript
869
- * const { atc, transactions, methodCalls } = await composer.rebuild()
870
- * ```
871
- */
872
- rebuild(): Promise<{
873
- transactions: TransactionWithSigner[];
874
- methodCalls: Map<number, ABIMethod>;
875
- }>;
876
- private reset;
877
- /**
878
- * Compose the transaction group and send it to the network.
879
- * @param params The parameters to control execution with
880
- * @returns The execution result
881
- * @example
882
- * ```typescript
883
- * const result = await composer.send()
884
- * ```
885
- */
886
- send(params?: SendParams): Promise<SendTransactionComposerResults>;
887
- /**
888
- * Compose the transaction group and simulate sending it to the network
889
- * @returns The simulation result
890
- * @example
891
- * ```typescript
892
- * const result = await composer.simulate()
893
- * ```
894
- */
895
- simulate(): Promise<SendTransactionComposerResults & {
896
- simulateResponse: SimulateResponse;
897
- }>;
898
- /**
899
- * Compose the transaction group and simulate sending it to the network
900
- * @returns The simulation result
901
- * @example
902
- * ```typescript
903
- * const result = await composer.simulate({
904
- * skipSignatures: true,
905
- * })
906
- * ```
907
- */
908
- simulate(options: SkipSignaturesSimulateOptions): Promise<SendTransactionComposerResults & {
909
- simulateResponse: SimulateResponse;
910
- }>;
911
- /**
912
- * Compose the transaction group and simulate sending it to the network
913
- * @returns The simulation result
914
- * @example
915
- * ```typescript
916
- * const result = await composer.simulate({
917
- * extraOpcodeBudget: 1000,
918
- * })
919
- * ```
920
- */
921
- simulate(options: RawSimulateOptions): Promise<SendTransactionComposerResults & {
922
- simulateResponse: SimulateResponse;
923
- }>;
924
- /**
925
- * Create an encoded transaction note that follows the ARC-2 spec.
926
- *
927
- * https://github.com/algorandfoundation/ARCs/blob/main/ARCs/arc-0002.md
928
- * @param note The ARC-2 transaction note data
929
- * @returns The binary encoded transaction note
930
- */
931
- static arc2Note(note: Arc2TransactionNote): Uint8Array;
932
- gatherSignatures(): Promise<SignedTransaction[]>;
933
- private signTransactions;
934
- private parseAbiReturnValues;
935
- setMaxFees(maxFees: Map<number, AlgoAmount>): void;
936
- }
11
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/composer` instead */
12
+ type AppCallParams = AppCallParams$1;
13
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/composer` instead */
14
+ type AppCreateParams = AppCreateParams$1;
15
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/composer` instead */
16
+ type AppDeleteParams = AppDeleteParams$1;
17
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/composer` instead */
18
+ type AppMethodCallParams = AppMethodCallParams$1;
19
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/composer` instead */
20
+ type AppUpdateParams = AppUpdateParams$1;
21
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/composer` instead */
22
+ type CommonAppCallParams = CommonAppCallParams$1;
23
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/composer` instead */
24
+ type AssetConfigParams = AssetConfigParams$1;
25
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/composer` instead */
26
+ type AssetCreateParams = AssetCreateParams$1;
27
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/composer` instead */
28
+ type AssetDestroyParams = AssetDestroyParams$1;
29
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/composer` instead */
30
+ type AssetFreezeParams = AssetFreezeParams$1;
31
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/composer` instead */
32
+ type AssetOptInParams = AssetOptInParams$1;
33
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/composer` instead */
34
+ type AssetOptOutParams = AssetOptOutParams$1;
35
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/composer` instead */
36
+ type AssetTransferParams = AssetTransferParams$1;
37
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/composer` instead */
38
+ type CommonTransactionParams = CommonTransactionParams$1;
39
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/composer` instead */
40
+ type OfflineKeyRegistrationParams = OfflineKeyRegistrationParams$1;
41
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/composer` instead */
42
+ type OnlineKeyRegistrationParams = OnlineKeyRegistrationParams$1;
43
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/composer` instead */
44
+ type AppCallMethodCall = AppCallMethodCall$1;
45
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/composer` instead */
46
+ type AppCreateMethodCall = AppCreateMethodCall$1;
47
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/composer` instead */
48
+ type AppDeleteMethodCall = AppDeleteMethodCall$1;
49
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/composer` instead */
50
+ type AppMethodCall<T> = AppMethodCall$1<T>;
51
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/composer` instead */
52
+ type AppMethodCallTransactionArgument = AppMethodCallTransactionArgument$1;
53
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/composer` instead */
54
+ type AppUpdateMethodCall = AppUpdateMethodCall$1;
55
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/composer` instead */
56
+ type ProcessedAppCallMethodCall = ProcessedAppCallMethodCall$1;
57
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/composer` instead */
58
+ type ProcessedAppCreateMethodCall = ProcessedAppCreateMethodCall$1;
59
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/composer` instead */
60
+ type ProcessedAppUpdateMethodCall = ProcessedAppUpdateMethodCall$1;
61
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/composer` instead */
62
+ type PaymentParams = PaymentParams$1;
63
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/composer` instead */
64
+ type SkipSignaturesSimulateOptions = SkipSignaturesSimulateOptions$1;
65
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/composer` instead */
66
+ type RawSimulateOptions = RawSimulateOptions$1;
67
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/composer` instead */
68
+ type SimulateOptions = SimulateOptions$1;
69
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/composer` instead */
70
+ type ErrorTransformer = ErrorTransformer$1;
71
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/composer` instead */
72
+ type TransactionComposerConfig = TransactionComposerConfig$1;
73
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/composer` instead */
74
+ type TransactionComposerParams = TransactionComposerParams$1;
75
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/composer` instead */
76
+ type BuiltTransactions = BuiltTransactions$1;
77
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/composer` instead */
78
+ declare const TransactionComposer: typeof TransactionComposer$1;
79
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/composer` instead */
80
+ type TransactionComposer = TransactionComposer$1;
937
81
  //#endregion
938
- export { type AppCallMethodCall, type AppCallParams, type AppCreateMethodCall, type AppCreateParams, type AppDeleteMethodCall, type AppDeleteParams, type AppMethodCall, type AppMethodCallParams, type AppMethodCallTransactionArgument, type AppUpdateMethodCall, type AppUpdateParams, type AssetConfigParams, type AssetCreateParams, type AssetDestroyParams, type AssetFreezeParams, type AssetOptInParams, type AssetOptOutParams, type AssetTransferParams, BuiltTransactions, type CommonAppCallParams, type CommonTransactionParams, ErrorTransformer, type OfflineKeyRegistrationParams, type OnlineKeyRegistrationParams, type PaymentParams, type ProcessedAppCallMethodCall, type ProcessedAppCreateMethodCall, type ProcessedAppUpdateMethodCall, RawSimulateOptions, SimulateOptions, SkipSignaturesSimulateOptions, TransactionComposer, TransactionComposerConfig, TransactionComposerParams };
82
+ export { AppCallMethodCall, AppCallParams, AppCreateMethodCall, AppCreateParams, AppDeleteMethodCall, AppDeleteParams, AppMethodCall, AppMethodCallParams, AppMethodCallTransactionArgument, AppUpdateMethodCall, AppUpdateParams, AssetConfigParams, AssetCreateParams, AssetDestroyParams, AssetFreezeParams, AssetOptInParams, AssetOptOutParams, AssetTransferParams, BuiltTransactions, CommonAppCallParams, CommonTransactionParams, ErrorTransformer, OfflineKeyRegistrationParams, OnlineKeyRegistrationParams, PaymentParams, ProcessedAppCallMethodCall, ProcessedAppCreateMethodCall, ProcessedAppUpdateMethodCall, RawSimulateOptions, SimulateOptions, SkipSignaturesSimulateOptions, TransactionComposer, TransactionComposerConfig, TransactionComposerParams };
939
83
  //# sourceMappingURL=composer.d.ts.map