@paimaexample/wallets 0.3.117

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 (700) hide show
  1. package/README.md +1 -0
  2. package/esm/chain-types/src/hash.d.ts +28 -0
  3. package/esm/chain-types/src/hash.d.ts.map +1 -0
  4. package/esm/chain-types/src/hash.js +29 -0
  5. package/esm/chain-types/src/mod.d.ts +3 -0
  6. package/esm/chain-types/src/mod.d.ts.map +1 -0
  7. package/esm/chain-types/src/mod.js +2 -0
  8. package/esm/chain-types/src/types.d.ts +70 -0
  9. package/esm/chain-types/src/types.d.ts.map +1 -0
  10. package/esm/chain-types/src/types.js +1 -0
  11. package/esm/concise/src/batcher.d.ts +40 -0
  12. package/esm/concise/src/batcher.d.ts.map +1 -0
  13. package/esm/concise/src/batcher.js +117 -0
  14. package/esm/concise/src/delegate.d.ts +18 -0
  15. package/esm/concise/src/delegate.d.ts.map +1 -0
  16. package/esm/concise/src/delegate.js +118 -0
  17. package/esm/concise/src/mod.d.ts +5 -0
  18. package/esm/concise/src/mod.d.ts.map +1 -0
  19. package/esm/concise/src/mod.js +3 -0
  20. package/esm/concise/src/v2/builtins/batcher.d.ts +27 -0
  21. package/esm/concise/src/v2/builtins/batcher.d.ts.map +1 -0
  22. package/esm/concise/src/v2/builtins/batcher.js +51 -0
  23. package/esm/concise/src/v2/builtins/grammar.d.ts +25 -0
  24. package/esm/concise/src/v2/builtins/grammar.d.ts.map +1 -0
  25. package/esm/concise/src/v2/builtins/grammar.js +40 -0
  26. package/esm/concise/src/v2/builtins/index.d.ts +3 -0
  27. package/esm/concise/src/v2/builtins/index.d.ts.map +1 -0
  28. package/esm/concise/src/v2/builtins/index.js +3 -0
  29. package/esm/concise/src/v2/grammar.d.ts +8 -0
  30. package/esm/concise/src/v2/grammar.d.ts.map +1 -0
  31. package/esm/concise/src/v2/grammar.js +19 -0
  32. package/esm/concise/src/v2/inputs.d.ts +7 -0
  33. package/esm/concise/src/v2/inputs.d.ts.map +1 -0
  34. package/esm/concise/src/v2/inputs.js +37 -0
  35. package/esm/concise/src/v2/mod.d.ts +5 -0
  36. package/esm/concise/src/v2/mod.d.ts.map +1 -0
  37. package/esm/concise/src/v2/mod.js +4 -0
  38. package/esm/concise/src/v2/types.d.ts +23 -0
  39. package/esm/concise/src/v2/types.d.ts.map +1 -0
  40. package/esm/concise/src/v2/types.js +1 -0
  41. package/esm/config/src/config/builder.d.ts +33 -0
  42. package/esm/config/src/config/builder.d.ts.map +1 -0
  43. package/esm/config/src/config/builder.js +82 -0
  44. package/esm/config/src/config/configCheck.d.ts +32 -0
  45. package/esm/config/src/config/configCheck.d.ts.map +1 -0
  46. package/esm/config/src/config/configCheck.js +67 -0
  47. package/esm/config/src/config/context.d.ts +23 -0
  48. package/esm/config/src/config/context.d.ts.map +1 -0
  49. package/esm/config/src/config/context.js +25 -0
  50. package/esm/config/src/config/mod.d.ts +7 -0
  51. package/esm/config/src/config/mod.d.ts.map +1 -0
  52. package/esm/config/src/config/mod.js +4 -0
  53. package/esm/config/src/config/parts/deployedAddresses.d.ts +17 -0
  54. package/esm/config/src/config/parts/deployedAddresses.d.ts.map +1 -0
  55. package/esm/config/src/config/parts/deployedAddresses.js +24 -0
  56. package/esm/config/src/config/parts/network.d.ts +19 -0
  57. package/esm/config/src/config/parts/network.d.ts.map +1 -0
  58. package/esm/config/src/config/parts/network.js +29 -0
  59. package/esm/config/src/config/parts/primitive.d.ts +31 -0
  60. package/esm/config/src/config/parts/primitive.d.ts.map +1 -0
  61. package/esm/config/src/config/parts/primitive.js +28 -0
  62. package/esm/config/src/config/parts/securityNamespace.d.ts +14 -0
  63. package/esm/config/src/config/parts/securityNamespace.d.ts.map +1 -0
  64. package/esm/config/src/config/parts/securityNamespace.js +26 -0
  65. package/esm/config/src/config/parts/syncProtocols.d.ts +43 -0
  66. package/esm/config/src/config/parts/syncProtocols.d.ts.map +1 -0
  67. package/esm/config/src/config/parts/syncProtocols.js +66 -0
  68. package/esm/config/src/config/utils.d.ts +40 -0
  69. package/esm/config/src/config/utils.d.ts.map +1 -0
  70. package/esm/config/src/config/utils.js +55 -0
  71. package/esm/config/src/mod.d.ts +3 -0
  72. package/esm/config/src/mod.d.ts.map +1 -0
  73. package/esm/config/src/mod.js +2 -0
  74. package/esm/config/src/schema/common.d.ts +26 -0
  75. package/esm/config/src/schema/common.d.ts.map +1 -0
  76. package/esm/config/src/schema/common.js +51 -0
  77. package/esm/config/src/schema/mod.d.ts +7 -0
  78. package/esm/config/src/schema/mod.d.ts.map +1 -0
  79. package/esm/config/src/schema/mod.js +6 -0
  80. package/esm/config/src/schema/namespace.d.ts +39 -0
  81. package/esm/config/src/schema/namespace.d.ts.map +1 -0
  82. package/esm/config/src/schema/namespace.js +34 -0
  83. package/esm/config/src/schema/network/algorand.d.ts +12 -0
  84. package/esm/config/src/schema/network/algorand.d.ts.map +1 -0
  85. package/esm/config/src/schema/network/algorand.js +23 -0
  86. package/esm/config/src/schema/network/all.d.ts +175 -0
  87. package/esm/config/src/schema/network/all.d.ts.map +1 -0
  88. package/esm/config/src/schema/network/all.js +24 -0
  89. package/esm/config/src/schema/network/bitcoin.d.ts +19 -0
  90. package/esm/config/src/schema/network/bitcoin.d.ts.map +1 -0
  91. package/esm/config/src/schema/network/bitcoin.js +21 -0
  92. package/esm/config/src/schema/network/cardano.d.ts +12 -0
  93. package/esm/config/src/schema/network/cardano.d.ts.map +1 -0
  94. package/esm/config/src/schema/network/cardano.js +27 -0
  95. package/esm/config/src/schema/network/evm.d.ts +68 -0
  96. package/esm/config/src/schema/network/evm.d.ts.map +1 -0
  97. package/esm/config/src/schema/network/evm.js +70 -0
  98. package/esm/config/src/schema/network/mina.d.ts +14 -0
  99. package/esm/config/src/schema/network/mina.d.ts.map +1 -0
  100. package/esm/config/src/schema/network/mina.js +25 -0
  101. package/esm/config/src/schema/network/mod.d.ts +9 -0
  102. package/esm/config/src/schema/network/mod.d.ts.map +1 -0
  103. package/esm/config/src/schema/network/mod.js +8 -0
  104. package/esm/config/src/schema/network/ntp.d.ts +32 -0
  105. package/esm/config/src/schema/network/ntp.d.ts.map +1 -0
  106. package/esm/config/src/schema/network/ntp.js +39 -0
  107. package/esm/config/src/schema/network/substrate/avail.d.ts +14 -0
  108. package/esm/config/src/schema/network/substrate/avail.d.ts.map +1 -0
  109. package/esm/config/src/schema/network/substrate/avail.js +26 -0
  110. package/esm/config/src/schema/network/substrate/common.d.ts +18 -0
  111. package/esm/config/src/schema/network/substrate/common.d.ts.map +1 -0
  112. package/esm/config/src/schema/network/substrate/common.js +32 -0
  113. package/esm/config/src/schema/network/substrate/midnight.d.ts +20 -0
  114. package/esm/config/src/schema/network/substrate/midnight.d.ts.map +1 -0
  115. package/esm/config/src/schema/network/substrate/midnight.js +32 -0
  116. package/esm/config/src/schema/network/substrate/mod.d.ts +4 -0
  117. package/esm/config/src/schema/network/substrate/mod.d.ts.map +1 -0
  118. package/esm/config/src/schema/network/substrate/mod.js +3 -0
  119. package/esm/config/src/schema/network/types.d.ts +13 -0
  120. package/esm/config/src/schema/network/types.d.ts.map +1 -0
  121. package/esm/config/src/schema/network/types.js +13 -0
  122. package/esm/config/src/schema/network/utils.d.ts +5 -0
  123. package/esm/config/src/schema/network/utils.d.ts.map +1 -0
  124. package/esm/config/src/schema/network/utils.js +73 -0
  125. package/esm/config/src/schema/primitive/mod.d.ts +2 -0
  126. package/esm/config/src/schema/primitive/mod.d.ts.map +1 -0
  127. package/esm/config/src/schema/primitive/mod.js +1 -0
  128. package/esm/config/src/schema/primitive/types.d.ts +58 -0
  129. package/esm/config/src/schema/primitive/types.d.ts.map +1 -0
  130. package/esm/config/src/schema/primitive/types.js +1 -0
  131. package/esm/config/src/schema/sync-protocols/all.d.ts +583 -0
  132. package/esm/config/src/schema/sync-protocols/all.d.ts.map +1 -0
  133. package/esm/config/src/schema/sync-protocols/all.js +55 -0
  134. package/esm/config/src/schema/sync-protocols/avail/rpc.d.ts +76 -0
  135. package/esm/config/src/schema/sync-protocols/avail/rpc.d.ts.map +1 -0
  136. package/esm/config/src/schema/sync-protocols/avail/rpc.js +56 -0
  137. package/esm/config/src/schema/sync-protocols/bitcoin/rpc.d.ts +76 -0
  138. package/esm/config/src/schema/sync-protocols/bitcoin/rpc.d.ts.map +1 -0
  139. package/esm/config/src/schema/sync-protocols/bitcoin/rpc.js +47 -0
  140. package/esm/config/src/schema/sync-protocols/cardano/carp.d.ts +80 -0
  141. package/esm/config/src/schema/sync-protocols/cardano/carp.d.ts.map +1 -0
  142. package/esm/config/src/schema/sync-protocols/cardano/carp.js +62 -0
  143. package/esm/config/src/schema/sync-protocols/cardano/mod.d.ts +2 -0
  144. package/esm/config/src/schema/sync-protocols/cardano/mod.d.ts.map +1 -0
  145. package/esm/config/src/schema/sync-protocols/cardano/mod.js +1 -0
  146. package/esm/config/src/schema/sync-protocols/cardano/utxorpc.d.ts +56 -0
  147. package/esm/config/src/schema/sync-protocols/cardano/utxorpc.d.ts.map +1 -0
  148. package/esm/config/src/schema/sync-protocols/cardano/utxorpc.js +56 -0
  149. package/esm/config/src/schema/sync-protocols/common.d.ts +60 -0
  150. package/esm/config/src/schema/sync-protocols/common.d.ts.map +1 -0
  151. package/esm/config/src/schema/sync-protocols/common.js +54 -0
  152. package/esm/config/src/schema/sync-protocols/decorators/all.d.ts +17 -0
  153. package/esm/config/src/schema/sync-protocols/decorators/all.d.ts.map +1 -0
  154. package/esm/config/src/schema/sync-protocols/decorators/all.js +8 -0
  155. package/esm/config/src/schema/sync-protocols/decorators/emulated.d.ts +8 -0
  156. package/esm/config/src/schema/sync-protocols/decorators/emulated.d.ts.map +1 -0
  157. package/esm/config/src/schema/sync-protocols/decorators/emulated.js +12 -0
  158. package/esm/config/src/schema/sync-protocols/decorators/mod.d.ts +4 -0
  159. package/esm/config/src/schema/sync-protocols/decorators/mod.d.ts.map +1 -0
  160. package/esm/config/src/schema/sync-protocols/decorators/mod.js +3 -0
  161. package/esm/config/src/schema/sync-protocols/decorators/types.d.ts +4 -0
  162. package/esm/config/src/schema/sync-protocols/decorators/types.d.ts.map +1 -0
  163. package/esm/config/src/schema/sync-protocols/decorators/types.js +4 -0
  164. package/esm/config/src/schema/sync-protocols/evm/rpc.d.ts +68 -0
  165. package/esm/config/src/schema/sync-protocols/evm/rpc.d.ts.map +1 -0
  166. package/esm/config/src/schema/sync-protocols/evm/rpc.js +44 -0
  167. package/esm/config/src/schema/sync-protocols/midnight/graphql.d.ts +66 -0
  168. package/esm/config/src/schema/sync-protocols/midnight/graphql.d.ts.map +1 -0
  169. package/esm/config/src/schema/sync-protocols/midnight/graphql.js +50 -0
  170. package/esm/config/src/schema/sync-protocols/mina/graphql.d.ts +73 -0
  171. package/esm/config/src/schema/sync-protocols/mina/graphql.d.ts.map +1 -0
  172. package/esm/config/src/schema/sync-protocols/mina/graphql.js +59 -0
  173. package/esm/config/src/schema/sync-protocols/mod.d.ts +10 -0
  174. package/esm/config/src/schema/sync-protocols/mod.d.ts.map +1 -0
  175. package/esm/config/src/schema/sync-protocols/mod.js +9 -0
  176. package/esm/config/src/schema/sync-protocols/ntp/rpc.d.ts +45 -0
  177. package/esm/config/src/schema/sync-protocols/ntp/rpc.d.ts.map +1 -0
  178. package/esm/config/src/schema/sync-protocols/ntp/rpc.js +33 -0
  179. package/esm/config/src/schema/sync-protocols/types.d.ts +125 -0
  180. package/esm/config/src/schema/sync-protocols/types.d.ts.map +1 -0
  181. package/esm/config/src/schema/sync-protocols/types.js +22 -0
  182. package/esm/config/src/schema/utils.d.ts +53 -0
  183. package/esm/config/src/schema/utils.d.ts.map +1 -0
  184. package/esm/config/src/schema/utils.js +58 -0
  185. package/esm/events/src/app-events.d.ts +65 -0
  186. package/esm/events/src/app-events.d.ts.map +1 -0
  187. package/esm/events/src/app-events.js +51 -0
  188. package/esm/events/src/asyncapi.d.ts +1173 -0
  189. package/esm/events/src/asyncapi.d.ts.map +1 -0
  190. package/esm/events/src/asyncapi.js +7 -0
  191. package/esm/events/src/builtin-event-utils.d.ts +5 -0
  192. package/esm/events/src/builtin-event-utils.d.ts.map +1 -0
  193. package/esm/events/src/builtin-event-utils.js +58 -0
  194. package/esm/events/src/builtin-events.d.ts +106 -0
  195. package/esm/events/src/builtin-events.d.ts.map +1 -0
  196. package/esm/events/src/builtin-events.js +198 -0
  197. package/esm/events/src/event-connect.d.ts +15 -0
  198. package/esm/events/src/event-connect.d.ts.map +1 -0
  199. package/esm/events/src/event-connect.js +75 -0
  200. package/esm/events/src/event-manager.d.ts +54 -0
  201. package/esm/events/src/event-manager.d.ts.map +1 -0
  202. package/esm/events/src/event-manager.js +129 -0
  203. package/esm/events/src/evm.d.ts +6 -0
  204. package/esm/events/src/evm.d.ts.map +1 -0
  205. package/esm/events/src/evm.js +55 -0
  206. package/esm/events/src/mod.d.ts +10 -0
  207. package/esm/events/src/mod.d.ts.map +1 -0
  208. package/esm/events/src/mod.js +9 -0
  209. package/esm/events/src/types.d.ts +255 -0
  210. package/esm/events/src/types.d.ts.map +1 -0
  211. package/esm/events/src/types.js +103 -0
  212. package/esm/events/src/utils.d.ts +16 -0
  213. package/esm/events/src/utils.d.ts.map +1 -0
  214. package/esm/events/src/utils.js +93 -0
  215. package/esm/package.json +3 -0
  216. package/esm/utils/src/binary-search.d.ts +7 -0
  217. package/esm/utils/src/binary-search.d.ts.map +1 -0
  218. package/esm/utils/src/binary-search.js +38 -0
  219. package/esm/utils/src/captcha.d.ts +9 -0
  220. package/esm/utils/src/captcha.d.ts.map +1 -0
  221. package/esm/utils/src/captcha.js +19 -0
  222. package/esm/utils/src/concurrency/condVar.d.ts +25 -0
  223. package/esm/utils/src/concurrency/condVar.d.ts.map +1 -0
  224. package/esm/utils/src/concurrency/condVar.js +39 -0
  225. package/esm/utils/src/concurrency/latch.d.ts +25 -0
  226. package/esm/utils/src/concurrency/latch.d.ts.map +1 -0
  227. package/esm/utils/src/concurrency/latch.js +51 -0
  228. package/esm/utils/src/concurrency/mod.d.ts +5 -0
  229. package/esm/utils/src/concurrency/mod.d.ts.map +1 -0
  230. package/esm/utils/src/concurrency/mod.js +4 -0
  231. package/esm/utils/src/concurrency/retry.d.ts +14 -0
  232. package/esm/utils/src/concurrency/retry.d.ts.map +1 -0
  233. package/esm/utils/src/concurrency/retry.js +26 -0
  234. package/esm/utils/src/concurrency/utils.d.ts +27 -0
  235. package/esm/utils/src/concurrency/utils.d.ts.map +1 -0
  236. package/esm/utils/src/concurrency/utils.js +27 -0
  237. package/esm/utils/src/constants.d.ts +4 -0
  238. package/esm/utils/src/constants.d.ts.map +1 -0
  239. package/esm/utils/src/constants.js +7 -0
  240. package/esm/utils/src/decorators/bound.d.ts +10 -0
  241. package/esm/utils/src/decorators/bound.d.ts.map +1 -0
  242. package/esm/utils/src/decorators/bound.js +17 -0
  243. package/esm/utils/src/decorators/mod.d.ts +2 -0
  244. package/esm/utils/src/decorators/mod.d.ts.map +1 -0
  245. package/esm/utils/src/decorators/mod.js +1 -0
  246. package/esm/utils/src/mod.d.ts +8 -0
  247. package/esm/utils/src/mod.d.ts.map +1 -0
  248. package/esm/utils/src/mod.js +7 -0
  249. package/esm/utils/src/types/json-query.d.ts +30 -0
  250. package/esm/utils/src/types/json-query.d.ts.map +1 -0
  251. package/esm/utils/src/types/json-query.js +1 -0
  252. package/esm/utils/src/types/misc.d.ts +109 -0
  253. package/esm/utils/src/types/misc.d.ts.map +1 -0
  254. package/esm/utils/src/types/misc.js +2 -0
  255. package/esm/utils/src/types/mod.d.ts +7 -0
  256. package/esm/utils/src/types/mod.d.ts.map +1 -0
  257. package/esm/utils/src/types/mod.js +3 -0
  258. package/esm/utils/src/types/nominal.d.ts +87 -0
  259. package/esm/utils/src/types/nominal.d.ts.map +1 -0
  260. package/esm/utils/src/types/nominal.js +1 -0
  261. package/esm/utils/src/types/typebox-helpers.d.ts +183 -0
  262. package/esm/utils/src/types/typebox-helpers.d.ts.map +1 -0
  263. package/esm/utils/src/types/typebox-helpers.js +235 -0
  264. package/esm/utils/src/types/utils.d.ts +37 -0
  265. package/esm/utils/src/types/utils.d.ts.map +1 -0
  266. package/esm/utils/src/types/utils.js +46 -0
  267. package/esm/utils/src/types/validators/algorand.d.ts +31 -0
  268. package/esm/utils/src/types/validators/algorand.d.ts.map +1 -0
  269. package/esm/utils/src/types/validators/algorand.js +90 -0
  270. package/esm/utils/src/types/validators/cardano.d.ts +26 -0
  271. package/esm/utils/src/types/validators/cardano.d.ts.map +1 -0
  272. package/esm/utils/src/types/validators/cardano.js +113 -0
  273. package/esm/utils/src/types/validators/mina.d.ts +15 -0
  274. package/esm/utils/src/types/validators/mina.d.ts.map +1 -0
  275. package/esm/utils/src/types/validators/mina.js +43 -0
  276. package/esm/utils/src/types/validators/minicbor.d.ts +98 -0
  277. package/esm/utils/src/types/validators/minicbor.d.ts.map +1 -0
  278. package/esm/utils/src/types/validators/minicbor.js +332 -0
  279. package/esm/utils/src/types/validators/mod.d.ts +3 -0
  280. package/esm/utils/src/types/validators/mod.d.ts.map +1 -0
  281. package/esm/utils/src/types/validators/mod.js +2 -0
  282. package/esm/utils/src/types/validators/utils.d.ts +6 -0
  283. package/esm/utils/src/types/validators/utils.d.ts.map +1 -0
  284. package/esm/utils/src/types/validators/utils.js +24 -0
  285. package/esm/utils/src/viem.d.ts +6 -0
  286. package/esm/utils/src/viem.d.ts.map +1 -0
  287. package/esm/utils/src/viem.js +15 -0
  288. package/esm/wallets/src/IProvider.d.ts +48 -0
  289. package/esm/wallets/src/IProvider.d.ts.map +1 -0
  290. package/esm/wallets/src/IProvider.js +7 -0
  291. package/esm/wallets/src/avail/avail.d.ts +28 -0
  292. package/esm/wallets/src/avail/avail.d.ts.map +1 -0
  293. package/esm/wallets/src/avail/avail.js +65 -0
  294. package/esm/wallets/src/avail/wrapper.d.ts +6 -0
  295. package/esm/wallets/src/avail/wrapper.d.ts.map +1 -0
  296. package/esm/wallets/src/avail/wrapper.js +31 -0
  297. package/esm/wallets/src/cardano/cardano.d.ts +30 -0
  298. package/esm/wallets/src/cardano/cardano.d.ts.map +1 -0
  299. package/esm/wallets/src/cardano/cardano.js +158 -0
  300. package/esm/wallets/src/cardano/wrapper.d.ts +7 -0
  301. package/esm/wallets/src/cardano/wrapper.d.ts.map +1 -0
  302. package/esm/wallets/src/cardano/wrapper.js +22 -0
  303. package/esm/wallets/src/evm/ethers.d.ts +28 -0
  304. package/esm/wallets/src/evm/ethers.d.ts.map +1 -0
  305. package/esm/wallets/src/evm/ethers.js +79 -0
  306. package/esm/wallets/src/evm/injected.d.ts +74 -0
  307. package/esm/wallets/src/evm/injected.d.ts.map +1 -0
  308. package/esm/wallets/src/evm/injected.js +322 -0
  309. package/esm/wallets/src/evm/types.d.ts +3 -0
  310. package/esm/wallets/src/evm/types.d.ts.map +1 -0
  311. package/esm/wallets/src/evm/types.js +1 -0
  312. package/esm/wallets/src/evm/wrapper-ethers.d.ts +6 -0
  313. package/esm/wallets/src/evm/wrapper-ethers.d.ts.map +1 -0
  314. package/esm/wallets/src/evm/wrapper-ethers.js +38 -0
  315. package/esm/wallets/src/evm/wrapper-injected.d.ts +7 -0
  316. package/esm/wallets/src/evm/wrapper-injected.d.ts.map +1 -0
  317. package/esm/wallets/src/evm/wrapper-injected.js +80 -0
  318. package/esm/wallets/src/midnight/midnight.d.ts +26 -0
  319. package/esm/wallets/src/midnight/midnight.d.ts.map +1 -0
  320. package/esm/wallets/src/midnight/midnight.js +112 -0
  321. package/esm/wallets/src/midnight/wrapper.d.ts +7 -0
  322. package/esm/wallets/src/midnight/wrapper.d.ts.map +1 -0
  323. package/esm/wallets/src/midnight/wrapper.js +22 -0
  324. package/esm/wallets/src/mina/mina.d.ts +28 -0
  325. package/esm/wallets/src/mina/mina.d.ts.map +1 -0
  326. package/esm/wallets/src/mina/mina.js +133 -0
  327. package/esm/wallets/src/mina/wrapper.d.ts +6 -0
  328. package/esm/wallets/src/mina/wrapper.d.ts.map +1 -0
  329. package/esm/wallets/src/mina/wrapper.js +12 -0
  330. package/esm/wallets/src/mod.d.ts +8 -0
  331. package/esm/wallets/src/mod.d.ts.map +1 -0
  332. package/esm/wallets/src/mod.js +5 -0
  333. package/esm/wallets/src/paima.d.ts +104 -0
  334. package/esm/wallets/src/paima.d.ts.map +1 -0
  335. package/esm/wallets/src/paima.js +244 -0
  336. package/esm/wallets/src/types.d.ts +49 -0
  337. package/esm/wallets/src/types.d.ts.map +1 -0
  338. package/esm/wallets/src/types.js +1 -0
  339. package/esm/wallets/src/utils.d.ts +41 -0
  340. package/esm/wallets/src/utils.d.ts.map +1 -0
  341. package/esm/wallets/src/utils.js +75 -0
  342. package/esm/wallets/src/wallet-modes.d.ts +49 -0
  343. package/esm/wallets/src/wallet-modes.d.ts.map +1 -0
  344. package/esm/wallets/src/wallet-modes.js +26 -0
  345. package/esm/wallets/src/wallets.d.ts +5 -0
  346. package/esm/wallets/src/wallets.d.ts.map +1 -0
  347. package/esm/wallets/src/wallets.js +55 -0
  348. package/esm/wallets/src/windows.d.ts +5 -0
  349. package/esm/wallets/src/windows.d.ts.map +1 -0
  350. package/esm/wallets/src/windows.js +9 -0
  351. package/package.json +51 -0
  352. package/script/chain-types/src/hash.d.ts +28 -0
  353. package/script/chain-types/src/hash.d.ts.map +1 -0
  354. package/script/chain-types/src/hash.js +36 -0
  355. package/script/chain-types/src/mod.d.ts +3 -0
  356. package/script/chain-types/src/mod.d.ts.map +1 -0
  357. package/script/chain-types/src/mod.js +18 -0
  358. package/script/chain-types/src/types.d.ts +70 -0
  359. package/script/chain-types/src/types.d.ts.map +1 -0
  360. package/script/chain-types/src/types.js +2 -0
  361. package/script/concise/src/batcher.d.ts +40 -0
  362. package/script/concise/src/batcher.d.ts.map +1 -0
  363. package/script/concise/src/batcher.js +122 -0
  364. package/script/concise/src/delegate.d.ts +18 -0
  365. package/script/concise/src/delegate.d.ts.map +1 -0
  366. package/script/concise/src/delegate.js +123 -0
  367. package/script/concise/src/mod.d.ts +5 -0
  368. package/script/concise/src/mod.d.ts.map +1 -0
  369. package/script/concise/src/mod.js +19 -0
  370. package/script/concise/src/v2/builtins/batcher.d.ts +27 -0
  371. package/script/concise/src/v2/builtins/batcher.d.ts.map +1 -0
  372. package/script/concise/src/v2/builtins/batcher.js +54 -0
  373. package/script/concise/src/v2/builtins/grammar.d.ts +25 -0
  374. package/script/concise/src/v2/builtins/grammar.d.ts.map +1 -0
  375. package/script/concise/src/v2/builtins/grammar.js +43 -0
  376. package/script/concise/src/v2/builtins/index.d.ts +3 -0
  377. package/script/concise/src/v2/builtins/index.d.ts.map +1 -0
  378. package/script/concise/src/v2/builtins/index.js +19 -0
  379. package/script/concise/src/v2/grammar.d.ts +8 -0
  380. package/script/concise/src/v2/grammar.d.ts.map +1 -0
  381. package/script/concise/src/v2/grammar.js +24 -0
  382. package/script/concise/src/v2/inputs.d.ts +7 -0
  383. package/script/concise/src/v2/inputs.d.ts.map +1 -0
  384. package/script/concise/src/v2/inputs.js +43 -0
  385. package/script/concise/src/v2/mod.d.ts +5 -0
  386. package/script/concise/src/v2/mod.d.ts.map +1 -0
  387. package/script/concise/src/v2/mod.js +20 -0
  388. package/script/concise/src/v2/types.d.ts +23 -0
  389. package/script/concise/src/v2/types.d.ts.map +1 -0
  390. package/script/concise/src/v2/types.js +2 -0
  391. package/script/config/src/config/builder.d.ts +33 -0
  392. package/script/config/src/config/builder.d.ts.map +1 -0
  393. package/script/config/src/config/builder.js +86 -0
  394. package/script/config/src/config/configCheck.d.ts +32 -0
  395. package/script/config/src/config/configCheck.d.ts.map +1 -0
  396. package/script/config/src/config/configCheck.js +70 -0
  397. package/script/config/src/config/context.d.ts +23 -0
  398. package/script/config/src/config/context.d.ts.map +1 -0
  399. package/script/config/src/config/context.js +31 -0
  400. package/script/config/src/config/mod.d.ts +7 -0
  401. package/script/config/src/config/mod.d.ts.map +1 -0
  402. package/script/config/src/config/mod.js +22 -0
  403. package/script/config/src/config/parts/deployedAddresses.d.ts +17 -0
  404. package/script/config/src/config/parts/deployedAddresses.d.ts.map +1 -0
  405. package/script/config/src/config/parts/deployedAddresses.js +28 -0
  406. package/script/config/src/config/parts/network.d.ts +19 -0
  407. package/script/config/src/config/parts/network.d.ts.map +1 -0
  408. package/script/config/src/config/parts/network.js +33 -0
  409. package/script/config/src/config/parts/primitive.d.ts +31 -0
  410. package/script/config/src/config/parts/primitive.d.ts.map +1 -0
  411. package/script/config/src/config/parts/primitive.js +32 -0
  412. package/script/config/src/config/parts/securityNamespace.d.ts +14 -0
  413. package/script/config/src/config/parts/securityNamespace.d.ts.map +1 -0
  414. package/script/config/src/config/parts/securityNamespace.js +30 -0
  415. package/script/config/src/config/parts/syncProtocols.d.ts +43 -0
  416. package/script/config/src/config/parts/syncProtocols.d.ts.map +1 -0
  417. package/script/config/src/config/parts/syncProtocols.js +70 -0
  418. package/script/config/src/config/utils.d.ts +40 -0
  419. package/script/config/src/config/utils.d.ts.map +1 -0
  420. package/script/config/src/config/utils.js +62 -0
  421. package/script/config/src/mod.d.ts +3 -0
  422. package/script/config/src/mod.d.ts.map +1 -0
  423. package/script/config/src/mod.js +18 -0
  424. package/script/config/src/schema/common.d.ts +26 -0
  425. package/script/config/src/schema/common.d.ts.map +1 -0
  426. package/script/config/src/schema/common.js +54 -0
  427. package/script/config/src/schema/mod.d.ts +7 -0
  428. package/script/config/src/schema/mod.d.ts.map +1 -0
  429. package/script/config/src/schema/mod.js +22 -0
  430. package/script/config/src/schema/namespace.d.ts +39 -0
  431. package/script/config/src/schema/namespace.d.ts.map +1 -0
  432. package/script/config/src/schema/namespace.js +38 -0
  433. package/script/config/src/schema/network/algorand.d.ts +12 -0
  434. package/script/config/src/schema/network/algorand.d.ts.map +1 -0
  435. package/script/config/src/schema/network/algorand.js +26 -0
  436. package/script/config/src/schema/network/all.d.ts +175 -0
  437. package/script/config/src/schema/network/all.d.ts.map +1 -0
  438. package/script/config/src/schema/network/all.js +28 -0
  439. package/script/config/src/schema/network/bitcoin.d.ts +19 -0
  440. package/script/config/src/schema/network/bitcoin.d.ts.map +1 -0
  441. package/script/config/src/schema/network/bitcoin.js +24 -0
  442. package/script/config/src/schema/network/cardano.d.ts +12 -0
  443. package/script/config/src/schema/network/cardano.d.ts.map +1 -0
  444. package/script/config/src/schema/network/cardano.js +30 -0
  445. package/script/config/src/schema/network/evm.d.ts +68 -0
  446. package/script/config/src/schema/network/evm.d.ts.map +1 -0
  447. package/script/config/src/schema/network/evm.js +75 -0
  448. package/script/config/src/schema/network/mina.d.ts +14 -0
  449. package/script/config/src/schema/network/mina.d.ts.map +1 -0
  450. package/script/config/src/schema/network/mina.js +28 -0
  451. package/script/config/src/schema/network/mod.d.ts +9 -0
  452. package/script/config/src/schema/network/mod.d.ts.map +1 -0
  453. package/script/config/src/schema/network/mod.js +24 -0
  454. package/script/config/src/schema/network/ntp.d.ts +32 -0
  455. package/script/config/src/schema/network/ntp.d.ts.map +1 -0
  456. package/script/config/src/schema/network/ntp.js +42 -0
  457. package/script/config/src/schema/network/substrate/avail.d.ts +14 -0
  458. package/script/config/src/schema/network/substrate/avail.d.ts.map +1 -0
  459. package/script/config/src/schema/network/substrate/avail.js +29 -0
  460. package/script/config/src/schema/network/substrate/common.d.ts +18 -0
  461. package/script/config/src/schema/network/substrate/common.d.ts.map +1 -0
  462. package/script/config/src/schema/network/substrate/common.js +35 -0
  463. package/script/config/src/schema/network/substrate/midnight.d.ts +20 -0
  464. package/script/config/src/schema/network/substrate/midnight.d.ts.map +1 -0
  465. package/script/config/src/schema/network/substrate/midnight.js +35 -0
  466. package/script/config/src/schema/network/substrate/mod.d.ts +4 -0
  467. package/script/config/src/schema/network/substrate/mod.d.ts.map +1 -0
  468. package/script/config/src/schema/network/substrate/mod.js +19 -0
  469. package/script/config/src/schema/network/types.d.ts +13 -0
  470. package/script/config/src/schema/network/types.d.ts.map +1 -0
  471. package/script/config/src/schema/network/types.js +16 -0
  472. package/script/config/src/schema/network/utils.d.ts +5 -0
  473. package/script/config/src/schema/network/utils.d.ts.map +1 -0
  474. package/script/config/src/schema/network/utils.js +76 -0
  475. package/script/config/src/schema/primitive/mod.d.ts +2 -0
  476. package/script/config/src/schema/primitive/mod.d.ts.map +1 -0
  477. package/script/config/src/schema/primitive/mod.js +17 -0
  478. package/script/config/src/schema/primitive/types.d.ts +58 -0
  479. package/script/config/src/schema/primitive/types.d.ts.map +1 -0
  480. package/script/config/src/schema/primitive/types.js +2 -0
  481. package/script/config/src/schema/sync-protocols/all.d.ts +583 -0
  482. package/script/config/src/schema/sync-protocols/all.d.ts.map +1 -0
  483. package/script/config/src/schema/sync-protocols/all.js +62 -0
  484. package/script/config/src/schema/sync-protocols/avail/rpc.d.ts +76 -0
  485. package/script/config/src/schema/sync-protocols/avail/rpc.d.ts.map +1 -0
  486. package/script/config/src/schema/sync-protocols/avail/rpc.js +59 -0
  487. package/script/config/src/schema/sync-protocols/bitcoin/rpc.d.ts +76 -0
  488. package/script/config/src/schema/sync-protocols/bitcoin/rpc.d.ts.map +1 -0
  489. package/script/config/src/schema/sync-protocols/bitcoin/rpc.js +50 -0
  490. package/script/config/src/schema/sync-protocols/cardano/carp.d.ts +80 -0
  491. package/script/config/src/schema/sync-protocols/cardano/carp.d.ts.map +1 -0
  492. package/script/config/src/schema/sync-protocols/cardano/carp.js +65 -0
  493. package/script/config/src/schema/sync-protocols/cardano/mod.d.ts +2 -0
  494. package/script/config/src/schema/sync-protocols/cardano/mod.d.ts.map +1 -0
  495. package/script/config/src/schema/sync-protocols/cardano/mod.js +17 -0
  496. package/script/config/src/schema/sync-protocols/cardano/utxorpc.d.ts +56 -0
  497. package/script/config/src/schema/sync-protocols/cardano/utxorpc.d.ts.map +1 -0
  498. package/script/config/src/schema/sync-protocols/cardano/utxorpc.js +59 -0
  499. package/script/config/src/schema/sync-protocols/common.d.ts +60 -0
  500. package/script/config/src/schema/sync-protocols/common.d.ts.map +1 -0
  501. package/script/config/src/schema/sync-protocols/common.js +61 -0
  502. package/script/config/src/schema/sync-protocols/decorators/all.d.ts +17 -0
  503. package/script/config/src/schema/sync-protocols/decorators/all.d.ts.map +1 -0
  504. package/script/config/src/schema/sync-protocols/decorators/all.js +12 -0
  505. package/script/config/src/schema/sync-protocols/decorators/emulated.d.ts +8 -0
  506. package/script/config/src/schema/sync-protocols/decorators/emulated.d.ts.map +1 -0
  507. package/script/config/src/schema/sync-protocols/decorators/emulated.js +15 -0
  508. package/script/config/src/schema/sync-protocols/decorators/mod.d.ts +4 -0
  509. package/script/config/src/schema/sync-protocols/decorators/mod.d.ts.map +1 -0
  510. package/script/config/src/schema/sync-protocols/decorators/mod.js +19 -0
  511. package/script/config/src/schema/sync-protocols/decorators/types.d.ts +4 -0
  512. package/script/config/src/schema/sync-protocols/decorators/types.d.ts.map +1 -0
  513. package/script/config/src/schema/sync-protocols/decorators/types.js +7 -0
  514. package/script/config/src/schema/sync-protocols/evm/rpc.d.ts +68 -0
  515. package/script/config/src/schema/sync-protocols/evm/rpc.d.ts.map +1 -0
  516. package/script/config/src/schema/sync-protocols/evm/rpc.js +47 -0
  517. package/script/config/src/schema/sync-protocols/midnight/graphql.d.ts +66 -0
  518. package/script/config/src/schema/sync-protocols/midnight/graphql.d.ts.map +1 -0
  519. package/script/config/src/schema/sync-protocols/midnight/graphql.js +53 -0
  520. package/script/config/src/schema/sync-protocols/mina/graphql.d.ts +73 -0
  521. package/script/config/src/schema/sync-protocols/mina/graphql.d.ts.map +1 -0
  522. package/script/config/src/schema/sync-protocols/mina/graphql.js +62 -0
  523. package/script/config/src/schema/sync-protocols/mod.d.ts +10 -0
  524. package/script/config/src/schema/sync-protocols/mod.d.ts.map +1 -0
  525. package/script/config/src/schema/sync-protocols/mod.js +25 -0
  526. package/script/config/src/schema/sync-protocols/ntp/rpc.d.ts +45 -0
  527. package/script/config/src/schema/sync-protocols/ntp/rpc.d.ts.map +1 -0
  528. package/script/config/src/schema/sync-protocols/ntp/rpc.js +36 -0
  529. package/script/config/src/schema/sync-protocols/types.d.ts +125 -0
  530. package/script/config/src/schema/sync-protocols/types.d.ts.map +1 -0
  531. package/script/config/src/schema/sync-protocols/types.js +25 -0
  532. package/script/config/src/schema/utils.d.ts +53 -0
  533. package/script/config/src/schema/utils.d.ts.map +1 -0
  534. package/script/config/src/schema/utils.js +62 -0
  535. package/script/events/src/app-events.d.ts +65 -0
  536. package/script/events/src/app-events.d.ts.map +1 -0
  537. package/script/events/src/app-events.js +62 -0
  538. package/script/events/src/asyncapi.d.ts +1173 -0
  539. package/script/events/src/asyncapi.d.ts.map +1 -0
  540. package/script/events/src/asyncapi.js +8 -0
  541. package/script/events/src/builtin-event-utils.d.ts +5 -0
  542. package/script/events/src/builtin-event-utils.d.ts.map +1 -0
  543. package/script/events/src/builtin-event-utils.js +63 -0
  544. package/script/events/src/builtin-events.d.ts +106 -0
  545. package/script/events/src/builtin-events.d.ts.map +1 -0
  546. package/script/events/src/builtin-events.js +204 -0
  547. package/script/events/src/event-connect.d.ts +15 -0
  548. package/script/events/src/event-connect.d.ts.map +1 -0
  549. package/script/events/src/event-connect.js +82 -0
  550. package/script/events/src/event-manager.d.ts +54 -0
  551. package/script/events/src/event-manager.d.ts.map +1 -0
  552. package/script/events/src/event-manager.js +133 -0
  553. package/script/events/src/evm.d.ts +6 -0
  554. package/script/events/src/evm.d.ts.map +1 -0
  555. package/script/events/src/evm.js +59 -0
  556. package/script/events/src/mod.d.ts +10 -0
  557. package/script/events/src/mod.d.ts.map +1 -0
  558. package/script/events/src/mod.js +25 -0
  559. package/script/events/src/types.d.ts +255 -0
  560. package/script/events/src/types.d.ts.map +1 -0
  561. package/script/events/src/types.js +111 -0
  562. package/script/events/src/utils.d.ts +16 -0
  563. package/script/events/src/utils.d.ts.map +1 -0
  564. package/script/events/src/utils.js +98 -0
  565. package/script/package.json +3 -0
  566. package/script/utils/src/binary-search.d.ts +7 -0
  567. package/script/utils/src/binary-search.d.ts.map +1 -0
  568. package/script/utils/src/binary-search.js +41 -0
  569. package/script/utils/src/captcha.d.ts +9 -0
  570. package/script/utils/src/captcha.d.ts.map +1 -0
  571. package/script/utils/src/captcha.js +22 -0
  572. package/script/utils/src/concurrency/condVar.d.ts +25 -0
  573. package/script/utils/src/concurrency/condVar.d.ts.map +1 -0
  574. package/script/utils/src/concurrency/condVar.js +42 -0
  575. package/script/utils/src/concurrency/latch.d.ts +25 -0
  576. package/script/utils/src/concurrency/latch.d.ts.map +1 -0
  577. package/script/utils/src/concurrency/latch.js +54 -0
  578. package/script/utils/src/concurrency/mod.d.ts +5 -0
  579. package/script/utils/src/concurrency/mod.d.ts.map +1 -0
  580. package/script/utils/src/concurrency/mod.js +20 -0
  581. package/script/utils/src/concurrency/retry.d.ts +14 -0
  582. package/script/utils/src/concurrency/retry.d.ts.map +1 -0
  583. package/script/utils/src/concurrency/retry.js +30 -0
  584. package/script/utils/src/concurrency/utils.d.ts +27 -0
  585. package/script/utils/src/concurrency/utils.d.ts.map +1 -0
  586. package/script/utils/src/concurrency/utils.js +30 -0
  587. package/script/utils/src/constants.d.ts +4 -0
  588. package/script/utils/src/constants.d.ts.map +1 -0
  589. package/script/utils/src/constants.js +12 -0
  590. package/script/utils/src/decorators/bound.d.ts +10 -0
  591. package/script/utils/src/decorators/bound.d.ts.map +1 -0
  592. package/script/utils/src/decorators/bound.js +20 -0
  593. package/script/utils/src/decorators/mod.d.ts +2 -0
  594. package/script/utils/src/decorators/mod.d.ts.map +1 -0
  595. package/script/utils/src/decorators/mod.js +17 -0
  596. package/script/utils/src/mod.d.ts +8 -0
  597. package/script/utils/src/mod.d.ts.map +1 -0
  598. package/script/utils/src/mod.js +23 -0
  599. package/script/utils/src/types/json-query.d.ts +30 -0
  600. package/script/utils/src/types/json-query.d.ts.map +1 -0
  601. package/script/utils/src/types/json-query.js +2 -0
  602. package/script/utils/src/types/misc.d.ts +109 -0
  603. package/script/utils/src/types/misc.d.ts.map +1 -0
  604. package/script/utils/src/types/misc.js +3 -0
  605. package/script/utils/src/types/mod.d.ts +7 -0
  606. package/script/utils/src/types/mod.d.ts.map +1 -0
  607. package/script/utils/src/types/mod.js +19 -0
  608. package/script/utils/src/types/nominal.d.ts +87 -0
  609. package/script/utils/src/types/nominal.d.ts.map +1 -0
  610. package/script/utils/src/types/nominal.js +2 -0
  611. package/script/utils/src/types/typebox-helpers.d.ts +183 -0
  612. package/script/utils/src/types/typebox-helpers.d.ts.map +1 -0
  613. package/script/utils/src/types/typebox-helpers.js +277 -0
  614. package/script/utils/src/types/utils.d.ts +37 -0
  615. package/script/utils/src/types/utils.d.ts.map +1 -0
  616. package/script/utils/src/types/utils.js +52 -0
  617. package/script/utils/src/types/validators/algorand.d.ts +31 -0
  618. package/script/utils/src/types/validators/algorand.d.ts.map +1 -0
  619. package/script/utils/src/types/validators/algorand.js +98 -0
  620. package/script/utils/src/types/validators/cardano.d.ts +26 -0
  621. package/script/utils/src/types/validators/cardano.d.ts.map +1 -0
  622. package/script/utils/src/types/validators/cardano.js +121 -0
  623. package/script/utils/src/types/validators/mina.d.ts +15 -0
  624. package/script/utils/src/types/validators/mina.d.ts.map +1 -0
  625. package/script/utils/src/types/validators/mina.js +51 -0
  626. package/script/utils/src/types/validators/minicbor.d.ts +98 -0
  627. package/script/utils/src/types/validators/minicbor.d.ts.map +1 -0
  628. package/script/utils/src/types/validators/minicbor.js +337 -0
  629. package/script/utils/src/types/validators/mod.d.ts +3 -0
  630. package/script/utils/src/types/validators/mod.d.ts.map +1 -0
  631. package/script/utils/src/types/validators/mod.js +18 -0
  632. package/script/utils/src/types/validators/utils.d.ts +6 -0
  633. package/script/utils/src/types/validators/utils.d.ts.map +1 -0
  634. package/script/utils/src/types/validators/utils.js +31 -0
  635. package/script/utils/src/viem.d.ts +6 -0
  636. package/script/utils/src/viem.d.ts.map +1 -0
  637. package/script/utils/src/viem.js +19 -0
  638. package/script/wallets/src/IProvider.d.ts +48 -0
  639. package/script/wallets/src/IProvider.d.ts.map +1 -0
  640. package/script/wallets/src/IProvider.js +10 -0
  641. package/script/wallets/src/avail/avail.d.ts +28 -0
  642. package/script/wallets/src/avail/avail.d.ts.map +1 -0
  643. package/script/wallets/src/avail/avail.js +70 -0
  644. package/script/wallets/src/avail/wrapper.d.ts +6 -0
  645. package/script/wallets/src/avail/wrapper.d.ts.map +1 -0
  646. package/script/wallets/src/avail/wrapper.js +34 -0
  647. package/script/wallets/src/cardano/cardano.d.ts +30 -0
  648. package/script/wallets/src/cardano/cardano.d.ts.map +1 -0
  649. package/script/wallets/src/cardano/cardano.js +163 -0
  650. package/script/wallets/src/cardano/wrapper.d.ts +7 -0
  651. package/script/wallets/src/cardano/wrapper.d.ts.map +1 -0
  652. package/script/wallets/src/cardano/wrapper.js +26 -0
  653. package/script/wallets/src/evm/ethers.d.ts +28 -0
  654. package/script/wallets/src/evm/ethers.d.ts.map +1 -0
  655. package/script/wallets/src/evm/ethers.js +84 -0
  656. package/script/wallets/src/evm/injected.d.ts +74 -0
  657. package/script/wallets/src/evm/injected.d.ts.map +1 -0
  658. package/script/wallets/src/evm/injected.js +360 -0
  659. package/script/wallets/src/evm/types.d.ts +3 -0
  660. package/script/wallets/src/evm/types.d.ts.map +1 -0
  661. package/script/wallets/src/evm/types.js +4 -0
  662. package/script/wallets/src/evm/wrapper-ethers.d.ts +6 -0
  663. package/script/wallets/src/evm/wrapper-ethers.d.ts.map +1 -0
  664. package/script/wallets/src/evm/wrapper-ethers.js +41 -0
  665. package/script/wallets/src/evm/wrapper-injected.d.ts +7 -0
  666. package/script/wallets/src/evm/wrapper-injected.d.ts.map +1 -0
  667. package/script/wallets/src/evm/wrapper-injected.js +84 -0
  668. package/script/wallets/src/midnight/midnight.d.ts +26 -0
  669. package/script/wallets/src/midnight/midnight.d.ts.map +1 -0
  670. package/script/wallets/src/midnight/midnight.js +117 -0
  671. package/script/wallets/src/midnight/wrapper.d.ts +7 -0
  672. package/script/wallets/src/midnight/wrapper.d.ts.map +1 -0
  673. package/script/wallets/src/midnight/wrapper.js +26 -0
  674. package/script/wallets/src/mina/mina.d.ts +28 -0
  675. package/script/wallets/src/mina/mina.d.ts.map +1 -0
  676. package/script/wallets/src/mina/mina.js +138 -0
  677. package/script/wallets/src/mina/wrapper.d.ts +6 -0
  678. package/script/wallets/src/mina/wrapper.d.ts.map +1 -0
  679. package/script/wallets/src/mina/wrapper.js +15 -0
  680. package/script/wallets/src/mod.d.ts +8 -0
  681. package/script/wallets/src/mod.d.ts.map +1 -0
  682. package/script/wallets/src/mod.js +26 -0
  683. package/script/wallets/src/paima.d.ts +104 -0
  684. package/script/wallets/src/paima.d.ts.map +1 -0
  685. package/script/wallets/src/paima.js +253 -0
  686. package/script/wallets/src/types.d.ts +49 -0
  687. package/script/wallets/src/types.d.ts.map +1 -0
  688. package/script/wallets/src/types.js +2 -0
  689. package/script/wallets/src/utils.d.ts +41 -0
  690. package/script/wallets/src/utils.d.ts.map +1 -0
  691. package/script/wallets/src/utils.js +81 -0
  692. package/script/wallets/src/wallet-modes.d.ts +49 -0
  693. package/script/wallets/src/wallet-modes.d.ts.map +1 -0
  694. package/script/wallets/src/wallet-modes.js +29 -0
  695. package/script/wallets/src/wallets.d.ts +5 -0
  696. package/script/wallets/src/wallets.d.ts.map +1 -0
  697. package/script/wallets/src/wallets.js +58 -0
  698. package/script/wallets/src/windows.d.ts +5 -0
  699. package/script/wallets/src/windows.d.ts.map +1 -0
  700. package/script/wallets/src/windows.js +12 -0
