@algorandfoundation/algokit-utils 10.0.0-alpha.31 → 10.0.0-alpha.32

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 (318) hide show
  1. package/account-manager.d.ts +448 -0
  2. package/account-manager.js +623 -0
  3. package/account-manager.js.map +1 -0
  4. package/account-manager.mjs +620 -0
  5. package/account-manager.mjs.map +1 -0
  6. package/account.d.ts +156 -0
  7. package/account.js +10 -0
  8. package/account.js.map +1 -0
  9. package/account.mjs +9 -0
  10. package/account.mjs.map +1 -0
  11. package/algorand-client-transaction-creator.d.ts +1103 -0
  12. package/algorand-client-transaction-creator.js +735 -0
  13. package/algorand-client-transaction-creator.js.map +1 -0
  14. package/algorand-client-transaction-creator.mjs +734 -0
  15. package/algorand-client-transaction-creator.mjs.map +1 -0
  16. package/algorand-client-transaction-sender.d.ts +1317 -0
  17. package/algorand-client-transaction-sender.js +933 -0
  18. package/algorand-client-transaction-sender.js.map +1 -0
  19. package/algorand-client-transaction-sender.mjs +932 -0
  20. package/algorand-client-transaction-sender.mjs.map +1 -0
  21. package/algorand-client.d.ts +246 -0
  22. package/algorand-client.js +325 -0
  23. package/algorand-client.js.map +1 -0
  24. package/algorand-client.mjs +325 -0
  25. package/algorand-client.mjs.map +1 -0
  26. package/amount.d.ts +46 -3
  27. package/amount.js +92 -13
  28. package/amount.js.map +1 -1
  29. package/amount.mjs +80 -3
  30. package/amount.mjs.map +1 -1
  31. package/app-client.d.ts +2130 -0
  32. package/app-client.js +909 -0
  33. package/app-client.js.map +1 -0
  34. package/app-client.mjs +908 -0
  35. package/app-client.mjs.map +1 -0
  36. package/app-deployer.d.ts +166 -0
  37. package/app-deployer.js +353 -0
  38. package/app-deployer.js.map +1 -0
  39. package/app-deployer.mjs +353 -0
  40. package/app-deployer.mjs.map +1 -0
  41. package/app-factory.d.ts +965 -0
  42. package/app-factory.js +448 -0
  43. package/app-factory.js.map +1 -0
  44. package/app-factory.mjs +448 -0
  45. package/app-factory.mjs.map +1 -0
  46. package/app-manager.d.ts +323 -0
  47. package/app-manager.js +468 -0
  48. package/app-manager.js.map +1 -0
  49. package/app-manager.mjs +468 -0
  50. package/app-manager.mjs.map +1 -0
  51. package/app-spec.d.ts +203 -0
  52. package/app-spec.js +137 -0
  53. package/app-spec.js.map +1 -0
  54. package/app-spec.mjs +137 -0
  55. package/app-spec.mjs.map +1 -0
  56. package/app.d.ts +257 -0
  57. package/app.js +49 -0
  58. package/app.js.map +1 -0
  59. package/app.mjs +42 -0
  60. package/app.mjs.map +1 -0
  61. package/asset-manager.d.ts +212 -0
  62. package/asset-manager.js +166 -0
  63. package/asset-manager.js.map +1 -0
  64. package/asset-manager.mjs +166 -0
  65. package/asset-manager.mjs.map +1 -0
  66. package/async-event-emitter.d.ts +16 -0
  67. package/async-event-emitter.js +38 -0
  68. package/async-event-emitter.js.map +1 -0
  69. package/async-event-emitter.mjs +37 -0
  70. package/async-event-emitter.mjs.map +1 -0
  71. package/client-manager.d.ts +475 -0
  72. package/client-manager.js +616 -0
  73. package/client-manager.js.map +1 -0
  74. package/client-manager.mjs +616 -0
  75. package/client-manager.mjs.map +1 -0
  76. package/composer.d.ts +947 -0
  77. package/composer.js +1584 -0
  78. package/composer.js.map +1 -0
  79. package/composer.mjs +1583 -0
  80. package/composer.mjs.map +1 -0
  81. package/config.d.ts +1 -1
  82. package/config.js +2 -2
  83. package/config.js.map +1 -1
  84. package/config.mjs +1 -1
  85. package/config.mjs.map +1 -1
  86. package/debugging.d.ts +47 -0
  87. package/debugging.js +20 -0
  88. package/debugging.js.map +1 -0
  89. package/debugging.mjs +15 -0
  90. package/debugging.mjs.map +1 -0
  91. package/dispenser-client.d.ts +90 -0
  92. package/dispenser-client.js +127 -0
  93. package/dispenser-client.js.map +1 -0
  94. package/dispenser-client.mjs +127 -0
  95. package/dispenser-client.mjs.map +1 -0
  96. package/expand.d.ts +2 -0
  97. package/expand.js +0 -0
  98. package/expand.mjs +0 -0
  99. package/index.d.ts +6 -5
  100. package/index.js +4 -3
  101. package/index.mjs +5 -5
  102. package/indexer-client/indexer-lookup.d.ts +1 -1
  103. package/indexer-client/indexer-lookup.js.map +1 -1
  104. package/indexer-client/indexer-lookup.mjs.map +1 -1
  105. package/indexer.d.ts +40 -0
  106. package/indexer.js +38 -0
  107. package/indexer.js.map +1 -0
  108. package/indexer.mjs +35 -0
  109. package/indexer.mjs.map +1 -0
  110. package/instance-of.d.ts +8 -0
  111. package/kmd-account-manager.d.ts +74 -0
  112. package/kmd-account-manager.js +167 -0
  113. package/kmd-account-manager.js.map +1 -0
  114. package/kmd-account-manager.mjs +165 -0
  115. package/kmd-account-manager.mjs.map +1 -0
  116. package/lifecycle-events.d.ts +14 -0
  117. package/lifecycle-events.js +11 -0
  118. package/lifecycle-events.js.map +1 -0
  119. package/lifecycle-events.mjs +10 -0
  120. package/lifecycle-events.mjs.map +1 -0
  121. package/logging.d.ts +13 -0
  122. package/logging.js +47 -0
  123. package/logging.js.map +1 -0
  124. package/logging.mjs +42 -0
  125. package/logging.mjs.map +1 -0
  126. package/logic-error.d.ts +39 -0
  127. package/logic-error.js +54 -0
  128. package/logic-error.js.map +1 -0
  129. package/logic-error.mjs +53 -0
  130. package/logic-error.mjs.map +1 -0
  131. package/network-client.d.ts +43 -0
  132. package/network-client.js +14 -0
  133. package/network-client.js.map +1 -0
  134. package/network-client.mjs +13 -0
  135. package/network-client.mjs.map +1 -0
  136. package/package.json +11 -1
  137. package/testing/account.d.ts +2 -2
  138. package/testing/account.js +1 -1
  139. package/testing/account.js.map +1 -1
  140. package/testing/account.mjs +1 -1
  141. package/testing/account.mjs.map +1 -1
  142. package/testing/fixtures/algokit-log-capture-fixture.d.ts +1 -1
  143. package/testing/fixtures/algokit-log-capture-fixture.js.map +1 -1
  144. package/testing/fixtures/algokit-log-capture-fixture.mjs.map +1 -1
  145. package/testing/fixtures/algorand-fixture.d.ts +2 -2
  146. package/testing/fixtures/algorand-fixture.js +2 -2
  147. package/testing/fixtures/algorand-fixture.js.map +1 -1
  148. package/testing/fixtures/algorand-fixture.mjs +2 -2
  149. package/testing/fixtures/algorand-fixture.mjs.map +1 -1
  150. package/testing/index.d.ts +2 -1
  151. package/testing/test-logger.d.ts +1 -1
  152. package/testing/test-logger.js.map +1 -1
  153. package/testing/test-logger.mjs.map +1 -1
  154. package/testing/types.d.ts +156 -0
  155. package/transaction/index.d.ts +4 -0
  156. package/transaction/index.js +9 -0
  157. package/transaction/index.mjs +4 -0
  158. package/transaction/perform-transaction-composer-simulate.d.ts +1 -1
  159. package/transaction/perform-transaction-composer-simulate.js.map +1 -1
  160. package/transaction/perform-transaction-composer-simulate.mjs.map +1 -1
  161. package/transaction/transaction.d.ts +2 -2
  162. package/transaction/transaction.js.map +1 -1
  163. package/transaction/transaction.mjs.map +1 -1
  164. package/transaction/types.d.ts +133 -0
  165. package/transactions/app-call.d.ts +1 -1
  166. package/transactions/app-call.js +1 -1
  167. package/transactions/app-call.js.map +1 -1
  168. package/transactions/app-call.mjs +1 -1
  169. package/transactions/app-call.mjs.map +1 -1
  170. package/transactions/common.d.ts +1 -1
  171. package/transactions/common.js.map +1 -1
  172. package/transactions/common.mjs.map +1 -1
  173. package/transactions/method-call.d.ts +1 -1
  174. package/transactions/method-call.js +1 -1
  175. package/transactions/method-call.js.map +1 -1
  176. package/transactions/method-call.mjs +1 -1
  177. package/transactions/method-call.mjs.map +1 -1
  178. package/transactions/payment.d.ts +1 -1
  179. package/transactions/payment.js.map +1 -1
  180. package/transactions/payment.mjs.map +1 -1
  181. package/types/account-manager.d.ts +11 -442
  182. package/types/account-manager.js +5 -616
  183. package/types/account-manager.js.map +1 -1
  184. package/types/account-manager.mjs +5 -614
  185. package/types/account-manager.mjs.map +1 -1
  186. package/types/account.d.ts +8 -150
  187. package/types/account.js +3 -4
  188. package/types/account.js.map +1 -1
  189. package/types/account.mjs +4 -4
  190. package/types/account.mjs.map +1 -1
  191. package/types/algorand-client-transaction-creator.d.ts +5 -1098
  192. package/types/algorand-client-transaction-creator.js +3 -729
  193. package/types/algorand-client-transaction-creator.js.map +1 -1
  194. package/types/algorand-client-transaction-creator.mjs +4 -729
  195. package/types/algorand-client-transaction-creator.mjs.map +1 -1
  196. package/types/algorand-client-transaction-sender.d.ts +5 -1312
  197. package/types/algorand-client-transaction-sender.js +3 -927
  198. package/types/algorand-client-transaction-sender.js.map +1 -1
  199. package/types/algorand-client-transaction-sender.mjs +3 -926
  200. package/types/algorand-client-transaction-sender.mjs.map +1 -1
  201. package/types/algorand-client.d.ts +5 -241
  202. package/types/algorand-client.js +3 -319
  203. package/types/algorand-client.js.map +1 -1
  204. package/types/algorand-client.mjs +3 -319
  205. package/types/algorand-client.mjs.map +1 -1
  206. package/types/amount.d.ts +6 -45
  207. package/types/amount.js +3 -79
  208. package/types/amount.js.map +1 -1
  209. package/types/amount.mjs +4 -79
  210. package/types/amount.mjs.map +1 -1
  211. package/types/app-client.d.ts +75 -2125
  212. package/types/app-client.js +3 -903
  213. package/types/app-client.js.map +1 -1
  214. package/types/app-client.mjs +3 -902
  215. package/types/app-client.mjs.map +1 -1
  216. package/types/app-deployer.d.ts +21 -161
  217. package/types/app-deployer.js +3 -347
  218. package/types/app-deployer.js.map +1 -1
  219. package/types/app-deployer.mjs +3 -347
  220. package/types/app-deployer.mjs.map +1 -1
  221. package/types/app-factory.d.ts +21 -960
  222. package/types/app-factory.js +3 -442
  223. package/types/app-factory.js.map +1 -1
  224. package/types/app-factory.mjs +3 -442
  225. package/types/app-factory.mjs.map +1 -1
  226. package/types/app-manager.d.ts +15 -318
  227. package/types/app-manager.js +3 -462
  228. package/types/app-manager.js.map +1 -1
  229. package/types/app-manager.mjs +3 -462
  230. package/types/app-manager.mjs.map +1 -1
  231. package/types/app-spec.d.ts +39 -198
  232. package/types/app-spec.js +3 -131
  233. package/types/app-spec.js.map +1 -1
  234. package/types/app-spec.mjs +3 -131
  235. package/types/app-spec.mjs.map +1 -1
  236. package/types/app.d.ts +62 -247
  237. package/types/app.js +15 -37
  238. package/types/app.js.map +1 -1
  239. package/types/app.mjs +16 -37
  240. package/types/app.mjs.map +1 -1
  241. package/types/asset-manager.d.ts +9 -207
  242. package/types/asset-manager.js +3 -160
  243. package/types/asset-manager.js.map +1 -1
  244. package/types/asset-manager.mjs +3 -160
  245. package/types/asset-manager.mjs.map +1 -1
  246. package/types/async-event-emitter.d.ts +7 -11
  247. package/types/async-event-emitter.js +3 -32
  248. package/types/async-event-emitter.js.map +1 -1
  249. package/types/async-event-emitter.mjs +4 -32
  250. package/types/async-event-emitter.mjs.map +1 -1
  251. package/types/client-manager.d.ts +27 -470
  252. package/types/client-manager.js +3 -610
  253. package/types/client-manager.js.map +1 -1
  254. package/types/client-manager.mjs +3 -610
  255. package/types/client-manager.mjs.map +1 -1
  256. package/types/composer.d.ts +79 -943
  257. package/types/composer.js +3 -1578
  258. package/types/composer.js.map +1 -1
  259. package/types/composer.mjs +3 -1577
  260. package/types/composer.mjs.map +1 -1
  261. package/types/config.d.ts +7 -52
  262. package/types/config.js +3 -74
  263. package/types/config.js.map +1 -1
  264. package/types/config.mjs +3 -74
  265. package/types/config.mjs.map +1 -1
  266. package/types/debugging.d.ts +12 -37
  267. package/types/debugging.js +11 -10
  268. package/types/debugging.js.map +1 -1
  269. package/types/debugging.mjs +12 -10
  270. package/types/debugging.mjs.map +1 -1
  271. package/types/dispenser-client.d.ts +11 -85
  272. package/types/dispenser-client.js +3 -121
  273. package/types/dispenser-client.js.map +1 -1
  274. package/types/dispenser-client.mjs +3 -121
  275. package/types/dispenser-client.mjs.map +1 -1
  276. package/types/expand.d.ts +8 -2
  277. package/types/indexer.d.ts +16 -36
  278. package/types/indexer.js +7 -30
  279. package/types/indexer.js.map +1 -1
  280. package/types/indexer.mjs +8 -30
  281. package/types/indexer.mjs.map +1 -1
  282. package/types/instance-of.d.ts +4 -4
  283. package/types/kmd-account-manager.d.ts +5 -69
  284. package/types/kmd-account-manager.js +3 -161
  285. package/types/kmd-account-manager.js.map +1 -1
  286. package/types/kmd-account-manager.mjs +3 -159
  287. package/types/kmd-account-manager.mjs.map +1 -1
  288. package/types/lifecycle-events.d.ts +7 -9
  289. package/types/lifecycle-events.js +3 -5
  290. package/types/lifecycle-events.js.map +1 -1
  291. package/types/lifecycle-events.mjs +4 -5
  292. package/types/lifecycle-events.mjs.map +1 -1
  293. package/types/logging.d.ts +14 -9
  294. package/types/logging.js +11 -37
  295. package/types/logging.js.map +1 -1
  296. package/types/logging.mjs +12 -37
  297. package/types/logging.mjs.map +1 -1
  298. package/types/logic-error.d.ts +8 -35
  299. package/types/logic-error.js +3 -48
  300. package/types/logic-error.js.map +1 -1
  301. package/types/logic-error.mjs +4 -48
  302. package/types/logic-error.mjs.map +1 -1
  303. package/types/network-client.d.ts +10 -39
  304. package/types/network-client.js +3 -8
  305. package/types/network-client.js.map +1 -1
  306. package/types/network-client.mjs +4 -8
  307. package/types/network-client.mjs.map +1 -1
  308. package/types/testing.d.ts +13 -151
  309. package/types/transaction.d.ts +33 -128
  310. package/updatable-config.d.ts +57 -0
  311. package/updatable-config.js +80 -0
  312. package/updatable-config.js.map +1 -0
  313. package/updatable-config.mjs +80 -0
  314. package/updatable-config.mjs.map +1 -0
  315. package/util.js +1 -1
  316. package/util.js.map +1 -1
  317. package/util.mjs +1 -1
  318. package/util.mjs.map +1 -1
