@algorandfoundation/algokit-utils 7.0.0-beta.1 → 7.0.0-beta.10

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 (360) hide show
  1. package/README.md +3 -25
  2. package/account/account.d.ts +8 -9
  3. package/account/account.js +7 -7
  4. package/account/account.js.map +1 -1
  5. package/account/account.mjs +7 -7
  6. package/account/account.mjs.map +1 -1
  7. package/account/get-account-config-from-environment.d.ts +0 -1
  8. package/account/get-account-config-from-environment.js.map +1 -1
  9. package/account/get-account-config-from-environment.mjs.map +1 -1
  10. package/account/get-account.d.ts +2 -3
  11. package/account/get-account.js +1 -1
  12. package/account/get-account.js.map +1 -1
  13. package/account/get-account.mjs +1 -1
  14. package/account/get-account.mjs.map +1 -1
  15. package/account/get-dispenser-account.d.ts +1 -2
  16. package/account/get-dispenser-account.js +1 -1
  17. package/account/get-dispenser-account.js.map +1 -1
  18. package/account/get-dispenser-account.mjs +1 -1
  19. package/account/get-dispenser-account.mjs.map +1 -1
  20. package/account/index.d.ts +0 -1
  21. package/account/mnemonic-account.d.ts +1 -2
  22. package/account/mnemonic-account.js +1 -1
  23. package/account/mnemonic-account.js.map +1 -1
  24. package/account/mnemonic-account.mjs +1 -1
  25. package/account/mnemonic-account.mjs.map +1 -1
  26. package/amount.d.ts +14 -5
  27. package/amount.js +6 -0
  28. package/amount.js.map +1 -1
  29. package/amount.mjs +6 -0
  30. package/amount.mjs.map +1 -1
  31. package/app-client.d.ts +15 -1
  32. package/app-client.js +15 -0
  33. package/app-client.js.map +1 -1
  34. package/app-client.mjs +15 -0
  35. package/app-client.mjs.map +1 -1
  36. package/app-deploy.d.ts +18 -2
  37. package/app-deploy.js +140 -333
  38. package/app-deploy.js.map +1 -1
  39. package/app-deploy.mjs +143 -336
  40. package/app-deploy.mjs.map +1 -1
  41. package/app.d.ts +39 -3
  42. package/app.js +116 -369
  43. package/app.js.map +1 -1
  44. package/app.mjs +117 -370
  45. package/app.mjs.map +1 -1
  46. package/asset.d.ts +5 -6
  47. package/asset.js +5 -8
  48. package/asset.js.map +1 -1
  49. package/asset.mjs +5 -8
  50. package/asset.mjs.map +1 -1
  51. package/config.d.ts +0 -1
  52. package/config.js.map +1 -1
  53. package/config.mjs.map +1 -1
  54. package/debugging/debugging.d.ts +3 -5
  55. package/debugging/debugging.js +4 -128
  56. package/debugging/debugging.js.map +1 -1
  57. package/debugging/debugging.mjs +4 -109
  58. package/debugging/debugging.mjs.map +1 -1
  59. package/debugging/index.d.ts +0 -2
  60. package/dispenser-client.d.ts +0 -1
  61. package/dispenser-client.js.map +1 -1
  62. package/dispenser-client.mjs.map +1 -1
  63. package/index.d.ts +4 -4
  64. package/index.js +31 -26
  65. package/index.js.map +1 -1
  66. package/index.mjs +4 -4
  67. package/indexer-lookup.d.ts +0 -1
  68. package/indexer-lookup.js.map +1 -1
  69. package/indexer-lookup.mjs.map +1 -1
  70. package/localnet/get-kmd-wallet-account.d.ts +1 -2
  71. package/localnet/get-kmd-wallet-account.js +1 -1
  72. package/localnet/get-kmd-wallet-account.js.map +1 -1
  73. package/localnet/get-kmd-wallet-account.mjs +1 -1
  74. package/localnet/get-kmd-wallet-account.mjs.map +1 -1
  75. package/localnet/get-localnet-dispenser-account.d.ts +1 -2
  76. package/localnet/get-localnet-dispenser-account.js +1 -1
  77. package/localnet/get-localnet-dispenser-account.js.map +1 -1
  78. package/localnet/get-localnet-dispenser-account.mjs +1 -1
  79. package/localnet/get-localnet-dispenser-account.mjs.map +1 -1
  80. package/localnet/get-or-create-kmd-wallet-account.d.ts +1 -2
  81. package/localnet/get-or-create-kmd-wallet-account.js +1 -1
  82. package/localnet/get-or-create-kmd-wallet-account.js.map +1 -1
  83. package/localnet/get-or-create-kmd-wallet-account.mjs +1 -1
  84. package/localnet/get-or-create-kmd-wallet-account.mjs.map +1 -1
  85. package/localnet/index.d.ts +0 -1
  86. package/localnet/is-localnet.d.ts +1 -2
  87. package/localnet/is-localnet.js +1 -1
  88. package/localnet/is-localnet.js.map +1 -1
  89. package/localnet/is-localnet.mjs +1 -1
  90. package/localnet/is-localnet.mjs.map +1 -1
  91. package/network-client.d.ts +2 -3
  92. package/network-client.js +2 -2
  93. package/network-client.js.map +1 -1
  94. package/network-client.mjs +2 -2
  95. package/network-client.mjs.map +1 -1
  96. package/package.json +1 -1
  97. package/testing/_asset.d.ts +0 -1
  98. package/testing/account.d.ts +0 -1
  99. package/testing/account.js.map +1 -1
  100. package/testing/account.mjs.map +1 -1
  101. package/testing/fixtures/algokit-log-capture-fixture.d.ts +0 -1
  102. package/testing/fixtures/algokit-log-capture-fixture.js.map +1 -1
  103. package/testing/fixtures/algokit-log-capture-fixture.mjs.map +1 -1
  104. package/testing/fixtures/algorand-fixture.d.ts +0 -1
  105. package/testing/fixtures/algorand-fixture.js +12 -12
  106. package/testing/fixtures/algorand-fixture.js.map +1 -1
  107. package/testing/fixtures/algorand-fixture.mjs +12 -12
  108. package/testing/fixtures/algorand-fixture.mjs.map +1 -1
  109. package/testing/fixtures/index.d.ts +0 -1
  110. package/testing/index.d.ts +0 -1
  111. package/testing/indexer.d.ts +0 -1
  112. package/testing/indexer.js.map +1 -1
  113. package/testing/indexer.mjs.map +1 -1
  114. package/testing/test-logger.d.ts +0 -1
  115. package/testing/test-logger.js +1 -3
  116. package/testing/test-logger.js.map +1 -1
  117. package/testing/test-logger.mjs +1 -3
  118. package/testing/test-logger.mjs.map +1 -1
  119. package/testing/transaction-logger.d.ts +0 -1
  120. package/testing/transaction-logger.js.map +1 -1
  121. package/testing/transaction-logger.mjs.map +1 -1
  122. package/transaction/index.d.ts +0 -1
  123. package/transaction/legacy-bridge.d.ts +31 -6
  124. package/transaction/legacy-bridge.js +100 -6
  125. package/transaction/legacy-bridge.js.map +1 -1
  126. package/transaction/legacy-bridge.mjs +99 -8
  127. package/transaction/legacy-bridge.mjs.map +1 -1
  128. package/transaction/perform-atomic-transaction-composer-simulate.d.ts +0 -1
  129. package/transaction/perform-atomic-transaction-composer-simulate.js.map +1 -1
  130. package/transaction/perform-atomic-transaction-composer-simulate.mjs.map +1 -1
  131. package/transaction/transaction.d.ts +41 -6
  132. package/transaction/transaction.js +107 -45
  133. package/transaction/transaction.js.map +1 -1
  134. package/transaction/transaction.mjs +107 -46
  135. package/transaction/transaction.mjs.map +1 -1
  136. package/transfer/index.d.ts +0 -1
  137. package/transfer/transfer-algos.d.ts +1 -2
  138. package/transfer/transfer-algos.js +1 -1
  139. package/transfer/transfer-algos.js.map +1 -1
  140. package/transfer/transfer-algos.mjs +1 -1
  141. package/transfer/transfer-algos.mjs.map +1 -1
  142. package/transfer/transfer.d.ts +1 -2
  143. package/transfer/transfer.js +3 -3
  144. package/transfer/transfer.js.map +1 -1
  145. package/transfer/transfer.mjs +3 -3
  146. package/transfer/transfer.mjs.map +1 -1
  147. package/types/account-manager.d.ts +14 -6
  148. package/types/account-manager.js +18 -4
  149. package/types/account-manager.js.map +1 -1
  150. package/types/account-manager.mjs +18 -4
  151. package/types/account-manager.mjs.map +1 -1
  152. package/types/account.d.ts +0 -1
  153. package/types/account.js.map +1 -1
  154. package/types/account.mjs.map +1 -1
  155. package/types/algo-http-client-with-retry.d.ts +0 -1
  156. package/types/algo-http-client-with-retry.js.map +1 -1
  157. package/types/algo-http-client-with-retry.mjs.map +1 -1
  158. package/types/algorand-client-interface.d.ts +28 -0
  159. package/types/algorand-client-interface.js +3 -0
  160. package/types/algorand-client-interface.js.map +1 -0
  161. package/types/algorand-client-interface.mjs +2 -0
  162. package/types/algorand-client-interface.mjs.map +1 -0
  163. package/types/algorand-client-transaction-creator.d.ts +450 -21
  164. package/types/algorand-client-transaction-creator.js +406 -22
  165. package/types/algorand-client-transaction-creator.js.map +1 -1
  166. package/types/algorand-client-transaction-creator.mjs +406 -22
  167. package/types/algorand-client-transaction-creator.mjs.map +1 -1
  168. package/types/algorand-client-transaction-sender.d.ts +758 -33
  169. package/types/algorand-client-transaction-sender.js +444 -14
  170. package/types/algorand-client-transaction-sender.js.map +1 -1
  171. package/types/algorand-client-transaction-sender.mjs +444 -14
  172. package/types/algorand-client-transaction-sender.mjs.map +1 -1
  173. package/types/algorand-client.d.ts +18 -10
  174. package/types/algorand-client.js +23 -10
  175. package/types/algorand-client.js.map +1 -1
  176. package/types/algorand-client.mjs +23 -10
  177. package/types/algorand-client.mjs.map +1 -1
  178. package/types/amount.d.ts +10 -11
  179. package/types/amount.js +7 -7
  180. package/types/amount.js.map +1 -1
  181. package/types/amount.mjs +7 -7
  182. package/types/amount.mjs.map +1 -1
  183. package/types/app-arc56.d.ts +348 -0
  184. package/types/app-arc56.js +184 -0
  185. package/types/app-arc56.js.map +1 -0
  186. package/types/app-arc56.mjs +175 -0
  187. package/types/app-arc56.mjs.map +1 -0
  188. package/types/app-client.d.ts +1496 -9
  189. package/types/app-client.js +903 -21
  190. package/types/app-client.js.map +1 -1
  191. package/types/app-client.mjs +904 -23
  192. package/types/app-client.mjs.map +1 -1
  193. package/types/app-deployer.d.ts +126 -0
  194. package/types/app-deployer.js +354 -0
  195. package/types/app-deployer.js.map +1 -0
  196. package/types/app-deployer.mjs +352 -0
  197. package/types/app-deployer.mjs.map +1 -0
  198. package/types/app-factory.d.ts +846 -0
  199. package/types/app-factory.js +411 -0
  200. package/types/app-factory.js.map +1 -0
  201. package/types/app-factory.mjs +409 -0
  202. package/types/app-factory.mjs.map +1 -0
  203. package/types/app-manager.d.ts +244 -0
  204. package/types/app-manager.js +334 -0
  205. package/types/app-manager.js.map +1 -0
  206. package/types/app-manager.mjs +332 -0
  207. package/types/app-manager.mjs.map +1 -0
  208. package/types/app-spec.d.ts +2 -1
  209. package/types/app-spec.js +121 -0
  210. package/types/app-spec.js.map +1 -1
  211. package/types/app-spec.mjs +120 -0
  212. package/types/app-spec.mjs.map +1 -1
  213. package/types/app.d.ts +53 -13
  214. package/types/app.js +1 -1
  215. package/types/app.js.map +1 -1
  216. package/types/app.mjs +1 -1
  217. package/types/app.mjs.map +1 -1
  218. package/types/asset-manager.d.ts +4 -4
  219. package/types/asset-manager.js +3 -4
  220. package/types/asset-manager.js.map +1 -1
  221. package/types/asset-manager.mjs +3 -4
  222. package/types/asset-manager.mjs.map +1 -1
  223. package/types/asset.d.ts +0 -1
  224. package/types/async-event-emitter.d.ts +23 -0
  225. package/types/async-event-emitter.js +55 -0
  226. package/types/async-event-emitter.js.map +1 -0
  227. package/types/async-event-emitter.mjs +53 -0
  228. package/types/async-event-emitter.mjs.map +1 -0
  229. package/types/client-manager.d.ts +133 -51
  230. package/types/client-manager.js +147 -23
  231. package/types/client-manager.js.map +1 -1
  232. package/types/client-manager.mjs +148 -24
  233. package/types/client-manager.mjs.map +1 -1
  234. package/types/composer.d.ts +232 -49
  235. package/types/composer.js +307 -65
  236. package/types/composer.js.map +1 -1
  237. package/types/composer.mjs +308 -66
  238. package/types/composer.mjs.map +1 -1
  239. package/types/config.d.ts +3 -6
  240. package/types/config.js +5 -44
  241. package/types/config.js.map +1 -1
  242. package/types/config.mjs +5 -27
  243. package/types/config.mjs.map +1 -1
  244. package/types/debugging.d.ts +29 -101
  245. package/types/debugging.js +16 -109
  246. package/types/debugging.js.map +1 -1
  247. package/types/debugging.mjs +12 -107
  248. package/types/debugging.mjs.map +1 -1
  249. package/types/dispenser-client.d.ts +1 -2
  250. package/types/dispenser-client.js +6 -5
  251. package/types/dispenser-client.js.map +1 -1
  252. package/types/dispenser-client.mjs +6 -5
  253. package/types/dispenser-client.mjs.map +1 -1
  254. package/types/expand.d.ts +7 -0
  255. package/types/expand.js +3 -0
  256. package/types/expand.js.map +1 -0
  257. package/types/expand.mjs +2 -0
  258. package/types/expand.mjs.map +1 -0
  259. package/types/indexer.d.ts +0 -1
  260. package/types/indexer.js.map +1 -1
  261. package/types/indexer.mjs.map +1 -1
  262. package/types/kmd-account-manager.d.ts +0 -1
  263. package/types/kmd-account-manager.js +2 -2
  264. package/types/kmd-account-manager.js.map +1 -1
  265. package/types/kmd-account-manager.mjs +2 -2
  266. package/types/kmd-account-manager.mjs.map +1 -1
  267. package/types/logging.d.ts +0 -1
  268. package/types/logging.js.map +1 -1
  269. package/types/logging.mjs.map +1 -1
  270. package/types/logic-error.d.ts +0 -1
  271. package/types/logic-error.js.map +1 -1
  272. package/types/logic-error.mjs.map +1 -1
  273. package/types/network-client.d.ts +13 -1
  274. package/types/network-client.js.map +1 -1
  275. package/types/network-client.mjs.map +1 -1
  276. package/types/testing.d.ts +3 -4
  277. package/types/transaction.d.ts +17 -4
  278. package/types/transfer.d.ts +0 -1
  279. package/types/urlTokenBaseHTTPClient.d.ts +0 -1
  280. package/types/urlTokenBaseHTTPClient.js +1 -1
  281. package/types/urlTokenBaseHTTPClient.js.map +1 -1
  282. package/types/urlTokenBaseHTTPClient.mjs +1 -1
  283. package/types/urlTokenBaseHTTPClient.mjs.map +1 -1
  284. package/util.d.ts +2 -2
  285. package/util.js +11 -10
  286. package/util.js.map +1 -1
  287. package/util.mjs +11 -10
  288. package/util.mjs.map +1 -1
  289. package/account/account.d.ts.map +0 -1
  290. package/account/get-account-config-from-environment.d.ts.map +0 -1
  291. package/account/get-account.d.ts.map +0 -1
  292. package/account/get-dispenser-account.d.ts.map +0 -1
  293. package/account/index.d.ts.map +0 -1
  294. package/account/mnemonic-account.d.ts.map +0 -1
  295. package/amount.d.ts.map +0 -1
  296. package/app-client.d.ts.map +0 -1
  297. package/app-deploy.d.ts.map +0 -1
  298. package/app.d.ts.map +0 -1
  299. package/asset.d.ts.map +0 -1
  300. package/config.d.ts.map +0 -1
  301. package/debugging/debugging.d.ts.map +0 -1
  302. package/debugging/index.d.ts.map +0 -1
  303. package/debugging/simulate-and-persist-response.d.ts +0 -20
  304. package/debugging/simulate-and-persist-response.d.ts.map +0 -1
  305. package/debugging/simulate-and-persist-response.js +0 -108
  306. package/debugging/simulate-and-persist-response.js.map +0 -1
  307. package/debugging/simulate-and-persist-response.mjs +0 -89
  308. package/debugging/simulate-and-persist-response.mjs.map +0 -1
  309. package/dispenser-client.d.ts.map +0 -1
  310. package/index.d.ts.map +0 -1
  311. package/indexer-lookup.d.ts.map +0 -1
  312. package/localnet/get-kmd-wallet-account.d.ts.map +0 -1
  313. package/localnet/get-localnet-dispenser-account.d.ts.map +0 -1
  314. package/localnet/get-or-create-kmd-wallet-account.d.ts.map +0 -1
  315. package/localnet/index.d.ts.map +0 -1
  316. package/localnet/is-localnet.d.ts.map +0 -1
  317. package/network-client.d.ts.map +0 -1
  318. package/testing/_asset.d.ts.map +0 -1
  319. package/testing/account.d.ts.map +0 -1
  320. package/testing/fixtures/algokit-log-capture-fixture.d.ts.map +0 -1
  321. package/testing/fixtures/algorand-fixture.d.ts.map +0 -1
  322. package/testing/fixtures/index.d.ts.map +0 -1
  323. package/testing/index.d.ts.map +0 -1
  324. package/testing/indexer.d.ts.map +0 -1
  325. package/testing/test-logger.d.ts.map +0 -1
  326. package/testing/transaction-logger.d.ts.map +0 -1
  327. package/transaction/index.d.ts.map +0 -1
  328. package/transaction/legacy-bridge.d.ts.map +0 -1
  329. package/transaction/perform-atomic-transaction-composer-simulate.d.ts.map +0 -1
  330. package/transaction/transaction.d.ts.map +0 -1
  331. package/transfer/index.d.ts.map +0 -1
  332. package/transfer/transfer-algos.d.ts.map +0 -1
  333. package/transfer/transfer.d.ts.map +0 -1
  334. package/types/account-manager.d.ts.map +0 -1
  335. package/types/account.d.ts.map +0 -1
  336. package/types/algo-http-client-with-retry.d.ts.map +0 -1
  337. package/types/algorand-client-transaction-creator.d.ts.map +0 -1
  338. package/types/algorand-client-transaction-sender.d.ts.map +0 -1
  339. package/types/algorand-client.d.ts.map +0 -1
  340. package/types/amount.d.ts.map +0 -1
  341. package/types/app-client.d.ts.map +0 -1
  342. package/types/app-spec.d.ts.map +0 -1
  343. package/types/app.d.ts.map +0 -1
  344. package/types/asset-manager.d.ts.map +0 -1
  345. package/types/asset.d.ts.map +0 -1
  346. package/types/client-manager.d.ts.map +0 -1
  347. package/types/composer.d.ts.map +0 -1
  348. package/types/config.d.ts.map +0 -1
  349. package/types/debugging.d.ts.map +0 -1
  350. package/types/dispenser-client.d.ts.map +0 -1
  351. package/types/indexer.d.ts.map +0 -1
  352. package/types/kmd-account-manager.d.ts.map +0 -1
  353. package/types/logging.d.ts.map +0 -1
  354. package/types/logic-error.d.ts.map +0 -1
  355. package/types/network-client.d.ts.map +0 -1
  356. package/types/testing.d.ts.map +0 -1
  357. package/types/transaction.d.ts.map +0 -1
  358. package/types/transfer.d.ts.map +0 -1
  359. package/types/urlTokenBaseHTTPClient.d.ts.map +0 -1
  360. package/util.d.ts.map +0 -1
