@algorandfoundation/algokit-utils 9.2.0 → 9.2.1-beta.2

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/_virtual/_rolldown/runtime.js +33 -0
  2. package/_virtual/_rolldown/runtime.mjs +13 -0
  3. package/account/account.d.ts +25 -30
  4. package/account/account.js +151 -146
  5. package/account/account.js.map +1 -1
  6. package/account/account.mjs +149 -144
  7. package/account/account.mjs.map +1 -1
  8. package/account/get-account-config-from-environment.d.ts +7 -2
  9. package/account/get-account-config-from-environment.js +19 -21
  10. package/account/get-account-config-from-environment.js.map +1 -1
  11. package/account/get-account-config-from-environment.mjs +19 -19
  12. package/account/get-account-config-from-environment.mjs.map +1 -1
  13. package/account/get-account.d.ts +14 -12
  14. package/account/get-account.js +56 -59
  15. package/account/get-account.js.map +1 -1
  16. package/account/get-account.mjs +56 -57
  17. package/account/get-account.mjs.map +1 -1
  18. package/account/get-dispenser-account.d.ts +9 -5
  19. package/account/get-dispenser-account.js +20 -18
  20. package/account/get-dispenser-account.js.map +1 -1
  21. package/account/get-dispenser-account.mjs +20 -16
  22. package/account/get-dispenser-account.mjs.map +1 -1
  23. package/account/mnemonic-account.d.ts +7 -3
  24. package/account/mnemonic-account.js +17 -17
  25. package/account/mnemonic-account.js.map +1 -1
  26. package/account/mnemonic-account.mjs +15 -15
  27. package/account/mnemonic-account.mjs.map +1 -1
  28. package/amount.d.ts +40 -35
  29. package/amount.js +33 -34
  30. package/amount.js.map +1 -1
  31. package/amount.mjs +33 -32
  32. package/amount.mjs.map +1 -1
  33. package/app-client.d.ts +10 -6
  34. package/app-client.js +91 -86
  35. package/app-client.js.map +1 -1
  36. package/app-client.mjs +91 -84
  37. package/app-client.mjs.map +1 -1
  38. package/app-deploy.d.ts +26 -24
  39. package/app-deploy.js +235 -253
  40. package/app-deploy.js.map +1 -1
  41. package/app-deploy.mjs +233 -251
  42. package/app-deploy.mjs.map +1 -1
  43. package/app.d.ts +45 -46
  44. package/app.js +253 -271
  45. package/app.js.map +1 -1
  46. package/app.mjs +249 -267
  47. package/app.mjs.map +1 -1
  48. package/asset.d.ts +16 -12
  49. package/asset.js +116 -122
  50. package/asset.js.map +1 -1
  51. package/asset.mjs +116 -120
  52. package/asset.mjs.map +1 -1
  53. package/config.d.ts +7 -2
  54. package/config.js +5 -7
  55. package/config.js.map +1 -1
  56. package/config.mjs +5 -4
  57. package/config.mjs.map +1 -1
  58. package/debugging/debugging.d.ts +5 -1
  59. package/debugging/debugging.js +11 -11
  60. package/debugging/debugging.js.map +1 -1
  61. package/debugging/debugging.mjs +11 -9
  62. package/debugging/debugging.mjs.map +1 -1
  63. package/dispenser-client.d.ts +7 -2
  64. package/dispenser-client.js +23 -24
  65. package/dispenser-client.js.map +1 -1
  66. package/dispenser-client.mjs +23 -22
  67. package/dispenser-client.mjs.map +1 -1
  68. package/index.d.ts +27 -18
  69. package/index.js +140 -143
  70. package/index.mjs +27 -29
  71. package/indexer-lookup.d.ts +18 -11
  72. package/indexer-lookup.js +112 -120
  73. package/indexer-lookup.js.map +1 -1
  74. package/indexer-lookup.mjs +105 -118
  75. package/indexer-lookup.mjs.map +1 -1
  76. package/localnet/get-kmd-wallet-account.d.ts +9 -7
  77. package/localnet/get-kmd-wallet-account.js +28 -26
  78. package/localnet/get-kmd-wallet-account.js.map +1 -1
  79. package/localnet/get-kmd-wallet-account.mjs +28 -24
  80. package/localnet/get-kmd-wallet-account.mjs.map +1 -1
  81. package/localnet/get-localnet-dispenser-account.d.ts +7 -5
  82. package/localnet/get-localnet-dispenser-account.js +17 -15
  83. package/localnet/get-localnet-dispenser-account.js.map +1 -1
  84. package/localnet/get-localnet-dispenser-account.mjs +17 -13
  85. package/localnet/get-localnet-dispenser-account.mjs.map +1 -1
  86. package/localnet/get-or-create-kmd-wallet-account.d.ts +10 -8
  87. package/localnet/get-or-create-kmd-wallet-account.js +28 -26
  88. package/localnet/get-or-create-kmd-wallet-account.js.map +1 -1
  89. package/localnet/get-or-create-kmd-wallet-account.mjs +28 -24
  90. package/localnet/get-or-create-kmd-wallet-account.mjs.map +1 -1
  91. package/localnet/is-localnet.d.ts +7 -3
  92. package/localnet/is-localnet.js +9 -10
  93. package/localnet/is-localnet.js.map +1 -1
  94. package/localnet/is-localnet.mjs +9 -8
  95. package/localnet/is-localnet.mjs.map +1 -1
  96. package/network-client.d.ts +17 -15
  97. package/network-client.js +115 -116
  98. package/network-client.js.map +1 -1
  99. package/network-client.mjs +115 -114
  100. package/network-client.mjs.map +1 -1
  101. package/package.json +12 -3
  102. package/testing/account.d.ts +11 -9
  103. package/testing/account.js +31 -33
  104. package/testing/account.js.map +1 -1
  105. package/testing/account.mjs +29 -31
  106. package/testing/account.mjs.map +1 -1
  107. package/testing/fixtures/algokit-log-capture-fixture.d.ts +7 -2
  108. package/testing/fixtures/algokit-log-capture-fixture.js +36 -41
  109. package/testing/fixtures/algokit-log-capture-fixture.js.map +1 -1
  110. package/testing/fixtures/algokit-log-capture-fixture.mjs +36 -39
  111. package/testing/fixtures/algokit-log-capture-fixture.mjs.map +1 -1
  112. package/testing/fixtures/algorand-fixture.d.ts +9 -4
  113. package/testing/fixtures/algorand-fixture.js +67 -62
  114. package/testing/fixtures/algorand-fixture.js.map +1 -1
  115. package/testing/fixtures/algorand-fixture.mjs +66 -59
  116. package/testing/fixtures/algorand-fixture.mjs.map +1 -1
  117. package/testing/index.d.ts +7 -5
  118. package/testing/index.js +13 -18
  119. package/testing/index.mjs +7 -7
  120. package/testing/indexer.d.ts +5 -1
  121. package/testing/indexer.js +28 -37
  122. package/testing/indexer.js.map +1 -1
  123. package/testing/indexer.mjs +28 -35
  124. package/testing/indexer.mjs.map +1 -1
  125. package/testing/test-logger.d.ts +41 -36
  126. package/testing/test-logger.js +71 -76
  127. package/testing/test-logger.js.map +1 -1
  128. package/testing/test-logger.mjs +71 -74
  129. package/testing/test-logger.mjs.map +1 -1
  130. package/testing/transaction-logger.d.ts +30 -27
  131. package/testing/transaction-logger.js +77 -93
  132. package/testing/transaction-logger.js.map +1 -1
  133. package/testing/transaction-logger.mjs +74 -90
  134. package/testing/transaction-logger.mjs.map +1 -1
  135. package/transaction/legacy-bridge.js +100 -111
  136. package/transaction/legacy-bridge.js.map +1 -1
  137. package/transaction/legacy-bridge.mjs +97 -108
  138. package/transaction/legacy-bridge.mjs.map +1 -1
  139. package/transaction/perform-atomic-transaction-composer-simulate.d.ts +7 -5
  140. package/transaction/perform-atomic-transaction-composer-simulate.js +31 -36
  141. package/transaction/perform-atomic-transaction-composer-simulate.js.map +1 -1
  142. package/transaction/perform-atomic-transaction-composer-simulate.mjs +28 -33
  143. package/transaction/perform-atomic-transaction-composer-simulate.mjs.map +1 -1
  144. package/transaction/transaction.d.ts +34 -35
  145. package/transaction/transaction.js +716 -914
  146. package/transaction/transaction.js.map +1 -1
  147. package/transaction/transaction.mjs +713 -911
  148. package/transaction/transaction.mjs.map +1 -1
  149. package/transfer/transfer-algos.d.ts +9 -5
  150. package/transfer/transfer-algos.js +26 -27
  151. package/transfer/transfer-algos.js.map +1 -1
  152. package/transfer/transfer-algos.mjs +26 -25
  153. package/transfer/transfer-algos.mjs.map +1 -1
  154. package/transfer/transfer.d.ts +11 -8
  155. package/transfer/transfer.js +94 -100
  156. package/transfer/transfer.js.map +1 -1
  157. package/transfer/transfer.mjs +94 -98
  158. package/transfer/transfer.mjs.map +1 -1
  159. package/types/account-manager.d.ts +432 -429
  160. package/types/account-manager.js +591 -602
  161. package/types/account-manager.js.map +1 -1
  162. package/types/account-manager.mjs +587 -599
  163. package/types/account-manager.mjs.map +1 -1
  164. package/types/account.d.ts +192 -202
  165. package/types/account.js +91 -88
  166. package/types/account.js.map +1 -1
  167. package/types/account.mjs +88 -86
  168. package/types/account.mjs.map +1 -1
  169. package/types/algo-http-client-with-retry.d.ts +15 -10
  170. package/types/algo-http-client-with-retry.js +70 -92
  171. package/types/algo-http-client-with-retry.js.map +1 -1
  172. package/types/algo-http-client-with-retry.mjs +69 -90
  173. package/types/algo-http-client-with-retry.mjs.map +1 -1
  174. package/types/algorand-client-transaction-creator.d.ts +778 -771
  175. package/types/algorand-client-transaction-creator.js +733 -732
  176. package/types/algorand-client-transaction-creator.js.map +1 -1
  177. package/types/algorand-client-transaction-creator.mjs +732 -730
  178. package/types/algorand-client-transaction-creator.mjs.map +1 -1
  179. package/types/algorand-client-transaction-sender.d.ts +1090 -1360
  180. package/types/algorand-client-transaction-sender.js +930 -961
  181. package/types/algorand-client-transaction-sender.js.map +1 -1
  182. package/types/algorand-client-transaction-sender.mjs +927 -959
  183. package/types/algorand-client-transaction-sender.mjs.map +1 -1
  184. package/types/algorand-client.d.ts +239 -236
  185. package/types/algorand-client.js +322 -320
  186. package/types/algorand-client.js.map +1 -1
  187. package/types/algorand-client.mjs +321 -318
  188. package/types/algorand-client.mjs.map +1 -1
  189. package/types/amount.d.ts +47 -43
  190. package/types/amount.js +66 -70
  191. package/types/amount.js.map +1 -1
  192. package/types/amount.mjs +63 -68
  193. package/types/amount.mjs.map +1 -1
  194. package/types/app-arc56.d.ts +235 -272
  195. package/types/app-arc56.js +124 -170
  196. package/types/app-arc56.js.map +1 -1
  197. package/types/app-arc56.mjs +121 -168
  198. package/types/app-arc56.mjs.map +1 -1
  199. package/types/app-client.d.ts +1128 -2009
  200. package/types/app-client.js +1633 -1791
  201. package/types/app-client.js.map +1 -1
  202. package/types/app-client.mjs +1624 -1783
  203. package/types/app-client.mjs.map +1 -1
  204. package/types/app-deployer.d.ts +139 -141
  205. package/types/app-deployer.js +344 -384
  206. package/types/app-deployer.js.map +1 -1
  207. package/types/app-deployer.mjs +341 -382
  208. package/types/app-deployer.mjs.map +1 -1
  209. package/types/app-factory.d.ts +762 -932
  210. package/types/app-factory.js +496 -488
  211. package/types/app-factory.js.map +1 -1
  212. package/types/app-factory.mjs +491 -484
  213. package/types/app-factory.mjs.map +1 -1
  214. package/types/app-manager.d.ts +304 -310
  215. package/types/app-manager.js +422 -475
  216. package/types/app-manager.js.map +1 -1
  217. package/types/app-manager.mjs +419 -473
  218. package/types/app-manager.mjs.map +1 -1
  219. package/types/app-spec.d.ts +118 -117
  220. package/types/app-spec.js +125 -135
  221. package/types/app-spec.js.map +1 -1
  222. package/types/app-spec.mjs +121 -132
  223. package/types/app-spec.mjs.map +1 -1
  224. package/types/app.d.ts +229 -241
  225. package/types/app.js +36 -28
  226. package/types/app.js.map +1 -1
  227. package/types/app.mjs +33 -26
  228. package/types/app.mjs.map +1 -1
  229. package/types/asset-manager.d.ts +204 -199
  230. package/types/asset-manager.js +165 -174
  231. package/types/asset-manager.js.map +1 -1
  232. package/types/asset-manager.mjs +164 -172
  233. package/types/asset-manager.mjs.map +1 -1
  234. package/types/asset.d.ts +95 -91
  235. package/types/asset.js +0 -3
  236. package/types/asset.mjs +0 -2
  237. package/types/async-event-emitter.d.ts +18 -13
  238. package/types/async-event-emitter.js +37 -49
  239. package/types/async-event-emitter.js.map +1 -1
  240. package/types/async-event-emitter.mjs +36 -47
  241. package/types/async-event-emitter.mjs.map +1 -1
  242. package/types/client-manager.d.ts +453 -451
  243. package/types/client-manager.js +602 -598
  244. package/types/client-manager.js.map +1 -1
  245. package/types/client-manager.mjs +597 -594
  246. package/types/client-manager.mjs.map +1 -1
  247. package/types/composer.d.ts +1211 -1258
  248. package/types/composer.js +1436 -1498
  249. package/types/composer.js.map +1 -1
  250. package/types/composer.mjs +1430 -1493
  251. package/types/composer.mjs.map +1 -1
  252. package/types/config.d.ts +53 -48
  253. package/types/config.js +78 -77
  254. package/types/config.js.map +1 -1
  255. package/types/config.mjs +77 -75
  256. package/types/config.mjs.map +1 -1
  257. package/types/debugging.d.ts +25 -23
  258. package/types/debugging.js +9 -11
  259. package/types/debugging.js.map +1 -1
  260. package/types/debugging.mjs +8 -9
  261. package/types/debugging.mjs.map +1 -1
  262. package/types/dispenser-client.d.ts +57 -52
  263. package/types/dispenser-client.js +120 -141
  264. package/types/dispenser-client.js.map +1 -1
  265. package/types/dispenser-client.mjs +119 -139
  266. package/types/dispenser-client.mjs.map +1 -1
  267. package/types/expand.d.ts +5 -3
  268. package/types/expand.js +0 -3
  269. package/types/expand.mjs +0 -2
  270. package/types/indexer.d.ts +104 -100
  271. package/types/indexer.js +36 -31
  272. package/types/indexer.js.map +1 -1
  273. package/types/indexer.mjs +32 -30
  274. package/types/indexer.mjs.map +1 -1
  275. package/types/instance-of.d.ts +5 -3
  276. package/types/instance-of.js +0 -3
  277. package/types/instance-of.mjs +0 -2
  278. package/types/kmd-account-manager.d.ts +75 -70
  279. package/types/kmd-account-manager.js +150 -184
  280. package/types/kmd-account-manager.js.map +1 -1
  281. package/types/kmd-account-manager.mjs +147 -182
  282. package/types/kmd-account-manager.mjs.map +1 -1
  283. package/types/lifecycle-events.d.ts +13 -8
  284. package/types/lifecycle-events.js +10 -7
  285. package/types/lifecycle-events.js.map +1 -1
  286. package/types/lifecycle-events.mjs +9 -7
  287. package/types/lifecycle-events.mjs.map +1 -1
  288. package/types/logging.d.ts +15 -11
  289. package/types/logging.js +30 -31
  290. package/types/logging.js.map +1 -1
  291. package/types/logging.mjs +29 -29
  292. package/types/logging.mjs.map +1 -1
  293. package/types/logic-error.d.ts +33 -29
  294. package/types/logic-error.js +50 -49
  295. package/types/logic-error.js.map +1 -1
  296. package/types/logic-error.mjs +49 -47
  297. package/types/logic-error.mjs.map +1 -1
  298. package/types/network-client.d.ts +32 -27
  299. package/types/network-client.js +10 -9
  300. package/types/network-client.js.map +1 -1
  301. package/types/network-client.mjs +9 -7
  302. package/types/network-client.mjs.map +1 -1
  303. package/types/testing.d.ts +131 -132
  304. package/types/testing.js +0 -3
  305. package/types/testing.mjs +0 -2
  306. package/types/transaction.d.ts +110 -110
  307. package/types/transaction.js +0 -3
  308. package/types/transaction.mjs +0 -2
  309. package/types/transfer.d.ts +70 -66
  310. package/types/transfer.js +0 -3
  311. package/types/transfer.mjs +0 -2
  312. package/util.js +73 -118
  313. package/util.js.map +1 -1
  314. package/util.mjs +73 -116
  315. package/util.mjs.map +1 -1
  316. package/account/index.d.ts +0 -5
  317. package/debugging/index.d.ts +0 -1
  318. package/index.js.map +0 -1
  319. package/index.mjs.map +0 -1
  320. package/localnet/index.d.ts +0 -4
  321. package/testing/_asset.d.ts +0 -3
  322. package/testing/fixtures/index.d.ts +0 -2
  323. package/testing/index.js.map +0 -1
  324. package/testing/index.mjs.map +0 -1
  325. package/transaction/index.d.ts +0 -2
  326. package/transaction/legacy-bridge.d.ts +0 -35
  327. package/transfer/index.d.ts +0 -2
  328. package/types/asset.js.map +0 -1
  329. package/types/asset.mjs.map +0 -1
  330. package/types/expand.js.map +0 -1
  331. package/types/expand.mjs.map +0 -1
  332. package/types/instance-of.js.map +0 -1
  333. package/types/instance-of.mjs.map +0 -1
  334. package/types/testing.js.map +0 -1
  335. package/types/testing.mjs.map +0 -1
  336. package/types/transaction.js.map +0 -1
  337. package/types/transaction.mjs.map +0 -1
  338. package/types/transfer.js.map +0 -1
  339. package/types/transfer.mjs.map +0 -1
  340. package/util.d.ts +0 -48