@@ -1,13 +1,18 @@
1
- import { Logger } from "../packages/common/src/logger.js";
1
+ import { Logger as Logger$1 } from "../packages/common/src/logger.js";
2
2
 
3
3
  //#region src/types/logging.d.ts
4
- /** A logger implementation that writes to console */
5
- declare const consoleLogger: Logger;
6
- declare const infoConsoleLogger: Logger;
7
- declare const verboseConsoleLogger: Logger;
8
- declare const warningConsoleLogger: Logger;
9
- /** A logger implementation that does nothing */
10
- declare const nullLogger: Logger;
4
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */
5
+ type Logger = Logger$1;
6
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */
7
+ declare const consoleLogger: Logger$1;
8
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */
9
+ declare const infoConsoleLogger: Logger$1;
10
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */
11
+ declare const verboseConsoleLogger: Logger$1;
12
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */
13
+ declare const warningConsoleLogger: Logger$1;
14
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */
15
+ declare const nullLogger: Logger$1;
11
16
  //#endregion
12
- export { type Logger, consoleLogger, infoConsoleLogger, nullLogger, verboseConsoleLogger, warningConsoleLogger };
17
+ export { Logger, consoleLogger, infoConsoleLogger, nullLogger, verboseConsoleLogger, warningConsoleLogger };
13
18
  //# sourceMappingURL=logging.d.ts.map
