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

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 (487) 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/algod-client/index.d.ts +3 -7
  6. package/algod-client/index.js +2 -5
  7. package/algod-client/index.mjs +2 -2
  8. package/index.d.ts +1 -2
  9. package/index.js +0 -7
  10. package/index.mjs +1 -2
  11. package/indexer-client/index.d.ts +2 -2
  12. package/indexer-client/index.js +6 -6
  13. package/indexer-client/index.mjs +2 -2
  14. package/{indexer-lookup.d.ts → indexer-client/indexer-lookup.d.ts} +8 -11
  15. package/{indexer-lookup.mjs → indexer-client/indexer-lookup.js} +6 -10
  16. package/indexer-client/indexer-lookup.js.map +1 -0
  17. package/{indexer-lookup.js → indexer-client/indexer-lookup.mjs} +3 -18
  18. package/indexer-client/indexer-lookup.mjs.map +1 -0
  19. package/kmd-client/index.d.ts +1 -2
  20. package/kmd-client/index.js +0 -5
  21. package/kmd-client/index.mjs +1 -2
  22. package/package.json +5 -6
  23. package/packages/abi/src/abi-method.d.ts +1 -1
  24. package/packages/abi/src/abi-method.js +1 -1
  25. package/packages/abi/src/abi-method.js.map +1 -1
  26. package/packages/abi/src/abi-method.mjs +1 -1
  27. package/packages/abi/src/abi-method.mjs.map +1 -1
  28. package/packages/abi/src/abi-type.d.ts +1 -3
  29. package/packages/abi/src/abi-type.js +7 -36
  30. package/packages/abi/src/abi-type.js.map +1 -1
  31. package/packages/abi/src/abi-type.mjs +7 -36
  32. package/packages/abi/src/abi-type.mjs.map +1 -1
  33. package/packages/abi/src/arc56-contract.js +1 -0
  34. package/packages/abi/src/arc56-contract.js.map +1 -1
  35. package/packages/abi/src/arc56-contract.mjs +1 -0
  36. package/packages/abi/src/arc56-contract.mjs.map +1 -1
  37. package/packages/abi/src/utils.d.ts +22 -0
  38. package/packages/abi/src/utils.js +57 -0
  39. package/packages/abi/src/utils.js.map +1 -0
  40. package/packages/abi/src/utils.mjs +55 -0
  41. package/packages/abi/src/utils.mjs.map +1 -0
  42. package/packages/algo25/src/index.js +1 -1
  43. package/packages/algo25/src/index.mjs +1 -1
  44. package/packages/algod_client/src/apis/api-service.d.ts +44 -44
  45. package/packages/algod_client/src/apis/api-service.js +155 -155
  46. package/packages/algod_client/src/apis/api-service.js.map +1 -1
  47. package/packages/algod_client/src/apis/api-service.mjs +155 -155
  48. package/packages/algod_client/src/apis/api-service.mjs.map +1 -1
  49. package/packages/algod_client/src/core/api-error.js +3 -1
  50. package/packages/algod_client/src/core/api-error.js.map +1 -1
  51. package/packages/algod_client/src/core/api-error.mjs +3 -1
  52. package/packages/algod_client/src/core/api-error.mjs.map +1 -1
  53. package/packages/algod_client/src/core/model-runtime.js +6 -6
  54. package/packages/algod_client/src/core/model-runtime.js.map +1 -1
  55. package/packages/algod_client/src/core/model-runtime.mjs +8 -8
  56. package/packages/algod_client/src/core/model-runtime.mjs.map +1 -1
  57. package/packages/algod_client/src/models/account-participation.js +4 -4
  58. package/packages/algod_client/src/models/account-participation.js.map +1 -1
  59. package/packages/algod_client/src/models/account-participation.mjs +4 -4
  60. package/packages/algod_client/src/models/account-participation.mjs.map +1 -1
  61. package/packages/algod_client/src/models/application-state-schema.d.ts +2 -2
  62. package/packages/algod_client/src/models/application-state-schema.js +2 -2
  63. package/packages/algod_client/src/models/application-state-schema.js.map +1 -1
  64. package/packages/algod_client/src/models/application-state-schema.mjs +2 -2
  65. package/packages/algod_client/src/models/application-state-schema.mjs.map +1 -1
  66. package/packages/algod_client/src/models/asset-params.js +2 -1
  67. package/packages/algod_client/src/models/asset-params.js.map +1 -1
  68. package/packages/algod_client/src/models/asset-params.mjs +2 -1
  69. package/packages/algod_client/src/models/asset-params.mjs.map +1 -1
  70. package/packages/algod_client/src/models/block-response.js +1 -2
  71. package/packages/algod_client/src/models/block-response.js.map +1 -1
  72. package/packages/algod_client/src/models/block-response.mjs +2 -3
  73. package/packages/algod_client/src/models/block-response.mjs.map +1 -1
  74. package/packages/algod_client/src/models/block.d.ts +60 -40
  75. package/packages/algod_client/src/models/block.js +184 -108
  76. package/packages/algod_client/src/models/block.js.map +1 -1
  77. package/packages/algod_client/src/models/block.mjs +184 -108
  78. package/packages/algod_client/src/models/block.mjs.map +1 -1
  79. package/packages/algod_client/src/models/eval-delta-key-value.js +2 -2
  80. package/packages/algod_client/src/models/eval-delta-key-value.js.map +1 -1
  81. package/packages/algod_client/src/models/eval-delta-key-value.mjs +2 -2
  82. package/packages/algod_client/src/models/eval-delta-key-value.mjs.map +1 -1
  83. package/packages/algod_client/src/models/eval-delta.js +2 -2
  84. package/packages/algod_client/src/models/eval-delta.js.map +1 -1
  85. package/packages/algod_client/src/models/eval-delta.mjs +2 -2
  86. package/packages/algod_client/src/models/eval-delta.mjs.map +1 -1
  87. package/packages/algod_client/src/models/ledger-state-delta.js +1 -1
  88. package/packages/algod_client/src/models/ledger-state-delta.js.map +1 -1
  89. package/packages/algod_client/src/models/ledger-state-delta.mjs +2 -2
  90. package/packages/algod_client/src/models/ledger-state-delta.mjs.map +1 -1
  91. package/packages/algod_client/src/models/simulate-request.js +1 -1
  92. package/packages/algod_client/src/models/simulate-request.mjs +1 -1
  93. package/packages/algod_client/src/models/simulate-response.d.ts +2 -1
  94. package/packages/algod_client/src/models/simulate-response.js +6 -1
  95. package/packages/algod_client/src/models/simulate-response.js.map +1 -1
  96. package/packages/algod_client/src/models/simulate-response.mjs +6 -2
  97. package/packages/algod_client/src/models/simulate-response.mjs.map +1 -1
  98. package/packages/algod_client/src/models/simulate-unnamed-resources-accessed.d.ts +3 -5
  99. package/packages/algod_client/src/models/simulate-unnamed-resources-accessed.js +4 -6
  100. package/packages/algod_client/src/models/simulate-unnamed-resources-accessed.js.map +1 -1
  101. package/packages/algod_client/src/models/simulate-unnamed-resources-accessed.mjs +3 -5
  102. package/packages/algod_client/src/models/simulate-unnamed-resources-accessed.mjs.map +1 -1
  103. package/packages/algod_client/src/models/transaction-parameters-response.js +2 -2
  104. package/packages/algod_client/src/models/transaction-parameters-response.js.map +1 -1
  105. package/packages/algod_client/src/models/transaction-parameters-response.mjs +2 -2
  106. package/packages/algod_client/src/models/transaction-parameters-response.mjs.map +1 -1
  107. package/packages/common/src/address.d.ts +0 -1
  108. package/packages/common/src/address.js +4 -17
  109. package/packages/common/src/address.js.map +1 -1
  110. package/packages/common/src/address.mjs +5 -17
  111. package/packages/common/src/address.mjs.map +1 -1
  112. package/packages/common/src/codecs/composite/map.js +7 -4
  113. package/packages/common/src/codecs/composite/map.js.map +1 -1
  114. package/packages/common/src/codecs/composite/map.mjs +7 -4
  115. package/packages/common/src/codecs/composite/map.mjs.map +1 -1
  116. package/packages/common/src/codecs/composite/record.js +0 -1
  117. package/packages/common/src/codecs/composite/record.js.map +1 -1
  118. package/packages/common/src/codecs/primitives/address.js +0 -1
  119. package/packages/common/src/codecs/primitives/address.js.map +1 -1
  120. package/packages/common/src/codecs/primitives/bytes-base64.js +26 -0
  121. package/packages/common/src/codecs/primitives/bytes-base64.js.map +1 -0
  122. package/packages/common/src/codecs/primitives/bytes-base64.mjs +25 -0
  123. package/packages/common/src/codecs/primitives/bytes-base64.mjs.map +1 -0
  124. package/packages/common/src/codecs/primitives/bytes.js +0 -1
  125. package/packages/common/src/codecs/primitives/bytes.js.map +1 -1
  126. package/packages/common/src/codecs/primitives/fixed-bytes.js +0 -1
  127. package/packages/common/src/codecs/primitives/fixed-bytes.js.map +1 -1
  128. package/packages/common/src/codecs/wire.js +0 -1
  129. package/packages/common/src/codecs/wire.js.map +1 -1
  130. package/packages/common/src/json.mjs +2 -2
  131. package/packages/common/src/json.mjs.map +1 -1
  132. package/packages/common/src/msgpack.js +0 -1
  133. package/packages/common/src/msgpack.js.map +1 -1
  134. package/packages/{sdk/src/logic → common/src}/sourcemap.d.ts +2 -2
  135. package/packages/{sdk/src/logic → common/src}/sourcemap.js +2 -2
  136. package/packages/{sdk/src/logic → common/src}/sourcemap.js.map +1 -1
  137. package/packages/{sdk/src/logic → common/src}/sourcemap.mjs +1 -1
  138. package/packages/{sdk/src/logic → common/src}/sourcemap.mjs.map +1 -1
  139. package/packages/indexer_client/src/apis/api-service.d.ts +1 -1
  140. package/packages/indexer_client/src/apis/api-service.js +12 -12
  141. package/packages/indexer_client/src/apis/api-service.js.map +1 -1
  142. package/packages/indexer_client/src/apis/api-service.mjs +12 -12
  143. package/packages/indexer_client/src/apis/api-service.mjs.map +1 -1
  144. package/packages/indexer_client/src/core/api-error.js +3 -1
  145. package/packages/indexer_client/src/core/api-error.js.map +1 -1
  146. package/packages/indexer_client/src/core/api-error.mjs +3 -1
  147. package/packages/indexer_client/src/core/api-error.mjs.map +1 -1
  148. package/packages/indexer_client/src/core/model-runtime.js +0 -15
  149. package/packages/indexer_client/src/core/model-runtime.js.map +1 -1
  150. package/packages/indexer_client/src/core/model-runtime.mjs +1 -13
  151. package/packages/indexer_client/src/core/model-runtime.mjs.map +1 -1
  152. package/packages/indexer_client/src/models/account-participation.js +4 -4
  153. package/packages/indexer_client/src/models/account-participation.js.map +1 -1
  154. package/packages/indexer_client/src/models/account-participation.mjs +4 -4
  155. package/packages/indexer_client/src/models/account-participation.mjs.map +1 -1
  156. package/packages/indexer_client/src/models/application-state-schema.d.ts +2 -2
  157. package/packages/indexer_client/src/models/application-state-schema.js +2 -2
  158. package/packages/indexer_client/src/models/application-state-schema.js.map +1 -1
  159. package/packages/indexer_client/src/models/application-state-schema.mjs +2 -2
  160. package/packages/indexer_client/src/models/application-state-schema.mjs.map +1 -1
  161. package/packages/indexer_client/src/models/asset-params.js +2 -1
  162. package/packages/indexer_client/src/models/asset-params.js.map +1 -1
  163. package/packages/indexer_client/src/models/asset-params.mjs +2 -1
  164. package/packages/indexer_client/src/models/asset-params.mjs.map +1 -1
  165. package/packages/indexer_client/src/models/block.d.ts +5 -5
  166. package/packages/indexer_client/src/models/block.js +13 -13
  167. package/packages/indexer_client/src/models/block.js.map +1 -1
  168. package/packages/indexer_client/src/models/block.mjs +13 -13
  169. package/packages/indexer_client/src/models/block.mjs.map +1 -1
  170. package/packages/indexer_client/src/models/eval-delta-key-value.d.ts +1 -1
  171. package/packages/indexer_client/src/models/eval-delta-key-value.js +2 -2
  172. package/packages/indexer_client/src/models/eval-delta-key-value.js.map +1 -1
  173. package/packages/indexer_client/src/models/eval-delta-key-value.mjs +2 -2
  174. package/packages/indexer_client/src/models/eval-delta-key-value.mjs.map +1 -1
  175. package/packages/indexer_client/src/models/eval-delta.d.ts +1 -1
  176. package/packages/indexer_client/src/models/eval-delta.js +2 -2
  177. package/packages/indexer_client/src/models/eval-delta.js.map +1 -1
  178. package/packages/indexer_client/src/models/eval-delta.mjs +2 -2
  179. package/packages/indexer_client/src/models/eval-delta.mjs.map +1 -1
  180. package/packages/indexer_client/src/models/hb-proof-fields.js +6 -6
  181. package/packages/indexer_client/src/models/hb-proof-fields.js.map +1 -1
  182. package/packages/indexer_client/src/models/hb-proof-fields.mjs +6 -6
  183. package/packages/indexer_client/src/models/hb-proof-fields.mjs.map +1 -1
  184. package/packages/indexer_client/src/models/participation-updates.d.ts +2 -2
  185. package/packages/indexer_client/src/models/participation-updates.js +2 -2
  186. package/packages/indexer_client/src/models/participation-updates.js.map +1 -1
  187. package/packages/indexer_client/src/models/participation-updates.mjs +2 -2
  188. package/packages/indexer_client/src/models/participation-updates.mjs.map +1 -1
  189. package/packages/indexer_client/src/models/state-proof-verifier.js +2 -2
  190. package/packages/indexer_client/src/models/state-proof-verifier.js.map +1 -1
  191. package/packages/indexer_client/src/models/state-proof-verifier.mjs +2 -2
  192. package/packages/indexer_client/src/models/state-proof-verifier.mjs.map +1 -1
  193. package/packages/indexer_client/src/models/state-schema.d.ts +2 -2
  194. package/packages/indexer_client/src/models/state-schema.js +2 -2
  195. package/packages/indexer_client/src/models/state-schema.js.map +1 -1
  196. package/packages/indexer_client/src/models/state-schema.mjs +2 -2
  197. package/packages/indexer_client/src/models/state-schema.mjs.map +1 -1
  198. package/packages/indexer_client/src/models/teal-key-value.d.ts +1 -1
  199. package/packages/indexer_client/src/models/teal-key-value.js +2 -2
  200. package/packages/indexer_client/src/models/teal-key-value.js.map +1 -1
  201. package/packages/indexer_client/src/models/teal-key-value.mjs +2 -2
  202. package/packages/indexer_client/src/models/teal-key-value.mjs.map +1 -1
  203. package/packages/indexer_client/src/models/transaction-heartbeat.js +2 -1
  204. package/packages/indexer_client/src/models/transaction-heartbeat.js.map +1 -1
  205. package/packages/indexer_client/src/models/transaction-heartbeat.mjs +2 -1
  206. package/packages/indexer_client/src/models/transaction-heartbeat.mjs.map +1 -1
  207. package/packages/indexer_client/src/models/transaction-keyreg.js +4 -4
  208. package/packages/indexer_client/src/models/transaction-keyreg.js.map +1 -1
  209. package/packages/indexer_client/src/models/transaction-keyreg.mjs +4 -4
  210. package/packages/indexer_client/src/models/transaction-keyreg.mjs.map +1 -1
  211. package/packages/indexer_client/src/models/transaction-signature-logicsig.js +2 -1
  212. package/packages/indexer_client/src/models/transaction-signature-logicsig.js.map +1 -1
  213. package/packages/indexer_client/src/models/transaction-signature-logicsig.mjs +2 -1
  214. package/packages/indexer_client/src/models/transaction-signature-logicsig.mjs.map +1 -1
  215. package/packages/indexer_client/src/models/transaction-signature-multisig-subsignature.js +3 -3
  216. package/packages/indexer_client/src/models/transaction-signature-multisig-subsignature.js.map +1 -1
  217. package/packages/indexer_client/src/models/transaction-signature-multisig-subsignature.mjs +3 -3
  218. package/packages/indexer_client/src/models/transaction-signature-multisig-subsignature.mjs.map +1 -1
  219. package/packages/indexer_client/src/models/transaction-state-proof.d.ts +1 -1
  220. package/packages/indexer_client/src/models/transaction-state-proof.js +2 -2
  221. package/packages/indexer_client/src/models/transaction-state-proof.js.map +1 -1
  222. package/packages/indexer_client/src/models/transaction-state-proof.mjs +2 -2
  223. package/packages/indexer_client/src/models/transaction-state-proof.mjs.map +1 -1
  224. package/packages/indexer_client/src/models/transaction.d.ts +2 -2
  225. package/packages/indexer_client/src/models/transaction.js +6 -5
  226. package/packages/indexer_client/src/models/transaction.js.map +1 -1
  227. package/packages/indexer_client/src/models/transaction.mjs +6 -5
  228. package/packages/indexer_client/src/models/transaction.mjs.map +1 -1
  229. package/packages/kmd_client/src/apis/api-service.d.ts +5 -5
  230. package/packages/kmd_client/src/apis/api-service.js +32 -32
  231. package/packages/kmd_client/src/apis/api-service.js.map +1 -1
  232. package/packages/kmd_client/src/apis/api-service.mjs +32 -32
  233. package/packages/kmd_client/src/apis/api-service.mjs.map +1 -1
  234. package/packages/kmd_client/src/core/api-error.js +3 -1
  235. package/packages/kmd_client/src/core/api-error.js.map +1 -1
  236. package/packages/kmd_client/src/core/api-error.mjs +3 -1
  237. package/packages/kmd_client/src/core/api-error.mjs.map +1 -1
  238. package/packages/kmd_client/src/core/model-runtime.js +2 -12
  239. package/packages/kmd_client/src/core/model-runtime.js.map +1 -1
  240. package/packages/kmd_client/src/core/model-runtime.mjs +3 -11
  241. package/packages/kmd_client/src/core/model-runtime.mjs.map +1 -1
  242. package/packages/transact/src/logicsig.d.ts +35 -33
  243. package/packages/transact/src/logicsig.js +74 -76
  244. package/packages/transact/src/logicsig.js.map +1 -1
  245. package/packages/transact/src/logicsig.mjs +77 -78
  246. package/packages/transact/src/logicsig.mjs.map +1 -1
  247. package/packages/transact/src/multisig.d.ts +11 -116
  248. package/packages/transact/src/multisig.js +106 -136
  249. package/packages/transact/src/multisig.js.map +1 -1
  250. package/packages/transact/src/multisig.mjs +108 -118
  251. package/packages/transact/src/multisig.mjs.map +1 -1
  252. package/packages/transact/src/signer.js +9 -2
  253. package/packages/transact/src/signer.js.map +1 -1
  254. package/packages/transact/src/signer.mjs +10 -3
  255. package/packages/transact/src/signer.mjs.map +1 -1
  256. package/packages/transact/src/transactions/app-call.d.ts +10 -15
  257. package/packages/transact/src/transactions/app-call.js.map +1 -1
  258. package/packages/transact/src/transactions/app-call.mjs.map +1 -1
  259. package/packages/transact/src/transactions/asset-config.d.ts +1 -6
  260. package/packages/transact/src/transactions/asset-config.js.map +1 -1
  261. package/packages/transact/src/transactions/asset-config.mjs.map +1 -1
  262. package/packages/transact/src/transactions/asset-freeze.d.ts +1 -6
  263. package/packages/transact/src/transactions/asset-transfer.d.ts +1 -6
  264. package/packages/transact/src/transactions/key-registration.d.ts +1 -8
  265. package/packages/transact/src/transactions/reference-types-meta.d.ts +26 -0
  266. package/packages/transact/src/transactions/reference-types-meta.js +71 -0
  267. package/packages/transact/src/transactions/reference-types-meta.js.map +1 -0
  268. package/packages/transact/src/transactions/reference-types-meta.mjs +69 -0
  269. package/packages/transact/src/transactions/reference-types-meta.mjs.map +1 -0
  270. package/packages/transact/src/transactions/signed-transaction-meta.js +8 -9
  271. package/packages/transact/src/transactions/signed-transaction-meta.js.map +1 -1
  272. package/packages/transact/src/transactions/signed-transaction-meta.mjs +8 -8
  273. package/packages/transact/src/transactions/signed-transaction-meta.mjs.map +1 -1
  274. package/packages/transact/src/transactions/signed-transaction.d.ts +10 -6
  275. package/packages/transact/src/transactions/signed-transaction.js +1 -1
  276. package/packages/transact/src/transactions/signed-transaction.js.map +1 -1
  277. package/packages/transact/src/transactions/signed-transaction.mjs +1 -2
  278. package/packages/transact/src/transactions/signed-transaction.mjs.map +1 -1
  279. package/packages/transact/src/transactions/state-proof.d.ts +1 -1
  280. package/packages/transact/src/transactions/transaction-meta.js +29 -23
  281. package/packages/transact/src/transactions/transaction-meta.js.map +1 -1
  282. package/packages/transact/src/transactions/transaction-meta.mjs +29 -23
  283. package/packages/transact/src/transactions/transaction-meta.mjs.map +1 -1
  284. package/packages/transact/src/transactions/transaction.d.ts +5 -2
  285. package/packages/transact/src/transactions/transaction.js +5 -4
  286. package/packages/transact/src/transactions/transaction.js.map +1 -1
  287. package/packages/transact/src/transactions/transaction.mjs +5 -4
  288. package/packages/transact/src/transactions/transaction.mjs.map +1 -1
  289. package/testing/account.js +1 -2
  290. package/testing/account.js.map +1 -1
  291. package/testing/account.mjs +1 -2
  292. package/testing/account.mjs.map +1 -1
  293. package/testing/fixtures/algorand-fixture.d.ts +3 -3
  294. package/testing/fixtures/algorand-fixture.js.map +1 -1
  295. package/testing/fixtures/algorand-fixture.mjs.map +1 -1
  296. package/testing/transaction-logger.js +1 -1
  297. package/testing/transaction-logger.mjs +1 -1
  298. package/transact/index.d.ts +11 -10
  299. package/transact/index.js +7 -31
  300. package/transact/index.mjs +7 -10
  301. package/transaction/transaction.js +2 -2
  302. package/transaction/transaction.js.map +1 -1
  303. package/transaction/transaction.mjs +2 -2
  304. package/transaction/transaction.mjs.map +1 -1
  305. package/transactions/app-call.d.ts +5 -4
  306. package/transactions/app-call.js +16 -16
  307. package/transactions/app-call.js.map +1 -1
  308. package/transactions/app-call.mjs +16 -16
  309. package/transactions/app-call.mjs.map +1 -1
  310. package/transactions/asset-config.d.ts +1 -1
  311. package/transactions/asset-config.js +1 -1
  312. package/transactions/asset-config.js.map +1 -1
  313. package/transactions/asset-config.mjs +1 -1
  314. package/transactions/asset-config.mjs.map +1 -1
  315. package/transactions/key-registration.d.ts +1 -1
  316. package/transactions/key-registration.js.map +1 -1
  317. package/transactions/key-registration.mjs.map +1 -1
  318. package/transactions/method-call.d.ts +1 -1
  319. package/transactions/method-call.js +77 -84
  320. package/transactions/method-call.js.map +1 -1
  321. package/transactions/method-call.mjs +77 -84
  322. package/transactions/method-call.mjs.map +1 -1
  323. package/types/account-manager.d.ts +7 -9
  324. package/types/account-manager.js +17 -7
  325. package/types/account-manager.js.map +1 -1
  326. package/types/account-manager.mjs +17 -7
  327. package/types/account-manager.mjs.map +1 -1
  328. package/types/algorand-client-transaction-creator.d.ts +53 -39
  329. package/types/algorand-client-transaction-creator.js +8 -0
  330. package/types/algorand-client-transaction-creator.js.map +1 -1
  331. package/types/algorand-client-transaction-creator.mjs +8 -0
  332. package/types/algorand-client-transaction-creator.mjs.map +1 -1
  333. package/types/algorand-client-transaction-sender.d.ts +58 -44
  334. package/types/algorand-client-transaction-sender.js +8 -1
  335. package/types/algorand-client-transaction-sender.js.map +1 -1
  336. package/types/algorand-client-transaction-sender.mjs +8 -0
  337. package/types/algorand-client-transaction-sender.mjs.map +1 -1
  338. package/types/amount.js +23 -4
  339. package/types/amount.js.map +1 -1
  340. package/types/amount.mjs +20 -2
  341. package/types/amount.mjs.map +1 -1
  342. package/types/app-client.d.ts +111 -106
  343. package/types/app-client.js +2 -3
  344. package/types/app-client.js.map +1 -1
  345. package/types/app-client.mjs +2 -2
  346. package/types/app-client.mjs.map +1 -1
  347. package/types/app-deployer.d.ts +1 -1
  348. package/types/app-deployer.js +3 -3
  349. package/types/app-deployer.js.map +1 -1
  350. package/types/app-deployer.mjs +3 -3
  351. package/types/app-deployer.mjs.map +1 -1
  352. package/types/app-factory.d.ts +44 -41
  353. package/types/app-factory.js +2 -2
  354. package/types/app-factory.js.map +1 -1
  355. package/types/app-factory.mjs +2 -2
  356. package/types/app-factory.mjs.map +1 -1
  357. package/types/app-manager.d.ts +3 -1
  358. package/types/app-manager.js +17 -11
  359. package/types/app-manager.js.map +1 -1
  360. package/types/app-manager.mjs +17 -11
  361. package/types/app-manager.mjs.map +1 -1
  362. package/types/app-spec.js +12 -5
  363. package/types/app-spec.js.map +1 -1
  364. package/types/app-spec.mjs +12 -5
  365. package/types/app-spec.mjs.map +1 -1
  366. package/types/app.d.ts +2 -2
  367. package/types/app.js.map +1 -1
  368. package/types/app.mjs.map +1 -1
  369. package/types/asset-manager.js +1 -1
  370. package/types/asset-manager.js.map +1 -1
  371. package/types/asset-manager.mjs +1 -1
  372. package/types/asset-manager.mjs.map +1 -1
  373. package/types/async-event-emitter.d.ts +3 -6
  374. package/types/async-event-emitter.js.map +1 -1
  375. package/types/async-event-emitter.mjs.map +1 -1
  376. package/types/client-manager.d.ts +1 -1
  377. package/types/client-manager.js.map +1 -1
  378. package/types/client-manager.mjs.map +1 -1
  379. package/types/composer.d.ts +11 -3
  380. package/types/composer.js +55 -46
  381. package/types/composer.js.map +1 -1
  382. package/types/composer.mjs +46 -36
  383. package/types/composer.mjs.map +1 -1
  384. package/types/debugging.d.ts +13 -9
  385. package/types/debugging.js.map +1 -1
  386. package/types/debugging.mjs.map +1 -1
  387. package/types/expand.d.ts +2 -9
  388. package/types/kmd-account-manager.d.ts +1 -0
  389. package/types/kmd-account-manager.js +22 -11
  390. package/types/kmd-account-manager.js.map +1 -1
  391. package/types/kmd-account-manager.mjs +23 -12
  392. package/types/kmd-account-manager.mjs.map +1 -1
  393. package/types/lifecycle-events.d.ts +0 -1
  394. package/types/lifecycle-events.js.map +1 -1
  395. package/types/lifecycle-events.mjs.map +1 -1
  396. package/types/testing.d.ts +4 -4
  397. package/types/transaction.d.ts +1 -1
  398. package/_virtual/rolldown_runtime.mjs +0 -13
  399. package/indexer-lookup.js.map +0 -1
  400. package/indexer-lookup.mjs.map +0 -1
  401. package/packages/algod_client/src/core/model-runtime.d.ts +0 -10
  402. package/packages/algod_client/src/models/application-local-reference.d.ts +0 -20
  403. package/packages/algod_client/src/models/application-local-reference.js +0 -23
  404. package/packages/algod_client/src/models/application-local-reference.js.map +0 -1
  405. package/packages/algod_client/src/models/application-local-reference.mjs +0 -23
  406. package/packages/algod_client/src/models/application-local-reference.mjs.map +0 -1
  407. package/packages/algod_client/src/models/asset-holding-reference.d.ts +0 -20
  408. package/packages/algod_client/src/models/asset-holding-reference.js +0 -23
  409. package/packages/algod_client/src/models/asset-holding-reference.js.map +0 -1
  410. package/packages/algod_client/src/models/asset-holding-reference.mjs +0 -23
  411. package/packages/algod_client/src/models/asset-holding-reference.mjs.map +0 -1
  412. package/packages/algod_client/src/models/box-reference.d.ts +0 -17
  413. package/packages/algod_client/src/models/box-reference.js +0 -23
  414. package/packages/algod_client/src/models/box-reference.js.map +0 -1
  415. package/packages/algod_client/src/models/box-reference.mjs +0 -23
  416. package/packages/algod_client/src/models/box-reference.mjs.map +0 -1
  417. package/packages/indexer_client/src/core/model-runtime.d.ts +0 -10
  418. package/packages/kmd_client/src/core/model-runtime.d.ts +0 -10
  419. package/packages/sdk/src/convert.d.ts +0 -17
  420. package/packages/sdk/src/convert.js +0 -28
  421. package/packages/sdk/src/convert.js.map +0 -1
  422. package/packages/sdk/src/convert.mjs +0 -25
  423. package/packages/sdk/src/convert.mjs.map +0 -1
  424. package/packages/sdk/src/encoding/binarydata.d.ts +0 -34
  425. package/packages/sdk/src/encoding/binarydata.js +0 -65
  426. package/packages/sdk/src/encoding/binarydata.js.map +0 -1
  427. package/packages/sdk/src/encoding/binarydata.mjs +0 -60
  428. package/packages/sdk/src/encoding/binarydata.mjs.map +0 -1
  429. package/packages/sdk/src/encoding/encoding.d.ts +0 -237
  430. package/packages/sdk/src/encoding/encoding.js +0 -302
  431. package/packages/sdk/src/encoding/encoding.js.map +0 -1
  432. package/packages/sdk/src/encoding/encoding.mjs +0 -287
  433. package/packages/sdk/src/encoding/encoding.mjs.map +0 -1
  434. package/packages/sdk/src/encoding/schema/array.js +0 -35
  435. package/packages/sdk/src/encoding/schema/array.js.map +0 -1
  436. package/packages/sdk/src/encoding/schema/array.mjs +0 -35
  437. package/packages/sdk/src/encoding/schema/array.mjs.map +0 -1
  438. package/packages/sdk/src/encoding/schema/bytearray.js +0 -49
  439. package/packages/sdk/src/encoding/schema/bytearray.js.map +0 -1
  440. package/packages/sdk/src/encoding/schema/bytearray.mjs +0 -49
  441. package/packages/sdk/src/encoding/schema/bytearray.mjs.map +0 -1
  442. package/packages/sdk/src/encoding/schema/map.d.ts +0 -58
  443. package/packages/sdk/src/encoding/schema/map.js +0 -110
  444. package/packages/sdk/src/encoding/schema/map.js.map +0 -1
  445. package/packages/sdk/src/encoding/schema/map.mjs +0 -107
  446. package/packages/sdk/src/encoding/schema/map.mjs.map +0 -1
  447. package/packages/sdk/src/encoding/schema/optional.js +0 -46
  448. package/packages/sdk/src/encoding/schema/optional.js.map +0 -1
  449. package/packages/sdk/src/encoding/schema/optional.mjs +0 -46
  450. package/packages/sdk/src/encoding/schema/optional.mjs.map +0 -1
  451. package/packages/sdk/src/encoding/schema/uint64.js +0 -30
  452. package/packages/sdk/src/encoding/schema/uint64.js.map +0 -1
  453. package/packages/sdk/src/encoding/schema/uint64.mjs +0 -30
  454. package/packages/sdk/src/encoding/schema/uint64.mjs.map +0 -1
  455. package/packages/sdk/src/encoding/uint64.d.ts +0 -34
  456. package/packages/sdk/src/encoding/uint64.js +0 -34
  457. package/packages/sdk/src/encoding/uint64.js.map +0 -1
  458. package/packages/sdk/src/encoding/uint64.mjs +0 -33
  459. package/packages/sdk/src/encoding/uint64.mjs.map +0 -1
  460. package/packages/sdk/src/index.d.ts +0 -44
  461. package/packages/sdk/src/index.js +0 -62
  462. package/packages/sdk/src/index.js.map +0 -1
  463. package/packages/sdk/src/index.mjs +0 -58
  464. package/packages/sdk/src/index.mjs.map +0 -1
  465. package/packages/sdk/src/nacl/naclWrappers.js +0 -14
  466. package/packages/sdk/src/nacl/naclWrappers.js.map +0 -1
  467. package/packages/sdk/src/nacl/naclWrappers.mjs +0 -11
  468. package/packages/sdk/src/nacl/naclWrappers.mjs.map +0 -1
  469. package/packages/sdk/src/types/intDecoding.d.ts +0 -28
  470. package/packages/sdk/src/types/intDecoding.js +0 -32
  471. package/packages/sdk/src/types/intDecoding.js.map +0 -1
  472. package/packages/sdk/src/types/intDecoding.mjs +0 -31
  473. package/packages/sdk/src/types/intDecoding.mjs.map +0 -1
  474. package/packages/sdk/src/types/transactions/encoded.d.ts +0 -40
  475. package/packages/sdk/src/types/transactions/encoded.js +0 -64
  476. package/packages/sdk/src/types/transactions/encoded.js.map +0 -1
  477. package/packages/sdk/src/types/transactions/encoded.mjs +0 -59
  478. package/packages/sdk/src/types/transactions/encoded.mjs.map +0 -1
  479. package/packages/sdk/src/utils/utils.d.ts +0 -64
  480. package/packages/sdk/src/utils/utils.js +0 -140
  481. package/packages/sdk/src/utils/utils.js.map +0 -1
  482. package/packages/sdk/src/utils/utils.mjs +0 -128
  483. package/packages/sdk/src/utils/utils.mjs.map +0 -1
  484. package/packages/transact/src/transactions/common.d.ts +0 -37
  485. package/sdk/index.d.ts +0 -10
  486. package/sdk/index.js +0 -59
  487. package/sdk/index.mjs +0 -11