package/types/indexer.js CHANGED
@@ -1,33 +1,38 @@
1
- 'use strict';
2
-
3
- /** Defines the what additional actions occur with the transaction https://dev.algorand.co/reference/rest-apis/indexer/#oncompletion */
4
- exports.ApplicationOnComplete = void 0;
5
- (function (ApplicationOnComplete) {
6
- ApplicationOnComplete["noop"] = "noop";
7
- ApplicationOnComplete["optin"] = "optin";
8
- ApplicationOnComplete["closeout"] = "closeout";
9
- ApplicationOnComplete["clear"] = "clear";
10
- ApplicationOnComplete["update"] = "update";
11
- ApplicationOnComplete["delete"] = "delete";
12
- })(exports.ApplicationOnComplete || (exports.ApplicationOnComplete = {}));
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ //#region src/types/indexer.ts
3
+ /** Defines the what additional actions occur with the transaction https://dev.algorand.co/reference/rest-api/indexer/#oncompletion */
4
+ let ApplicationOnComplete = /* @__PURE__ */ function(ApplicationOnComplete) {
5
+ ApplicationOnComplete["noop"] = "noop";
6
+ ApplicationOnComplete["optin"] = "optin";
7
+ ApplicationOnComplete["closeout"] = "closeout";
8
+ ApplicationOnComplete["clear"] = "clear";
9
+ ApplicationOnComplete["update"] = "update";
10
+ ApplicationOnComplete["delete"] = "delete";
11
+ return ApplicationOnComplete;
12
+ }({});
13
13
  /** Type of signature used by an account */
14
- exports.SignatureType = void 0;
15
- (function (SignatureType) {
16
- /** Normal signature */
17
- SignatureType["sig"] = "sig";
18
- /** Multisig */
19
- SignatureType["msig"] = "msig";
20
- /** Logic signature */
21
- SignatureType["lsig"] = "lsig";
22
- })(exports.SignatureType || (exports.SignatureType = {}));
14
+ let SignatureType = /* @__PURE__ */ function(SignatureType) {
15
+ /** Normal signature */
16
+ SignatureType["sig"] = "sig";
17
+ /** Multisig */
18
+ SignatureType["msig"] = "msig";
19
+ /** Logic signature */
20
+ SignatureType["lsig"] = "lsig";
21
+ return SignatureType;
22
+ }({});
23
23
  /** Delegation status of the account */