package/types/logging.js CHANGED
@@ -1,42 +1,16 @@
1
+ const require_logging = require('../logging.js');
1
2
 
2
3
  //#region src/types/logging.ts
3
- /** A logger implementation that writes to console */
4
- const consoleLogger = {
5
- error: console.error,
6
- warn: console.warn,
7
- info: console.info,
8
- verbose: () => {},
9
- debug: console.debug
10
- };
11
- const infoConsoleLogger = {
12
- error: console.error,
13
- warn: console.warn,
14
- info: console.info,
15
- verbose: () => {},
16
- debug: () => {}
17
- };
18
- const verboseConsoleLogger = {
19
- error: console.error,
20
- warn: console.warn,
21
- info: console.info,
22
- verbose: console.trace,
23
- debug: console.debug
24
- };
25
- const warningConsoleLogger = {
26
- error: console.error,
27
- warn: console.warn,
28
- info: () => {},
29
- verbose: () => {},
30
- debug: () => {}
31
- };
32
- /** A logger implementation that does nothing */
33
- const nullLogger = {
34
- error: function(message, ...optionalParams) {},
35
- warn: function(message, ...optionalParams) {},
36
- info: function(message, ...optionalParams) {},
37
- verbose: function(message, ...optionalParams) {},
38
- debug: function(message, ...optionalParams) {}
39
- };
4
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */
5
+ const consoleLogger = require_logging.consoleLogger;
6
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */
7
+ const infoConsoleLogger = require_logging.infoConsoleLogger;
8
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */
9
+ const verboseConsoleLogger = require_logging.verboseConsoleLogger;
10
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */
11
+ const warningConsoleLogger = require_logging.warningConsoleLogger;
12
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */
13
+ const nullLogger = require_logging.nullLogger;
40
14
 
41
15
  //#endregion
42
16
  exports.consoleLogger = consoleLogger;
