@algorandfoundation/algokit-utils 6.2.1 → 7.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (465) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +22 -26
  3. package/account/account.d.ts +21 -11
  4. package/account/get-account-config-from-environment.d.ts +0 -1
  5. package/account/get-account.d.ts +6 -7
  6. package/account/get-dispenser-account.d.ts +2 -3
  7. package/account/index.d.ts +0 -1
  8. package/account/mnemonic-account.d.ts +1 -2
  9. package/amount.d.ts +41 -9
  10. package/app-client.d.ts +19 -5
  11. package/app-deploy.d.ts +18 -2
  12. package/app.d.ts +39 -3
  13. package/asset.d.ts +10 -1
  14. package/config.d.ts +0 -1
  15. package/debugging/debugging.d.ts +3 -5
  16. package/debugging/index.d.ts +0 -2
  17. package/dispenser-client.d.ts +1 -2
  18. package/index.d.ts +8 -6
  19. package/index.js +61 -48
  20. package/index.js.map +1 -1
  21. package/index.mjs +27 -24
  22. package/index.mjs.map +1 -1
  23. package/indexer-lookup.d.ts +10 -9
  24. package/localnet/get-kmd-wallet-account.d.ts +1 -2
  25. package/localnet/get-localnet-dispenser-account.d.ts +1 -2
  26. package/localnet/get-or-create-kmd-wallet-account.d.ts +2 -3
  27. package/localnet/index.d.ts +0 -1
  28. package/localnet/is-localnet.d.ts +1 -2
  29. package/network-client.d.ts +3 -10
  30. package/package.json +5 -5
  31. package/{account → src/account}/account.js +38 -15
  32. package/src/account/account.js.map +1 -0
  33. package/{account → src/account}/account.mjs +39 -16
  34. package/src/account/account.mjs.map +1 -0
  35. package/src/account/get-account-config-from-environment.js.map +1 -0
  36. package/src/account/get-account-config-from-environment.mjs.map +1 -0
  37. package/{account → src/account}/get-account.js +5 -5
  38. package/src/account/get-account.js.map +1 -0
  39. package/{account → src/account}/get-account.mjs +5 -5
  40. package/src/account/get-account.mjs.map +1 -0
  41. package/{account → src/account}/get-dispenser-account.js +3 -3
  42. package/src/account/get-dispenser-account.js.map +1 -0
  43. package/{account → src/account}/get-dispenser-account.mjs +3 -3
  44. package/src/account/get-dispenser-account.mjs.map +1 -0
  45. package/{account → src/account}/mnemonic-account.js +1 -1
  46. package/src/account/mnemonic-account.js.map +1 -0
  47. package/{account → src/account}/mnemonic-account.mjs +1 -1
  48. package/src/account/mnemonic-account.mjs.map +1 -0
  49. package/src/amount.js +61 -0
  50. package/src/amount.js.map +1 -0
  51. package/src/amount.mjs +54 -0
  52. package/src/amount.mjs.map +1 -0
  53. package/{app-client.js → src/app-client.js} +20 -5
  54. package/src/app-client.js.map +1 -0
  55. package/{app-client.mjs → src/app-client.mjs} +20 -5
  56. package/src/app-client.mjs.map +1 -0
  57. package/src/app-deploy.js +285 -0
  58. package/src/app-deploy.js.map +1 -0
  59. package/src/app-deploy.mjs +276 -0
  60. package/src/app-deploy.mjs.map +1 -0
  61. package/src/app.js +349 -0
  62. package/src/app.js.map +1 -0
  63. package/src/app.mjs +329 -0
  64. package/src/app.mjs.map +1 -0
  65. package/src/asset.js +142 -0
  66. package/src/asset.js.map +1 -0
  67. package/src/asset.mjs +136 -0
  68. package/src/asset.mjs.map +1 -0
  69. package/{config.js → src/config.js} +1 -1
  70. package/src/config.js.map +1 -0
  71. package/{config.mjs → src/config.mjs} +1 -1
  72. package/src/config.mjs.map +1 -0
  73. package/src/debugging/debugging.js +15 -0
  74. package/src/debugging/debugging.js.map +1 -0
  75. package/src/debugging/debugging.mjs +13 -0
  76. package/src/debugging/debugging.mjs.map +1 -0
  77. package/{dispenser-client.js → src/dispenser-client.js} +3 -3
  78. package/src/dispenser-client.js.map +1 -0
  79. package/{dispenser-client.mjs → src/dispenser-client.mjs} +3 -3
  80. package/src/dispenser-client.mjs.map +1 -0
  81. package/{indexer-lookup.js → src/indexer-lookup.js} +14 -10
  82. package/src/indexer-lookup.js.map +1 -0
  83. package/{indexer-lookup.mjs → src/indexer-lookup.mjs} +14 -10
  84. package/src/indexer-lookup.mjs.map +1 -0
  85. package/{localnet → src/localnet}/get-kmd-wallet-account.js +3 -3
  86. package/src/localnet/get-kmd-wallet-account.js.map +1 -0
  87. package/{localnet → src/localnet}/get-kmd-wallet-account.mjs +3 -3
  88. package/src/localnet/get-kmd-wallet-account.mjs.map +1 -0
  89. package/{localnet → src/localnet}/get-localnet-dispenser-account.js +3 -3
  90. package/src/localnet/get-localnet-dispenser-account.js.map +1 -0
  91. package/{localnet → src/localnet}/get-localnet-dispenser-account.mjs +3 -3
  92. package/src/localnet/get-localnet-dispenser-account.mjs.map +1 -0
  93. package/{localnet → src/localnet}/get-or-create-kmd-wallet-account.js +4 -4
  94. package/src/localnet/get-or-create-kmd-wallet-account.js.map +1 -0
  95. package/{localnet → src/localnet}/get-or-create-kmd-wallet-account.mjs +4 -4
  96. package/src/localnet/get-or-create-kmd-wallet-account.mjs.map +1 -0
  97. package/{localnet → src/localnet}/is-localnet.js +2 -2
  98. package/src/localnet/is-localnet.js.map +1 -0
  99. package/{localnet → src/localnet}/is-localnet.mjs +2 -2
  100. package/src/localnet/is-localnet.mjs.map +1 -0
  101. package/{network-client.js → src/network-client.js} +5 -12
  102. package/src/network-client.js.map +1 -0
  103. package/{network-client.mjs → src/network-client.mjs} +5 -12
  104. package/src/network-client.mjs.map +1 -0
  105. package/{testing → src/testing}/account.js +16 -4
  106. package/src/testing/account.js.map +1 -0
  107. package/{testing → src/testing}/account.mjs +17 -5
  108. package/src/testing/account.mjs.map +1 -0
  109. package/src/testing/fixtures/algokit-log-capture-fixture.js.map +1 -0
  110. package/src/testing/fixtures/algokit-log-capture-fixture.mjs.map +1 -0
  111. package/{testing → src/testing}/fixtures/algorand-fixture.js +18 -14
  112. package/src/testing/fixtures/algorand-fixture.js.map +1 -0
  113. package/{testing → src/testing}/fixtures/algorand-fixture.mjs +18 -14
  114. package/src/testing/fixtures/algorand-fixture.mjs.map +1 -0
  115. package/src/testing/indexer.js.map +1 -0
  116. package/src/testing/indexer.mjs.map +1 -0
  117. package/{testing → src/testing}/test-logger.js +7 -3
  118. package/src/testing/test-logger.js.map +1 -0
  119. package/{testing → src/testing}/test-logger.mjs +7 -3
  120. package/src/testing/test-logger.mjs.map +1 -0
  121. package/src/testing/transaction-logger.js.map +1 -0
  122. package/src/testing/transaction-logger.mjs.map +1 -0
  123. package/src/transaction/legacy-bridge.js +129 -0
  124. package/src/transaction/legacy-bridge.js.map +1 -0
  125. package/src/transaction/legacy-bridge.mjs +124 -0
  126. package/src/transaction/legacy-bridge.mjs.map +1 -0
  127. package/{transaction → src/transaction}/perform-atomic-transaction-composer-simulate.js +14 -9
  128. package/src/transaction/perform-atomic-transaction-composer-simulate.js.map +1 -0
  129. package/{transaction → src/transaction}/perform-atomic-transaction-composer-simulate.mjs +15 -10
  130. package/src/transaction/perform-atomic-transaction-composer-simulate.mjs.map +1 -0
  131. package/{transaction → src/transaction}/transaction.js +221 -141
  132. package/src/transaction/transaction.js.map +1 -0
  133. package/{transaction → src/transaction}/transaction.mjs +222 -142
  134. package/src/transaction/transaction.mjs.map +1 -0
  135. package/src/transfer/transfer-algos.js +31 -0
  136. package/src/transfer/transfer-algos.js.map +1 -0
  137. package/src/transfer/transfer-algos.mjs +29 -0
  138. package/src/transfer/transfer-algos.mjs.map +1 -0
  139. package/src/transfer/transfer.js +112 -0
  140. package/src/transfer/transfer.js.map +1 -0
  141. package/src/transfer/transfer.mjs +108 -0
  142. package/src/transfer/transfer.mjs.map +1 -0
  143. package/{util.js → src/util.js} +33 -7
  144. package/src/util.js.map +1 -0
  145. package/{util.mjs → src/util.mjs} +31 -7
  146. package/src/util.mjs.map +1 -0
  147. package/testing/_asset.d.ts +3 -5
  148. package/testing/account.d.ts +4 -4
  149. package/testing/fixtures/algokit-log-capture-fixture.d.ts +0 -1
  150. package/testing/fixtures/algorand-fixture.d.ts +1 -2
  151. package/testing/fixtures/index.d.ts +0 -1
  152. package/testing/index.d.ts +0 -1
  153. package/testing/index.js +6 -6
  154. package/testing/index.mjs +6 -6
  155. package/testing/indexer.d.ts +0 -1
  156. package/testing/test-logger.d.ts +0 -1
  157. package/testing/transaction-logger.d.ts +0 -1
  158. package/transaction/index.d.ts +0 -1
  159. package/transaction/legacy-bridge.d.ts +35 -0
  160. package/transaction/perform-atomic-transaction-composer-simulate.d.ts +4 -2
  161. package/transaction/transaction.d.ts +39 -20
  162. package/transfer/index.d.ts +0 -1
  163. package/transfer/transfer-algos.d.ts +4 -3
  164. package/transfer/transfer.d.ts +8 -2
  165. package/types/account-manager.d.ts +165 -40
  166. package/types/account-manager.js +255 -59
  167. package/types/account-manager.js.map +1 -1
  168. package/types/account-manager.mjs +255 -59
  169. package/types/account-manager.mjs.map +1 -1
  170. package/types/account.d.ts +137 -14
  171. package/types/account.js +2 -2
  172. package/types/account.js.map +1 -1
  173. package/types/account.mjs +3 -3
  174. package/types/account.mjs.map +1 -1
  175. package/types/algo-http-client-with-retry.d.ts +1 -3
  176. package/types/algo-http-client-with-retry.js +34 -4
  177. package/types/algo-http-client-with-retry.js.map +1 -1
  178. package/types/algo-http-client-with-retry.mjs +33 -3
  179. package/types/algo-http-client-with-retry.mjs.map +1 -1
  180. package/types/algorand-client-interface.d.ts +28 -0
  181. package/types/algorand-client-interface.js +3 -0
  182. package/types/algorand-client-interface.js.map +1 -0
  183. package/types/algorand-client-interface.mjs +2 -0
  184. package/types/algorand-client-interface.mjs.map +1 -0
  185. package/types/algorand-client-transaction-creator.d.ts +718 -0
  186. package/types/algorand-client-transaction-creator.js +683 -0
  187. package/types/algorand-client-transaction-creator.js.map +1 -0
  188. package/types/algorand-client-transaction-creator.mjs +681 -0
  189. package/types/algorand-client-transaction-creator.mjs.map +1 -0
  190. package/types/algorand-client-transaction-sender.d.ts +1158 -0
  191. package/types/algorand-client-transaction-sender.js +852 -0
  192. package/types/algorand-client-transaction-sender.js.map +1 -0
  193. package/types/algorand-client-transaction-sender.mjs +850 -0
  194. package/types/algorand-client-transaction-sender.mjs.map +1 -0
  195. package/types/algorand-client.d.ts +48 -91
  196. package/types/algorand-client.js +53 -132
  197. package/types/algorand-client.js.map +1 -1
  198. package/types/algorand-client.mjs +55 -131
  199. package/types/algorand-client.mjs.map +1 -1
  200. package/types/amount.d.ts +23 -12
  201. package/types/amount.js +33 -10
  202. package/types/amount.js.map +1 -1
  203. package/types/amount.mjs +33 -10
  204. package/types/amount.mjs.map +1 -1
  205. package/types/app-arc56.d.ts +359 -0
  206. package/types/app-arc56.js +184 -0
  207. package/types/app-arc56.js.map +1 -0
  208. package/types/app-arc56.mjs +175 -0
  209. package/types/app-arc56.mjs.map +1 -0
  210. package/types/app-client.d.ts +1511 -15
  211. package/types/app-client.js +1029 -43
  212. package/types/app-client.js.map +1 -1
  213. package/types/app-client.mjs +1030 -45
  214. package/types/app-client.mjs.map +1 -1
  215. package/types/app-deployer.d.ts +126 -0
  216. package/types/app-deployer.js +353 -0
  217. package/types/app-deployer.js.map +1 -0
  218. package/types/app-deployer.mjs +351 -0
  219. package/types/app-deployer.mjs.map +1 -0
  220. package/types/app-factory.d.ts +846 -0
  221. package/types/app-factory.js +410 -0
  222. package/types/app-factory.js.map +1 -0
  223. package/types/app-factory.mjs +408 -0
  224. package/types/app-factory.mjs.map +1 -0
  225. package/types/app-manager.d.ts +244 -0
  226. package/types/app-manager.js +423 -0
  227. package/types/app-manager.js.map +1 -0
  228. package/types/app-manager.mjs +421 -0
  229. package/types/app-manager.mjs.map +1 -0
  230. package/types/app-spec.d.ts +2 -1
  231. package/types/app-spec.js +127 -0
  232. package/types/app-spec.js.map +1 -1
  233. package/types/app-spec.mjs +126 -0
  234. package/types/app-spec.mjs.map +1 -1
  235. package/types/app.d.ts +57 -18
  236. package/types/app.js +1 -1
  237. package/types/app.js.map +1 -1
  238. package/types/app.mjs +1 -1
  239. package/types/app.mjs.map +1 -1
  240. package/types/asset-manager.d.ts +205 -0
  241. package/types/asset-manager.js +176 -0
  242. package/types/asset-manager.js.map +1 -0
  243. package/types/asset-manager.mjs +174 -0
  244. package/types/asset-manager.mjs.map +1 -0
  245. package/types/asset.d.ts +4 -5
  246. package/types/async-event-emitter.d.ts +14 -0
  247. package/types/async-event-emitter.js +50 -0
  248. package/types/async-event-emitter.js.map +1 -0
  249. package/types/async-event-emitter.mjs +48 -0
  250. package/types/async-event-emitter.mjs.map +1 -0
  251. package/types/client-manager.d.ts +171 -58
  252. package/types/client-manager.js +198 -43
  253. package/types/client-manager.js.map +1 -1
  254. package/types/client-manager.mjs +199 -44
  255. package/types/client-manager.mjs.map +1 -1
  256. package/types/composer.d.ts +474 -132
  257. package/types/composer.js +461 -167
  258. package/types/composer.js.map +1 -1
  259. package/types/composer.mjs +461 -168
  260. package/types/composer.mjs.map +1 -1
  261. package/types/config.d.ts +3 -6
  262. package/types/config.js +5 -44
  263. package/types/config.js.map +1 -1
  264. package/types/config.mjs +5 -27
  265. package/types/config.mjs.map +1 -1
  266. package/types/debugging.d.ts +29 -101
  267. package/types/debugging.js +16 -109
  268. package/types/debugging.js.map +1 -1
  269. package/types/debugging.mjs +12 -107
  270. package/types/debugging.mjs.map +1 -1
  271. package/types/dispenser-client.d.ts +14 -6
  272. package/types/dispenser-client.js +19 -14
  273. package/types/dispenser-client.js.map +1 -1
  274. package/types/dispenser-client.mjs +19 -14
  275. package/types/dispenser-client.mjs.map +1 -1
  276. package/types/expand.d.ts +7 -0
  277. package/types/expand.js +3 -0
  278. package/types/expand.js.map +1 -0
  279. package/types/expand.mjs +2 -0
  280. package/types/expand.mjs.map +1 -0
  281. package/types/indexer.d.ts +74 -756
  282. package/types/indexer.js.map +1 -1
  283. package/types/indexer.mjs.map +1 -1
  284. package/types/kmd-account-manager.d.ts +5 -6
  285. package/types/kmd-account-manager.js +9 -9
  286. package/types/kmd-account-manager.js.map +1 -1
  287. package/types/kmd-account-manager.mjs +10 -10
  288. package/types/kmd-account-manager.mjs.map +1 -1
  289. package/types/lifecycle-events.d.ts +10 -0
  290. package/types/lifecycle-events.js +8 -0
  291. package/types/lifecycle-events.js.map +1 -0
  292. package/types/lifecycle-events.mjs +8 -0
  293. package/types/lifecycle-events.mjs.map +1 -0
  294. package/types/logging.d.ts +0 -1
  295. package/types/logging.js.map +1 -1
  296. package/types/logging.mjs.map +1 -1
  297. package/types/logic-error.d.ts +2 -4
  298. package/types/logic-error.js +3 -3
  299. package/types/logic-error.js.map +1 -1
  300. package/types/logic-error.mjs +3 -3
  301. package/types/logic-error.mjs.map +1 -1
  302. package/types/network-client.d.ts +21 -3
  303. package/types/network-client.js +10 -0
  304. package/types/network-client.js.map +1 -1
  305. package/types/network-client.mjs +9 -0
  306. package/types/network-client.mjs.map +1 -1
  307. package/types/testing.d.ts +9 -11
  308. package/types/transaction.d.ts +17 -4
  309. package/types/transfer.d.ts +8 -8
  310. package/util.d.ts +15 -2
  311. package/account/account.d.ts.map +0 -1
  312. package/account/account.js.map +0 -1
  313. package/account/account.mjs.map +0 -1
  314. package/account/get-account-config-from-environment.d.ts.map +0 -1
  315. package/account/get-account-config-from-environment.js.map +0 -1
  316. package/account/get-account-config-from-environment.mjs.map +0 -1
  317. package/account/get-account.d.ts.map +0 -1
  318. package/account/get-account.js.map +0 -1
  319. package/account/get-account.mjs.map +0 -1
  320. package/account/get-dispenser-account.d.ts.map +0 -1
  321. package/account/get-dispenser-account.js.map +0 -1
  322. package/account/get-dispenser-account.mjs.map +0 -1
  323. package/account/index.d.ts.map +0 -1
  324. package/account/mnemonic-account.d.ts.map +0 -1
  325. package/account/mnemonic-account.js.map +0 -1
  326. package/account/mnemonic-account.mjs.map +0 -1
  327. package/amount.d.ts.map +0 -1
  328. package/amount.js +0 -34
  329. package/amount.js.map +0 -1
  330. package/amount.mjs +0 -30
  331. package/amount.mjs.map +0 -1
  332. package/app-client.d.ts.map +0 -1
  333. package/app-client.js.map +0 -1
  334. package/app-client.mjs.map +0 -1
  335. package/app-deploy.d.ts.map +0 -1
  336. package/app-deploy.js +0 -468
  337. package/app-deploy.js.map +0 -1
  338. package/app-deploy.mjs +0 -459
  339. package/app-deploy.mjs.map +0 -1
  340. package/app.d.ts.map +0 -1
  341. package/app.js +0 -599
  342. package/app.js.map +0 -1
  343. package/app.mjs +0 -579
  344. package/app.mjs.map +0 -1
  345. package/asset.d.ts.map +0 -1
  346. package/asset.js +0 -272
  347. package/asset.js.map +0 -1
  348. package/asset.mjs +0 -266
  349. package/asset.mjs.map +0 -1
  350. package/config.d.ts.map +0 -1
  351. package/config.js.map +0 -1
  352. package/config.mjs.map +0 -1
  353. package/debugging/debugging.d.ts.map +0 -1
  354. package/debugging/debugging.js +0 -139
  355. package/debugging/debugging.js.map +0 -1
  356. package/debugging/debugging.mjs +0 -118
  357. package/debugging/debugging.mjs.map +0 -1
  358. package/debugging/index.d.ts.map +0 -1
  359. package/debugging/simulate-and-persist-response.d.ts +0 -20
  360. package/debugging/simulate-and-persist-response.d.ts.map +0 -1
  361. package/debugging/simulate-and-persist-response.js +0 -108
  362. package/debugging/simulate-and-persist-response.js.map +0 -1
  363. package/debugging/simulate-and-persist-response.mjs +0 -89
  364. package/debugging/simulate-and-persist-response.mjs.map +0 -1
  365. package/dispenser-client.d.ts.map +0 -1
  366. package/dispenser-client.js.map +0 -1
  367. package/dispenser-client.mjs.map +0 -1
  368. package/index.d.ts.map +0 -1
  369. package/indexer-lookup.d.ts.map +0 -1
  370. package/indexer-lookup.js.map +0 -1
  371. package/indexer-lookup.mjs.map +0 -1
  372. package/localnet/get-kmd-wallet-account.d.ts.map +0 -1
  373. package/localnet/get-kmd-wallet-account.js.map +0 -1
  374. package/localnet/get-kmd-wallet-account.mjs.map +0 -1
  375. package/localnet/get-localnet-dispenser-account.d.ts.map +0 -1
  376. package/localnet/get-localnet-dispenser-account.js.map +0 -1
  377. package/localnet/get-localnet-dispenser-account.mjs.map +0 -1
  378. package/localnet/get-or-create-kmd-wallet-account.d.ts.map +0 -1
  379. package/localnet/get-or-create-kmd-wallet-account.js.map +0 -1
  380. package/localnet/get-or-create-kmd-wallet-account.mjs.map +0 -1
  381. package/localnet/index.d.ts.map +0 -1
  382. package/localnet/is-localnet.d.ts.map +0 -1
  383. package/localnet/is-localnet.js.map +0 -1
  384. package/localnet/is-localnet.mjs.map +0 -1
  385. package/network-client.d.ts.map +0 -1
  386. package/network-client.js.map +0 -1
  387. package/network-client.mjs.map +0 -1
  388. package/testing/_asset.d.ts.map +0 -1
  389. package/testing/account.d.ts.map +0 -1
  390. package/testing/account.js.map +0 -1
  391. package/testing/account.mjs.map +0 -1
  392. package/testing/fixtures/algokit-log-capture-fixture.d.ts.map +0 -1
  393. package/testing/fixtures/algokit-log-capture-fixture.js.map +0 -1
  394. package/testing/fixtures/algokit-log-capture-fixture.mjs.map +0 -1
  395. package/testing/fixtures/algorand-fixture.d.ts.map +0 -1
  396. package/testing/fixtures/algorand-fixture.js.map +0 -1
  397. package/testing/fixtures/algorand-fixture.mjs.map +0 -1
  398. package/testing/fixtures/index.d.ts.map +0 -1
  399. package/testing/index.d.ts.map +0 -1
  400. package/testing/indexer.d.ts.map +0 -1
  401. package/testing/indexer.js.map +0 -1
  402. package/testing/indexer.mjs.map +0 -1
  403. package/testing/test-logger.d.ts.map +0 -1
  404. package/testing/test-logger.js.map +0 -1
  405. package/testing/test-logger.mjs.map +0 -1
  406. package/testing/transaction-logger.d.ts.map +0 -1
  407. package/testing/transaction-logger.js.map +0 -1
  408. package/testing/transaction-logger.mjs.map +0 -1
  409. package/transaction/index.d.ts.map +0 -1
  410. package/transaction/perform-atomic-transaction-composer-simulate.d.ts.map +0 -1
  411. package/transaction/perform-atomic-transaction-composer-simulate.js.map +0 -1
  412. package/transaction/perform-atomic-transaction-composer-simulate.mjs.map +0 -1
  413. package/transaction/transaction.d.ts.map +0 -1
  414. package/transaction/transaction.js.map +0 -1
  415. package/transaction/transaction.mjs.map +0 -1
  416. package/transfer/index.d.ts.map +0 -1
  417. package/transfer/transfer-algos.d.ts.map +0 -1
  418. package/transfer/transfer-algos.js +0 -40
  419. package/transfer/transfer-algos.js.map +0 -1
  420. package/transfer/transfer-algos.mjs +0 -38
  421. package/transfer/transfer-algos.mjs.map +0 -1
  422. package/transfer/transfer.d.ts.map +0 -1
  423. package/transfer/transfer.js +0 -147
  424. package/transfer/transfer.js.map +0 -1
  425. package/transfer/transfer.mjs +0 -143
  426. package/transfer/transfer.mjs.map +0 -1
  427. package/types/account-manager.d.ts.map +0 -1
  428. package/types/account.d.ts.map +0 -1
  429. package/types/algo-http-client-with-retry.d.ts.map +0 -1
  430. package/types/algorand-client.d.ts.map +0 -1
  431. package/types/amount.d.ts.map +0 -1
  432. package/types/app-client.d.ts.map +0 -1
  433. package/types/app-spec.d.ts.map +0 -1
  434. package/types/app.d.ts.map +0 -1
  435. package/types/asset.d.ts.map +0 -1
  436. package/types/client-manager.d.ts.map +0 -1
  437. package/types/composer.d.ts.map +0 -1
  438. package/types/config.d.ts.map +0 -1
  439. package/types/debugging.d.ts.map +0 -1
  440. package/types/dispenser-client.d.ts.map +0 -1
  441. package/types/indexer.d.ts.map +0 -1
  442. package/types/kmd-account-manager.d.ts.map +0 -1
  443. package/types/logging.d.ts.map +0 -1
  444. package/types/logic-error.d.ts.map +0 -1
  445. package/types/network-client.d.ts.map +0 -1
  446. package/types/testing.d.ts.map +0 -1
  447. package/types/transaction.d.ts.map +0 -1
  448. package/types/transfer.d.ts.map +0 -1
  449. package/types/urlTokenBaseHTTPClient.d.ts +0 -41
  450. package/types/urlTokenBaseHTTPClient.d.ts.map +0 -1
  451. package/types/urlTokenBaseHTTPClient.js +0 -153
  452. package/types/urlTokenBaseHTTPClient.js.map +0 -1
  453. package/types/urlTokenBaseHTTPClient.mjs +0 -151
  454. package/types/urlTokenBaseHTTPClient.mjs.map +0 -1
  455. package/util.d.ts.map +0 -1
  456. package/util.js.map +0 -1
  457. package/util.mjs.map +0 -1
  458. /package/{account → src/account}/get-account-config-from-environment.js +0 -0
  459. /package/{account → src/account}/get-account-config-from-environment.mjs +0 -0
  460. /package/{testing → src/testing}/fixtures/algokit-log-capture-fixture.js +0 -0
  461. /package/{testing → src/testing}/fixtures/algokit-log-capture-fixture.mjs +0 -0
  462. /package/{testing → src/testing}/indexer.js +0 -0
  463. /package/{testing → src/testing}/indexer.mjs +0 -0
  464. /package/{testing → src/testing}/transaction-logger.js +0 -0
  465. /package/{testing → src/testing}/transaction-logger.mjs +0 -0