@@ -0,0 +1,93 @@
1
+ /**
2
+ * Creates an MQTT path filling in specified variables in the path
3
+ * @param path the base MQTT path to use
4
+ * @param args the args to fill the path.
5
+ * - `undefined` (explicitly or omitted) variables will be treated as `+`
6
+ * - if all trailing variables are `undefined`, it will be replaced by `#`
7
+ */
8
+ export function fillPath(path, args) {
9
+ const keys = new Set(Object.keys(args));
10
+ const possibleArgs = path
11
+ .map((p, index) => [p, index])
12
+ .filter(([p, _]) => typeof p === 'object')
13
+ .map(([_, index]) => index);
14
+ const filledArgsLeft = path
15
+ .map((p, index) => [p, index])
16
+ .filter(([p, _]) => typeof p === 'object' && keys.has(p.name))
17
+ .map(([_, index]) => index)
18
+ .reverse(); // reverse as pop() is more efficient than removing from the start of the array
19
+ let filledPath = [];
20
+ const addLastArg = (i) => {
21
+ if (i === path.length - 1) {
22
+ // if it's the last entry, + and # mean the same thing
23
+ // so we just pick +
24
+ filledPath.push('+');
25
+ }
26
+ else {
27
+ filledPath.push('#');
28
+ }
29
+ };
30
+ for (let i = 0; i < path.length; i++) {
31
+ const entry = path[i];
32
+ // if we've exhausted all args provided by the user
33
+ // but there are still args we expect later in the path
34
+ // ex:
35
+ // 1: a/{foo}/b/{bar}, user provides just `foo` and we've already processed it
36
+ // 2: a/{foo}, user provided nothing
37
+ if (filledArgsLeft.length === 0 &&
38
+ possibleArgs.length > 0 &&
39
+ i < possibleArgs[possibleArgs.length - 1]) {
40
+ // if we've reached at least the first argument
41
+ // ex: a/{foo}, we should use `a/+` instead of just `#`
42
+ if (i >= possibleArgs[0]) {
43
+ addLastArg(i);
44
+ break;
45
+ }
46
+ }
47
+ // 1) handle regular string types
48
+ {
49
+ if (typeof entry === 'string') {
50
+ filledPath.push(path[i]);
51
+ continue;
52
+ }
53
+ }
54
+ // 2) handle arg types
55
+ {
56
+ // handle types left undefined despite future args being specified
57
+ if (args[entry.name] === undefined) {
58
+ filledPath.push('+');
59
+ }
60
+ else {
61
+ // handle types explicitly provided
62
+ filledPath.push(args[entry.name]);
63
+ }
64
+ // if we've reached the next arg the user provided a filling for
65
+ if (filledArgsLeft.length > 0 && i === filledArgsLeft[filledArgsLeft.length - 1]) {
66
+ filledArgsLeft.pop();
67
+ }
68
+ }
69
+ }
70
+ return filledPath.join('/');
71
+ }
72
+ /**
73
+ * Convert our internal definition of an event path to an mqtt-pattern compatible path
74
+ * This is useful to later deconstruct topics for pattern matching
75
+ */
76
+ export function toPattern(path) {
77
+ let result = '';
78
+ for (let i = 0; i < path.length; i++) {
79
+ const entry = path[i];
80
+ if (i > 0)
81
+ result += '/'; // fencepost problem
82
+ if (typeof entry === 'string') {
83
+ result += entry;
84
+ }
85
+ else {
86
+ result += `+${entry.name}`;
87
+ }
88
+ }
89
+ return result;
90
+ }
91
+ export function keysForPath(path) {
92
+ return path.filter(p => typeof p !== 'string').map(p => p.name);
93
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Find the left-most entry index in an array satisfying the condition
3
+ *
4
+ * ex: binarySearch([6,7,7,8], 7, val => val) return `1`
5
+ */
6
+ export declare function binarySearch<T>(arr: T[], target: number, toNum: (val: T) => number): number | undefined;
7
+ //# sourceMappingURL=binary-search.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"binary-search.d.ts","sourceRoot":"","sources":["../../../src/utils/src/binary-search.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAC5B,GAAG,EAAE,CAAC,EAAE,EACR,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,MAAM,GACxB,MAAM,GAAG,SAAS,CAmCpB"}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Find the left-most entry index in an array satisfying the condition
3
+ *
4
+ * ex: binarySearch([6,7,7,8], 7, val => val) return `1`
5
+ */
6
+ export function binarySearch(arr, target, toNum) {
7
+ let low = 0;
8
+ let high = arr.length - 1;
9
+ let result = undefined; // This will hold the index of the smallest value >= target, if it exists
10
+ if (arr.length === 0) {
11
+ return undefined;
12
+ }
13
+ // if the target is smaller than all entries, just return right away
14
+ if (target - toNum(arr[0]) <= 0) {
15
+ return 0;
16
+ }
17
+ // if the target is bigger than all entries, just return right away
18
+ if (target - toNum(arr[arr.length - 1]) > 0) {
19
+ return undefined;
20
+ }
21
+ // first: find the largest index where the value is smaller than the target
22
+ while (low < high) {
23
+ const mid = low + Math.floor((high - low) / 2);
24
+ const val = target - toNum(arr[mid]);
25
+ if (val <= 0) {
26
+ high = mid;
27
+ }
28
+ else {
29
+ result = mid;
30
+ low = mid + 1;
31
+ }
32
+ }
33
+ // sanity check: should never happen
34
+ if (result == null) {
35
+ return undefined;
36
+ }
37
+ return result + 1;
38
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This method will dynamically add:
3
+ * <script src="https://www.google.com/recaptcha/api.js?render=YOUR_SITE_KEY"></script>
4
+ *
5
+ * You can manually add this script to your HTML,
6
+ * this method is just a helper to do it programmatically.
7
+ */
8
+ export declare function injectReCaptchaToHTML(document: any, reCAPTCHA_site_key: string): Promise<void>;
9
+ //# sourceMappingURL=captcha.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"captcha.d.ts","sourceRoot":"","sources":["../../../src/utils/src/captcha.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,wBAAsB,qBAAqB,CAAC,QAAQ,EAAE,GAAG,EAAE,kBAAkB,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAUpG"}
@@ -0,0 +1,19 @@
1
+ // <reference lib="dom" />
2
+ // error[banned-triple-slash-directives]: triple slash directives that modify globals are not allowed
3
+ /**
4
+ * This method will dynamically add:
5
+ * <script src="https://www.google.com/recaptcha/api.js?render=YOUR_SITE_KEY"></script>
6
+ *
7
+ * You can manually add this script to your HTML,
8
+ * this method is just a helper to do it programmatically.
9
+ */
10
+ export async function injectReCaptchaToHTML(document, reCAPTCHA_site_key) {
11
+ const url = `https://www.google.com/recaptcha/api.js?render=${reCAPTCHA_site_key}`;
12
+ return await new Promise((resolve, reject) => {
13
+ const el = document.createElement("script");
14
+ el.src = url;
15
+ el.addEventListener("load", () => resolve());
16
+ el.addEventListener("error", () => reject());
17
+ document.body.append(el);
18
+ });
19
+ }
@@ -0,0 +1,25 @@
1
+ import type { Operation } from "effection";
2
+ export type CondVar<T> = {
3
+ wait: () => Operation<T>;
4
+ wake: (val: T) => void;
5
+ };
6
+ /**
7
+ * Allows blocking execution until a specific wake is called
8
+ *
9
+ * @example
10
+ * ```javascript
11
+ * const { wait, wake } = conditionVariable<void>();
12
+ * yield* spawn(function*() {
13
+ * console.log('start wait');
14
+ * yield* wait();
15
+ * console.log('done wait');
16
+ * });
17
+ *
18
+ * yield* sleep(1000);
19
+ * wait(); // allows the spawn to continue executing
20
+ * ```
21
+ *
22
+ * See [Condition variables](https://en.wikipedia.org/wiki/Monitor_%28synchronization%29#Condition_variables) for more information
23
+ */
24
+ export declare function conditionVariable<T>(): CondVar<T>;
25
+ //# sourceMappingURL=condVar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"condVar.d.ts","sourceRoot":"","sources":["../../../../src/utils/src/concurrency/condVar.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAwB,MAAM,WAAW,CAAC;AAGjE,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI;IACvB,IAAI,EAAE,MAAM,SAAS,CAAC,CAAC,CAAC,CAAC;IACzB,IAAI,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,IAAI,CAAC;CACxB,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,CAyBjD"}
@@ -0,0 +1,39 @@
1
+ import { action, useScope } from "effection";
2
+ /**
3
+ * Allows blocking execution until a specific wake is called
4
+ *
5
+ * @example
6
+ * ```javascript
7
+ * const { wait, wake } = conditionVariable<void>();
8
+ * yield* spawn(function*() {
9
+ * console.log('start wait');
10
+ * yield* wait();
11
+ * console.log('done wait');
12
+ * });
13
+ *
14
+ * yield* sleep(1000);
15
+ * wait(); // allows the spawn to continue executing
16
+ * ```
17
+ *
18
+ * See [Condition variables](https://en.wikipedia.org/wiki/Monitor_%28synchronization%29#Condition_variables) for more information
19
+ */
20
+ export function conditionVariable() {
21
+ let continuations = [];
22
+ const wait = function* () {
23
+ const scope = yield* useScope();
24
+ return yield* action(function* (resolve, _reject) {
25
+ continuations.push({ resolve, scope });
26
+ });
27
+ };
28
+ const wake = (val) => {
29
+ const oldVal = continuations;
30
+ continuations = [];
31
+ for (const continuation of oldVal) {
32
+ // note: we explicitly do not await here
33
+ void continuation.scope.run(function* () {
34
+ continuation.resolve(val);
35
+ });
36
+ }
37
+ };
38
+ return { wait, wake };
39
+ }
@@ -0,0 +1,25 @@
1
+ import type { Operation } from "effection";
2
+ /**
3
+ * Allow blocking execution until counted down N times
4
+ *
5
+ * @example
6
+ * ```javascript
7
+ * const { wait, countDown } = countdownLatch(2);
8
+ * yield* spawn(function* () {
9
+ * yield* wait();
10
+ * console.log("done");
11
+ * });
12
+ *
13
+ * yield* sleep(1000);
14
+ * countDown();
15
+ * yield* sleep(1000);
16
+ * countDown();
17
+ * ```
18
+ *
19
+ * See [Barrier](https://en.wikipedia.org/wiki/Barrier_%28computer_science%29) for more information
20
+ */
21
+ export declare function countdownLatch<T>(count: number): {
22
+ wait: (timeout?: number) => Operation<void>;
23
+ countDown: () => void;
24
+ };
25
+ //# sourceMappingURL=latch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"latch.d.ts","sourceRoot":"","sources":["../../../../src/utils/src/concurrency/latch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAI3C;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAC9B,KAAK,EAAE,MAAM,GACZ;IACD,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,KAAK,SAAS,CAAC,IAAI,CAAC,CAAC;IAC5C,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB,CAgCA"}
@@ -0,0 +1,51 @@
1
+ import { action, race, sleep, spawn } from "effection";
2
+ import { conditionVariable } from "./condVar.js";
3
+ /**
4
+ * Allow blocking execution until counted down N times
5
+ *
6
+ * @example
7
+ * ```javascript
8
+ * const { wait, countDown } = countdownLatch(2);
9
+ * yield* spawn(function* () {
10
+ * yield* wait();
11
+ * console.log("done");
12
+ * });
13
+ *
14
+ * yield* sleep(1000);
15
+ * countDown();
16
+ * yield* sleep(1000);
17
+ * countDown();
18
+ * ```
19
+ *
20
+ * See [Barrier](https://en.wikipedia.org/wiki/Barrier_%28computer_science%29) for more information
21
+ */
22
+ export function countdownLatch(count) {
23
+ const vars = new Array(count).fill(null).map(() => conditionVariable());
24
+ let currIndex = 0;
25
+ const wait = (timeout) => action(function* (resolve, reject) {
26
+ // note: start at `currIndex` and not 0
27
+ // this is to support waiting on latches that have already started
28
+ const waitAll = yield* spawn(function* () {
29
+ for (let i = currIndex; i < count; i++) {
30
+ yield* vars[i].wait();
31
+ }
32
+ resolve();
33
+ });
34
+ if (timeout == null)
35
+ return yield* waitAll;
36
+ const rejectOnTimeout = yield* spawn(function* () {
37
+ yield* sleep(timeout);
38
+ reject(new Error("timeout"));
39
+ });
40
+ yield* race([waitAll, rejectOnTimeout]);
41
+ });
42
+ const countDown = () => {
43
+ if (currIndex >= count) {
44
+ return;
45
+ }
46
+ const oldValue = currIndex;
47
+ currIndex++;
48
+ vars[oldValue].wake();
49
+ };
50
+ return { wait, countDown };
51
+ }
@@ -0,0 +1,5 @@
1
+ export * from "./condVar.js";
2
+ export * from "./latch.js";
3
+ export * from "./retry.js";
4
+ export * from "./utils.js";
5
+ //# sourceMappingURL=mod.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../src/utils/src/concurrency/mod.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from "./condVar.js";
2
+ export * from "./latch.js";
3
+ export * from "./retry.js";
4
+ export * from "./utils.js";
@@ -0,0 +1,14 @@
1
+ import type { Operation } from "effection";
2
+ export declare function retry<Success, Failure = Success>(fn: () => Operation<Success | Failure>, isSuccess: (result: Success | Failure) => boolean, onRetry?: (failResult: Failure) => Operation<void>, maxAttempts?: number): Operation<Success>;
3
+ type Success<T> = {
4
+ data: T;
5
+ error: null;
6
+ };
7
+ type Failure<E> = {
8
+ data: null;
9
+ error: E;
10
+ };
11
+ type Result<T, E = Error> = Success<T> | Failure<E>;
12
+ export declare function tryYield<T, E = Error>(promise: Operation<T>): Operation<Result<T, E>>;
13
+ export {};
14
+ //# sourceMappingURL=retry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retry.d.ts","sourceRoot":"","sources":["../../../../src/utils/src/concurrency/retry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C,wBAAiB,KAAK,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,EAC/C,EAAE,EAAE,MAAM,SAAS,CAAC,OAAO,GAAG,OAAO,CAAC,EACtC,SAAS,EAAE,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,KAAK,OAAO,EACjD,OAAO,CAAC,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,SAAS,CAAC,IAAI,CAAC,EAClD,WAAW,CAAC,EAAE,MAAM,GACnB,SAAS,CAAC,OAAO,CAAC,CAQpB;AA6BD,KAAK,OAAO,CAAC,CAAC,IAAI;IAChB,IAAI,EAAE,CAAC,CAAC;IACR,KAAK,EAAE,IAAI,CAAC;CACb,CAAC;AAEF,KAAK,OAAO,CAAC,CAAC,IAAI;IAChB,IAAI,EAAE,IAAI,CAAC;IACX,KAAK,EAAE,CAAC,CAAC;CACV,CAAC;AAEF,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,GAAG,KAAK,IAAI,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;AAGpD,wBAAiB,QAAQ,CAAC,CAAC,EAAE,CAAC,GAAG,KAAK,EACpC,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,GACpB,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAOzB"}
@@ -0,0 +1,26 @@
1
+ export function* retry(fn, isSuccess, onRetry, maxAttempts) {
2
+ return yield* retryInternal(fn, isSuccess, 0, onRetry, maxAttempts);
3
+ }
4
+ function* retryInternal(fn, isSuccess, currAttempt, onRetry, maxAttempts) {
5
+ const result = yield* fn();
6
+ if (isSuccess(result)) {
7
+ return result;
8
+ }
9
+ if (onRetry != null) {
10
+ yield* onRetry(result);
11
+ }
12
+ if (maxAttempts == null || currAttempt !== maxAttempts) {
13
+ return yield* retryInternal(fn, isSuccess, currAttempt + 1, onRetry, maxAttempts);
14
+ }
15
+ throw new Error("Max attempts reached");
16
+ }
17
+ // Main wrapper function
18
+ export function* tryYield(promise) {
19
+ try {
20
+ const data = yield* promise;
21
+ return { data, error: null };
22
+ }
23
+ catch (error) {
24
+ return { data: null, error: error };
25
+ }
26
+ }
@@ -0,0 +1,27 @@
1
+ import type { Operation } from "effection";
2
+ /**
3
+ * Equivalent of Promise.then
4
+ */
5
+ export declare function then<A, B>(operation: Operation<A>, fn: (value: A) => Operation<B>): Operation<B>;
6
+ /**
7
+ * TODO: this is a better `then` since it's much easier to chain
8
+ * @example
9
+ export function then<A, B>(
10
+ fn: (value: A) => Operation<B>,
11
+ ): (operation: Operation<A>) => Operation<B> {
12
+ return function* (operation) {
13
+ return yield* fn(yield* operation);
14
+ };
15
+ }
16
+ * but the problem is that it relies on a `pipe` function
17
+ * that is only available in effection v4
18
+ * end-goal: api looks like this
19
+ * @example
20
+ pipe(
21
+ operation,
22
+ then(lift((val) => val * 2)),
23
+ then(lift((val) => String(val)),
24
+ then(lift((val) => val.toUpperCase())),
25
+ )
26
+ */
27
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/utils/src/concurrency/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C;;GAEG;AACH,wBAAiB,IAAI,CAAC,CAAC,EAAE,CAAC,EACxB,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,EACvB,EAAE,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,GAC7B,SAAS,CAAC,CAAC,CAAC,CAEd;AAED;;;;;;;;;;;;;;;;;;;;EAoBE"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Equivalent of Promise.then
3
+ */
4
+ export function* then(operation, fn) {
5
+ return yield* fn(yield* operation);
6
+ }
7
+ /**
8
+ * TODO: this is a better `then` since it's much easier to chain
9
+ * @example
10
+ export function then<A, B>(
11
+ fn: (value: A) => Operation<B>,
12
+ ): (operation: Operation<A>) => Operation<B> {
13
+ return function* (operation) {
14
+ return yield* fn(yield* operation);
15
+ };
16
+ }
17
+ * but the problem is that it relies on a `pipe` function
18
+ * that is only available in effection v4
19
+ * end-goal: api looks like this
20
+ * @example
21
+ pipe(
22
+ operation,
23
+ then(lift((val) => val * 2)),
24
+ then(lift((val) => String(val)),
25
+ then(lift((val) => val.toUpperCase())),
26
+ )
27
+ */
@@ -0,0 +1,4 @@
1
+ export declare const DYNAMIC_PRIMITIVE_NAME_SEPARATOR = "##";
2
+ export declare function generateDynamicPrimitivePrefix(parentName: string): string;
3
+ export declare function generateDynamicPrimitiveName(parentName: string, id: number): string;
4
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/utils/src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gCAAgC,OAAO,CAAC;AACrD,wBAAgB,8BAA8B,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAEzE;AACD,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,MAAM,EAClB,EAAE,EAAE,MAAM,GACT,MAAM,CAER"}
@@ -0,0 +1,7 @@
1
+ export const DYNAMIC_PRIMITIVE_NAME_SEPARATOR = "##";
2
+ export function generateDynamicPrimitivePrefix(parentName) {
3
+ return `${parentName}${DYNAMIC_PRIMITIVE_NAME_SEPARATOR}`;
4
+ }
5
+ export function generateDynamicPrimitiveName(parentName, id) {
6
+ return `${generateDynamicPrimitivePrefix(parentName)}${id}`;
7
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Avoids member functions having the wrong `this` value when passed as a function pointer.\
3
+ * AKA shortcut for `this.func.bind(this)`
4
+ *
5
+ * Taken form https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-0.html
6
+ *
7
+ * Careful: this can cause a segmentation fault on Deno (https://github.com/denoland/deno/issues/25192)
8
+ */
9
+ export declare function bound(_originalMethod: any, context: ClassMethodDecoratorContext<Record<string | symbol, any>>): void;
10
+ //# sourceMappingURL=bound.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bound.d.ts","sourceRoot":"","sources":["../../../../src/utils/src/decorators/bound.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,wBAAgB,KAAK,CACnB,eAAe,EAAE,GAAG,EACpB,OAAO,EAAE,2BAA2B,CAAC,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,GAAG,CAAC,CAAC,QAWnE"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Avoids member functions having the wrong `this` value when passed as a function pointer.\
3
+ * AKA shortcut for `this.func.bind(this)`
4
+ *
5
+ * Taken form https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-0.html
6
+ *
7
+ * Careful: this can cause a segmentation fault on Deno (https://github.com/denoland/deno/issues/25192)
8
+ */
9
+ export function bound(_originalMethod, context) {
10
+ const methodName = context.name;
11
+ if (context.private) {
12
+ throw new Error(`'bound' cannot decorate private properties like ${methodName}.`);
13
+ }
14
+ context.addInitializer(function () {
15
+ this[methodName] = this[methodName].bind(this);
16
+ });
17
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./bound.js";
2
+ //# sourceMappingURL=mod.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../src/utils/src/decorators/mod.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
@@ -0,0 +1 @@
1
+ export * from "./bound.js";
@@ -0,0 +1,8 @@
1
+ export * from "./types/mod.js";
2
+ export * from "./constants.js";
3
+ export * from "./viem.js";
4
+ export * from "./captcha.js";
5
+ export * from "./binary-search.js";
6
+ export * from "./concurrency/mod.js";
7
+ export * from "./decorators/mod.js";
8
+ //# sourceMappingURL=mod.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../src/utils/src/mod.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,7 @@
1
+ export * from "./types/mod.js";
2
+ export * from "./constants.js";
3
+ export * from "./viem.js";
4
+ export * from "./captcha.js";
5
+ export * from "./binary-search.js";
6
+ export * from "./concurrency/mod.js";
7
+ export * from "./decorators/mod.js";
@@ -0,0 +1,30 @@
1
+ export type ErrorCode = number;
2
+ export type ErrorMessageMapping = Record<ErrorCode, string>;
3
+ export type ErrorMessageFxn = (errorCode: ErrorCode) => string;
4
+ export interface SuccessfulResultMessage {
5
+ success: true;
6
+ message: string;
7
+ }
8
+ export interface SuccessfulResult<T> {
9
+ success: true;
10
+ result: T;
11
+ }
12
+ export interface FailedResult {
13
+ success: false;
14
+ errorMessage: string;
15
+ errorCode?: number;
16
+ }
17
+ export type Result<T> = SuccessfulResult<T> | FailedResult;
18
+ export type InternalServerErrorResult = FailedResult;
19
+ /** comes from the `tsoa` package, but we don't want it as a dependency just for this type */
20
+ export interface FieldErrors {
21
+ [name: string]: {
22
+ message: string;
23
+ value?: any;
24
+ };
25
+ }
26
+ export interface ValidateErrorResult {
27
+ message: "Validation Failed";
28
+ details?: FieldErrors;
29
+ }
30
+ //# sourceMappingURL=json-query.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"json-query.d.ts","sourceRoot":"","sources":["../../../../src/utils/src/types/json-query.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC;AAC/B,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;AAE5D,MAAM,MAAM,eAAe,GAAG,CAAC,SAAS,EAAE,SAAS,KAAK,MAAM,CAAC;AAE/D,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,IAAI,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,gBAAgB,CAAC,CAAC;IACjC,OAAO,EAAE,IAAI,CAAC;IACd,MAAM,EAAE,CAAC,CAAC;CACX;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,KAAK,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,MAAM,CAAC,CAAC,IAAI,gBAAgB,CAAC,CAAC,CAAC,GAAG,YAAY,CAAC;AAE3D,MAAM,MAAM,yBAAyB,GAAG,YAAY,CAAC;AAErD,8FAA8F;AAC9F,MAAM,WAAW,WAAW;IAC1B,CAAC,IAAI,EAAE,MAAM,GAAG;QACd,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,CAAC,EAAE,GAAG,CAAC;KACb,CAAC;CACH;AACD,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,mBAAmB,CAAC;IAC7B,OAAO,CAAC,EAAE,WAAW,CAAC;CACvB"}
@@ -0,0 +1 @@
1
+ export {};