@@ -1,26 +1,31 @@
1
1
  import algosdk from 'algosdk';
2
+ import { SendAppCreateTransactionResult, SendAppTransactionResult, SendAppUpdateTransactionResult } from './app';
3
+ import { AppManager } from './app-manager';
2
4
  import { AssetManager } from './asset-manager';
3
- import AlgoKitComposer, { AssetCreateParams, AssetOptOutParams, ExecuteParams } from './composer';
4
- import { ConfirmedTransactionResult, SendAtomicTransactionComposerResults } from './transaction';
5
- /** Result from sending a single transaction. */
6
- export type SendSingleTransactionResult = SendAtomicTransactionComposerResults & ConfirmedTransactionResult;
5
+ import AlgoKitComposer, { AssetCreateParams, AssetOptOutParams } from './composer';
6
+ import { SendParams, SendSingleTransactionResult } from './transaction';
7
7
  /** Orchestrates sending transactions for `AlgorandClient`. */
8
8
  export declare class AlgorandClientTransactionSender {
9
9
  private _newGroup;
10
10
  private _assetManager;
11
+ private _appManager;
11
12
  /**
12
13
  * Creates a new `AlgorandClientSender`
13
14
  * @param newGroup A lambda that starts a new `AlgoKitComposer` transaction group
14
15
  * @param assetManager An `AssetManager` instance
15
16
  */
16
- constructor(newGroup: () => AlgoKitComposer, assetManager: AssetManager);
17
+ constructor(newGroup: () => AlgoKitComposer, assetManager: AssetManager, appManager: AppManager);
18
+ newGroup(): AlgoKitComposer;
17
19
  private _send;
20
+ private _sendAppCall;
21
+ private _sendAppUpdateCall;
22
+ private _sendAppCreateCall;
18
23
  /**
19
24
  * Send a payment transaction to transfer Algo between accounts.
20
25
  * @param params The parameters for the payment transaction
21
26
  * @example Basic example
22
27
  * ```typescript
23
- * const result = await algorandClient.send.payment({
28
+ * const result = await algorand.send.payment({
24
29
  * sender: 'SENDERADDRESS',
25
30
  * receiver: 'RECEIVERADDRESS',
26
31
  * amount: (4).algo(),
@@ -28,7 +33,7 @@ export declare class AlgorandClientTransactionSender {
28
33
  * ```
29
34
  * @example Advanced example
30
35
  * ```typescript
31
- * const result = await algorandClient.send.payment({
36
+ * const result = await algorand.send.payment({
32
37
  * amount: (4).algo(),
33
38
  * receiver: 'RECEIVERADDRESS',
34
39
  * sender: 'SENDERADDRESS',
@@ -60,7 +65,7 @@ export declare class AlgorandClientTransactionSender {
60
65
  receiver: string;
61
66
  amount: import("./amount").AlgoAmount;
62
67
  closeRemainderTo?: string | undefined;
63
- } & ExecuteParams) => Promise<SendSingleTransactionResult>;
68
+ } & SendParams) => Promise<SendSingleTransactionResult>;
64
69
  /**
65
70
  * Create a new Algorand Standard Asset.
66
71
  *
@@ -108,7 +113,7 @@ export declare class AlgorandClientTransactionSender {
108
113
  * ```
109
114
  * @returns The result of the transaction and the transaction that was sent
110
115
  */
111
- assetCreate: (params: AssetCreateParams & ExecuteParams) => Promise<{
116
+ assetCreate: (params: AssetCreateParams & SendParams) => Promise<{
112
117
  assetId: bigint;
113
118
  groupId: string;
114
119
  txIds: string[];
@@ -166,7 +171,7 @@ export declare class AlgorandClientTransactionSender {
166
171
  reserve?: string | undefined;
167
172
  freeze?: string | undefined;
168
173
  clawback?: string | undefined;
169
- } & ExecuteParams) => Promise<SendSingleTransactionResult>;
174
+ } & SendParams) => Promise<SendSingleTransactionResult>;
170
175
  /**
171
176
  * Freeze or unfreeze an Algorand Standard Asset for an account.
172
177
  *
@@ -207,7 +212,7 @@ export declare class AlgorandClientTransactionSender {
207
212
  assetId: bigint;
208
213
  account: string;
209
214
  frozen: boolean;
210
- } & ExecuteParams) => Promise<SendSingleTransactionResult>;
215
+ } & SendParams) => Promise<SendSingleTransactionResult>;
211
216
  /**
212
217
  * Destroys an Algorand Standard Asset.
213
218
  *
@@ -248,7 +253,7 @@ export declare class AlgorandClientTransactionSender {
248
253
  */