24
- exports.AccountStatus = void 0;
25
- (function (AccountStatus) {
26
- /** Indicates that the associated account is delegated */
27
- AccountStatus["Offline"] = "Offline";
28
- /** Indicates that the associated account used as part of the delegation pool */
29
- AccountStatus["Online"] = "Online";
30
- /** Indicates that the associated account is neither a delegator nor a delegate */
31
- AccountStatus["NotParticipating"] = "NotParticipating";
32
- })(exports.AccountStatus || (exports.AccountStatus = {}));
33
- //# sourceMappingURL=indexer.js.map
24
+ let AccountStatus = /* @__PURE__ */ function(AccountStatus) {
25
+ /** Indicates that the associated account is delegated */
26
+ AccountStatus["Offline"] = "Offline";
27
+ /** Indicates that the associated account used as part of the delegation pool */
28
+ AccountStatus["Online"] = "Online";
29
+ /** Indicates that the associated account is neither a delegator nor a delegate */
30
+ AccountStatus["NotParticipating"] = "NotParticipating";
31
+ return AccountStatus;
32
+ }({});
33
+ //#endregion
34
+ exports.AccountStatus = AccountStatus;
35
+ exports.ApplicationOnComplete = ApplicationOnComplete;
36
+ exports.SignatureType = SignatureType;
37
+
38
+ //# sourceMappingURL=indexer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"indexer.js","sources":["../../src/types/indexer.ts"],"sourcesContent":["import algosdk from 'algosdk'\nimport indexerModels = algosdk.indexerModels\n\n/** @deprecated Use `algosdk.indexerModels.TransactionsResponse`. Indexer result for a transaction search, https://dev.algorand.co/reference/rest-apis/indexer#get-v2transactions */\nexport type TransactionSearchResults = indexerModels.TransactionsResponse\n\n/** @deprecated Use `algosdk.indexerModels.AccountResponse`. Indexer result for an account lookup, https://dev.algorand.co/reference/rest-apis/indexer#get-v2accountsaccount-id */\nexport type AccountLookupResult = indexerModels.AccountResponse\n\n/** @deprecated Use `algosdk.indexerModels.AssetHoldingsResponse`. Indexer result for an account's asset holdings, https://dev.algorand.co/reference/rest-apis/indexer#get-v2accountsaccount-idassets */\nexport type AssetsLookupResult = indexerModels.AssetHoldingsResponse\n\n/** @deprecated Use `algosdk.indexerModels.AssetsResponse`. Indexer result for an account's created assets, https://dev.algorand.co/reference/rest-apis/indexer#get-v2accountsaccount-idcreated-assets */\nexport type AssetsCreatedLookupResult = indexerModels.AssetsResponse\n\n/** @deprecated Use `algosdk.indexerModels.ApplicationsResponse`. Indexer result for an account's created applications, https://dev.algorand.co/reference/rest-apis/indexer#get-v2accountsaccount-idcreated-applications */\nexport type ApplicationCreatedLookupResult = indexerModels.ApplicationsResponse\n\n/** @deprecated Use `algosdk.indexerModels.AssetResponse`. Indexer result for an asset lookup, https://dev.algorand.co/reference/rest-apis/indexer#get-v2assetsasset-id */\nexport type AssetLookupResult = indexerModels.AssetResponse\n\n/** Options when looking up an asset's account holdings, https://dev.algorand.co/reference/rest-apis/indexer#get-v2assetsasset-idbalances */\nexport interface LookupAssetHoldingsOptions {\n /** Results should have a decimal units amount less than this value. */\n currencyLessThan?: number | bigint\n /** Results should have a decimal units amount greater than this value. */\n currencyGreaterThan?: number | bigint\n /** Include all items including closed accounts and opted-out asset holdings. */\n includeAll?: boolean\n}\n\n/** @deprecated Use `algosdk.indexerModels.AssetBalancesResponse`. Indexer result for an asset's account holdings, https://dev.algorand.co/reference/rest-apis/indexer#get-v2assetsasset-idbalances */\nexport type AssetBalancesLookupResult = indexerModels.AssetBalancesResponse\n\n/** @deprecated Use `algosdk.indexerModels.TransactionResponse`. Indexer result for a transaction lookup, https://dev.algorand.co/reference/rest-apis/indexer#get-v2transactionstxid */\nexport type TransactionLookupResult = indexerModels.TransactionResponse\n\n/** @deprecated Use `algosdk.indexerModels.ApplicationResponse`. Indexer result for an application lookup, https://dev.algorand.co/reference/rest-apis/indexer#get-v2applicationsapplication-id */\nexport type ApplicationLookupResult = indexerModels.ApplicationResponse\n\n/** @deprecated Use `algosdk.indexerModels.Transaction`. Indexer result for a transaction, https://dev.algorand.co/reference/rest-apis/indexer#transaction */\nexport type TransactionResult = indexerModels.Transaction\n\n/** @deprecated Use `algosdk.indexerModels.Account`. Indexer Account information at a given round https://dev.algorand.co/reference/rest-apis/indexer#account */\nexport type AccountResult = indexerModels.Account\n\n/** @deprecated Use `algosdk.indexerModels.TransactionPayment`. Indexer Fields for a payment transaction https://dev.algorand.co/reference/rest-apis/indexer#transactionpayment */\nexport type PaymentTransactionResult = indexerModels.TransactionPayment\n\n/** @deprecated Use `algosdk.indexerModels.TransactionStateProof`. Indexer Fields for a state proof transaction https://dev.algorand.co/reference/rest-apis/indexer#transactionstateproof.\n *\n * See also https://dev.algorand.co/concepts/protocol/state-proofs/,\n * https://github.com/algorand/go-algorand/blob/master/data/transactions/stateproof.go,\n * https://github.com/algorand/go-algorand/blob/master/crypto/stateproof/structs.go,\n * https://github.com/algorand/go-algorand/blob/master/data/stateproofmsg/message.go, and\n * https://dev.algorand.co/reference/rest-apis/algod/#stateproof.\n */\nexport type StateProofTransactionResult = indexerModels.TransactionStateProof\n\n/** @deprecated Use `algosdk.indexerModels.MerkleArrayProof`. Indexer Merkle array Proof.\n *\n * Proof is used to convince a verifier about membership of leaves: h0,h1...hn\n * at indexes i0,i1...in on a tree. The verifier has a trusted value of the tree\n * root hash.\n *\n * Path is bounded by MaxNumLeaves since there could be multiple reveals, and\n * given the distribution of the elt positions and the depth of the tree,\n * the path length can increase up to 2^MaxTreeDepth / 2\n *\n * Consider two different reveals for the same tree:\n * ```\n * . z5\n * . z3 z4\n * . y z z1 z2\n * . q r s t u v w x\n * . a b c d e f g h i j k l m n o p\n * . ^\n * . hints: [a, r, z, z4]\n * . len(hints) = 4\n * ```\n * You need a to combine with b to get q, need r to combine with the computed q and get y, and so on.\n *\n * The worst case is this:\n * ```\n * . z5\n * . z3 z4\n * . y z z1 z2\n * . q r s t u v w x\n * . a b c d e f g h i j k l m n o p\n * . ^ ^ ^ ^ ^ ^ ^ ^\n * .\n * . hints: [b, d, e, g, j, l, m, o]\n * . len(hints) = 2^4/2\n * ```\n */\nexport type MerkleArrayProof = indexerModels.MerkleArrayProof\n\n/** @deprecated Use `algosdk.indexerModels.TransactionApplication`. Indexer Fields for an application transaction https://dev.algorand.co/reference/rest-apis/indexer#transactionapplication */\nexport type ApplicationTransactionResult = indexerModels.TransactionApplication\n\n/** @deprecated Use `algosdk.indexerModels.TransactionAssetConfig`. Indexer Fields for asset allocation, re-configuration, and destruction.\n * https://dev.algorand.co/reference/rest-apis/indexer#transactionassetconfig\n *\n * A zero value for asset-id indicates asset creation. A zero value for the params indicates asset destruction.\n */\nexport type AssetConfigTransactionResult = indexerModels.TransactionAssetConfig\n\n/** @deprecated Use `algosdk.indexerModels.TransactionAssetFreeze`. Indexer Fields for an asset freeze transaction. https://dev.algorand.co/reference/rest-apis/indexer#transactionassetfreeze */\nexport type AssetFreezeTransactionResult = indexerModels.TransactionAssetFreeze\n\n/** @deprecated Use `algosdk.indexerModels.TransactionAssetTransfer`. Indexer Fields for an asset transfer transaction. https://dev.algorand.co/reference/rest-apis/indexer#transactionassettransfer */\nexport type AssetTransferTransactionResult = indexerModels.TransactionAssetTransfer\n\n/** @deprecated Use `algosdk.indexerModels.TransactionKeyreg`. Indexer Fields for a `keyreg` transaction https://dev.algorand.co/reference/rest-apis/indexer#transactionkeyreg */\nexport type KeyRegistrationTransactionResult = indexerModels.TransactionKeyreg\n\n/** @deprecated Use `algosdk.indexerModels.Asset`. Indexer Fields to specify both the unique identifier and the parameters for an asset. https://dev.algorand.co/reference/rest-apis/indexer#asset */\nexport type AssetResult = indexerModels.Asset\n\n/** @deprecated Use `algosdk.indexerModels.Application`. Indexer result of looking up an application\n */\nexport type ApplicationResult = indexerModels.Application\n\n/** @deprecated Use `algosdk.indexerModels.TransactionSignature`. Indexer Validation signature associated with some data. Only one of the signatures should be provided. https://dev.algorand.co/reference/rest-apis/indexer#transactionsignature */\nexport type TransactionSignature = indexerModels.TransactionSignature\n\n/** @deprecated Use `algosdk.indexerModels.TransactionSignatureLogicsig`. Indexer [lsig] Programatic transaction signature.\n *\n * https://dev.algorand.co/reference/rest-apis/indexer#transactionsignaturelogicsig\n *\n * https://dev.algorand.co/concepts/smart-contracts/logic-sigs\n */\nexport type LogicTransactionSignature = indexerModels.TransactionSignatureLogicsig\n\n/** @deprecated Use `algosdk.indexerModels.TransactionSignatureMultisig`. Indexer [msig] structure holding multiple subsignatures. https://dev.algorand.co/reference/rest-apis/indexer#transactionsignaturemultisig */\nexport type MultisigTransactionSignature = indexerModels.TransactionSignatureMultisig\n\n/** @deprecated Use `algosdk.indexerModels.TransactionSignatureMultisigSubsignature`. Indexer Sub-signature for a multisig signature https://dev.algorand.co/reference/rest-apis/indexer#transactionsignaturemultisigsubsignature */\nexport type MultisigTransactionSubSignature = indexerModels.TransactionSignatureMultisigSubsignature\n\n/** @deprecated Use `algosdk.indexerModels.EvalDeltaKeyValue`. */\nexport type EvalDeltaKeyValue = indexerModels.EvalDeltaKeyValue\n\n/** @deprecated Use `algosdk.indexerModels.AccountStateDelta`. */\nexport type AccountStateDelta = indexerModels.AccountStateDelta\n\n/** @deprecated Use `algosdk.indexerModels.EvalDeltaKeyValue[]`. */\nexport type StateDelta = EvalDeltaKeyValue[]\n\n/** @deprecated Use `algosdk.indexerModels.EvalDelta`. Indexer Represents a TEAL value delta. https://dev.algorand.co/reference/rest-apis/indexer#evaldelta */\nexport type EvalDelta = indexerModels.EvalDelta\n\n/** @deprecated Use `algosdk.indexerModels.ApplicationParams`. Indexer Stores the global information associated with an application https://dev.algorand.co/reference/rest-apis/indexer#applicationparams */\nexport type ApplicationParams = indexerModels.ApplicationParams\n\n/** @deprecated Use `algosdk.indexerModels.StateSchema`. Indexer Represents a [apls] local-state or [apgs] global-state schema.\n * https://dev.algorand.co/reference/rest-apis/indexer#stateschema\n *\n * These schemas determine how much storage may be used in a local-state or global-state for an application.\n *\n * The more space used, the larger minimum balance must be maintained in the account holding the data.\n */\nexport type StateSchema = indexerModels.StateSchema\n\n/** Defines the what additional actions occur with the transaction https://dev.algorand.co/reference/rest-apis/indexer/#oncompletion */\nexport enum ApplicationOnComplete {\n noop = 'noop',\n optin = 'optin',\n closeout = 'closeout',\n clear = 'clear',\n update = 'update',\n delete = 'delete',\n}\n\n/** @deprecated Use `algosdk.indexerModels.AssetParams`. Indexer AssetParams specifies the parameters for an asset. https://dev.algorand.co/reference/rest-apis/indexer#assetparams */\nexport type AssetParams = indexerModels.AssetParams\n\n/** Type of signature used by an account */\nexport enum SignatureType {\n /** Normal signature */\n sig = 'sig',\n /** Multisig */\n msig = 'msig',\n /** Logic signature */\n lsig = 'lsig',\n}\n\n/** Delegation status of the account */\nexport enum AccountStatus {\n /** Indicates that the associated account is delegated */\n Offline = 'Offline',\n /** Indicates that the associated account used as part of the delegation pool */\n Online = 'Online',\n /** Indicates that the associated account is neither a delegator nor a delegate */\n NotParticipating = 'NotParticipating',\n}\n\n/** @deprecated Use `algosdk.indexerModels.AccountParticipation`. Indexer AccountParticipation describes the parameters used by this account in consensus protocol. https://dev.algorand.co/reference/rest-apis/indexer#accountparticipation */\nexport type AccountParticipation = indexerModels.AccountParticipation\n\n/** @deprecated Use `algosdk.indexerModels.ApplicationLocalState`. Indexer Stores local state associated with an application. https://dev.algorand.co/reference/rest-apis/indexer#applicationlocalstate */\nexport type AppLocalState = indexerModels.ApplicationLocalState\n\n/** @deprecated Use `algosdk.indexerModels.AssetHolding`. Indexer Describes an asset held by an account. https://dev.algorand.co/reference/rest-apis/indexer#assetholding */\nexport type AssetHolding = indexerModels.AssetHolding\n\n/** @deprecated Use `algosdk.indexerModels.MiniAssetHolding`. Indexer Describes an asset holding for an account of a known asset. https://dev.algorand.co/reference/rest-apis/indexer#miniassetholding */\nexport type MiniAssetHolding = indexerModels.MiniAssetHolding\n"],"names":["ApplicationOnComplete","SignatureType","AccountStatus"],"mappings":";;AAoKA;AACYA;AAAZ,CAAA,UAAY,qBAAqB,EAAA;AAC/B,IAAA,qBAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,qBAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,qBAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACrB,IAAA,qBAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,qBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AACjB,IAAA,qBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AACnB,CAAC,EAPWA,6BAAqB,KAArBA,6BAAqB,GAOhC,EAAA,CAAA,CAAA;AAKD;AACYC;AAAZ,CAAA,UAAY,aAAa,EAAA;;AAEvB,IAAA,aAAA,CAAA,KAAA,CAAA,GAAA,KAAW;;AAEX,IAAA,aAAA,CAAA,MAAA,CAAA,GAAA,MAAa;;AAEb,IAAA,aAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACf,CAAC,EAPWA,qBAAa,KAAbA,qBAAa,GAOxB,EAAA,CAAA,CAAA;AAED;AACYC;AAAZ,CAAA,UAAY,aAAa,EAAA;;AAEvB,IAAA,aAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;;AAEnB,IAAA,aAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;;AAEjB,IAAA,aAAA,CAAA,kBAAA,CAAA,GAAA,kBAAqC;AACvC,CAAC,EAPWA,qBAAa,KAAbA,qBAAa,GAOxB,EAAA,CAAA,CAAA;;"}
1
+ {"version":3,"file":"indexer.js","names":[],"sources":["../../src/types/indexer.ts"],"sourcesContent":["import algosdk from 'algosdk'\nimport indexerModels = algosdk.indexerModels\n\n/** @deprecated Use `algosdk.indexerModels.TransactionsResponse`. Indexer result for a transaction search, https://dev.algorand.co/reference/rest-api/indexer#get-v2transactions */\nexport type TransactionSearchResults = indexerModels.TransactionsResponse\n\n/** @deprecated Use `algosdk.indexerModels.AccountResponse`. Indexer result for an account lookup, https://dev.algorand.co/reference/rest-api/indexer#get-v2accountsaccount-id */\nexport type AccountLookupResult = indexerModels.AccountResponse\n\n/** @deprecated Use `algosdk.indexerModels.AssetHoldingsResponse`. Indexer result for an account's asset holdings, https://dev.algorand.co/reference/rest-api/indexer#get-v2accountsaccount-idassets */\nexport type AssetsLookupResult = indexerModels.AssetHoldingsResponse\n\n/** @deprecated Use `algosdk.indexerModels.AssetsResponse`. Indexer result for an account's created assets, https://dev.algorand.co/reference/rest-api/indexer#get-v2accountsaccount-idcreated-assets */\nexport type AssetsCreatedLookupResult = indexerModels.AssetsResponse\n\n/** @deprecated Use `algosdk.indexerModels.ApplicationsResponse`. Indexer result for an account's created applications, https://dev.algorand.co/reference/rest-api/indexer#get-v2accountsaccount-idcreated-applications */\nexport type ApplicationCreatedLookupResult = indexerModels.ApplicationsResponse\n\n/** @deprecated Use `algosdk.indexerModels.AssetResponse`. Indexer result for an asset lookup, https://dev.algorand.co/reference/rest-api/indexer#get-v2assetsasset-id */\nexport type AssetLookupResult = indexerModels.AssetResponse\n\n/** Options when looking up an asset's account holdings, https://dev.algorand.co/reference/rest-api/indexer#get-v2assetsasset-idbalances */\nexport interface LookupAssetHoldingsOptions {\n /** Results should have a decimal units amount less than this value. */\n currencyLessThan?: number | bigint\n /** Results should have a decimal units amount greater than this value. */\n currencyGreaterThan?: number | bigint\n /** Include all items including closed accounts and opted-out asset holdings. */\n includeAll?: boolean\n}\n\n/** @deprecated Use `algosdk.indexerModels.AssetBalancesResponse`. Indexer result for an asset's account holdings, https://dev.algorand.co/reference/rest-api/indexer#get-v2assetsasset-idbalances */\nexport type AssetBalancesLookupResult = indexerModels.AssetBalancesResponse\n\n/** @deprecated Use `algosdk.indexerModels.TransactionResponse`. Indexer result for a transaction lookup, https://dev.algorand.co/reference/rest-api/indexer#get-v2transactionstxid */\nexport type TransactionLookupResult = indexerModels.TransactionResponse\n\n/** @deprecated Use `algosdk.indexerModels.ApplicationResponse`. Indexer result for an application lookup, https://dev.algorand.co/reference/rest-api/indexer#get-v2applicationsapplication-id */\nexport type ApplicationLookupResult = indexerModels.ApplicationResponse\n\n/** @deprecated Use `algosdk.indexerModels.Transaction`. Indexer result for a transaction, https://dev.algorand.co/reference/rest-api/indexer#transaction */\nexport type TransactionResult = indexerModels.Transaction\n\n/** @deprecated Use `algosdk.indexerModels.Account`. Indexer Account information at a given round https://dev.algorand.co/reference/rest-api/indexer#account */\nexport type AccountResult = indexerModels.Account\n\n/** @deprecated Use `algosdk.indexerModels.TransactionPayment`. Indexer Fields for a payment transaction https://dev.algorand.co/reference/rest-api/indexer#transactionpayment */\nexport type PaymentTransactionResult = indexerModels.TransactionPayment\n\n/** @deprecated Use `algosdk.indexerModels.TransactionStateProof`. Indexer Fields for a state proof transaction https://dev.algorand.co/reference/rest-api/indexer#transactionstateproof.\n *\n * See also https://dev.algorand.co/concepts/protocol/state-proofs/,\n * https://github.com/algorand/go-algorand/blob/master/data/transactions/stateproof.go,\n * https://github.com/algorand/go-algorand/blob/master/crypto/stateproof/structs.go,\n * https://github.com/algorand/go-algorand/blob/master/data/stateproofmsg/message.go, and\n * https://dev.algorand.co/reference/rest-api/algod/operations/getstateproof/.\n */\nexport type StateProofTransactionResult = indexerModels.TransactionStateProof\n\n/** @deprecated Use `algosdk.indexerModels.MerkleArrayProof`. Indexer Merkle array Proof.\n *\n * Proof is used to convince a verifier about membership of leaves: h0,h1...hn\n * at indexes i0,i1...in on a tree. The verifier has a trusted value of the tree\n * root hash.\n *\n * Path is bounded by MaxNumLeaves since there could be multiple reveals, and\n * given the distribution of the elt positions and the depth of the tree,\n * the path length can increase up to 2^MaxTreeDepth / 2\n *\n * Consider two different reveals for the same tree:\n * ```\n * . z5\n * . z3 z4\n * . y z z1 z2\n * . q r s t u v w x\n * . a b c d e f g h i j k l m n o p\n * . ^\n * . hints: [a, r, z, z4]\n * . len(hints) = 4\n * ```\n * You need a to combine with b to get q, need r to combine with the computed q and get y, and so on.\n *\n * The worst case is this:\n * ```\n * . z5\n * . z3 z4\n * . y z z1 z2\n * . q r s t u v w x\n * . a b c d e f g h i j k l m n o p\n * . ^ ^ ^ ^ ^ ^ ^ ^\n * .\n * . hints: [b, d, e, g, j, l, m, o]\n * . len(hints) = 2^4/2\n * ```\n */\nexport type MerkleArrayProof = indexerModels.MerkleArrayProof\n\n/** @deprecated Use `algosdk.indexerModels.TransactionApplication`. Indexer Fields for an application transaction https://dev.algorand.co/reference/rest-api/indexer#transactionapplication */\nexport type ApplicationTransactionResult = indexerModels.TransactionApplication\n\n/** @deprecated Use `algosdk.indexerModels.TransactionAssetConfig`. Indexer Fields for asset allocation, re-configuration, and destruction.\n * https://dev.algorand.co/reference/rest-api/indexer#transactionassetconfig\n *\n * A zero value for asset-id indicates asset creation. A zero value for the params indicates asset destruction.\n */\nexport type AssetConfigTransactionResult = indexerModels.TransactionAssetConfig\n\n/** @deprecated Use `algosdk.indexerModels.TransactionAssetFreeze`. Indexer Fields for an asset freeze transaction. https://dev.algorand.co/reference/rest-api/indexer#transactionassetfreeze */\nexport type AssetFreezeTransactionResult = indexerModels.TransactionAssetFreeze\n\n/** @deprecated Use `algosdk.indexerModels.TransactionAssetTransfer`. Indexer Fields for an asset transfer transaction. https://dev.algorand.co/reference/rest-api/indexer#transactionassettransfer */\nexport type AssetTransferTransactionResult = indexerModels.TransactionAssetTransfer\n\n/** @deprecated Use `algosdk.indexerModels.TransactionKeyreg`. Indexer Fields for a `keyreg` transaction https://dev.algorand.co/reference/rest-api/indexer#transactionkeyreg */\nexport type KeyRegistrationTransactionResult = indexerModels.TransactionKeyreg\n\n/** @deprecated Use `algosdk.indexerModels.Asset`. Indexer Fields to specify both the unique identifier and the parameters for an asset. https://dev.algorand.co/reference/rest-api/indexer#asset */\nexport type AssetResult = indexerModels.Asset\n\n/** @deprecated Use `algosdk.indexerModels.Application`. Indexer result of looking up an application\n */\nexport type ApplicationResult = indexerModels.Application\n\n/** @deprecated Use `algosdk.indexerModels.TransactionSignature`. Indexer Validation signature associated with some data. Only one of the signatures should be provided. https://dev.algorand.co/reference/rest-api/indexer#transactionsignature */\nexport type TransactionSignature = indexerModels.TransactionSignature\n\n/** @deprecated Use `algosdk.indexerModels.TransactionSignatureLogicsig`. Indexer [lsig] Programatic transaction signature.\n *\n * https://dev.algorand.co/reference/rest-api/indexer#transactionsignaturelogicsig\n *\n * https://dev.algorand.co/concepts/smart-contracts/logic-sigs\n */\nexport type LogicTransactionSignature = indexerModels.TransactionSignatureLogicsig\n\n/** @deprecated Use `algosdk.indexerModels.TransactionSignatureMultisig`. Indexer [msig] structure holding multiple subsignatures. https://dev.algorand.co/reference/rest-api/indexer#transactionsignaturemultisig */\nexport type MultisigTransactionSignature = indexerModels.TransactionSignatureMultisig\n\n/** @deprecated Use `algosdk.indexerModels.TransactionSignatureMultisigSubsignature`. Indexer Sub-signature for a multisig signature https://dev.algorand.co/reference/rest-api/indexer#transactionsignaturemultisigsubsignature */\nexport type MultisigTransactionSubSignature = indexerModels.TransactionSignatureMultisigSubsignature\n\n/** @deprecated Use `algosdk.indexerModels.EvalDeltaKeyValue`. */\nexport type EvalDeltaKeyValue = indexerModels.EvalDeltaKeyValue\n\n/** @deprecated Use `algosdk.indexerModels.AccountStateDelta`. */\nexport type AccountStateDelta = indexerModels.AccountStateDelta\n\n/** @deprecated Use `algosdk.indexerModels.EvalDeltaKeyValue[]`. */\nexport type StateDelta = EvalDeltaKeyValue[]\n\n/** @deprecated Use `algosdk.indexerModels.EvalDelta`. Indexer Represents a TEAL value delta. https://dev.algorand.co/reference/rest-api/indexer#evaldelta */\nexport type EvalDelta = indexerModels.EvalDelta\n\n/** @deprecated Use `algosdk.indexerModels.ApplicationParams`. Indexer Stores the global information associated with an application https://dev.algorand.co/reference/rest-api/indexer#applicationparams */\nexport type ApplicationParams = indexerModels.ApplicationParams\n\n/** @deprecated Use `algosdk.indexerModels.StateSchema`. Indexer Represents a [apls] local-state or [apgs] global-state schema.\n * https://dev.algorand.co/reference/rest-api/indexer#stateschema\n *\n * These schemas determine how much storage may be used in a local-state or global-state for an application.\n *\n * The more space used, the larger minimum balance must be maintained in the account holding the data.\n */\nexport type StateSchema = indexerModels.StateSchema\n\n/** Defines the what additional actions occur with the transaction https://dev.algorand.co/reference/rest-api/indexer/#oncompletion */\nexport enum ApplicationOnComplete {\n noop = 'noop',\n optin = 'optin',\n closeout = 'closeout',\n clear = 'clear',\n update = 'update',\n delete = 'delete',\n}\n\n/** @deprecated Use `algosdk.indexerModels.AssetParams`. Indexer AssetParams specifies the parameters for an asset. https://dev.algorand.co/reference/rest-api/indexer#assetparams */\nexport type AssetParams = indexerModels.AssetParams\n\n/** Type of signature used by an account */\nexport enum SignatureType {\n /** Normal signature */\n sig = 'sig',\n /** Multisig */\n msig = 'msig',\n /** Logic signature */\n lsig = 'lsig',\n}\n\n/** Delegation status of the account */\nexport enum AccountStatus {\n /** Indicates that the associated account is delegated */\n Offline = 'Offline',\n /** Indicates that the associated account used as part of the delegation pool */\n Online = 'Online',\n /** Indicates that the associated account is neither a delegator nor a delegate */\n NotParticipating = 'NotParticipating',\n}\n\n/** @deprecated Use `algosdk.indexerModels.AccountParticipation`. Indexer AccountParticipation describes the parameters used by this account in consensus protocol. https://dev.algorand.co/reference/rest-api/indexer#accountparticipation */\nexport type AccountParticipation = indexerModels.AccountParticipation\n\n/** @deprecated Use `algosdk.indexerModels.ApplicationLocalState`. Indexer Stores local state associated with an application. https://dev.algorand.co/reference/rest-api/indexer#applicationlocalstate */\nexport type AppLocalState = indexerModels.ApplicationLocalState\n\n/** @deprecated Use `algosdk.indexerModels.AssetHolding`. Indexer Describes an asset held by an account. https://dev.algorand.co/reference/rest-api/indexer#assetholding */\nexport type AssetHolding = indexerModels.AssetHolding\n\n/** @deprecated Use `algosdk.indexerModels.MiniAssetHolding`. Indexer Describes an asset holding for an account of a known asset. https://dev.algorand.co/reference/rest-api/indexer#miniassetholding */\nexport type MiniAssetHolding = indexerModels.MiniAssetHolding\n"],"mappings":";;;AAqKA,IAAY,wBAAL,yBAAA,uBAAA;CACL,sBAAA,UAAA;CACA,sBAAA,WAAA;CACA,sBAAA,cAAA;CACA,sBAAA,WAAA;CACA,sBAAA,YAAA;CACA,sBAAA,YAAA;;AACF,EAAA,CAAA,CAAA;;AAMA,IAAY,gBAAL,yBAAA,eAAA;;CAEL,cAAA,SAAA;;CAEA,cAAA,UAAA;;CAEA,cAAA,UAAA;;AACF,EAAA,CAAA,CAAA;;AAGA,IAAY,gBAAL,yBAAA,eAAA;;CAEL,cAAA,aAAA;;CAEA,cAAA,YAAA;;CAEA,cAAA,sBAAA;;AACF,EAAA,CAAA,CAAA"}
package/types/indexer.mjs CHANGED
@@ -1,33 +1,35 @@
1
- /** Defines the what additional actions occur with the transaction https://dev.algorand.co/reference/rest-apis/indexer/#oncompletion */
2
- var ApplicationOnComplete;
3
- (function (ApplicationOnComplete) {
4
- ApplicationOnComplete["noop"] = "noop";
5
- ApplicationOnComplete["optin"] = "optin";
6
- ApplicationOnComplete["closeout"] = "closeout";
7
- ApplicationOnComplete["clear"] = "clear";
8
- ApplicationOnComplete["update"] = "update";
9
- ApplicationOnComplete["delete"] = "delete";
10
- })(ApplicationOnComplete || (ApplicationOnComplete = {}));
1
+ //#region src/types/indexer.ts
2
+ /** Defines the what additional actions occur with the transaction https://dev.algorand.co/reference/rest-api/indexer/#oncompletion */
3
+ let ApplicationOnComplete = /* @__PURE__ */ function(ApplicationOnComplete) {
4
+ ApplicationOnComplete["noop"] = "noop";
5
+ ApplicationOnComplete["optin"] = "optin";
6
+ ApplicationOnComplete["closeout"] = "closeout";
7
+ ApplicationOnComplete["clear"] = "clear";
8
+ ApplicationOnComplete["update"] = "update";
9
+ ApplicationOnComplete["delete"] = "delete";
10
+ return ApplicationOnComplete;
11
+ }({});
11
12
  /** Type of signature used by an account */
