@miradexio/client 0.1.0

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 (405) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +405 -0
  3. package/dist/address/base58.d.ts +9 -0
  4. package/dist/address/base58.d.ts.map +1 -0
  5. package/dist/address/base58.js +33 -0
  6. package/dist/address/base58.js.map +1 -0
  7. package/dist/address/bech32.d.ts +13 -0
  8. package/dist/address/bech32.d.ts.map +1 -0
  9. package/dist/address/bech32.js +41 -0
  10. package/dist/address/bech32.js.map +1 -0
  11. package/dist/address/evm.d.ts +5 -0
  12. package/dist/address/evm.d.ts.map +1 -0
  13. package/dist/address/evm.js +27 -0
  14. package/dist/address/evm.js.map +1 -0
  15. package/dist/address/index.d.ts +15 -0
  16. package/dist/address/index.d.ts.map +1 -0
  17. package/dist/address/index.js +134 -0
  18. package/dist/address/index.js.map +1 -0
  19. package/dist/address/monero.d.ts +15 -0
  20. package/dist/address/monero.d.ts.map +1 -0
  21. package/dist/address/monero.js +30 -0
  22. package/dist/address/monero.js.map +1 -0
  23. package/dist/address/polkadot.d.ts +10 -0
  24. package/dist/address/polkadot.d.ts.map +1 -0
  25. package/dist/address/polkadot.js +36 -0
  26. package/dist/address/polkadot.js.map +1 -0
  27. package/dist/address/solana.d.ts +5 -0
  28. package/dist/address/solana.d.ts.map +1 -0
  29. package/dist/address/solana.js +17 -0
  30. package/dist/address/solana.js.map +1 -0
  31. package/dist/address/ton.d.ts +11 -0
  32. package/dist/address/ton.d.ts.map +1 -0
  33. package/dist/address/ton.js +28 -0
  34. package/dist/address/ton.js.map +1 -0
  35. package/dist/api/index.d.ts +80 -0
  36. package/dist/api/index.d.ts.map +1 -0
  37. package/dist/api/index.js +213 -0
  38. package/dist/api/index.js.map +1 -0
  39. package/dist/atomic-swap/drive.d.ts +22 -0
  40. package/dist/atomic-swap/drive.d.ts.map +1 -0
  41. package/dist/atomic-swap/drive.js +713 -0
  42. package/dist/atomic-swap/drive.js.map +1 -0
  43. package/dist/atomic-swap/extract.d.ts +46 -0
  44. package/dist/atomic-swap/extract.d.ts.map +1 -0
  45. package/dist/atomic-swap/extract.js +55 -0
  46. package/dist/atomic-swap/extract.js.map +1 -0
  47. package/dist/atomic-swap/index.d.ts +15 -0
  48. package/dist/atomic-swap/index.d.ts.map +1 -0
  49. package/dist/atomic-swap/index.js +13 -0
  50. package/dist/atomic-swap/index.js.map +1 -0
  51. package/dist/atomic-swap/monero-sweep/errors.d.ts +2 -0
  52. package/dist/atomic-swap/monero-sweep/errors.d.ts.map +1 -0
  53. package/dist/atomic-swap/monero-sweep/errors.js +43 -0
  54. package/dist/atomic-swap/monero-sweep/errors.js.map +1 -0
  55. package/dist/atomic-swap/monero-sweep/index.d.ts +33 -0
  56. package/dist/atomic-swap/monero-sweep/index.d.ts.map +1 -0
  57. package/dist/atomic-swap/monero-sweep/index.js +415 -0
  58. package/dist/atomic-swap/monero-sweep/index.js.map +1 -0
  59. package/dist/atomic-swap/monero-sweep/ring-select.d.ts +12 -0
  60. package/dist/atomic-swap/monero-sweep/ring-select.d.ts.map +1 -0
  61. package/dist/atomic-swap/monero-sweep/ring-select.js +61 -0
  62. package/dist/atomic-swap/monero-sweep/ring-select.js.map +1 -0
  63. package/dist/atomic-swap/presign.d.ts +101 -0
  64. package/dist/atomic-swap/presign.d.ts.map +1 -0
  65. package/dist/atomic-swap/presign.js +460 -0
  66. package/dist/atomic-swap/presign.js.map +1 -0
  67. package/dist/atomic-swap/refund.d.ts +72 -0
  68. package/dist/atomic-swap/refund.d.ts.map +1 -0
  69. package/dist/atomic-swap/refund.js +224 -0
  70. package/dist/atomic-swap/refund.js.map +1 -0
  71. package/dist/atomic-swap/run.d.ts +27 -0
  72. package/dist/atomic-swap/run.d.ts.map +1 -0
  73. package/dist/atomic-swap/run.js +282 -0
  74. package/dist/atomic-swap/run.js.map +1 -0
  75. package/dist/atomic-swap/snapshot.d.ts +111 -0
  76. package/dist/atomic-swap/snapshot.d.ts.map +1 -0
  77. package/dist/atomic-swap/snapshot.js +69 -0
  78. package/dist/atomic-swap/snapshot.js.map +1 -0
  79. package/dist/atomic-swap/submit-encsig.d.ts +10 -0
  80. package/dist/atomic-swap/submit-encsig.d.ts.map +1 -0
  81. package/dist/atomic-swap/submit-encsig.js +56 -0
  82. package/dist/atomic-swap/submit-encsig.js.map +1 -0
  83. package/dist/atomic-swap/types.d.ts +168 -0
  84. package/dist/atomic-swap/types.d.ts.map +1 -0
  85. package/dist/atomic-swap/types.js +5 -0
  86. package/dist/atomic-swap/types.js.map +1 -0
  87. package/dist/blockchain/quorum-provider.d.ts +25 -0
  88. package/dist/blockchain/quorum-provider.d.ts.map +1 -0
  89. package/dist/blockchain/quorum-provider.js +144 -0
  90. package/dist/blockchain/quorum-provider.js.map +1 -0
  91. package/dist/cooperative-redeem.d.ts +23 -0
  92. package/dist/cooperative-redeem.d.ts.map +1 -0
  93. package/dist/cooperative-redeem.js +40 -0
  94. package/dist/cooperative-redeem.js.map +1 -0
  95. package/dist/engine/blockchain-querier.d.ts +34 -0
  96. package/dist/engine/blockchain-querier.d.ts.map +1 -0
  97. package/dist/engine/blockchain-querier.js +2 -0
  98. package/dist/engine/blockchain-querier.js.map +1 -0
  99. package/dist/engine/engine-state.d.ts +20 -0
  100. package/dist/engine/engine-state.d.ts.map +1 -0
  101. package/dist/engine/engine-state.js +9 -0
  102. package/dist/engine/engine-state.js.map +1 -0
  103. package/dist/engine/flow-context.d.ts +494 -0
  104. package/dist/engine/flow-context.d.ts.map +1 -0
  105. package/dist/engine/flow-context.js +147 -0
  106. package/dist/engine/flow-context.js.map +1 -0
  107. package/dist/engine/flows/atomic-flow-state.d.ts +124 -0
  108. package/dist/engine/flows/atomic-flow-state.d.ts.map +1 -0
  109. package/dist/engine/flows/atomic-flow-state.js +2 -0
  110. package/dist/engine/flows/atomic-flow-state.js.map +1 -0
  111. package/dist/engine/flows/atomic-flow.d.ts +88 -0
  112. package/dist/engine/flows/atomic-flow.d.ts.map +1 -0
  113. package/dist/engine/flows/atomic-flow.js +1192 -0
  114. package/dist/engine/flows/atomic-flow.js.map +1 -0
  115. package/dist/engine/flows/history-flow-state.d.ts +19 -0
  116. package/dist/engine/flows/history-flow-state.d.ts.map +1 -0
  117. package/dist/engine/flows/history-flow-state.js +2 -0
  118. package/dist/engine/flows/history-flow-state.js.map +1 -0
  119. package/dist/engine/flows/providers-flow-state.d.ts +14 -0
  120. package/dist/engine/flows/providers-flow-state.d.ts.map +1 -0
  121. package/dist/engine/flows/providers-flow-state.js +2 -0
  122. package/dist/engine/flows/providers-flow-state.js.map +1 -0
  123. package/dist/engine/flows/quote-flow-state.d.ts +20 -0
  124. package/dist/engine/flows/quote-flow-state.d.ts.map +1 -0
  125. package/dist/engine/flows/quote-flow-state.js +2 -0
  126. package/dist/engine/flows/quote-flow-state.js.map +1 -0
  127. package/dist/engine/flows/swap-flow-state.d.ts +155 -0
  128. package/dist/engine/flows/swap-flow-state.d.ts.map +1 -0
  129. package/dist/engine/flows/swap-flow-state.js +2 -0
  130. package/dist/engine/flows/swap-flow-state.js.map +1 -0
  131. package/dist/engine/flows/swap-flow.d.ts +81 -0
  132. package/dist/engine/flows/swap-flow.d.ts.map +1 -0
  133. package/dist/engine/flows/swap-flow.js +720 -0
  134. package/dist/engine/flows/swap-flow.js.map +1 -0
  135. package/dist/engine/flows/tokens-flow-state.d.ts +16 -0
  136. package/dist/engine/flows/tokens-flow-state.d.ts.map +1 -0
  137. package/dist/engine/flows/tokens-flow-state.js +2 -0
  138. package/dist/engine/flows/tokens-flow-state.js.map +1 -0
  139. package/dist/engine/miradex-engine.d.ts +152 -0
  140. package/dist/engine/miradex-engine.d.ts.map +1 -0
  141. package/dist/engine/miradex-engine.js +278 -0
  142. package/dist/engine/miradex-engine.js.map +1 -0
  143. package/dist/engine/pipeline.d.ts +27 -0
  144. package/dist/engine/pipeline.d.ts.map +1 -0
  145. package/dist/engine/pipeline.js +166 -0
  146. package/dist/engine/pipeline.js.map +1 -0
  147. package/dist/engine/platform.d.ts +220 -0
  148. package/dist/engine/platform.d.ts.map +1 -0
  149. package/dist/engine/platform.js +2 -0
  150. package/dist/engine/platform.js.map +1 -0
  151. package/dist/index.d.ts +85 -0
  152. package/dist/index.d.ts.map +1 -0
  153. package/dist/index.js +62 -0
  154. package/dist/index.js.map +1 -0
  155. package/dist/interfaces/blockchain.d.ts +33 -0
  156. package/dist/interfaces/blockchain.d.ts.map +1 -0
  157. package/dist/interfaces/blockchain.js +2 -0
  158. package/dist/interfaces/blockchain.js.map +1 -0
  159. package/dist/interfaces/logger.d.ts +14 -0
  160. package/dist/interfaces/logger.d.ts.map +1 -0
  161. package/dist/interfaces/logger.js +7 -0
  162. package/dist/interfaces/logger.js.map +1 -0
  163. package/dist/lib/bitcoin/deposit-watcher.d.ts +66 -0
  164. package/dist/lib/bitcoin/deposit-watcher.d.ts.map +1 -0
  165. package/dist/lib/bitcoin/deposit-watcher.js +218 -0
  166. package/dist/lib/bitcoin/deposit-watcher.js.map +1 -0
  167. package/dist/lib/bitcoin/script-hash.d.ts +8 -0
  168. package/dist/lib/bitcoin/script-hash.d.ts.map +1 -0
  169. package/dist/lib/bitcoin/script-hash.js +29 -0
  170. package/dist/lib/bitcoin/script-hash.js.map +1 -0
  171. package/dist/lib/bitcoin/sweep.d.ts +56 -0
  172. package/dist/lib/bitcoin/sweep.d.ts.map +1 -0
  173. package/dist/lib/bitcoin/sweep.js +185 -0
  174. package/dist/lib/bitcoin/sweep.js.map +1 -0
  175. package/dist/lib/bitcoin/tx-verify.d.ts +43 -0
  176. package/dist/lib/bitcoin/tx-verify.d.ts.map +1 -0
  177. package/dist/lib/bitcoin/tx-verify.js +202 -0
  178. package/dist/lib/bitcoin/tx-verify.js.map +1 -0
  179. package/dist/lib/bitcoin/wallet.d.ts +71 -0
  180. package/dist/lib/bitcoin/wallet.d.ts.map +1 -0
  181. package/dist/lib/bitcoin/wallet.js +141 -0
  182. package/dist/lib/bitcoin/wallet.js.map +1 -0
  183. package/dist/lib/crypto/bytes.d.ts +21 -0
  184. package/dist/lib/crypto/bytes.d.ts.map +1 -0
  185. package/dist/lib/crypto/bytes.js +39 -0
  186. package/dist/lib/crypto/bytes.js.map +1 -0
  187. package/dist/lib/crypto/errors.d.ts +12 -0
  188. package/dist/lib/crypto/errors.d.ts.map +1 -0
  189. package/dist/lib/crypto/errors.js +16 -0
  190. package/dist/lib/crypto/errors.js.map +1 -0
  191. package/dist/lib/crypto/keygen.d.ts +19 -0
  192. package/dist/lib/crypto/keygen.d.ts.map +1 -0
  193. package/dist/lib/crypto/keygen.js +24 -0
  194. package/dist/lib/crypto/keygen.js.map +1 -0
  195. package/dist/lib/crypto/libp2p-identity.d.ts +25 -0
  196. package/dist/lib/crypto/libp2p-identity.d.ts.map +1 -0
  197. package/dist/lib/crypto/libp2p-identity.js +80 -0
  198. package/dist/lib/crypto/libp2p-identity.js.map +1 -0
  199. package/dist/lib/crypto/mnemonic.d.ts +28 -0
  200. package/dist/lib/crypto/mnemonic.d.ts.map +1 -0
  201. package/dist/lib/crypto/mnemonic.js +97 -0
  202. package/dist/lib/crypto/mnemonic.js.map +1 -0
  203. package/dist/lib/crypto/platform.d.ts +10 -0
  204. package/dist/lib/crypto/platform.d.ts.map +1 -0
  205. package/dist/lib/crypto/platform.js +38 -0
  206. package/dist/lib/crypto/platform.js.map +1 -0
  207. package/dist/lib/crypto/scalars.d.ts +33 -0
  208. package/dist/lib/crypto/scalars.d.ts.map +1 -0
  209. package/dist/lib/crypto/scalars.js +81 -0
  210. package/dist/lib/crypto/scalars.js.map +1 -0
  211. package/dist/lib/crypto/types.d.ts +24 -0
  212. package/dist/lib/crypto/types.d.ts.map +1 -0
  213. package/dist/lib/crypto/types.js +2 -0
  214. package/dist/lib/crypto/types.js.map +1 -0
  215. package/dist/lib/crypto/wasm.d.ts +51 -0
  216. package/dist/lib/crypto/wasm.d.ts.map +1 -0
  217. package/dist/lib/crypto/wasm.js +192 -0
  218. package/dist/lib/crypto/wasm.js.map +1 -0
  219. package/dist/lib/default-config.d.ts +140 -0
  220. package/dist/lib/default-config.d.ts.map +1 -0
  221. package/dist/lib/default-config.js +239 -0
  222. package/dist/lib/default-config.js.map +1 -0
  223. package/dist/lib/delay.d.ts +6 -0
  224. package/dist/lib/delay.d.ts.map +1 -0
  225. package/dist/lib/delay.js +20 -0
  226. package/dist/lib/delay.js.map +1 -0
  227. package/dist/lib/errors.d.ts +90 -0
  228. package/dist/lib/errors.d.ts.map +1 -0
  229. package/dist/lib/errors.js +129 -0
  230. package/dist/lib/errors.js.map +1 -0
  231. package/dist/lib/format.d.ts +7 -0
  232. package/dist/lib/format.d.ts.map +1 -0
  233. package/dist/lib/format.js +43 -0
  234. package/dist/lib/format.js.map +1 -0
  235. package/dist/lib/keystore.d.ts +85 -0
  236. package/dist/lib/keystore.d.ts.map +1 -0
  237. package/dist/lib/keystore.js +105 -0
  238. package/dist/lib/keystore.js.map +1 -0
  239. package/dist/lib/monero/output-scanner.d.ts +53 -0
  240. package/dist/lib/monero/output-scanner.d.ts.map +1 -0
  241. package/dist/lib/monero/output-scanner.js +180 -0
  242. package/dist/lib/monero/output-scanner.js.map +1 -0
  243. package/dist/lib/monero/rpc.d.ts +131 -0
  244. package/dist/lib/monero/rpc.d.ts.map +1 -0
  245. package/dist/lib/monero/rpc.js +267 -0
  246. package/dist/lib/monero/rpc.js.map +1 -0
  247. package/dist/lib/monero/verify-lock.d.ts +50 -0
  248. package/dist/lib/monero/verify-lock.d.ts.map +1 -0
  249. package/dist/lib/monero/verify-lock.js +161 -0
  250. package/dist/lib/monero/verify-lock.js.map +1 -0
  251. package/dist/lib/monero/verify-sweep.d.ts +59 -0
  252. package/dist/lib/monero/verify-sweep.d.ts.map +1 -0
  253. package/dist/lib/monero/verify-sweep.js +82 -0
  254. package/dist/lib/monero/verify-sweep.js.map +1 -0
  255. package/dist/lib/monero/wasm.d.ts +19 -0
  256. package/dist/lib/monero/wasm.d.ts.map +1 -0
  257. package/dist/lib/monero/wasm.js +24 -0
  258. package/dist/lib/monero/wasm.js.map +1 -0
  259. package/dist/lib/pow-solver.d.ts +4 -0
  260. package/dist/lib/pow-solver.d.ts.map +1 -0
  261. package/dist/lib/pow-solver.js +37 -0
  262. package/dist/lib/pow-solver.js.map +1 -0
  263. package/dist/lib/retry.d.ts +86 -0
  264. package/dist/lib/retry.d.ts.map +1 -0
  265. package/dist/lib/retry.js +104 -0
  266. package/dist/lib/retry.js.map +1 -0
  267. package/dist/portable.d.ts +23 -0
  268. package/dist/portable.d.ts.map +1 -0
  269. package/dist/portable.js +13 -0
  270. package/dist/portable.js.map +1 -0
  271. package/dist/quote-binding.d.ts +31 -0
  272. package/dist/quote-binding.d.ts.map +1 -0
  273. package/dist/quote-binding.js +40 -0
  274. package/dist/quote-binding.js.map +1 -0
  275. package/dist/swap-executor.d.ts +51 -0
  276. package/dist/swap-executor.d.ts.map +1 -0
  277. package/dist/swap-executor.js +138 -0
  278. package/dist/swap-executor.js.map +1 -0
  279. package/dist/types/api.d.ts +34 -0
  280. package/dist/types/api.d.ts.map +1 -0
  281. package/dist/types/api.js +18 -0
  282. package/dist/types/api.js.map +1 -0
  283. package/dist/types/errors.d.ts +94 -0
  284. package/dist/types/errors.d.ts.map +1 -0
  285. package/dist/types/errors.js +93 -0
  286. package/dist/types/errors.js.map +1 -0
  287. package/dist/types/index.d.ts +8 -0
  288. package/dist/types/index.d.ts.map +1 -0
  289. package/dist/types/index.js +10 -0
  290. package/dist/types/index.js.map +1 -0
  291. package/dist/types/keys.d.ts +33 -0
  292. package/dist/types/keys.d.ts.map +1 -0
  293. package/dist/types/keys.js +2 -0
  294. package/dist/types/keys.js.map +1 -0
  295. package/dist/types/protocol.d.ts +93 -0
  296. package/dist/types/protocol.d.ts.map +1 -0
  297. package/dist/types/protocol.js +18 -0
  298. package/dist/types/protocol.js.map +1 -0
  299. package/dist/types/status.d.ts +3 -0
  300. package/dist/types/status.d.ts.map +1 -0
  301. package/dist/types/status.js +23 -0
  302. package/dist/types/status.js.map +1 -0
  303. package/dist/types/verification.d.ts +49 -0
  304. package/dist/types/verification.d.ts.map +1 -0
  305. package/dist/types/verification.js +34 -0
  306. package/dist/types/verification.js.map +1 -0
  307. package/dist/verification/atomic-swap.d.ts +9 -0
  308. package/dist/verification/atomic-swap.d.ts.map +1 -0
  309. package/dist/verification/atomic-swap.js +22 -0
  310. package/dist/verification/atomic-swap.js.map +1 -0
  311. package/dist/verification/chainflip-networks.d.ts +46 -0
  312. package/dist/verification/chainflip-networks.d.ts.map +1 -0
  313. package/dist/verification/chainflip-networks.js +24 -0
  314. package/dist/verification/chainflip-networks.js.map +1 -0
  315. package/dist/verification/chainflip.d.ts +61 -0
  316. package/dist/verification/chainflip.d.ts.map +1 -0
  317. package/dist/verification/chainflip.js +377 -0
  318. package/dist/verification/chainflip.js.map +1 -0
  319. package/dist/verification/constants.d.ts +52 -0
  320. package/dist/verification/constants.d.ts.map +1 -0
  321. package/dist/verification/constants.js +54 -0
  322. package/dist/verification/constants.js.map +1 -0
  323. package/dist/verification/index.d.ts +71 -0
  324. package/dist/verification/index.d.ts.map +1 -0
  325. package/dist/verification/index.js +91 -0
  326. package/dist/verification/index.js.map +1 -0
  327. package/dist/verification/memo.d.ts +27 -0
  328. package/dist/verification/memo.d.ts.map +1 -0
  329. package/dist/verification/memo.js +52 -0
  330. package/dist/verification/memo.js.map +1 -0
  331. package/dist/verification/near-intents.d.ts +91 -0
  332. package/dist/verification/near-intents.d.ts.map +1 -0
  333. package/dist/verification/near-intents.js +213 -0
  334. package/dist/verification/near-intents.js.map +1 -0
  335. package/dist/verification/rate-oracle.d.ts +32 -0
  336. package/dist/verification/rate-oracle.d.ts.map +1 -0
  337. package/dist/verification/rate-oracle.js +43 -0
  338. package/dist/verification/rate-oracle.js.map +1 -0
  339. package/dist/verification/shared.d.ts +20 -0
  340. package/dist/verification/shared.d.ts.map +1 -0
  341. package/dist/verification/shared.js +25 -0
  342. package/dist/verification/shared.js.map +1 -0
  343. package/dist/verification/thorchain-networks.d.ts +35 -0
  344. package/dist/verification/thorchain-networks.d.ts.map +1 -0
  345. package/dist/verification/thorchain-networks.js +35 -0
  346. package/dist/verification/thorchain-networks.js.map +1 -0
  347. package/dist/verification/thorchain.d.ts +55 -0
  348. package/dist/verification/thorchain.d.ts.map +1 -0
  349. package/dist/verification/thorchain.js +232 -0
  350. package/dist/verification/thorchain.js.map +1 -0
  351. package/dist/wasm-pins.d.ts +4 -0
  352. package/dist/wasm-pins.d.ts.map +1 -0
  353. package/dist/wasm-pins.js +6 -0
  354. package/dist/wasm-pins.js.map +1 -0
  355. package/dist/wire/chainflip.zod.d.ts +144 -0
  356. package/dist/wire/chainflip.zod.d.ts.map +1 -0
  357. package/dist/wire/chainflip.zod.js +33 -0
  358. package/dist/wire/chainflip.zod.js.map +1 -0
  359. package/dist/wire/near-intents.zod.d.ts +376 -0
  360. package/dist/wire/near-intents.zod.d.ts.map +1 -0
  361. package/dist/wire/near-intents.zod.js +101 -0
  362. package/dist/wire/near-intents.zod.js.map +1 -0
  363. package/dist/wire/server/action.zod.d.ts +1119 -0
  364. package/dist/wire/server/action.zod.d.ts.map +1 -0
  365. package/dist/wire/server/action.zod.js +173 -0
  366. package/dist/wire/server/action.zod.js.map +1 -0
  367. package/dist/wire/server/common.zod.d.ts +62 -0
  368. package/dist/wire/server/common.zod.d.ts.map +1 -0
  369. package/dist/wire/server/common.zod.js +43 -0
  370. package/dist/wire/server/common.zod.js.map +1 -0
  371. package/dist/wire/server/index.d.ts +8 -0
  372. package/dist/wire/server/index.d.ts.map +1 -0
  373. package/dist/wire/server/index.js +8 -0
  374. package/dist/wire/server/index.js.map +1 -0
  375. package/dist/wire/server/pow.zod.d.ts +45 -0
  376. package/dist/wire/server/pow.zod.d.ts.map +1 -0
  377. package/dist/wire/server/pow.zod.js +18 -0
  378. package/dist/wire/server/pow.zod.js.map +1 -0
  379. package/dist/wire/server/quotes.zod.d.ts +694 -0
  380. package/dist/wire/server/quotes.zod.d.ts.map +1 -0
  381. package/dist/wire/server/quotes.zod.js +103 -0
  382. package/dist/wire/server/quotes.zod.js.map +1 -0
  383. package/dist/wire/server/swap.zod.d.ts +1981 -0
  384. package/dist/wire/server/swap.zod.d.ts.map +1 -0
  385. package/dist/wire/server/swap.zod.js +270 -0
  386. package/dist/wire/server/swap.zod.js.map +1 -0
  387. package/dist/wire/server/tokens.zod.d.ts +93 -0
  388. package/dist/wire/server/tokens.zod.d.ts.map +1 -0
  389. package/dist/wire/server/tokens.zod.js +28 -0
  390. package/dist/wire/server/tokens.zod.js.map +1 -0
  391. package/dist/wire/server/verify.zod.d.ts +30 -0
  392. package/dist/wire/server/verify.zod.d.ts.map +1 -0
  393. package/dist/wire/server/verify.zod.js +12 -0
  394. package/dist/wire/server/verify.zod.js.map +1 -0
  395. package/dist/wire/thorchain.zod.d.ts +224 -0
  396. package/dist/wire/thorchain.zod.d.ts.map +1 -0
  397. package/dist/wire/thorchain.zod.js +51 -0
  398. package/dist/wire/thorchain.zod.js.map +1 -0
  399. package/package.json +128 -0
  400. package/wasm/miradex-rust/README.md +74 -0
  401. package/wasm/miradex-rust/miradex_rust.d.ts +149 -0
  402. package/wasm/miradex-rust/miradex_rust.js +943 -0
  403. package/wasm/miradex-rust/miradex_rust_bg.wasm +0 -0
  404. package/wasm/miradex-rust/miradex_rust_bg.wasm.d.ts +31 -0
  405. package/wasm/miradex-rust/package.json +24 -0
