@algorandfoundation/algokit-utils 2.3.3-beta.3 → 2.3.3-beta.5

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 (340) hide show
  1. package/cjs/account.d.ts.map +1 -0
  2. package/cjs/account.js.map +1 -0
  3. package/cjs/amount.d.ts.map +1 -0
  4. package/cjs/amount.js.map +1 -0
  5. package/cjs/app-client.d.ts.map +1 -0
  6. package/cjs/app-client.js.map +1 -0
  7. package/cjs/app-deploy.d.ts.map +1 -0
  8. package/cjs/app-deploy.js.map +1 -0
  9. package/cjs/app.d.ts.map +1 -0
  10. package/cjs/app.js.map +1 -0
  11. package/cjs/index.d.ts.map +1 -0
  12. package/cjs/index.js.map +1 -0
  13. package/cjs/indexer-lookup.d.ts.map +1 -0
  14. package/cjs/indexer-lookup.js.map +1 -0
  15. package/cjs/localnet.d.ts.map +1 -0
  16. package/{localnet.js → cjs/localnet.js} +1 -1
  17. package/cjs/localnet.js.map +1 -0
  18. package/cjs/network-client.d.ts.map +1 -0
  19. package/cjs/network-client.js.map +1 -0
  20. package/cjs/testing/account.d.ts.map +1 -0
  21. package/cjs/testing/account.js.map +1 -0
  22. package/cjs/testing/fixtures/algokit-log-capture-fixture.d.ts.map +1 -0
  23. package/cjs/testing/fixtures/algokit-log-capture-fixture.js.map +1 -0
  24. package/cjs/testing/fixtures/algorand-fixture.d.ts.map +1 -0
  25. package/cjs/testing/fixtures/algorand-fixture.js.map +1 -0
  26. package/cjs/testing/fixtures/index.d.ts.map +1 -0
  27. package/cjs/testing/fixtures/index.js.map +1 -0
  28. package/cjs/testing/index.d.ts.map +1 -0
  29. package/cjs/testing/index.js.map +1 -0
  30. package/cjs/testing/indexer.d.ts.map +1 -0
  31. package/cjs/testing/indexer.js.map +1 -0
  32. package/cjs/testing/test-logger.d.ts.map +1 -0
  33. package/{testing → cjs/testing}/test-logger.js +2 -0
  34. package/cjs/testing/test-logger.js.map +1 -0
  35. package/cjs/testing/transaction-logger.d.ts.map +1 -0
  36. package/{testing → cjs/testing}/transaction-logger.js +2 -3
  37. package/cjs/testing/transaction-logger.js.map +1 -0
  38. package/cjs/transaction.d.ts.map +1 -0
  39. package/cjs/transaction.js.map +1 -0
  40. package/cjs/transfer.d.ts.map +1 -0
  41. package/cjs/transfer.js.map +1 -0
  42. package/cjs/types/account.d.ts +66 -0
  43. package/cjs/types/account.d.ts.map +1 -0
  44. package/{types → cjs/types}/account.js +7 -0
  45. package/cjs/types/account.js.map +1 -0
  46. package/cjs/types/algo-http-client-with-retry.d.ts.map +1 -0
  47. package/{types → cjs/types}/algo-http-client-with-retry.js +16 -16
  48. package/cjs/types/algo-http-client-with-retry.js.map +1 -0
  49. package/cjs/types/amount.d.ts +24 -0
  50. package/cjs/types/amount.d.ts.map +1 -0
  51. package/{types → cjs/types}/amount.js +1 -0
  52. package/cjs/types/amount.js.map +1 -0
  53. package/cjs/types/app-client.d.ts +408 -0
  54. package/cjs/types/app-client.d.ts.map +1 -0
  55. package/{types → cjs/types}/app-client.js +13 -0
  56. package/cjs/types/app-client.js.map +1 -0
  57. package/cjs/types/app-spec.d.ts.map +1 -0
  58. package/{types → cjs/types}/app-spec.js.map +1 -1
  59. package/cjs/types/app.d.ts +308 -0
  60. package/cjs/types/app.d.ts.map +1 -0
  61. package/cjs/types/app.js.map +1 -0
  62. package/cjs/types/config.d.ts.map +1 -0
  63. package/{types → cjs/types}/config.js +1 -0
  64. package/cjs/types/config.js.map +1 -0
  65. package/cjs/types/indexer.d.ts.map +1 -0
  66. package/cjs/types/indexer.js.map +1 -0
  67. package/cjs/types/logging.d.ts.map +1 -0
  68. package/cjs/types/logging.js.map +1 -0
  69. package/cjs/types/logic-error.d.ts.map +1 -0
  70. package/{types → cjs/types}/logic-error.js +5 -2
  71. package/cjs/types/logic-error.js.map +1 -0
  72. package/cjs/types/network-client.d.ts +20 -0
  73. package/cjs/types/network-client.d.ts.map +1 -0
  74. package/cjs/types/network-client.js.map +1 -0
  75. package/cjs/types/testing.d.ts.map +1 -0
  76. package/{types → cjs/types}/testing.js.map +1 -1
  77. package/cjs/types/transaction.d.ts +111 -0
  78. package/cjs/types/transaction.d.ts.map +1 -0
  79. package/{types → cjs/types}/transaction.js.map +1 -1
  80. package/cjs/types/transfer.d.ts +32 -0
  81. package/cjs/types/transfer.d.ts.map +1 -0
  82. package/{types → cjs/types}/transfer.js.map +1 -1
  83. package/cjs/types/urlTokenBaseHTTPClient.d.ts.map +1 -0
  84. package/{types → cjs/types}/urlTokenBaseHTTPClient.js +4 -0
  85. package/cjs/types/urlTokenBaseHTTPClient.js.map +1 -0
  86. package/cjs/util.d.ts.map +1 -0
  87. package/cjs/util.js.map +1 -0
  88. package/esm/account.js +170 -0
  89. package/esm/account.js.map +1 -0
  90. package/esm/amount.js +27 -0
  91. package/esm/amount.js.map +1 -0
  92. package/esm/app-client.js +76 -0
  93. package/esm/app-client.js.map +1 -0
  94. package/esm/app-deploy.js +446 -0
  95. package/esm/app-deploy.js.map +1 -0
  96. package/esm/app.js +572 -0
  97. package/esm/app.js.map +1 -0
  98. package/esm/index.js +14 -0
  99. package/esm/index.js.map +1 -0
  100. package/esm/indexer-lookup.js +98 -0
  101. package/esm/indexer-lookup.js.map +1 -0
  102. package/esm/localnet.js +111 -0
  103. package/esm/localnet.js.map +1 -0
  104. package/esm/network-client.js +179 -0
  105. package/esm/network-client.js.map +1 -0
  106. package/esm/testing/account.js +24 -0
  107. package/esm/testing/account.js.map +1 -0
  108. package/esm/testing/fixtures/algokit-log-capture-fixture.js +39 -0
  109. package/esm/testing/fixtures/algokit-log-capture-fixture.js.map +1 -0
  110. package/esm/testing/fixtures/algorand-fixture.js +53 -0
  111. package/esm/testing/fixtures/algorand-fixture.js.map +1 -0
  112. package/esm/testing/fixtures/index.js +3 -0
  113. package/esm/testing/fixtures/index.js.map +1 -0
  114. package/esm/testing/index.js +6 -0
  115. package/esm/testing/index.js.map +1 -0
  116. package/esm/testing/indexer.js +36 -0
  117. package/esm/testing/indexer.js.map +1 -0
  118. package/esm/testing/test-logger.js +69 -0
  119. package/esm/testing/test-logger.js.map +1 -0
  120. package/esm/testing/transaction-logger.js +66 -0
  121. package/esm/testing/transaction-logger.js.map +1 -0
  122. package/esm/transaction.js +365 -0
  123. package/esm/transaction.js.map +1 -0
  124. package/esm/transfer.js +59 -0
  125. package/esm/transfer.js.map +1 -0
  126. package/esm/types/account.js +90 -0
  127. package/esm/types/account.js.map +1 -0
  128. package/esm/types/algo-http-client-with-retry.js +58 -0
  129. package/esm/types/algo-http-client-with-retry.js.map +1 -0
  130. package/esm/types/amount.js +35 -0
  131. package/esm/types/amount.js.map +1 -0
  132. package/esm/types/app-client.js +624 -0
  133. package/esm/types/app-client.js.map +1 -0
  134. package/esm/types/app-spec.js +2 -0
  135. package/esm/types/app-spec.js.map +1 -0
  136. package/esm/types/app.js +33 -0
  137. package/esm/types/app.js.map +1 -0
  138. package/esm/types/config.js +50 -0
  139. package/esm/types/config.js.map +1 -0
  140. package/esm/types/indexer.js +31 -0
  141. package/esm/types/indexer.js.map +1 -0
  142. package/esm/types/logging.js +24 -0
  143. package/esm/types/logging.js.map +1 -0
  144. package/esm/types/logic-error.js +49 -0
  145. package/esm/types/logic-error.js.map +1 -0
  146. package/esm/types/network-client.js +2 -0
  147. package/esm/types/network-client.js.map +1 -0
  148. package/esm/types/testing.js +2 -0
  149. package/esm/types/testing.js.map +1 -0
  150. package/esm/types/transaction.js +2 -0
  151. package/esm/types/transaction.js.map +1 -0
  152. package/esm/types/transfer.js +2 -0
  153. package/esm/types/transfer.js.map +1 -0
  154. package/esm/types/urlTokenBaseHTTPClient.js +151 -0
  155. package/esm/types/urlTokenBaseHTTPClient.js.map +1 -0
  156. package/esm/util.js +20 -0
  157. package/esm/util.js.map +1 -0
  158. package/package.json +42 -6
  159. package/types/account.d.ts +125 -63
  160. package/types/account.d.ts.map +1 -1
  161. package/types/amount.d.ts +18 -22
  162. package/types/amount.d.ts.map +1 -1
  163. package/types/app-client.d.ts +70 -407
  164. package/types/app-client.d.ts.map +1 -1
  165. package/types/app-deploy.d.ts +101 -0
  166. package/types/app-deploy.d.ts.map +1 -0
  167. package/types/app.d.ts +145 -290
  168. package/types/app.d.ts.map +1 -1
  169. package/types/index.d.ts +14 -0
  170. package/types/index.d.ts.map +1 -0
  171. package/types/indexer-lookup.d.ts +38 -0
  172. package/types/indexer-lookup.d.ts.map +1 -0
  173. package/types/localnet.d.ts +54 -0
  174. package/types/localnet.d.ts.map +1 -0
  175. package/types/network-client.d.ts +96 -19
  176. package/types/network-client.d.ts.map +1 -1
  177. package/types/testing/account.d.ts +14 -0
  178. package/types/testing/account.d.ts.map +1 -0
  179. package/types/testing/fixtures/algokit-log-capture-fixture.d.ts +19 -0
  180. package/types/testing/fixtures/algokit-log-capture-fixture.d.ts.map +1 -0
  181. package/types/testing/fixtures/algorand-fixture.d.ts +48 -0
  182. package/types/testing/fixtures/algorand-fixture.d.ts.map +1 -0
  183. package/types/testing/fixtures/index.d.ts +3 -0
  184. package/types/testing/fixtures/index.d.ts.map +1 -0
  185. package/types/testing/index.d.ts +6 -0
  186. package/types/testing/index.d.ts.map +1 -0
  187. package/types/testing/indexer.d.ts +12 -0
  188. package/types/testing/indexer.d.ts.map +1 -0
  189. package/types/testing/test-logger.d.ts +41 -0
  190. package/types/testing/test-logger.d.ts.map +1 -0
  191. package/types/testing/transaction-logger.d.ts +29 -0
  192. package/types/testing/transaction-logger.d.ts.map +1 -0
  193. package/types/transaction.d.ts +133 -106
  194. package/types/transaction.d.ts.map +1 -1
  195. package/types/transfer.d.ts +21 -31
  196. package/types/transfer.d.ts.map +1 -1
  197. package/types/types/account.d.ts +66 -0
  198. package/types/types/account.d.ts.map +1 -0
  199. package/types/types/algo-http-client-with-retry.d.ts +14 -0
  200. package/types/types/algo-http-client-with-retry.d.ts.map +1 -0
  201. package/types/types/amount.d.ts +24 -0
  202. package/types/types/amount.d.ts.map +1 -0
  203. package/types/types/app-client.d.ts +408 -0
  204. package/types/types/app-client.d.ts.map +1 -0
  205. package/types/types/app-spec.d.ts +154 -0
  206. package/types/types/app-spec.d.ts.map +1 -0
  207. package/types/types/app.d.ts +308 -0
  208. package/types/types/app.d.ts.map +1 -0
  209. package/types/types/config.d.ts +32 -0
  210. package/types/types/config.d.ts.map +1 -0
  211. package/types/types/indexer.d.ts +623 -0
  212. package/types/types/indexer.d.ts.map +1 -0
  213. package/types/types/logging.d.ts +13 -0
  214. package/types/types/logging.d.ts.map +1 -0
  215. package/types/types/logic-error.d.ts +37 -0
  216. package/types/types/logic-error.d.ts.map +1 -0
  217. package/types/types/network-client.d.ts +20 -0
  218. package/types/types/network-client.d.ts.map +1 -0
  219. package/types/types/testing.d.ts +89 -0
  220. package/types/types/testing.d.ts.map +1 -0
  221. package/types/types/transaction.d.ts +111 -0
  222. package/types/types/transaction.d.ts.map +1 -0
  223. package/types/types/transfer.d.ts +32 -0
  224. package/types/types/transfer.d.ts.map +1 -0
  225. package/types/types/urlTokenBaseHTTPClient.d.ts +41 -0
  226. package/types/types/urlTokenBaseHTTPClient.d.ts.map +1 -0
  227. package/types/util.d.ts +10 -0
  228. package/types/util.d.ts.map +1 -0
  229. package/account.d.ts.map +0 -1
  230. package/account.js.map +0 -1
  231. package/amount.d.ts.map +0 -1
  232. package/amount.js.map +0 -1
  233. package/app-client.d.ts.map +0 -1
  234. package/app-client.js.map +0 -1
  235. package/app-deploy.d.ts.map +0 -1
  236. package/app-deploy.js.map +0 -1
  237. package/app.d.ts.map +0 -1
  238. package/app.js.map +0 -1
  239. package/index.d.ts.map +0 -1
  240. package/index.js.map +0 -1
  241. package/indexer-lookup.d.ts.map +0 -1
  242. package/indexer-lookup.js.map +0 -1
  243. package/localnet.d.ts.map +0 -1
  244. package/localnet.js.map +0 -1
  245. package/network-client.d.ts.map +0 -1
  246. package/network-client.js.map +0 -1
  247. package/testing/account.d.ts.map +0 -1
  248. package/testing/account.js.map +0 -1
  249. package/testing/fixtures/algokit-log-capture-fixture.d.ts.map +0 -1
  250. package/testing/fixtures/algokit-log-capture-fixture.js.map +0 -1
  251. package/testing/fixtures/algorand-fixture.d.ts.map +0 -1
  252. package/testing/fixtures/algorand-fixture.js.map +0 -1
  253. package/testing/fixtures/index.d.ts.map +0 -1
  254. package/testing/fixtures/index.js.map +0 -1
  255. package/testing/index.d.ts.map +0 -1
  256. package/testing/index.js.map +0 -1
  257. package/testing/indexer.d.ts.map +0 -1
  258. package/testing/indexer.js.map +0 -1
  259. package/testing/test-logger.d.ts.map +0 -1
  260. package/testing/test-logger.js.map +0 -1
  261. package/testing/transaction-logger.d.ts.map +0 -1
  262. package/testing/transaction-logger.js.map +0 -1
  263. package/transaction.d.ts.map +0 -1
  264. package/transaction.js.map +0 -1
  265. package/transfer.d.ts.map +0 -1
  266. package/transfer.js.map +0 -1
  267. package/types/account.js.map +0 -1
  268. package/types/algo-http-client-with-retry.d.ts.map +0 -1
  269. package/types/algo-http-client-with-retry.js.map +0 -1
  270. package/types/amount.js.map +0 -1
  271. package/types/app-client.js.map +0 -1
  272. package/types/app-spec.d.ts.map +0 -1
  273. package/types/app.js.map +0 -1
  274. package/types/config.d.ts.map +0 -1
  275. package/types/config.js.map +0 -1
  276. package/types/indexer.d.ts.map +0 -1
  277. package/types/indexer.js.map +0 -1
  278. package/types/logging.d.ts.map +0 -1
  279. package/types/logging.js.map +0 -1
  280. package/types/logic-error.d.ts.map +0 -1
  281. package/types/logic-error.js.map +0 -1
  282. package/types/network-client.js.map +0 -1
  283. package/types/testing.d.ts.map +0 -1
  284. package/types/urlTokenBaseHTTPClient.d.ts.map +0 -1
  285. package/types/urlTokenBaseHTTPClient.js.map +0 -1
  286. package/util.d.ts.map +0 -1
  287. package/util.js.map +0 -1
  288. /package/{account.d.ts → cjs/account.d.ts} +0 -0
  289. /package/{account.js → cjs/account.js} +0 -0
  290. /package/{amount.d.ts → cjs/amount.d.ts} +0 -0
  291. /package/{amount.js → cjs/amount.js} +0 -0
  292. /package/{app-client.d.ts → cjs/app-client.d.ts} +0 -0
  293. /package/{app-client.js → cjs/app-client.js} +0 -0
  294. /package/{app-deploy.d.ts → cjs/app-deploy.d.ts} +0 -0
  295. /package/{app-deploy.js → cjs/app-deploy.js} +0 -0
  296. /package/{app.d.ts → cjs/app.d.ts} +0 -0
  297. /package/{app.js → cjs/app.js} +0 -0
  298. /package/{index.d.ts → cjs/index.d.ts} +0 -0
  299. /package/{index.js → cjs/index.js} +0 -0
  300. /package/{indexer-lookup.d.ts → cjs/indexer-lookup.d.ts} +0 -0
  301. /package/{indexer-lookup.js → cjs/indexer-lookup.js} +0 -0
  302. /package/{localnet.d.ts → cjs/localnet.d.ts} +0 -0
  303. /package/{network-client.d.ts → cjs/network-client.d.ts} +0 -0
  304. /package/{network-client.js → cjs/network-client.js} +0 -0
  305. /package/{testing → cjs/testing}/account.d.ts +0 -0
  306. /package/{testing → cjs/testing}/account.js +0 -0
  307. /package/{testing → cjs/testing}/fixtures/algokit-log-capture-fixture.d.ts +0 -0
  308. /package/{testing → cjs/testing}/fixtures/algokit-log-capture-fixture.js +0 -0
  309. /package/{testing → cjs/testing}/fixtures/algorand-fixture.d.ts +0 -0
  310. /package/{testing → cjs/testing}/fixtures/algorand-fixture.js +0 -0
  311. /package/{testing → cjs/testing}/fixtures/index.d.ts +0 -0
  312. /package/{testing → cjs/testing}/fixtures/index.js +0 -0
  313. /package/{testing → cjs/testing}/index.d.ts +0 -0
  314. /package/{testing → cjs/testing}/index.js +0 -0
  315. /package/{testing → cjs/testing}/indexer.d.ts +0 -0
  316. /package/{testing → cjs/testing}/indexer.js +0 -0
  317. /package/{testing → cjs/testing}/test-logger.d.ts +0 -0
  318. /package/{testing → cjs/testing}/transaction-logger.d.ts +0 -0
  319. /package/{transaction.d.ts → cjs/transaction.d.ts} +0 -0
  320. /package/{transaction.js → cjs/transaction.js} +0 -0
  321. /package/{transfer.d.ts → cjs/transfer.d.ts} +0 -0
  322. /package/{transfer.js → cjs/transfer.js} +0 -0
  323. /package/{types → cjs/types}/algo-http-client-with-retry.d.ts +0 -0
  324. /package/{types → cjs/types}/app-spec.d.ts +0 -0
  325. /package/{types → cjs/types}/app-spec.js +0 -0
  326. /package/{types → cjs/types}/app.js +0 -0
  327. /package/{types → cjs/types}/config.d.ts +0 -0
  328. /package/{types → cjs/types}/indexer.d.ts +0 -0
  329. /package/{types → cjs/types}/indexer.js +0 -0
  330. /package/{types → cjs/types}/logging.d.ts +0 -0
  331. /package/{types → cjs/types}/logging.js +0 -0
  332. /package/{types → cjs/types}/logic-error.d.ts +0 -0
  333. /package/{types → cjs/types}/network-client.js +0 -0
  334. /package/{types → cjs/types}/testing.d.ts +0 -0
  335. /package/{types → cjs/types}/testing.js +0 -0
  336. /package/{types → cjs/types}/transaction.js +0 -0
  337. /package/{types → cjs/types}/transfer.js +0 -0
  338. /package/{types → cjs/types}/urlTokenBaseHTTPClient.d.ts +0 -0
  339. /package/{util.d.ts → cjs/util.d.ts} +0 -0
  340. /package/{util.js → cjs/util.js} +0 -0