12
- var SignatureType;
13
- (function (SignatureType) {
14
- /** Normal signature */
15
- SignatureType["sig"] = "sig";
16
- /** Multisig */
17
- SignatureType["msig"] = "msig";
18
- /** Logic signature */
19
- SignatureType["lsig"] = "lsig";
20
- })(SignatureType || (SignatureType = {}));
13
+ let SignatureType = /* @__PURE__ */ function(SignatureType) {
14
+ /** Normal signature */
15
+ SignatureType["sig"] = "sig";
16
+ /** Multisig */
17
+ SignatureType["msig"] = "msig";
18
+ /** Logic signature */
19
+ SignatureType["lsig"] = "lsig";
20
+ return SignatureType;
21
+ }({});
21
22
  /** Delegation status of the account */
22
- var AccountStatus;
23
- (function (AccountStatus) {
24
- /** Indicates that the associated account is delegated */
25
- AccountStatus["Offline"] = "Offline";
26
- /** Indicates that the associated account used as part of the delegation pool */
27
- AccountStatus["Online"] = "Online";
28
- /** Indicates that the associated account is neither a delegator nor a delegate */
29
- AccountStatus["NotParticipating"] = "NotParticipating";
30
- })(AccountStatus || (AccountStatus = {}));
31
-
23
+ let AccountStatus = /* @__PURE__ */ function(AccountStatus) {
24
+ /** Indicates that the associated account is delegated */
25
+ AccountStatus["Offline"] = "Offline";
26
+ /** Indicates that the associated account used as part of the delegation pool */
27
+ AccountStatus["Online"] = "Online";
28
+ /** Indicates that the associated account is neither a delegator nor a delegate */
29
+ AccountStatus["NotParticipating"] = "NotParticipating";
30
+ return AccountStatus;
31
+ }({});
32
+ //#endregion
32
33
  export { AccountStatus, ApplicationOnComplete, SignatureType };