249
254
  assetDestroy: (params: import("./composer").CommonTransactionParams & {
250
255
  assetId: bigint;
251
- } & ExecuteParams) => Promise<SendSingleTransactionResult>;
256
+ } & SendParams) => Promise<SendSingleTransactionResult>;
252
257
  /**
253
258
  * Transfer an Algorand Standard Asset.
254
259
  *
@@ -294,7 +299,7 @@ export declare class AlgorandClientTransactionSender {
294
299
  receiver: string;
295
300
  clawbackTarget?: string | undefined;
296
301
  closeAssetTo?: string | undefined;
297
- } & ExecuteParams) => Promise<SendSingleTransactionResult>;
302
+ } & SendParams) => Promise<SendSingleTransactionResult>;
298
303
  /**
299
304
  * Opt an account into an Algorand Standard Asset.
300
305
  *
@@ -331,7 +336,7 @@ export declare class AlgorandClientTransactionSender {
331
336
  */
332
337
  assetOptIn: (params: import("./composer").CommonTransactionParams & {
333
338
  assetId: bigint;
334
- } & ExecuteParams) => Promise<SendSingleTransactionResult>;
339
+ } & SendParams) => Promise<SendSingleTransactionResult>;
335
340
  /**
336
341
  * Opt an account out of an Algorand Standard Asset.
337
342
  *
@@ -341,7 +346,7 @@ export declare class AlgorandClientTransactionSender {
341
346
  *
342
347
  * @param params The parameters for the asset opt-out transaction
343
348
  *
344
- * @example Basic example (without creator)
349
+ * @example Basic example (without creator, will be retrieved from algod)
345
350
  * ```typescript
346
351
  * await algorand.send.assetOptOut({sender: "SENDERADDRESS", assetId: 123456n, ensureZeroBalance: true })
347
352
  * ```
@@ -386,40 +391,761 @@ export declare class AlgorandClientTransactionSender {
386
391
  * If this is set to `false` and the account has an asset balance it will lose those assets to the asset creator.
387
392
  */
