@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,1158 @@
1
+ import algosdk, { Address } from 'algosdk';
2
+ import { SendAppCreateTransactionResult, SendAppTransactionResult, SendAppUpdateTransactionResult } from './app';
3
+ import { AppManager } from './app-manager';
4
+ import { AssetManager } from './asset-manager';
5
+ import { AssetCreateParams, AssetOptOutParams, TransactionComposer } from './composer';
6
+ import { SendParams, SendSingleTransactionResult } from './transaction';
7
+ /** Orchestrates sending transactions for `AlgorandClient`. */
8
+ export declare class AlgorandClientTransactionSender {
9
+ private _newGroup;
10
+ private _assetManager;
11
+ private _appManager;
12
+ /**
13
+ * Creates a new `AlgorandClientSender`
14
+ * @param newGroup A lambda that starts a new `TransactionComposer` transaction group
15
+ * @param assetManager An `AssetManager` instance
16
+ */
17
+ constructor(newGroup: () => TransactionComposer, assetManager: AssetManager, appManager: AppManager);
18
+ newGroup(): TransactionComposer;
19
+ private _send;
20
+ private _sendAppCall;
21
+ private _sendAppUpdateCall;
22
+ private _sendAppCreateCall;
23
+ /**
24
+ * Send a payment transaction to transfer Algo between accounts.
25
+ * @param params The parameters for the payment transaction
26
+ * @example Basic example
27
+ * ```typescript
28
+ * const result = await algorand.send.payment({
29
+ * sender: 'SENDERADDRESS',
30
+ * receiver: 'RECEIVERADDRESS',
31
+ * amount: (4).algo(),
32
+ * })
33
+ * ```
34
+ * @example Advanced example
35
+ * ```typescript
36
+ * const result = await algorand.send.payment({
37
+ * amount: (4).algo(),
38
+ * receiver: 'RECEIVERADDRESS',
39
+ * sender: 'SENDERADDRESS',
40
+ * closeRemainderTo: 'CLOSEREMAINDERTOADDRESS',
41
+ * lease: 'lease',
42
+ * note: 'note',
43
+ * // Use this with caution, it's generally better to use algorand.account.rekeyAccount
44
+ * rekeyTo: 'REKEYTOADDRESS',
45
+ * // You wouldn't normally set this field
46
+ * firstValidRound: 1000n,
47
+ * validityWindow: 10,
48
+ * extraFee: (1000).microAlgo(),
49
+ * staticFee: (1000).microAlgo(),
50
+ * // Max fee doesn't make sense with extraFee AND staticFee
51
+ * // already specified, but here for completeness
52
+ * maxFee: (3000).microAlgo(),
53
+ * // Signer only needed if you want to provide one,
54
+ * // generally you'd register it with AlgorandClient
55
+ * // against the sender and not need to pass it in
56
+ * signer: transactionSigner,
57
+ * maxRoundsToWaitForConfirmation: 5,
58
+ * suppressLog: true,
59
+ * })
60
+ * ```
61
+ *
62
+ * @returns The result of the transaction and the transaction that was sent
63
+ */
64
+ payment: (params: import("./composer").CommonTransactionParams & {
65
+ receiver: string | algosdk.Address;
66
+ amount: import("./amount").AlgoAmount;
67
+ closeRemainderTo?: string | algosdk.Address | undefined;
68
+ } & SendParams) => Promise<SendSingleTransactionResult>;
69
+ /**
70
+ * Create a new Algorand Standard Asset.
71
+ *
72
+ * The account that sends this transaction will automatically be
73
+ * opted in to the asset and will hold all units after creation.
74
+ *
75
+ * @param params The parameters for the asset creation transaction
76
+ *
77
+ * @example Basic example
78
+ * ```typescript
79
+ * await algorand.send.assetCreate({sender: "CREATORADDRESS", total: 100n})
80
+ * ```
81
+ * @example Advanced example
82
+ * ```typescript
83
+ * await algorand.send.assetCreate({
84
+ * sender: 'CREATORADDRESS',
85
+ * total: 100n,
86
+ * decimals: 2,
87
+ * assetName: 'asset',
88
+ * unitName: 'unit',
89
+ * url: 'url',
90
+ * metadataHash: 'metadataHash',
91
+ * defaultFrozen: false,
92
+ * manager: 'MANAGERADDRESS',
93
+ * reserve: 'RESERVEADDRESS',
94
+ * freeze: 'FREEZEADDRESS',
95
+ * clawback: 'CLAWBACKADDRESS',
96
+ * lease: 'lease',
97
+ * note: 'note',
98
+ * // You wouldn't normally set this field
99
+ * firstValidRound: 1000n,
100
+ * validityWindow: 10,
101
+ * extraFee: (1000).microAlgo(),
102
+ * staticFee: (1000).microAlgo(),
103
+ * // Max fee doesn't make sense with extraFee AND staticFee
104
+ * // already specified, but here for completeness
105
+ * maxFee: (3000).microAlgo(),
106
+ * // Signer only needed if you want to provide one,
107
+ * // generally you'd register it with AlgorandClient
108
+ * // against the sender and not need to pass it in
109
+ * signer: transactionSigner,
110
+ * maxRoundsToWaitForConfirmation: 5,
111
+ * suppressLog: true,
112
+ * })
113
+ * ```
114
+ * @returns The result of the transaction and the transaction that was sent
115
+ */
116
+ assetCreate: (params: AssetCreateParams & SendParams) => Promise<{
117
+ assetId: bigint;
118
+ groupId: string;
119
+ txIds: string[];
120
+ returns?: import("./app").ABIReturn[] | undefined;
121
+ confirmations: algosdk.modelsv2.PendingTransactionResponse[];
122
+ transactions: algosdk.Transaction[];
123
+ confirmation: algosdk.modelsv2.PendingTransactionResponse;
124
+ transaction: algosdk.Transaction;
125
+ }>;
126
+ /**
127
+ * Configure an existing Algorand Standard Asset.
128
+ *
129
+ * **Note:** The manager, reserve, freeze, and clawback addresses
130
+ * are immutably empty if they are not set. If manager is not set then
131
+ * all fields are immutable from that point forward.
132
+ *
133
+ * @param params The parameters for the asset config transaction
134
+ *
135
+ * @example Basic example
136
+ * ```typescript
137
+ * await algorand.send.assetConfig({sender: "MANAGERADDRESS", assetId: 123456n, manager: "MANAGERADDRESS" })
138
+ * ```
139
+ * @example Advanced example
140
+ * ```typescript
141
+ * await algorand.send.assetConfig({
142
+ * sender: 'MANAGERADDRESS',
143
+ * assetId: 123456n,
144
+ * manager: 'MANAGERADDRESS',
145
+ * reserve: 'RESERVEADDRESS',
146
+ * freeze: 'FREEZEADDRESS',
147
+ * clawback: 'CLAWBACKADDRESS',
148
+ * lease: 'lease',
149
+ * note: 'note',
150
+ * // You wouldn't normally set this field
151
+ * firstValidRound: 1000n,
152
+ * validityWindow: 10,
153
+ * extraFee: (1000).microAlgo(),
154
+ * staticFee: (1000).microAlgo(),
155
+ * // Max fee doesn't make sense with extraFee AND staticFee
156
+ * // already specified, but here for completeness
157
+ * maxFee: (3000).microAlgo(),
158
+ * // Signer only needed if you want to provide one,
159
+ * // generally you'd register it with AlgorandClient
160
+ * // against the sender and not need to pass it in
161
+ * signer: transactionSigner,
162
+ * maxRoundsToWaitForConfirmation: 5,
163
+ * suppressLog: true,
164
+ * })
165
+ * ```
166
+ * @returns The result of the transaction and the transaction that was sent
167
+ */
168
+ assetConfig: (params: import("./composer").CommonTransactionParams & {
169
+ assetId: bigint;
170
+ manager: string | algosdk.Address | undefined;
171
+ reserve?: string | algosdk.Address | undefined;
172
+ freeze?: string | algosdk.Address | undefined;
173
+ clawback?: string | algosdk.Address | undefined;
174
+ } & SendParams) => Promise<SendSingleTransactionResult>;
175
+ /**
176
+ * Freeze or unfreeze an Algorand Standard Asset for an account.
177
+ *
178
+ * @param params The parameters for the asset freeze transaction
179
+ *
180
+ * @example Basic example
181
+ * ```typescript
182
+ * await algorand.send.assetFreeze({sender: "MANAGERADDRESS", assetId: 123456n, account: "ACCOUNTADDRESS", frozen: true })
183
+ * ```
184
+ * @example Advanced example
185
+ * ```typescript
186
+ * await algorand.send.assetFreeze({
187
+ * sender: 'MANAGERADDRESS',
188
+ * assetId: 123456n,
189
+ * account: 'ACCOUNTADDRESS',
190
+ * frozen: true,
191
+ * lease: 'lease',
192
+ * note: 'note',
193
+ * // You wouldn't normally set this field
194
+ * firstValidRound: 1000n,
195
+ * validityWindow: 10,
196
+ * extraFee: (1000).microAlgo(),
197
+ * staticFee: (1000).microAlgo(),
198
+ * // Max fee doesn't make sense with extraFee AND staticFee
199
+ * // already specified, but here for completeness
200
+ * maxFee: (3000).microAlgo(),
201
+ * // Signer only needed if you want to provide one,
202
+ * // generally you'd register it with AlgorandClient
203
+ * // against the sender and not need to pass it in
204
+ * signer: transactionSigner,
205
+ * maxRoundsToWaitForConfirmation: 5,
206
+ * suppressLog: true,
207
+ * })
208
+ * ```
209
+ * @returns The result of the transaction and the transaction that was sent
210
+ */
211
+ assetFreeze: (params: import("./composer").CommonTransactionParams & {
212
+ assetId: bigint;
213
+ account: string | algosdk.Address;
214
+ frozen: boolean;
215
+ } & SendParams) => Promise<SendSingleTransactionResult>;
216
+ /**
217
+ * Destroys an Algorand Standard Asset.
218
+ *
219
+ * Created assets can be destroyed only by the asset manager account.
220
+ * All of the assets must be owned by the creator of the asset before
221
+ * the asset can be deleted.
222
+ *
223
+ * @param params The parameters for the asset destroy transaction
224
+ *
225
+ * @example Basic example
226
+ * ```typescript
227
+ * await algorand.send.assetDestroy({sender: "MANAGERADDRESS", assetId: 123456n })
228
+ * ```
229
+ * @example Advanced example
230
+ * ```typescript
231
+ * await algorand.send.assetDestroy({
232
+ * sender: 'MANAGERADDRESS',
233
+ * assetId: 123456n,
234
+ * lease: 'lease',
235
+ * note: 'note',
236
+ * // You wouldn't normally set this field
237
+ * firstValidRound: 1000n,
238
+ * validityWindow: 10,
239
+ * extraFee: (1000).microAlgo(),
240
+ * staticFee: (1000).microAlgo(),
241
+ * // Max fee doesn't make sense with extraFee AND staticFee
242
+ * // already specified, but here for completeness
243
+ * maxFee: (3000).microAlgo(),
244
+ * // Signer only needed if you want to provide one,
245
+ * // generally you'd register it with AlgorandClient
246
+ * // against the sender and not need to pass it in
247
+ * signer: transactionSigner,
248
+ * maxRoundsToWaitForConfirmation: 5,
249
+ * suppressLog: true,
250
+ * })
251
+ * ```
252
+ * @returns The result of the transaction and the transaction that was sent
253
+ */
254
+ assetDestroy: (params: import("./composer").CommonTransactionParams & {
255
+ assetId: bigint;
256
+ } & SendParams) => Promise<SendSingleTransactionResult>;
257
+ /**
258
+ * Transfer an Algorand Standard Asset.
259
+ *
260
+ * @param params The parameters for the asset transfer transaction
261
+ *
262
+ * @example Basic example
263
+ * ```typescript
264
+ * await algorand.send.assetTransfer({sender: "HOLDERADDRESS", assetId: 123456n, amount: 1n, receiver: "RECEIVERADDRESS" })
265
+ * ```
266
+ * @example Advanced example (with clawback)
267
+ * ```typescript
268
+ * await algorand.send.assetTransfer({
269
+ * sender: 'CLAWBACKADDRESS',
270
+ * assetId: 123456n,
271
+ * amount: 1n,
272
+ * receiver: 'RECEIVERADDRESS',
273
+ * clawbackTarget: 'HOLDERADDRESS',
274
+ * // This field needs to be used with caution
275
+ * closeAssetTo: 'ADDRESSTOCLOSETO'
276
+ * lease: 'lease',
277
+ * note: 'note',
278
+ * // You wouldn't normally set this field
279
+ * firstValidRound: 1000n,
280
+ * validityWindow: 10,
281
+ * extraFee: (1000).microAlgo(),
282
+ * staticFee: (1000).microAlgo(),
283
+ * // Max fee doesn't make sense with extraFee AND staticFee
284
+ * // already specified, but here for completeness
285
+ * maxFee: (3000).microAlgo(),
286
+ * // Signer only needed if you want to provide one,
287
+ * // generally you'd register it with AlgorandClient
288
+ * // against the sender and not need to pass it in
289
+ * signer: transactionSigner,
290
+ * maxRoundsToWaitForConfirmation: 5,
291
+ * suppressLog: true,
292
+ * })
293
+ * ```
294
+ * @returns The result of the transaction and the transaction that was sent
295
+ */
296
+ assetTransfer: (params: import("./composer").CommonTransactionParams & {
297
+ assetId: bigint;
298
+ amount: bigint;
299
+ receiver: string | algosdk.Address;
300
+ clawbackTarget?: string | algosdk.Address | undefined;
301
+ closeAssetTo?: string | algosdk.Address | undefined;
302
+ } & SendParams) => Promise<SendSingleTransactionResult>;
303
+ /**
304
+ * Opt an account into an Algorand Standard Asset.
305
+ *
306
+ * @param params The parameters for the asset opt-in transaction
307
+ *
308
+ * @example Basic example
309
+ * ```typescript
310
+ * await algorand.send.assetOptIn({sender: "SENDERADDRESS", assetId: 123456n })
311
+ * ```
312
+ * @example Advanced example
313
+ * ```typescript
314
+ * await algorand.send.assetOptIn({
315
+ * sender: 'SENDERADDRESS',
316
+ * assetId: 123456n,
317
+ * lease: 'lease',
318
+ * note: 'note',
319
+ * // You wouldn't normally set this field
320
+ * firstValidRound: 1000n,
321
+ * validityWindow: 10,
322
+ * extraFee: (1000).microAlgo(),
323
+ * staticFee: (1000).microAlgo(),
324
+ * // Max fee doesn't make sense with extraFee AND staticFee
325
+ * // already specified, but here for completeness
326
+ * maxFee: (3000).microAlgo(),
327
+ * // Signer only needed if you want to provide one,
328
+ * // generally you'd register it with AlgorandClient
329
+ * // against the sender and not need to pass it in
330
+ * signer: transactionSigner,
331
+ * maxRoundsToWaitForConfirmation: 5,
332
+ * suppressLog: true,
333
+ * })
334
+ * ```
335
+ * @returns The result of the transaction and the transaction that was sent
336
+ */
337
+ assetOptIn: (params: import("./composer").CommonTransactionParams & {
338
+ assetId: bigint;
339
+ } & SendParams) => Promise<SendSingleTransactionResult>;
340
+ /**
341
+ * Opt an account out of an Algorand Standard Asset.
342
+ *
343
+ * *Note:* If the account has a balance of the asset,
344
+ * it will not be able to opt-out unless `ensureZeroBalance`
345
+ * is set to `false` (but then the account will lose the assets).
346
+ *
347
+ * @param params The parameters for the asset opt-out transaction
348
+ *
349
+ * @example Basic example (without creator, will be retrieved from algod)
350
+ * ```typescript
351
+ * await algorand.send.assetOptOut({sender: "SENDERADDRESS", assetId: 123456n, ensureZeroBalance: true })
352
+ * ```
353
+ * @example Basic example (with creator)
354
+ * ```typescript
355
+ * await algorand.send.assetOptOut({sender: "SENDERADDRESS", creator: "CREATORADDRESS", assetId: 123456n, ensureZeroBalance: true })
356
+ * ```
357
+ * @example Advanced example
358
+ * ```typescript
359
+ * await algorand.send.assetOptOut({
360
+ * sender: 'SENDERADDRESS',
361
+ * assetId: 123456n,
362
+ * creator: 'CREATORADDRESS',
363
+ * ensureZeroBalance: true,
364
+ * lease: 'lease',
365
+ * note: 'note',
366
+ * // You wouldn't normally set this field
367
+ * firstValidRound: 1000n,
368
+ * validityWindow: 10,
369
+ * extraFee: (1000).microAlgo(),
370
+ * staticFee: (1000).microAlgo(),
371
+ * // Max fee doesn't make sense with extraFee AND staticFee
372
+ * // already specified, but here for completeness
373
+ * maxFee: (3000).microAlgo(),
374
+ * // Signer only needed if you want to provide one,
375
+ * // generally you'd register it with AlgorandClient
376
+ * // against the sender and not need to pass it in
377
+ * signer: transactionSigner,
378
+ * maxRoundsToWaitForConfirmation: 5,
379
+ * suppressLog: true,
380
+ * })
381
+ * ```
382
+ * @returns The result of the transaction and the transaction that was sent
383
+ */
384
+ assetOptOut: (params: Omit<AssetOptOutParams, 'creator'> & {
385
+ /** Optional asset creator account address; if not specified it will be retrieved from algod */
386
+ creator?: string | Address;
387
+ /** Whether or not to check if the account has a zero balance first or not.
388
+ *
389
+ * If this is set to `true` and the account has an asset balance it will throw an error.
390
+ *
391
+ * If this is set to `false` and the account has an asset balance it will lose those assets to the asset creator.
392
+ */
393
+ ensureZeroBalance: boolean;
394
+ } & SendParams) => Promise<{
395
+ groupId: string;
396
+ txIds: string[];
397
+ returns?: import("./app").ABIReturn[] | undefined;
398
+ confirmations: algosdk.modelsv2.PendingTransactionResponse[];
399
+ transactions: algosdk.Transaction[];
400
+ confirmation: algosdk.modelsv2.PendingTransactionResponse;
401
+ transaction: algosdk.Transaction;
402
+ }>;
403
+ /**
404
+ * Create a smart contract.
405
+ *
406
+ * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.
407
+ *
408
+ * @param params The parameters for the app creation transaction
409
+ * @example Basic example
410
+ * ```typescript
411
+ * const result = await algorand.send.appCreate({ sender: 'CREATORADDRESS', approvalProgram: 'TEALCODE', clearStateProgram: 'TEALCODE' })
412
+ * const createdAppId = result.appId
413
+ * ```
414
+ * @example Advanced example
415
+ * ```typescript
416
+ * await algorand.send.appCreate({
417
+ * sender: 'CREATORADDRESS',
418
+ * approvalProgram: "TEALCODE",
419
+ * clearStateProgram: "TEALCODE",
420
+ * schema: {
421
+ * globalInts: 1,
422
+ * globalByteSlices: 2,
423
+ * localInts: 3,
424
+ * localByteSlices: 4
425
+ * },
426
+ * extraProgramPages: 1,
427
+ * onComplete: algosdk.OnApplicationComplete.OptInOC,
428
+ * args: [new Uint8Array(1, 2, 3, 4)]
429
+ * accountReferences: ["ACCOUNT_1"]
430
+ * appReferences: [123n, 1234n]
431
+ * assetReferences: [12345n]
432
+ * boxReferences: ["box1", {appId: 1234n, name: "box2"}]
433
+ * lease: 'lease',
434
+ * note: 'note',
435
+ * // You wouldn't normally set this field
436
+ * firstValidRound: 1000n,
437
+ * validityWindow: 10,
438
+ * extraFee: (1000).microAlgo(),
439
+ * staticFee: (1000).microAlgo(),
440
+ * // Max fee doesn't make sense with extraFee AND staticFee
441
+ * // already specified, but here for completeness
442
+ * maxFee: (3000).microAlgo(),
443
+ * // Signer only needed if you want to provide one,
444
+ * // generally you'd register it with AlgorandClient
445
+ * // against the sender and not need to pass it in
446
+ * signer: transactionSigner,
447
+ * maxRoundsToWaitForConfirmation: 5,
448
+ * suppressLog: true,
449
+ *})
450
+ * ```
451
+ */
452
+ appCreate: (params: {
453
+ sender: string | algosdk.Address;
454
+ maxFee?: import("./amount").AlgoAmount | undefined;
455
+ note?: string | Uint8Array | undefined;
456
+ args?: Uint8Array[] | undefined;
457
+ signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
458
+ onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
459
+ lease?: string | Uint8Array | undefined;
460
+ rekeyTo?: string | algosdk.Address | undefined;
461
+ staticFee?: import("./amount").AlgoAmount | undefined;
462
+ extraFee?: import("./amount").AlgoAmount | undefined;
463
+ validityWindow?: number | bigint | undefined;
464
+ firstValidRound?: bigint | undefined;
465
+ lastValidRound?: bigint | undefined;
466
+ accountReferences?: (string | algosdk.Address)[] | undefined;
467
+ appReferences?: bigint[] | undefined;
468
+ assetReferences?: bigint[] | undefined;
469
+ boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
470
+ approvalProgram: string | Uint8Array;
471
+ clearStateProgram: string | Uint8Array;
472
+ schema?: {
473
+ globalInts: number;
474
+ globalByteSlices: number;
475
+ localInts: number;
476
+ localByteSlices: number;
477
+ } | undefined;
478
+ extraProgramPages?: number | undefined;
479
+ } & SendParams) => Promise<SendAppCreateTransactionResult>;
480
+ /**
481
+ * Update a smart contract.
482
+ *
483
+ * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.
484
+ *
485
+ * @param params The parameters for the app update transaction
486
+ * @example Basic example
487
+ * ```typescript
488
+ * await algorand.send.appUpdate({ sender: 'CREATORADDRESS', approvalProgram: 'TEALCODE', clearStateProgram: 'TEALCODE' })
489
+ * ```
490
+ * @example Advanced example
491
+ * ```typescript
492
+ * await algorand.send.appUpdate({
493
+ * sender: 'CREATORADDRESS',
494
+ * approvalProgram: "TEALCODE",
495
+ * clearStateProgram: "TEALCODE",
496
+ * onComplete: algosdk.OnApplicationComplete.UpdateApplicationOC,
497
+ * args: [new Uint8Array(1, 2, 3, 4)]
498
+ * accountReferences: ["ACCOUNT_1"]
499
+ * appReferences: [123n, 1234n]
500
+ * assetReferences: [12345n]
501
+ * boxReferences: ["box1", {appId: 1234n, name: "box2"}]
502
+ * lease: 'lease',
503
+ * note: 'note',
504
+ * // You wouldn't normally set this field
505
+ * firstValidRound: 1000n,
506
+ * validityWindow: 10,
507
+ * extraFee: (1000).microAlgo(),
508
+ * staticFee: (1000).microAlgo(),
509
+ * // Max fee doesn't make sense with extraFee AND staticFee
510
+ * // already specified, but here for completeness
511
+ * maxFee: (3000).microAlgo(),
512
+ * // Signer only needed if you want to provide one,
513
+ * // generally you'd register it with AlgorandClient
514
+ * // against the sender and not need to pass it in
515
+ * signer: transactionSigner,
516
+ * maxRoundsToWaitForConfirmation: 5,
517
+ * suppressLog: true,
518
+ *})
519
+ * ```
520
+ */
521
+ appUpdate: (params: {
522
+ sender: string | algosdk.Address;
523
+ signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
524
+ rekeyTo?: string | algosdk.Address | undefined;
525
+ note?: string | Uint8Array | undefined;
526
+ lease?: string | Uint8Array | undefined;
527
+ staticFee?: import("./amount").AlgoAmount | undefined;
528
+ extraFee?: import("./amount").AlgoAmount | undefined;
529
+ maxFee?: import("./amount").AlgoAmount | undefined;
530
+ validityWindow?: number | bigint | undefined;
531
+ firstValidRound?: bigint | undefined;
532
+ lastValidRound?: bigint | undefined;
533
+ appId: bigint;
534
+ onComplete?: algosdk.OnApplicationComplete.UpdateApplicationOC | undefined;
535
+ args?: Uint8Array[] | undefined;
536
+ accountReferences?: (string | algosdk.Address)[] | undefined;
537
+ appReferences?: bigint[] | undefined;
538
+ assetReferences?: bigint[] | undefined;
539
+ boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
540
+ approvalProgram: string | Uint8Array;
541
+ clearStateProgram: string | Uint8Array;
542
+ } & SendParams) => Promise<SendAppUpdateTransactionResult>;
543
+ /**
544
+ * Delete a smart contract.
545
+ *
546
+ * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.
547
+ *
548
+ * @param params The parameters for the app deletion transaction
549
+ * @example Basic example
550
+ * ```typescript
551
+ * await algorand.send.appDelete({ sender: 'CREATORADDRESS' })
552
+ * ```
553
+ * @example Advanced example
554
+ * ```typescript
555
+ * await algorand.send.appDelete({
556
+ * sender: 'CREATORADDRESS',
557
+ * onComplete: algosdk.OnApplicationComplete.DeleteApplicationOC,
558
+ * args: [new Uint8Array(1, 2, 3, 4)]
559
+ * accountReferences: ["ACCOUNT_1"]
560
+ * appReferences: [123n, 1234n]
561
+ * assetReferences: [12345n]
562
+ * boxReferences: ["box1", {appId: 1234n, name: "box2"}]
563
+ * lease: 'lease',
564
+ * note: 'note',
565
+ * // You wouldn't normally set this field
566
+ * firstValidRound: 1000n,
567
+ * validityWindow: 10,
568
+ * extraFee: (1000).microAlgo(),
569
+ * staticFee: (1000).microAlgo(),
570
+ * // Max fee doesn't make sense with extraFee AND staticFee
571
+ * // already specified, but here for completeness
572
+ * maxFee: (3000).microAlgo(),
573
+ * // Signer only needed if you want to provide one,
574
+ * // generally you'd register it with AlgorandClient
575
+ * // against the sender and not need to pass it in
576
+ * signer: transactionSigner,
577
+ * maxRoundsToWaitForConfirmation: 5,
578
+ * suppressLog: true,
579
+ *})
580
+ * ```
581
+ */
582
+ appDelete: (params: import("./composer").CommonTransactionParams & {
583
+ appId: bigint;
584
+ onComplete?: algosdk.OnApplicationComplete | undefined;
585
+ args?: Uint8Array[] | undefined;
586
+ accountReferences?: (string | algosdk.Address)[] | undefined;
587
+ appReferences?: bigint[] | undefined;
588
+ assetReferences?: bigint[] | undefined;
589
+ boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
590
+ } & {
591
+ onComplete?: algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
592
+ } & SendParams) => Promise<SendAppTransactionResult>;
593
+ /**
594
+ * Call a smart contract.
595
+ *
596
+ * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.
597
+ *
598
+ * @param params The parameters for the app call transaction
599
+ * @example Basic example
600
+ * ```typescript
601
+ * await algorand.send.appCall({ sender: 'CREATORADDRESS' })
602
+ * ```
603
+ * @example Advanced example
604
+ * ```typescript
605
+ * await algorand.send.appCall({
606
+ * sender: 'CREATORADDRESS',
607
+ * onComplete: algosdk.OnApplicationComplete.OptInOC,
608
+ * args: [new Uint8Array(1, 2, 3, 4)]
609
+ * accountReferences: ["ACCOUNT_1"]
610
+ * appReferences: [123n, 1234n]
611
+ * assetReferences: [12345n]
612
+ * boxReferences: ["box1", {appId: 1234n, name: "box2"}]
613
+ * lease: 'lease',
614
+ * note: 'note',
615
+ * // You wouldn't normally set this field
616
+ * firstValidRound: 1000n,
617
+ * validityWindow: 10,
618
+ * extraFee: (1000).microAlgo(),
619
+ * staticFee: (1000).microAlgo(),
620
+ * // Max fee doesn't make sense with extraFee AND staticFee
621
+ * // already specified, but here for completeness
622
+ * maxFee: (3000).microAlgo(),
623
+ * // Signer only needed if you want to provide one,
624
+ * // generally you'd register it with AlgorandClient
625
+ * // against the sender and not need to pass it in
626
+ * signer: transactionSigner,
627
+ * maxRoundsToWaitForConfirmation: 5,
628
+ * suppressLog: true,
629
+ *})
630
+ * ```
631
+ */
632
+ appCall: (params: import("./composer").CommonTransactionParams & {
633
+ appId: bigint;
634
+ onComplete?: algosdk.OnApplicationComplete | undefined;
635
+ args?: Uint8Array[] | undefined;
636
+ accountReferences?: (string | algosdk.Address)[] | undefined;
637
+ appReferences?: bigint[] | undefined;
638
+ assetReferences?: bigint[] | undefined;
639
+ boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
640
+ } & {
641
+ onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.ClearStateOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
642
+ } & SendParams) => Promise<SendAppTransactionResult>;
643
+ /**
644
+ * Create a smart contract via an ABI method.
645
+ *
646
+ * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.
647
+ *
648
+ * @param params The parameters for the app creation transaction
649
+ * @example Basic example
650
+ * ```typescript
651
+ * const method = new ABIMethod({
652
+ * name: 'method',
653
+ * args: [{ name: 'arg1', type: 'string' }],
654
+ * returns: { type: 'string' },
655
+ * })
656
+ * const result = await algorand.send.appCreateMethodCall({ sender: 'CREATORADDRESS', approvalProgram: 'TEALCODE', clearStateProgram: 'TEALCODE', method: method, args: ["arg1_value"] })
657
+ * const createdAppId = result.appId
658
+ * ```
659
+ * @example Advanced example
660
+ * ```typescript
661
+ * const method = new ABIMethod({
662
+ * name: 'method',
663
+ * args: [{ name: 'arg1', type: 'string' }],
664
+ * returns: { type: 'string' },
665
+ * })
666
+ * await algorand.send.appCreate({
667
+ * sender: 'CREATORADDRESS',
668
+ * method: method,
669
+ * args: ["arg1_value"],
670
+ * approvalProgram: "TEALCODE",
671
+ * clearStateProgram: "TEALCODE",
672
+ * schema: {
673
+ * globalInts: 1,
674
+ * globalByteSlices: 2,
675
+ * localInts: 3,
676
+ * localByteSlices: 4
677
+ * },
678
+ * extraProgramPages: 1,
679
+ * onComplete: algosdk.OnApplicationComplete.OptInOC,
680
+ * args: [new Uint8Array(1, 2, 3, 4)]
681
+ * accountReferences: ["ACCOUNT_1"]
682
+ * appReferences: [123n, 1234n]
683
+ * assetReferences: [12345n]
684
+ * boxReferences: ["box1", {appId: 1234n, name: "box2"}]
685
+ * lease: 'lease',
686
+ * note: 'note',
687
+ * // You wouldn't normally set this field
688
+ * firstValidRound: 1000n,
689
+ * validityWindow: 10,
690
+ * extraFee: (1000).microAlgo(),
691
+ * staticFee: (1000).microAlgo(),
692
+ * // Max fee doesn't make sense with extraFee AND staticFee
693
+ * // already specified, but here for completeness
694
+ * maxFee: (3000).microAlgo(),
695
+ * // Signer only needed if you want to provide one,
696
+ * // generally you'd register it with AlgorandClient
697
+ * // against the sender and not need to pass it in
698
+ * signer: transactionSigner,
699
+ * maxRoundsToWaitForConfirmation: 5,
700
+ * suppressLog: true,
701
+ *})
702
+ * ```
703
+ */
704
+ appCreateMethodCall: (params: {
705
+ sender: string | algosdk.Address;
706
+ maxFee?: import("./amount").AlgoAmount | undefined;
707
+ approvalProgram: string | Uint8Array;
708
+ clearStateProgram: string | Uint8Array;
709
+ note?: string | Uint8Array | undefined;
710
+ schema?: {
711
+ globalInts: number;
712
+ globalByteSlices: number;
713
+ localInts: number;
714
+ localByteSlices: number;
715
+ } | undefined;
716
+ signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
717
+ onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
718
+ lease?: string | Uint8Array | undefined;
719
+ rekeyTo?: string | algosdk.Address | undefined;
720
+ extraProgramPages?: number | undefined;
721
+ staticFee?: import("./amount").AlgoAmount | undefined;
722
+ extraFee?: import("./amount").AlgoAmount | undefined;
723
+ validityWindow?: number | bigint | undefined;
724
+ firstValidRound?: bigint | undefined;
725
+ lastValidRound?: bigint | undefined;
726
+ accountReferences?: (string | algosdk.Address)[] | undefined;
727
+ appReferences?: bigint[] | undefined;
728
+ assetReferences?: bigint[] | undefined;
729
+ boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
730
+ } & {
731
+ method: algosdk.ABIMethod;
732
+ args?: (algosdk.Address | algosdk.Transaction | algosdk.ABIValue | algosdk.TransactionWithSigner | Promise<algosdk.Transaction> | import("./composer").AppMethodCall<{
733
+ sender: string | algosdk.Address;
734
+ maxFee?: import("./amount").AlgoAmount | undefined;
735
+ note?: string | Uint8Array | undefined;
736
+ args?: Uint8Array[] | undefined;
737
+ signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
738
+ onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
739
+ lease?: string | Uint8Array | undefined;
740
+ rekeyTo?: string | algosdk.Address | undefined;
741
+ staticFee?: import("./amount").AlgoAmount | undefined;
742
+ extraFee?: import("./amount").AlgoAmount | undefined;
743
+ validityWindow?: number | bigint | undefined;
744
+ firstValidRound?: bigint | undefined;
745
+ lastValidRound?: bigint | undefined;
746
+ accountReferences?: (string | algosdk.Address)[] | undefined;
747
+ appReferences?: bigint[] | undefined;
748
+ assetReferences?: bigint[] | undefined;
749
+ boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
750
+ approvalProgram: string | Uint8Array;
751
+ clearStateProgram: string | Uint8Array;
752
+ schema?: {
753
+ globalInts: number;
754
+ globalByteSlices: number;
755
+ localInts: number;
756
+ localByteSlices: number;
757
+ } | undefined;
758
+ extraProgramPages?: number | undefined;
759
+ }> | import("./composer").AppMethodCall<{
760
+ sender: string | algosdk.Address;
761
+ signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
762
+ rekeyTo?: string | algosdk.Address | undefined;
763
+ note?: string | Uint8Array | undefined;
764
+ lease?: string | Uint8Array | undefined;
765
+ staticFee?: import("./amount").AlgoAmount | undefined;
766
+ extraFee?: import("./amount").AlgoAmount | undefined;
767
+ maxFee?: import("./amount").AlgoAmount | undefined;
768
+ validityWindow?: number | bigint | undefined;
769
+ firstValidRound?: bigint | undefined;
770
+ lastValidRound?: bigint | undefined;
771
+ appId: bigint;
772
+ onComplete?: algosdk.OnApplicationComplete.UpdateApplicationOC | undefined;
773
+ args?: Uint8Array[] | undefined;
774
+ accountReferences?: (string | algosdk.Address)[] | undefined;
775
+ appReferences?: bigint[] | undefined;
776
+ assetReferences?: bigint[] | undefined;
777
+ boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
778
+ approvalProgram: string | Uint8Array;
779
+ clearStateProgram: string | Uint8Array;
780
+ }> | import("./composer").AppMethodCall<import("./composer").AppMethodCallParams> | undefined)[] | undefined;
781
+ } & SendParams) => Promise<SendAppCreateTransactionResult>;
782
+ /**
783
+ * Update a smart contract via an ABI method.
784
+ *
785
+ * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.
786
+ *
787
+ * @param params The parameters for the app update transaction
788
+ * @example Basic example
789
+ * ```typescript
790
+ * const method = new ABIMethod({
791
+ * name: 'method',
792
+ * args: [{ name: 'arg1', type: 'string' }],
793
+ * returns: { type: 'string' },
794
+ * })
795
+ * await algorand.send.appUpdateMethodCall({ sender: 'CREATORADDRESS', approvalProgram: 'TEALCODE', clearStateProgram: 'TEALCODE', method: method, args: ["arg1_value"] })
796
+ * ```
797
+ * @example Advanced example
798
+ * ```typescript
799
+ * const method = new ABIMethod({
800
+ * name: 'method',
801
+ * args: [{ name: 'arg1', type: 'string' }],
802
+ * returns: { type: 'string' },
803
+ * })
804
+ * await algorand.send.appUpdateMethodCall({
805
+ * sender: 'CREATORADDRESS',
806
+ * method: method,
807
+ * args: ["arg1_value"],
808
+ * approvalProgram: "TEALCODE",
809
+ * clearStateProgram: "TEALCODE",
810
+ * onComplete: algosdk.OnApplicationComplete.UpdateApplicationOC,
811
+ * args: [new Uint8Array(1, 2, 3, 4)]
812
+ * accountReferences: ["ACCOUNT_1"]
813
+ * appReferences: [123n, 1234n]
814
+ * assetReferences: [12345n]
815
+ * boxReferences: ["box1", {appId: 1234n, name: "box2"}]
816
+ * lease: 'lease',
817
+ * note: 'note',
818
+ * // You wouldn't normally set this field
819
+ * firstValidRound: 1000n,
820
+ * validityWindow: 10,
821
+ * extraFee: (1000).microAlgo(),
822
+ * staticFee: (1000).microAlgo(),
823
+ * // Max fee doesn't make sense with extraFee AND staticFee
824
+ * // already specified, but here for completeness
825
+ * maxFee: (3000).microAlgo(),
826
+ * // Signer only needed if you want to provide one,
827
+ * // generally you'd register it with AlgorandClient
828
+ * // against the sender and not need to pass it in
829
+ * signer: transactionSigner,
830
+ * maxRoundsToWaitForConfirmation: 5,
831
+ * suppressLog: true,
832
+ *})
833
+ * ```
834
+ */
835
+ appUpdateMethodCall: (params: {
836
+ sender: string | algosdk.Address;
837
+ maxFee?: import("./amount").AlgoAmount | undefined;
838
+ approvalProgram: string | Uint8Array;
839
+ clearStateProgram: string | Uint8Array;
840
+ note?: string | Uint8Array | undefined;
841
+ appId: bigint;
842
+ signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
843
+ onComplete?: algosdk.OnApplicationComplete.UpdateApplicationOC | undefined;
844
+ lease?: string | Uint8Array | undefined;
845
+ rekeyTo?: string | algosdk.Address | undefined;
846
+ staticFee?: import("./amount").AlgoAmount | undefined;
847
+ extraFee?: import("./amount").AlgoAmount | undefined;
848
+ validityWindow?: number | bigint | undefined;
849
+ firstValidRound?: bigint | undefined;
850
+ lastValidRound?: bigint | undefined;
851
+ accountReferences?: (string | algosdk.Address)[] | undefined;
852
+ appReferences?: bigint[] | undefined;
853
+ assetReferences?: bigint[] | undefined;
854
+ boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
855
+ } & {
856
+ method: algosdk.ABIMethod;
857
+ args?: (algosdk.Address | algosdk.Transaction | algosdk.ABIValue | algosdk.TransactionWithSigner | Promise<algosdk.Transaction> | import("./composer").AppMethodCall<{
858
+ sender: string | algosdk.Address;
859
+ maxFee?: import("./amount").AlgoAmount | undefined;
860
+ note?: string | Uint8Array | undefined;
861
+ args?: Uint8Array[] | undefined;
862
+ signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
863
+ onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
864
+ lease?: string | Uint8Array | undefined;
865
+ rekeyTo?: string | algosdk.Address | undefined;
866
+ staticFee?: import("./amount").AlgoAmount | undefined;
867
+ extraFee?: import("./amount").AlgoAmount | undefined;
868
+ validityWindow?: number | bigint | undefined;
869
+ firstValidRound?: bigint | undefined;
870
+ lastValidRound?: bigint | undefined;
871
+ accountReferences?: (string | algosdk.Address)[] | undefined;
872
+ appReferences?: bigint[] | undefined;
873
+ assetReferences?: bigint[] | undefined;
874
+ boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
875
+ approvalProgram: string | Uint8Array;
876
+ clearStateProgram: string | Uint8Array;
877
+ schema?: {
878
+ globalInts: number;
879
+ globalByteSlices: number;
880
+ localInts: number;
881
+ localByteSlices: number;
882
+ } | undefined;
883
+ extraProgramPages?: number | undefined;
884
+ }> | import("./composer").AppMethodCall<{
885
+ sender: string | algosdk.Address;
886
+ signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
887
+ rekeyTo?: string | algosdk.Address | undefined;
888
+ note?: string | Uint8Array | undefined;
889
+ lease?: string | Uint8Array | undefined;
890
+ staticFee?: import("./amount").AlgoAmount | undefined;
891
+ extraFee?: import("./amount").AlgoAmount | undefined;
892
+ maxFee?: import("./amount").AlgoAmount | undefined;
893
+ validityWindow?: number | bigint | undefined;
894
+ firstValidRound?: bigint | undefined;
895
+ lastValidRound?: bigint | undefined;
896
+ appId: bigint;
897
+ onComplete?: algosdk.OnApplicationComplete.UpdateApplicationOC | undefined;
898
+ args?: Uint8Array[] | undefined;
899
+ accountReferences?: (string | algosdk.Address)[] | undefined;
900
+ appReferences?: bigint[] | undefined;
901
+ assetReferences?: bigint[] | undefined;
902
+ boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
903
+ approvalProgram: string | Uint8Array;
904
+ clearStateProgram: string | Uint8Array;
905
+ }> | import("./composer").AppMethodCall<import("./composer").AppMethodCallParams> | undefined)[] | undefined;
906
+ } & SendParams) => Promise<SendAppUpdateTransactionResult>;
907
+ /**
908
+ * Delete a smart contract via an ABI method.
909
+ *
910
+ * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.
911
+ *
912
+ * @param params The parameters for the app deletion transaction
913
+ * @example Basic example
914
+ * ```typescript
915
+ * const method = new ABIMethod({
916
+ * name: 'method',
917
+ * args: [{ name: 'arg1', type: 'string' }],
918
+ * returns: { type: 'string' },
919
+ * })
920
+ * await algorand.send.appDeleteMethodCall({ sender: 'CREATORADDRESS', method: method, args: ["arg1_value"] })
921
+ * ```
922
+ * @example Advanced example
923
+ * ```typescript
924
+ * const method = new ABIMethod({
925
+ * name: 'method',
926
+ * args: [{ name: 'arg1', type: 'string' }],
927
+ * returns: { type: 'string' },
928
+ * })
929
+ * await algorand.send.appDeleteMethodCall({
930
+ * sender: 'CREATORADDRESS',
931
+ * method: method,
932
+ * args: ["arg1_value"],
933
+ * onComplete: algosdk.OnApplicationComplete.DeleteApplicationOC,
934
+ * args: [new Uint8Array(1, 2, 3, 4)]
935
+ * accountReferences: ["ACCOUNT_1"]
936
+ * appReferences: [123n, 1234n]
937
+ * assetReferences: [12345n]
938
+ * boxReferences: ["box1", {appId: 1234n, name: "box2"}]
939
+ * lease: 'lease',
940
+ * note: 'note',
941
+ * // You wouldn't normally set this field
942
+ * firstValidRound: 1000n,
943
+ * validityWindow: 10,
944
+ * extraFee: (1000).microAlgo(),
945
+ * staticFee: (1000).microAlgo(),
946
+ * // Max fee doesn't make sense with extraFee AND staticFee
947
+ * // already specified, but here for completeness
948
+ * maxFee: (3000).microAlgo(),
949
+ * // Signer only needed if you want to provide one,
950
+ * // generally you'd register it with AlgorandClient
951
+ * // against the sender and not need to pass it in
952
+ * signer: transactionSigner,
953
+ * maxRoundsToWaitForConfirmation: 5,
954
+ * suppressLog: true,
955
+ *})
956
+ * ```
957
+ */
958
+ appDeleteMethodCall: (params: {
959
+ sender: string | algosdk.Address;
960
+ maxFee?: import("./amount").AlgoAmount | undefined;
961
+ note?: string | Uint8Array | undefined;
962
+ appId: bigint;
963
+ signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
964
+ onComplete?: algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
965
+ lease?: string | Uint8Array | undefined;
966
+ rekeyTo?: string | algosdk.Address | undefined;
967
+ staticFee?: import("./amount").AlgoAmount | undefined;
968
+ extraFee?: import("./amount").AlgoAmount | undefined;
969
+ validityWindow?: number | bigint | undefined;
970
+ firstValidRound?: bigint | undefined;
971
+ lastValidRound?: bigint | undefined;
972
+ accountReferences?: (string | algosdk.Address)[] | undefined;
973
+ appReferences?: bigint[] | undefined;
974
+ assetReferences?: bigint[] | undefined;
975
+ boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
976
+ } & {
977
+ method: algosdk.ABIMethod;
978
+ args?: (algosdk.Address | algosdk.Transaction | algosdk.ABIValue | algosdk.TransactionWithSigner | Promise<algosdk.Transaction> | import("./composer").AppMethodCall<{
979
+ sender: string | algosdk.Address;
980
+ maxFee?: import("./amount").AlgoAmount | undefined;
981
+ note?: string | Uint8Array | undefined;
982
+ args?: Uint8Array[] | undefined;
983
+ signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
984
+ onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
985
+ lease?: string | Uint8Array | undefined;
986
+ rekeyTo?: string | algosdk.Address | undefined;
987
+ staticFee?: import("./amount").AlgoAmount | undefined;
988
+ extraFee?: import("./amount").AlgoAmount | undefined;
989
+ validityWindow?: number | bigint | undefined;
990
+ firstValidRound?: bigint | undefined;
991
+ lastValidRound?: bigint | undefined;
992
+ accountReferences?: (string | algosdk.Address)[] | undefined;
993
+ appReferences?: bigint[] | undefined;
994
+ assetReferences?: bigint[] | undefined;
995
+ boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
996
+ approvalProgram: string | Uint8Array;
997
+ clearStateProgram: string | Uint8Array;
998
+ schema?: {
999
+ globalInts: number;
1000
+ globalByteSlices: number;
1001
+ localInts: number;
1002
+ localByteSlices: number;
1003
+ } | undefined;
1004
+ extraProgramPages?: number | undefined;
1005
+ }> | import("./composer").AppMethodCall<{
1006
+ sender: string | algosdk.Address;
1007
+ signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
1008
+ rekeyTo?: string | algosdk.Address | undefined;
1009
+ note?: string | Uint8Array | undefined;
1010
+ lease?: string | Uint8Array | undefined;
1011
+ staticFee?: import("./amount").AlgoAmount | undefined;
1012
+ extraFee?: import("./amount").AlgoAmount | undefined;
1013
+ maxFee?: import("./amount").AlgoAmount | undefined;
1014
+ validityWindow?: number | bigint | undefined;
1015
+ firstValidRound?: bigint | undefined;
1016
+ lastValidRound?: bigint | undefined;
1017
+ appId: bigint;
1018
+ onComplete?: algosdk.OnApplicationComplete.UpdateApplicationOC | undefined;
1019
+ args?: Uint8Array[] | undefined;
1020
+ accountReferences?: (string | algosdk.Address)[] | undefined;
1021
+ appReferences?: bigint[] | undefined;
1022
+ assetReferences?: bigint[] | undefined;
1023
+ boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
1024
+ approvalProgram: string | Uint8Array;
1025
+ clearStateProgram: string | Uint8Array;
1026
+ }> | import("./composer").AppMethodCall<import("./composer").AppMethodCallParams> | undefined)[] | undefined;
1027
+ } & SendParams) => Promise<SendAppTransactionResult>;
1028
+ /**
1029
+ * Call a smart contract via an ABI method.
1030
+ *
1031
+ * Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.
1032
+ *
1033
+ * @param params The parameters for the app call transaction
1034
+ * @example Basic example
1035
+ * ```typescript
1036
+ * const method = new ABIMethod({
1037
+ * name: 'method',
1038
+ * args: [{ name: 'arg1', type: 'string' }],
1039
+ * returns: { type: 'string' },
1040
+ * })
1041
+ * await algorand.send.appCallMethodCall({ sender: 'CREATORADDRESS', method: method, args: ["arg1_value"] })
1042
+ * ```
1043
+ * @example Advanced example
1044
+ * ```typescript
1045
+ * const method = new ABIMethod({
1046
+ * name: 'method',
1047
+ * args: [{ name: 'arg1', type: 'string' }],
1048
+ * returns: { type: 'string' },
1049
+ * })
1050
+ * await algorand.send.appCallMethodCall({
1051
+ * sender: 'CREATORADDRESS',
1052
+ * method: method,
1053
+ * args: ["arg1_value"],
1054
+ * onComplete: algosdk.OnApplicationComplete.OptInOC,
1055
+ * args: [new Uint8Array(1, 2, 3, 4)]
1056
+ * accountReferences: ["ACCOUNT_1"]
1057
+ * appReferences: [123n, 1234n]
1058
+ * assetReferences: [12345n]
1059
+ * boxReferences: ["box1", {appId: 1234n, name: "box2"}]
1060
+ * lease: 'lease',
1061
+ * note: 'note',
1062
+ * // You wouldn't normally set this field
1063
+ * firstValidRound: 1000n,
1064
+ * validityWindow: 10,
1065
+ * extraFee: (1000).microAlgo(),
1066
+ * staticFee: (1000).microAlgo(),
1067
+ * // Max fee doesn't make sense with extraFee AND staticFee
1068
+ * // already specified, but here for completeness
1069
+ * maxFee: (3000).microAlgo(),
1070
+ * // Signer only needed if you want to provide one,
1071
+ * // generally you'd register it with AlgorandClient
1072
+ * // against the sender and not need to pass it in
1073
+ * signer: transactionSigner,
1074
+ * maxRoundsToWaitForConfirmation: 5,
1075
+ * suppressLog: true,
1076
+ *})
1077
+ * ```
1078
+ */
1079
+ appCallMethodCall: (params: {
1080
+ sender: string | algosdk.Address;
1081
+ maxFee?: import("./amount").AlgoAmount | undefined;
1082
+ note?: string | Uint8Array | undefined;
1083
+ appId: bigint;
1084
+ signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
1085
+ onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
1086
+ lease?: string | Uint8Array | undefined;
1087
+ rekeyTo?: string | algosdk.Address | undefined;
1088
+ staticFee?: import("./amount").AlgoAmount | undefined;
1089
+ extraFee?: import("./amount").AlgoAmount | undefined;
1090
+ validityWindow?: number | bigint | undefined;
1091
+ firstValidRound?: bigint | undefined;
1092
+ lastValidRound?: bigint | undefined;
1093
+ accountReferences?: (string | algosdk.Address)[] | undefined;
1094
+ appReferences?: bigint[] | undefined;
1095
+ assetReferences?: bigint[] | undefined;
1096
+ boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
1097
+ } & {
1098
+ method: algosdk.ABIMethod;
1099
+ args?: (algosdk.Address | algosdk.Transaction | algosdk.ABIValue | algosdk.TransactionWithSigner | Promise<algosdk.Transaction> | import("./composer").AppMethodCall<{
1100
+ sender: string | algosdk.Address;
1101
+ maxFee?: import("./amount").AlgoAmount | undefined;
1102
+ note?: string | Uint8Array | undefined;
1103
+ args?: Uint8Array[] | undefined;
1104
+ signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
1105
+ onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
1106
+ lease?: string | Uint8Array | undefined;
1107
+ rekeyTo?: string | algosdk.Address | undefined;
1108
+ staticFee?: import("./amount").AlgoAmount | undefined;
1109
+ extraFee?: import("./amount").AlgoAmount | undefined;
1110
+ validityWindow?: number | bigint | undefined;
1111
+ firstValidRound?: bigint | undefined;
1112
+ lastValidRound?: bigint | undefined;
1113
+ accountReferences?: (string | algosdk.Address)[] | undefined;
1114
+ appReferences?: bigint[] | undefined;
1115
+ assetReferences?: bigint[] | undefined;
1116
+ boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
1117
+ approvalProgram: string | Uint8Array;
1118
+ clearStateProgram: string | Uint8Array;
1119
+ schema?: {
1120
+ globalInts: number;
1121
+ globalByteSlices: number;
1122
+ localInts: number;
1123
+ localByteSlices: number;
1124
+ } | undefined;
1125
+ extraProgramPages?: number | undefined;
1126
+ }> | import("./composer").AppMethodCall<{
1127
+ sender: string | algosdk.Address;
1128
+ signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
1129
+ rekeyTo?: string | algosdk.Address | undefined;
1130
+ note?: string | Uint8Array | undefined;
1131
+ lease?: string | Uint8Array | undefined;
1132
+ staticFee?: import("./amount").AlgoAmount | undefined;
1133
+ extraFee?: import("./amount").AlgoAmount | undefined;
1134
+ maxFee?: import("./amount").AlgoAmount | undefined;
1135
+ validityWindow?: number | bigint | undefined;
1136
+ firstValidRound?: bigint | undefined;
1137
+ lastValidRound?: bigint | undefined;
1138
+ appId: bigint;
1139
+ onComplete?: algosdk.OnApplicationComplete.UpdateApplicationOC | undefined;
1140
+ args?: Uint8Array[] | undefined;
1141
+ accountReferences?: (string | algosdk.Address)[] | undefined;
1142
+ appReferences?: bigint[] | undefined;
1143
+ assetReferences?: bigint[] | undefined;
1144
+ boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
1145
+ approvalProgram: string | Uint8Array;
1146
+ clearStateProgram: string | Uint8Array;
1147
+ }> | import("./composer").AppMethodCall<import("./composer").AppMethodCallParams> | undefined)[] | undefined;
1148
+ } & SendParams) => Promise<SendAppTransactionResult>;
1149
+ /** Register an online key. */
1150
+ onlineKeyRegistration: (params: import("./composer").CommonTransactionParams & {
1151
+ voteKey: Uint8Array;
1152
+ selectionKey: Uint8Array;
1153
+ voteFirst: bigint;
1154
+ voteLast: bigint;
1155
+ voteKeyDilution: bigint;
1156
+ stateProofKey?: Uint8Array | undefined;
1157
+ } & SendParams) => Promise<SendSingleTransactionResult>;
1158
+ }