33
- //# sourceMappingURL=indexer.mjs.map
34
+
35
+ //# sourceMappingURL=indexer.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"indexer.mjs","sources":["../../src/types/indexer.ts"],"sourcesContent":["import algosdk from 'algosdk'\nimport indexerModels = algosdk.indexerModels\n\n/** @deprecated Use `algosdk.indexerModels.TransactionsResponse`. Indexer result for a transaction search, https://dev.algorand.co/reference/rest-apis/indexer#get-v2transactions */\nexport type TransactionSearchResults = indexerModels.TransactionsResponse\n\n/** @deprecated Use `algosdk.indexerModels.AccountResponse`. Indexer result for an account lookup, https://dev.algorand.co/reference/rest-apis/indexer#get-v2accountsaccount-id */\nexport type AccountLookupResult = indexerModels.AccountResponse\n\n/** @deprecated Use `algosdk.indexerModels.AssetHoldingsResponse`. Indexer result for an account's asset holdings, https://dev.algorand.co/reference/rest-apis/indexer#get-v2accountsaccount-idassets */\nexport type AssetsLookupResult = indexerModels.AssetHoldingsResponse\n\n/** @deprecated Use `algosdk.indexerModels.AssetsResponse`. Indexer result for an account's created assets, https://dev.algorand.co/reference/rest-apis/indexer#get-v2accountsaccount-idcreated-assets */\nexport type AssetsCreatedLookupResult = indexerModels.AssetsResponse\n\n/** @deprecated Use `algosdk.indexerModels.ApplicationsResponse`. Indexer result for an account's created applications, https://dev.algorand.co/reference/rest-apis/indexer#get-v2accountsaccount-idcreated-applications */\nexport type ApplicationCreatedLookupResult = indexerModels.ApplicationsResponse\n\n/** @deprecated Use `algosdk.indexerModels.AssetResponse`. Indexer result for an asset lookup, https://dev.algorand.co/reference/rest-apis/indexer#get-v2assetsasset-id */\nexport type AssetLookupResult = indexerModels.AssetResponse\n\n/** Options when looking up an asset's account holdings, https://dev.algorand.co/reference/rest-apis/indexer#get-v2assetsasset-idbalances */\nexport interface LookupAssetHoldingsOptions {\n /** Results should have a decimal units amount less than this value. */\n currencyLessThan?: number | bigint\n /** Results should have a decimal units amount greater than this value. */\n currencyGreaterThan?: number | bigint\n /** Include all items including closed accounts and opted-out asset holdings. */\n includeAll?: boolean\n}\n\n/** @deprecated Use `algosdk.indexerModels.AssetBalancesResponse`. Indexer result for an asset's account holdings, https://dev.algorand.co/reference/rest-apis/indexer#get-v2assetsasset-idbalances */\nexport type AssetBalancesLookupResult = indexerModels.AssetBalancesResponse\n\n/** @deprecated Use `algosdk.indexerModels.TransactionResponse`. Indexer result for a transaction lookup, https://dev.algorand.co/reference/rest-apis/indexer#get-v2transactionstxid */\nexport type TransactionLookupResult = indexerModels.TransactionResponse\n\n/** @deprecated Use `algosdk.indexerModels.ApplicationResponse`. Indexer result for an application lookup, https://dev.algorand.co/reference/rest-apis/indexer#get-v2applicationsapplication-id */\nexport type ApplicationLookupResult = indexerModels.ApplicationResponse\n\n/** @deprecated Use `algosdk.indexerModels.Transaction`. Indexer result for a transaction, https://dev.algorand.co/reference/rest-apis/indexer#transaction */\nexport type TransactionResult = indexerModels.Transaction\n\n/** @deprecated Use `algosdk.indexerModels.Account`. Indexer Account information at a given round https://dev.algorand.co/reference/rest-apis/indexer#account */\nexport type AccountResult = indexerModels.Account\n\n/** @deprecated Use `algosdk.indexerModels.TransactionPayment`. Indexer Fields for a payment transaction https://dev.algorand.co/reference/rest-apis/indexer#transactionpayment */\nexport type PaymentTransactionResult = indexerModels.TransactionPayment\n\n/** @deprecated Use `algosdk.indexerModels.TransactionStateProof`. Indexer Fields for a state proof transaction https://dev.algorand.co/reference/rest-apis/indexer#transactionstateproof.\n *\n * See also https://dev.algorand.co/concepts/protocol/state-proofs/,\n * https://github.com/algorand/go-algorand/blob/master/data/transactions/stateproof.go,\n * https://github.com/algorand/go-algorand/blob/master/crypto/stateproof/structs.go,\n * https://github.com/algorand/go-algorand/blob/master/data/stateproofmsg/message.go, and\n * https://dev.algorand.co/reference/rest-apis/algod/#stateproof.\n */\nexport type StateProofTransactionResult = indexerModels.TransactionStateProof\n\n/** @deprecated Use `algosdk.indexerModels.MerkleArrayProof`. Indexer Merkle array Proof.\n *\n * Proof is used to convince a verifier about membership of leaves: h0,h1...hn\n * at indexes i0,i1...in on a tree. The verifier has a trusted value of the tree\n * root hash.\n *\n * Path is bounded by MaxNumLeaves since there could be multiple reveals, and\n * given the distribution of the elt positions and the depth of the tree,\n * the path length can increase up to 2^MaxTreeDepth / 2\n *\n * Consider two different reveals for the same tree:\n * ```\n * . z5\n * . z3 z4\n * . y z z1 z2\n * . q r s t u v w x\n * . a b c d e f g h i j k l m n o p\n * . ^\n * . hints: [a, r, z, z4]\n * . len(hints) = 4\n * ```\n * You need a to combine with b to get q, need r to combine with the computed q and get y, and so on.\n *\n * The worst case is this:\n * ```\n * . z5\n * . z3 z4\n * . y z z1 z2\n * . q r s t u v w x\n * . a b c d e f g h i j k l m n o p\n * . ^ ^ ^ ^ ^ ^ ^ ^\n * .\n * . hints: [b, d, e, g, j, l, m, o]\n * . len(hints) = 2^4/2\n * ```\n */\nexport type MerkleArrayProof = indexerModels.MerkleArrayProof\n\n/** @deprecated Use `algosdk.indexerModels.TransactionApplication`. Indexer Fields for an application transaction https://dev.algorand.co/reference/rest-apis/indexer#transactionapplication */\nexport type ApplicationTransactionResult = indexerModels.TransactionApplication\n\n/** @deprecated Use `algosdk.indexerModels.TransactionAssetConfig`. Indexer Fields for asset allocation, re-configuration, and destruction.\n * https://dev.algorand.co/reference/rest-apis/indexer#transactionassetconfig\n *\n * A zero value for asset-id indicates asset creation. A zero value for the params indicates asset destruction.\n */\nexport type AssetConfigTransactionResult = indexerModels.TransactionAssetConfig\n\n/** @deprecated Use `algosdk.indexerModels.TransactionAssetFreeze`. Indexer Fields for an asset freeze transaction. https://dev.algorand.co/reference/rest-apis/indexer#transactionassetfreeze */\nexport type AssetFreezeTransactionResult = indexerModels.TransactionAssetFreeze\n\n/** @deprecated Use `algosdk.indexerModels.TransactionAssetTransfer`. Indexer Fields for an asset transfer transaction. https://dev.algorand.co/reference/rest-apis/indexer#transactionassettransfer */\nexport type AssetTransferTransactionResult = indexerModels.TransactionAssetTransfer\n\n/** @deprecated Use `algosdk.indexerModels.TransactionKeyreg`. Indexer Fields for a `keyreg` transaction https://dev.algorand.co/reference/rest-apis/indexer#transactionkeyreg */\nexport type KeyRegistrationTransactionResult = indexerModels.TransactionKeyreg\n\n/** @deprecated Use `algosdk.indexerModels.Asset`. Indexer Fields to specify both the unique identifier and the parameters for an asset. https://dev.algorand.co/reference/rest-apis/indexer#asset */\nexport type AssetResult = indexerModels.Asset\n\n/** @deprecated Use `algosdk.indexerModels.Application`. Indexer result of looking up an application\n */\nexport type ApplicationResult = indexerModels.Application\n\n/** @deprecated Use `algosdk.indexerModels.TransactionSignature`. Indexer Validation signature associated with some data. Only one of the signatures should be provided. https://dev.algorand.co/reference/rest-apis/indexer#transactionsignature */\nexport type TransactionSignature = indexerModels.TransactionSignature\n\n/** @deprecated Use `algosdk.indexerModels.TransactionSignatureLogicsig`. Indexer [lsig] Programatic transaction signature.\n *\n * https://dev.algorand.co/reference/rest-apis/indexer#transactionsignaturelogicsig\n *\n * https://dev.algorand.co/concepts/smart-contracts/logic-sigs\n */\nexport type LogicTransactionSignature = indexerModels.TransactionSignatureLogicsig\n\n/** @deprecated Use `algosdk.indexerModels.TransactionSignatureMultisig`. Indexer [msig] structure holding multiple subsignatures. https://dev.algorand.co/reference/rest-apis/indexer#transactionsignaturemultisig */\nexport type MultisigTransactionSignature = indexerModels.TransactionSignatureMultisig\n\n/** @deprecated Use `algosdk.indexerModels.TransactionSignatureMultisigSubsignature`. Indexer Sub-signature for a multisig signature https://dev.algorand.co/reference/rest-apis/indexer#transactionsignaturemultisigsubsignature */\nexport type MultisigTransactionSubSignature = indexerModels.TransactionSignatureMultisigSubsignature\n\n/** @deprecated Use `algosdk.indexerModels.EvalDeltaKeyValue`. */\nexport type EvalDeltaKeyValue = indexerModels.EvalDeltaKeyValue\n\n/** @deprecated Use `algosdk.indexerModels.AccountStateDelta`. */\nexport type AccountStateDelta = indexerModels.AccountStateDelta\n\n/** @deprecated Use `algosdk.indexerModels.EvalDeltaKeyValue[]`. */\nexport type StateDelta = EvalDeltaKeyValue[]\n\n/** @deprecated Use `algosdk.indexerModels.EvalDelta`. Indexer Represents a TEAL value delta. https://dev.algorand.co/reference/rest-apis/indexer#evaldelta */\nexport type EvalDelta = indexerModels.EvalDelta\n\n/** @deprecated Use `algosdk.indexerModels.ApplicationParams`. Indexer Stores the global information associated with an application https://dev.algorand.co/reference/rest-apis/indexer#applicationparams */\nexport type ApplicationParams = indexerModels.ApplicationParams\n\n/** @deprecated Use `algosdk.indexerModels.StateSchema`. Indexer Represents a [apls] local-state or [apgs] global-state schema.\n * https://dev.algorand.co/reference/rest-apis/indexer#stateschema\n *\n * These schemas determine how much storage may be used in a local-state or global-state for an application.\n *\n * The more space used, the larger minimum balance must be maintained in the account holding the data.\n */\nexport type StateSchema = indexerModels.StateSchema\n\n/** Defines the what additional actions occur with the transaction https://dev.algorand.co/reference/rest-apis/indexer/#oncompletion */\nexport enum ApplicationOnComplete {\n noop = 'noop',\n optin = 'optin',\n closeout = 'closeout',\n clear = 'clear',\n update = 'update',\n delete = 'delete',\n}\n\n/** @deprecated Use `algosdk.indexerModels.AssetParams`. Indexer AssetParams specifies the parameters for an asset. https://dev.algorand.co/reference/rest-apis/indexer#assetparams */\nexport type AssetParams = indexerModels.AssetParams\n\n/** Type of signature used by an account */\nexport enum SignatureType {\n /** Normal signature */\n sig = 'sig',\n /** Multisig */\n msig = 'msig',\n /** Logic signature */\n lsig = 'lsig',\n}\n\n/** Delegation status of the account */\nexport enum AccountStatus {\n /** Indicates that the associated account is delegated */\n Offline = 'Offline',\n /** Indicates that the associated account used as part of the delegation pool */\n Online = 'Online',\n /** Indicates that the associated account is neither a delegator nor a delegate */\n NotParticipating = 'NotParticipating',\n}\n\n/** @deprecated Use `algosdk.indexerModels.AccountParticipation`. Indexer AccountParticipation describes the parameters used by this account in consensus protocol. https://dev.algorand.co/reference/rest-apis/indexer#accountparticipation */\nexport type AccountParticipation = indexerModels.AccountParticipation\n\n/** @deprecated Use `algosdk.indexerModels.ApplicationLocalState`. Indexer Stores local state associated with an application. https://dev.algorand.co/reference/rest-apis/indexer#applicationlocalstate */\nexport type AppLocalState = indexerModels.ApplicationLocalState\n\n/** @deprecated Use `algosdk.indexerModels.AssetHolding`. Indexer Describes an asset held by an account. https://dev.algorand.co/reference/rest-apis/indexer#assetholding */\nexport type AssetHolding = indexerModels.AssetHolding\n\n/** @deprecated Use `algosdk.indexerModels.MiniAssetHolding`. Indexer Describes an asset holding for an account of a known asset. https://dev.algorand.co/reference/rest-apis/indexer#miniassetholding */\nexport type MiniAssetHolding = indexerModels.MiniAssetHolding\n"],"names":[],"mappings":"AAoKA;IACY;AAAZ,CAAA,UAAY,qBAAqB,EAAA;AAC/B,IAAA,qBAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,qBAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,qBAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACrB,IAAA,qBAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,qBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AACjB,IAAA,qBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AACnB,CAAC,EAPW,qBAAqB,KAArB,qBAAqB,GAOhC,EAAA,CAAA,CAAA;AAKD;IACY;AAAZ,CAAA,UAAY,aAAa,EAAA;;AAEvB,IAAA,aAAA,CAAA,KAAA,CAAA,GAAA,KAAW;;AAEX,IAAA,aAAA,CAAA,MAAA,CAAA,GAAA,MAAa;;AAEb,IAAA,aAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACf,CAAC,EAPW,aAAa,KAAb,aAAa,GAOxB,EAAA,CAAA,CAAA;AAED;IACY;AAAZ,CAAA,UAAY,aAAa,EAAA;;AAEvB,IAAA,aAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;;AAEnB,IAAA,aAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;;AAEjB,IAAA,aAAA,CAAA,kBAAA,CAAA,GAAA,kBAAqC;AACvC,CAAC,EAPW,aAAa,KAAb,aAAa,GAOxB,EAAA,CAAA,CAAA;;;;"}
1
+ {"version":3,"file":"indexer.mjs","names":[],"sources":["../../src/types/indexer.ts"],"sourcesContent":["import algosdk from 'algosdk'\nimport indexerModels = algosdk.indexerModels\n\n/** @deprecated Use `algosdk.indexerModels.TransactionsResponse`. Indexer result for a transaction search, https://dev.algorand.co/reference/rest-api/indexer#get-v2transactions */\nexport type TransactionSearchResults = indexerModels.TransactionsResponse\n\n/** @deprecated Use `algosdk.indexerModels.AccountResponse`. Indexer result for an account lookup, https://dev.algorand.co/reference/rest-api/indexer#get-v2accountsaccount-id */\nexport type AccountLookupResult = indexerModels.AccountResponse\n\n/** @deprecated Use `algosdk.indexerModels.AssetHoldingsResponse`. Indexer result for an account's asset holdings, https://dev.algorand.co/reference/rest-api/indexer#get-v2accountsaccount-idassets */\nexport type AssetsLookupResult = indexerModels.AssetHoldingsResponse\n\n/** @deprecated Use `algosdk.indexerModels.AssetsResponse`. Indexer result for an account's created assets, https://dev.algorand.co/reference/rest-api/indexer#get-v2accountsaccount-idcreated-assets */\nexport type AssetsCreatedLookupResult = indexerModels.AssetsResponse\n\n/** @deprecated Use `algosdk.indexerModels.ApplicationsResponse`. Indexer result for an account's created applications, https://dev.algorand.co/reference/rest-api/indexer#get-v2accountsaccount-idcreated-applications */\nexport type ApplicationCreatedLookupResult = indexerModels.ApplicationsResponse\n\n/** @deprecated Use `algosdk.indexerModels.AssetResponse`. Indexer result for an asset lookup, https://dev.algorand.co/reference/rest-api/indexer#get-v2assetsasset-id */\nexport type AssetLookupResult = indexerModels.AssetResponse\n\n/** Options when looking up an asset's account holdings, https://dev.algorand.co/reference/rest-api/indexer#get-v2assetsasset-idbalances */\nexport interface LookupAssetHoldingsOptions {\n /** Results should have a decimal units amount less than this value. */\n currencyLessThan?: number | bigint\n /** Results should have a decimal units amount greater than this value. */\n currencyGreaterThan?: number | bigint\n /** Include all items including closed accounts and opted-out asset holdings. */\n includeAll?: boolean\n}\n\n/** @deprecated Use `algosdk.indexerModels.AssetBalancesResponse`. Indexer result for an asset's account holdings, https://dev.algorand.co/reference/rest-api/indexer#get-v2assetsasset-idbalances */\nexport type AssetBalancesLookupResult = indexerModels.AssetBalancesResponse\n\n/** @deprecated Use `algosdk.indexerModels.TransactionResponse`. Indexer result for a transaction lookup, https://dev.algorand.co/reference/rest-api/indexer#get-v2transactionstxid */\nexport type TransactionLookupResult = indexerModels.TransactionResponse\n\n/** @deprecated Use `algosdk.indexerModels.ApplicationResponse`. Indexer result for an application lookup, https://dev.algorand.co/reference/rest-api/indexer#get-v2applicationsapplication-id */\nexport type ApplicationLookupResult = indexerModels.ApplicationResponse\n\n/** @deprecated Use `algosdk.indexerModels.Transaction`. Indexer result for a transaction, https://dev.algorand.co/reference/rest-api/indexer#transaction */\nexport type TransactionResult = indexerModels.Transaction\n\n/** @deprecated Use `algosdk.indexerModels.Account`. Indexer Account information at a given round https://dev.algorand.co/reference/rest-api/indexer#account */\nexport type AccountResult = indexerModels.Account\n\n/** @deprecated Use `algosdk.indexerModels.TransactionPayment`. Indexer Fields for a payment transaction https://dev.algorand.co/reference/rest-api/indexer#transactionpayment */\nexport type PaymentTransactionResult = indexerModels.TransactionPayment\n\n/** @deprecated Use `algosdk.indexerModels.TransactionStateProof`. Indexer Fields for a state proof transaction https://dev.algorand.co/reference/rest-api/indexer#transactionstateproof.\n *\n * See also https://dev.algorand.co/concepts/protocol/state-proofs/,\n * https://github.com/algorand/go-algorand/blob/master/data/transactions/stateproof.go,\n * https://github.com/algorand/go-algorand/blob/master/crypto/stateproof/structs.go,\n * https://github.com/algorand/go-algorand/blob/master/data/stateproofmsg/message.go, and\n * https://dev.algorand.co/reference/rest-api/algod/operations/getstateproof/.\n */\nexport type StateProofTransactionResult = indexerModels.TransactionStateProof\n\n/** @deprecated Use `algosdk.indexerModels.MerkleArrayProof`. Indexer Merkle array Proof.\n *\n * Proof is used to convince a verifier about membership of leaves: h0,h1...hn\n * at indexes i0,i1...in on a tree. The verifier has a trusted value of the tree\n * root hash.\n *\n * Path is bounded by MaxNumLeaves since there could be multiple reveals, and\n * given the distribution of the elt positions and the depth of the tree,\n * the path length can increase up to 2^MaxTreeDepth / 2\n *\n * Consider two different reveals for the same tree:\n * ```\n * . z5\n * . z3 z4\n * . y z z1 z2\n * . q r s t u v w x\n * . a b c d e f g h i j k l m n o p\n * . ^\n * . hints: [a, r, z, z4]\n * . len(hints) = 4\n * ```\n * You need a to combine with b to get q, need r to combine with the computed q and get y, and so on.\n *\n * The worst case is this:\n * ```\n * . z5\n * . z3 z4\n * . y z z1 z2\n * . q r s t u v w x\n * . a b c d e f g h i j k l m n o p\n * . ^ ^ ^ ^ ^ ^ ^ ^\n * .\n * . hints: [b, d, e, g, j, l, m, o]\n * . len(hints) = 2^4/2\n * ```\n */\nexport type MerkleArrayProof = indexerModels.MerkleArrayProof\n\n/** @deprecated Use `algosdk.indexerModels.TransactionApplication`. Indexer Fields for an application transaction https://dev.algorand.co/reference/rest-api/indexer#transactionapplication */\nexport type ApplicationTransactionResult = indexerModels.TransactionApplication\n\n/** @deprecated Use `algosdk.indexerModels.TransactionAssetConfig`. Indexer Fields for asset allocation, re-configuration, and destruction.\n * https://dev.algorand.co/reference/rest-api/indexer#transactionassetconfig\n *\n * A zero value for asset-id indicates asset creation. A zero value for the params indicates asset destruction.\n */\nexport type AssetConfigTransactionResult = indexerModels.TransactionAssetConfig\n\n/** @deprecated Use `algosdk.indexerModels.TransactionAssetFreeze`. Indexer Fields for an asset freeze transaction. https://dev.algorand.co/reference/rest-api/indexer#transactionassetfreeze */\nexport type AssetFreezeTransactionResult = indexerModels.TransactionAssetFreeze\n\n/** @deprecated Use `algosdk.indexerModels.TransactionAssetTransfer`. Indexer Fields for an asset transfer transaction. https://dev.algorand.co/reference/rest-api/indexer#transactionassettransfer */\nexport type AssetTransferTransactionResult = indexerModels.TransactionAssetTransfer\n\n/** @deprecated Use `algosdk.indexerModels.TransactionKeyreg`. Indexer Fields for a `keyreg` transaction https://dev.algorand.co/reference/rest-api/indexer#transactionkeyreg */\nexport type KeyRegistrationTransactionResult = indexerModels.TransactionKeyreg\n\n/** @deprecated Use `algosdk.indexerModels.Asset`. Indexer Fields to specify both the unique identifier and the parameters for an asset. https://dev.algorand.co/reference/rest-api/indexer#asset */\nexport type AssetResult = indexerModels.Asset\n\n/** @deprecated Use `algosdk.indexerModels.Application`. Indexer result of looking up an application\n */\nexport type ApplicationResult = indexerModels.Application\n\n/** @deprecated Use `algosdk.indexerModels.TransactionSignature`. Indexer Validation signature associated with some data. Only one of the signatures should be provided. https://dev.algorand.co/reference/rest-api/indexer#transactionsignature */\nexport type TransactionSignature = indexerModels.TransactionSignature\n\n/** @deprecated Use `algosdk.indexerModels.TransactionSignatureLogicsig`. Indexer [lsig] Programatic transaction signature.\n *\n * https://dev.algorand.co/reference/rest-api/indexer#transactionsignaturelogicsig\n *\n * https://dev.algorand.co/concepts/smart-contracts/logic-sigs\n */\nexport type LogicTransactionSignature = indexerModels.TransactionSignatureLogicsig\n\n/** @deprecated Use `algosdk.indexerModels.TransactionSignatureMultisig`. Indexer [msig] structure holding multiple subsignatures. https://dev.algorand.co/reference/rest-api/indexer#transactionsignaturemultisig */\nexport type MultisigTransactionSignature = indexerModels.TransactionSignatureMultisig\n\n/** @deprecated Use `algosdk.indexerModels.TransactionSignatureMultisigSubsignature`. Indexer Sub-signature for a multisig signature https://dev.algorand.co/reference/rest-api/indexer#transactionsignaturemultisigsubsignature */\nexport type MultisigTransactionSubSignature = indexerModels.TransactionSignatureMultisigSubsignature\n\n/** @deprecated Use `algosdk.indexerModels.EvalDeltaKeyValue`. */\nexport type EvalDeltaKeyValue = indexerModels.EvalDeltaKeyValue\n\n/** @deprecated Use `algosdk.indexerModels.AccountStateDelta`. */\nexport type AccountStateDelta = indexerModels.AccountStateDelta\n\n/** @deprecated Use `algosdk.indexerModels.EvalDeltaKeyValue[]`. */\nexport type StateDelta = EvalDeltaKeyValue[]\n\n/** @deprecated Use `algosdk.indexerModels.EvalDelta`. Indexer Represents a TEAL value delta. https://dev.algorand.co/reference/rest-api/indexer#evaldelta */\nexport type EvalDelta = indexerModels.EvalDelta\n\n/** @deprecated Use `algosdk.indexerModels.ApplicationParams`. Indexer Stores the global information associated with an application https://dev.algorand.co/reference/rest-api/indexer#applicationparams */\nexport type ApplicationParams = indexerModels.ApplicationParams\n\n/** @deprecated Use `algosdk.indexerModels.StateSchema`. Indexer Represents a [apls] local-state or [apgs] global-state schema.\n * https://dev.algorand.co/reference/rest-api/indexer#stateschema\n *\n * These schemas determine how much storage may be used in a local-state or global-state for an application.\n *\n * The more space used, the larger minimum balance must be maintained in the account holding the data.\n */\nexport type StateSchema = indexerModels.StateSchema\n\n/** Defines the what additional actions occur with the transaction https://dev.algorand.co/reference/rest-api/indexer/#oncompletion */\nexport enum ApplicationOnComplete {\n noop = 'noop',\n optin = 'optin',\n closeout = 'closeout',\n clear = 'clear',\n update = 'update',\n delete = 'delete',\n}\n\n/** @deprecated Use `algosdk.indexerModels.AssetParams`. Indexer AssetParams specifies the parameters for an asset. https://dev.algorand.co/reference/rest-api/indexer#assetparams */\nexport type AssetParams = indexerModels.AssetParams\n\n/** Type of signature used by an account */\nexport enum SignatureType {\n /** Normal signature */\n sig = 'sig',\n /** Multisig */\n msig = 'msig',\n /** Logic signature */\n lsig = 'lsig',\n}\n\n/** Delegation status of the account */\nexport enum AccountStatus {\n /** Indicates that the associated account is delegated */\n Offline = 'Offline',\n /** Indicates that the associated account used as part of the delegation pool */\n Online = 'Online',\n /** Indicates that the associated account is neither a delegator nor a delegate */\n NotParticipating = 'NotParticipating',\n}\n\n/** @deprecated Use `algosdk.indexerModels.AccountParticipation`. Indexer AccountParticipation describes the parameters used by this account in consensus protocol. https://dev.algorand.co/reference/rest-api/indexer#accountparticipation */\nexport type AccountParticipation = indexerModels.AccountParticipation\n\n/** @deprecated Use `algosdk.indexerModels.ApplicationLocalState`. Indexer Stores local state associated with an application. https://dev.algorand.co/reference/rest-api/indexer#applicationlocalstate */\nexport type AppLocalState = indexerModels.ApplicationLocalState\n\n/** @deprecated Use `algosdk.indexerModels.AssetHolding`. Indexer Describes an asset held by an account. https://dev.algorand.co/reference/rest-api/indexer#assetholding */\nexport type AssetHolding = indexerModels.AssetHolding\n\n/** @deprecated Use `algosdk.indexerModels.MiniAssetHolding`. Indexer Describes an asset holding for an account of a known asset. https://dev.algorand.co/reference/rest-api/indexer#miniassetholding */\nexport type MiniAssetHolding = indexerModels.MiniAssetHolding\n"],"mappings":";;AAqKA,IAAY,wBAAL,yBAAA,uBAAA;CACL,sBAAA,UAAA;CACA,sBAAA,WAAA;CACA,sBAAA,cAAA;CACA,sBAAA,WAAA;CACA,sBAAA,YAAA;CACA,sBAAA,YAAA;;AACF,EAAA,CAAA,CAAA;;AAMA,IAAY,gBAAL,yBAAA,eAAA;;CAEL,cAAA,SAAA;;CAEA,cAAA,UAAA;;CAEA,cAAA,UAAA;;AACF,EAAA,CAAA,CAAA;;AAGA,IAAY,gBAAL,yBAAA,eAAA;;CAEL,cAAA,aAAA;;CAEA,cAAA,YAAA;;CAEA,cAAA,sBAAA;;AACF,EAAA,CAAA,CAAA"}
@@ -1,6 +1,8 @@
1
+ //#region src/types/instance-of.d.ts
1
2
  /**
2
3
  * A type that represents the interface of the class given as the generic parameter
3
4
  */