@@ -1 +1 @@
1
- {"version":3,"file":"logging.js","names":["consoleLogger: Logger","infoConsoleLogger: Logger","verboseConsoleLogger: Logger","warningConsoleLogger: Logger","nullLogger: Logger"],"sources":["../../src/types/logging.ts"],"sourcesContent":["/* eslint-disable unused-imports/no-unused-vars */\n/* eslint-disable no-console */\n\nimport type { Logger } from '@algorandfoundation/algokit-common'\nexport type { Logger } from '@algorandfoundation/algokit-common'\n\n/** A logger implementation that writes to console */\nexport const consoleLogger: Logger = {\n error: console.error,\n warn: console.warn,\n info: console.info,\n verbose: () => {},\n debug: console.debug,\n}\n\nexport const infoConsoleLogger: Logger = {\n error: console.error,\n warn: console.warn,\n info: console.info,\n verbose: () => {},\n debug: () => {},\n}\n\nexport const verboseConsoleLogger: Logger = {\n error: console.error,\n warn: console.warn,\n info: console.info,\n verbose: console.trace,\n debug: console.debug,\n}\n\nexport const warningConsoleLogger: Logger = {\n error: console.error,\n warn: console.warn,\n info: () => {},\n verbose: () => {},\n debug: () => {},\n}\n\n/** A logger implementation that does nothing */\nexport const nullLogger: Logger = {\n error: function (message: string, ...optionalParams: unknown[]): void {},\n warn: function (message: string, ...optionalParams: unknown[]): void {},\n info: function (message: string, ...optionalParams: unknown[]): void {},\n verbose: function (message: string, ...optionalParams: unknown[]): void {},\n debug: function (message: string, ...optionalParams: unknown[]): void {},\n}\n"],"mappings":";;;AAOA,MAAaA,gBAAwB;CACnC,OAAO,QAAQ;CACf,MAAM,QAAQ;CACd,MAAM,QAAQ;CACd,eAAe;CACf,OAAO,QAAQ;CAChB;AAED,MAAaC,oBAA4B;CACvC,OAAO,QAAQ;CACf,MAAM,QAAQ;CACd,MAAM,QAAQ;CACd,eAAe;CACf,aAAa;CACd;AAED,MAAaC,uBAA+B;CAC1C,OAAO,QAAQ;CACf,MAAM,QAAQ;CACd,MAAM,QAAQ;CACd,SAAS,QAAQ;CACjB,OAAO,QAAQ;CAChB;AAED,MAAaC,uBAA+B;CAC1C,OAAO,QAAQ;CACf,MAAM,QAAQ;CACd,YAAY;CACZ,eAAe;CACf,aAAa;CACd;;AAGD,MAAaC,aAAqB;CAChC,OAAO,SAAU,SAAiB,GAAG,gBAAiC;CACtE,MAAM,SAAU,SAAiB,GAAG,gBAAiC;CACrE,MAAM,SAAU,SAAiB,GAAG,gBAAiC;CACrE,SAAS,SAAU,SAAiB,GAAG,gBAAiC;CACxE,OAAO,SAAU,SAAiB,GAAG,gBAAiC;CACvE"}
1
+ {"version":3,"file":"logging.js","names":["_consoleLogger","_infoConsoleLogger","_verboseConsoleLogger","_warningConsoleLogger","_nullLogger"],"sources":["../../src/types/logging.ts"],"sourcesContent":["// Re-exports with deprecation notices for backwards compatibility\n// New imports should use '@algorandfoundation/algokit-utils/logging'\n\nimport {\n type Logger as _Logger,\n consoleLogger as _consoleLogger,\n infoConsoleLogger as _infoConsoleLogger,\n verboseConsoleLogger as _verboseConsoleLogger,\n warningConsoleLogger as _warningConsoleLogger,\n nullLogger as _nullLogger,\n} from '../logging'\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */\nexport type Logger = _Logger\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */\nexport const consoleLogger = _consoleLogger\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */\nexport const infoConsoleLogger = _infoConsoleLogger\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */\nexport const verboseConsoleLogger = _verboseConsoleLogger\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */\nexport const warningConsoleLogger = _warningConsoleLogger\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */\nexport const nullLogger = _nullLogger\n"],"mappings":";;;;AAgBA,MAAa,gBAAgBA;;AAG7B,MAAa,oBAAoBC;;AAGjC,MAAa,uBAAuBC;;AAGpC,MAAa,uBAAuBC;;AAGpC,MAAa,aAAaC"}
package/types/logging.mjs CHANGED
@@ -1,41 +1,16 @@
1
+ import { consoleLogger as consoleLogger$1, infoConsoleLogger as infoConsoleLogger$1, nullLogger as nullLogger$1, verboseConsoleLogger as verboseConsoleLogger$1, warningConsoleLogger as warningConsoleLogger$1 } from "../logging.mjs";
2
+
1
3
  //#region src/types/logging.ts
2
- /** A logger implementation that writes to console */
3
- const consoleLogger = {
4
- error: console.error,
5
- warn: console.warn,
6
- info: console.info,
7
- verbose: () => {},
8
- debug: console.debug
9
- };
10
- const infoConsoleLogger = {
11
- error: console.error,
12
- warn: console.warn,
13
- info: console.info,
14
- verbose: () => {},
15
- debug: () => {}
16
- };
17
- const verboseConsoleLogger = {
18
- error: console.error,
19
- warn: console.warn,
20
- info: console.info,
21
- verbose: console.trace,
22
- debug: console.debug
23
- };
24
- const warningConsoleLogger = {
25
- error: console.error,
26
- warn: console.warn,
27
- info: () => {},
28
- verbose: () => {},
29
- debug: () => {}
30
- };
31
- /** A logger implementation that does nothing */
32
- const nullLogger = {
33
- error: function(message, ...optionalParams) {},
34
- warn: function(message, ...optionalParams) {},
35
- info: function(message, ...optionalParams) {},
36
- verbose: function(message, ...optionalParams) {},
37
- debug: function(message, ...optionalParams) {}
38
- };
4
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */
5
+ const consoleLogger = consoleLogger$1;
6
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */
7
+ const infoConsoleLogger = infoConsoleLogger$1;
8
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */
9
+ const verboseConsoleLogger = verboseConsoleLogger$1;
10
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */
11
+ const warningConsoleLogger = warningConsoleLogger$1;
12
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */
13
+ const nullLogger = nullLogger$1;
39
14
 
40
15
  //#endregion
41
16
  export { consoleLogger, infoConsoleLogger, nullLogger, verboseConsoleLogger, warningConsoleLogger };
@@ -1 +1 @@
1
- {"version":3,"file":"logging.mjs","names":["consoleLogger: Logger","infoConsoleLogger: Logger","verboseConsoleLogger: Logger","warningConsoleLogger: Logger","nullLogger: Logger"],"sources":["../../src/types/logging.ts"],"sourcesContent":["/* eslint-disable unused-imports/no-unused-vars */\n/* eslint-disable no-console */\n\nimport type { Logger } from '@algorandfoundation/algokit-common'\nexport type { Logger } from '@algorandfoundation/algokit-common'\n\n/** A logger implementation that writes to console */\nexport const consoleLogger: Logger = {\n error: console.error,\n warn: console.warn,\n info: console.info,\n verbose: () => {},\n debug: console.debug,\n}\n\nexport const infoConsoleLogger: Logger = {\n error: console.error,\n warn: console.warn,\n info: console.info,\n verbose: () => {},\n debug: () => {},\n}\n\nexport const verboseConsoleLogger: Logger = {\n error: console.error,\n warn: console.warn,\n info: console.info,\n verbose: console.trace,\n debug: console.debug,\n}\n\nexport const warningConsoleLogger: Logger = {\n error: console.error,\n warn: console.warn,\n info: () => {},\n verbose: () => {},\n debug: () => {},\n}\n\n/** A logger implementation that does nothing */\nexport const nullLogger: Logger = {\n error: function (message: string, ...optionalParams: unknown[]): void {},\n warn: function (message: string, ...optionalParams: unknown[]): void {},\n info: function (message: string, ...optionalParams: unknown[]): void {},\n verbose: function (message: string, ...optionalParams: unknown[]): void {},\n debug: function (message: string, ...optionalParams: unknown[]): void {},\n}\n"],"mappings":";;AAOA,MAAaA,gBAAwB;CACnC,OAAO,QAAQ;CACf,MAAM,QAAQ;CACd,MAAM,QAAQ;CACd,eAAe;CACf,OAAO,QAAQ;CAChB;AAED,MAAaC,oBAA4B;CACvC,OAAO,QAAQ;CACf,MAAM,QAAQ;CACd,MAAM,QAAQ;CACd,eAAe;CACf,aAAa;CACd;AAED,MAAaC,uBAA+B;CAC1C,OAAO,QAAQ;CACf,MAAM,QAAQ;CACd,MAAM,QAAQ;CACd,SAAS,QAAQ;CACjB,OAAO,QAAQ;CAChB;AAED,MAAaC,uBAA+B;CAC1C,OAAO,QAAQ;CACf,MAAM,QAAQ;CACd,YAAY;CACZ,eAAe;CACf,aAAa;CACd;;AAGD,MAAaC,aAAqB;CAChC,OAAO,SAAU,SAAiB,GAAG,gBAAiC;CACtE,MAAM,SAAU,SAAiB,GAAG,gBAAiC;CACrE,MAAM,SAAU,SAAiB,GAAG,gBAAiC;CACrE,SAAS,SAAU,SAAiB,GAAG,gBAAiC;CACxE,OAAO,SAAU,SAAiB,GAAG,gBAAiC;CACvE"}
1
+ {"version":3,"file":"logging.mjs","names":["_consoleLogger","_infoConsoleLogger","_verboseConsoleLogger","_warningConsoleLogger","_nullLogger"],"sources":["../../src/types/logging.ts"],"sourcesContent":["// Re-exports with deprecation notices for backwards compatibility\n// New imports should use '@algorandfoundation/algokit-utils/logging'\n\nimport {\n type Logger as _Logger,\n consoleLogger as _consoleLogger,\n infoConsoleLogger as _infoConsoleLogger,\n verboseConsoleLogger as _verboseConsoleLogger,\n warningConsoleLogger as _warningConsoleLogger,\n nullLogger as _nullLogger,\n} from '../logging'\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */\nexport type Logger = _Logger\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */\nexport const consoleLogger = _consoleLogger\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */\nexport const infoConsoleLogger = _infoConsoleLogger\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */\nexport const verboseConsoleLogger = _verboseConsoleLogger\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */\nexport const warningConsoleLogger = _warningConsoleLogger\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */\nexport const nullLogger = _nullLogger\n"],"mappings":";;;;AAgBA,MAAa,gBAAgBA;;AAG7B,MAAa,oBAAoBC;;AAGjC,MAAa,uBAAuBC;;AAGpC,MAAa,uBAAuBC;;AAGpC,MAAa,aAAaC"}
@@ -1,39 +1,12 @@
1
+ import { LogicError as LogicError$1, LogicErrorDetails as LogicErrorDetails$1 } from "../logic-error.js";
2
+
1
3
  //#region src/types/logic-error.d.ts