388
393
  ensureZeroBalance: boolean;
389
- } & ExecuteParams) => Promise<SendSingleTransactionResult>;
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
+ lease?: string | Uint8Array | undefined;
454
+ note?: string | Uint8Array | undefined;
455
+ maxFee?: import("./amount").AlgoAmount | undefined;
456
+ args?: Uint8Array[] | undefined;
457
+ signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
458
+ sender: string;
459
+ rekeyTo?: string | undefined;
460
+ staticFee?: import("./amount").AlgoAmount | undefined;
461
+ extraFee?: import("./amount").AlgoAmount | undefined;
462
+ validityWindow?: number | undefined;
463
+ firstValidRound?: bigint | undefined;
464
+ lastValidRound?: bigint | undefined;
465
+ onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
466
+ accountReferences?: string[] | 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;
523
+ signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
524
+ rekeyTo?: string | 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 | 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[] | 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[] | 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>;
390
593
  /**
391
594
  * Call a smart contract.
392
595
  *
393
- * Note: you may prefer to use `algorandClient.client` to get an app client for more advanced functionality.
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
+ * ```
394
631
  */
395
632
  appCall: (params: import("./composer").CommonTransactionParams & {
633
+ appId: bigint;
396
634
  onComplete?: algosdk.OnApplicationComplete | undefined;
397
- appId?: bigint | undefined;
398
- approvalProgram?: Uint8Array | undefined;
399
- clearProgram?: Uint8Array | undefined;
635
+ args?: Uint8Array[] | undefined;
636
+ accountReferences?: string[] | 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
+ lease?: string | Uint8Array | undefined;
706
+ note?: string | Uint8Array | undefined;
707
+ maxFee?: import("./amount").AlgoAmount | undefined;
708
+ approvalProgram: string | Uint8Array;
709
+ clearStateProgram: string | Uint8Array;
400
710
  schema?: {
401
- globalUints: number;
711
+ globalInts: number;
402
712
  globalByteSlices: number;
403
- localUints: number;
713
+ localInts: number;
404
714
  localByteSlices: number;
405
715
  } | undefined;
406
- args?: Uint8Array[] | undefined;
716
+ signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
717
+ sender: string;
718
+ extraProgramPages?: number | undefined;
719
+ rekeyTo?: string | undefined;
720
+ staticFee?: import("./amount").AlgoAmount | undefined;
721
+ extraFee?: import("./amount").AlgoAmount | undefined;
722
+ validityWindow?: number | undefined;
723
+ firstValidRound?: bigint | undefined;
724
+ lastValidRound?: bigint | undefined;
725
+ onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
726
+ accountReferences?: string[] | 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.Transaction | algosdk.ABIValue | algosdk.TransactionWithSigner | Promise<algosdk.Transaction> | import("./composer").AppMethodCall<{
733
+ lease?: string | Uint8Array | undefined;
734
+ note?: string | Uint8Array | undefined;
735
+ maxFee?: import("./amount").AlgoAmount | undefined;
736
+ args?: Uint8Array[] | undefined;
737
+ signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
738
+ sender: string;
739
+ rekeyTo?: string | undefined;
740
+ staticFee?: import("./amount").AlgoAmount | undefined;
741
+ extraFee?: import("./amount").AlgoAmount | undefined;
742
+ validityWindow?: number | undefined;
743
+ firstValidRound?: bigint | undefined;
744
+ lastValidRound?: bigint | undefined;
745
+ onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
746
+ accountReferences?: string[] | 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;
761
+ signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
762
+ rekeyTo?: string | 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 | 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[] | 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;
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
+ lease?: string | Uint8Array | undefined;
837
+ note?: string | Uint8Array | undefined;
838
+ maxFee?: import("./amount").AlgoAmount | undefined;
839
+ approvalProgram: string | Uint8Array;
840
+ clearStateProgram: string | Uint8Array;
841
+ appId: bigint;
842
+ signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
843
+ sender: string;
844
+ rekeyTo?: string | undefined;
845
+ staticFee?: import("./amount").AlgoAmount | undefined;
846
+ extraFee?: import("./amount").AlgoAmount | undefined;
847
+ validityWindow?: number | undefined;
848
+ firstValidRound?: bigint | undefined;
849
+ lastValidRound?: bigint | undefined;
850
+ onComplete?: algosdk.OnApplicationComplete.UpdateApplicationOC | undefined;
851
+ accountReferences?: string[] | 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.Transaction | algosdk.ABIValue | algosdk.TransactionWithSigner | Promise<algosdk.Transaction> | import("./composer").AppMethodCall<{
858
+ lease?: string | Uint8Array | undefined;
859
+ note?: string | Uint8Array | undefined;
860
+ maxFee?: import("./amount").AlgoAmount | undefined;
861
+ args?: Uint8Array[] | undefined;
862
+ signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
863
+ sender: string;
864
+ rekeyTo?: string | undefined;
865
+ staticFee?: import("./amount").AlgoAmount | undefined;
866
+ extraFee?: import("./amount").AlgoAmount | undefined;
867
+ validityWindow?: number | undefined;
868
+ firstValidRound?: bigint | undefined;
869
+ lastValidRound?: bigint | undefined;
870
+ onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
871
+ accountReferences?: string[] | 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;
886
+ signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
887
+ rekeyTo?: string | 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 | 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[] | 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;
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
+ lease?: string | Uint8Array | undefined;
960
+ note?: string | Uint8Array | undefined;
961
+ maxFee?: import("./amount").AlgoAmount | undefined;
962
+ appId: bigint;
963
+ signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
964
+ sender: string;
965
+ rekeyTo?: string | undefined;
966
+ staticFee?: import("./amount").AlgoAmount | undefined;
967
+ extraFee?: import("./amount").AlgoAmount | undefined;
968
+ validityWindow?: number | undefined;
969
+ firstValidRound?: bigint | undefined;
970
+ lastValidRound?: bigint | undefined;
971
+ onComplete?: algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
407
972
  accountReferences?: string[] | undefined;
408
973
  appReferences?: bigint[] | undefined;
409
974
  assetReferences?: bigint[] | undefined;
410
- extraPages?: number | undefined;
411
- boxReferences?: algosdk.BoxReference[] | undefined;
412
- } & ExecuteParams) => Promise<SendSingleTransactionResult>;
975
+ boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
976
+ } & {
977
+ method: algosdk.ABIMethod;
978
+ args?: (algosdk.Transaction | algosdk.ABIValue | algosdk.TransactionWithSigner | Promise<algosdk.Transaction> | import("./composer").AppMethodCall<{
979
+ lease?: string | Uint8Array | undefined;
980
+ note?: string | Uint8Array | undefined;
981
+ maxFee?: import("./amount").AlgoAmount | undefined;
982
+ args?: Uint8Array[] | undefined;
983
+ signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
984
+ sender: string;
985
+ rekeyTo?: string | undefined;
986
+ staticFee?: import("./amount").AlgoAmount | undefined;
987
+ extraFee?: import("./amount").AlgoAmount | undefined;
988
+ validityWindow?: number | undefined;
989
+ firstValidRound?: bigint | undefined;
990
+ lastValidRound?: bigint | undefined;
991
+ onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
992
+ accountReferences?: string[] | 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;
1007
+ signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
1008
+ rekeyTo?: string | 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 | 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[] | 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;
1027
+ } & SendParams) => Promise<SendAppTransactionResult>;
413
1028
  /**
414
- * Call a smart contract ABI method.
1029
+ * Call a smart contract via an ABI method.
415
1030
  *
416
- * Note: you may prefer to use `algorandClient.client` to get an app client for more advanced functionality.
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
+ * ```
417
1078
  */
418
- methodCall: (params: import("./composer").CommonTransactionParams & Omit<import("./composer").AppCallParams, "args"> & {
1079
+ appCallMethodCall: (params: {
1080
+ lease?: string | Uint8Array | undefined;
1081
+ note?: string | Uint8Array | undefined;
1082
+ maxFee?: import("./amount").AlgoAmount | undefined;
419
1083
  appId: bigint;
1084
+ signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
1085
+ sender: string;
1086
+ rekeyTo?: string | undefined;
1087
+ staticFee?: import("./amount").AlgoAmount | undefined;
1088
+ extraFee?: import("./amount").AlgoAmount | undefined;
1089
+ validityWindow?: number | undefined;
1090
+ firstValidRound?: bigint | undefined;
1091
+ lastValidRound?: bigint | undefined;
1092
+ onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
1093
+ accountReferences?: string[] | undefined;
1094
+ appReferences?: bigint[] | undefined;
1095
+ assetReferences?: bigint[] | undefined;
1096
+ boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
1097
+ } & {
420
1098
  method: algosdk.ABIMethod;
421
- args?: (algosdk.TransactionWithSigner | algosdk.Transaction | algosdk.ABIValue | Promise<algosdk.Transaction> | import("./composer").MethodCallParams)[] | undefined;
422
- } & ExecuteParams) => Promise<SendSingleTransactionResult>;
1099
+ args?: (algosdk.Transaction | algosdk.ABIValue | algosdk.TransactionWithSigner | Promise<algosdk.Transaction> | import("./composer").AppMethodCall<{
1100
+ lease?: string | Uint8Array | undefined;
1101
+ note?: string | Uint8Array | undefined;
1102
+ maxFee?: import("./amount").AlgoAmount | undefined;
1103
+ args?: Uint8Array[] | undefined;
1104
+ signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
1105
+ sender: string;
1106
+ rekeyTo?: string | undefined;
1107
+ staticFee?: import("./amount").AlgoAmount | undefined;
1108
+ extraFee?: import("./amount").AlgoAmount | undefined;
1109
+ validityWindow?: number | undefined;
1110
+ firstValidRound?: bigint | undefined;
1111
+ lastValidRound?: bigint | undefined;
1112
+ onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
1113
+ accountReferences?: string[] | 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;
1128
+ signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
1129
+ rekeyTo?: string | 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 | 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[] | 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;
1148
+ } & SendParams) => Promise<SendAppTransactionResult>;
423
1149
  /** Register an online key. */
424
1150
  onlineKeyRegistration: (params: import("./composer").CommonTransactionParams & {
425
1151
  voteKey: Uint8Array;
@@ -428,6 +1154,5 @@ export declare class AlgorandClientTransactionSender {
428
1154
  voteLast: bigint;
429
1155
  voteKeyDilution: bigint;
430
1156
  stateProofKey?: Uint8Array | undefined;
431
- } & ExecuteParams) => Promise<SendSingleTransactionResult>;
1157
+ } & SendParams) => Promise<SendSingleTransactionResult>;
432
1158
  }
433
- //# sourceMappingURL=algorand-client-transaction-sender.d.ts.map