@@ -1 +1 @@
1
- {"version":3,"file":"algorand-client-transaction-creator.mjs","names":[],"sources":["../../src/types/algorand-client-transaction-creator.ts"],"sourcesContent":["import { Transaction } from '@algorandfoundation/algokit-transact'\nimport { BuiltTransactions, TransactionComposer, TransactionComposerConfig } from './composer'\nimport { Expand } from './expand'\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 *})\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 *})\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 *})\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 *})\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 *})\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 *})\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 *})\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 *})\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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4CxD,YAAY,KAAK,cAAc,MAAM,EAAE,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCpD,YAAY,KAAK,cAAc,MAAM,EAAE,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCpD,YAAY,KAAK,cAAc,MAAM,EAAE,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCpD,UAAU,KAAK,cAAc,MAAM,EAAE,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwDhD,sBAAsB,KAAK,eAAe,MAAM,EAAE,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDzE,sBAAsB,KAAK,eAAe,MAAM,EAAE,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+CzE,sBAAsB,KAAK,eAAe,MAAM,EAAE,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+CzE,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/types/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,7 +1,7 @@
1
1
  import { ReadableAddress } from "../packages/common/src/address.js";
2
2
  import { ABIValue } from "../packages/abi/src/abi-value.js";
3
3
  import { ABIMethod, ABIReturn } from "../packages/abi/src/abi-method.js";
4
- import { AccessReference, OnApplicationComplete } from "../packages/transact/src/transactions/app-call.js";
4
+ import { OnApplicationComplete, ResourceReference } from "../packages/transact/src/transactions/app-call.js";
5
5
  import { Transaction } from "../packages/transact/src/transactions/transaction.js";
6
6
  import { AddressWithTransactionSigner, SendingAddress, TransactionSigner } from "../packages/transact/src/signer.js";
7
7
  import { PendingTransactionResponse } from "../packages/algod_client/src/models/pending-transaction-response.js";
@@ -236,7 +236,7 @@ declare class AlgorandClientTransactionSender {
236
236
  */
237
237
  assetFreeze: (params: CommonTransactionParams & {
238
238
  assetId: bigint;
239
- account: ReadableAddress;
239
+ freezeTarget: ReadableAddress;
240
240
  frozen: boolean;
241
241
  } & SendParams) => Promise<SendSingleTransactionResult>;
242
242
  /**
@@ -467,6 +467,7 @@ declare class AlgorandClientTransactionSender {
467
467
  * // Max fee doesn't make sense with extraFee AND staticFee
468
468
  * // already specified, but here for completeness
469
469
  * maxFee: (3000).microAlgo(),
470
+ * rejectVersion: 1,
470
471
  * // Signer only needed if you want to provide one,
471
472
  * // generally you'd register it with AlgorandClient
472
473
  * // against the sender and not need to pass it in
@@ -494,9 +495,10 @@ declare class AlgorandClientTransactionSender {
494
495
  accountReferences?: ReadableAddress[] | undefined;
495
496
  appReferences?: bigint[] | undefined;
496
497
  assetReferences?: bigint[] | undefined;
497
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
498
- accessReferences?: AccessReference[] | undefined;
498
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
499
+ accessReferences?: ResourceReference[] | undefined;
499
500
  rejectVersion?: number | undefined;
501
+ appId?: 0 | undefined;
500
502
  approvalProgram: string | Uint8Array;
501
503
  clearStateProgram: string | Uint8Array;
502
504
  schema?: {
@@ -540,6 +542,7 @@ declare class AlgorandClientTransactionSender {
540
542
  * // Max fee doesn't make sense with extraFee AND staticFee
541
543
  * // already specified, but here for completeness
542
544
  * maxFee: (3000).microAlgo(),
545
+ * rejectVersion: 1,
543
546
  * // Signer only needed if you want to provide one,
544
547
  * // generally you'd register it with AlgorandClient
545
548
  * // against the sender and not need to pass it in
@@ -568,8 +571,8 @@ declare class AlgorandClientTransactionSender {
568
571
  accountReferences?: ReadableAddress[] | undefined;
569
572
  appReferences?: bigint[] | undefined;
570
573
  assetReferences?: bigint[] | undefined;
571
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
572
- accessReferences?: AccessReference[] | undefined;
574
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
575
+ accessReferences?: ResourceReference[] | undefined;
573
576
  rejectVersion?: number | undefined;
574
577
  approvalProgram: string | Uint8Array;
575
578
  clearStateProgram: string | Uint8Array;
@@ -605,6 +608,7 @@ declare class AlgorandClientTransactionSender {
605
608
  * // Max fee doesn't make sense with extraFee AND staticFee
606
609
  * // already specified, but here for completeness
607
610
  * maxFee: (3000).microAlgo(),
611
+ * rejectVersion: 1,
608
612
  * // Signer only needed if you want to provide one,
609
613
  * // generally you'd register it with AlgorandClient
610
614
  * // against the sender and not need to pass it in
@@ -622,8 +626,8 @@ declare class AlgorandClientTransactionSender {
622
626
  accountReferences?: ReadableAddress[] | undefined;
623
627
  appReferences?: bigint[] | undefined;
624
628
  assetReferences?: bigint[] | undefined;
625
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
626
- accessReferences?: AccessReference[] | undefined;
629
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
630
+ accessReferences?: ResourceReference[] | undefined;
627
631
  rejectVersion?: number | undefined;
628
632
  } & {
629
633
  onComplete?: OnApplicationComplete.DeleteApplication | undefined;
@@ -659,6 +663,7 @@ declare class AlgorandClientTransactionSender {
659
663
  * // Max fee doesn't make sense with extraFee AND staticFee
660
664
  * // already specified, but here for completeness
661
665
  * maxFee: (3000).microAlgo(),
666
+ * rejectVersion: 1,
662
667
  * // Signer only needed if you want to provide one,
663
668
  * // generally you'd register it with AlgorandClient
664
669
  * // against the sender and not need to pass it in
@@ -676,8 +681,8 @@ declare class AlgorandClientTransactionSender {
676
681
  accountReferences?: ReadableAddress[] | undefined;
677
682
  appReferences?: bigint[] | undefined;
678
683
  assetReferences?: bigint[] | undefined;
679
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
680
- accessReferences?: AccessReference[] | undefined;
684
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
685
+ accessReferences?: ResourceReference[] | undefined;
681
686
  rejectVersion?: number | undefined;
682
687
  } & {
683
688
  onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.ClearState | OnApplicationComplete.DeleteApplication | undefined;
@@ -735,6 +740,7 @@ declare class AlgorandClientTransactionSender {
735
740
  * // Max fee doesn't make sense with extraFee AND staticFee
736
741
  * // already specified, but here for completeness
737
742
  * maxFee: (3000).microAlgo(),
743
+ * rejectVersion: 1,
738
744
  * // Signer only needed if you want to provide one,
739
745
  * // generally you'd register it with AlgorandClient
740
746
  * // against the sender and not need to pass it in
@@ -757,24 +763,25 @@ declare class AlgorandClientTransactionSender {
757
763
  validityWindow?: number | bigint | undefined;
758
764
  firstValidRound?: bigint | undefined;
759
765
  lastValidRound?: bigint | undefined;
760
- approvalProgram: string | Uint8Array;
761
- clearStateProgram: string | Uint8Array;
762
- extraProgramPages?: number | undefined;
766
+ appId?: 0 | undefined;
763
767
  onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
764
768
  accountReferences?: ReadableAddress[] | undefined;
765
769
  appReferences?: bigint[] | undefined;
766
770
  assetReferences?: bigint[] | undefined;
767
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
768
- accessReferences?: AccessReference[] | undefined;
771
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
772
+ accessReferences?: ResourceReference[] | undefined;
769
773
  rejectVersion?: number | undefined;
774
+ approvalProgram: string | Uint8Array;
775
+ clearStateProgram: string | Uint8Array;
770
776
  schema?: {
771
777
  globalInts: number;
772
778
  globalByteSlices: number;
773
779
  localInts: number;
774
780
  localByteSlices: number;
775
781
  } | undefined;
782
+ extraProgramPages?: number | undefined;
776
783
  method: ABIMethod;
777
- args?: (Transaction | ABIValue | Promise<Transaction> | TransactionWithSigner | AppMethodCall<{
784
+ args?: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
778
785
  signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
779
786
  sender: SendingAddress;
780
787
  rekeyTo?: ReadableAddress | undefined;
@@ -791,9 +798,10 @@ declare class AlgorandClientTransactionSender {
791
798
  accountReferences?: ReadableAddress[] | undefined;
792
799
  appReferences?: bigint[] | undefined;
793
800
  assetReferences?: bigint[] | undefined;
794
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
795
- accessReferences?: AccessReference[] | undefined;
801
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
802
+ accessReferences?: ResourceReference[] | undefined;
796
803
  rejectVersion?: number | undefined;
804
+ appId?: 0 | undefined;
797
805
  approvalProgram: string | Uint8Array;
798
806
  clearStateProgram: string | Uint8Array;
799
807
  schema?: {
@@ -821,8 +829,8 @@ declare class AlgorandClientTransactionSender {
821
829
  accountReferences?: ReadableAddress[] | undefined;
822
830
  appReferences?: bigint[] | undefined;
823
831
  assetReferences?: bigint[] | undefined;
824
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
825
- accessReferences?: AccessReference[] | undefined;
832
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
833
+ accessReferences?: ResourceReference[] | undefined;
826
834
  rejectVersion?: number | undefined;
827
835
  approvalProgram: string | Uint8Array;
828
836
  clearStateProgram: string | Uint8Array;
@@ -873,6 +881,7 @@ declare class AlgorandClientTransactionSender {
873
881
  * // Max fee doesn't make sense with extraFee AND staticFee
874
882
  * // already specified, but here for completeness
875
883
  * maxFee: (3000).microAlgo(),
884
+ * rejectVersion: 1,
876
885
  * // Signer only needed if you want to provide one,
877
886
  * // generally you'd register it with AlgorandClient
878
887
  * // against the sender and not need to pass it in
@@ -895,18 +904,18 @@ declare class AlgorandClientTransactionSender {
895
904
  validityWindow?: number | bigint | undefined;
896
905
  firstValidRound?: bigint | undefined;
897
906
  lastValidRound?: bigint | undefined;
898
- approvalProgram: string | Uint8Array;
899
- clearStateProgram: string | Uint8Array;
900
907
  appId: bigint;
901
908
  onComplete?: OnApplicationComplete.UpdateApplication | undefined;
902
909
  accountReferences?: ReadableAddress[] | undefined;
903
910
  appReferences?: bigint[] | undefined;
904
911
  assetReferences?: bigint[] | undefined;
905
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
906
- accessReferences?: AccessReference[] | undefined;
912
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
913
+ accessReferences?: ResourceReference[] | undefined;
907
914
  rejectVersion?: number | undefined;
915
+ approvalProgram: string | Uint8Array;
916
+ clearStateProgram: string | Uint8Array;
908
917
  method: ABIMethod;
909
- args?: (Transaction | ABIValue | Promise<Transaction> | TransactionWithSigner | AppMethodCall<{
918
+ args?: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
910
919
  signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
911
920
  sender: SendingAddress;
912
921
  rekeyTo?: ReadableAddress | undefined;
@@ -923,9 +932,10 @@ declare class AlgorandClientTransactionSender {
923
932
  accountReferences?: ReadableAddress[] | undefined;
924
933
  appReferences?: bigint[] | undefined;
925
934
  assetReferences?: bigint[] | undefined;
926
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
927
- accessReferences?: AccessReference[] | undefined;
935
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
936
+ accessReferences?: ResourceReference[] | undefined;
928
937
  rejectVersion?: number | undefined;
938
+ appId?: 0 | undefined;
929
939
  approvalProgram: string | Uint8Array;
930
940
  clearStateProgram: string | Uint8Array;
931
941
  schema?: {
@@ -953,8 +963,8 @@ declare class AlgorandClientTransactionSender {
953
963
  accountReferences?: ReadableAddress[] | undefined;
954
964
  appReferences?: bigint[] | undefined;
955
965
  assetReferences?: bigint[] | undefined;
956
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
957
- accessReferences?: AccessReference[] | undefined;
966
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
967
+ accessReferences?: ResourceReference[] | undefined;
958
968
  rejectVersion?: number | undefined;
959
969
  approvalProgram: string | Uint8Array;
960
970
  clearStateProgram: string | Uint8Array;
@@ -1003,6 +1013,7 @@ declare class AlgorandClientTransactionSender {
1003
1013
  * // Max fee doesn't make sense with extraFee AND staticFee
1004
1014
  * // already specified, but here for completeness
1005
1015
  * maxFee: (3000).microAlgo(),
1016
+ * rejectVersion: 1,
1006
1017
  * // Signer only needed if you want to provide one,
1007
1018
  * // generally you'd register it with AlgorandClient
1008
1019
  * // against the sender and not need to pass it in
@@ -1030,11 +1041,11 @@ declare class AlgorandClientTransactionSender {
1030
1041
  accountReferences?: ReadableAddress[] | undefined;
1031
1042
  appReferences?: bigint[] | undefined;
1032
1043
  assetReferences?: bigint[] | undefined;
1033
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1034
- accessReferences?: AccessReference[] | undefined;
1044
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
1045
+ accessReferences?: ResourceReference[] | undefined;
1035
1046
  rejectVersion?: number | undefined;
1036
1047
  method: ABIMethod;
1037
- args?: (Transaction | ABIValue | Promise<Transaction> | TransactionWithSigner | AppMethodCall<{
1048
+ args?: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
1038
1049
  signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
1039
1050
  sender: SendingAddress;
1040
1051
  rekeyTo?: ReadableAddress | undefined;
@@ -1051,9 +1062,10 @@ declare class AlgorandClientTransactionSender {
1051
1062
  accountReferences?: ReadableAddress[] | undefined;
1052
1063
  appReferences?: bigint[] | undefined;
1053
1064
  assetReferences?: bigint[] | undefined;
1054
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1055
- accessReferences?: AccessReference[] | undefined;
1065
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
1066
+ accessReferences?: ResourceReference[] | undefined;
1056
1067
  rejectVersion?: number | undefined;
1068
+ appId?: 0 | undefined;
1057
1069
  approvalProgram: string | Uint8Array;
1058
1070
  clearStateProgram: string | Uint8Array;
1059
1071
  schema?: {
@@ -1081,8 +1093,8 @@ declare class AlgorandClientTransactionSender {
1081
1093
  accountReferences?: ReadableAddress[] | undefined;
1082
1094
  appReferences?: bigint[] | undefined;
1083
1095
  assetReferences?: bigint[] | undefined;
1084
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1085
- accessReferences?: AccessReference[] | undefined;
1096
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
1097
+ accessReferences?: ResourceReference[] | undefined;
1086
1098
  rejectVersion?: number | undefined;
1087
1099
  approvalProgram: string | Uint8Array;
1088
1100
  clearStateProgram: string | Uint8Array;
@@ -1131,6 +1143,7 @@ declare class AlgorandClientTransactionSender {
1131
1143
  * // Max fee doesn't make sense with extraFee AND staticFee
1132
1144
  * // already specified, but here for completeness
1133
1145
  * maxFee: (3000).microAlgo(),
1146
+ * rejectVersion: 1,
1134
1147
  * // Signer only needed if you want to provide one,
1135
1148
  * // generally you'd register it with AlgorandClient
1136
1149
  * // against the sender and not need to pass it in
@@ -1158,11 +1171,11 @@ declare class AlgorandClientTransactionSender {
1158
1171
  accountReferences?: ReadableAddress[] | undefined;
1159
1172
  appReferences?: bigint[] | undefined;
1160
1173
  assetReferences?: bigint[] | undefined;
1161
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1162
- accessReferences?: AccessReference[] | undefined;
1174
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
1175
+ accessReferences?: ResourceReference[] | undefined;
1163
1176
  rejectVersion?: number | undefined;
1164
1177
  method: ABIMethod;
1165
- args?: (Transaction | ABIValue | Promise<Transaction> | TransactionWithSigner | AppMethodCall<{
1178
+ args?: (Transaction | Promise<Transaction> | ABIValue | TransactionWithSigner | AppMethodCall<{
1166
1179
  signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
1167
1180
  sender: SendingAddress;
1168
1181
  rekeyTo?: ReadableAddress | undefined;
@@ -1179,9 +1192,10 @@ declare class AlgorandClientTransactionSender {
1179
1192
  accountReferences?: ReadableAddress[] | undefined;
1180
1193
  appReferences?: bigint[] | undefined;
1181
1194
  assetReferences?: bigint[] | undefined;
1182
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1183
- accessReferences?: AccessReference[] | undefined;
1195
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
1196
+ accessReferences?: ResourceReference[] | undefined;
1184
1197
  rejectVersion?: number | undefined;
1198
+ appId?: 0 | undefined;
1185
1199
  approvalProgram: string | Uint8Array;
1186
1200
  clearStateProgram: string | Uint8Array;
1187
1201
  schema?: {
@@ -1209,8 +1223,8 @@ declare class AlgorandClientTransactionSender {
1209
1223
  accountReferences?: ReadableAddress[] | undefined;
1210
1224
  appReferences?: bigint[] | undefined;
1211
1225
  assetReferences?: bigint[] | undefined;
1212
- boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1213
- accessReferences?: AccessReference[] | undefined;
1226
+ boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
1227
+ accessReferences?: ResourceReference[] | undefined;
1214
1228
  rejectVersion?: number | undefined;
1215
1229
  approvalProgram: string | Uint8Array;
1216
1230
  clearStateProgram: string | Uint8Array;
@@ -1263,7 +1277,7 @@ declare class AlgorandClientTransactionSender {
1263
1277
  voteFirst: bigint;
1264
1278
  voteLast: bigint;
1265
1279
  voteKeyDilution: bigint;
1266
- stateProofKey?: Uint8Array | undefined;
1280
+ stateProofKey: Uint8Array;
1267
1281
  } & SendParams) => Promise<SendSingleTransactionResult>;
1268
1282
  /**
1269
1283
  * Register an offline key.
@@ -4,7 +4,6 @@ const require_config = require('../config.js');
4
4
  const require_util = require('../util.js');
5
5
  const require_app_manager = require('./app-manager.js');
6
6
  let buffer = require("buffer");
7
- buffer = require_rolldown_runtime.__toESM(buffer);
8
7
 
9
8
  //#region src/types/algorand-client-transaction-sender.ts
10
9
  const getMethodCallForLog = ({ method, args }) => {
@@ -480,6 +479,7 @@ var AlgorandClientTransactionSender = class {
480
479
  * // Max fee doesn't make sense with extraFee AND staticFee
481
480
  * // already specified, but here for completeness
482
481
  * maxFee: (3000).microAlgo(),
482
+ * rejectVersion: 1,
483
483
  * // Signer only needed if you want to provide one,
484
484
  * // generally you'd register it with AlgorandClient
485
485
  * // against the sender and not need to pass it in
@@ -524,6 +524,7 @@ var AlgorandClientTransactionSender = class {
524
524
  * // Max fee doesn't make sense with extraFee AND staticFee
525
525
  * // already specified, but here for completeness
526
526
  * maxFee: (3000).microAlgo(),
527
+ * rejectVersion: 1,
527
528
  * // Signer only needed if you want to provide one,
528
529
  * // generally you'd register it with AlgorandClient
529
530
  * // against the sender and not need to pass it in
@@ -566,6 +567,7 @@ var AlgorandClientTransactionSender = class {
566
567
  * // Max fee doesn't make sense with extraFee AND staticFee
567
568
  * // already specified, but here for completeness
568
569
  * maxFee: (3000).microAlgo(),
570
+ * rejectVersion: 1,
569
571
  * // Signer only needed if you want to provide one,
570
572
  * // generally you'd register it with AlgorandClient
571
573
  * // against the sender and not need to pass it in
@@ -608,6 +610,7 @@ var AlgorandClientTransactionSender = class {
608
610
  * // Max fee doesn't make sense with extraFee AND staticFee
609
611
  * // already specified, but here for completeness
610
612
  * maxFee: (3000).microAlgo(),
613
+ * rejectVersion: 1,
611
614
  * // Signer only needed if you want to provide one,
612
615
  * // generally you'd register it with AlgorandClient
613
616
  * // against the sender and not need to pass it in
@@ -672,6 +675,7 @@ var AlgorandClientTransactionSender = class {
672
675
  * // Max fee doesn't make sense with extraFee AND staticFee
673
676
  * // already specified, but here for completeness
674
677
  * maxFee: (3000).microAlgo(),
678
+ * rejectVersion: 1,
675
679
  * // Signer only needed if you want to provide one,
676
680
  * // generally you'd register it with AlgorandClient
677
681
  * // against the sender and not need to pass it in
@@ -728,6 +732,7 @@ var AlgorandClientTransactionSender = class {
728
732
  * // Max fee doesn't make sense with extraFee AND staticFee
729
733
  * // already specified, but here for completeness
730
734
  * maxFee: (3000).microAlgo(),
735
+ * rejectVersion: 1,
731
736
  * // Signer only needed if you want to provide one,
732
737
  * // generally you'd register it with AlgorandClient
733
738
  * // against the sender and not need to pass it in
@@ -782,6 +787,7 @@ var AlgorandClientTransactionSender = class {
782
787
  * // Max fee doesn't make sense with extraFee AND staticFee
783
788
  * // already specified, but here for completeness
784
789
  * maxFee: (3000).microAlgo(),
790
+ * rejectVersion: 1,
785
791
  * // Signer only needed if you want to provide one,
786
792
  * // generally you'd register it with AlgorandClient
787
793
  * // against the sender and not need to pass it in
@@ -836,6 +842,7 @@ var AlgorandClientTransactionSender = class {
836
842
  * // Max fee doesn't make sense with extraFee AND staticFee
837
843
  * // already specified, but here for completeness
838
844
  * maxFee: (3000).microAlgo(),
845
+ * rejectVersion: 1,
839
846
  * // Signer only needed if you want to provide one,
840
847
  * // generally you'd register it with AlgorandClient
841
848
  * // against the sender and not need to pass it in