2
- /**
3
- * Details about a smart contract logic error
4
- */
5
- interface LogicErrorDetails {
6
- /** The ID of the transaction with the logic error */
7
- txId: string;
8
- /** The program counter where the error was */
9
- pc: number;
10
- /** The error message */
11
- msg: string;
12
- /** The full error description */
13
- desc: string;
14
- /** Any trace information included in the error */
15
- traces: Record<string, unknown>[];
16
- }
17
- /** Wraps key functionality around processing logic errors */
18
- declare class LogicError extends Error {
19
- /** Takes an error message and parses out the details of any logic errors in there.
20
- * @param error The error message to parse
21
- * @returns The logic error details if any, or undefined
22
- */
23
- static parseLogicError(error: any): LogicErrorDetails | undefined;
24
- led: LogicErrorDetails;
25
- program: string[];
26
- lines: number;
27
- teal_line: number;
28
- stack?: string;
29
- /**
30
- * Create a new logic error object.
31
- * @param errorDetails The details of the logic error
32
- * @param program The TEAL source code, split by line
33
- * @param getLineForPc The source map of the TEAL source code
34
- */
35
- constructor(errorDetails: LogicErrorDetails, program: string[], getLineForPc: (pc: number) => number | undefined);
36
- }
4
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/logic-error` instead */
5
+ type LogicErrorDetails = LogicErrorDetails$1;
6
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/logic-error` instead */
7
+ declare const LogicError: typeof LogicError$1;
8
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/logic-error` instead */
9
+ type LogicError = LogicError$1;
37
10
  //#endregion
38
11
  export { LogicError, LogicErrorDetails };
39
12
  //# sourceMappingURL=logic-error.d.ts.map
@@ -1,53 +1,8 @@
1
+ const require_logic_error = require('../logic-error.js');
1
2
 
2
3
  //#region src/types/logic-error.ts
3
- const LOGIC_ERROR = /transaction ([A-Z0-9]+): logic eval error: (.*). Details: .*pc=([0-9]+).*/;
4
- const INNER_LOGIC_ERROR = /inner tx (\d+) failed:.*?pc=([0-9]+)/;
5
- /** Wraps key functionality around processing logic errors */
6
- var LogicError = class extends Error {
7
- /** Takes an error message and parses out the details of any logic errors in there.
8
- * @param error The error message to parse
9
- * @returns The logic error details if any, or undefined
10
- */
11
- static parseLogicError(error) {
12
- const errorMessage = error.message;
13
- const res = LOGIC_ERROR.exec(errorMessage);
14
- const innerRes = INNER_LOGIC_ERROR.exec(errorMessage);
15
- if (res === null || res.length <= 3) return void 0;
16
- return {
17
- txId: res[1],
18
- msg: res[2],
19
- desc: errorMessage,
20
- pc: parseInt(innerRes?.[2] ?? res[3] ?? "0"),
21
- traces: error.traces
22
- };
23
- }
24
- led;
25
- program;
26
- lines = 5;
27
- teal_line = 0;
28
- stack;
29
- /**
30
- * Create a new logic error object.
31
- * @param errorDetails The details of the logic error
32
- * @param program The TEAL source code, split by line
33
- * @param getLineForPc The source map of the TEAL source code
34
- */
35
- constructor(errorDetails, program, getLineForPc) {
36
- super();
37
- this.led = errorDetails;
38
- this.program = program;
39
- const line = getLineForPc(errorDetails.pc);
40
- this.teal_line = line === void 0 ? 0 : line;
41
- this.message = `${this.led.msg}. at:${line}. ${this.led.desc}`;
42
- if (this.teal_line > 0) {
43
- const start = this.teal_line > this.lines ? this.teal_line - this.lines : 0;
44
- const stop = program.length > this.teal_line + this.lines ? this.teal_line + this.lines : program.length;
45
- const stack_lines = program.slice(start, stop);
46
- stack_lines[stack_lines.length / 2] += " <--- Error";
47
- this.stack = stack_lines.join("\n");
48
- }
49
- }
50
- };
4
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/logic-error` instead */
5
+ const LogicError = require_logic_error.LogicError;
51
6
 
52
7
  //#endregion
53
8
  exports.LogicError = LogicError;