@@ -1,32 +1,22 @@
1
- import { SuggestedParams } from 'algosdk';
2
- import { AlgoAmount } from './amount';
3
- import { SendTransactionFrom, SendTransactionParams, TransactionNote } from './transaction';
4
- /** Parameters for `transferAlgos` call. */
5
- export interface AlgoTransferParams extends SendTransactionParams {
6
- /** The account that will send the ALGOs */
7
- from: SendTransactionFrom;
8
- /** The account / account address that will receive the ALGOs */
9
- to: SendTransactionFrom | string;
10
- /** The amount to send */
11
- amount: AlgoAmount;
12
- /** Optional transaction parameters */
13
- transactionParams?: SuggestedParams;
14
- /** The (optional) transaction note */
15
- note?: TransactionNote;
16
- }
17
- /** Parameters for `ensureFunded` call. */
18
- export interface EnsureFundedParams extends SendTransactionParams {
19
- /** The account to fund */
20
- accountToFund: SendTransactionFrom | string;
21
- /** The account to use as a funding source, will default to using the dispenser account returned by `algokit.getDispenserAccount` */
22
- fundingSource?: SendTransactionFrom;
23
- /** The minimum balance of ALGOs that the account should have available to spend (i.e. on top of minimum balance requirement) */
24
- minSpendingBalance: AlgoAmount;
25
- /** When issuing a funding amount, the minimum amount to transfer (avoids many small transfers if this gets called often on an active account) */
26
- minFundingIncrement?: AlgoAmount;
27
- /** Optional transaction parameters */
28
- transactionParams?: SuggestedParams;
29
- /** The (optional) transaction note, default: "Funding account to meet minimum requirement" */
30
- note?: TransactionNote;
31
- }
1
+ import { Algodv2, Kmd } from 'algosdk';
2
+ import { SendTransactionResult } from './types/transaction';
3
+ import { AlgoTransferParams, EnsureFundedParams } from './types/transfer';
4
+ /**
5
+ * Transfer ALGOs between two accounts.
6
+ * @param transfer The transfer definition
7
+ * @param algod An algod client
8
+ * @returns The transaction object and optionally the confirmation if it was sent to the chain (`skipSending` is `false` or unset)
9
+ */
10
+ export declare function transferAlgos(transfer: AlgoTransferParams, algod: Algodv2): Promise<SendTransactionResult>;
11
+ /**
12
+ * Funds a given account using a funding source such that it has a certain amount of algos free to spend (accounting for ALGOs locked in minimum balance requirement).
13
+ *
14
+ * https://developer.algorand.org/docs/get-details/accounts/#minimum-balance
15
+ *
16
+ * @param funding The funding configuration
17
+ * @param algod An algod client
18
+ * @param kmd An optional kmd client
19
+ * @returns undefined if nothing was needed or the transaction send result
20
+ */
21
+ export declare function ensureFunded(funding: EnsureFundedParams, algod: Algodv2, kmd?: Kmd): Promise<SendTransactionResult | undefined>;
32
22
  //# sourceMappingURL=transfer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"transfer.d.ts","sourceRoot":"","sources":["../../src/types/transfer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AACrC,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAE3F,2CAA2C;AAC3C,MAAM,WAAW,kBAAmB,SAAQ,qBAAqB;IAC/D,2CAA2C;IAC3C,IAAI,EAAE,mBAAmB,CAAA;IACzB,gEAAgE;IAChE,EAAE,EAAE,mBAAmB,GAAG,MAAM,CAAA;IAChC,yBAAyB;IACzB,MAAM,EAAE,UAAU,CAAA;IAClB,sCAAsC;IACtC,iBAAiB,CAAC,EAAE,eAAe,CAAA;IACnC,sCAAsC;IACtC,IAAI,CAAC,EAAE,eAAe,CAAA;CACvB;AAED,0CAA0C;AAC1C,MAAM,WAAW,kBAAmB,SAAQ,qBAAqB;IAC/D,0BAA0B;IAC1B,aAAa,EAAE,mBAAmB,GAAG,MAAM,CAAA;IAC3C,oIAAoI;IACpI,aAAa,CAAC,EAAE,mBAAmB,CAAA;IACnC,gIAAgI;IAChI,kBAAkB,EAAE,UAAU,CAAA;IAC9B,iJAAiJ;IACjJ,mBAAmB,CAAC,EAAE,UAAU,CAAA;IAChC,sCAAsC;IACtC,iBAAiB,CAAC,EAAE,eAAe,CAAA;IACnC,8FAA8F;IAC9F,IAAI,CAAC,EAAE,eAAe,CAAA;CACvB"}
