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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (704) hide show
  1. package/_virtual/rolldown_runtime.js +10 -15
  2. package/abi/index.d.ts +2 -1
  3. package/abi/index.js +3 -0
  4. package/abi/index.mjs +2 -1
  5. package/account-manager.d.ts +448 -0
  6. package/account-manager.js +623 -0
  7. package/account-manager.js.map +1 -0
  8. package/account-manager.mjs +620 -0
  9. package/account-manager.mjs.map +1 -0
  10. package/account.d.ts +156 -0
  11. package/account.js +10 -0
  12. package/account.js.map +1 -0
  13. package/account.mjs +9 -0
  14. package/account.mjs.map +1 -0
  15. package/algod-client/index.d.ts +3 -7
  16. package/algod-client/index.js +2 -5
  17. package/algod-client/index.mjs +2 -2
  18. package/algorand-client-transaction-creator.d.ts +1103 -0
  19. package/algorand-client-transaction-creator.js +735 -0
  20. package/algorand-client-transaction-creator.js.map +1 -0
  21. package/algorand-client-transaction-creator.mjs +734 -0
  22. package/algorand-client-transaction-creator.mjs.map +1 -0
  23. package/algorand-client-transaction-sender.d.ts +1317 -0
  24. package/algorand-client-transaction-sender.js +933 -0
  25. package/algorand-client-transaction-sender.js.map +1 -0
  26. package/algorand-client-transaction-sender.mjs +932 -0
  27. package/algorand-client-transaction-sender.mjs.map +1 -0
  28. package/algorand-client.d.ts +246 -0
  29. package/algorand-client.js +325 -0
  30. package/algorand-client.js.map +1 -0
  31. package/algorand-client.mjs +325 -0
  32. package/algorand-client.mjs.map +1 -0
  33. package/amount.d.ts +46 -3
  34. package/amount.js +92 -13
  35. package/amount.js.map +1 -1
  36. package/amount.mjs +80 -3
  37. package/amount.mjs.map +1 -1
  38. package/app-client.d.ts +2130 -0
  39. package/app-client.js +909 -0
  40. package/app-client.js.map +1 -0
  41. package/app-client.mjs +908 -0
  42. package/app-client.mjs.map +1 -0
  43. package/app-deployer.d.ts +166 -0
  44. package/app-deployer.js +353 -0
  45. package/app-deployer.js.map +1 -0
  46. package/app-deployer.mjs +353 -0
  47. package/app-deployer.mjs.map +1 -0
  48. package/app-factory.d.ts +965 -0
  49. package/app-factory.js +448 -0
  50. package/app-factory.js.map +1 -0
  51. package/app-factory.mjs +448 -0
  52. package/app-factory.mjs.map +1 -0
  53. package/app-manager.d.ts +323 -0
  54. package/app-manager.js +468 -0
  55. package/app-manager.js.map +1 -0
  56. package/app-manager.mjs +468 -0
  57. package/app-manager.mjs.map +1 -0
  58. package/app-spec.d.ts +203 -0
  59. package/app-spec.js +137 -0
  60. package/app-spec.js.map +1 -0
  61. package/app-spec.mjs +137 -0
  62. package/app-spec.mjs.map +1 -0
  63. package/app.d.ts +257 -0
  64. package/app.js +49 -0
  65. package/app.js.map +1 -0
  66. package/app.mjs +42 -0
  67. package/app.mjs.map +1 -0
  68. package/asset-manager.d.ts +212 -0
  69. package/asset-manager.js +166 -0
  70. package/asset-manager.js.map +1 -0
  71. package/asset-manager.mjs +166 -0
  72. package/asset-manager.mjs.map +1 -0
  73. package/async-event-emitter.d.ts +16 -0
  74. package/async-event-emitter.js +38 -0
  75. package/async-event-emitter.js.map +1 -0
  76. package/async-event-emitter.mjs +37 -0
  77. package/async-event-emitter.mjs.map +1 -0
  78. package/client-manager.d.ts +475 -0
  79. package/client-manager.js +616 -0
  80. package/client-manager.js.map +1 -0
  81. package/client-manager.mjs +616 -0
  82. package/client-manager.mjs.map +1 -0
  83. package/composer.d.ts +947 -0
  84. package/composer.js +1584 -0
  85. package/composer.js.map +1 -0
  86. package/composer.mjs +1583 -0
  87. package/composer.mjs.map +1 -0
  88. package/config.d.ts +1 -1
  89. package/config.js +2 -2
  90. package/config.js.map +1 -1
  91. package/config.mjs +1 -1
  92. package/config.mjs.map +1 -1
  93. package/debugging.d.ts +47 -0
  94. package/debugging.js +20 -0
  95. package/debugging.js.map +1 -0
  96. package/debugging.mjs +15 -0
  97. package/debugging.mjs.map +1 -0
  98. package/dispenser-client.d.ts +90 -0
  99. package/dispenser-client.js +127 -0
  100. package/dispenser-client.js.map +1 -0
  101. package/dispenser-client.mjs +127 -0
  102. package/dispenser-client.mjs.map +1 -0
  103. package/expand.d.ts +2 -0
  104. package/expand.js +0 -0
  105. package/expand.mjs +0 -0
  106. package/index.d.ts +6 -6
  107. package/index.js +4 -10
  108. package/index.mjs +5 -6
  109. package/indexer-client/index.d.ts +2 -2
  110. package/indexer-client/index.js +6 -6
  111. package/indexer-client/index.mjs +2 -2
  112. package/{indexer-lookup.d.ts → indexer-client/indexer-lookup.d.ts} +8 -11
  113. package/{indexer-lookup.mjs → indexer-client/indexer-lookup.js} +6 -10
  114. package/indexer-client/indexer-lookup.js.map +1 -0
  115. package/{indexer-lookup.js → indexer-client/indexer-lookup.mjs} +3 -18
  116. package/indexer-client/indexer-lookup.mjs.map +1 -0
  117. package/indexer.d.ts +40 -0
  118. package/indexer.js +38 -0
  119. package/indexer.js.map +1 -0
  120. package/indexer.mjs +35 -0
  121. package/indexer.mjs.map +1 -0
  122. package/instance-of.d.ts +8 -0
  123. package/kmd-account-manager.d.ts +74 -0
  124. package/kmd-account-manager.js +167 -0
  125. package/kmd-account-manager.js.map +1 -0
  126. package/kmd-account-manager.mjs +165 -0
  127. package/kmd-account-manager.mjs.map +1 -0
  128. package/kmd-client/index.d.ts +1 -2
  129. package/kmd-client/index.js +0 -5
  130. package/kmd-client/index.mjs +1 -2
  131. package/lifecycle-events.d.ts +14 -0
  132. package/lifecycle-events.js +11 -0
  133. package/lifecycle-events.js.map +1 -0
  134. package/lifecycle-events.mjs +10 -0
  135. package/lifecycle-events.mjs.map +1 -0
  136. package/logging.d.ts +13 -0
  137. package/logging.js +47 -0
  138. package/logging.js.map +1 -0
  139. package/logging.mjs +42 -0
  140. package/logging.mjs.map +1 -0
  141. package/logic-error.d.ts +39 -0
  142. package/logic-error.js +54 -0
  143. package/logic-error.js.map +1 -0
  144. package/logic-error.mjs +53 -0
  145. package/logic-error.mjs.map +1 -0
  146. package/network-client.d.ts +43 -0
  147. package/network-client.js +14 -0
  148. package/network-client.js.map +1 -0
  149. package/network-client.mjs +13 -0
  150. package/network-client.mjs.map +1 -0
  151. package/package.json +14 -5
  152. package/packages/abi/src/abi-method.d.ts +1 -1
  153. package/packages/abi/src/abi-method.js +1 -1
  154. package/packages/abi/src/abi-method.js.map +1 -1
  155. package/packages/abi/src/abi-method.mjs +1 -1
  156. package/packages/abi/src/abi-method.mjs.map +1 -1
  157. package/packages/abi/src/abi-type.d.ts +1 -3
  158. package/packages/abi/src/abi-type.js +7 -36
  159. package/packages/abi/src/abi-type.js.map +1 -1
  160. package/packages/abi/src/abi-type.mjs +7 -36
  161. package/packages/abi/src/abi-type.mjs.map +1 -1
  162. package/packages/abi/src/arc56-contract.js +1 -0
  163. package/packages/abi/src/arc56-contract.js.map +1 -1
  164. package/packages/abi/src/arc56-contract.mjs +1 -0
  165. package/packages/abi/src/arc56-contract.mjs.map +1 -1
  166. package/packages/abi/src/utils.d.ts +22 -0
  167. package/packages/abi/src/utils.js +57 -0
  168. package/packages/abi/src/utils.js.map +1 -0
  169. package/packages/abi/src/utils.mjs +55 -0
  170. package/packages/abi/src/utils.mjs.map +1 -0
  171. package/packages/algo25/src/index.js +1 -1
  172. package/packages/algo25/src/index.mjs +1 -1
  173. package/packages/algod_client/src/apis/api-service.d.ts +44 -44
  174. package/packages/algod_client/src/apis/api-service.js +155 -155
  175. package/packages/algod_client/src/apis/api-service.js.map +1 -1
  176. package/packages/algod_client/src/apis/api-service.mjs +155 -155
  177. package/packages/algod_client/src/apis/api-service.mjs.map +1 -1
  178. package/packages/algod_client/src/core/api-error.js +3 -1
  179. package/packages/algod_client/src/core/api-error.js.map +1 -1
  180. package/packages/algod_client/src/core/api-error.mjs +3 -1
  181. package/packages/algod_client/src/core/api-error.mjs.map +1 -1
  182. package/packages/algod_client/src/core/model-runtime.js +6 -6
  183. package/packages/algod_client/src/core/model-runtime.js.map +1 -1
  184. package/packages/algod_client/src/core/model-runtime.mjs +8 -8
  185. package/packages/algod_client/src/core/model-runtime.mjs.map +1 -1
  186. package/packages/algod_client/src/models/account-participation.js +4 -4
  187. package/packages/algod_client/src/models/account-participation.js.map +1 -1
  188. package/packages/algod_client/src/models/account-participation.mjs +4 -4
  189. package/packages/algod_client/src/models/account-participation.mjs.map +1 -1
  190. package/packages/algod_client/src/models/application-state-schema.d.ts +2 -2
  191. package/packages/algod_client/src/models/application-state-schema.js +2 -2
  192. package/packages/algod_client/src/models/application-state-schema.js.map +1 -1
  193. package/packages/algod_client/src/models/application-state-schema.mjs +2 -2
  194. package/packages/algod_client/src/models/application-state-schema.mjs.map +1 -1
  195. package/packages/algod_client/src/models/asset-params.js +2 -1
  196. package/packages/algod_client/src/models/asset-params.js.map +1 -1
  197. package/packages/algod_client/src/models/asset-params.mjs +2 -1
  198. package/packages/algod_client/src/models/asset-params.mjs.map +1 -1
  199. package/packages/algod_client/src/models/block-response.js +1 -2
  200. package/packages/algod_client/src/models/block-response.js.map +1 -1
  201. package/packages/algod_client/src/models/block-response.mjs +2 -3
  202. package/packages/algod_client/src/models/block-response.mjs.map +1 -1
  203. package/packages/algod_client/src/models/block.d.ts +60 -40
  204. package/packages/algod_client/src/models/block.js +184 -108
  205. package/packages/algod_client/src/models/block.js.map +1 -1
  206. package/packages/algod_client/src/models/block.mjs +184 -108
  207. package/packages/algod_client/src/models/block.mjs.map +1 -1
  208. package/packages/algod_client/src/models/eval-delta-key-value.js +2 -2
  209. package/packages/algod_client/src/models/eval-delta-key-value.js.map +1 -1
  210. package/packages/algod_client/src/models/eval-delta-key-value.mjs +2 -2
  211. package/packages/algod_client/src/models/eval-delta-key-value.mjs.map +1 -1
  212. package/packages/algod_client/src/models/eval-delta.js +2 -2
  213. package/packages/algod_client/src/models/eval-delta.js.map +1 -1
  214. package/packages/algod_client/src/models/eval-delta.mjs +2 -2
  215. package/packages/algod_client/src/models/eval-delta.mjs.map +1 -1
  216. package/packages/algod_client/src/models/ledger-state-delta.js +1 -1
  217. package/packages/algod_client/src/models/ledger-state-delta.js.map +1 -1
  218. package/packages/algod_client/src/models/ledger-state-delta.mjs +2 -2
  219. package/packages/algod_client/src/models/ledger-state-delta.mjs.map +1 -1
  220. package/packages/algod_client/src/models/simulate-request.js +1 -1
  221. package/packages/algod_client/src/models/simulate-request.mjs +1 -1
  222. package/packages/algod_client/src/models/simulate-response.d.ts +2 -1
  223. package/packages/algod_client/src/models/simulate-response.js +6 -1
  224. package/packages/algod_client/src/models/simulate-response.js.map +1 -1
  225. package/packages/algod_client/src/models/simulate-response.mjs +6 -2
  226. package/packages/algod_client/src/models/simulate-response.mjs.map +1 -1
  227. package/packages/algod_client/src/models/simulate-unnamed-resources-accessed.d.ts +3 -5
  228. package/packages/algod_client/src/models/simulate-unnamed-resources-accessed.js +4 -6
  229. package/packages/algod_client/src/models/simulate-unnamed-resources-accessed.js.map +1 -1
  230. package/packages/algod_client/src/models/simulate-unnamed-resources-accessed.mjs +3 -5
  231. package/packages/algod_client/src/models/simulate-unnamed-resources-accessed.mjs.map +1 -1
  232. package/packages/algod_client/src/models/transaction-parameters-response.js +2 -2
  233. package/packages/algod_client/src/models/transaction-parameters-response.js.map +1 -1
  234. package/packages/algod_client/src/models/transaction-parameters-response.mjs +2 -2
  235. package/packages/algod_client/src/models/transaction-parameters-response.mjs.map +1 -1
  236. package/packages/common/src/address.d.ts +0 -1
  237. package/packages/common/src/address.js +4 -17
  238. package/packages/common/src/address.js.map +1 -1
  239. package/packages/common/src/address.mjs +5 -17
  240. package/packages/common/src/address.mjs.map +1 -1
  241. package/packages/common/src/codecs/composite/map.js +7 -4
  242. package/packages/common/src/codecs/composite/map.js.map +1 -1
  243. package/packages/common/src/codecs/composite/map.mjs +7 -4
  244. package/packages/common/src/codecs/composite/map.mjs.map +1 -1
  245. package/packages/common/src/codecs/composite/record.js +0 -1
  246. package/packages/common/src/codecs/composite/record.js.map +1 -1
  247. package/packages/common/src/codecs/primitives/address.js +0 -1
  248. package/packages/common/src/codecs/primitives/address.js.map +1 -1
  249. package/packages/common/src/codecs/primitives/bytes-base64.js +26 -0
  250. package/packages/common/src/codecs/primitives/bytes-base64.js.map +1 -0
  251. package/packages/common/src/codecs/primitives/bytes-base64.mjs +25 -0
  252. package/packages/common/src/codecs/primitives/bytes-base64.mjs.map +1 -0
  253. package/packages/common/src/codecs/primitives/bytes.js +0 -1
  254. package/packages/common/src/codecs/primitives/bytes.js.map +1 -1
  255. package/packages/common/src/codecs/primitives/fixed-bytes.js +0 -1
  256. package/packages/common/src/codecs/primitives/fixed-bytes.js.map +1 -1
  257. package/packages/common/src/codecs/wire.js +0 -1
  258. package/packages/common/src/codecs/wire.js.map +1 -1
  259. package/packages/common/src/json.mjs +2 -2
  260. package/packages/common/src/json.mjs.map +1 -1
  261. package/packages/common/src/msgpack.js +0 -1
  262. package/packages/common/src/msgpack.js.map +1 -1
  263. package/packages/{sdk/src/logic → common/src}/sourcemap.d.ts +2 -2
  264. package/packages/{sdk/src/logic → common/src}/sourcemap.js +2 -2
  265. package/packages/{sdk/src/logic → common/src}/sourcemap.js.map +1 -1
  266. package/packages/{sdk/src/logic → common/src}/sourcemap.mjs +1 -1
  267. package/packages/{sdk/src/logic → common/src}/sourcemap.mjs.map +1 -1
  268. package/packages/indexer_client/src/apis/api-service.d.ts +1 -1
  269. package/packages/indexer_client/src/apis/api-service.js +12 -12
  270. package/packages/indexer_client/src/apis/api-service.js.map +1 -1
  271. package/packages/indexer_client/src/apis/api-service.mjs +12 -12
  272. package/packages/indexer_client/src/apis/api-service.mjs.map +1 -1
  273. package/packages/indexer_client/src/core/api-error.js +3 -1
  274. package/packages/indexer_client/src/core/api-error.js.map +1 -1
  275. package/packages/indexer_client/src/core/api-error.mjs +3 -1
  276. package/packages/indexer_client/src/core/api-error.mjs.map +1 -1
  277. package/packages/indexer_client/src/core/model-runtime.js +0 -15
  278. package/packages/indexer_client/src/core/model-runtime.js.map +1 -1
  279. package/packages/indexer_client/src/core/model-runtime.mjs +1 -13
  280. package/packages/indexer_client/src/core/model-runtime.mjs.map +1 -1
  281. package/packages/indexer_client/src/models/account-participation.js +4 -4
  282. package/packages/indexer_client/src/models/account-participation.js.map +1 -1
  283. package/packages/indexer_client/src/models/account-participation.mjs +4 -4
  284. package/packages/indexer_client/src/models/account-participation.mjs.map +1 -1
  285. package/packages/indexer_client/src/models/application-state-schema.d.ts +2 -2
  286. package/packages/indexer_client/src/models/application-state-schema.js +2 -2
  287. package/packages/indexer_client/src/models/application-state-schema.js.map +1 -1
  288. package/packages/indexer_client/src/models/application-state-schema.mjs +2 -2
  289. package/packages/indexer_client/src/models/application-state-schema.mjs.map +1 -1
  290. package/packages/indexer_client/src/models/asset-params.js +2 -1
  291. package/packages/indexer_client/src/models/asset-params.js.map +1 -1
  292. package/packages/indexer_client/src/models/asset-params.mjs +2 -1
  293. package/packages/indexer_client/src/models/asset-params.mjs.map +1 -1
  294. package/packages/indexer_client/src/models/block.d.ts +5 -5
  295. package/packages/indexer_client/src/models/block.js +13 -13
  296. package/packages/indexer_client/src/models/block.js.map +1 -1
  297. package/packages/indexer_client/src/models/block.mjs +13 -13
  298. package/packages/indexer_client/src/models/block.mjs.map +1 -1
  299. package/packages/indexer_client/src/models/eval-delta-key-value.d.ts +1 -1
  300. package/packages/indexer_client/src/models/eval-delta-key-value.js +2 -2
  301. package/packages/indexer_client/src/models/eval-delta-key-value.js.map +1 -1
  302. package/packages/indexer_client/src/models/eval-delta-key-value.mjs +2 -2
  303. package/packages/indexer_client/src/models/eval-delta-key-value.mjs.map +1 -1
  304. package/packages/indexer_client/src/models/eval-delta.d.ts +1 -1
  305. package/packages/indexer_client/src/models/eval-delta.js +2 -2
  306. package/packages/indexer_client/src/models/eval-delta.js.map +1 -1
  307. package/packages/indexer_client/src/models/eval-delta.mjs +2 -2
  308. package/packages/indexer_client/src/models/eval-delta.mjs.map +1 -1
  309. package/packages/indexer_client/src/models/hb-proof-fields.js +6 -6
  310. package/packages/indexer_client/src/models/hb-proof-fields.js.map +1 -1
  311. package/packages/indexer_client/src/models/hb-proof-fields.mjs +6 -6
  312. package/packages/indexer_client/src/models/hb-proof-fields.mjs.map +1 -1
  313. package/packages/indexer_client/src/models/participation-updates.d.ts +2 -2
  314. package/packages/indexer_client/src/models/participation-updates.js +2 -2
  315. package/packages/indexer_client/src/models/participation-updates.js.map +1 -1
  316. package/packages/indexer_client/src/models/participation-updates.mjs +2 -2
  317. package/packages/indexer_client/src/models/participation-updates.mjs.map +1 -1
  318. package/packages/indexer_client/src/models/state-proof-verifier.js +2 -2
  319. package/packages/indexer_client/src/models/state-proof-verifier.js.map +1 -1
  320. package/packages/indexer_client/src/models/state-proof-verifier.mjs +2 -2
  321. package/packages/indexer_client/src/models/state-proof-verifier.mjs.map +1 -1
  322. package/packages/indexer_client/src/models/state-schema.d.ts +2 -2
  323. package/packages/indexer_client/src/models/state-schema.js +2 -2
  324. package/packages/indexer_client/src/models/state-schema.js.map +1 -1
  325. package/packages/indexer_client/src/models/state-schema.mjs +2 -2
  326. package/packages/indexer_client/src/models/state-schema.mjs.map +1 -1
  327. package/packages/indexer_client/src/models/teal-key-value.d.ts +1 -1
  328. package/packages/indexer_client/src/models/teal-key-value.js +2 -2
  329. package/packages/indexer_client/src/models/teal-key-value.js.map +1 -1
  330. package/packages/indexer_client/src/models/teal-key-value.mjs +2 -2
  331. package/packages/indexer_client/src/models/teal-key-value.mjs.map +1 -1
  332. package/packages/indexer_client/src/models/transaction-heartbeat.js +2 -1
  333. package/packages/indexer_client/src/models/transaction-heartbeat.js.map +1 -1
  334. package/packages/indexer_client/src/models/transaction-heartbeat.mjs +2 -1
  335. package/packages/indexer_client/src/models/transaction-heartbeat.mjs.map +1 -1
  336. package/packages/indexer_client/src/models/transaction-keyreg.js +4 -4
  337. package/packages/indexer_client/src/models/transaction-keyreg.js.map +1 -1
  338. package/packages/indexer_client/src/models/transaction-keyreg.mjs +4 -4
  339. package/packages/indexer_client/src/models/transaction-keyreg.mjs.map +1 -1
  340. package/packages/indexer_client/src/models/transaction-signature-logicsig.js +2 -1
  341. package/packages/indexer_client/src/models/transaction-signature-logicsig.js.map +1 -1
  342. package/packages/indexer_client/src/models/transaction-signature-logicsig.mjs +2 -1
  343. package/packages/indexer_client/src/models/transaction-signature-logicsig.mjs.map +1 -1
  344. package/packages/indexer_client/src/models/transaction-signature-multisig-subsignature.js +3 -3
  345. package/packages/indexer_client/src/models/transaction-signature-multisig-subsignature.js.map +1 -1
  346. package/packages/indexer_client/src/models/transaction-signature-multisig-subsignature.mjs +3 -3
  347. package/packages/indexer_client/src/models/transaction-signature-multisig-subsignature.mjs.map +1 -1
  348. package/packages/indexer_client/src/models/transaction-state-proof.d.ts +1 -1
  349. package/packages/indexer_client/src/models/transaction-state-proof.js +2 -2
  350. package/packages/indexer_client/src/models/transaction-state-proof.js.map +1 -1
  351. package/packages/indexer_client/src/models/transaction-state-proof.mjs +2 -2
  352. package/packages/indexer_client/src/models/transaction-state-proof.mjs.map +1 -1
  353. package/packages/indexer_client/src/models/transaction.d.ts +2 -2
  354. package/packages/indexer_client/src/models/transaction.js +6 -5
  355. package/packages/indexer_client/src/models/transaction.js.map +1 -1
  356. package/packages/indexer_client/src/models/transaction.mjs +6 -5
  357. package/packages/indexer_client/src/models/transaction.mjs.map +1 -1
  358. package/packages/kmd_client/src/apis/api-service.d.ts +5 -5
  359. package/packages/kmd_client/src/apis/api-service.js +32 -32
  360. package/packages/kmd_client/src/apis/api-service.js.map +1 -1
  361. package/packages/kmd_client/src/apis/api-service.mjs +32 -32
  362. package/packages/kmd_client/src/apis/api-service.mjs.map +1 -1
  363. package/packages/kmd_client/src/core/api-error.js +3 -1
  364. package/packages/kmd_client/src/core/api-error.js.map +1 -1
  365. package/packages/kmd_client/src/core/api-error.mjs +3 -1
  366. package/packages/kmd_client/src/core/api-error.mjs.map +1 -1
  367. package/packages/kmd_client/src/core/model-runtime.js +2 -12
  368. package/packages/kmd_client/src/core/model-runtime.js.map +1 -1
  369. package/packages/kmd_client/src/core/model-runtime.mjs +3 -11
  370. package/packages/kmd_client/src/core/model-runtime.mjs.map +1 -1
  371. package/packages/transact/src/logicsig.d.ts +35 -33
  372. package/packages/transact/src/logicsig.js +74 -76
  373. package/packages/transact/src/logicsig.js.map +1 -1
  374. package/packages/transact/src/logicsig.mjs +77 -78
  375. package/packages/transact/src/logicsig.mjs.map +1 -1
  376. package/packages/transact/src/multisig.d.ts +11 -116
  377. package/packages/transact/src/multisig.js +106 -136
  378. package/packages/transact/src/multisig.js.map +1 -1
  379. package/packages/transact/src/multisig.mjs +108 -118
  380. package/packages/transact/src/multisig.mjs.map +1 -1
  381. package/packages/transact/src/signer.js +9 -2
  382. package/packages/transact/src/signer.js.map +1 -1
  383. package/packages/transact/src/signer.mjs +10 -3
  384. package/packages/transact/src/signer.mjs.map +1 -1
  385. package/packages/transact/src/transactions/app-call.d.ts +10 -15
  386. package/packages/transact/src/transactions/app-call.js.map +1 -1
  387. package/packages/transact/src/transactions/app-call.mjs.map +1 -1
  388. package/packages/transact/src/transactions/asset-config.d.ts +1 -6
  389. package/packages/transact/src/transactions/asset-config.js.map +1 -1
  390. package/packages/transact/src/transactions/asset-config.mjs.map +1 -1
  391. package/packages/transact/src/transactions/asset-freeze.d.ts +1 -6
  392. package/packages/transact/src/transactions/asset-transfer.d.ts +1 -6
  393. package/packages/transact/src/transactions/key-registration.d.ts +1 -8
  394. package/packages/transact/src/transactions/reference-types-meta.d.ts +26 -0
  395. package/packages/transact/src/transactions/reference-types-meta.js +71 -0
  396. package/packages/transact/src/transactions/reference-types-meta.js.map +1 -0
  397. package/packages/transact/src/transactions/reference-types-meta.mjs +69 -0
  398. package/packages/transact/src/transactions/reference-types-meta.mjs.map +1 -0
  399. package/packages/transact/src/transactions/signed-transaction-meta.js +8 -9
  400. package/packages/transact/src/transactions/signed-transaction-meta.js.map +1 -1
  401. package/packages/transact/src/transactions/signed-transaction-meta.mjs +8 -8
  402. package/packages/transact/src/transactions/signed-transaction-meta.mjs.map +1 -1
  403. package/packages/transact/src/transactions/signed-transaction.d.ts +10 -6
  404. package/packages/transact/src/transactions/signed-transaction.js +1 -1
  405. package/packages/transact/src/transactions/signed-transaction.js.map +1 -1
  406. package/packages/transact/src/transactions/signed-transaction.mjs +1 -2
  407. package/packages/transact/src/transactions/signed-transaction.mjs.map +1 -1
  408. package/packages/transact/src/transactions/state-proof.d.ts +1 -1
  409. package/packages/transact/src/transactions/transaction-meta.js +29 -23
  410. package/packages/transact/src/transactions/transaction-meta.js.map +1 -1
  411. package/packages/transact/src/transactions/transaction-meta.mjs +29 -23
  412. package/packages/transact/src/transactions/transaction-meta.mjs.map +1 -1
  413. package/packages/transact/src/transactions/transaction.d.ts +5 -2
  414. package/packages/transact/src/transactions/transaction.js +5 -4
  415. package/packages/transact/src/transactions/transaction.js.map +1 -1
  416. package/packages/transact/src/transactions/transaction.mjs +5 -4
  417. package/packages/transact/src/transactions/transaction.mjs.map +1 -1
  418. package/testing/account.d.ts +2 -2
  419. package/testing/account.js +2 -3
  420. package/testing/account.js.map +1 -1
  421. package/testing/account.mjs +2 -3
  422. package/testing/account.mjs.map +1 -1
  423. package/testing/fixtures/algokit-log-capture-fixture.d.ts +1 -1
  424. package/testing/fixtures/algokit-log-capture-fixture.js.map +1 -1
  425. package/testing/fixtures/algokit-log-capture-fixture.mjs.map +1 -1
  426. package/testing/fixtures/algorand-fixture.d.ts +5 -5
  427. package/testing/fixtures/algorand-fixture.js +2 -2
  428. package/testing/fixtures/algorand-fixture.js.map +1 -1
  429. package/testing/fixtures/algorand-fixture.mjs +2 -2
  430. package/testing/fixtures/algorand-fixture.mjs.map +1 -1
  431. package/testing/index.d.ts +2 -1
  432. package/testing/test-logger.d.ts +1 -1
  433. package/testing/test-logger.js.map +1 -1
  434. package/testing/test-logger.mjs.map +1 -1
  435. package/testing/transaction-logger.js +1 -1
  436. package/testing/transaction-logger.mjs +1 -1
  437. package/testing/types.d.ts +156 -0
  438. package/transact/index.d.ts +11 -10
  439. package/transact/index.js +7 -31
  440. package/transact/index.mjs +7 -10
  441. package/transaction/index.d.ts +4 -0
  442. package/transaction/index.js +9 -0
  443. package/transaction/index.mjs +4 -0
  444. package/transaction/perform-transaction-composer-simulate.d.ts +1 -1
  445. package/transaction/perform-transaction-composer-simulate.js.map +1 -1
  446. package/transaction/perform-transaction-composer-simulate.mjs.map +1 -1
  447. package/transaction/transaction.d.ts +2 -2
  448. package/transaction/transaction.js +2 -2
  449. package/transaction/transaction.js.map +1 -1
  450. package/transaction/transaction.mjs +2 -2
  451. package/transaction/transaction.mjs.map +1 -1
  452. package/transaction/types.d.ts +133 -0
  453. package/transactions/app-call.d.ts +6 -5
  454. package/transactions/app-call.js +17 -17
  455. package/transactions/app-call.js.map +1 -1
  456. package/transactions/app-call.mjs +17 -17
  457. package/transactions/app-call.mjs.map +1 -1
  458. package/transactions/asset-config.d.ts +1 -1
  459. package/transactions/asset-config.js +1 -1
  460. package/transactions/asset-config.js.map +1 -1
  461. package/transactions/asset-config.mjs +1 -1
  462. package/transactions/asset-config.mjs.map +1 -1
  463. package/transactions/common.d.ts +1 -1
  464. package/transactions/common.js.map +1 -1
  465. package/transactions/common.mjs.map +1 -1
  466. package/transactions/key-registration.d.ts +1 -1
  467. package/transactions/key-registration.js.map +1 -1
  468. package/transactions/key-registration.mjs.map +1 -1
  469. package/transactions/method-call.d.ts +2 -2
  470. package/transactions/method-call.js +78 -85
  471. package/transactions/method-call.js.map +1 -1
  472. package/transactions/method-call.mjs +78 -85
  473. package/transactions/method-call.mjs.map +1 -1
  474. package/transactions/payment.d.ts +1 -1
  475. package/transactions/payment.js.map +1 -1
  476. package/transactions/payment.mjs.map +1 -1
  477. package/types/account-manager.d.ts +11 -444
  478. package/types/account-manager.js +5 -606
  479. package/types/account-manager.js.map +1 -1
  480. package/types/account-manager.mjs +5 -604
  481. package/types/account-manager.mjs.map +1 -1
  482. package/types/account.d.ts +8 -150
  483. package/types/account.js +3 -4
  484. package/types/account.js.map +1 -1
  485. package/types/account.mjs +4 -4
  486. package/types/account.mjs.map +1 -1
  487. package/types/algorand-client-transaction-creator.d.ts +5 -1084
  488. package/types/algorand-client-transaction-creator.js +3 -721
  489. package/types/algorand-client-transaction-creator.js.map +1 -1
  490. package/types/algorand-client-transaction-creator.mjs +4 -721
  491. package/types/algorand-client-transaction-creator.mjs.map +1 -1
  492. package/types/algorand-client-transaction-sender.d.ts +5 -1298
  493. package/types/algorand-client-transaction-sender.js +3 -920
  494. package/types/algorand-client-transaction-sender.js.map +1 -1
  495. package/types/algorand-client-transaction-sender.mjs +3 -918
  496. package/types/algorand-client-transaction-sender.mjs.map +1 -1
  497. package/types/algorand-client.d.ts +5 -241
  498. package/types/algorand-client.js +3 -319
  499. package/types/algorand-client.js.map +1 -1
  500. package/types/algorand-client.mjs +3 -319
  501. package/types/algorand-client.mjs.map +1 -1
  502. package/types/amount.d.ts +6 -45
  503. package/types/amount.js +3 -60
  504. package/types/amount.js.map +1 -1
  505. package/types/amount.mjs +3 -60
  506. package/types/amount.mjs.map +1 -1
  507. package/types/app-client.d.ts +75 -2120
  508. package/types/app-client.js +3 -904
  509. package/types/app-client.js.map +1 -1
  510. package/types/app-client.mjs +3 -902
  511. package/types/app-client.mjs.map +1 -1
  512. package/types/app-deployer.d.ts +21 -161
  513. package/types/app-deployer.js +3 -347
  514. package/types/app-deployer.js.map +1 -1
  515. package/types/app-deployer.mjs +3 -347
  516. package/types/app-deployer.mjs.map +1 -1
  517. package/types/app-factory.d.ts +21 -957
  518. package/types/app-factory.js +3 -442
  519. package/types/app-factory.js.map +1 -1
  520. package/types/app-factory.mjs +3 -442
  521. package/types/app-factory.mjs.map +1 -1
  522. package/types/app-manager.d.ts +15 -316
  523. package/types/app-manager.js +3 -456
  524. package/types/app-manager.js.map +1 -1
  525. package/types/app-manager.mjs +3 -456
  526. package/types/app-manager.mjs.map +1 -1
  527. package/types/app-spec.d.ts +39 -198
  528. package/types/app-spec.js +3 -124
  529. package/types/app-spec.js.map +1 -1
  530. package/types/app-spec.mjs +3 -124
  531. package/types/app-spec.mjs.map +1 -1
  532. package/types/app.d.ts +62 -247
  533. package/types/app.js +15 -37
  534. package/types/app.js.map +1 -1
  535. package/types/app.mjs +16 -37
  536. package/types/app.mjs.map +1 -1
  537. package/types/asset-manager.d.ts +9 -207
  538. package/types/asset-manager.js +3 -160
  539. package/types/asset-manager.js.map +1 -1
  540. package/types/asset-manager.mjs +3 -160
  541. package/types/asset-manager.mjs.map +1 -1
  542. package/types/async-event-emitter.d.ts +7 -14
  543. package/types/async-event-emitter.js +3 -32
  544. package/types/async-event-emitter.js.map +1 -1
  545. package/types/async-event-emitter.mjs +4 -32
  546. package/types/async-event-emitter.mjs.map +1 -1
  547. package/types/client-manager.d.ts +27 -470
  548. package/types/client-manager.js +3 -610
  549. package/types/client-manager.js.map +1 -1
  550. package/types/client-manager.mjs +3 -610
  551. package/types/client-manager.mjs.map +1 -1
  552. package/types/composer.d.ts +79 -935
  553. package/types/composer.js +3 -1569
  554. package/types/composer.js.map +1 -1
  555. package/types/composer.mjs +3 -1567
  556. package/types/composer.mjs.map +1 -1
  557. package/types/config.d.ts +7 -52
  558. package/types/config.js +3 -74
  559. package/types/config.js.map +1 -1
  560. package/types/config.mjs +3 -74
  561. package/types/config.mjs.map +1 -1
  562. package/types/debugging.d.ts +12 -33
  563. package/types/debugging.js +11 -10
  564. package/types/debugging.js.map +1 -1
  565. package/types/debugging.mjs +12 -10
  566. package/types/debugging.mjs.map +1 -1
  567. package/types/dispenser-client.d.ts +11 -85
  568. package/types/dispenser-client.js +3 -121
  569. package/types/dispenser-client.js.map +1 -1
  570. package/types/dispenser-client.mjs +3 -121
  571. package/types/dispenser-client.mjs.map +1 -1
  572. package/types/expand.d.ts +4 -5
  573. package/types/indexer.d.ts +16 -36
  574. package/types/indexer.js +7 -30
  575. package/types/indexer.js.map +1 -1
  576. package/types/indexer.mjs +8 -30
  577. package/types/indexer.mjs.map +1 -1
  578. package/types/instance-of.d.ts +4 -4
  579. package/types/kmd-account-manager.d.ts +5 -68
  580. package/types/kmd-account-manager.js +3 -150
  581. package/types/kmd-account-manager.js.map +1 -1
  582. package/types/kmd-account-manager.mjs +3 -148
  583. package/types/kmd-account-manager.mjs.map +1 -1
  584. package/types/lifecycle-events.d.ts +7 -10
  585. package/types/lifecycle-events.js +3 -5
  586. package/types/lifecycle-events.js.map +1 -1
  587. package/types/lifecycle-events.mjs +4 -5
  588. package/types/lifecycle-events.mjs.map +1 -1
  589. package/types/logging.d.ts +14 -9
  590. package/types/logging.js +11 -37
  591. package/types/logging.js.map +1 -1
  592. package/types/logging.mjs +12 -37
  593. package/types/logging.mjs.map +1 -1
  594. package/types/logic-error.d.ts +8 -35
  595. package/types/logic-error.js +3 -48
  596. package/types/logic-error.js.map +1 -1
  597. package/types/logic-error.mjs +4 -48
  598. package/types/logic-error.mjs.map +1 -1
  599. package/types/network-client.d.ts +10 -39
  600. package/types/network-client.js +3 -8
  601. package/types/network-client.js.map +1 -1
  602. package/types/network-client.mjs +4 -8
  603. package/types/network-client.mjs.map +1 -1
  604. package/types/testing.d.ts +13 -151
  605. package/types/transaction.d.ts +33 -128
  606. package/updatable-config.d.ts +57 -0
  607. package/updatable-config.js +80 -0
  608. package/updatable-config.js.map +1 -0
  609. package/updatable-config.mjs +80 -0
  610. package/updatable-config.mjs.map +1 -0
  611. package/util.js +1 -1
  612. package/util.js.map +1 -1
  613. package/util.mjs +1 -1
  614. package/util.mjs.map +1 -1
  615. package/_virtual/rolldown_runtime.mjs +0 -13
  616. package/indexer-lookup.js.map +0 -1
  617. package/indexer-lookup.mjs.map +0 -1
  618. package/packages/algod_client/src/core/model-runtime.d.ts +0 -10
  619. package/packages/algod_client/src/models/application-local-reference.d.ts +0 -20
  620. package/packages/algod_client/src/models/application-local-reference.js +0 -23
  621. package/packages/algod_client/src/models/application-local-reference.js.map +0 -1
  622. package/packages/algod_client/src/models/application-local-reference.mjs +0 -23
  623. package/packages/algod_client/src/models/application-local-reference.mjs.map +0 -1
  624. package/packages/algod_client/src/models/asset-holding-reference.d.ts +0 -20
  625. package/packages/algod_client/src/models/asset-holding-reference.js +0 -23
  626. package/packages/algod_client/src/models/asset-holding-reference.js.map +0 -1
  627. package/packages/algod_client/src/models/asset-holding-reference.mjs +0 -23
  628. package/packages/algod_client/src/models/asset-holding-reference.mjs.map +0 -1
  629. package/packages/algod_client/src/models/box-reference.d.ts +0 -17
  630. package/packages/algod_client/src/models/box-reference.js +0 -23
  631. package/packages/algod_client/src/models/box-reference.js.map +0 -1
  632. package/packages/algod_client/src/models/box-reference.mjs +0 -23
  633. package/packages/algod_client/src/models/box-reference.mjs.map +0 -1
  634. package/packages/indexer_client/src/core/model-runtime.d.ts +0 -10
  635. package/packages/kmd_client/src/core/model-runtime.d.ts +0 -10
  636. package/packages/sdk/src/convert.d.ts +0 -17
  637. package/packages/sdk/src/convert.js +0 -28
  638. package/packages/sdk/src/convert.js.map +0 -1
  639. package/packages/sdk/src/convert.mjs +0 -25
  640. package/packages/sdk/src/convert.mjs.map +0 -1
  641. package/packages/sdk/src/encoding/binarydata.d.ts +0 -34
  642. package/packages/sdk/src/encoding/binarydata.js +0 -65
  643. package/packages/sdk/src/encoding/binarydata.js.map +0 -1
  644. package/packages/sdk/src/encoding/binarydata.mjs +0 -60
  645. package/packages/sdk/src/encoding/binarydata.mjs.map +0 -1
  646. package/packages/sdk/src/encoding/encoding.d.ts +0 -237
  647. package/packages/sdk/src/encoding/encoding.js +0 -302
  648. package/packages/sdk/src/encoding/encoding.js.map +0 -1
  649. package/packages/sdk/src/encoding/encoding.mjs +0 -287
  650. package/packages/sdk/src/encoding/encoding.mjs.map +0 -1
  651. package/packages/sdk/src/encoding/schema/array.js +0 -35
  652. package/packages/sdk/src/encoding/schema/array.js.map +0 -1
  653. package/packages/sdk/src/encoding/schema/array.mjs +0 -35
  654. package/packages/sdk/src/encoding/schema/array.mjs.map +0 -1
  655. package/packages/sdk/src/encoding/schema/bytearray.js +0 -49
  656. package/packages/sdk/src/encoding/schema/bytearray.js.map +0 -1
  657. package/packages/sdk/src/encoding/schema/bytearray.mjs +0 -49
  658. package/packages/sdk/src/encoding/schema/bytearray.mjs.map +0 -1
  659. package/packages/sdk/src/encoding/schema/map.d.ts +0 -58
  660. package/packages/sdk/src/encoding/schema/map.js +0 -110
  661. package/packages/sdk/src/encoding/schema/map.js.map +0 -1
  662. package/packages/sdk/src/encoding/schema/map.mjs +0 -107
  663. package/packages/sdk/src/encoding/schema/map.mjs.map +0 -1
  664. package/packages/sdk/src/encoding/schema/optional.js +0 -46
  665. package/packages/sdk/src/encoding/schema/optional.js.map +0 -1
  666. package/packages/sdk/src/encoding/schema/optional.mjs +0 -46
  667. package/packages/sdk/src/encoding/schema/optional.mjs.map +0 -1
  668. package/packages/sdk/src/encoding/schema/uint64.js +0 -30
  669. package/packages/sdk/src/encoding/schema/uint64.js.map +0 -1
  670. package/packages/sdk/src/encoding/schema/uint64.mjs +0 -30
  671. package/packages/sdk/src/encoding/schema/uint64.mjs.map +0 -1
  672. package/packages/sdk/src/encoding/uint64.d.ts +0 -34
  673. package/packages/sdk/src/encoding/uint64.js +0 -34
  674. package/packages/sdk/src/encoding/uint64.js.map +0 -1
  675. package/packages/sdk/src/encoding/uint64.mjs +0 -33
  676. package/packages/sdk/src/encoding/uint64.mjs.map +0 -1
  677. package/packages/sdk/src/index.d.ts +0 -44
  678. package/packages/sdk/src/index.js +0 -62
  679. package/packages/sdk/src/index.js.map +0 -1
  680. package/packages/sdk/src/index.mjs +0 -58
  681. package/packages/sdk/src/index.mjs.map +0 -1
  682. package/packages/sdk/src/nacl/naclWrappers.js +0 -14
  683. package/packages/sdk/src/nacl/naclWrappers.js.map +0 -1
  684. package/packages/sdk/src/nacl/naclWrappers.mjs +0 -11
  685. package/packages/sdk/src/nacl/naclWrappers.mjs.map +0 -1
  686. package/packages/sdk/src/types/intDecoding.d.ts +0 -28
  687. package/packages/sdk/src/types/intDecoding.js +0 -32
  688. package/packages/sdk/src/types/intDecoding.js.map +0 -1
  689. package/packages/sdk/src/types/intDecoding.mjs +0 -31
  690. package/packages/sdk/src/types/intDecoding.mjs.map +0 -1
  691. package/packages/sdk/src/types/transactions/encoded.d.ts +0 -40
  692. package/packages/sdk/src/types/transactions/encoded.js +0 -64
  693. package/packages/sdk/src/types/transactions/encoded.js.map +0 -1
  694. package/packages/sdk/src/types/transactions/encoded.mjs +0 -59
  695. package/packages/sdk/src/types/transactions/encoded.mjs.map +0 -1
  696. package/packages/sdk/src/utils/utils.d.ts +0 -64
  697. package/packages/sdk/src/utils/utils.js +0 -140
  698. package/packages/sdk/src/utils/utils.js.map +0 -1
  699. package/packages/sdk/src/utils/utils.mjs +0 -128
  700. package/packages/sdk/src/utils/utils.mjs.map +0 -1
  701. package/packages/transact/src/transactions/common.d.ts +0 -37
  702. package/sdk/index.d.ts +0 -10
  703. package/sdk/index.js +0 -59
  704. package/sdk/index.mjs +0 -11