4
- export type InterfaceOf<ClassType> = {
5
- [Member in keyof ClassType]: ClassType[Member];
6
- };
5
+ type InterfaceOf<ClassType> = { [Member in keyof ClassType]: ClassType[Member] };
6
+ //#endregion
7
+ export { InterfaceOf };
8
+ //# sourceMappingURL=instance-of.d.ts.map
@@ -1,3 +0,0 @@
1
- 'use strict';
2
-
3
- //# sourceMappingURL=instance-of.js.map
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=instance-of.mjs.map
@@ -1,73 +1,78 @@
1
- import algosdk, { Address } from 'algosdk';
2
- import { SigningAccount, TransactionSignerAccount } from './account';
3
- import { AlgoAmount } from './amount';
4
- import { ClientManager } from './client-manager';
1
+ import { AlgoAmount } from "./amount.js";
2
+ import { SigningAccount, TransactionSignerAccount } from "./account.js";
3
+ import { ClientManager } from "./client-manager.js";
4
+ import algosdk, { Address } from "algosdk";
5
+
6
+ //#region src/types/kmd-account-manager.d.ts
5
7
  /** Provides abstractions over a [KMD](https://github.com/algorand/go-algorand/blob/master/daemon/kmd/README.md) instance
6
8
  * that makes it easier to get and manage accounts using KMD. */