@@ -1 +1 @@
1
- {"version":3,"file":"logic-error.js","names":[],"sources":["../../src/types/logic-error.ts"],"sourcesContent":["const LOGIC_ERROR = /transaction ([A-Z0-9]+): logic eval error: (.*). Details: .*pc=([0-9]+).*/\n// inner tx 0 failed: logic eval error: err opcode executed. Details: app=6248, pc=29, opcodes=tx\nconst INNER_LOGIC_ERROR = /inner tx (\\d+) failed:.*?pc=([0-9]+)/\n\n/**\n * Details about a smart contract logic error\n */\nexport interface LogicErrorDetails {\n /** The ID of the transaction with the logic error */\n txId: string\n /** The program counter where the error was */\n pc: number\n /** The error message */\n msg: string\n /** The full error description */\n desc: string\n /** Any trace information included in the error */\n traces: Record<string, unknown>[]\n}\n\n/** Wraps key functionality around processing logic errors */\nexport class LogicError extends Error {\n /** Takes an error message and parses out the details of any logic errors in there.\n * @param error The error message to parse\n * @returns The logic error details if any, or undefined\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n static parseLogicError(error: any): LogicErrorDetails | undefined {\n const errorMessage = error.message\n const res = LOGIC_ERROR.exec(errorMessage)\n const innerRes = INNER_LOGIC_ERROR.exec(errorMessage)\n\n if (res === null || res.length <= 3) return undefined\n\n return {\n txId: res[1],\n msg: res[2],\n desc: errorMessage,\n pc: parseInt(innerRes?.[2] ?? res[3] ?? '0'),\n traces: error.traces,\n } as LogicErrorDetails\n }\n\n public led: LogicErrorDetails\n public program: string[]\n public lines = 5\n public teal_line = 0\n override stack?: string\n\n /**\n * Create a new logic error object.\n * @param errorDetails The details of the logic error\n * @param program The TEAL source code, split by line\n * @param getLineForPc The source map of the TEAL source code\n */\n constructor(errorDetails: LogicErrorDetails, program: string[], getLineForPc: (pc: number) => number | undefined) {\n super()\n this.led = errorDetails\n this.program = program\n\n const line = getLineForPc(errorDetails.pc)\n this.teal_line = line === undefined ? 0 : line\n\n this.message = `${this.led.msg}. at:${line}. ${this.led.desc}`\n\n if (this.teal_line > 0) {\n const start = this.teal_line > this.lines ? this.teal_line - this.lines : 0\n const stop = program.length > this.teal_line + this.lines ? this.teal_line + this.lines : program.length\n\n const stack_lines = program.slice(start, stop)\n\n stack_lines[stack_lines.length / 2] += ' <--- Error'\n\n this.stack = stack_lines.join('\\n')\n }\n }\n}\n"],"mappings":";;AAAA,MAAM,cAAc;AAEpB,MAAM,oBAAoB;;AAmB1B,IAAa,aAAb,cAAgC,MAAM;;;;;CAMpC,OAAO,gBAAgB,OAA2C;EAChE,MAAM,eAAe,MAAM;EAC3B,MAAM,MAAM,YAAY,KAAK,aAAa;EAC1C,MAAM,WAAW,kBAAkB,KAAK,aAAa;AAErD,MAAI,QAAQ,QAAQ,IAAI,UAAU,EAAG,QAAO;AAE5C,SAAO;GACL,MAAM,IAAI;GACV,KAAK,IAAI;GACT,MAAM;GACN,IAAI,SAAS,WAAW,MAAM,IAAI,MAAM,IAAI;GAC5C,QAAQ,MAAM;GACf;;CAGH,AAAO;CACP,AAAO;CACP,AAAO,QAAQ;CACf,AAAO,YAAY;CACnB,AAAS;;;;;;;CAQT,YAAY,cAAiC,SAAmB,cAAkD;AAChH,SAAO;AACP,OAAK,MAAM;AACX,OAAK,UAAU;EAEf,MAAM,OAAO,aAAa,aAAa,GAAG;AAC1C,OAAK,YAAY,SAAS,SAAY,IAAI;AAE1C,OAAK,UAAU,GAAG,KAAK,IAAI,IAAI,OAAO,KAAK,IAAI,KAAK,IAAI;AAExD,MAAI,KAAK,YAAY,GAAG;GACtB,MAAM,QAAQ,KAAK,YAAY,KAAK,QAAQ,KAAK,YAAY,KAAK,QAAQ;GAC1E,MAAM,OAAO,QAAQ,SAAS,KAAK,YAAY,KAAK,QAAQ,KAAK,YAAY,KAAK,QAAQ,QAAQ;GAElG,MAAM,cAAc,QAAQ,MAAM,OAAO,KAAK;AAE9C,eAAY,YAAY,SAAS,MAAM;AAEvC,QAAK,QAAQ,YAAY,KAAK,KAAK"}
1
+ {"version":3,"file":"logic-error.js","names":["_LogicError"],"sources":["../../src/types/logic-error.ts"],"sourcesContent":["// Re-exports with deprecation notices for backwards compatibility\n// New imports should use '@algorandfoundation/algokit-utils/logic-error'\n\nimport {\n type LogicErrorDetails as _LogicErrorDetails,\n LogicError as _LogicError,\n} from '../logic-error'\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/logic-error` instead */\nexport type LogicErrorDetails = _LogicErrorDetails\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/logic-error` instead */\nexport const LogicError = _LogicError\n/** @deprecated Import from `@algorandfoundation/algokit-utils/logic-error` instead */\nexport type LogicError = _LogicError\n"],"mappings":";;;;AAYA,MAAa,aAAaA"}
@@ -1,52 +1,8 @@
1
+ import { LogicError as LogicError$1 } from "../logic-error.mjs";
2
+
1
3
  //#region src/types/logic-error.ts