@@ -0,0 +1,2130 @@
1
+ import { Address, ReadableAddress } from "./packages/common/src/address.js";
2
+ import { Expand } from "./packages/common/src/expand.js";
3
+ import { ProgramSourceMap } from "./packages/common/src/sourcemap.js";
4
+ import { ABIValue } from "./packages/abi/src/abi-value.js";
5
+ import { Arc56Contract, ProgramSourceInfo } from "./packages/abi/src/arc56-contract.js";
6
+ import { ABIType } from "./packages/abi/src/abi-type.js";
7
+ import { ABIMethod, ABIReturn } from "./packages/abi/src/abi-method.js";
8
+ import { OnApplicationComplete, ResourceReference } from "./packages/transact/src/transactions/app-call.js";
9
+ import { Transaction } from "./packages/transact/src/transactions/transaction.js";
10
+ import { AddressWithTransactionSigner, SendingAddress, TransactionSigner } from "./packages/transact/src/signer.js";
11
+ import { PendingTransactionResponse } from "./packages/algod_client/src/models/pending-transaction-response.js";
12
+ import { SuggestedParams } from "./packages/algod_client/src/models/suggested-params.js";
13
+ import { AlgoAmount } from "./amount.js";
14
+ import { IndexerClient } from "./packages/indexer_client/src/client.js";
15
+ import { SendParams, SendTransactionFrom, SendTransactionParams, TransactionNote } from "./transaction/types.js";
16
+ import { TransactionWithSigner } from "./transaction/transaction.js";
17
+ import { ABIAppCallArgs, AppCompilationResult, AppLookup, AppReturn, AppState, AppStorageSchema, BoxName, CompiledTeal, OnSchemaBreak, OnUpdate, RawAppCallArgs, SendAppTransactionResult, TealTemplateParams } from "./app.js";
18
+ import { AppManager, BoxIdentifier, BoxReference } from "./app-manager.js";
19
+ import { AppCallParams, AppDeleteParams, AppMethodCallParams, CommonAppCallParams } from "./transactions/app-call.js";
20
+ import { AppMethodCall, AppMethodCallTransactionArgument } from "./transactions/method-call.js";
21
+ import { PaymentParams } from "./transactions/payment.js";
22
+ import { AppLookup as AppLookup$1 } from "./app-deployer.js";
23
+ import { AlgorandClient } from "./algorand-client.js";
24
+ import { AppSpec } from "./app-spec.js";
25
+
26
+ //#region src/app-client.d.ts
27
+ /** Configuration to resolve app by creator and name `getCreatorAppsByName` */
28
+ type ResolveAppByCreatorAndNameBase = {
29
+ /** The address of the app creator account to resolve the app by */
30
+ creatorAddress: ReadableAddress;
31
+ /** The optional name override to resolve the app by within the creator account (default: uses the name in the ABI contract) */
32
+ name?: string;
33
+ /** The mechanism to find an existing app instance metadata for the given creator and name; either:
34
+ * * An indexer instance to search the creator account apps; or
35
+ * * The cached value of the existing apps for the given creator from `getCreatorAppsByName`
36
+ */
37
+ findExistingUsing: IndexerClient | AppLookup;
38
+ };
39
+ /** Configuration to resolve app by creator and name `getCreatorAppsByName` */
40
+ type ResolveAppByCreatorAndName = ResolveAppByCreatorAndNameBase & {
41
+ /** How the app ID is resolved, either by `'id'` or `'creatorAndName'`; must be `'creatorAndName'` if you want to use `deploy` */
42
+ resolveBy: 'creatorAndName';
43
+ };
44
+ /** Configuration to resolve app by ID */
45
+ interface ResolveAppByIdBase {
46
+ /** The id of an existing app to call using this client, or 0 if the app hasn't been created yet */
47
+ id: number | bigint;
48
+ /** The optional name to use to mark the app when deploying `ApplicationClient.deploy` (default: uses the name in the ABI contract) */
49
+ name?: string;
50
+ }
51
+ interface ResolveAppById extends ResolveAppByIdBase {
52
+ /** How the app ID is resolved, either by `'id'` or `'creatorAndName'`; must be `'creatorAndName'` if you want to use `deploy` */
53
+ resolveBy: 'id';
54
+ }
55
+ /** The details of an AlgoKit Utils deployed app */
56
+ type AppDetailsBase = {
57
+ /** Default sender to use for transactions issued by this application client */
58
+ sender?: SendTransactionFrom;
59
+ /** Default suggested params object to use */
60
+ params?: SuggestedParams;
61
+ /** Optionally provide any deploy-time parameters to replace in the TEAL code; if specified here will get
62
+ * used in calls to `deploy`, `create` and `update` unless overridden in those calls
63
+ */
64
+ deployTimeParams?: TealTemplateParams;
65
+ };
66
+ /** The details of an AlgoKit Utils deployed app */
67
+ type AppDetails = AppDetailsBase & (ResolveAppById | ResolveAppByCreatorAndName);
68
+ /** The details of an ARC-0032 app spec specified, AlgoKit Utils deployed app */
69
+ type AppSpecAppDetailsBase = {
70
+ /** The ARC-0032 application spec as either:
71
+ * * Parsed JSON `AppSpec`
72
+ * * Raw JSON string
73
+ */
74
+ app: AppSpec | string;
75
+ };
76
+ /** The details of an ARC-0032 app spec specified, AlgoKit Utils deployed app by id*/
77
+ type AppSpecAppDetailsById = AppSpecAppDetailsBase & AppDetailsBase & ResolveAppByIdBase;
78
+ /** The details of an ARC-0032 app spec specified, AlgoKit Utils deployed app by creator and name*/
79
+ type AppSpecAppDetailsByCreatorAndName = AppSpecAppDetailsBase & AppDetailsBase & ResolveAppByCreatorAndNameBase;
80
+ /** The details of an ARC-0032 app spec specified, AlgoKit Utils deployed app */
81
+ type AppSpecAppDetails = AppSpecAppDetailsBase & AppDetails;
82
+ /** Core parameters to pass into ApplicationClient.deploy */
83
+ interface AppClientDeployCoreParams {
84
+ /** The version of the contract, uses "1.0" by default */
85
+ version?: string;
86
+ /** The optional sender to send the transaction from, will use the application client's default sender by default if specified */
87
+ sender?: SendTransactionFrom;
88
+ /** Parameters to control transaction sending */
89
+ sendParams?: Omit<SendTransactionParams, 'skipSending' | 'skipWaiting'>;
90
+ /** Whether or not to allow updates in the contract using the deploy-time updatability control if present in your contract.
91
+ * If this is not specified then it will automatically be determined based on the AppSpec definition
92
+ **/
93
+ allowUpdate?: boolean;
94
+ /** Whether or not to allow deletes in the contract using the deploy-time deletability control if present in your contract.
95
+ * If this is not specified then it will automatically be determined based on the AppSpec definition
96
+ **/
97
+ allowDelete?: boolean;
98
+ /** What action to perform if a schema break is detected */
99
+ onSchemaBreak?: 'replace' | 'fail' | 'append' | OnSchemaBreak;
100
+ /** What action to perform if a TEAL update is detected */
101
+ onUpdate?: 'update' | 'replace' | 'append' | 'fail' | OnUpdate;
102
+ }
103
+ /** Call interface parameters to pass into ApplicationClient.deploy */
104
+ interface AppClientDeployCallInterfaceParams {
105
+ /** Any deploy-time parameters to replace in the TEAL code */
106
+ deployTimeParams?: TealTemplateParams;
107
+ /** Any args to pass to any create transaction that is issued as part of deployment */
108
+ createArgs?: AppClientCallArgs;
109
+ /** Override the on-completion action for the create call; defaults to NoOp */
110
+ createOnCompleteAction?: Exclude<OnApplicationComplete, OnApplicationComplete.ClearState>;
111
+ /** Any args to pass to any update transaction that is issued as part of deployment */
112
+ updateArgs?: AppClientCallArgs;
113
+ /** Any args to pass to any delete transaction that is issued as part of deployment */
114
+ deleteArgs?: AppClientCallArgs;
115
+ }
116
+ /** Parameters to pass into ApplicationClient.deploy */
117
+ interface AppClientDeployParams extends AppClientDeployCoreParams, AppClientDeployCallInterfaceParams {
118
+ /** Any overrides for the storage schema to request for the created app; by default the schema indicated by the app spec is used. */
119
+ schema?: Partial<AppStorageSchema>;
120
+ }
121
+ type AppClientCallRawArgs = RawAppCallArgs;
122
+ interface AppClientCallABIArgs extends Omit<ABIAppCallArgs, 'method'> {
123
+ /** If calling an ABI method then either the name of the method, or the ABI signature */
124
+ method: string;
125
+ }
126
+ /** The arguments to pass to an Application Client smart contract call */
127
+ type AppClientCallArgs = AppClientCallRawArgs | AppClientCallABIArgs;
128
+ /** Common (core) parameters to construct a ApplicationClient contract call */
129
+ interface AppClientCallCoreParams {
130
+ /** The optional sender to send the transaction from, will use the application client's default sender by default if specified */
131
+ sender?: SendTransactionFrom;
132
+ /** The transaction note for the smart contract call */
133
+ note?: TransactionNote;
134
+ /** Parameters to control transaction sending */
135
+ sendParams?: SendTransactionParams;
136
+ }
137
+ /** Parameters to construct a ApplicationClient contract call */
138
+ type AppClientCallParams = AppClientCallArgs & AppClientCallCoreParams;
139
+ /** Parameters to construct a ApplicationClient clear state contract call */
140
+ type AppClientClearStateParams = AppClientCallRawArgs & AppClientCallCoreParams;
141
+ interface AppClientCompilationParams {
142
+ /** Any deploy-time parameters to replace in the TEAL code */
143
+ deployTimeParams?: TealTemplateParams;
144
+ /** Whether or not the contract should have deploy-time immutability control set, undefined = ignore */
145
+ updatable?: boolean;
146
+ /** Whether or not the contract should have deploy-time permanence control set, undefined = ignore */
147
+ deletable?: boolean;
148
+ }
149
+ /** On-complete action parameter for creating a contract using ApplicationClient */
150
+ type AppClientCreateOnComplete = {
151
+ /** Override the on-completion action for the create call; defaults to NoOp */
152
+ onCompleteAction?: Exclude<OnApplicationComplete, OnApplicationComplete.ClearState>;
153
+ };
154
+ /** Parameters for creating a contract using ApplicationClient */
155
+ type AppClientCreateParams = AppClientCallParams & AppClientCompilationParams & AppClientCreateOnComplete & {
156
+ /** Any overrides for the storage schema to request for the created app; by default the schema indicated by the app spec is used. */
157
+ schema?: Partial<AppStorageSchema>;
158
+ };
159
+ /** Parameters for updating a contract using ApplicationClient */
160
+ type AppClientUpdateParams = AppClientCallParams & AppClientCompilationParams;
161
+ /** Parameters for funding an app account */
162
+ interface FundAppAccountParams {
163
+ amount: AlgoAmount;
164
+ /** The optional sender to send the transaction from, will use the application client's default sender by default if specified */
165
+ sender?: SendTransactionFrom;
166
+ /** The transaction note for the smart contract call */
167
+ note?: TransactionNote;
168
+ /** Parameters to control transaction sending */
169
+ sendParams?: SendTransactionParams;
170
+ }
171
+ /** Source maps for an Algorand app */
172
+ interface AppSourceMaps {
173
+ /** The source map of the approval program */
174
+ approvalSourceMap: SourceMapExport;
175
+ /** The source map of the clear program */
176
+ clearSourceMap: SourceMapExport;
177
+ }
178
+ interface SourceMapExport {
179
+ version: number;
180
+ sources: string[];
181
+ names: string[];
182
+ mappings: string;
183
+ }
184
+ /**
185
+ * The result of asking an `AppClient` to compile a program.
186
+ *
187
+ * Always contains the compiled bytecode, and may contain the result of compiling TEAL (including sourcemap) if it was available.
188
+ */
189
+ interface AppClientCompilationResult extends Partial<AppCompilationResult> {
190
+ /** The compiled bytecode of the approval program, ready to deploy to algod */
191
+ approvalProgram: Uint8Array;
192
+ /** The compiled bytecode of the clear state program, ready to deploy to algod */
193
+ clearStateProgram: Uint8Array;
194
+ }
195
+ /** Parameters to create an app client */
196
+ interface AppClientParams {
197
+ /** The ID of the app instance this client should make calls against. */
198
+ appId: bigint;
199
+ /** The ARC-56 or ARC-32 application spec as either:
200
+ * * Parsed JSON ARC-56 `Contract`
201
+ * * Parsed JSON ARC-32 `AppSpec`
202
+ * * Raw JSON string (in either ARC-56 or ARC-32 format)
203
+ */
204
+ appSpec: Arc56Contract | AppSpec | string;
205
+ /** An `AlgorandClient` instance */
206
+ algorand: AlgorandClient;
207
+ /**
208
+ * Optional override for the app name; used for on-chain metadata and lookups.
209
+ * Defaults to the ARC-32/ARC-56 app spec name
210
+ */
211
+ appName?: string;
212
+ /** Optional address to use for the account to use as the default sender for calls. */
213
+ defaultSender?: ReadableAddress;
214
+ /** Optional signer to use as the default signer for default sender calls (if not specified then the signer will be resolved from `AlgorandClient`). */
215
+ defaultSigner?: TransactionSigner;
216
+ /** Optional source map for the approval program */
217
+ approvalSourceMap?: ProgramSourceMap;
218
+ /** Optional source map for the clear state program */
219
+ clearSourceMap?: ProgramSourceMap;
220
+ }
221
+ /** Parameters to clone an app client */
222
+ type CloneAppClientParams = Expand<Partial<Omit<AppClientParams, 'algorand' | 'appSpec'>>>;
223
+ /** onComplete parameter for a non-update app call */
224
+ type CallOnComplete = {
225
+ /** On-complete of the call; defaults to no-op */
226
+ onComplete?: Exclude<OnApplicationComplete, OnApplicationComplete.UpdateApplication>;
227
+ };
228
+ /** AppClient common parameters for a bare app call */
229
+ type AppClientBareCallParams = Expand<Omit<CommonAppCallParams, 'appId' | 'sender' | 'onComplete'> & {
230
+ /** The address of the account sending the transaction, if undefined then the app client's defaultSender is used. */
231
+ sender?: ReadableAddress;
232
+ }>;
233
+ /** AppClient common parameters for an ABI method call */
234
+ type AppClientMethodCallParams = Expand<Omit<CommonAppCallParams, 'appId' | 'sender' | 'method' | 'args'> & {
235
+ /** The address of the account sending the transaction, if undefined then the app client's defaultSender is used. */
236
+ sender?: ReadableAddress;
237
+ /** The method name or method signature to call if an ABI call is being emitted
238
+ * @example Method name
239
+ * `my_method`
240
+ * @example Method signature
241
+ * `my_method(unit64,string)bytes`
242
+ */
243
+ method: string;
244
+ /** Arguments to the ABI method, either:
245
+ * * An ABI value
246
+ * * An ARC-56 struct
247
+ * * A transaction with explicit signer
248
+ * * A transaction (where the signer will be automatically assigned)
249
+ * * An unawaited transaction (e.g. from algorand.createTransaction.transactionType())
250
+ * * Another method call (via method call params object)
251
+ * * undefined (this represents a placeholder for either a default argument or a transaction argument that is fulfilled by another method call argument)
252
+ */
253
+ args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[];
254
+ }>;
255
+ /** Parameters for funding an app account */
256
+ type FundAppParams = Expand<Omit<PaymentParams, 'receiver' | 'sender'> & SendParams & {
257
+ /** The optional sender to send the transaction from, will use the application client's default sender by default if specified */
258
+ sender?: ReadableAddress;
259
+ }>;
260
+ /** Resolve an app client instance by looking up an app created by the given creator with the given name */
261
+ type ResolveAppClientByCreatorAndName = Expand<Omit<AppClientParams, 'appId'> & {
262
+ /** The address of the creator account for the app */
263
+ creatorAddress: ReadableAddress;
264
+ /** An optional cached app lookup that matches a name to on-chain details;
265
+ * either this is needed or indexer is required to be passed in to this `ClientManager` on construction.
266
+ */
267
+ appLookupCache?: AppLookup$1;
268
+ /** Whether or not to ignore the `AppDeployer` lookup cache and force an on-chain lookup, default: use any cached value */
269
+ ignoreCache?: boolean;
270
+ }>;
271
+ /** Resolve an app client instance by looking up the current network. */
272
+ type ResolveAppClientByNetwork = Expand<Omit<AppClientParams, 'appId'>>;
273
+ /** ARC-56/ARC-32 application client that allows you to manage calls and
274
+ * state for a specific deployed instance of an app (with a known app ID). */
275
+ declare class AppClient {
276
+ private _appId;
277
+ private _appAddress;
278
+ private _appName;
279
+ private _appSpec;
280
+ private _algorand;
281
+ private _defaultSender?;
282
+ private _defaultSigner?;
283
+ private _approvalSourceMap;
284
+ private _clearSourceMap;
285
+ private _localStateMethods;
286
+ private _globalStateMethods;
287
+ private _boxStateMethods;
288
+ private _paramsMethods;
289
+ private _createTransactionsMethods;
290
+ private _sendMethods;
291
+ private _lastCompiled;
292
+ /**
293
+ * Create a new app client.
294
+ * @param params The parameters to create the app client
295
+ * @returns The `AppClient` instance
296
+ * @example
297
+ * ```typescript
298
+ * const appClient = new AppClient({
299
+ * appId: 12345678n,
300
+ * appSpec: appSpec,
301
+ * algorand: AlgorandClient.mainNet(),
302
+ * })
303
+ */
304
+ constructor(params: AppClientParams);
305
+ /**
306
+ * Clone this app client with different params
307
+ *
308
+ * @param params The params to use for the the cloned app client. Omit a param to keep the original value. Set a param to override the original value. Setting to undefined will clear the original value.
309
+ * @returns A new app client with the altered params
310
+ * @example
311
+ * ```typescript
312
+ * const appClient2 = appClient.clone({ defaultSender: 'NEW_SENDER_ADDRESS' })
313
+ * ```
314
+ */
315
+ clone(params: CloneAppClientParams): AppClient;
316
+ /**
317
+ * Returns a new `AppClient` client, resolving the app by creator address and name
318
+ * using AlgoKit app deployment semantics (i.e. looking for the app creation transaction note).
319
+ * @param params The parameters to create the app client
320
+ * @returns The `AppClient` instance
321
+ * @example
322
+ * ```typescript
323
+ * const appClient = await AppClient.fromCreatorAndName({
324
+ * creatorAddress: 'CREATOR_ADDRESS',
325
+ * name: 'APP_NAME',
326
+ * appSpec: appSpec,
327
+ * algorand: AlgorandClient.mainNet(),
328
+ * })
329
+ */
330
+ static fromCreatorAndName(params: ResolveAppClientByCreatorAndName): Promise<AppClient>;
331
+ /**
332
+ * Returns an `AppClient` instance for the current network based on
333
+ * pre-determined network-specific app IDs specified in the ARC-56 app spec.
334
+ *
335
+ * If no IDs are in the app spec or the network isn't recognised, an error is thrown.
336
+ * @param params The parameters to create the app client
337
+ * @returns The `AppClient` instance
338
+ * @example
339
+ * ```typescript
340
+ * const appClient = await AppClient.fromNetwork({
341
+ * appSpec: appSpec,
342
+ * algorand: AlgorandClient.mainNet(),
343
+ * })
344
+ */
345
+ static fromNetwork(params: ResolveAppClientByNetwork): Promise<AppClient>;
346
+ /**
347
+ * Takes a string or parsed JSON object that could be ARC-32 or ARC-56 format and
348
+ * normalises it into a parsed ARC-56 contract object.
349
+ * @param spec The spec to normalise
350
+ * @returns The normalised ARC-56 contract object
351
+ * @example
352
+ * ```typescript
353
+ * const arc56AppSpec = AppClient.normaliseAppSpec(appSpec)
354
+ * ```
355
+ */
356
+ static normaliseAppSpec(spec: Arc56Contract | AppSpec | string): Arc56Contract;
357
+ /** The ID of the app instance this client is linked to. */
358
+ get appId(): bigint;
359
+ /** The app address of the app instance this client is linked to. */
360
+ get appAddress(): Address;
361
+ /** The name of the app (from the ARC-32 / ARC-56 app spec or override). */
362
+ get appName(): string;
363
+ /** The ARC-56 app spec being used */
364
+ get appSpec(): Arc56Contract;
365
+ /** A reference to the underlying `AlgorandClient` this app client is using. */
366
+ get algorand(): AlgorandClient;
367
+ /** Get parameters to create transactions for the current app.
368
+ *
369
+ * A good mental model for this is that these parameters represent a deferred transaction creation.
370
+ * @example Create a transaction in the future using Algorand Client
371
+ * ```typescript
372
+ * const myMethodCall = appClient.params.call({method: 'my_method', args: [123, 'hello']})
373
+ * // ...
374
+ * await algorand.send.AppMethodCall(myMethodCall)
375
+ * ```
376
+ * @example Define a nested transaction as an ABI argument
377
+ * ```typescript
378
+ * const myMethodCall = appClient.params.call({method: 'my_method', args: [123, 'hello']})
379
+ * await appClient.send.call({method: 'my_method2', args: [myMethodCall]})
380
+ * ```
381
+ */
382
+ get params(): {
383
+ /**
384
+ * Return params for a payment transaction to fund the app account
385
+ * @param params The parameters for the fund app accont payment transaction
386
+ * @returns The parameters which can be used to create a fund app account payment transaction
387
+ */
388
+ fundAppAccount: (params: {
389
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
390
+ rekeyTo?: ReadableAddress | undefined;
391
+ note?: string | Uint8Array | undefined;
392
+ lease?: string | Uint8Array | undefined;
393
+ staticFee?: AlgoAmount | undefined;
394
+ extraFee?: AlgoAmount | undefined;
395
+ maxFee?: AlgoAmount | undefined;
396
+ validityWindow?: number | bigint | undefined;
397
+ firstValidRound?: bigint | undefined;
398
+ lastValidRound?: bigint | undefined;
399
+ amount: AlgoAmount;
400
+ closeRemainderTo?: ReadableAddress | undefined;
401
+ maxRoundsToWaitForConfirmation?: number | undefined;
402
+ suppressLog?: boolean | undefined;
403
+ populateAppCallResources?: boolean | undefined;
404
+ coverAppCallInnerTransactionFees?: boolean | undefined;
405
+ sender?: ReadableAddress | undefined;
406
+ }) => {
407
+ sender: Address;
408
+ signer: AddressWithTransactionSigner | TransactionSigner | undefined;
409
+ receiver: Address;
410
+ rekeyTo?: ReadableAddress | undefined;
411
+ note?: string | Uint8Array | undefined;
412
+ lease?: string | Uint8Array | undefined;
413
+ staticFee?: AlgoAmount | undefined;
414
+ extraFee?: AlgoAmount | undefined;
415
+ maxFee?: AlgoAmount | undefined;
416
+ validityWindow?: number | bigint | undefined;
417
+ firstValidRound?: bigint | undefined;
418
+ lastValidRound?: bigint | undefined;
419
+ amount: AlgoAmount;
420
+ closeRemainderTo?: ReadableAddress | undefined;
421
+ maxRoundsToWaitForConfirmation?: number | undefined;
422
+ suppressLog?: boolean | undefined;
423
+ populateAppCallResources?: boolean | undefined;
424
+ coverAppCallInnerTransactionFees?: boolean | undefined;
425
+ };
426
+ /**
427
+ * Return params for an update ABI call, including deploy-time TEAL template replacements and compilation if provided
428
+ * @param params The parameters for the update ABI method call
429
+ * @returns The parameters which can be used to create an update ABI method call
430
+ */
431
+ update: (params: {
432
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
433
+ rekeyTo?: ReadableAddress | undefined;
434
+ note?: string | Uint8Array | undefined;
435
+ lease?: string | Uint8Array | undefined;
436
+ staticFee?: AlgoAmount | undefined;
437
+ extraFee?: AlgoAmount | undefined;
438
+ maxFee?: AlgoAmount | undefined;
439
+ validityWindow?: number | bigint | undefined;
440
+ firstValidRound?: bigint | undefined;
441
+ lastValidRound?: bigint | undefined;
442
+ onComplete?: OnApplicationComplete | undefined;
443
+ accountReferences?: ReadableAddress[] | undefined;
444
+ appReferences?: bigint[] | undefined;
445
+ assetReferences?: bigint[] | undefined;
446
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
447
+ accessReferences?: ResourceReference[] | undefined;
448
+ rejectVersion?: number | undefined;
449
+ sender?: ReadableAddress | undefined;
450
+ method: string;
451
+ args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
452
+ } & AppClientCompilationParams) => Promise<{
453
+ /** The compiled bytecode of the approval program, ready to deploy to algod */
454
+ approvalProgram: Uint8Array;
455
+ /** The compiled bytecode of the clear state program, ready to deploy to algod */
456
+ clearStateProgram: Uint8Array;
457
+ compiledApproval?: CompiledTeal | undefined;
458
+ compiledClear?: CompiledTeal | undefined;
459
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
460
+ rekeyTo?: ReadableAddress | undefined;
461
+ note?: string | Uint8Array | undefined;
462
+ lease?: string | Uint8Array | undefined;
463
+ staticFee?: AlgoAmount | undefined;
464
+ extraFee?: AlgoAmount | undefined;
465
+ maxFee?: AlgoAmount | undefined;
466
+ validityWindow?: number | bigint | undefined;
467
+ firstValidRound?: bigint | undefined;
468
+ lastValidRound?: bigint | undefined;
469
+ onComplete?: OnApplicationComplete | undefined;
470
+ accountReferences?: ReadableAddress[] | undefined;
471
+ appReferences?: bigint[] | undefined;
472
+ assetReferences?: bigint[] | undefined;
473
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
474
+ accessReferences?: ResourceReference[] | undefined;
475
+ rejectVersion?: number | undefined;
476
+ sender?: ReadableAddress | undefined;
477
+ method: string;
478
+ args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
479
+ /** Any deploy-time parameters to replace in the TEAL code */
480
+ deployTimeParams?: TealTemplateParams | undefined;
481
+ /** Whether or not the contract should have deploy-time immutability control set, undefined = ignore */
482
+ updatable?: boolean | undefined;
483
+ /** Whether or not the contract should have deploy-time permanence control set, undefined = ignore */
484
+ deletable?: boolean | undefined;
485
+ } & {
486
+ appId: bigint;
487
+ sender: Address;
488
+ signer: AddressWithTransactionSigner | TransactionSigner | undefined;
489
+ method: ABIMethod;
490
+ onComplete: OnApplicationComplete.UpdateApplication;
491
+ args: (ABIValue | TransactionWithSigner | Transaction | AppMethodCall<{
492
+ sender: SendingAddress;
493
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
494
+ rekeyTo?: ReadableAddress | undefined;
495
+ note?: string | Uint8Array | undefined;
496
+ lease?: string | Uint8Array | undefined;
497
+ staticFee?: AlgoAmount | undefined;
498
+ extraFee?: AlgoAmount | undefined;
499
+ maxFee?: AlgoAmount | undefined;
500
+ validityWindow?: number | bigint | undefined;
501
+ firstValidRound?: bigint | undefined;
502
+ lastValidRound?: bigint | undefined;
503
+ appId: bigint;
504
+ onComplete?: OnApplicationComplete.UpdateApplication | undefined;
505
+ args?: Uint8Array[] | undefined;
506
+ accountReferences?: ReadableAddress[] | undefined;
507
+ appReferences?: bigint[] | undefined;
508
+ assetReferences?: bigint[] | undefined;
509
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
510
+ accessReferences?: ResourceReference[] | undefined;
511
+ rejectVersion?: number | undefined;
512
+ approvalProgram: string | Uint8Array;
513
+ clearStateProgram: string | Uint8Array;
514
+ }> | AppMethodCall<AppMethodCallParams> | AppMethodCall<{
515
+ sender: SendingAddress;
516
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
517
+ rekeyTo?: ReadableAddress | undefined;
518
+ note?: string | Uint8Array | undefined;
519
+ lease?: string | Uint8Array | undefined;
520
+ staticFee?: AlgoAmount | undefined;
521
+ extraFee?: AlgoAmount | undefined;
522
+ maxFee?: AlgoAmount | undefined;
523
+ validityWindow?: number | bigint | undefined;
524
+ firstValidRound?: bigint | undefined;
525
+ lastValidRound?: bigint | undefined;
526
+ onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
527
+ args?: Uint8Array[] | undefined;
528
+ accountReferences?: ReadableAddress[] | undefined;
529
+ appReferences?: bigint[] | undefined;
530
+ assetReferences?: bigint[] | undefined;
531
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
532
+ accessReferences?: ResourceReference[] | undefined;
533
+ rejectVersion?: number | undefined;
534
+ appId?: 0 | undefined;
535
+ approvalProgram: string | Uint8Array;
536
+ clearStateProgram: string | Uint8Array;
537
+ schema?: {
538
+ globalInts: number;
539
+ globalByteSlices: number;
540
+ localInts: number;
541
+ localByteSlices: number;
542
+ } | undefined;
543
+ extraProgramPages?: number | undefined;
544
+ }> | Promise<Transaction> | undefined)[] | undefined;
545
+ }>;
546
+ /**
547
+ * Return params for an opt-in ABI call
548
+ * @param params The parameters for the opt-in ABI method call
549
+ * @returns The parameters which can be used to create an opt-in ABI method call
550
+ */
551
+ optIn: (params: {
552
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
553
+ rekeyTo?: ReadableAddress | undefined;
554
+ note?: string | Uint8Array | undefined;
555
+ lease?: string | Uint8Array | undefined;
556
+ staticFee?: AlgoAmount | undefined;
557
+ extraFee?: AlgoAmount | undefined;
558
+ maxFee?: AlgoAmount | undefined;
559
+ validityWindow?: number | bigint | undefined;
560
+ firstValidRound?: bigint | undefined;
561
+ lastValidRound?: bigint | undefined;
562
+ onComplete?: OnApplicationComplete | undefined;
563
+ accountReferences?: ReadableAddress[] | undefined;
564
+ appReferences?: bigint[] | undefined;
565
+ assetReferences?: bigint[] | undefined;
566
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
567
+ accessReferences?: ResourceReference[] | undefined;
568
+ rejectVersion?: number | undefined;
569
+ sender?: ReadableAddress | undefined;
570
+ method: string;
571
+ args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
572
+ }) => Promise<{
573
+ appId: bigint;
574
+ sender: SendingAddress;
575
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
576
+ rekeyTo?: ReadableAddress | undefined;
577
+ note?: string | Uint8Array | undefined;
578
+ lease?: string | Uint8Array | undefined;
579
+ staticFee?: AlgoAmount | undefined;
580
+ extraFee?: AlgoAmount | undefined;
581
+ maxFee?: AlgoAmount | undefined;
582
+ validityWindow?: number | bigint | undefined;
583
+ firstValidRound?: bigint | undefined;
584
+ lastValidRound?: bigint | undefined;
585
+ onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.DeleteApplication | undefined;
586
+ accountReferences?: ReadableAddress[] | undefined;
587
+ appReferences?: bigint[] | undefined;
588
+ assetReferences?: bigint[] | undefined;
589
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
590
+ accessReferences?: ResourceReference[] | undefined;
591
+ rejectVersion?: number | undefined;
592
+ method: ABIMethod;
593
+ args?: (ABIValue | TransactionWithSigner | Transaction | AppMethodCall<{
594
+ sender: SendingAddress;
595
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
596
+ rekeyTo?: ReadableAddress | undefined;
597
+ note?: string | Uint8Array | undefined;
598
+ lease?: string | Uint8Array | undefined;
599
+ staticFee?: AlgoAmount | undefined;
600
+ extraFee?: AlgoAmount | undefined;
601
+ maxFee?: AlgoAmount | undefined;
602
+ validityWindow?: number | bigint | undefined;
603
+ firstValidRound?: bigint | undefined;
604
+ lastValidRound?: bigint | undefined;
605
+ appId: bigint;
606
+ onComplete?: OnApplicationComplete.UpdateApplication | undefined;
607
+ args?: Uint8Array[] | undefined;
608
+ accountReferences?: ReadableAddress[] | undefined;
609
+ appReferences?: bigint[] | undefined;
610
+ assetReferences?: bigint[] | undefined;
611
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
612
+ accessReferences?: ResourceReference[] | undefined;
613
+ rejectVersion?: number | undefined;
614
+ approvalProgram: string | Uint8Array;
615
+ clearStateProgram: string | Uint8Array;
616
+ }> | AppMethodCall<AppMethodCallParams> | AppMethodCall<{
617
+ sender: SendingAddress;
618
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
619
+ rekeyTo?: ReadableAddress | undefined;
620
+ note?: string | Uint8Array | undefined;
621
+ lease?: string | Uint8Array | undefined;
622
+ staticFee?: AlgoAmount | undefined;
623
+ extraFee?: AlgoAmount | undefined;
624
+ maxFee?: AlgoAmount | undefined;
625
+ validityWindow?: number | bigint | undefined;
626
+ firstValidRound?: bigint | undefined;
627
+ lastValidRound?: bigint | undefined;
628
+ onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
629
+ args?: Uint8Array[] | undefined;
630
+ accountReferences?: ReadableAddress[] | undefined;
631
+ appReferences?: bigint[] | undefined;
632
+ assetReferences?: bigint[] | undefined;
633
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
634
+ accessReferences?: ResourceReference[] | undefined;
635
+ rejectVersion?: number | undefined;
636
+ appId?: 0 | undefined;
637
+ approvalProgram: string | Uint8Array;
638
+ clearStateProgram: string | Uint8Array;
639
+ schema?: {
640
+ globalInts: number;
641
+ globalByteSlices: number;
642
+ localInts: number;
643
+ localByteSlices: number;
644
+ } | undefined;
645
+ extraProgramPages?: number | undefined;
646
+ }> | Promise<Transaction> | undefined)[] | undefined;
647
+ }>;
648
+ /**
649
+ * Return params for an delete ABI call
650
+ * @param params The parameters for the delete ABI method call
651
+ * @returns The parameters which can be used to create a delete ABI method call
652
+ */
653
+ delete: (params: {
654
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
655
+ rekeyTo?: ReadableAddress | undefined;
656
+ note?: string | Uint8Array | undefined;
657
+ lease?: string | Uint8Array | undefined;
658
+ staticFee?: AlgoAmount | undefined;
659
+ extraFee?: AlgoAmount | undefined;
660
+ maxFee?: AlgoAmount | undefined;
661
+ validityWindow?: number | bigint | undefined;
662
+ firstValidRound?: bigint | undefined;
663
+ lastValidRound?: bigint | undefined;
664
+ onComplete?: OnApplicationComplete | undefined;
665
+ accountReferences?: ReadableAddress[] | undefined;
666
+ appReferences?: bigint[] | undefined;
667
+ assetReferences?: bigint[] | undefined;
668
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
669
+ accessReferences?: ResourceReference[] | undefined;
670
+ rejectVersion?: number | undefined;
671
+ sender?: ReadableAddress | undefined;
672
+ method: string;
673
+ args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
674
+ }) => Promise<{
675
+ appId: bigint;
676
+ sender: SendingAddress;
677
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
678
+ rekeyTo?: ReadableAddress | undefined;
679
+ note?: string | Uint8Array | undefined;
680
+ lease?: string | Uint8Array | undefined;
681
+ staticFee?: AlgoAmount | undefined;
682
+ extraFee?: AlgoAmount | undefined;
683
+ maxFee?: AlgoAmount | undefined;
684
+ validityWindow?: number | bigint | undefined;
685
+ firstValidRound?: bigint | undefined;
686
+ lastValidRound?: bigint | undefined;
687
+ onComplete?: OnApplicationComplete.DeleteApplication | undefined;
688
+ accountReferences?: ReadableAddress[] | undefined;
689
+ appReferences?: bigint[] | undefined;
690
+ assetReferences?: bigint[] | undefined;
691
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
692
+ accessReferences?: ResourceReference[] | undefined;
693
+ rejectVersion?: number | undefined;
694
+ method: ABIMethod;
695
+ args?: (ABIValue | TransactionWithSigner | Transaction | AppMethodCall<{
696
+ sender: SendingAddress;
697
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
698
+ rekeyTo?: ReadableAddress | undefined;
699
+ note?: string | Uint8Array | undefined;
700
+ lease?: string | Uint8Array | undefined;
701
+ staticFee?: AlgoAmount | undefined;
702
+ extraFee?: AlgoAmount | undefined;
703
+ maxFee?: AlgoAmount | undefined;
704
+ validityWindow?: number | bigint | undefined;
705
+ firstValidRound?: bigint | undefined;
706
+ lastValidRound?: bigint | undefined;
707
+ appId: bigint;
708
+ onComplete?: OnApplicationComplete.UpdateApplication | undefined;
709
+ args?: Uint8Array[] | undefined;
710
+ accountReferences?: ReadableAddress[] | undefined;
711
+ appReferences?: bigint[] | undefined;
712
+ assetReferences?: bigint[] | undefined;
713
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
714
+ accessReferences?: ResourceReference[] | undefined;
715
+ rejectVersion?: number | undefined;
716
+ approvalProgram: string | Uint8Array;
717
+ clearStateProgram: string | Uint8Array;
718
+ }> | AppMethodCall<AppMethodCallParams> | AppMethodCall<{
719
+ sender: SendingAddress;
720
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
721
+ rekeyTo?: ReadableAddress | undefined;
722
+ note?: string | Uint8Array | undefined;
723
+ lease?: string | Uint8Array | undefined;
724
+ staticFee?: AlgoAmount | undefined;
725
+ extraFee?: AlgoAmount | undefined;
726
+ maxFee?: AlgoAmount | undefined;
727
+ validityWindow?: number | bigint | undefined;
728
+ firstValidRound?: bigint | undefined;
729
+ lastValidRound?: bigint | undefined;
730
+ onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
731
+ args?: Uint8Array[] | undefined;
732
+ accountReferences?: ReadableAddress[] | undefined;
733
+ appReferences?: bigint[] | undefined;
734
+ assetReferences?: bigint[] | undefined;
735
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
736
+ accessReferences?: ResourceReference[] | undefined;
737
+ rejectVersion?: number | undefined;
738
+ appId?: 0 | undefined;
739
+ approvalProgram: string | Uint8Array;
740
+ clearStateProgram: string | Uint8Array;
741
+ schema?: {
742
+ globalInts: number;
743
+ globalByteSlices: number;
744
+ localInts: number;
745
+ localByteSlices: number;
746
+ } | undefined;
747
+ extraProgramPages?: number | undefined;
748
+ }> | Promise<Transaction> | undefined)[] | undefined;
749
+ }>;
750
+ /** Return params for an close out ABI call
751
+ * @param params The parameters for the close out ABI method call
752
+ * @returns The parameters which can be used to create a close out ABI method call
753
+ */
754
+ closeOut: (params: {
755
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
756
+ rekeyTo?: ReadableAddress | undefined;
757
+ note?: string | Uint8Array | undefined;
758
+ lease?: string | Uint8Array | undefined;
759
+ staticFee?: AlgoAmount | undefined;
760
+ extraFee?: AlgoAmount | undefined;
761
+ maxFee?: AlgoAmount | undefined;
762
+ validityWindow?: number | bigint | undefined;
763
+ firstValidRound?: bigint | undefined;
764
+ lastValidRound?: bigint | undefined;
765
+ onComplete?: OnApplicationComplete | undefined;
766
+ accountReferences?: ReadableAddress[] | undefined;
767
+ appReferences?: bigint[] | undefined;
768
+ assetReferences?: bigint[] | undefined;
769
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
770
+ accessReferences?: ResourceReference[] | undefined;
771
+ rejectVersion?: number | undefined;
772
+ sender?: ReadableAddress | undefined;
773
+ method: string;
774
+ args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
775
+ }) => Promise<{
776
+ appId: bigint;
777
+ sender: SendingAddress;
778
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
779
+ rekeyTo?: ReadableAddress | undefined;
780
+ note?: string | Uint8Array | undefined;
781
+ lease?: string | Uint8Array | undefined;
782
+ staticFee?: AlgoAmount | undefined;
783
+ extraFee?: AlgoAmount | undefined;
784
+ maxFee?: AlgoAmount | undefined;
785
+ validityWindow?: number | bigint | undefined;
786
+ firstValidRound?: bigint | undefined;
787
+ lastValidRound?: bigint | undefined;
788
+ onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.DeleteApplication | undefined;
789
+ accountReferences?: ReadableAddress[] | undefined;
790
+ appReferences?: bigint[] | undefined;
791
+ assetReferences?: bigint[] | undefined;
792
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
793
+ accessReferences?: ResourceReference[] | undefined;
794
+ rejectVersion?: number | undefined;
795
+ method: ABIMethod;
796
+ args?: (ABIValue | TransactionWithSigner | Transaction | AppMethodCall<{
797
+ sender: SendingAddress;
798
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
799
+ rekeyTo?: ReadableAddress | undefined;
800
+ note?: string | Uint8Array | undefined;
801
+ lease?: string | Uint8Array | undefined;
802
+ staticFee?: AlgoAmount | undefined;
803
+ extraFee?: AlgoAmount | undefined;
804
+ maxFee?: AlgoAmount | undefined;
805
+ validityWindow?: number | bigint | undefined;
806
+ firstValidRound?: bigint | undefined;
807
+ lastValidRound?: bigint | undefined;
808
+ appId: bigint;
809
+ onComplete?: OnApplicationComplete.UpdateApplication | undefined;
810
+ args?: Uint8Array[] | undefined;
811
+ accountReferences?: ReadableAddress[] | undefined;
812
+ appReferences?: bigint[] | undefined;
813
+ assetReferences?: bigint[] | undefined;
814
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
815
+ accessReferences?: ResourceReference[] | undefined;
816
+ rejectVersion?: number | undefined;
817
+ approvalProgram: string | Uint8Array;
818
+ clearStateProgram: string | Uint8Array;
819
+ }> | AppMethodCall<AppMethodCallParams> | AppMethodCall<{
820
+ sender: SendingAddress;
821
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
822
+ rekeyTo?: ReadableAddress | undefined;
823
+ note?: string | Uint8Array | undefined;
824
+ lease?: string | Uint8Array | undefined;
825
+ staticFee?: AlgoAmount | undefined;
826
+ extraFee?: AlgoAmount | undefined;
827
+ maxFee?: AlgoAmount | undefined;
828
+ validityWindow?: number | bigint | undefined;
829
+ firstValidRound?: bigint | undefined;
830
+ lastValidRound?: bigint | undefined;
831
+ onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
832
+ args?: Uint8Array[] | undefined;
833
+ accountReferences?: ReadableAddress[] | undefined;
834
+ appReferences?: bigint[] | undefined;
835
+ assetReferences?: bigint[] | undefined;
836
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
837
+ accessReferences?: ResourceReference[] | undefined;
838
+ rejectVersion?: number | undefined;
839
+ appId?: 0 | undefined;
840
+ approvalProgram: string | Uint8Array;
841
+ clearStateProgram: string | Uint8Array;
842
+ schema?: {
843
+ globalInts: number;
844
+ globalByteSlices: number;
845
+ localInts: number;
846
+ localByteSlices: number;
847
+ } | undefined;
848
+ extraProgramPages?: number | undefined;
849
+ }> | Promise<Transaction> | undefined)[] | undefined;
850
+ }>;
851
+ /** Return params for an ABI call
852
+ * @param params The parameters for the ABI method call
853
+ * @returns The parameters which can be used to create an ABI method call
854
+ */
855
+ call: (params: {
856
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
857
+ rekeyTo?: ReadableAddress | undefined;
858
+ note?: string | Uint8Array | undefined;
859
+ lease?: string | Uint8Array | undefined;
860
+ staticFee?: AlgoAmount | undefined;
861
+ extraFee?: AlgoAmount | undefined;
862
+ maxFee?: AlgoAmount | undefined;
863
+ validityWindow?: number | bigint | undefined;
864
+ firstValidRound?: bigint | undefined;
865
+ lastValidRound?: bigint | undefined;
866
+ onComplete?: OnApplicationComplete | undefined;
867
+ accountReferences?: ReadableAddress[] | undefined;
868
+ appReferences?: bigint[] | undefined;
869
+ assetReferences?: bigint[] | undefined;
870
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
871
+ accessReferences?: ResourceReference[] | undefined;
872
+ rejectVersion?: number | undefined;
873
+ sender?: ReadableAddress | undefined;
874
+ method: string;
875
+ args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
876
+ } & CallOnComplete) => Promise<{
877
+ appId: bigint;
878
+ sender: SendingAddress;
879
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
880
+ rekeyTo?: ReadableAddress | undefined;
881
+ note?: string | Uint8Array | undefined;
882
+ lease?: string | Uint8Array | undefined;
883
+ staticFee?: AlgoAmount | undefined;
884
+ extraFee?: AlgoAmount | undefined;
885
+ maxFee?: AlgoAmount | undefined;
886
+ validityWindow?: number | bigint | undefined;
887
+ firstValidRound?: bigint | undefined;
888
+ lastValidRound?: bigint | undefined;
889
+ onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.DeleteApplication | undefined;
890
+ accountReferences?: ReadableAddress[] | undefined;
891
+ appReferences?: bigint[] | undefined;
892
+ assetReferences?: bigint[] | undefined;
893
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
894
+ accessReferences?: ResourceReference[] | undefined;
895
+ rejectVersion?: number | undefined;
896
+ method: ABIMethod;
897
+ args?: (ABIValue | TransactionWithSigner | Transaction | AppMethodCall<{
898
+ sender: SendingAddress;
899
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
900
+ rekeyTo?: ReadableAddress | undefined;
901
+ note?: string | Uint8Array | undefined;
902
+ lease?: string | Uint8Array | undefined;
903
+ staticFee?: AlgoAmount | undefined;
904
+ extraFee?: AlgoAmount | undefined;
905
+ maxFee?: AlgoAmount | undefined;
906
+ validityWindow?: number | bigint | undefined;
907
+ firstValidRound?: bigint | undefined;
908
+ lastValidRound?: bigint | undefined;
909
+ appId: bigint;
910
+ onComplete?: OnApplicationComplete.UpdateApplication | undefined;
911
+ args?: Uint8Array[] | undefined;
912
+ accountReferences?: ReadableAddress[] | undefined;
913
+ appReferences?: bigint[] | undefined;
914
+ assetReferences?: bigint[] | undefined;
915
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
916
+ accessReferences?: ResourceReference[] | undefined;
917
+ rejectVersion?: number | undefined;
918
+ approvalProgram: string | Uint8Array;
919
+ clearStateProgram: string | Uint8Array;
920
+ }> | AppMethodCall<AppMethodCallParams> | AppMethodCall<{
921
+ sender: SendingAddress;
922
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
923
+ rekeyTo?: ReadableAddress | undefined;
924
+ note?: string | Uint8Array | undefined;
925
+ lease?: string | Uint8Array | undefined;
926
+ staticFee?: AlgoAmount | undefined;
927
+ extraFee?: AlgoAmount | undefined;
928
+ maxFee?: AlgoAmount | undefined;
929
+ validityWindow?: number | bigint | undefined;
930
+ firstValidRound?: bigint | undefined;
931
+ lastValidRound?: bigint | undefined;
932
+ onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
933
+ args?: Uint8Array[] | undefined;
934
+ accountReferences?: ReadableAddress[] | undefined;
935
+ appReferences?: bigint[] | undefined;
936
+ assetReferences?: bigint[] | undefined;
937
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
938
+ accessReferences?: ResourceReference[] | undefined;
939
+ rejectVersion?: number | undefined;
940
+ appId?: 0 | undefined;
941
+ approvalProgram: string | Uint8Array;
942
+ clearStateProgram: string | Uint8Array;
943
+ schema?: {
944
+ globalInts: number;
945
+ globalByteSlices: number;
946
+ localInts: number;
947
+ localByteSlices: number;
948
+ } | undefined;
949
+ extraProgramPages?: number | undefined;
950
+ }> | Promise<Transaction> | undefined)[] | undefined;
951
+ }>;
952
+ } & {
953
+ /** Interact with bare (raw) call parameters */bare: {
954
+ /** Return params for an update call, including deploy-time TEAL template replacements and compilation if provided */
955
+ update: (params?: ({
956
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
957
+ rekeyTo?: ReadableAddress | undefined;
958
+ note?: string | Uint8Array | undefined;
959
+ lease?: string | Uint8Array | undefined;
960
+ staticFee?: AlgoAmount | undefined;
961
+ extraFee?: AlgoAmount | undefined;
962
+ maxFee?: AlgoAmount | undefined;
963
+ validityWindow?: number | bigint | undefined;
964
+ firstValidRound?: bigint | undefined;
965
+ lastValidRound?: bigint | undefined;
966
+ args?: Uint8Array[] | undefined;
967
+ accountReferences?: ReadableAddress[] | undefined;
968
+ appReferences?: bigint[] | undefined;
969
+ assetReferences?: bigint[] | undefined;
970
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
971
+ accessReferences?: ResourceReference[] | undefined;
972
+ rejectVersion?: number | undefined;
973
+ sender?: ReadableAddress | undefined;
974
+ } & AppClientCompilationParams) | undefined) => Promise<{
975
+ sender: SendingAddress;
976
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
977
+ rekeyTo?: ReadableAddress | undefined;
978
+ note?: string | Uint8Array | undefined;
979
+ lease?: string | Uint8Array | undefined;
980
+ staticFee?: AlgoAmount | undefined;
981
+ extraFee?: AlgoAmount | undefined;
982
+ maxFee?: AlgoAmount | undefined;
983
+ validityWindow?: number | bigint | undefined;
984
+ firstValidRound?: bigint | undefined;
985
+ lastValidRound?: bigint | undefined;
986
+ appId: bigint;
987
+ onComplete?: OnApplicationComplete.UpdateApplication | undefined;
988
+ args?: Uint8Array[] | undefined;
989
+ accountReferences?: ReadableAddress[] | undefined;
990
+ appReferences?: bigint[] | undefined;
991
+ assetReferences?: bigint[] | undefined;
992
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
993
+ accessReferences?: ResourceReference[] | undefined;
994
+ rejectVersion?: number | undefined;
995
+ approvalProgram: string | Uint8Array;
996
+ clearStateProgram: string | Uint8Array;
997
+ }>;
998
+ /** Return params for an opt-in call */
999
+ optIn: (params?: {
1000
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
1001
+ rekeyTo?: ReadableAddress | undefined;
1002
+ note?: string | Uint8Array | undefined;
1003
+ lease?: string | Uint8Array | undefined;
1004
+ staticFee?: AlgoAmount | undefined;
1005
+ extraFee?: AlgoAmount | undefined;
1006
+ maxFee?: AlgoAmount | undefined;
1007
+ validityWindow?: number | bigint | undefined;
1008
+ firstValidRound?: bigint | undefined;
1009
+ lastValidRound?: bigint | undefined;
1010
+ args?: Uint8Array[] | undefined;
1011
+ accountReferences?: ReadableAddress[] | undefined;
1012
+ appReferences?: bigint[] | undefined;
1013
+ assetReferences?: bigint[] | undefined;
1014
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1015
+ accessReferences?: ResourceReference[] | undefined;
1016
+ rejectVersion?: number | undefined;
1017
+ sender?: ReadableAddress | undefined;
1018
+ } | undefined) => AppCallParams;
1019
+ /** Return params for a delete call */
1020
+ delete: (params?: {
1021
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
1022
+ rekeyTo?: ReadableAddress | undefined;
1023
+ note?: string | Uint8Array | undefined;
1024
+ lease?: string | Uint8Array | undefined;
1025
+ staticFee?: AlgoAmount | undefined;
1026
+ extraFee?: AlgoAmount | undefined;
1027
+ maxFee?: AlgoAmount | undefined;
1028
+ validityWindow?: number | bigint | undefined;
1029
+ firstValidRound?: bigint | undefined;
1030
+ lastValidRound?: bigint | undefined;
1031
+ args?: Uint8Array[] | undefined;
1032
+ accountReferences?: ReadableAddress[] | undefined;
1033
+ appReferences?: bigint[] | undefined;
1034
+ assetReferences?: bigint[] | undefined;
1035
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1036
+ accessReferences?: ResourceReference[] | undefined;
1037
+ rejectVersion?: number | undefined;
1038
+ sender?: ReadableAddress | undefined;
1039
+ } | undefined) => AppDeleteParams;
1040
+ /** Return params for a clear state call */
1041
+ clearState: (params?: {
1042
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
1043
+ rekeyTo?: ReadableAddress | undefined;
1044
+ note?: string | Uint8Array | undefined;
1045
+ lease?: string | Uint8Array | undefined;
1046
+ staticFee?: AlgoAmount | undefined;
1047
+ extraFee?: AlgoAmount | undefined;
1048
+ maxFee?: AlgoAmount | undefined;
1049
+ validityWindow?: number | bigint | undefined;
1050
+ firstValidRound?: bigint | undefined;
1051
+ lastValidRound?: bigint | undefined;
1052
+ args?: Uint8Array[] | undefined;
1053
+ accountReferences?: ReadableAddress[] | undefined;
1054
+ appReferences?: bigint[] | undefined;
1055
+ assetReferences?: bigint[] | undefined;
1056
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1057
+ accessReferences?: ResourceReference[] | undefined;
1058
+ rejectVersion?: number | undefined;
1059
+ sender?: ReadableAddress | undefined;
1060
+ } | undefined) => AppCallParams;
1061
+ /** Return params for a close out call */
1062
+ closeOut: (params?: {
1063
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
1064
+ rekeyTo?: ReadableAddress | undefined;
1065
+ note?: string | Uint8Array | undefined;
1066
+ lease?: string | Uint8Array | undefined;
1067
+ staticFee?: AlgoAmount | undefined;
1068
+ extraFee?: AlgoAmount | undefined;
1069
+ maxFee?: AlgoAmount | undefined;
1070
+ validityWindow?: number | bigint | undefined;
1071
+ firstValidRound?: bigint | undefined;
1072
+ lastValidRound?: bigint | undefined;
1073
+ args?: Uint8Array[] | undefined;
1074
+ accountReferences?: ReadableAddress[] | undefined;
1075
+ appReferences?: bigint[] | undefined;
1076
+ assetReferences?: bigint[] | undefined;
1077
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1078
+ accessReferences?: ResourceReference[] | undefined;
1079
+ rejectVersion?: number | undefined;
1080
+ sender?: ReadableAddress | undefined;
1081
+ } | undefined) => AppCallParams;
1082
+ /** Return params for a call (defaults to no-op) */
1083
+ call: (params?: ({
1084
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
1085
+ rekeyTo?: ReadableAddress | undefined;
1086
+ note?: string | Uint8Array | undefined;
1087
+ lease?: string | Uint8Array | undefined;
1088
+ staticFee?: AlgoAmount | undefined;
1089
+ extraFee?: AlgoAmount | undefined;
1090
+ maxFee?: AlgoAmount | undefined;
1091
+ validityWindow?: number | bigint | undefined;
1092
+ firstValidRound?: bigint | undefined;
1093
+ lastValidRound?: bigint | undefined;
1094
+ args?: Uint8Array[] | undefined;
1095
+ accountReferences?: ReadableAddress[] | undefined;
1096
+ appReferences?: bigint[] | undefined;
1097
+ assetReferences?: bigint[] | undefined;
1098
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1099
+ accessReferences?: ResourceReference[] | undefined;
1100
+ rejectVersion?: number | undefined;
1101
+ sender?: ReadableAddress | undefined;
1102
+ } & CallOnComplete) | undefined) => AppCallParams;
1103
+ };
1104
+ };
1105
+ /** Create transactions for the current app */
1106
+ get createTransaction(): {
1107
+ /** Return transaction for a payment transaction to fund the app account
1108
+ * @param params The parameters for the fund app account payment transaction
1109
+ * @returns A transaction which can be used to fund the app account
1110
+ */
1111
+ fundAppAccount: (params: {
1112
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
1113
+ rekeyTo?: ReadableAddress | undefined;
1114
+ note?: string | Uint8Array | undefined;
1115
+ lease?: string | Uint8Array | undefined;
1116
+ staticFee?: AlgoAmount | undefined;
1117
+ extraFee?: AlgoAmount | undefined;
1118
+ maxFee?: AlgoAmount | undefined;
1119
+ validityWindow?: number | bigint | undefined;
1120
+ firstValidRound?: bigint | undefined;
1121
+ lastValidRound?: bigint | undefined;
1122
+ amount: AlgoAmount;
1123
+ closeRemainderTo?: ReadableAddress | undefined;
1124
+ maxRoundsToWaitForConfirmation?: number | undefined;
1125
+ suppressLog?: boolean | undefined;
1126
+ populateAppCallResources?: boolean | undefined;
1127
+ coverAppCallInnerTransactionFees?: boolean | undefined;
1128
+ sender?: ReadableAddress | undefined;
1129
+ }) => Promise<Transaction>;
1130
+ /**
1131
+ * Return transactions for an update ABI call, including deploy-time TEAL template replacements and compilation if provided
1132
+ * @param params The parameters for the update ABI method call
1133
+ * @returns The transactions which can be used to create an update ABI method call
1134
+ */
1135
+ update: (params: {
1136
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
1137
+ rekeyTo?: ReadableAddress | undefined;
1138
+ note?: string | Uint8Array | undefined;
1139
+ lease?: string | Uint8Array | undefined;
1140
+ staticFee?: AlgoAmount | undefined;
1141
+ extraFee?: AlgoAmount | undefined;
1142
+ maxFee?: AlgoAmount | undefined;
1143
+ validityWindow?: number | bigint | undefined;
1144
+ firstValidRound?: bigint | undefined;
1145
+ lastValidRound?: bigint | undefined;
1146
+ onComplete?: OnApplicationComplete | undefined;
1147
+ accountReferences?: ReadableAddress[] | undefined;
1148
+ appReferences?: bigint[] | undefined;
1149
+ assetReferences?: bigint[] | undefined;
1150
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1151
+ accessReferences?: ResourceReference[] | undefined;
1152
+ rejectVersion?: number | undefined;
1153
+ sender?: ReadableAddress | undefined;
1154
+ method: string;
1155
+ args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
1156
+ } & AppClientCompilationParams) => Promise<{
1157
+ transactions: Transaction[];
1158
+ methodCalls: Map<number, ABIMethod>;
1159
+ signers: Map<number, TransactionSigner>;
1160
+ }>;
1161
+ /**
1162
+ * Return transactions for an opt-in ABI call
1163
+ * @param params The parameters for the opt-in ABI method call
1164
+ * @returns The transactions which can be used to create an opt-in ABI method call
1165
+ */
1166
+ optIn: (params: {
1167
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
1168
+ rekeyTo?: ReadableAddress | undefined;
1169
+ note?: string | Uint8Array | undefined;
1170
+ lease?: string | Uint8Array | undefined;
1171
+ staticFee?: AlgoAmount | undefined;
1172
+ extraFee?: AlgoAmount | undefined;
1173
+ maxFee?: AlgoAmount | undefined;
1174
+ validityWindow?: number | bigint | undefined;
1175
+ firstValidRound?: bigint | undefined;
1176
+ lastValidRound?: bigint | undefined;
1177
+ onComplete?: OnApplicationComplete | undefined;
1178
+ accountReferences?: ReadableAddress[] | undefined;
1179
+ appReferences?: bigint[] | undefined;
1180
+ assetReferences?: bigint[] | undefined;
1181
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1182
+ accessReferences?: ResourceReference[] | undefined;
1183
+ rejectVersion?: number | undefined;
1184
+ sender?: ReadableAddress | undefined;
1185
+ method: string;
1186
+ args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
1187
+ }) => Promise<{
1188
+ transactions: Transaction[];
1189
+ methodCalls: Map<number, ABIMethod>;
1190
+ signers: Map<number, TransactionSigner>;
1191
+ }>;
1192
+ /**
1193
+ * Return transactions for a delete ABI call
1194
+ * @param params The parameters for the delete ABI method call
1195
+ * @returns The transactions which can be used to create a delete ABI method call
1196
+ */
1197
+ delete: (params: {
1198
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
1199
+ rekeyTo?: ReadableAddress | undefined;
1200
+ note?: string | Uint8Array | undefined;
1201
+ lease?: string | Uint8Array | undefined;
1202
+ staticFee?: AlgoAmount | undefined;
1203
+ extraFee?: AlgoAmount | undefined;
1204
+ maxFee?: AlgoAmount | undefined;
1205
+ validityWindow?: number | bigint | undefined;
1206
+ firstValidRound?: bigint | undefined;
1207
+ lastValidRound?: bigint | undefined;
1208
+ onComplete?: OnApplicationComplete | undefined;
1209
+ accountReferences?: ReadableAddress[] | undefined;
1210
+ appReferences?: bigint[] | undefined;
1211
+ assetReferences?: bigint[] | undefined;
1212
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1213
+ accessReferences?: ResourceReference[] | undefined;
1214
+ rejectVersion?: number | undefined;
1215
+ sender?: ReadableAddress | undefined;
1216
+ method: string;
1217
+ args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
1218
+ }) => Promise<{
1219
+ transactions: Transaction[];
1220
+ methodCalls: Map<number, ABIMethod>;
1221
+ signers: Map<number, TransactionSigner>;
1222
+ }>;
1223
+ /**
1224
+ * Return transactions for a close out ABI call
1225
+ * @param params The parameters for the close out ABI method call
1226
+ * @returns The transactions which can be used to create a close out ABI method call
1227
+ */
1228
+ closeOut: (params: {
1229
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
1230
+ rekeyTo?: ReadableAddress | undefined;
1231
+ note?: string | Uint8Array | undefined;
1232
+ lease?: string | Uint8Array | undefined;
1233
+ staticFee?: AlgoAmount | undefined;
1234
+ extraFee?: AlgoAmount | undefined;
1235
+ maxFee?: AlgoAmount | undefined;
1236
+ validityWindow?: number | bigint | undefined;
1237
+ firstValidRound?: bigint | undefined;
1238
+ lastValidRound?: bigint | undefined;
1239
+ onComplete?: OnApplicationComplete | undefined;
1240
+ accountReferences?: ReadableAddress[] | undefined;
1241
+ appReferences?: bigint[] | undefined;
1242
+ assetReferences?: bigint[] | undefined;
1243
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1244
+ accessReferences?: ResourceReference[] | undefined;
1245
+ rejectVersion?: number | undefined;
1246
+ sender?: ReadableAddress | undefined;
1247
+ method: string;
1248
+ args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
1249
+ }) => Promise<{
1250
+ transactions: Transaction[];
1251
+ methodCalls: Map<number, ABIMethod>;
1252
+ signers: Map<number, TransactionSigner>;
1253
+ }>;
1254
+ /**
1255
+ * Return transactions for an ABI call (defaults to no-op)
1256
+ * @param params The parameters for the ABI method call
1257
+ * @returns The transactions which can be used to create an ABI method call
1258
+ */
1259
+ call: (params: {
1260
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
1261
+ rekeyTo?: ReadableAddress | undefined;
1262
+ note?: string | Uint8Array | undefined;
1263
+ lease?: string | Uint8Array | undefined;
1264
+ staticFee?: AlgoAmount | undefined;
1265
+ extraFee?: AlgoAmount | undefined;
1266
+ maxFee?: AlgoAmount | undefined;
1267
+ validityWindow?: number | bigint | undefined;
1268
+ firstValidRound?: bigint | undefined;
1269
+ lastValidRound?: bigint | undefined;
1270
+ onComplete?: OnApplicationComplete | undefined;
1271
+ accountReferences?: ReadableAddress[] | undefined;
1272
+ appReferences?: bigint[] | undefined;
1273
+ assetReferences?: bigint[] | undefined;
1274
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1275
+ accessReferences?: ResourceReference[] | undefined;
1276
+ rejectVersion?: number | undefined;
1277
+ sender?: ReadableAddress | undefined;
1278
+ method: string;
1279
+ args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
1280
+ } & CallOnComplete) => Promise<{
1281
+ transactions: Transaction[];
1282
+ methodCalls: Map<number, ABIMethod>;
1283
+ signers: Map<number, TransactionSigner>;
1284
+ }>;
1285
+ } & {
1286
+ /** Interact with bare (raw) call transactions */bare: {
1287
+ /** Returns a transaction for an update call, including deploy-time TEAL template replacements and compilation if provided */
1288
+ update: (params?: ({
1289
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
1290
+ rekeyTo?: ReadableAddress | undefined;
1291
+ note?: string | Uint8Array | undefined;
1292
+ lease?: string | Uint8Array | undefined;
1293
+ staticFee?: AlgoAmount | undefined;
1294
+ extraFee?: AlgoAmount | undefined;
1295
+ maxFee?: AlgoAmount | undefined;
1296
+ validityWindow?: number | bigint | undefined;
1297
+ firstValidRound?: bigint | undefined;
1298
+ lastValidRound?: bigint | undefined;
1299
+ args?: Uint8Array[] | undefined;
1300
+ accountReferences?: ReadableAddress[] | undefined;
1301
+ appReferences?: bigint[] | undefined;
1302
+ assetReferences?: bigint[] | undefined;
1303
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1304
+ accessReferences?: ResourceReference[] | undefined;
1305
+ rejectVersion?: number | undefined;
1306
+ sender?: ReadableAddress | undefined;
1307
+ } & AppClientCompilationParams) | undefined) => Promise<Transaction>;
1308
+ /** Returns a transaction for an opt-in call */
1309
+ optIn: (params?: {
1310
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
1311
+ rekeyTo?: ReadableAddress | undefined;
1312
+ note?: string | Uint8Array | undefined;
1313
+ lease?: string | Uint8Array | undefined;
1314
+ staticFee?: AlgoAmount | undefined;
1315
+ extraFee?: AlgoAmount | undefined;
1316
+ maxFee?: AlgoAmount | undefined;
1317
+ validityWindow?: number | bigint | undefined;
1318
+ firstValidRound?: bigint | undefined;
1319
+ lastValidRound?: bigint | undefined;
1320
+ args?: Uint8Array[] | undefined;
1321
+ accountReferences?: ReadableAddress[] | undefined;
1322
+ appReferences?: bigint[] | undefined;
1323
+ assetReferences?: bigint[] | undefined;
1324
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1325
+ accessReferences?: ResourceReference[] | undefined;
1326
+ rejectVersion?: number | undefined;
1327
+ sender?: ReadableAddress | undefined;
1328
+ } | undefined) => Promise<Transaction>;
1329
+ /** Returns a transaction for a delete call */
1330
+ delete: (params?: {
1331
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
1332
+ rekeyTo?: ReadableAddress | undefined;
1333
+ note?: string | Uint8Array | undefined;
1334
+ lease?: string | Uint8Array | undefined;
1335
+ staticFee?: AlgoAmount | undefined;
1336
+ extraFee?: AlgoAmount | undefined;
1337
+ maxFee?: AlgoAmount | undefined;
1338
+ validityWindow?: number | bigint | undefined;
1339
+ firstValidRound?: bigint | undefined;
1340
+ lastValidRound?: bigint | undefined;
1341
+ args?: Uint8Array[] | undefined;
1342
+ accountReferences?: ReadableAddress[] | undefined;
1343
+ appReferences?: bigint[] | undefined;
1344
+ assetReferences?: bigint[] | undefined;
1345
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1346
+ accessReferences?: ResourceReference[] | undefined;
1347
+ rejectVersion?: number | undefined;
1348
+ sender?: ReadableAddress | undefined;
1349
+ } | undefined) => Promise<Transaction>;
1350
+ /** Returns a transaction for a clear state call */
1351
+ clearState: (params?: {
1352
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
1353
+ rekeyTo?: ReadableAddress | undefined;
1354
+ note?: string | Uint8Array | undefined;
1355
+ lease?: string | Uint8Array | undefined;
1356
+ staticFee?: AlgoAmount | undefined;
1357
+ extraFee?: AlgoAmount | undefined;
1358
+ maxFee?: AlgoAmount | undefined;
1359
+ validityWindow?: number | bigint | undefined;
1360
+ firstValidRound?: bigint | undefined;
1361
+ lastValidRound?: bigint | undefined;
1362
+ args?: Uint8Array[] | undefined;
1363
+ accountReferences?: ReadableAddress[] | undefined;
1364
+ appReferences?: bigint[] | undefined;
1365
+ assetReferences?: bigint[] | undefined;
1366
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1367
+ accessReferences?: ResourceReference[] | undefined;
1368
+ rejectVersion?: number | undefined;
1369
+ sender?: ReadableAddress | undefined;
1370
+ } | undefined) => Promise<Transaction>;
1371
+ /** Returns a transaction for a close out call */
1372
+ closeOut: (params?: {
1373
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
1374
+ rekeyTo?: ReadableAddress | undefined;
1375
+ note?: string | Uint8Array | undefined;
1376
+ lease?: string | Uint8Array | undefined;
1377
+ staticFee?: AlgoAmount | undefined;
1378
+ extraFee?: AlgoAmount | undefined;
1379
+ maxFee?: AlgoAmount | undefined;
1380
+ validityWindow?: number | bigint | undefined;
1381
+ firstValidRound?: bigint | undefined;
1382
+ lastValidRound?: bigint | undefined;
1383
+ args?: Uint8Array[] | undefined;
1384
+ accountReferences?: ReadableAddress[] | undefined;
1385
+ appReferences?: bigint[] | undefined;
1386
+ assetReferences?: bigint[] | undefined;
1387
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1388
+ accessReferences?: ResourceReference[] | undefined;
1389
+ rejectVersion?: number | undefined;
1390
+ sender?: ReadableAddress | undefined;
1391
+ } | undefined) => Promise<Transaction>;
1392
+ /** Returns a transaction for a call (defaults to no-op) */
1393
+ call: (params?: ({
1394
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
1395
+ rekeyTo?: ReadableAddress | undefined;
1396
+ note?: string | Uint8Array | undefined;
1397
+ lease?: string | Uint8Array | undefined;
1398
+ staticFee?: AlgoAmount | undefined;
1399
+ extraFee?: AlgoAmount | undefined;
1400
+ maxFee?: AlgoAmount | undefined;
1401
+ validityWindow?: number | bigint | undefined;
1402
+ firstValidRound?: bigint | undefined;
1403
+ lastValidRound?: bigint | undefined;
1404
+ args?: Uint8Array[] | undefined;
1405
+ accountReferences?: ReadableAddress[] | undefined;
1406
+ appReferences?: bigint[] | undefined;
1407
+ assetReferences?: bigint[] | undefined;
1408
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1409
+ accessReferences?: ResourceReference[] | undefined;
1410
+ rejectVersion?: number | undefined;
1411
+ sender?: ReadableAddress | undefined;
1412
+ } & CallOnComplete) | undefined) => Promise<Transaction>;
1413
+ };
1414
+ };
1415
+ /** Send transactions to the current app */
1416
+ get send(): {
1417
+ /** Sign and send transactions for a payment transaction to fund the app account
1418
+ * @param params The parameters for the fund app account payment transaction
1419
+ * @returns The result of send the fund app account payment transaction
1420
+ */
1421
+ fundAppAccount: (params: {
1422
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
1423
+ rekeyTo?: ReadableAddress | undefined;
1424
+ note?: string | Uint8Array | undefined;
1425
+ lease?: string | Uint8Array | undefined;
1426
+ staticFee?: AlgoAmount | undefined;
1427
+ extraFee?: AlgoAmount | undefined;
1428
+ maxFee?: AlgoAmount | undefined;
1429
+ validityWindow?: number | bigint | undefined;
1430
+ firstValidRound?: bigint | undefined;
1431
+ lastValidRound?: bigint | undefined;
1432
+ amount: AlgoAmount;
1433
+ closeRemainderTo?: ReadableAddress | undefined;
1434
+ maxRoundsToWaitForConfirmation?: number | undefined;
1435
+ suppressLog?: boolean | undefined;
1436
+ populateAppCallResources?: boolean | undefined;
1437
+ coverAppCallInnerTransactionFees?: boolean | undefined;
1438
+ sender?: ReadableAddress | undefined;
1439
+ } & SendParams) => Promise<{
1440
+ groupId: string | undefined;
1441
+ txIds: string[];
1442
+ returns?: ABIReturn[] | undefined;
1443
+ confirmations: PendingTransactionResponse[];
1444
+ transactions: Transaction[];
1445
+ confirmation: PendingTransactionResponse;
1446
+ transaction: Transaction;
1447
+ }>;
1448
+ /**
1449
+ * Sign and send transactions for an update ABI call, including deploy-time TEAL template replacements and compilation if provided
1450
+ * @param params The parameters for the update ABI method call
1451
+ * @returns The result of sending the update ABI method call
1452
+ */
1453
+ update: (params: {
1454
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
1455
+ rekeyTo?: ReadableAddress | undefined;
1456
+ note?: string | Uint8Array | undefined;
1457
+ lease?: string | Uint8Array | undefined;
1458
+ staticFee?: AlgoAmount | undefined;
1459
+ extraFee?: AlgoAmount | undefined;
1460
+ maxFee?: AlgoAmount | undefined;
1461
+ validityWindow?: number | bigint | undefined;
1462
+ firstValidRound?: bigint | undefined;
1463
+ lastValidRound?: bigint | undefined;
1464
+ onComplete?: OnApplicationComplete | undefined;
1465
+ accountReferences?: ReadableAddress[] | undefined;
1466
+ appReferences?: bigint[] | undefined;
1467
+ assetReferences?: bigint[] | undefined;
1468
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1469
+ accessReferences?: ResourceReference[] | undefined;
1470
+ rejectVersion?: number | undefined;
1471
+ sender?: ReadableAddress | undefined;
1472
+ method: string;
1473
+ args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
1474
+ } & AppClientCompilationParams & SendParams) => Promise<{
1475
+ compiledApproval?: CompiledTeal | undefined;
1476
+ compiledClear?: CompiledTeal | undefined;
1477
+ confirmations: PendingTransactionResponse[];
1478
+ transactions: Transaction[];
1479
+ groupId: string | undefined;
1480
+ txIds: string[];
1481
+ returns?: ABIReturn[] | undefined;
1482
+ confirmation: PendingTransactionResponse;
1483
+ transaction: Transaction;
1484
+ return?: ABIValue | undefined;
1485
+ }>;
1486
+ /**
1487
+ * Sign and send transactions for an opt-in ABI call
1488
+ * @param params The parameters for the opt-in ABI method call
1489
+ * @returns The result of sending the opt-in ABI method call
1490
+ */
1491
+ optIn: (params: {
1492
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
1493
+ rekeyTo?: ReadableAddress | undefined;
1494
+ note?: string | Uint8Array | undefined;
1495
+ lease?: string | Uint8Array | undefined;
1496
+ staticFee?: AlgoAmount | undefined;
1497
+ extraFee?: AlgoAmount | undefined;
1498
+ maxFee?: AlgoAmount | undefined;
1499
+ validityWindow?: number | bigint | undefined;
1500
+ firstValidRound?: bigint | undefined;
1501
+ lastValidRound?: bigint | undefined;
1502
+ onComplete?: OnApplicationComplete | undefined;
1503
+ accountReferences?: ReadableAddress[] | undefined;
1504
+ appReferences?: bigint[] | undefined;
1505
+ assetReferences?: bigint[] | undefined;
1506
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1507
+ accessReferences?: ResourceReference[] | undefined;
1508
+ rejectVersion?: number | undefined;
1509
+ sender?: ReadableAddress | undefined;
1510
+ method: string;
1511
+ args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
1512
+ } & SendParams) => Promise<Omit<{
1513
+ groupId: string | undefined;
1514
+ txIds: string[];
1515
+ returns?: ABIReturn[] | undefined;
1516
+ confirmations: PendingTransactionResponse[];
1517
+ transactions: Transaction[];
1518
+ confirmation: PendingTransactionResponse;
1519
+ transaction: Transaction;
1520
+ return?: ABIReturn | undefined;
1521
+ }, "return"> & AppReturn<ABIValue | undefined>>;
1522
+ /**
1523
+ * Sign and send transactions for a delete ABI call
1524
+ * @param params The parameters for the delete ABI method call
1525
+ * @returns The result of sending the delete ABI method call
1526
+ */
1527
+ delete: (params: {
1528
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
1529
+ rekeyTo?: ReadableAddress | undefined;
1530
+ note?: string | Uint8Array | undefined;
1531
+ lease?: string | Uint8Array | undefined;
1532
+ staticFee?: AlgoAmount | undefined;
1533
+ extraFee?: AlgoAmount | undefined;
1534
+ maxFee?: AlgoAmount | undefined;
1535
+ validityWindow?: number | bigint | undefined;
1536
+ firstValidRound?: bigint | undefined;
1537
+ lastValidRound?: bigint | undefined;
1538
+ onComplete?: OnApplicationComplete | undefined;
1539
+ accountReferences?: ReadableAddress[] | undefined;
1540
+ appReferences?: bigint[] | undefined;
1541
+ assetReferences?: bigint[] | undefined;
1542
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1543
+ accessReferences?: ResourceReference[] | undefined;
1544
+ rejectVersion?: number | undefined;
1545
+ sender?: ReadableAddress | undefined;
1546
+ method: string;
1547
+ args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
1548
+ } & SendParams) => Promise<Omit<{
1549
+ groupId: string | undefined;
1550
+ txIds: string[];
1551
+ returns?: ABIReturn[] | undefined;
1552
+ confirmations: PendingTransactionResponse[];
1553
+ transactions: Transaction[];
1554
+ confirmation: PendingTransactionResponse;
1555
+ transaction: Transaction;
1556
+ return?: ABIReturn | undefined;
1557
+ }, "return"> & AppReturn<ABIValue | undefined>>;
1558
+ /**
1559
+ * Sign and send transactions for a close out ABI call
1560
+ * @param params The parameters for the close out ABI method call
1561
+ * @returns The result of sending the close out ABI method call
1562
+ */
1563
+ closeOut: (params: {
1564
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
1565
+ rekeyTo?: ReadableAddress | undefined;
1566
+ note?: string | Uint8Array | undefined;
1567
+ lease?: string | Uint8Array | undefined;
1568
+ staticFee?: AlgoAmount | undefined;
1569
+ extraFee?: AlgoAmount | undefined;
1570
+ maxFee?: AlgoAmount | undefined;
1571
+ validityWindow?: number | bigint | undefined;
1572
+ firstValidRound?: bigint | undefined;
1573
+ lastValidRound?: bigint | undefined;
1574
+ onComplete?: OnApplicationComplete | undefined;
1575
+ accountReferences?: ReadableAddress[] | undefined;
1576
+ appReferences?: bigint[] | undefined;
1577
+ assetReferences?: bigint[] | undefined;
1578
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1579
+ accessReferences?: ResourceReference[] | undefined;
1580
+ rejectVersion?: number | undefined;
1581
+ sender?: ReadableAddress | undefined;
1582
+ method: string;
1583
+ args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
1584
+ } & SendParams) => Promise<Omit<{
1585
+ groupId: string | undefined;
1586
+ txIds: string[];
1587
+ returns?: ABIReturn[] | undefined;
1588
+ confirmations: PendingTransactionResponse[];
1589
+ transactions: Transaction[];
1590
+ confirmation: PendingTransactionResponse;
1591
+ transaction: Transaction;
1592
+ return?: ABIReturn | undefined;
1593
+ }, "return"> & AppReturn<ABIValue | undefined>>;
1594
+ /**
1595
+ * Sign and send transactions for a call (defaults to no-op)
1596
+ * @param params The parameters for the ABI method call
1597
+ * @returns The result of sending the ABI method call
1598
+ */
1599
+ call: (params: {
1600
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
1601
+ rekeyTo?: ReadableAddress | undefined;
1602
+ note?: string | Uint8Array | undefined;
1603
+ lease?: string | Uint8Array | undefined;
1604
+ staticFee?: AlgoAmount | undefined;
1605
+ extraFee?: AlgoAmount | undefined;
1606
+ maxFee?: AlgoAmount | undefined;
1607
+ validityWindow?: number | bigint | undefined;
1608
+ firstValidRound?: bigint | undefined;
1609
+ lastValidRound?: bigint | undefined;
1610
+ onComplete?: OnApplicationComplete | undefined;
1611
+ accountReferences?: ReadableAddress[] | undefined;
1612
+ appReferences?: bigint[] | undefined;
1613
+ assetReferences?: bigint[] | undefined;
1614
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1615
+ accessReferences?: ResourceReference[] | undefined;
1616
+ rejectVersion?: number | undefined;
1617
+ sender?: ReadableAddress | undefined;
1618
+ method: string;
1619
+ args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
1620
+ } & CallOnComplete & SendParams) => Promise<Omit<{
1621
+ groupId: string | undefined;
1622
+ txIds: string[];
1623
+ returns?: ABIReturn[] | undefined;
1624
+ confirmations: PendingTransactionResponse[];
1625
+ transactions: Transaction[];
1626
+ confirmation: PendingTransactionResponse;
1627
+ transaction: Transaction;
1628
+ return?: ABIReturn | undefined;
1629
+ }, "return"> & AppReturn<ABIValue | undefined>>;
1630
+ } & {
1631
+ /** Interact with bare (raw) calls */bare: {
1632
+ /** Signs and sends an update call, including deploy-time TEAL template replacements and compilation if provided */
1633
+ update: (params?: ({
1634
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
1635
+ rekeyTo?: ReadableAddress | undefined;
1636
+ note?: string | Uint8Array | undefined;
1637
+ lease?: string | Uint8Array | undefined;
1638
+ staticFee?: AlgoAmount | undefined;
1639
+ extraFee?: AlgoAmount | undefined;
1640
+ maxFee?: AlgoAmount | undefined;
1641
+ validityWindow?: number | bigint | undefined;
1642
+ firstValidRound?: bigint | undefined;
1643
+ lastValidRound?: bigint | undefined;
1644
+ args?: Uint8Array[] | undefined;
1645
+ accountReferences?: ReadableAddress[] | undefined;
1646
+ appReferences?: bigint[] | undefined;
1647
+ assetReferences?: bigint[] | undefined;
1648
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1649
+ accessReferences?: ResourceReference[] | undefined;
1650
+ rejectVersion?: number | undefined;
1651
+ sender?: ReadableAddress | undefined;
1652
+ } & AppClientCompilationParams & SendParams) | undefined) => Promise<{
1653
+ compiledApproval?: CompiledTeal | undefined;
1654
+ compiledClear?: CompiledTeal | undefined;
1655
+ groupId: string | undefined;
1656
+ txIds: string[];
1657
+ returns?: ABIReturn[] | undefined;
1658
+ confirmations: PendingTransactionResponse[];
1659
+ transactions: Transaction[];
1660
+ confirmation: PendingTransactionResponse;
1661
+ transaction: Transaction;
1662
+ return?: ABIReturn | undefined;
1663
+ }>;
1664
+ /** Signs and sends an opt-in call */
1665
+ optIn: (params?: ({
1666
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
1667
+ rekeyTo?: ReadableAddress | undefined;
1668
+ note?: string | Uint8Array | undefined;
1669
+ lease?: string | Uint8Array | undefined;
1670
+ staticFee?: AlgoAmount | undefined;
1671
+ extraFee?: AlgoAmount | undefined;
1672
+ maxFee?: AlgoAmount | undefined;
1673
+ validityWindow?: number | bigint | undefined;
1674
+ firstValidRound?: bigint | undefined;
1675
+ lastValidRound?: bigint | undefined;
1676
+ args?: Uint8Array[] | undefined;
1677
+ accountReferences?: ReadableAddress[] | undefined;
1678
+ appReferences?: bigint[] | undefined;
1679
+ assetReferences?: bigint[] | undefined;
1680
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1681
+ accessReferences?: ResourceReference[] | undefined;
1682
+ rejectVersion?: number | undefined;
1683
+ sender?: ReadableAddress | undefined;
1684
+ } & SendParams) | undefined) => Promise<{
1685
+ groupId: string | undefined;
1686
+ txIds: string[];
1687
+ returns?: ABIReturn[] | undefined;
1688
+ confirmations: PendingTransactionResponse[];
1689
+ transactions: Transaction[];
1690
+ confirmation: PendingTransactionResponse;
1691
+ transaction: Transaction;
1692
+ return?: ABIReturn | undefined;
1693
+ }>;
1694
+ /** Signs and sends a delete call */
1695
+ delete: (params?: ({
1696
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
1697
+ rekeyTo?: ReadableAddress | undefined;
1698
+ note?: string | Uint8Array | undefined;
1699
+ lease?: string | Uint8Array | undefined;
1700
+ staticFee?: AlgoAmount | undefined;
1701
+ extraFee?: AlgoAmount | undefined;
1702
+ maxFee?: AlgoAmount | undefined;
1703
+ validityWindow?: number | bigint | undefined;
1704
+ firstValidRound?: bigint | undefined;
1705
+ lastValidRound?: bigint | undefined;
1706
+ args?: Uint8Array[] | undefined;
1707
+ accountReferences?: ReadableAddress[] | undefined;
1708
+ appReferences?: bigint[] | undefined;
1709
+ assetReferences?: bigint[] | undefined;
1710
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1711
+ accessReferences?: ResourceReference[] | undefined;
1712
+ rejectVersion?: number | undefined;
1713
+ sender?: ReadableAddress | undefined;
1714
+ } & SendParams) | undefined) => Promise<{
1715
+ groupId: string | undefined;
1716
+ txIds: string[];
1717
+ returns?: ABIReturn[] | undefined;
1718
+ confirmations: PendingTransactionResponse[];
1719
+ transactions: Transaction[];
1720
+ confirmation: PendingTransactionResponse;
1721
+ transaction: Transaction;
1722
+ return?: ABIReturn | undefined;
1723
+ }>;
1724
+ /** Signs and sends a clear state call */
1725
+ clearState: (params?: ({
1726
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
1727
+ rekeyTo?: ReadableAddress | undefined;
1728
+ note?: string | Uint8Array | undefined;
1729
+ lease?: string | Uint8Array | undefined;
1730
+ staticFee?: AlgoAmount | undefined;
1731
+ extraFee?: AlgoAmount | undefined;
1732
+ maxFee?: AlgoAmount | undefined;
1733
+ validityWindow?: number | bigint | undefined;
1734
+ firstValidRound?: bigint | undefined;
1735
+ lastValidRound?: bigint | undefined;
1736
+ args?: Uint8Array[] | undefined;
1737
+ accountReferences?: ReadableAddress[] | undefined;
1738
+ appReferences?: bigint[] | undefined;
1739
+ assetReferences?: bigint[] | undefined;
1740
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1741
+ accessReferences?: ResourceReference[] | undefined;
1742
+ rejectVersion?: number | undefined;
1743
+ sender?: ReadableAddress | undefined;
1744
+ } & SendParams) | undefined) => Promise<{
1745
+ groupId: string | undefined;
1746
+ txIds: string[];
1747
+ returns?: ABIReturn[] | undefined;
1748
+ confirmations: PendingTransactionResponse[];
1749
+ transactions: Transaction[];
1750
+ confirmation: PendingTransactionResponse;
1751
+ transaction: Transaction;
1752
+ return?: ABIReturn | undefined;
1753
+ }>;
1754
+ /** Signs and sends a close out call */
1755
+ closeOut: (params?: ({
1756
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
1757
+ rekeyTo?: ReadableAddress | undefined;
1758
+ note?: string | Uint8Array | undefined;
1759
+ lease?: string | Uint8Array | undefined;
1760
+ staticFee?: AlgoAmount | undefined;
1761
+ extraFee?: AlgoAmount | undefined;
1762
+ maxFee?: AlgoAmount | undefined;
1763
+ validityWindow?: number | bigint | undefined;
1764
+ firstValidRound?: bigint | undefined;
1765
+ lastValidRound?: bigint | undefined;
1766
+ args?: Uint8Array[] | undefined;
1767
+ accountReferences?: ReadableAddress[] | undefined;
1768
+ appReferences?: bigint[] | undefined;
1769
+ assetReferences?: bigint[] | undefined;
1770
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1771
+ accessReferences?: ResourceReference[] | undefined;
1772
+ rejectVersion?: number | undefined;
1773
+ sender?: ReadableAddress | undefined;
1774
+ } & SendParams) | undefined) => Promise<{
1775
+ groupId: string | undefined;
1776
+ txIds: string[];
1777
+ returns?: ABIReturn[] | undefined;
1778
+ confirmations: PendingTransactionResponse[];
1779
+ transactions: Transaction[];
1780
+ confirmation: PendingTransactionResponse;
1781
+ transaction: Transaction;
1782
+ return?: ABIReturn | undefined;
1783
+ }>;
1784
+ /** Signs and sends a call (defaults to no-op) */
1785
+ call: (params?: ({
1786
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
1787
+ rekeyTo?: ReadableAddress | undefined;
1788
+ note?: string | Uint8Array | undefined;
1789
+ lease?: string | Uint8Array | undefined;
1790
+ staticFee?: AlgoAmount | undefined;
1791
+ extraFee?: AlgoAmount | undefined;
1792
+ maxFee?: AlgoAmount | undefined;
1793
+ validityWindow?: number | bigint | undefined;
1794
+ firstValidRound?: bigint | undefined;
1795
+ lastValidRound?: bigint | undefined;
1796
+ args?: Uint8Array[] | undefined;
1797
+ accountReferences?: ReadableAddress[] | undefined;
1798
+ appReferences?: bigint[] | undefined;
1799
+ assetReferences?: bigint[] | undefined;
1800
+ boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
1801
+ accessReferences?: ResourceReference[] | undefined;
1802
+ rejectVersion?: number | undefined;
1803
+ sender?: ReadableAddress | undefined;
1804
+ } & CallOnComplete & SendParams) | undefined) => Promise<{
1805
+ groupId: string | undefined;
1806
+ txIds: string[];
1807
+ returns?: ABIReturn[] | undefined;
1808
+ confirmations: PendingTransactionResponse[];
1809
+ transactions: Transaction[];
1810
+ confirmation: PendingTransactionResponse;
1811
+ transaction: Transaction;
1812
+ return?: ABIReturn | undefined;
1813
+ }>;
1814
+ };
1815
+ };
1816
+ /** Get state (local, global, box) from the current app */
1817
+ get state(): {
1818
+ /**
1819
+ * Methods to access local state for the current app
1820
+ * @param address The address of the account to get the local state for
1821
+ */
1822
+ local: (address: ReadableAddress) => {
1823
+ /**
1824
+ * Returns all single-key state values in a record keyed by the key name and the value a decoded ABI value.
1825
+ */
1826
+ getAll: () => Promise<Record<string, any>>;
1827
+ /**
1828
+ * Returns a single state value for the current app with the value a decoded ABI value.
1829
+ * @param name The name of the state value to retrieve the value for
1830
+ * @param appState Optional cached value of the current state
1831
+ * @returns
1832
+ */
1833
+ getValue: (name: string, appState?: AppState | undefined) => Promise<ABIValue | undefined>;
1834
+ /**
1835
+ * Returns a single value from the given map for the current app with the value a decoded ABI value.
1836
+ * @param mapName The name of the map to read from
1837
+ * @param key The key within the map (without any map prefix) as either a Buffer with the bytes or a value
1838
+ * that will be converted to bytes by encoding it using the specified ABI key type
1839
+ * in the ARC-56 spec
1840
+ * @param appState Optional cached value of the current state
1841
+ */
1842
+ getMapValue: (mapName: string, key: any, appState?: AppState | undefined) => Promise<ABIValue | undefined>;
1843
+ /**
1844
+ * Returns all map values for the given map.
1845
+ * @param mapName The name of the map to read from
1846
+ * @param appState Optional cached value of the current state
1847
+ * @returns A map of all key-value pairs in the map as a `Record<string, ABIValue>`
1848
+ */
1849
+ getMap: (mapName: string) => Promise<Map<ABIValue, ABIValue>>;
1850
+ };
1851
+ /**
1852
+ * Methods to access global state for the current app
1853
+ */
1854
+ global: {
1855
+ /**
1856
+ * Returns all single-key state values in a record keyed by the key name and the value a decoded ABI value.
1857
+ */
1858
+ getAll: () => Promise<Record<string, any>>;
1859
+ /**
1860
+ * Returns a single state value for the current app with the value a decoded ABI value.
1861
+ * @param name The name of the state value to retrieve the value for
1862
+ * @param appState Optional cached value of the current state
1863
+ * @returns
1864
+ */
1865
+ getValue: (name: string, appState?: AppState | undefined) => Promise<ABIValue | undefined>;
1866
+ /**
1867
+ * Returns a single value from the given map for the current app with the value a decoded ABI value.
1868
+ * @param mapName The name of the map to read from
1869
+ * @param key The key within the map (without any map prefix) as either a Buffer with the bytes or a value
1870
+ * that will be converted to bytes by encoding it using the specified ABI key type
1871
+ * in the ARC-56 spec
1872
+ * @param appState Optional cached value of the current state
1873
+ */
1874
+ getMapValue: (mapName: string, key: any, appState?: AppState | undefined) => Promise<ABIValue | undefined>;
1875
+ /**
1876
+ * Returns all map values for the given map.
1877
+ * @param mapName The name of the map to read from
1878
+ * @param appState Optional cached value of the current state
1879
+ * @returns A map of all key-value pairs in the map as a `Record<string, ABIValue>`
1880
+ */
1881
+ getMap: (mapName: string) => Promise<Map<ABIValue, ABIValue>>;
1882
+ };
1883
+ /**
1884
+ * Methods to access box storage for the current app
1885
+ */
1886
+ box: {
1887
+ /**
1888
+ * Returns all single-key state values in a record keyed by the key name and the value a decoded ABI value.
1889
+ */
1890
+ getAll: () => Promise<Record<string, any>>;
1891
+ /**
1892
+ * Returns a single state value for the current app with the value a decoded ABI value.
1893
+ * @param name The name of the state value to retrieve the value for
1894
+ * @returns
1895
+ */
1896
+ getValue: (name: string) => Promise<ABIValue>;
1897
+ /**
1898
+ *
1899
+ * @param mapName The name of the map to read from
1900
+ * @param key The key within the map (without any map prefix) as either a Buffer with the bytes or a value
1901
+ * that will be converted to bytes by encoding it using the specified ABI key type
1902
+ * in the ARC-56 spec
1903
+ */
1904
+ getMapValue: (mapName: string, key: any) => Promise<ABIValue>;
1905
+ /**
1906
+ *
1907
+ * @param mapName The name of the map to read from
1908
+ * @param key The key within the map as either a Buffer with the bytes or a value
1909
+ * that will be converted to bytes by encoding it using the specified ABI key type
1910
+ * in the ARC-56 spec
1911
+ * @param appState
1912
+ */
1913
+ getMap: (mapName: string) => Promise<Map<ABIValue, ABIValue>>;
1914
+ };
1915
+ };
1916
+ /**
1917
+ * Funds Algo into the app account for this app.
1918
+ *
1919
+ * An alias for `appClient.send.fundAppAccount(params)`.
1920
+ * @param params The parameters for the funding transaction
1921
+ * @returns The result of the funding
1922
+ * @example
1923
+ * ```typescript
1924
+ * await appClient.fundAppAccount({ amount: algo(1) })
1925
+ * ```
1926
+ */
1927
+ fundAppAccount(params: FundAppParams): Promise<{
1928
+ groupId: string | undefined;
1929
+ txIds: string[];
1930
+ returns?: ABIReturn[] | undefined;
1931
+ confirmations: PendingTransactionResponse[];
1932
+ transactions: Transaction[];
1933
+ confirmation: PendingTransactionResponse;
1934
+ transaction: Transaction;
1935
+ }>;
1936
+ /**
1937
+ * Returns raw global state for the current app.
1938
+ * @returns The global state
1939
+ * @example
1940
+ * ```typescript
1941
+ * const globalState = await appClient.getGlobalState()
1942
+ * ```
1943
+ */
1944
+ getGlobalState(): Promise<AppState>;
1945
+ /**
1946
+ * Returns raw local state for the given account address.
1947
+ * @param address The address of the account to get the local state for
1948
+ * @returns The local state
1949
+ * @example
1950
+ * ```typescript
1951
+ * const localState = await appClient.getLocalState('ACCOUNT_ADDRESS')
1952
+ * ```
1953
+ */
1954
+ getLocalState(address: ReadableAddress): Promise<AppState>;
1955
+ /**
1956
+ * Returns the names of all current boxes for the current app.
1957
+ * @returns The names of the boxes
1958
+ * @example
1959
+ * ```typescript
1960
+ * const boxNames = await appClient.getBoxNames()
1961
+ * ```
1962
+ */
1963
+ getBoxNames(): Promise<BoxName[]>;
1964
+ /**
1965
+ * Returns the value of the given box for the current app.
1966
+ * @param name The identifier of the box to return
1967
+ * @returns The current box value as a byte array
1968
+ * @example
1969
+ * ```typescript
1970
+ * const boxValue = await appClient.getBoxValue('boxName')
1971
+ * ```
1972
+ */
1973
+ getBoxValue(name: BoxIdentifier): Promise<Uint8Array>;
1974
+ /**
1975
+ * Returns the value of the given box for the current app.
1976
+ * @param name The identifier of the box to return
1977
+ * @param type
1978
+ * @returns The current box value as a byte array
1979
+ * @example
1980
+ * ```typescript
1981
+ * const boxValue = await appClient.getBoxValueFromABIType('boxName', new ABIUintType(32))
1982
+ * ```
1983
+ */
1984
+ getBoxValueFromABIType(name: BoxIdentifier, type: ABIType): Promise<ABIValue>;
1985
+ /**
1986
+ * Returns the values of all current boxes for the current app.
1987
+ * Note: This will issue multiple HTTP requests (one per box) and it's not an atomic operation so values may be out of sync.
1988
+ * @param filter Optional filter to filter which boxes' values are returned
1989
+ * @returns The (name, value) pair of the boxes with values as raw byte arrays
1990
+ * @example
1991
+ * ```typescript
1992
+ * const boxValues = await appClient.getBoxValues()
1993
+ * ```
1994
+ */
1995
+ getBoxValues(filter?: (name: BoxName) => boolean): Promise<{
1996
+ name: BoxName;
1997
+ value: Uint8Array;
1998
+ }[]>;
1999
+ /**
2000
+ * Returns the values of all current boxes for the current app decoded using an ABI Type.
2001
+ * Note: This will issue multiple HTTP requests (one per box) and it's not an atomic operation so values may be out of sync.
2002
+ * @param type The ABI type to decode the values with
2003
+ * @param filter Optional filter to filter which boxes' values are returned
2004
+ * @returns The (name, value) pair of the boxes with values as the ABI Value
2005
+ * @example
2006
+ * ```typescript
2007
+ * const boxValues = await appClient.getBoxValuesFromABIType(new ABIUintType(32))
2008
+ * ```
2009
+ */
2010
+ getBoxValuesFromABIType(type: ABIType, filter?: (name: BoxName) => boolean): Promise<{
2011
+ name: BoxName;
2012
+ value: ABIValue;
2013
+ }[]>;
2014
+ /**
2015
+ * Takes an error that may include a logic error from a call to the current app and re-exposes the
2016
+ * error to include source code information via the source map and ARC-56 spec.
2017
+ * @param e The error to parse
2018
+ * @param isClearStateProgram Whether or not the code was running the clear state program (defaults to approval program)
2019
+ * @returns The new error, or if there was no logic error or source map then the wrapped error with source details
2020
+ */
2021
+ exposeLogicError(e: Error, isClearStateProgram?: boolean): Promise<Error>;
2022
+ /**
2023
+ * Export the current source maps for the app.
2024
+ * @returns The source maps
2025
+ */
2026
+ exportSourceMaps(): AppSourceMaps;
2027
+ /**
2028
+ * Import source maps for the app.
2029
+ * @param sourceMaps The source maps to import
2030
+ */
2031
+ importSourceMaps(sourceMaps: AppSourceMaps): void;
2032
+ /**
2033
+ * Returns the ABI Method spec for the given method string for the app represented by this application client instance
2034
+ * @param methodNameOrSignature The method name or method signature to call if an ABI call is being emitted.
2035
+ * e.g. `my_method` or `my_method(unit64,string)bytes`
2036
+ * @returns A tuple with: [ARC-56 `Method`, algosdk `ABIMethod`]
2037
+ */
2038
+ getABIMethod(methodNameOrSignature: string): ABIMethod;
2039
+ /**
2040
+ * Checks for decode errors on the SendAppTransactionResult and maps the return value to the specified type
2041
+ * on the ARC-56 method, replacing the `return` property with the decoded type.
2042
+ *
2043
+ * If the return type is an ARC-56 struct then the struct will be returned.
2044
+ *
2045
+ * @param result The SendAppTransactionResult to be mapped
2046
+ * @param method The method that was called
2047
+ * @returns The smart contract response with an updated return value
2048
+ */
2049
+ processMethodCallReturn<TReturn extends ABIValue | undefined, TResult extends SendAppTransactionResult = SendAppTransactionResult>(result: Promise<TResult> | TResult): Promise<Omit<TResult, 'return'> & AppReturn<TReturn>>;
2050
+ /**
2051
+ * Compiles the approval and clear state programs (if TEAL templates provided),
2052
+ * performing any provided deploy-time parameter replacement and stores
2053
+ * the source maps.
2054
+ *
2055
+ * If no TEAL templates provided it will use any byte code provided in the app spec.
2056
+ *
2057
+ * Will store any generated source maps for later use in debugging.
2058
+ * @param compilation Any compilation parameters to use
2059
+ * @returns The compiled code and any compilation results (including source maps)
2060
+ */
2061
+ compile(compilation?: AppClientCompilationParams): Promise<AppClientCompilationResult>;
2062
+ /**
2063
+ * Takes an error that may include a logic error from a call to the current app and re-exposes the
2064
+ * error to include source code information via the source map and ARC-56 spec.
2065
+ * @param e The error to parse
2066
+ * @param appSpec The app spec for the app
2067
+ * @param details Additional information to inform the error
2068
+ * @returns The new error, or if there was no logic error or source map then the wrapped error with source details
2069
+ */
2070
+ static exposeLogicError(e: Error, appSpec: Arc56Contract, details: {
2071
+ /** Whether or not the code was running the clear state program (defaults to approval program) */isClearStateProgram?: boolean;
2072
+ /** Approval program source map */
2073
+ approvalSourceMap?: ProgramSourceMap;
2074
+ /** Clear state program source map */
2075
+ clearSourceMap?: ProgramSourceMap;
2076
+ /** program bytes */
2077
+ program?: Uint8Array;
2078
+ /** ARC56 approval source info */
2079
+ approvalSourceInfo?: ProgramSourceInfo;
2080
+ /** ARC56 clear source info */
2081
+ clearSourceInfo?: ProgramSourceInfo;
2082
+ }): Error;
2083
+ /**
2084
+ * Compiles the approval and clear state programs (if TEAL templates provided),
2085
+ * performing any provided deploy-time parameter replacement and returns
2086
+ * the compiled code and any compilation results (including source maps).
2087
+ *
2088
+ * If no TEAL templates provided it will use any byte code provided in the app spec.
2089
+ *
2090
+ * Will store any generated source maps for later use in debugging.
2091
+ * @param appSpec The app spec for the app
2092
+ * @param appManager The app manager to use for compilation
2093
+ * @param compilation Any compilation parameters to use
2094
+ * @returns The compiled code and any compilation results (including source maps)
2095
+ */
2096
+ static compile(appSpec: Arc56Contract, appManager: AppManager, compilation?: AppClientCompilationParams): Promise<AppClientCompilationResult>;
2097
+ /**
2098
+ * Returns ABI method arguments ready for a method call params object with default values populated
2099
+ * and structs replaced with tuples.
2100
+ *
2101
+ * It does this by replacing any `undefined` values with the equivalent default value from the given ARC-56 app spec.
2102
+ * @param methodNameOrSignature The method name or method signature to call if an ABI call is being emitted.
2103
+ * e.g. `my_method` or `my_method(unit64,string)bytes`
2104
+ * @param args The arguments to the method with `undefined` for any that should be populated with a default value
2105
+ */
2106
+ private getABIArgsWithDefaultValues;
2107
+ private getDefaultValueFromStorage;
2108
+ private getBareParamsMethods;
2109
+ private getBareCreateTransactionMethods;
2110
+ private getBareSendMethods;
2111
+ private getMethodCallParamsMethods;
2112
+ private getMethodCallSendMethods;
2113
+ private getMethodCallCreateTransactionMethods;
2114
+ /** Returns the sender for a call, using the provided sender or using the `defaultSender`
2115
+ * if none provided and throws an error if neither provided */
2116
+ private getSender;
2117
+ /** Returns the signer for a call, using the provided signer or the `defaultSigner`
2118
+ * if no signer was provided and the sender resolves to the default sender, the call will use default signer
2119
+ * or `undefined` otherwise (so the signer is resolved from `AlgorandClient`) */
2120
+ private getSigner;
2121
+ private getBareParams;
2122
+ private getABIParams;
2123
+ /** Make the given call and catch any errors, augmenting with debugging information before re-throwing. */
2124
+ private handleCallErrors;
2125
+ private getBoxMethods;
2126
+ private getStateMethods;
2127
+ }
2128
+ //#endregion
2129
+ export { AppClient, AppClientBareCallParams, AppClientCallABIArgs, AppClientCallArgs, AppClientCallCoreParams, AppClientCallParams, AppClientCallRawArgs, AppClientClearStateParams, AppClientCompilationParams, AppClientCompilationResult, AppClientCreateOnComplete, AppClientCreateParams, AppClientDeployCallInterfaceParams, AppClientDeployCoreParams, AppClientDeployParams, AppClientMethodCallParams, AppClientParams, AppClientUpdateParams, AppDetails, AppDetailsBase, AppSourceMaps, AppSpecAppDetails, AppSpecAppDetailsBase, AppSpecAppDetailsByCreatorAndName, AppSpecAppDetailsById, CallOnComplete, CloneAppClientParams, FundAppAccountParams, FundAppParams, ResolveAppByCreatorAndName, ResolveAppByCreatorAndNameBase, ResolveAppById, ResolveAppByIdBase, ResolveAppClientByCreatorAndName, ResolveAppClientByNetwork, SourceMapExport };
2130
+ //# sourceMappingURL=app-client.d.ts.map