7
- export declare class KmdAccountManager {
8
- private _clientManager;
9
- private _kmd?;
10
- /**
11
- * Create a new KMD manager.
12
- * @param clientManager A ClientManager client to use for algod and kmd clients
13
- */
14
- constructor(clientManager: ClientManager);
15
- kmd(): Promise<algosdk.Kmd>;
16
- /**
17
- * Returns an Algorand signing account with private key loaded from the given KMD wallet (identified by name).
18
- *
19
- * @param walletName The name of the wallet to retrieve an account from
20
- * @param predicate An optional filter to use to find the account (otherwise it will return a random account from the wallet)
21
- * @param sender The optional sender address to use this signer for (aka a rekeyed account)
22
- * @example Get default funded account in a LocalNet
23
- *
24
- * ```typescript
25
- * const defaultDispenserAccount = await kmdAccountManager.getWalletAccount(
26
- * 'unencrypted-default-wallet',
27
- * a => a.status !== 'Offline' && a.amount > 1_000_000_000
28
- * )
29
- * ```
30
- * @returns The signing account (with private key loaded) or undefined if no matching wallet or account was found
31
- */
32
- getWalletAccount(walletName: string, predicate?: (account: Record<string, any>) => boolean, sender?: string | Address): Promise<(TransactionSignerAccount & {
33
- account: SigningAccount;
34
- }) | undefined>;
35
- private findWalletAccount;
36
- /**
37
- * Gets an account with private key loaded from a KMD wallet of the given name, or alternatively creates one with funds in it via a KMD wallet of the given name.
38
- *
39
- * This is useful to get idempotent accounts from LocalNet without having to specify the private key (which will change when resetting the LocalNet).
40
- *
41
- * This significantly speeds up local dev time and improves experience since you can write code that *just works* first go without manual config in a fresh LocalNet.
42
- *
43
- * If this is used via `mnemonicAccountFromEnvironment`, then you can even use the same code that runs on production without changes for local development!
44
- *
45
- * @param name The name of the wallet to retrieve / create
46
- * @param fundWith The number of Algo to fund the account with when it gets created, if not specified then 1000 ALGO will be funded from the dispenser account
47
- *
48
- * @example
49
- * ```typescript
50
- * // Idempotently get (if exists) or create (if it doesn't exist yet) an account by name using KMD
51
- * // if creating it then fund it with 2 ALGO from the default dispenser account
52
- * const newAccount = await kmdAccountManager.getOrCreateWalletAccount('account1', (2).algo())
53
- * // This will return the same account as above since the name matches
54
- * const existingAccount = await kmdAccountManager.getOrCreateWalletAccount('account1')
55
- * ```
56
- *
57
- * @returns An Algorand account with private key loaded - either one that already existed in the given KMD wallet, or a new one that is funded for you
58
- */
59
- getOrCreateWalletAccount(name: string, fundWith?: AlgoAmount): Promise<TransactionSignerAccount & {
60
- account: SigningAccount;
61
- }>;
62
- /**
63
- * Returns an Algorand account with private key loaded for the default LocalNet dispenser account (that can be used to fund other accounts).
64
- * @example
65
- * ```typescript
66
- * const dispenser = await kmdAccountManager.getLocalNetDispenserAccount()
67
- * ```
68
- * @returns The default LocalNet dispenser account
69
- */
70
- getLocalNetDispenserAccount(): Promise<TransactionSignerAccount & {
71
- account: SigningAccount;
72
- }>;
9
+ declare class KmdAccountManager {
10
+ private _clientManager;
11
+ private _kmd?;
12
+ /**
13
+ * Create a new KMD manager.
14
+ * @param clientManager A ClientManager client to use for algod and kmd clients
15
+ */
16
+ constructor(clientManager: ClientManager);
17
+ kmd(): Promise<algosdk.Kmd>;
18
+ /**
19
+ * Returns an Algorand signing account with private key loaded from the given KMD wallet (identified by name).
20
+ *
21
+ * @param walletName The name of the wallet to retrieve an account from
22
+ * @param predicate An optional filter to use to find the account (otherwise it will return a random account from the wallet)
23
+ * @param sender The optional sender address to use this signer for (aka a rekeyed account)
24
+ * @example Get default funded account in a LocalNet
25
+ *
26
+ * ```typescript
27
+ * const defaultDispenserAccount = await kmdAccountManager.getWalletAccount(
28
+ * 'unencrypted-default-wallet',
29
+ * a => a.status !== 'Offline' && a.amount > 1_000_000_000
30
+ * )
31
+ * ```
32
+ * @returns The signing account (with private key loaded) or undefined if no matching wallet or account was found
33
+ */
34
+ getWalletAccount(walletName: string, predicate?: (account: Record<string, any>) => boolean, sender?: string | Address): Promise<(TransactionSignerAccount & {
35
+ account: SigningAccount;
36
+ }) | undefined>;
37
+ private findWalletAccount;
38
+ /**
39
+ * Gets an account with private key loaded from a KMD wallet of the given name, or alternatively creates one with funds in it via a KMD wallet of the given name.
40
+ *
41
+ * This is useful to get idempotent accounts from LocalNet without having to specify the private key (which will change when resetting the LocalNet).
42
+ *
43
+ * This significantly speeds up local dev time and improves experience since you can write code that *just works* first go without manual config in a fresh LocalNet.
44
+ *
45
+ * If this is used via `mnemonicAccountFromEnvironment`, then you can even use the same code that runs on production without changes for local development!
46
+ *
47
+ * @param name The name of the wallet to retrieve / create
48
+ * @param fundWith The number of Algo to fund the account with when it gets created, if not specified then 1000 ALGO will be funded from the dispenser account
49
+ *
50
+ * @example
51
+ * ```typescript
52
+ * // Idempotently get (if exists) or create (if it doesn't exist yet) an account by name using KMD
53
+ * // if creating it then fund it with 2 ALGO from the default dispenser account
54
+ * const newAccount = await kmdAccountManager.getOrCreateWalletAccount('account1', (2).algo())
55
+ * // This will return the same account as above since the name matches
56
+ * const existingAccount = await kmdAccountManager.getOrCreateWalletAccount('account1')
57
+ * ```
58
+ *
59
+ * @returns An Algorand account with private key loaded - either one that already existed in the given KMD wallet, or a new one that is funded for you
60
+ */
61
+ getOrCreateWalletAccount(name: string, fundWith?: AlgoAmount): Promise<TransactionSignerAccount & {
62
+ account: SigningAccount;
63
+ }>;
64
+ /**
65
+ * Returns an Algorand account with private key loaded for the default LocalNet dispenser account (that can be used to fund other accounts).
66
+ * @example
67
+ * ```typescript
68
+ * const dispenser = await kmdAccountManager.getLocalNetDispenserAccount()
69
+ * ```
70
+ * @returns The default LocalNet dispenser account
71
+ */
72
+ getLocalNetDispenserAccount(): Promise<TransactionSignerAccount & {
73
+ account: SigningAccount;
74
+ }>;
73
75
  }
76
+ //#endregion
77
+ export { KmdAccountManager };
78
+ //# sourceMappingURL=kmd-account-manager.d.ts.map