2
- const LOGIC_ERROR = /transaction ([A-Z0-9]+): logic eval error: (.*). Details: .*pc=([0-9]+).*/;
3
- const INNER_LOGIC_ERROR = /inner tx (\d+) failed:.*?pc=([0-9]+)/;
4
- /** Wraps key functionality around processing logic errors */
5
- var LogicError = class extends Error {
6
- /** Takes an error message and parses out the details of any logic errors in there.
7
- * @param error The error message to parse
8
- * @returns The logic error details if any, or undefined
9
- */
10
- static parseLogicError(error) {
11
- const errorMessage = error.message;
12
- const res = LOGIC_ERROR.exec(errorMessage);
13
- const innerRes = INNER_LOGIC_ERROR.exec(errorMessage);
14
- if (res === null || res.length <= 3) return void 0;
15
- return {
16
- txId: res[1],
17
- msg: res[2],
18
- desc: errorMessage,
19
- pc: parseInt(innerRes?.[2] ?? res[3] ?? "0"),
20
- traces: error.traces
21
- };
22
- }
23
- led;
24
- program;
25
- lines = 5;
26
- teal_line = 0;
27
- stack;
28
- /**
29
- * Create a new logic error object.
30
- * @param errorDetails The details of the logic error
31
- * @param program The TEAL source code, split by line
32
- * @param getLineForPc The source map of the TEAL source code
33
- */
34
- constructor(errorDetails, program, getLineForPc) {
35
- super();
36
- this.led = errorDetails;
37
- this.program = program;
38
- const line = getLineForPc(errorDetails.pc);
39
- this.teal_line = line === void 0 ? 0 : line;
40
- this.message = `${this.led.msg}. at:${line}. ${this.led.desc}`;
41
- if (this.teal_line > 0) {
42
- const start = this.teal_line > this.lines ? this.teal_line - this.lines : 0;
43
- const stop = program.length > this.teal_line + this.lines ? this.teal_line + this.lines : program.length;
44
- const stack_lines = program.slice(start, stop);
45
- stack_lines[stack_lines.length / 2] += " <--- Error";
46
- this.stack = stack_lines.join("\n");
47
- }
48
- }
49
- };
4
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/logic-error` instead */
5
+ const LogicError = LogicError$1;
50
6
 
51
7
  //#endregion
52
8
  export { LogicError };
@@ -1 +1 @@
1
- {"version":3,"file":"logic-error.mjs","names":[],"sources":["../../src/types/logic-error.ts"],"sourcesContent":["const LOGIC_ERROR = /transaction ([A-Z0-9]+): logic eval error: (.*). Details: .*pc=([0-9]+).*/\n// inner tx 0 failed: logic eval error: err opcode executed. Details: app=6248, pc=29, opcodes=tx\nconst INNER_LOGIC_ERROR = /inner tx (\\d+) failed:.*?pc=([0-9]+)/\n\n/**\n * Details about a smart contract logic error\n */\nexport interface LogicErrorDetails {\n /** The ID of the transaction with the logic error */\n txId: string\n /** The program counter where the error was */\n pc: number\n /** The error message */\n msg: string\n /** The full error description */\n desc: string\n /** Any trace information included in the error */\n traces: Record<string, unknown>[]\n}\n\n/** Wraps key functionality around processing logic errors */\nexport class LogicError extends Error {\n /** Takes an error message and parses out the details of any logic errors in there.\n * @param error The error message to parse\n * @returns The logic error details if any, or undefined\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n static parseLogicError(error: any): LogicErrorDetails | undefined {\n const errorMessage = error.message\n const res = LOGIC_ERROR.exec(errorMessage)\n const innerRes = INNER_LOGIC_ERROR.exec(errorMessage)\n\n if (res === null || res.length <= 3) return undefined\n\n return {\n txId: res[1],\n msg: res[2],\n desc: errorMessage,\n pc: parseInt(innerRes?.[2] ?? res[3] ?? '0'),\n traces: error.traces,\n } as LogicErrorDetails\n }\n\n public led: LogicErrorDetails\n public program: string[]\n public lines = 5\n public teal_line = 0\n override stack?: string\n\n /**\n * Create a new logic error object.\n * @param errorDetails The details of the logic error\n * @param program The TEAL source code, split by line\n * @param getLineForPc The source map of the TEAL source code\n */\n constructor(errorDetails: LogicErrorDetails, program: string[], getLineForPc: (pc: number) => number | undefined) {\n super()\n this.led = errorDetails\n this.program = program\n\n const line = getLineForPc(errorDetails.pc)\n this.teal_line = line === undefined ? 0 : line\n\n this.message = `${this.led.msg}. at:${line}. ${this.led.desc}`\n\n if (this.teal_line > 0) {\n const start = this.teal_line > this.lines ? this.teal_line - this.lines : 0\n const stop = program.length > this.teal_line + this.lines ? this.teal_line + this.lines : program.length\n\n const stack_lines = program.slice(start, stop)\n\n stack_lines[stack_lines.length / 2] += ' <--- Error'\n\n this.stack = stack_lines.join('\\n')\n }\n }\n}\n"],"mappings":";AAAA,MAAM,cAAc;AAEpB,MAAM,oBAAoB;;AAmB1B,IAAa,aAAb,cAAgC,MAAM;;;;;CAMpC,OAAO,gBAAgB,OAA2C;EAChE,MAAM,eAAe,MAAM;EAC3B,MAAM,MAAM,YAAY,KAAK,aAAa;EAC1C,MAAM,WAAW,kBAAkB,KAAK,aAAa;AAErD,MAAI,QAAQ,QAAQ,IAAI,UAAU,EAAG,QAAO;AAE5C,SAAO;GACL,MAAM,IAAI;GACV,KAAK,IAAI;GACT,MAAM;GACN,IAAI,SAAS,WAAW,MAAM,IAAI,MAAM,IAAI;GAC5C,QAAQ,MAAM;GACf;;CAGH,AAAO;CACP,AAAO;CACP,AAAO,QAAQ;CACf,AAAO,YAAY;CACnB,AAAS;;;;;;;CAQT,YAAY,cAAiC,SAAmB,cAAkD;AAChH,SAAO;AACP,OAAK,MAAM;AACX,OAAK,UAAU;EAEf,MAAM,OAAO,aAAa,aAAa,GAAG;AAC1C,OAAK,YAAY,SAAS,SAAY,IAAI;AAE1C,OAAK,UAAU,GAAG,KAAK,IAAI,IAAI,OAAO,KAAK,IAAI,KAAK,IAAI;AAExD,MAAI,KAAK,YAAY,GAAG;GACtB,MAAM,QAAQ,KAAK,YAAY,KAAK,QAAQ,KAAK,YAAY,KAAK,QAAQ;GAC1E,MAAM,OAAO,QAAQ,SAAS,KAAK,YAAY,KAAK,QAAQ,KAAK,YAAY,KAAK,QAAQ,QAAQ;GAElG,MAAM,cAAc,QAAQ,MAAM,OAAO,KAAK;AAE9C,eAAY,YAAY,SAAS,MAAM;AAEvC,QAAK,QAAQ,YAAY,KAAK,KAAK"}
1
+ {"version":3,"file":"logic-error.mjs","names":["_LogicError"],"sources":["../../src/types/logic-error.ts"],"sourcesContent":["// Re-exports with deprecation notices for backwards compatibility\n// New imports should use '@algorandfoundation/algokit-utils/logic-error'\n\nimport {\n type LogicErrorDetails as _LogicErrorDetails,\n LogicError as _LogicError,\n} from '../logic-error'\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/logic-error` instead */\nexport type LogicErrorDetails = _LogicErrorDetails\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/logic-error` instead */\nexport const LogicError = _LogicError\n/** @deprecated Import from `@algorandfoundation/algokit-utils/logic-error` instead */\nexport type LogicError = _LogicError\n"],"mappings":";;;;AAYA,MAAa,aAAaA"}
@@ -1,43 +1,14 @@
1
+ import { AlgoClientConfig as AlgoClientConfig$1, AlgoConfig as AlgoConfig$1, NetworkDetails as NetworkDetails$1, genesisIdIsLocalNet as genesisIdIsLocalNet$1 } from "../network-client.js";
2
+
1
3
  //#region src/types/network-client.d.ts
2
- /** Config for an Algorand SDK client. */
3
- interface AlgoClientConfig {
4
- /** Base URL of the server e.g. http://localhost, https://testnet-api.algonode.cloud/, etc. */
5
- server: string;
6
- /** The port to use e.g. 4001, 443, etc. */
7
- port?: string | number;
8
- /** The token to use for API authentication (or undefined if none needed) - can be a string, or an object with the header key => value */
9
- token?: string | {
10
- [name: string]: string;
11
- };
12
- }
13
- /** Configuration for algod, indexer and kmd clients. */
14
- interface AlgoConfig {
15
- /** Algod client configuration */
16
- algodConfig: AlgoClientConfig;
17
- /** Indexer client configuration */
18
- indexerConfig?: AlgoClientConfig;
19
- /** Kmd configuration */
20
- kmdConfig?: AlgoClientConfig;
21
- }
22
- /** Details of the current network. */
23
- interface NetworkDetails {
24
- /** Whether or not the network is TestNet. */
25
- isTestNet: boolean;
26
- /** Whether or not the network is MainNet. */
27
- isMainNet: boolean;
28
- /** Whether or not the network is LocalNet. */
29
- isLocalNet: boolean;
30
- /** The genesis ID of the current network. */
31
- genesisId: string;
32
- /** The base64 genesis hash of the current network. */
33
- genesisHash: string;
34
- }
35
- /**
36
- * Returns true if the given network genesisId is associated with a LocalNet network.
37
- * @param genesisId The network genesis ID
38
- * @returns Whether the given genesis ID is associated with a LocalNet network
39
- */
40
- declare function genesisIdIsLocalNet(genesisId: string): boolean;
4
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/network-client` instead */
5
+ type AlgoClientConfig = AlgoClientConfig$1;
6
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/network-client` instead */
7
+ type AlgoConfig = AlgoConfig$1;
8
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/network-client` instead */
9
+ type NetworkDetails = NetworkDetails$1;
10
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/network-client` instead */
11
+ declare const genesisIdIsLocalNet: typeof genesisIdIsLocalNet$1;
41
12
  //#endregion
42
13
  export { AlgoClientConfig, AlgoConfig, NetworkDetails, genesisIdIsLocalNet };
43
14
  //# sourceMappingURL=network-client.d.ts.map
@@ -1,13 +1,8 @@
1
+ const require_network_client = require('../network-client.js');
1
2
 
2
3
  //#region src/types/network-client.ts
3
- /**
4
- * Returns true if the given network genesisId is associated with a LocalNet network.
5
- * @param genesisId The network genesis ID
6
- * @returns Whether the given genesis ID is associated with a LocalNet network
7
- */
8
- function genesisIdIsLocalNet(genesisId) {
9
- return genesisId === "devnet-v1" || genesisId === "sandnet-v1" || genesisId === "dockernet-v1";
10
- }
4
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/network-client` instead */
5
+ const genesisIdIsLocalNet = require_network_client.genesisIdIsLocalNet;
11
6
 