@@ -0,0 +1,718 @@
1
+ import algosdk from 'algosdk';
2
+ import { BuiltTransactions, TransactionComposer } from './composer';
3
+ import { Expand } from './expand';
4
+ import Transaction = algosdk.Transaction;
5
+ /** Orchestrates creating transactions for `AlgorandClient`. */
6
+ export declare class AlgorandClientTransactionCreator {
7
+ private _newGroup;
8
+ /**
9
+ * Creates a new `AlgorandClientTransactionCreator`
10
+ * @param newGroup A lambda that starts a new `TransactionComposer` transaction group
11
+ */
12
+ constructor(newGroup: () => TransactionComposer);
13
+ private _transaction;
14
+ private _transactions;
15
+ /**
16
+ * Create a payment transaction to transfer Algo between accounts.
17
+ * @param params The parameters for the payment transaction
18
+ * @example Basic example
19
+ * ```typescript
20
+ * const result = await algorand.send.payment({
21
+ * sender: 'SENDERADDRESS',
22
+ * receiver: 'RECEIVERADDRESS',
23
+ * amount: (4).algo(),
24
+ * })
25
+ * ```
26
+ * @example Advanced example
27
+ * ```typescript
28
+ * const result = await algorand.send.payment({
29
+ * amount: (4).algo(),
30
+ * receiver: 'RECEIVERADDRESS',
31
+ * sender: 'SENDERADDRESS',
32
+ * closeRemainderTo: 'CLOSEREMAINDERTOADDRESS',
33
+ * lease: 'lease',
34
+ * note: 'note',
35
+ * // Use this with caution, it's generally better to use algorand.account.rekeyAccount
36
+ * rekeyTo: 'REKEYTOADDRESS',
37
+ * // You wouldn't normally set this field
38
+ * firstValidRound: 1000n,
39
+ * validityWindow: 10,
40
+ * extraFee: (1000).microAlgo(),
41
+ * staticFee: (1000).microAlgo(),
42
+ * // Max fee doesn't make sense with extraFee AND staticFee
43
+ * // already specified, but here for completeness
44
+ * maxFee: (3000).microAlgo(),
45
+ * })
46
+ * ```
47
+ *
48
+ * @returns The payment transaction
49
+ */
50
+ payment: (params: import("./composer").PaymentParams) => Promise<Transaction>;
51
+ /** Create a create Algorand Standard Asset transaction.
52
+ *
53
+ * The account that sends this transaction will automatically be
54
+ * opted in to the asset and will hold all units after creation.
55
+ *
56
+ * @param params The parameters for the asset creation transaction
57
+ *
58
+ * @example Basic example
59
+ * ```typescript
60
+ * await algorand.createTransaction.assetCreate({sender: "CREATORADDRESS", total: 100n})
61
+ * ```
62
+ * @example Advanced example
63
+ * ```typescript
64
+ * await algorand.createTransaction.assetCreate({
65
+ * sender: 'CREATORADDRESS',
66
+ * total: 100n,
67
+ * decimals: 2,
68
+ * assetName: 'asset',
69
+ * unitName: 'unit',
70
+ * url: 'url',
71
+ * metadataHash: 'metadataHash',
72
+ * defaultFrozen: false,
73
+ * manager: 'MANAGERADDRESS',
74
+ * reserve: 'RESERVEADDRESS',
75
+ * freeze: 'FREEZEADDRESS',
76
+ * clawback: 'CLAWBACKADDRESS',
77
+ * lease: 'lease',
78
+ * note: 'note',
79
+ * // You wouldn't normally set this field
80
+ * firstValidRound: 1000n,
81
+ * validityWindow: 10,
82
+ * extraFee: (1000).microAlgo(),
83
+ * staticFee: (1000).microAlgo(),
84
+ * // Max fee doesn't make sense with extraFee AND staticFee
85
+ * // already specified, but here for completeness
86
+ * maxFee: (3000).microAlgo(),
87
+ * })
88
+ * ```
89
+ * @returns The asset create transaction
90
+ */
91
+ assetCreate: (params: import("./composer").AssetCreateParams) => Promise<Transaction>;
92
+ /** Create an asset config transaction to reconfigure an existing Algorand Standard Asset.
93
+ *
94
+ * **Note:** The manager, reserve, freeze, and clawback addresses
95
+ * are immutably empty if they are not set. If manager is not set then
96
+ * all fields are immutable from that point forward.
97
+ *
98
+ * @param params The parameters for the asset config transaction
99
+ *
100
+ * @example Basic example
101
+ * ```typescript
102
+ * await algorand.createTransaction.assetConfig({sender: "MANAGERADDRESS", assetId: 123456n, manager: "MANAGERADDRESS" })
103
+ * ```
104
+ * @example Advanced example
105
+ * ```typescript
106
+ * await algorand.createTransaction.assetConfig({
107
+ * sender: 'MANAGERADDRESS',
108
+ * assetId: 123456n,
109
+ * manager: 'MANAGERADDRESS',
110
+ * reserve: 'RESERVEADDRESS',
111
+ * freeze: 'FREEZEADDRESS',
112
+ * clawback: 'CLAWBACKADDRESS',
113
+ * lease: 'lease',
114
+ * note: 'note',
115
+ * // You wouldn't normally set this field
116
+ * firstValidRound: 1000n,
117
+ * validityWindow: 10,
118
+ * extraFee: (1000).microAlgo(),
119
+ * staticFee: (1000).microAlgo(),
120
+ * // Max fee doesn't make sense with extraFee AND staticFee
121
+ * // already specified, but here for completeness
122
+ * maxFee: (3000).microAlgo(),
123
+ * })
124
+ * ```
125
+ * @returns The asset config transaction
126
+ */
127
+ assetConfig: (params: import("./composer").AssetConfigParams) => Promise<Transaction>;
128
+ /** Create an Algorand Standard Asset freeze transaction.
129
+ *
130
+ * @param params The parameters for the asset freeze transaction
131
+ *
132
+ * @example Basic example
133
+ * ```typescript
134
+ * await algorand.createTransaction.assetFreeze({sender: "MANAGERADDRESS", assetId: 123456n, account: "ACCOUNTADDRESS", frozen: true })
135
+ * ```
136
+ * @example Advanced example
137
+ * ```typescript
138
+ * await algorand.createTransaction.assetFreeze({
139
+ * sender: 'MANAGERADDRESS',
140
+ * assetId: 123456n,
141
+ * account: 'ACCOUNTADDRESS',
142
+ * frozen: true,
143
+ * lease: 'lease',
144
+ * note: 'note',
145
+ * // You wouldn't normally set this field
146
+ * firstValidRound: 1000n,
147
+ * validityWindow: 10,
148
+ * extraFee: (1000).microAlgo(),
149
+ * staticFee: (1000).microAlgo(),
150
+ * // Max fee doesn't make sense with extraFee AND staticFee
151
+ * // already specified, but here for completeness
152
+ * maxFee: (3000).microAlgo(),
153
+ * })
154
+ * ```
155
+ * @returns The asset freeze transaction
156
+ */
157
+ assetFreeze: (params: import("./composer").AssetFreezeParams) => Promise<Transaction>;
158
+ /** Create an Algorand Standard Asset destroy transaction.
159
+ *
160
+ * Created assets can be destroyed only by the asset manager account.
161
+ * All of the assets must be owned by the creator of the asset before
162
+ * the asset can be deleted.
163
+ *
164
+ * @param params The parameters for the asset destroy transaction
165
+ *
166
+ * @example Basic example
167
+ * ```typescript
168
+ * await algorand.createTransaction.assetDestroy({sender: "MANAGERADDRESS", assetId: 123456n })
169
+ * ```
170
+ * @example Advanced example
171
+ * ```typescript
172
+ * await algorand.createTransaction.assetDestroy({
173
+ * sender: 'MANAGERADDRESS',
174
+ * assetId: 123456n,
175
+ * lease: 'lease',
176
+ * note: 'note',
177
+ * // You wouldn't normally set this field
178
+ * firstValidRound: 1000n,
179
+ * validityWindow: 10,
180
+ * extraFee: (1000).microAlgo(),
181
+ * staticFee: (1000).microAlgo(),
182
+ * // Max fee doesn't make sense with extraFee AND staticFee
183
+ * // already specified, but here for completeness
184
+ * maxFee: (3000).microAlgo(),
185
+ * })
186
+ * ```
187
+ * @returns The asset destroy transaction
188
+ */
189
+ assetDestroy: (params: import("./composer").AssetDestroyParams) => Promise<Transaction>;
190
+ /** Create an Algorand Standard Asset transfer transaction.
191
+ *
192
+ * @param params The parameters for the asset transfer transaction
193
+ *
194
+ * @example Basic example
195
+ * ```typescript
196
+ * await algorand.createTransaction.assetTransfer({sender: "HOLDERADDRESS", assetId: 123456n, amount: 1n, receiver: "RECEIVERADDRESS" })
197
+ * ```
198
+ * @example Advanced example (with clawback)
199
+ * ```typescript
200
+ * await algorand.createTransaction.assetTransfer({
201
+ * sender: 'CLAWBACKADDRESS',
202
+ * assetId: 123456n,
203
+ * amount: 1n,
204
+ * receiver: 'RECEIVERADDRESS',
205
+ * clawbackTarget: 'HOLDERADDRESS',
206
+ * // This field needs to be used with caution
207
+ * closeAssetTo: 'ADDRESSTOCLOSETO'
208
+ * lease: 'lease',
209
+ * note: 'note',
210
+ * // You wouldn't normally set this field
211
+ * firstValidRound: 1000n,
212
+ * validityWindow: 10,
213
+ * extraFee: (1000).microAlgo(),
214
+ * staticFee: (1000).microAlgo(),
215
+ * // Max fee doesn't make sense with extraFee AND staticFee
216
+ * // already specified, but here for completeness
217
+ * maxFee: (3000).microAlgo(),
218
+ * })
219
+ * ```
220
+ * @returns The result of the asset transfer transaction
221
+ */
222
+ assetTransfer: (params: import("./composer").AssetTransferParams) => Promise<Transaction>;
223
+ /** Create an Algorand Standard Asset opt-in transaction.
224
+ *
225
+ * @param params The parameters for the asset opt-in transaction
226
+ *
227
+ * @example Basic example
228
+ * ```typescript
229
+ * await algorand.createTransaction.assetOptIn({sender: "SENDERADDRESS", assetId: 123456n })
230
+ * ```
231
+ * @example Advanced example
232
+ * ```typescript
233
+ * await algorand.createTransaction.assetOptIn({
234
+ * sender: 'SENDERADDRESS',
235
+ * assetId: 123456n,
236
+ * lease: 'lease',
237
+ * note: 'note',
238
+ * // You wouldn't normally set this field
239
+ * firstValidRound: 1000n,
240
+ * validityWindow: 10,
241
+ * extraFee: (1000).microAlgo(),
242
+ * staticFee: (1000).microAlgo(),
243
+ * // Max fee doesn't make sense with extraFee AND staticFee
244
+ * // already specified, but here for completeness
245
+ * maxFee: (3000).microAlgo(),
246
+ * })
247
+ * ```
248
+ * @returns The asset opt-in transaction
249
+ */
250
+ assetOptIn: (params: import("./composer").AssetOptInParams) => Promise<Transaction>;
251
+ /** Create an asset opt-out transaction.
252
+ *
253
+ * *Note:* If the account has a balance of the asset,
254
+ * it will lose those assets
255
+ *
256
+ * @param params The parameters for the asset opt-out transaction
257
+ *
258
+ * @example Basic example
259
+ * ```typescript
260
+ * await algorand.createTransaction.assetOptOut({sender: "SENDERADDRESS", creator: "CREATORADDRESS", assetId: 123456n })
261
+ * ```
262
+ * @example Advanced example
263
+ * ```typescript
264
+ * await algorand.createTransaction.assetOptIn({
265
+ * sender: 'SENDERADDRESS',
266
+ * assetId: 123456n,
267
+ * creator: 'CREATORADDRESS',
268
+ * ensureZeroBalance: true,
269
+ * lease: 'lease',
270
+ * note: 'note',
271
+ * // You wouldn't normally set this field
272
+ * firstValidRound: 1000n,
273
+ * validityWindow: 10,
274
+ * extraFee: (1000).microAlgo(),
275
+ * staticFee: (1000).microAlgo(),
276
+ * // Max fee doesn't make sense with extraFee AND staticFee
277
+ * // already specified, but here for completeness
278
+ * maxFee: (3000).microAlgo(),
279
+ * })
280
+ * ```
281
+ * @returns The asset opt-out transaction
282
+ */
283
+ assetOptOut: (params: import("./composer").AssetOptOutParams) => Promise<Transaction>;
284
+ /** Create an application create transaction.
285
+ *
286
+ * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.
287
+ *
288
+ * @param params The parameters for the app creation transaction
289
+ * @example Basic example
290
+ * ```typescript
291
+ * const result = await algorand.createTransaction.appCreate({ sender: 'CREATORADDRESS', approvalProgram: 'TEALCODE', clearStateProgram: 'TEALCODE' })
292
+ * const createdAppId = result.appId
293
+ * ```
294
+ * @example Advanced example
295
+ * ```typescript
296
+ * await algorand.createTransaction.appCreate({
297
+ * sender: 'CREATORADDRESS',
298
+ * approvalProgram: "TEALCODE",
299
+ * clearStateProgram: "TEALCODE",
300
+ * schema: {
301
+ * globalInts: 1,
302
+ * globalByteSlices: 2,
303
+ * localInts: 3,
304
+ * localByteSlices: 4
305
+ * },
306
+ * extraProgramPages: 1,
307
+ * onComplete: algosdk.OnApplicationComplete.OptInOC,
308
+ * args: [new Uint8Array(1, 2, 3, 4)]
309
+ * accountReferences: ["ACCOUNT_1"]
310
+ * appReferences: [123n, 1234n]
311
+ * assetReferences: [12345n]
312
+ * boxReferences: ["box1", {appId: 1234n, name: "box2"}]
313
+ * lease: 'lease',
314
+ * note: 'note',
315
+ * // You wouldn't normally set this field
316
+ * firstValidRound: 1000n,
317
+ * validityWindow: 10,
318
+ * extraFee: (1000).microAlgo(),
319
+ * staticFee: (1000).microAlgo(),
320
+ * // Max fee doesn't make sense with extraFee AND staticFee
321
+ * // already specified, but here for completeness
322
+ * maxFee: (3000).microAlgo(),
323
+ * // Signer only needed if you want to provide one,
324
+ * // generally you'd register it with AlgorandClient
325
+ * // against the sender and not need to pass it in
326
+ * signer: transactionSigner,
327
+ * maxRoundsToWaitForConfirmation: 5,
328
+ * suppressLog: true,
329
+ *})
330
+ * ```
331
+ */
332
+ appCreate: (params: {
333
+ sender: string | algosdk.Address;
334
+ maxFee?: import("./amount").AlgoAmount | undefined;
335
+ note?: string | Uint8Array | undefined;
336
+ args?: Uint8Array[] | undefined;
337
+ signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
338
+ onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
339
+ lease?: string | Uint8Array | undefined;
340
+ rekeyTo?: string | algosdk.Address | undefined;
341
+ staticFee?: import("./amount").AlgoAmount | undefined;
342
+ extraFee?: import("./amount").AlgoAmount | undefined;
343
+ validityWindow?: number | bigint | undefined;
344
+ firstValidRound?: bigint | undefined;
345
+ lastValidRound?: bigint | undefined;
346
+ accountReferences?: (string | algosdk.Address)[] | undefined;
347
+ appReferences?: bigint[] | undefined;
348
+ assetReferences?: bigint[] | undefined;
349
+ boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
350
+ approvalProgram: string | Uint8Array;
351
+ clearStateProgram: string | Uint8Array;
352
+ schema?: {
353
+ globalInts: number;
354
+ globalByteSlices: number;
355
+ localInts: number;
356
+ localByteSlices: number;
357
+ } | undefined;
358
+ extraProgramPages?: number | undefined;
359
+ }) => Promise<Transaction>;
360
+ /** Create an application update transaction.
361
+ *
362
+ * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.
363
+ *
364
+ * @param params The parameters for the app update transaction
365
+ * @example Basic example
366
+ * ```typescript
367
+ * await algorand.createTransaction.appUpdate({ sender: 'CREATORADDRESS', approvalProgram: 'TEALCODE', clearStateProgram: 'TEALCODE' })
368
+ * ```
369
+ * @example Advanced example
370
+ * ```typescript
371
+ * await algorand.createTransaction.appUpdate({
372
+ * sender: 'CREATORADDRESS',
373
+ * approvalProgram: "TEALCODE",
374
+ * clearStateProgram: "TEALCODE",
375
+ * onComplete: algosdk.OnApplicationComplete.UpdateApplicationOC,
376
+ * args: [new Uint8Array(1, 2, 3, 4)]
377
+ * accountReferences: ["ACCOUNT_1"]
378
+ * appReferences: [123n, 1234n]
379
+ * assetReferences: [12345n]
380
+ * boxReferences: ["box1", {appId: 1234n, name: "box2"}]
381
+ * lease: 'lease',
382
+ * note: 'note',
383
+ * // You wouldn't normally set this field
384
+ * firstValidRound: 1000n,
385
+ * validityWindow: 10,
386
+ * extraFee: (1000).microAlgo(),
387
+ * staticFee: (1000).microAlgo(),
388
+ * // Max fee doesn't make sense with extraFee AND staticFee
389
+ * // already specified, but here for completeness
390
+ * maxFee: (3000).microAlgo(),
391
+ * // Signer only needed if you want to provide one,
392
+ * // generally you'd register it with AlgorandClient
393
+ * // against the sender and not need to pass it in
394
+ * signer: transactionSigner,
395
+ * maxRoundsToWaitForConfirmation: 5,
396
+ * suppressLog: true,
397
+ *})
398
+ * ```
399
+ */
400
+ appUpdate: (params: {
401
+ sender: string | algosdk.Address;
402
+ signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
403
+ rekeyTo?: string | algosdk.Address | undefined;
404
+ note?: string | Uint8Array | undefined;
405
+ lease?: string | Uint8Array | undefined;
406
+ staticFee?: import("./amount").AlgoAmount | undefined;
407
+ extraFee?: import("./amount").AlgoAmount | undefined;
408
+ maxFee?: import("./amount").AlgoAmount | undefined;
409
+ validityWindow?: number | bigint | undefined;
410
+ firstValidRound?: bigint | undefined;
411
+ lastValidRound?: bigint | undefined;
412
+ appId: bigint;
413
+ onComplete?: algosdk.OnApplicationComplete.UpdateApplicationOC | undefined;
414
+ args?: Uint8Array[] | undefined;
415
+ accountReferences?: (string | algosdk.Address)[] | undefined;
416
+ appReferences?: bigint[] | undefined;
417
+ assetReferences?: bigint[] | undefined;
418
+ boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
419
+ approvalProgram: string | Uint8Array;
420
+ clearStateProgram: string | Uint8Array;
421
+ }) => Promise<Transaction>;
422
+ /** Create an application delete transaction.
423
+ *
424
+ * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.
425
+ *
426
+ * @param params The parameters for the app deletion transaction
427
+ * @example Basic example
428
+ * ```typescript
429
+ * await algorand.createTransaction.appDelete({ sender: 'CREATORADDRESS' })
430
+ * ```
431
+ * @example Advanced example
432
+ * ```typescript
433
+ * await algorand.createTransaction.appDelete({
434
+ * sender: 'CREATORADDRESS',
435
+ * onComplete: algosdk.OnApplicationComplete.DeleteApplicationOC,
436
+ * args: [new Uint8Array(1, 2, 3, 4)]
437
+ * accountReferences: ["ACCOUNT_1"]
438
+ * appReferences: [123n, 1234n]
439
+ * assetReferences: [12345n]
440
+ * boxReferences: ["box1", {appId: 1234n, name: "box2"}]
441
+ * lease: 'lease',
442
+ * note: 'note',
443
+ * // You wouldn't normally set this field
444
+ * firstValidRound: 1000n,
445
+ * validityWindow: 10,
446
+ * extraFee: (1000).microAlgo(),
447
+ * staticFee: (1000).microAlgo(),
448
+ * // Max fee doesn't make sense with extraFee AND staticFee
449
+ * // already specified, but here for completeness
450
+ * maxFee: (3000).microAlgo(),
451
+ * // Signer only needed if you want to provide one,
452
+ * // generally you'd register it with AlgorandClient
453
+ * // against the sender and not need to pass it in
454
+ * signer: transactionSigner,
455
+ * maxRoundsToWaitForConfirmation: 5,
456
+ * suppressLog: true,
457
+ *})
458
+ * ```
459
+ */
460
+ appDelete: (params: import("./composer").AppDeleteParams) => Promise<Transaction>;
461
+ /** Create an application call transaction.
462
+ *
463
+ * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.
464
+ *
465
+ * @param params The parameters for the app call transaction
466
+ * @example Basic example
467
+ * ```typescript
468
+ * await algorand.createTransaction.appCall({ sender: 'CREATORADDRESS' })
469
+ * ```
470
+ * @example Advanced example
471
+ * ```typescript
472
+ * await algorand.createTransaction.appCall({
473
+ * sender: 'CREATORADDRESS',
474
+ * onComplete: algosdk.OnApplicationComplete.OptInOC,
475
+ * args: [new Uint8Array(1, 2, 3, 4)]
476
+ * accountReferences: ["ACCOUNT_1"]
477
+ * appReferences: [123n, 1234n]
478
+ * assetReferences: [12345n]
479
+ * boxReferences: ["box1", {appId: 1234n, name: "box2"}]
480
+ * lease: 'lease',
481
+ * note: 'note',
482
+ * // You wouldn't normally set this field
483
+ * firstValidRound: 1000n,
484
+ * validityWindow: 10,
485
+ * extraFee: (1000).microAlgo(),
486
+ * staticFee: (1000).microAlgo(),
487
+ * // Max fee doesn't make sense with extraFee AND staticFee
488
+ * // already specified, but here for completeness
489
+ * maxFee: (3000).microAlgo(),
490
+ * // Signer only needed if you want to provide one,
491
+ * // generally you'd register it with AlgorandClient
492
+ * // against the sender and not need to pass it in
493
+ * signer: transactionSigner,
494
+ * maxRoundsToWaitForConfirmation: 5,
495
+ * suppressLog: true,
496
+ *})
497
+ * ```
498
+ */
499
+ appCall: (params: import("./composer").AppCallParams) => Promise<Transaction>;
500
+ /** Create an application create call with ABI method call transaction.
501
+ *
502
+ * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.
503
+ *
504
+ * @param params The parameters for the app creation transaction
505
+ * @example Basic example
506
+ * ```typescript
507
+ * const method = new ABIMethod({
508
+ * name: 'method',
509
+ * args: [{ name: 'arg1', type: 'string' }],
510
+ * returns: { type: 'string' },
511
+ * })
512
+ * const result = await algorand.createTransaction.appCreateMethodCall({ sender: 'CREATORADDRESS', approvalProgram: 'TEALCODE', clearStateProgram: 'TEALCODE', method: method, args: ["arg1_value"] })
513
+ * const createdAppId = result.appId
514
+ * ```
515
+ * @example Advanced example
516
+ * ```typescript
517
+ * const method = new ABIMethod({
518
+ * name: 'method',
519
+ * args: [{ name: 'arg1', type: 'string' }],
520
+ * returns: { type: 'string' },
521
+ * })
522
+ * await algorand.createTransaction.appCreate({
523
+ * sender: 'CREATORADDRESS',
524
+ * method: method,
525
+ * args: ["arg1_value"],
526
+ * approvalProgram: "TEALCODE",
527
+ * clearStateProgram: "TEALCODE",
528
+ * schema: {
529
+ * globalInts: 1,
530
+ * globalByteSlices: 2,
531
+ * localInts: 3,
532
+ * localByteSlices: 4
533
+ * },
534
+ * extraProgramPages: 1,
535
+ * onComplete: algosdk.OnApplicationComplete.OptInOC,
536
+ * args: [new Uint8Array(1, 2, 3, 4)]
537
+ * accountReferences: ["ACCOUNT_1"]
538
+ * appReferences: [123n, 1234n]
539
+ * assetReferences: [12345n]
540
+ * boxReferences: ["box1", {appId: 1234n, name: "box2"}]
541
+ * lease: 'lease',
542
+ * note: 'note',
543
+ * // You wouldn't normally set this field
544
+ * firstValidRound: 1000n,
545
+ * validityWindow: 10,
546
+ * extraFee: (1000).microAlgo(),
547
+ * staticFee: (1000).microAlgo(),
548
+ * // Max fee doesn't make sense with extraFee AND staticFee
549
+ * // already specified, but here for completeness
550
+ * maxFee: (3000).microAlgo(),
551
+ * // Signer only needed if you want to provide one,
552
+ * // generally you'd register it with AlgorandClient
553
+ * // against the sender and not need to pass it in
554
+ * signer: transactionSigner,
555
+ * maxRoundsToWaitForConfirmation: 5,
556
+ * suppressLog: true,
557
+ *})
558
+ * ```
559
+ */
560
+ appCreateMethodCall: (params: import("./composer").AppCreateMethodCall) => Promise<Expand<BuiltTransactions>>;
561
+ /** Create an application update call with ABI method call transaction.
562
+ *
563
+ * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.
564
+ *
565
+ * @param params The parameters for the app update transaction
566
+ * @example Basic example
567
+ * ```typescript
568
+ * const method = new ABIMethod({
569
+ * name: 'method',
570
+ * args: [{ name: 'arg1', type: 'string' }],
571
+ * returns: { type: 'string' },
572
+ * })
573
+ * await algorand.createTransaction.appUpdateMethodCall({ sender: 'CREATORADDRESS', approvalProgram: 'TEALCODE', clearStateProgram: 'TEALCODE', method: method, args: ["arg1_value"] })
574
+ * ```
575
+ * @example Advanced example
576
+ * ```typescript
577
+ * const method = new ABIMethod({
578
+ * name: 'method',
579
+ * args: [{ name: 'arg1', type: 'string' }],
580
+ * returns: { type: 'string' },
581
+ * })
582
+ * await algorand.createTransaction.appUpdateMethodCall({
583
+ * sender: 'CREATORADDRESS',
584
+ * method: method,
585
+ * args: ["arg1_value"],
586
+ * approvalProgram: "TEALCODE",
587
+ * clearStateProgram: "TEALCODE",
588
+ * onComplete: algosdk.OnApplicationComplete.UpdateApplicationOC,
589
+ * args: [new Uint8Array(1, 2, 3, 4)]
590
+ * accountReferences: ["ACCOUNT_1"]
591
+ * appReferences: [123n, 1234n]
592
+ * assetReferences: [12345n]
593
+ * boxReferences: ["box1", {appId: 1234n, name: "box2"}]
594
+ * lease: 'lease',
595
+ * note: 'note',
596
+ * // You wouldn't normally set this field
597
+ * firstValidRound: 1000n,
598
+ * validityWindow: 10,
599
+ * extraFee: (1000).microAlgo(),
600
+ * staticFee: (1000).microAlgo(),
601
+ * // Max fee doesn't make sense with extraFee AND staticFee
602
+ * // already specified, but here for completeness
603
+ * maxFee: (3000).microAlgo(),
604
+ * // Signer only needed if you want to provide one,
605
+ * // generally you'd register it with AlgorandClient
606
+ * // against the sender and not need to pass it in
607
+ * signer: transactionSigner,
608
+ * maxRoundsToWaitForConfirmation: 5,
609
+ * suppressLog: true,
610
+ *})
611
+ * ```
612
+ */
613
+ appUpdateMethodCall: (params: import("./composer").AppUpdateMethodCall) => Promise<Expand<BuiltTransactions>>;
614
+ /** Create an application delete call with ABI method call transaction.
615
+ *
616
+ * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.
617
+ *
618
+ * @param params The parameters for the app deletion transaction
619
+ * @example Basic example
620
+ * ```typescript
621
+ * const method = new ABIMethod({
622
+ * name: 'method',
623
+ * args: [{ name: 'arg1', type: 'string' }],
624
+ * returns: { type: 'string' },
625
+ * })
626
+ * await algorand.createTransaction.appDeleteMethodCall({ sender: 'CREATORADDRESS', method: method, args: ["arg1_value"] })
627
+ * ```
628
+ * @example Advanced example
629
+ * ```typescript
630
+ * const method = new ABIMethod({
631
+ * name: 'method',
632
+ * args: [{ name: 'arg1', type: 'string' }],
633
+ * returns: { type: 'string' },
634
+ * })
635
+ * await algorand.createTransaction.appDeleteMethodCall({
636
+ * sender: 'CREATORADDRESS',
637
+ * method: method,
638
+ * args: ["arg1_value"],
639
+ * onComplete: algosdk.OnApplicationComplete.DeleteApplicationOC,
640
+ * args: [new Uint8Array(1, 2, 3, 4)]
641
+ * accountReferences: ["ACCOUNT_1"]
642
+ * appReferences: [123n, 1234n]
643
+ * assetReferences: [12345n]
644
+ * boxReferences: ["box1", {appId: 1234n, name: "box2"}]
645
+ * lease: 'lease',
646
+ * note: 'note',
647
+ * // You wouldn't normally set this field
648
+ * firstValidRound: 1000n,
649
+ * validityWindow: 10,
650
+ * extraFee: (1000).microAlgo(),
651
+ * staticFee: (1000).microAlgo(),
652
+ * // Max fee doesn't make sense with extraFee AND staticFee
653
+ * // already specified, but here for completeness
654
+ * maxFee: (3000).microAlgo(),
655
+ * // Signer only needed if you want to provide one,
656
+ * // generally you'd register it with AlgorandClient
657
+ * // against the sender and not need to pass it in
658
+ * signer: transactionSigner,
659
+ * maxRoundsToWaitForConfirmation: 5,
660
+ * suppressLog: true,
661
+ *})
662
+ * ```
663
+ */
664
+ appDeleteMethodCall: (params: import("./composer").AppDeleteMethodCall) => Promise<Expand<BuiltTransactions>>;
665
+ /** Create an application call with ABI method call transaction.
666
+ *
667
+ * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.
668
+ *
669
+ * @param params The parameters for the app call transaction
670
+ * @example Basic example
671
+ * ```typescript
672
+ * const method = new ABIMethod({
673
+ * name: 'method',
674
+ * args: [{ name: 'arg1', type: 'string' }],
675
+ * returns: { type: 'string' },
676
+ * })
677
+ * await algorand.createTransaction.appCallMethodCall({ sender: 'CREATORADDRESS', method: method, args: ["arg1_value"] })
678
+ * ```
679
+ * @example Advanced example
680
+ * ```typescript
681
+ * const method = new ABIMethod({
682
+ * name: 'method',
683
+ * args: [{ name: 'arg1', type: 'string' }],
684
+ * returns: { type: 'string' },
685
+ * })
686
+ * await algorand.createTransaction.appCallMethodCall({
687
+ * sender: 'CREATORADDRESS',
688
+ * method: method,
689
+ * args: ["arg1_value"],
690
+ * onComplete: algosdk.OnApplicationComplete.OptInOC,
691
+ * args: [new Uint8Array(1, 2, 3, 4)]
692
+ * accountReferences: ["ACCOUNT_1"]
693
+ * appReferences: [123n, 1234n]
694
+ * assetReferences: [12345n]
695
+ * boxReferences: ["box1", {appId: 1234n, name: "box2"}]
696
+ * lease: 'lease',
697
+ * note: 'note',
698
+ * // You wouldn't normally set this field
699
+ * firstValidRound: 1000n,
700
+ * validityWindow: 10,
701
+ * extraFee: (1000).microAlgo(),
702
+ * staticFee: (1000).microAlgo(),
703
+ * // Max fee doesn't make sense with extraFee AND staticFee
704
+ * // already specified, but here for completeness
705
+ * maxFee: (3000).microAlgo(),
706
+ * // Signer only needed if you want to provide one,
707
+ * // generally you'd register it with AlgorandClient
708
+ * // against the sender and not need to pass it in
709
+ * signer: transactionSigner,
710
+ * maxRoundsToWaitForConfirmation: 5,
711
+ * suppressLog: true,
712
+ *})
713
+ * ```
714
+ */
715
+ appCallMethodCall: (params: import("./composer").AppCallMethodCall) => Promise<Expand<BuiltTransactions>>;
716
+ /** Create an online key registration transaction. */
717
+ onlineKeyRegistration: (params: import("./composer").OnlineKeyRegistrationParams) => Promise<Transaction>;
718
+ }