@@ -0,0 +1,694 @@
1
+ import { z } from 'zod';
2
+ export declare const swapFeeSchema: z.ZodObject<{
3
+ type: z.ZodString;
4
+ amount: z.ZodString;
5
+ token: z.ZodString;
6
+ }, "strip", z.ZodTypeAny, {
7
+ type: string;
8
+ amount: string;
9
+ token: string;
10
+ }, {
11
+ type: string;
12
+ amount: string;
13
+ token: string;
14
+ }>;
15
+ export type SwapFee = z.infer<typeof swapFeeSchema>;
16
+ export declare const swapQuoteSchema: z.ZodObject<{
17
+ provider: z.ZodUnion<[z.ZodEnum<["thorchain", "chainflip", "near_intents", "atomicswap"]>, z.ZodEffects<z.ZodString, `unknown:${string}`, string>]>;
18
+ variantId: z.ZodString;
19
+ variantLabel: z.ZodString;
20
+ expectedOutput: z.ZodString;
21
+ fromChain: z.ZodString;
22
+ toChain: z.ZodString;
23
+ estimatedDurationSeconds: z.ZodNullable<z.ZodNumber>;
24
+ fees: z.ZodArray<z.ZodObject<{
25
+ type: z.ZodString;
26
+ amount: z.ZodString;
27
+ token: z.ZodString;
28
+ }, "strip", z.ZodTypeAny, {
29
+ type: string;
30
+ amount: string;
31
+ token: string;
32
+ }, {
33
+ type: string;
34
+ amount: string;
35
+ token: string;
36
+ }>, "many">;
37
+ recommendedSlippageBps: z.ZodNullable<z.ZodNumber>;
38
+ minAmount: z.ZodNullable<z.ZodString>;
39
+ maxAmount: z.ZodNullable<z.ZodString>;
40
+ expectedOutputUsd: z.ZodNullable<z.ZodString>;
41
+ priceImpactPct: z.ZodNullable<z.ZodString>;
42
+ precision: z.ZodUnion<[z.ZodEnum<["exact", "indicative"]>, z.ZodEffects<z.ZodString, `unknown:${string}`, string>]>;
43
+ }, "strip", z.ZodTypeAny, {
44
+ provider: `unknown:${string}` | "thorchain" | "chainflip" | "near_intents" | "atomicswap";
45
+ variantId: string;
46
+ variantLabel: string;
47
+ expectedOutput: string;
48
+ fromChain: string;
49
+ toChain: string;
50
+ estimatedDurationSeconds: number | null;
51
+ fees: {
52
+ type: string;
53
+ amount: string;
54
+ token: string;
55
+ }[];
56
+ recommendedSlippageBps: number | null;
57
+ minAmount: string | null;
58
+ maxAmount: string | null;
59
+ expectedOutputUsd: string | null;
60
+ priceImpactPct: string | null;
61
+ precision: "exact" | `unknown:${string}` | "indicative";
62
+ }, {
63
+ provider: string;
64
+ variantId: string;
65
+ variantLabel: string;
66
+ expectedOutput: string;
67
+ fromChain: string;
68
+ toChain: string;
69
+ estimatedDurationSeconds: number | null;
70
+ fees: {
71
+ type: string;
72
+ amount: string;
73
+ token: string;
74
+ }[];
75
+ recommendedSlippageBps: number | null;
76
+ minAmount: string | null;
77
+ maxAmount: string | null;
78
+ expectedOutputUsd: string | null;
79
+ priceImpactPct: string | null;
80
+ precision: string;
81
+ }>;
82
+ export type SwapQuote = z.infer<typeof swapQuoteSchema>;
83
+ export declare const quotesResponseSchema: z.ZodObject<{
84
+ from: z.ZodString;
85
+ to: z.ZodString;
86
+ amount: z.ZodString;
87
+ amountInUsd: z.ZodNullable<z.ZodString>;
88
+ quotes: z.ZodArray<z.ZodObject<{
89
+ provider: z.ZodUnion<[z.ZodEnum<["thorchain", "chainflip", "near_intents", "atomicswap"]>, z.ZodEffects<z.ZodString, `unknown:${string}`, string>]>;
90
+ variantId: z.ZodString;
91
+ variantLabel: z.ZodString;
92
+ expectedOutput: z.ZodString;
93
+ fromChain: z.ZodString;
94
+ toChain: z.ZodString;
95
+ estimatedDurationSeconds: z.ZodNullable<z.ZodNumber>;
96
+ fees: z.ZodArray<z.ZodObject<{
97
+ type: z.ZodString;
98
+ amount: z.ZodString;
99
+ token: z.ZodString;
100
+ }, "strip", z.ZodTypeAny, {
101
+ type: string;
102
+ amount: string;
103
+ token: string;
104
+ }, {
105
+ type: string;
106
+ amount: string;
107
+ token: string;
108
+ }>, "many">;
109
+ recommendedSlippageBps: z.ZodNullable<z.ZodNumber>;
110
+ minAmount: z.ZodNullable<z.ZodString>;
111
+ maxAmount: z.ZodNullable<z.ZodString>;
112
+ expectedOutputUsd: z.ZodNullable<z.ZodString>;
113
+ priceImpactPct: z.ZodNullable<z.ZodString>;
114
+ precision: z.ZodUnion<[z.ZodEnum<["exact", "indicative"]>, z.ZodEffects<z.ZodString, `unknown:${string}`, string>]>;
115
+ }, "strip", z.ZodTypeAny, {
116
+ provider: `unknown:${string}` | "thorchain" | "chainflip" | "near_intents" | "atomicswap";
117
+ variantId: string;
118
+ variantLabel: string;
119
+ expectedOutput: string;
120
+ fromChain: string;
121
+ toChain: string;
122
+ estimatedDurationSeconds: number | null;
123
+ fees: {
124
+ type: string;
125
+ amount: string;
126
+ token: string;
127
+ }[];
128
+ recommendedSlippageBps: number | null;
129
+ minAmount: string | null;
130
+ maxAmount: string | null;
131
+ expectedOutputUsd: string | null;
132
+ priceImpactPct: string | null;
133
+ precision: "exact" | `unknown:${string}` | "indicative";
134
+ }, {
135
+ provider: string;
136
+ variantId: string;
137
+ variantLabel: string;
138
+ expectedOutput: string;
139
+ fromChain: string;
140
+ toChain: string;
141
+ estimatedDurationSeconds: number | null;
142
+ fees: {
143
+ type: string;
144
+ amount: string;
145
+ token: string;
146
+ }[];
147
+ recommendedSlippageBps: number | null;
148
+ minAmount: string | null;
149
+ maxAmount: string | null;
150
+ expectedOutputUsd: string | null;
151
+ priceImpactPct: string | null;
152
+ precision: string;
153
+ }>, "many">;
154
+ cachedAt: z.ZodNullable<z.ZodString>;
155
+ source: z.ZodUnion<[z.ZodEnum<["cache", "api", "stale"]>, z.ZodEffects<z.ZodString, `unknown:${string}`, string>]>;
156
+ }, "strip", z.ZodTypeAny, {
157
+ amount: string;
158
+ from: string;
159
+ to: string;
160
+ amountInUsd: string | null;
161
+ quotes: {
162
+ provider: `unknown:${string}` | "thorchain" | "chainflip" | "near_intents" | "atomicswap";
163
+ variantId: string;
164
+ variantLabel: string;
165
+ expectedOutput: string;
166
+ fromChain: string;
167
+ toChain: string;
168
+ estimatedDurationSeconds: number | null;
169
+ fees: {
170
+ type: string;
171
+ amount: string;
172
+ token: string;
173
+ }[];
174
+ recommendedSlippageBps: number | null;
175
+ minAmount: string | null;
176
+ maxAmount: string | null;
177
+ expectedOutputUsd: string | null;
178
+ priceImpactPct: string | null;
179
+ precision: "exact" | `unknown:${string}` | "indicative";
180
+ }[];
181
+ cachedAt: string | null;
182
+ source: `unknown:${string}` | "cache" | "api" | "stale";
183
+ }, {
184
+ amount: string;
185
+ from: string;
186
+ to: string;
187
+ amountInUsd: string | null;
188
+ quotes: {
189
+ provider: string;
190
+ variantId: string;
191
+ variantLabel: string;
192
+ expectedOutput: string;
193
+ fromChain: string;
194
+ toChain: string;
195
+ estimatedDurationSeconds: number | null;
196
+ fees: {
197
+ type: string;
198
+ amount: string;
199
+ token: string;
200
+ }[];
201
+ recommendedSlippageBps: number | null;
202
+ minAmount: string | null;
203
+ maxAmount: string | null;
204
+ expectedOutputUsd: string | null;
205
+ priceImpactPct: string | null;
206
+ precision: string;
207
+ }[];
208
+ cachedAt: string | null;
209
+ source: string;
210
+ }>;
211
+ export type QuotesResponse = z.infer<typeof quotesResponseSchema>;
212
+ export declare const rateResponseSchema: z.ZodObject<{
213
+ from: z.ZodString;
214
+ to: z.ZodString;
215
+ rates: z.ZodArray<z.ZodObject<{
216
+ provider: z.ZodUnion<[z.ZodEnum<["thorchain", "chainflip", "near_intents", "atomicswap"]>, z.ZodEffects<z.ZodString, `unknown:${string}`, string>]>;
217
+ rate: z.ZodString;
218
+ inverseRate: z.ZodString;
219
+ estimatedDurationSeconds: z.ZodNullable<z.ZodNumber>;
220
+ cachedAt: z.ZodNullable<z.ZodString>;
221
+ }, "strip", z.ZodTypeAny, {
222
+ provider: `unknown:${string}` | "thorchain" | "chainflip" | "near_intents" | "atomicswap";
223
+ estimatedDurationSeconds: number | null;
224
+ cachedAt: string | null;
225
+ rate: string;
226
+ inverseRate: string;
227
+ }, {
228
+ provider: string;
229
+ estimatedDurationSeconds: number | null;
230
+ cachedAt: string | null;
231
+ rate: string;
232
+ inverseRate: string;
233
+ }>, "many">;
234
+ source: z.ZodUnion<[z.ZodEnum<["cache", "api", "stale"]>, z.ZodEffects<z.ZodString, `unknown:${string}`, string>]>;
235
+ }, "strip", z.ZodTypeAny, {
236
+ from: string;
237
+ to: string;
238
+ source: `unknown:${string}` | "cache" | "api" | "stale";
239
+ rates: {
240
+ provider: `unknown:${string}` | "thorchain" | "chainflip" | "near_intents" | "atomicswap";
241
+ estimatedDurationSeconds: number | null;
242
+ cachedAt: string | null;
243
+ rate: string;
244
+ inverseRate: string;
245
+ }[];
246
+ }, {
247
+ from: string;
248
+ to: string;
249
+ source: string;
250
+ rates: {
251
+ provider: string;
252
+ estimatedDurationSeconds: number | null;
253
+ cachedAt: string | null;
254
+ rate: string;
255
+ inverseRate: string;
256
+ }[];
257
+ }>;
258
+ export type RateResponse = z.infer<typeof rateResponseSchema>;
259
+ export declare const limitsResponseSchema: z.ZodObject<{
260
+ from: z.ZodString;
261
+ to: z.ZodString;
262
+ limits: z.ZodArray<z.ZodObject<{
263
+ provider: z.ZodUnion<[z.ZodEnum<["thorchain", "chainflip", "near_intents", "atomicswap"]>, z.ZodEffects<z.ZodString, `unknown:${string}`, string>]>;
264
+ minAmount: z.ZodNullable<z.ZodString>;
265
+ maxAmount: z.ZodNullable<z.ZodString>;
266
+ minAmountUsd: z.ZodNullable<z.ZodString>;
267
+ maxAmountUsd: z.ZodNullable<z.ZodString>;
268
+ }, "strip", z.ZodTypeAny, {
269
+ provider: `unknown:${string}` | "thorchain" | "chainflip" | "near_intents" | "atomicswap";
270
+ minAmountUsd: string | null;
271
+ minAmount: string | null;
272
+ maxAmount: string | null;
273
+ maxAmountUsd: string | null;
274
+ }, {
275
+ provider: string;
276
+ minAmountUsd: string | null;
277
+ minAmount: string | null;
278
+ maxAmount: string | null;
279
+ maxAmountUsd: string | null;
280
+ }>, "many">;
281
+ }, "strip", z.ZodTypeAny, {
282
+ from: string;
283
+ to: string;
284
+ limits: {
285
+ provider: `unknown:${string}` | "thorchain" | "chainflip" | "near_intents" | "atomicswap";
286
+ minAmountUsd: string | null;
287
+ minAmount: string | null;
288
+ maxAmount: string | null;
289
+ maxAmountUsd: string | null;
290
+ }[];
291
+ }, {
292
+ from: string;
293
+ to: string;
294
+ limits: {
295
+ provider: string;
296
+ minAmountUsd: string | null;
297
+ minAmount: string | null;
298
+ maxAmount: string | null;
299
+ maxAmountUsd: string | null;
300
+ }[];
301
+ }>;
302
+ export type LimitsResponse = z.infer<typeof limitsResponseSchema>;
303
+ export declare const providerInfoSchema: z.ZodObject<{
304
+ provider: z.ZodUnion<[z.ZodEnum<["thorchain", "chainflip", "near_intents", "atomicswap"]>, z.ZodEffects<z.ZodString, `unknown:${string}`, string>]>;
305
+ available: z.ZodBoolean;
306
+ latencyMs: z.ZodNullable<z.ZodNumber>;
307
+ chains: z.ZodArray<z.ZodString, "many">;
308
+ lastCheckedAt: z.ZodString;
309
+ }, "strip", z.ZodTypeAny, {
310
+ provider: `unknown:${string}` | "thorchain" | "chainflip" | "near_intents" | "atomicswap";
311
+ available: boolean;
312
+ latencyMs: number | null;
313
+ chains: string[];
314
+ lastCheckedAt: string;
315
+ }, {
316
+ provider: string;
317
+ available: boolean;
318
+ latencyMs: number | null;
319
+ chains: string[];
320
+ lastCheckedAt: string;
321
+ }>;
322
+ export type ProviderInfo = z.infer<typeof providerInfoSchema>;
323
+ export declare const providersResponseSchema: z.ZodObject<{
324
+ providers: z.ZodArray<z.ZodObject<{
325
+ provider: z.ZodUnion<[z.ZodEnum<["thorchain", "chainflip", "near_intents", "atomicswap"]>, z.ZodEffects<z.ZodString, `unknown:${string}`, string>]>;
326
+ available: z.ZodBoolean;
327
+ latencyMs: z.ZodNullable<z.ZodNumber>;
328
+ chains: z.ZodArray<z.ZodString, "many">;
329
+ lastCheckedAt: z.ZodString;
330
+ }, "strip", z.ZodTypeAny, {
331
+ provider: `unknown:${string}` | "thorchain" | "chainflip" | "near_intents" | "atomicswap";
332
+ available: boolean;
333
+ latencyMs: number | null;
334
+ chains: string[];
335
+ lastCheckedAt: string;
336
+ }, {
337
+ provider: string;
338
+ available: boolean;
339
+ latencyMs: number | null;
340
+ chains: string[];
341
+ lastCheckedAt: string;
342
+ }>, "many">;
343
+ }, "strip", z.ZodTypeAny, {
344
+ providers: {
345
+ provider: `unknown:${string}` | "thorchain" | "chainflip" | "near_intents" | "atomicswap";
346
+ available: boolean;
347
+ latencyMs: number | null;
348
+ chains: string[];
349
+ lastCheckedAt: string;
350
+ }[];
351
+ }, {
352
+ providers: {
353
+ provider: string;
354
+ available: boolean;
355
+ latencyMs: number | null;
356
+ chains: string[];
357
+ lastCheckedAt: string;
358
+ }[];
359
+ }>;
360
+ export type ProvidersResponse = z.infer<typeof providersResponseSchema>;
361
+ declare const liquidityTypeSchema: z.ZodUnion<[z.ZodEnum<["amm-pool", "intents", "p2p-makers"]>, z.ZodEffects<z.ZodString, `unknown:${string}`, string>]>;
362
+ export type LiquidityType = z.infer<typeof liquidityTypeSchema>;
363
+ declare const liquiditySourceSchema: z.ZodUnion<[z.ZodEnum<["cache", "api"]>, z.ZodEffects<z.ZodString, `unknown:${string}`, string>]>;
364
+ export type LiquiditySource = z.infer<typeof liquiditySourceSchema>;
365
+ declare const providerLiquidityOutcomeSchema: z.ZodUnion<[z.ZodEnum<["ok", "error", "unavailable"]>, z.ZodEffects<z.ZodString, `unknown:${string}`, string>]>;
366
+ export type ProviderLiquidityOutcome = z.infer<typeof providerLiquidityOutcomeSchema>;
367
+ export declare const liquidityEntrySchema: z.ZodObject<{
368
+ token: z.ZodString;
369
+ id: z.ZodString;
370
+ amount: z.ZodNullable<z.ZodString>;
371
+ amountUsd: z.ZodNullable<z.ZodString>;
372
+ volume24hUsd: z.ZodNullable<z.ZodString>;
373
+ status: z.ZodString;
374
+ }, "strip", z.ZodTypeAny, {
375
+ status: string;
376
+ amount: string | null;
377
+ token: string;
378
+ id: string;
379
+ amountUsd: string | null;
380
+ volume24hUsd: string | null;
381
+ }, {
382
+ status: string;
383
+ amount: string | null;
384
+ token: string;
385
+ id: string;
386
+ amountUsd: string | null;
387
+ volume24hUsd: string | null;
388
+ }>;
389
+ export type LiquidityEntry = z.infer<typeof liquidityEntrySchema>;
390
+ export declare const providerLiquidityDataSchema: z.ZodObject<{
391
+ type: z.ZodUnion<[z.ZodEnum<["amm-pool", "intents", "p2p-makers"]>, z.ZodEffects<z.ZodString, `unknown:${string}`, string>]>;
392
+ entries: z.ZodArray<z.ZodObject<{
393
+ token: z.ZodString;
394
+ id: z.ZodString;
395
+ amount: z.ZodNullable<z.ZodString>;
396
+ amountUsd: z.ZodNullable<z.ZodString>;
397
+ volume24hUsd: z.ZodNullable<z.ZodString>;
398
+ status: z.ZodString;
399
+ }, "strip", z.ZodTypeAny, {
400
+ status: string;
401
+ amount: string | null;
402
+ token: string;
403
+ id: string;
404
+ amountUsd: string | null;
405
+ volume24hUsd: string | null;
406
+ }, {
407
+ status: string;
408
+ amount: string | null;
409
+ token: string;
410
+ id: string;
411
+ amountUsd: string | null;
412
+ volume24hUsd: string | null;
413
+ }>, "many">;
414
+ }, "strip", z.ZodTypeAny, {
415
+ entries: {
416
+ status: string;
417
+ amount: string | null;
418
+ token: string;
419
+ id: string;
420
+ amountUsd: string | null;
421
+ volume24hUsd: string | null;
422
+ }[];
423
+ type: `unknown:${string}` | "amm-pool" | "intents" | "p2p-makers";
424
+ }, {
425
+ entries: {
426
+ status: string;
427
+ amount: string | null;
428
+ token: string;
429
+ id: string;
430
+ amountUsd: string | null;
431
+ volume24hUsd: string | null;
432
+ }[];
433
+ type: string;
434
+ }>;
435
+ export type ProviderLiquidityData = z.infer<typeof providerLiquidityDataSchema>;
436
+ export declare const providerLiquidityEntrySchema: z.ZodObject<{
437
+ provider: z.ZodUnion<[z.ZodEnum<["thorchain", "chainflip", "near_intents", "atomicswap"]>, z.ZodEffects<z.ZodString, `unknown:${string}`, string>]>;
438
+ status: z.ZodUnion<[z.ZodEnum<["ok", "error", "unavailable"]>, z.ZodEffects<z.ZodString, `unknown:${string}`, string>]>;
439
+ error: z.ZodNullable<z.ZodString>;
440
+ fetchedAt: z.ZodString;
441
+ liquidity: z.ZodNullable<z.ZodObject<{
442
+ type: z.ZodUnion<[z.ZodEnum<["amm-pool", "intents", "p2p-makers"]>, z.ZodEffects<z.ZodString, `unknown:${string}`, string>]>;
443
+ entries: z.ZodArray<z.ZodObject<{
444
+ token: z.ZodString;
445
+ id: z.ZodString;
446
+ amount: z.ZodNullable<z.ZodString>;
447
+ amountUsd: z.ZodNullable<z.ZodString>;
448
+ volume24hUsd: z.ZodNullable<z.ZodString>;
449
+ status: z.ZodString;
450
+ }, "strip", z.ZodTypeAny, {
451
+ status: string;
452
+ amount: string | null;
453
+ token: string;
454
+ id: string;
455
+ amountUsd: string | null;
456
+ volume24hUsd: string | null;
457
+ }, {
458
+ status: string;
459
+ amount: string | null;
460
+ token: string;
461
+ id: string;
462
+ amountUsd: string | null;
463
+ volume24hUsd: string | null;
464
+ }>, "many">;
465
+ }, "strip", z.ZodTypeAny, {
466
+ entries: {
467
+ status: string;
468
+ amount: string | null;
469
+ token: string;
470
+ id: string;
471
+ amountUsd: string | null;
472
+ volume24hUsd: string | null;
473
+ }[];
474
+ type: `unknown:${string}` | "amm-pool" | "intents" | "p2p-makers";
475
+ }, {
476
+ entries: {
477
+ status: string;
478
+ amount: string | null;
479
+ token: string;
480
+ id: string;
481
+ amountUsd: string | null;
482
+ volume24hUsd: string | null;
483
+ }[];
484
+ type: string;
485
+ }>>;
486
+ }, "strip", z.ZodTypeAny, {
487
+ status: `unknown:${string}` | "error" | "ok" | "unavailable";
488
+ error: string | null;
489
+ provider: `unknown:${string}` | "thorchain" | "chainflip" | "near_intents" | "atomicswap";
490
+ fetchedAt: string;
491
+ liquidity: {
492
+ entries: {
493
+ status: string;
494
+ amount: string | null;
495
+ token: string;
496
+ id: string;
497
+ amountUsd: string | null;
498
+ volume24hUsd: string | null;
499
+ }[];
500
+ type: `unknown:${string}` | "amm-pool" | "intents" | "p2p-makers";
501
+ } | null;
502
+ }, {
503
+ status: string;
504
+ error: string | null;
505
+ provider: string;
506
+ fetchedAt: string;
507
+ liquidity: {
508
+ entries: {
509
+ status: string;
510
+ amount: string | null;
511
+ token: string;
512
+ id: string;
513
+ amountUsd: string | null;
514
+ volume24hUsd: string | null;
515
+ }[];
516
+ type: string;
517
+ } | null;
518
+ }>;
519
+ export type ProviderLiquidityEntry = z.infer<typeof providerLiquidityEntrySchema>;
520
+ export declare const liquidityTotalsSchema: z.ZodObject<{
521
+ volume24hUsd: z.ZodNullable<z.ZodString>;
522
+ onlineProviderCount: z.ZodNumber;
523
+ errorProviderCount: z.ZodNumber;
524
+ entryCount: z.ZodNumber;
525
+ }, "strip", z.ZodTypeAny, {
526
+ volume24hUsd: string | null;
527
+ onlineProviderCount: number;
528
+ errorProviderCount: number;
529
+ entryCount: number;
530
+ }, {
531
+ volume24hUsd: string | null;
532
+ onlineProviderCount: number;
533
+ errorProviderCount: number;
534
+ entryCount: number;
535
+ }>;
536
+ export type LiquidityTotals = z.infer<typeof liquidityTotalsSchema>;
537
+ export declare const liquidityResponseSchema: z.ZodObject<{
538
+ providers: z.ZodArray<z.ZodObject<{
539
+ provider: z.ZodUnion<[z.ZodEnum<["thorchain", "chainflip", "near_intents", "atomicswap"]>, z.ZodEffects<z.ZodString, `unknown:${string}`, string>]>;
540
+ status: z.ZodUnion<[z.ZodEnum<["ok", "error", "unavailable"]>, z.ZodEffects<z.ZodString, `unknown:${string}`, string>]>;
541
+ error: z.ZodNullable<z.ZodString>;
542
+ fetchedAt: z.ZodString;
543
+ liquidity: z.ZodNullable<z.ZodObject<{
544
+ type: z.ZodUnion<[z.ZodEnum<["amm-pool", "intents", "p2p-makers"]>, z.ZodEffects<z.ZodString, `unknown:${string}`, string>]>;
545
+ entries: z.ZodArray<z.ZodObject<{
546
+ token: z.ZodString;
547
+ id: z.ZodString;
548
+ amount: z.ZodNullable<z.ZodString>;
549
+ amountUsd: z.ZodNullable<z.ZodString>;
550
+ volume24hUsd: z.ZodNullable<z.ZodString>;
551
+ status: z.ZodString;
552
+ }, "strip", z.ZodTypeAny, {
553
+ status: string;
554
+ amount: string | null;
555
+ token: string;
556
+ id: string;
557
+ amountUsd: string | null;
558
+ volume24hUsd: string | null;
559
+ }, {
560
+ status: string;
561
+ amount: string | null;
562
+ token: string;
563
+ id: string;
564
+ amountUsd: string | null;
565
+ volume24hUsd: string | null;
566
+ }>, "many">;
567
+ }, "strip", z.ZodTypeAny, {
568
+ entries: {
569
+ status: string;
570
+ amount: string | null;
571
+ token: string;
572
+ id: string;
573
+ amountUsd: string | null;
574
+ volume24hUsd: string | null;
575
+ }[];
576
+ type: `unknown:${string}` | "amm-pool" | "intents" | "p2p-makers";
577
+ }, {
578
+ entries: {
579
+ status: string;
580
+ amount: string | null;
581
+ token: string;
582
+ id: string;
583
+ amountUsd: string | null;
584
+ volume24hUsd: string | null;
585
+ }[];
586
+ type: string;
587
+ }>>;
588
+ }, "strip", z.ZodTypeAny, {
589
+ status: `unknown:${string}` | "error" | "ok" | "unavailable";
590
+ error: string | null;
591
+ provider: `unknown:${string}` | "thorchain" | "chainflip" | "near_intents" | "atomicswap";
592
+ fetchedAt: string;
593
+ liquidity: {
594
+ entries: {
595
+ status: string;
596
+ amount: string | null;
597
+ token: string;
598
+ id: string;
599
+ amountUsd: string | null;
600
+ volume24hUsd: string | null;
601
+ }[];
602
+ type: `unknown:${string}` | "amm-pool" | "intents" | "p2p-makers";
603
+ } | null;
604
+ }, {
605
+ status: string;
606
+ error: string | null;
607
+ provider: string;
608
+ fetchedAt: string;
609
+ liquidity: {
610
+ entries: {
611
+ status: string;
612
+ amount: string | null;
613
+ token: string;
614
+ id: string;
615
+ amountUsd: string | null;
616
+ volume24hUsd: string | null;
617
+ }[];
618
+ type: string;
619
+ } | null;
620
+ }>, "many">;
621
+ totals: z.ZodObject<{
622
+ volume24hUsd: z.ZodNullable<z.ZodString>;
623
+ onlineProviderCount: z.ZodNumber;
624
+ errorProviderCount: z.ZodNumber;
625
+ entryCount: z.ZodNumber;
626
+ }, "strip", z.ZodTypeAny, {
627
+ volume24hUsd: string | null;
628
+ onlineProviderCount: number;
629
+ errorProviderCount: number;
630
+ entryCount: number;
631
+ }, {
632
+ volume24hUsd: string | null;
633
+ onlineProviderCount: number;
634
+ errorProviderCount: number;
635
+ entryCount: number;
636
+ }>;
637
+ cachedAt: z.ZodNullable<z.ZodString>;
638
+ source: z.ZodUnion<[z.ZodEnum<["cache", "api"]>, z.ZodEffects<z.ZodString, `unknown:${string}`, string>]>;
639
+ }, "strip", z.ZodTypeAny, {
640
+ providers: {
641
+ status: `unknown:${string}` | "error" | "ok" | "unavailable";
642
+ error: string | null;
643
+ provider: `unknown:${string}` | "thorchain" | "chainflip" | "near_intents" | "atomicswap";
644
+ fetchedAt: string;
645
+ liquidity: {
646
+ entries: {
647
+ status: string;
648
+ amount: string | null;
649
+ token: string;
650
+ id: string;
651
+ amountUsd: string | null;
652
+ volume24hUsd: string | null;
653
+ }[];
654
+ type: `unknown:${string}` | "amm-pool" | "intents" | "p2p-makers";
655
+ } | null;
656
+ }[];
657
+ cachedAt: string | null;
658
+ source: `unknown:${string}` | "cache" | "api";
659
+ totals: {
660
+ volume24hUsd: string | null;
661
+ onlineProviderCount: number;
662
+ errorProviderCount: number;
663
+ entryCount: number;
664
+ };
665
+ }, {
666
+ providers: {
667
+ status: string;
668
+ error: string | null;
669
+ provider: string;
670
+ fetchedAt: string;
671
+ liquidity: {
672
+ entries: {
673
+ status: string;
674
+ amount: string | null;
675
+ token: string;
676
+ id: string;
677
+ amountUsd: string | null;
678
+ volume24hUsd: string | null;
679
+ }[];
680
+ type: string;
681
+ } | null;
682
+ }[];
683
+ cachedAt: string | null;
684
+ source: string;
685
+ totals: {
686
+ volume24hUsd: string | null;
687
+ onlineProviderCount: number;
688
+ errorProviderCount: number;
689
+ entryCount: number;
690
+ };
691
+ }>;
692
+ export type LiquidityResponse = z.infer<typeof liquidityResponseSchema>;
693
+ export {};
694
+ //# sourceMappingURL=quotes.zod.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quotes.zod.d.ts","sourceRoot":"","sources":["../../../src/wire/server/quotes.zod.ts"],"names":[],"mappings":"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"}