12
7
  //#endregion
13
8
  exports.genesisIdIsLocalNet = genesisIdIsLocalNet;
@@ -1 +1 @@
1
- {"version":3,"file":"network-client.js","names":[],"sources":["../../src/types/network-client.ts"],"sourcesContent":["/** Config for an Algorand SDK client. */\nexport interface AlgoClientConfig {\n /** Base URL of the server e.g. http://localhost, https://testnet-api.algonode.cloud/, etc. */\n server: string\n /** The port to use e.g. 4001, 443, etc. */\n port?: string | number\n /** The token to use for API authentication (or undefined if none needed) - can be a string, or an object with the header key => value */\n token?: string | { [name: string]: string }\n}\n\n/** Configuration for algod, indexer and kmd clients. */\nexport interface AlgoConfig {\n /** Algod client configuration */\n algodConfig: AlgoClientConfig\n /** Indexer client configuration */\n indexerConfig?: AlgoClientConfig\n /** Kmd configuration */\n kmdConfig?: AlgoClientConfig\n}\n\n/** Details of the current network. */\nexport interface NetworkDetails {\n /** Whether or not the network is TestNet. */\n isTestNet: boolean\n /** Whether or not the network is MainNet. */\n isMainNet: boolean\n /** Whether or not the network is LocalNet. */\n isLocalNet: boolean\n /** The genesis ID of the current network. */\n genesisId: string\n /** The base64 genesis hash of the current network. */\n genesisHash: string\n}\n\n/**\n * Returns true if the given network genesisId is associated with a LocalNet network.\n * @param genesisId The network genesis ID\n * @returns Whether the given genesis ID is associated with a LocalNet network\n */\nexport function genesisIdIsLocalNet(genesisId: string) {\n return genesisId === 'devnet-v1' || genesisId === 'sandnet-v1' || genesisId === 'dockernet-v1'\n}\n"],"mappings":";;;;;;;AAuCA,SAAgB,oBAAoB,WAAmB;AACrD,QAAO,cAAc,eAAe,cAAc,gBAAgB,cAAc"}
1
+ {"version":3,"file":"network-client.js","names":["_genesisIdIsLocalNet"],"sources":["../../src/types/network-client.ts"],"sourcesContent":["// Re-exports with deprecation notices for backwards compatibility\n// New imports should use '@algorandfoundation/algokit-utils/network-client'\n\nimport {\n type AlgoClientConfig as _AlgoClientConfig,\n type AlgoConfig as _AlgoConfig,\n type NetworkDetails as _NetworkDetails,\n genesisIdIsLocalNet as _genesisIdIsLocalNet,\n} from '../network-client'\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/network-client` instead */\nexport type AlgoClientConfig = _AlgoClientConfig\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/network-client` instead */\nexport type AlgoConfig = _AlgoConfig\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/network-client` instead */\nexport type NetworkDetails = _NetworkDetails\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/network-client` instead */\nexport const genesisIdIsLocalNet = _genesisIdIsLocalNet\n"],"mappings":";;;;AAoBA,MAAa,sBAAsBA"}
@@ -1,12 +1,8 @@
1
+ import { genesisIdIsLocalNet as genesisIdIsLocalNet$1 } from "../network-client.mjs";
2
+
1
3
  //#region src/types/network-client.ts
2
- /**
3
- * Returns true if the given network genesisId is associated with a LocalNet network.
4
- * @param genesisId The network genesis ID
5
- * @returns Whether the given genesis ID is associated with a LocalNet network
6
- */
7
- function genesisIdIsLocalNet(genesisId) {
8
- return genesisId === "devnet-v1" || genesisId === "sandnet-v1" || genesisId === "dockernet-v1";
9
- }
4
+ /** @deprecated Import from `@algorandfoundation/algokit-utils/network-client` instead */
5
+ const genesisIdIsLocalNet = genesisIdIsLocalNet$1;
10
6
 
11
7
  //#endregion
12
8
  export { genesisIdIsLocalNet };
@@ -1 +1 @@
1
- {"version":3,"file":"network-client.mjs","names":[],"sources":["../../src/types/network-client.ts"],"sourcesContent":["/** Config for an Algorand SDK client. */\nexport interface AlgoClientConfig {\n /** Base URL of the server e.g. http://localhost, https://testnet-api.algonode.cloud/, etc. */\n server: string\n /** The port to use e.g. 4001, 443, etc. */\n port?: string | number\n /** The token to use for API authentication (or undefined if none needed) - can be a string, or an object with the header key => value */\n token?: string | { [name: string]: string }\n}\n\n/** Configuration for algod, indexer and kmd clients. */\nexport interface AlgoConfig {\n /** Algod client configuration */\n algodConfig: AlgoClientConfig\n /** Indexer client configuration */\n indexerConfig?: AlgoClientConfig\n /** Kmd configuration */\n kmdConfig?: AlgoClientConfig\n}\n\n/** Details of the current network. */\nexport interface NetworkDetails {\n /** Whether or not the network is TestNet. */\n isTestNet: boolean\n /** Whether or not the network is MainNet. */\n isMainNet: boolean\n /** Whether or not the network is LocalNet. */\n isLocalNet: boolean\n /** The genesis ID of the current network. */\n genesisId: string\n /** The base64 genesis hash of the current network. */\n genesisHash: string\n}\n\n/**\n * Returns true if the given network genesisId is associated with a LocalNet network.\n * @param genesisId The network genesis ID\n * @returns Whether the given genesis ID is associated with a LocalNet network\n */\nexport function genesisIdIsLocalNet(genesisId: string) {\n return genesisId === 'devnet-v1' || genesisId === 'sandnet-v1' || genesisId === 'dockernet-v1'\n}\n"],"mappings":";;;;;;AAuCA,SAAgB,oBAAoB,WAAmB;AACrD,QAAO,cAAc,eAAe,cAAc,gBAAgB,cAAc"}
1
+ {"version":3,"file":"network-client.mjs","names":["_genesisIdIsLocalNet"],"sources":["../../src/types/network-client.ts"],"sourcesContent":["// Re-exports with deprecation notices for backwards compatibility\n// New imports should use '@algorandfoundation/algokit-utils/network-client'\n\nimport {\n type AlgoClientConfig as _AlgoClientConfig,\n type AlgoConfig as _AlgoConfig,\n type NetworkDetails as _NetworkDetails,\n genesisIdIsLocalNet as _genesisIdIsLocalNet,\n} from '../network-client'\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/network-client` instead */\nexport type AlgoClientConfig = _AlgoClientConfig\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/network-client` instead */\nexport type AlgoConfig = _AlgoConfig\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/network-client` instead */\nexport type NetworkDetails = _NetworkDetails\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/network-client` instead */\nexport const genesisIdIsLocalNet = _genesisIdIsLocalNet\n"],"mappings":";;;;AAoBA,MAAa,sBAAsBA"}