1
+ {"version":3,"file":"transfer.d.ts","sourceRoot":"","sources":["../../src/transfer.ts"],"names":[],"mappings":"AAAA,OAAgB,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,SAAS,CAAA;AAG/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAC3D,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAEzE;;;;;GAKG;AACH,wBAAsB,aAAa,CAAC,QAAQ,EAAE,kBAAkB,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAkBhH;AAED;;;;;;;;;GASG;AACH,wBAAsB,YAAY,CAAC,OAAO,EAAE,kBAAkB,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,qBAAqB,GAAG,SAAS,CAAC,CAiCrI"}
@@ -0,0 +1,66 @@
1
+ import algosdk, { Account, MultisigMetadata, Transaction, TransactionSigner } from 'algosdk';
2
+ /**
3
+ * The account name identifier used for fund dispensing in test environments
4
+ */
5
+ export declare const DISPENSER_ACCOUNT = "DISPENSER";
6
+ /** Account wrapper that supports partial or full multisig signing. */
7
+ export declare class MultisigAccount {
8
+ _params: algosdk.MultisigMetadata;
9
+ _signingAccounts: (algosdk.Account | SigningAccount)[];
10
+ _addr: string;
11
+ _signer: TransactionSigner;
12
+ /** The parameters for the multisig account */
13
+ get params(): Readonly<algosdk.MultisigMetadata>;
14
+ /** The list of accounts that are present to sign */
15
+ get signingAccounts(): Readonly<(algosdk.Account | SigningAccount)[]>;
16
+ /** The address of the multisig account */
17
+ get addr(): Readonly<string>;
18
+ get signer(): TransactionSigner;
19
+ constructor(multisigParams: MultisigMetadata, signingAccounts: (Account | SigningAccount)[]);
20
+ /**
21
+ * Sign the given transaction
22
+ * @param transaction Either a transaction object or a raw, partially signed transaction
23
+ * @returns The transaction signed by the present signers
24
+ */
25
+ sign(transaction: Transaction | Uint8Array): Uint8Array;
26
+ }
27
+ /** Account wrapper that supports a rekeyed account */
28
+ export declare class SigningAccount implements Account {
29
+ private _account;
30
+ private _signer;
31
+ private _sender;
32
+ /**
33
+ * Algorand address of the sender
34
+ */
35
+ get addr(): Readonly<string>;
36
+ /**
37
+ * Secret key belonging to the signer
38
+ */
39
+ get sk(): Readonly<Uint8Array>;
40
+ /**
41
+ * Transaction signer for the underlying signing account
42
+ */
43
+ get signer(): TransactionSigner;
44
+ /**
45
+ * Algorand account of the sender address and signer private key
46
+ */
47
+ get sender(): Account;
48
+ constructor(account: Account, sender: string | undefined);
49
+ }
50
+ /** A wrapper around `TransactionSigner` that also has the sender address. */
51
+ export interface TransactionSignerAccount {
52
+ addr: Readonly<string>;
53
+ signer: TransactionSigner;
54
+ }
55
+ /** Config for an account config */
56
+ export interface AccountConfig {
57
+ /** Mnemonic for an account */
58
+ accountMnemonic: string;
59
+ /** Address of a rekeyed account */
60
+ senderAddress?: string;
61
+ /** Account name used to retrieve config */
62
+ accountName: string;
63
+ /** @deprecated Renamed to senderAddress in 2.3.1 */
64
+ senderMnemonic?: string;
65
+ }
66
+ //# sourceMappingURL=account.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../src/types/account.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,EAAE,EAAE,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAE5F;;GAEG;AACH,eAAO,MAAM,iBAAiB,cAAc,CAAA;AAE5C,sEAAsE;AACtE,qBAAa,eAAe;IAC1B,OAAO,EAAE,OAAO,CAAC,gBAAgB,CAAA;IACjC,gBAAgB,EAAE,CAAC,OAAO,CAAC,OAAO,GAAG,cAAc,CAAC,EAAE,CAAA;IACtD,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,iBAAiB,CAAA;IAE1B,8CAA8C;IAC9C,IAAI,MAAM,IAAI,QAAQ,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAE/C;IAED,oDAAoD;IACpD,IAAI,eAAe,IAAI,QAAQ,CAAC,CAAC,OAAO,CAAC,OAAO,GAAG,cAAc,CAAC,EAAE,CAAC,CAEpE;IAED,0CAA0C;IAC1C,IAAI,IAAI,IAAI,QAAQ,CAAC,MAAM,CAAC,CAE3B;IAED,IAAI,MAAM,IAAI,iBAAiB,CAE9B;gBAEW,cAAc,EAAE,gBAAgB,EAAE,eAAe,EAAE,CAAC,OAAO,GAAG,cAAc,CAAC,EAAE;IAU3F;;;;OAIG;IACI,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,UAAU,GAAG,UAAU;CAY/D;AAED,sDAAsD;AACtD,qBAAa,cAAe,YAAW,OAAO;IAC5C,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,OAAO,CAAmB;IAClC,OAAO,CAAC,OAAO,CAAQ;IAEvB;;OAEG;IACH,IAAI,IAAI,IAAI,QAAQ,CAAC,MAAM,CAAC,CAE3B;IAED;;OAEG;IACH,IAAI,EAAE,IAAI,QAAQ,CAAC,UAAU,CAAC,CAE7B;IAED;;OAEG;IACH,IAAI,MAAM,IAAI,iBAAiB,CAE9B;IAED;;OAEG;IACH,IAAI,MAAM,IAAI,OAAO,CAKpB;gBAEW,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,SAAS;CAKzD;AAED,6EAA6E;AAC7E,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAA;IACtB,MAAM,EAAE,iBAAiB,CAAA;CAC1B;AAED,mCAAmC;AACnC,MAAM,WAAW,aAAa;IAC5B,8BAA8B;IAC9B,eAAe,EAAE,MAAM,CAAA;IACvB,mCAAmC;IACnC,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,2CAA2C;IAC3C,WAAW,EAAE,MAAM,CAAA;IAEnB,oDAAoD;IACpD,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB"}
@@ -0,0 +1,14 @@
1
+ import type { BaseHTTPClientResponse, Query } from 'algosdk/dist/types/client/baseHTTPClient';
2
+ import { URLTokenBaseHTTPClient } from './urlTokenBaseHTTPClient';
3
+ /** A HTTP Client that wraps the Algorand SDK HTTP Client with retries */
4
+ export declare class AlgoHttpClientWithRetry extends URLTokenBaseHTTPClient {
5
+ private static readonly MAX_TRIES;
6
+ private static readonly MAX_BACKOFF_MS;
7
+ private static readonly RETRY_STATUS_CODES;
8
+ private static readonly RETRY_ERROR_CODES;
9
+ private callWithRetry;
10
+ get(relativePath: string, query?: Query<string>, requestHeaders?: Record<string, string>): Promise<BaseHTTPClientResponse>;
11
+ post(relativePath: string, data: Uint8Array, query?: Query<string>, requestHeaders?: Record<string, string>): Promise<BaseHTTPClientResponse>;
12
+ delete(relativePath: string, data: Uint8Array, query?: Query<string>, requestHeaders?: Record<string, string>): Promise<BaseHTTPClientResponse>;
13
+ }
14
+ //# sourceMappingURL=algo-http-client-with-retry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"algo-http-client-with-retry.d.ts","sourceRoot":"","sources":["../../../src/types/algo-http-client-with-retry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,KAAK,EAAE,MAAM,0CAA0C,CAAA;AAE7F,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AAEjE,yEAAyE;AACzE,qBAAa,uBAAwB,SAAQ,sBAAsB;IACjE,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAI;IACrC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAQ;IAI9C,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,kBAAkB,CAAsC;IAChF,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,iBAAiB,CAUxC;YAEa,aAAa;IA6BrB,GAAG,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,cAAc,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAI9H,IAAI,CACR,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,UAAU,EAChB,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,EACrB,cAAc,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GAC1C,OAAO,CAAC,sBAAsB,CAAC;IAI5B,MAAM,CACV,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,UAAU,EAChB,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,EACrB,cAAc,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GAC1C,OAAO,CAAC,sBAAsB,CAAC;CAGnC"}
@@ -0,0 +1,24 @@
1
+ /** Wrapper class to ensure safe, explicit conversion between µAlgos, Algos and numbers */
2
+ export declare class AlgoAmount {
3
+ private amountInMicroAlgos;
4
+ /** Return the amount as a number in µAlgos */
5
+ get microAlgos(): number;
6
+ /** Return the amount as a number in Algos */
7
+ get algos(): number;
8
+ constructor(amount: {
9
+ algos: number;
10
+ } | {
11
+ microAlgos: number;
12
+ });
13
+ toString(): string;
14
+ /** valueOf allows you to use `AlgoAmount` in comparison operations such as `<` and `>=` etc.,
15
+ * but it's not recommended to use this to convert to a number, it's much safer to explicitly call
16
+ * the algos or microAlgos properties
17
+ */
18
+ valueOf(): number;
19
+ /** Create a `AlgoAmount` object representing the given number of Algos */
20
+ static Algos(amount: number): AlgoAmount;
21
+ /** Create a `AlgoAmount` object representing the given number of µAlgos */
22
+ static MicroAlgos(amount: number): AlgoAmount;
23
+ }
24
+ //# sourceMappingURL=amount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"amount.d.ts","sourceRoot":"","sources":["../../../src/types/amount.ts"],"names":[],"mappings":"AAEA,0FAA0F;AAC1F,qBAAa,UAAU;IACrB,OAAO,CAAC,kBAAkB,CAAA;IAE1B,8CAA8C;IAC9C,IAAI,UAAU,WAEb;IAED,6CAA6C;IAC7C,IAAI,KAAK,WAER;gBAEW,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE;IAI9D,QAAQ,IAAI,MAAM;IAIlB;;;OAGG;IACH,OAAO,IAAI,MAAM;IAIjB,0EAA0E;IAC1E,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM;IAI3B,2EAA2E;IAC3E,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,MAAM;CAGjC"}
@@ -0,0 +1,408 @@
1
+ import algosdk, { ABIMethod, ABIMethodParams, ABIType, ABIValue, Algodv2, Indexer, OnApplicationComplete, SuggestedParams } from 'algosdk';
2
+ import { AlgoAmount } from './amount';
3
+ import { ABIAppCallArgs, ABIReturn, AppCallArgs, AppCallTransactionResult, AppCallType, AppCompilationResult, AppLookup, AppMetadata, AppReference, AppState, BoxName, OnSchemaBreak, OnUpdate, RawAppCallArgs, TealTemplateParams } from './app';
4
+ import { AppSpec } from './app-spec';
5
+ import { SendTransactionFrom, SendTransactionParams, TransactionNote } from './transaction';
6
+ /** Configuration to resolve app by creator and name `getCreatorAppsByName` */
7
+ export type ResolveAppByCreatorAndNameBase = {
8
+ /** The address of the app creator account to resolve the app by */
9
+ creatorAddress: string;
10
+ /** The optional name override to resolve the app by within the creator account (default: uses the name in the ABI contract) */
11
+ name?: string;
12
+ /** The mechanism to find an existing app instance metadata for the given creator and name; either:
13
+ * * An indexer instance to search the creator account apps; or
14
+ * * The cached value of the existing apps for the given creator from `getCreatorAppsByName`
15
+ */
16
+ findExistingUsing: Indexer | AppLookup;
17
+ };
18
+ /** Configuration to resolve app by creator and name `getCreatorAppsByName` */
19
+ export type ResolveAppByCreatorAndName = ResolveAppByCreatorAndNameBase & {
20
+ /** How the app ID is resolved, either by `'id'` or `'creatorAndName'`; must be `'creatorAndName'` if you want to use `deploy` */
21
+ resolveBy: 'creatorAndName';
22
+ };
23
+ /** Configuration to resolve app by ID */
24
+ export interface ResolveAppByIdBase {
25
+ /** The id of an existing app to call using this client, or 0 if the app hasn't been created yet */
26
+ id: number | bigint;
27
+ /** The optional name to use to mark the app when deploying `ApplicationClient.deploy` (default: uses the name in the ABI contract) */
28
+ name?: string;
29
+ }
30
+ export interface ResolveAppById extends ResolveAppByIdBase {
31
+ /** How the app ID is resolved, either by `'id'` or `'creatorAndName'`; must be `'creatorAndName'` if you want to use `deploy` */
32
+ resolveBy: 'id';
33
+ }
34
+ /** The details of an AlgoKit Utils deployed app */
35
+ export type AppDetailsBase = {
36
+ /** Default sender to use for transactions issued by this application client */
37
+ sender?: SendTransactionFrom;
38
+ /** Default suggested params object to use */
39
+ params?: SuggestedParams;
40
+ /** Optionally provide any deploy-time parameters to replace in the TEAL code; if specified here will get
41
+ * used in calls to `deploy`, `create` and `update` unless overridden in those calls
42
+ */
43
+ deployTimeParams?: TealTemplateParams;
44
+ };
45
+ /** The details of an AlgoKit Utils deployed app */
46
+ export type AppDetails = AppDetailsBase & (ResolveAppById | ResolveAppByCreatorAndName);
47
+ /** The details of an ARC-0032 app spec specified, AlgoKit Utils deployed app */
48
+ export type AppSpecAppDetailsBase = {
49
+ /** The ARC-0032 application spec as either:
50
+ * * Parsed JSON `AppSpec`
51
+ * * Raw JSON string
52
+ */
53
+ app: AppSpec | string;
54
+ };
55
+ /** The details of an ARC-0032 app spec specified, AlgoKit Utils deployed app by id*/
56
+ export type AppSpecAppDetailsById = AppSpecAppDetailsBase & AppDetailsBase & ResolveAppByIdBase;
57
+ /** The details of an ARC-0032 app spec specified, AlgoKit Utils deployed app by creator and name*/
58
+ export type AppSpecAppDetailsByCreatorAndName = AppSpecAppDetailsBase & AppDetailsBase & ResolveAppByCreatorAndNameBase;
59
+ /** The details of an ARC-0032 app spec specified, AlgoKit Utils deployed app */
60
+ export type AppSpecAppDetails = AppSpecAppDetailsBase & AppDetails;
61
+ /** Core parameters to pass into ApplicationClient.deploy */
62
+ export interface AppClientDeployCoreParams {
63
+ /** The version of the contract, uses "1.0" by default */
64
+ version?: string;
65
+ /** The optional sender to send the transaction from, will use the application client's default sender by default if specified */
66
+ sender?: SendTransactionFrom;
67
+ /** Parameters to control transaction sending */
68
+ sendParams?: Omit<SendTransactionParams, 'skipSending' | 'skipWaiting'>;
69
+ /** Whether or not to allow updates in the contract using the deploy-time updatability control if present in your contract.
70
+ * If this is not specified then it will automatically be determined based on the AppSpec definition
71
+ **/
72
+ allowUpdate?: boolean;
73
+ /** Whether or not to allow deletes in the contract using the deploy-time deletability control if present in your contract.
74
+ * If this is not specified then it will automatically be determined based on the AppSpec definition
75
+ **/
76
+ allowDelete?: boolean;
77
+ /** What action to perform if a schema break is detected */
78
+ onSchemaBreak?: 'replace' | 'fail' | 'append' | OnSchemaBreak;
79
+ /** What action to perform if a TEAL update is detected */
80
+ onUpdate?: 'update' | 'replace' | 'append' | 'fail' | OnUpdate;
81
+ }
82
+ /** Call interface parameters to pass into ApplicationClient.deploy */
83
+ export interface AppClientDeployCallInterfaceParams {
84
+ /** Any deploy-time parameters to replace in the TEAL code */
85
+ deployTimeParams?: TealTemplateParams;
86
+ /** Any args to pass to any create transaction that is issued as part of deployment */
87
+ createArgs?: AppClientCallArgs;
88
+ /** Override the on-completion action for the create call; defaults to NoOp */
89
+ createOnCompleteAction?: Exclude<AppCallType, 'clear_state'> | Exclude<OnApplicationComplete, OnApplicationComplete.ClearStateOC>;
90
+ /** Any args to pass to any update transaction that is issued as part of deployment */
91
+ updateArgs?: AppClientCallArgs;
92
+ /** Any args to pass to any delete transaction that is issued as part of deployment */
93
+ deleteArgs?: AppClientCallArgs;
94
+ }
95
+ /** Parameters to pass into ApplicationClient.deploy */
96
+ export interface AppClientDeployParams extends AppClientDeployCoreParams, AppClientDeployCallInterfaceParams {
97
+ }
98
+ export interface AppClientCallRawArgs extends RawAppCallArgs {
99
+ }
100
+ export interface AppClientCallABIArgs extends Omit<ABIAppCallArgs, 'method'> {
101
+ /** If calling an ABI method then either the name of the method, or the ABI signature */
102
+ method: string;
103
+ }
104
+ /** The arguments to pass to an Application Client smart contract call */
105
+ export type AppClientCallArgs = AppClientCallRawArgs | AppClientCallABIArgs;
106
+ /** Common (core) parameters to construct a ApplicationClient contract call */
107
+ export interface AppClientCallCoreParams {
108
+ /** The optional sender to send the transaction from, will use the application client's default sender by default if specified */
109
+ sender?: SendTransactionFrom;
110
+ /** The transaction note for the smart contract call */
111
+ note?: TransactionNote;
112
+ /** Parameters to control transaction sending */
113
+ sendParams?: SendTransactionParams;
114
+ }
115
+ /** Parameters to construct a ApplicationClient contract call */
116
+ export type AppClientCallParams = AppClientCallArgs & AppClientCallCoreParams;
117
+ /** Parameters to construct a ApplicationClient clear state contract call */
118
+ export type AppClientClearStateParams = AppClientCallRawArgs & AppClientCallCoreParams;
119
+ export interface AppClientCompilationParams {
120
+ /** Any deploy-time parameters to replace in the TEAL code */
121
+ deployTimeParams?: TealTemplateParams;
122
+ updatable?: boolean;
123
+ deletable?: boolean;
124
+ }
125
+ /** On-complete action parameter for creating a contract using ApplicationClient */
126
+ export type AppClientCreateOnComplete = {
127
+ /** Override the on-completion action for the create call; defaults to NoOp */
128
+ onCompleteAction?: Exclude<AppCallType, 'clear_state'> | Exclude<OnApplicationComplete, OnApplicationComplete.ClearStateOC>;
129
+ };
130
+ /** Parameters for creating a contract using ApplicationClient */
131
+ export type AppClientCreateParams = AppClientCallParams & AppClientCompilationParams & AppClientCreateOnComplete;
132
+ /** Parameters for updating a contract using ApplicationClient */
133
+ export type AppClientUpdateParams = AppClientCallParams & AppClientCompilationParams;
134
+ /** Parameters for funding an app account */
135
+ export interface FundAppAccountParams {
136
+ amount: AlgoAmount;
137
+ /** The optional sender to send the transaction from, will use the application client's default sender by default if specified */
138
+ sender?: SendTransactionFrom;
139
+ /** The transaction note for the smart contract call */
140
+ note?: TransactionNote;
141
+ /** Parameters to control transaction sending */
142
+ sendParams?: SendTransactionParams;
143
+ }
144
+ /** Source maps for an Algorand app */
145
+ export interface AppSourceMaps {
146
+ /** The source map of the approval program */
147
+ approvalSourceMap: SourceMapExport;
148
+ /** The source map of the clear program */
149
+ clearSourceMap: SourceMapExport;
150
+ }
151
+ export interface SourceMapExport {
152
+ version: number;
153
+ sources: string[];
154
+ names: string[];
155
+ mappings: string;
156
+ }
157
+ /** Application client - a class that wraps an ARC-0032 app spec and provides high productivity methods to deploy and call the app */
158
+ export declare class ApplicationClient {
159
+ private algod;
160
+ private indexer?;
161
+ private appSpec;
162
+ private sender;
163
+ private params;
164
+ private existingDeployments;
165
+ private deployTimeParams?;
166
+ private _appId;
167
+ private _appAddress;
168
+ private _creator;
169
+ private _appName;
170
+ private _approvalSourceMap;
171
+ private _clearSourceMap;
172
+ /**
173
+ * Create a new ApplicationClient instance
174
+ * @param appDetails The details of the app
175
+ * @param algod An algod instance
176
+ */
177
+ constructor(appDetails: AppSpecAppDetails, algod: Algodv2);
178
+ /**
179
+ * Compiles the approval and clear programs and sets up the source map.
180
+ * @param compilation The deploy-time parameters for the compilation
181
+ * @returns The compiled approval and clear programs
182
+ */
183
+ compile(compilation?: AppClientCompilationParams): Promise<{
184
+ approvalCompiled: import("./app").CompiledTeal;
185
+ clearCompiled: import("./app").CompiledTeal;
186
+ }>;
187
+ /**
188
+ * Export the current source maps for the app.
189
+ * @returns The source maps
190
+ */
191
+ exportSourceMaps(): AppSourceMaps;
192
+ /**
193
+ * Import source maps for the app.
194
+ * @param sourceMaps The source maps to import
195
+ */
196
+ importSourceMaps(sourceMaps: AppSourceMaps): void;
197
+ /**
198
+ * Idempotently deploy (create, update/delete if changed) an app against the given name via the given creator account, including deploy-time template placeholder substitutions.
199
+ *
200
+ * To understand the architecture decisions behind this functionality please see https://github.com/algorandfoundation/algokit-cli/blob/main/docs/architecture-decisions/2023-01-12_smart-contract-deployment.md
201
+ *
202
+ * **Note:** if there is a breaking state schema change to an existing app (and `onSchemaBreak` is set to `'replace'`) the existing app will be deleted and re-created.
203
+ *
204
+ * **Note:** if there is an update (different TEAL code) to an existing app (and `onUpdate` is set to `'replace'`) the existing app will be deleted and re-created.
205
+ * @param deploy Deployment details
206
+ * @returns The metadata and transaction result(s) of the deployment, or just the metadata if it didn't need to issue transactions
207
+ */
208
+ deploy(deploy?: AppClientDeployParams): Promise<(Partial<AppCompilationResult> & AppMetadata & {
209
+ operationPerformed: "nothing";
210
+ }) | {
211
+ compiledApproval: import("./app").CompiledTeal;
212
+ compiledClear: import("./app").CompiledTeal;
213
+ confirmation: algosdk.modelsv2.PendingTransactionResponse;
214
+ confirmations: algosdk.modelsv2.PendingTransactionResponse[];
215
+ transaction: algosdk.Transaction;
216
+ transactions: algosdk.Transaction[];
217
+ createdRound: number;
218
+ updatedRound: number;
219
+ createdMetadata: import("./app").AppDeployMetadata;
220
+ deleted: boolean;
221
+ appId: number | bigint;
222
+ appAddress: string;
223
+ name: string;
224
+ version: string;
225
+ deletable?: boolean | undefined;
226
+ updatable?: boolean | undefined;
227
+ return?: ABIReturn | undefined;
228
+ operationPerformed: "update" | "create";
229
+ } | {
230
+ compiledApproval: import("./app").CompiledTeal;
231
+ compiledClear: import("./app").CompiledTeal;
232
+ confirmation: algosdk.modelsv2.PendingTransactionResponse;
233
+ confirmations: algosdk.modelsv2.PendingTransactionResponse[];
234
+ transaction: algosdk.Transaction;
235
+ transactions: algosdk.Transaction[];
236
+ createdRound: number;
237
+ updatedRound: number;
238
+ createdMetadata: import("./app").AppDeployMetadata;
239
+ deleted: boolean;
240
+ appId: number | bigint;
241
+ appAddress: string;
242
+ name: string;
243
+ version: string;
244
+ deletable?: boolean | undefined;
245
+ updatable?: boolean | undefined;
246
+ return?: ABIReturn | undefined;
247
+ deleteReturn?: ABIReturn | undefined;
248
+ deleteResult: import("./transaction").ConfirmedTransactionResult;
249
+ operationPerformed: "replace";
250
+ }>;
251
+ /**
252
+ * Creates a smart contract app, returns the details of the created app.
253
+ * @param create The parameters to create the app with
254
+ * @returns The details of the created app, or the transaction to create it if `skipSending` and the compilation result
255
+ */
256
+ create(create?: AppClientCreateParams): Promise<{
257
+ compiledApproval: import("./app").CompiledTeal;
258
+ compiledClear: import("./app").CompiledTeal;
259
+ return?: ABIReturn | undefined;
260
+ transactions: algosdk.Transaction[];
261
+ confirmations?: algosdk.modelsv2.PendingTransactionResponse[] | undefined;
262
+ transaction: algosdk.Transaction;
263
+ confirmation?: algosdk.modelsv2.PendingTransactionResponse | undefined;
264
+ appId: number | bigint;
265
+ appAddress: string;
266
+ }>;
267
+ /**
268
+ * Updates the smart contract app.
269
+ * @param update The parameters to update the app with
270
+ * @returns The transaction send result and the compilation result
271
+ */
272
+ update(update?: AppClientUpdateParams): Promise<{
273
+ compiledApproval: import("./app").CompiledTeal;
274
+ compiledClear: import("./app").CompiledTeal;
275
+ return?: ABIReturn | undefined;
276
+ transactions: algosdk.Transaction[];
277
+ confirmations?: algosdk.modelsv2.PendingTransactionResponse[] | undefined;
278
+ transaction: algosdk.Transaction;
279
+ confirmation?: algosdk.modelsv2.PendingTransactionResponse | undefined;
280
+ }>;
281
+ /**
282
+ * Issues a no_op (normal) call to the app.
283
+ * @param call The call details.
284
+ * @returns The result of the call
285
+ */
286
+ call(call?: AppClientCallParams): Promise<AppCallTransactionResult>;
287
+ /**
288
+ * Issues a opt_in call to the app.
289
+ * @param call The call details.
290
+ * @returns The result of the call
291
+ */
292
+ optIn(call?: AppClientCallParams): Promise<AppCallTransactionResult>;
293
+ /**
294
+ * Issues a close_out call to the app.
295
+ * @param call The call details.
296
+ * @returns The result of the call
297
+ */
298
+ closeOut(call?: AppClientCallParams): Promise<AppCallTransactionResult>;
299
+ /**
300
+ * Issues a clear_state call to the app.
301
+ * @param call The call details.
302
+ * @returns The result of the call
303
+ */
304
+ clearState(call?: AppClientClearStateParams): Promise<AppCallTransactionResult>;
305
+ /**
306
+ * Issues a delete_application call to the app.
307
+ * @param call The call details.
308
+ * @returns The result of the call
309
+ */
310
+ delete(call?: AppClientCallParams): Promise<AppCallTransactionResult>;
311
+ /**
312
+ * Issues a call to the app with the given call type.
313
+ * @param call The call details.
314
+ * @param callType The call type
315
+ * @returns The result of the call
316
+ */
317
+ callOfType(call: AppClientCallParams | undefined, callType: Exclude<AppCallType, 'update_application'> | Exclude<OnApplicationComplete, OnApplicationComplete.UpdateApplicationOC>): Promise<AppCallTransactionResult>;
318
+ /**
319
+ * Funds ALGOs into the app account for this app.
320
+ * @param fund The parameters for the funding or the funding amount
321
+ * @returns The result of the funding
322
+ */
323
+ fundAppAccount(fund: FundAppAccountParams | AlgoAmount): Promise<import("./transaction").SendTransactionResult>;
324
+ /**
325
+ * Returns global state for the current app.
326
+ * @returns The global state
327
+ */
328
+ getGlobalState(): Promise<AppState>;
329
+ /**
330
+ * Returns local state for the given account / account address.
331
+ * @returns The global state
332
+ */
333
+ getLocalState(account: string | SendTransactionFrom): Promise<AppState>;
334
+ /**
335
+ * Returns the names of all current boxes for the current app.
336
+ * @returns The names of the boxes
337
+ */
338
+ getBoxNames(): Promise<BoxName[]>;
339
+ /**
340
+ * Returns the value of the given box for the current app.
341
+ * @param name The name of the box to return either as a string, binary array or `BoxName`
342
+ * @returns The current box value as a byte array
343
+ */
344
+ getBoxValue(name: BoxName | string | Uint8Array): Promise<Uint8Array>;
345
+ /**
346
+ * Returns the value of the given box for the current app.
347
+ * @param name The name of the box to return either as a string, binary array or `BoxName`
348
+ * @param type
349
+ * @returns The current box value as a byte array
350
+ */
351
+ getBoxValueFromABIType(name: BoxName | string | Uint8Array, type: ABIType): Promise<ABIValue>;
352
+ /**
353
+ * Returns the values of all current boxes for the current app.
354
+ * Note: This will issue multiple HTTP requests (one per box) and it's not an atomic operation so values may be out of sync.
355
+ * @param filter Optional filter to filter which boxes' values are returned
356
+ * @returns The (name, value) pair of the boxes with values as raw byte arrays
357
+ */
358
+ getBoxValues(filter?: (name: BoxName) => boolean): Promise<{
359
+ name: BoxName;
360
+ value: Uint8Array;
361
+ }[]>;
362
+ /**
363
+ * Returns the values of all current boxes for the current app decoded using an ABI Type.
364
+ * Note: This will issue multiple HTTP requests (one per box) and it's not an atomic operation so values may be out of sync.
365
+ * @param type The ABI type to decode the values with
366
+ * @param filter Optional filter to filter which boxes' values are returned
367
+ * @returns The (name, value) pair of the boxes with values as the ABI Value
368
+ */
369
+ getBoxValuesFromABIType(type: ABIType, filter?: (name: BoxName) => boolean): Promise<{
370
+ name: BoxName;
371
+ value: ABIValue;
372
+ }[]>;
373
+ /**
374
+ * Returns the arguments for an app call for the given ABI method or raw method specification.
375
+ * @param args The call args specific to this application client
376
+ * @param sender The sender of this call. Will be used to fetch any default argument values if applicable
377
+ * @returns The call args ready to pass into an app call
378
+ */
379
+ getCallArgs(args: AppClientCallArgs | undefined, sender: SendTransactionFrom): Promise<AppCallArgs | undefined>;
380
+ /**
381
+ * Returns the ABI Method parameters for the given method name string for the app represented by this application client instance
382
+ * @param method Either the name of the method or the ABI method spec definition string
383
+ * @returns The ABI method params for the given method
384
+ */
385
+ getABIMethodParams(method: string): ABIMethodParams | undefined;
386
+ /**
387
+ * Returns the ABI Method for the given method name string for the app represented by this application client instance
388
+ * @param method Either the name of the method or the ABI method spec definition string
389
+ * @returns The ABI method for the given method
390
+ */
391
+ getABIMethod(method: string): ABIMethod | undefined;
392
+ /**
393
+ * Gets the reference information for the current application instance.
394
+ * `appId` will be 0 if it can't find an app.
395
+ * @returns The app reference, or if deployed using the `deploy` method, the app metadata too
396
+ */
397
+ getAppReference(): Promise<AppMetadata | AppReference>;
398
+ /**
399
+ * Takes an error that may include a logic error from a smart contract call and re-exposes the error to include source code information via the source map.
400
+ * This is automatically used within `ApplicationClient` but if you pass `skipSending: true` e.g. if doing a group transaction
401
+ * then you can use this in a try/catch block to get better debugging information.
402
+ * @param e The error to parse
403
+ * @param isClear Whether or not the code was running the clear state program
404
+ * @returns The new error, or if there was no logic error or source map then the wrapped error with source details
405
+ */
406
+ exposeLogicError(e: Error, isClear?: boolean): Error;
407
+ }
408
+ //# sourceMappingURL=app-client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-client.d.ts","sourceRoot":"","sources":["../../../src/types/app-client.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,EAAE,EACd,SAAS,EACT,eAAe,EACf,OAAO,EACP,QAAQ,EACR,OAAO,EAGP,OAAO,EACP,qBAAqB,EAErB,eAAe,EAChB,MAAM,SAAS,CAAA;AAiBhB,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AACrC,OAAO,EAEL,cAAc,EACd,SAAS,EACT,WAAW,EACX,wBAAwB,EACxB,WAAW,EACX,oBAAoB,EACpB,SAAS,EACT,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,OAAO,EAEP,aAAa,EACb,QAAQ,EACR,cAAc,EACd,kBAAkB,EAEnB,MAAM,OAAO,CAAA;AACd,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEpC,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAE3F,8EAA8E;AAC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