@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,1119 @@
1
+ import { z } from 'zod';
2
+ export declare const preSigsSchema: z.ZodObject<{
3
+ tx_cancel_sig: z.ZodString;
4
+ tx_punish_sig: z.ZodString;
5
+ tx_early_refund_sig: z.ZodString;
6
+ tx_reclaim_sig: z.ZodOptional<z.ZodString>;
7
+ tx_withhold_sig: z.ZodOptional<z.ZodString>;
8
+ tx_mercy_sig: z.ZodOptional<z.ZodString>;
9
+ }, "strip", z.ZodTypeAny, {
10
+ tx_cancel_sig: string;
11
+ tx_punish_sig: string;
12
+ tx_early_refund_sig: string;
13
+ tx_reclaim_sig?: string | undefined;
14
+ tx_withhold_sig?: string | undefined;
15
+ tx_mercy_sig?: string | undefined;
16
+ }, {
17
+ tx_cancel_sig: string;
18
+ tx_punish_sig: string;
19
+ tx_early_refund_sig: string;
20
+ tx_reclaim_sig?: string | undefined;
21
+ tx_withhold_sig?: string | undefined;
22
+ tx_mercy_sig?: string | undefined;
23
+ }>;
24
+ export type PreSigs = z.infer<typeof preSigsSchema>;
25
+ export declare const swapActionBodySchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
26
+ type: z.ZodLiteral<"presigs">;
27
+ unsignedPsbt: z.ZodString;
28
+ targetAddress: z.ZodOptional<z.ZodString>;
29
+ preSigs: z.ZodObject<{
30
+ tx_cancel_sig: z.ZodString;
31
+ tx_punish_sig: z.ZodString;
32
+ tx_early_refund_sig: z.ZodString;
33
+ tx_reclaim_sig: z.ZodOptional<z.ZodString>;
34
+ tx_withhold_sig: z.ZodOptional<z.ZodString>;
35
+ tx_mercy_sig: z.ZodOptional<z.ZodString>;
36
+ }, "strip", z.ZodTypeAny, {
37
+ tx_cancel_sig: string;
38
+ tx_punish_sig: string;
39
+ tx_early_refund_sig: string;
40
+ tx_reclaim_sig?: string | undefined;
41
+ tx_withhold_sig?: string | undefined;
42
+ tx_mercy_sig?: string | undefined;
43
+ }, {
44
+ tx_cancel_sig: string;
45
+ tx_punish_sig: string;
46
+ tx_early_refund_sig: string;
47
+ tx_reclaim_sig?: string | undefined;
48
+ tx_withhold_sig?: string | undefined;
49
+ tx_mercy_sig?: string | undefined;
50
+ }>;
51
+ }, "strip", z.ZodTypeAny, {
52
+ type: "presigs";
53
+ unsignedPsbt: string;
54
+ preSigs: {
55
+ tx_cancel_sig: string;
56
+ tx_punish_sig: string;
57
+ tx_early_refund_sig: string;
58
+ tx_reclaim_sig?: string | undefined;
59
+ tx_withhold_sig?: string | undefined;
60
+ tx_mercy_sig?: string | undefined;
61
+ };
62
+ targetAddress?: string | undefined;
63
+ }, {
64
+ type: "presigs";
65
+ unsignedPsbt: string;
66
+ preSigs: {
67
+ tx_cancel_sig: string;
68
+ tx_punish_sig: string;
69
+ tx_early_refund_sig: string;
70
+ tx_reclaim_sig?: string | undefined;
71
+ tx_withhold_sig?: string | undefined;
72
+ tx_mercy_sig?: string | undefined;
73
+ };
74
+ targetAddress?: string | undefined;
75
+ }>, z.ZodObject<{
76
+ type: z.ZodLiteral<"fund">;
77
+ signedPsbt: z.ZodString;
78
+ targetAddress: z.ZodOptional<z.ZodString>;
79
+ preSigs: z.ZodOptional<z.ZodObject<{
80
+ tx_cancel_sig: z.ZodString;
81
+ tx_punish_sig: z.ZodString;
82
+ tx_early_refund_sig: z.ZodString;
83
+ tx_reclaim_sig: z.ZodOptional<z.ZodString>;
84
+ tx_withhold_sig: z.ZodOptional<z.ZodString>;
85
+ tx_mercy_sig: z.ZodOptional<z.ZodString>;
86
+ }, "strip", z.ZodTypeAny, {
87
+ tx_cancel_sig: string;
88
+ tx_punish_sig: string;
89
+ tx_early_refund_sig: string;
90
+ tx_reclaim_sig?: string | undefined;
91
+ tx_withhold_sig?: string | undefined;
92
+ tx_mercy_sig?: string | undefined;
93
+ }, {
94
+ tx_cancel_sig: string;
95
+ tx_punish_sig: string;
96
+ tx_early_refund_sig: string;
97
+ tx_reclaim_sig?: string | undefined;
98
+ tx_withhold_sig?: string | undefined;
99
+ tx_mercy_sig?: string | undefined;
100
+ }>>;
101
+ }, "strip", z.ZodTypeAny, {
102
+ type: "fund";
103
+ signedPsbt: string;
104
+ targetAddress?: string | undefined;
105
+ preSigs?: {
106
+ tx_cancel_sig: string;
107
+ tx_punish_sig: string;
108
+ tx_early_refund_sig: string;
109
+ tx_reclaim_sig?: string | undefined;
110
+ tx_withhold_sig?: string | undefined;
111
+ tx_mercy_sig?: string | undefined;
112
+ } | undefined;
113
+ }, {
114
+ type: "fund";
115
+ signedPsbt: string;
116
+ targetAddress?: string | undefined;
117
+ preSigs?: {
118
+ tx_cancel_sig: string;
119
+ tx_punish_sig: string;
120
+ tx_early_refund_sig: string;
121
+ tx_reclaim_sig?: string | undefined;
122
+ tx_withhold_sig?: string | undefined;
123
+ tx_mercy_sig?: string | undefined;
124
+ } | undefined;
125
+ }>, z.ZodObject<{
126
+ type: z.ZodLiteral<"cancel">;
127
+ reason: z.ZodOptional<z.ZodString>;
128
+ }, "strip", z.ZodTypeAny, {
129
+ type: "cancel";
130
+ reason?: string | undefined;
131
+ }, {
132
+ type: "cancel";
133
+ reason?: string | undefined;
134
+ }>, z.ZodObject<{
135
+ type: z.ZodLiteral<"notify-refund">;
136
+ refund_txid: z.ZodString;
137
+ }, "strip", z.ZodTypeAny, {
138
+ type: "notify-refund";
139
+ refund_txid: string;
140
+ }, {
141
+ type: "notify-refund";
142
+ refund_txid: string;
143
+ }>, z.ZodObject<{
144
+ type: z.ZodLiteral<"get-outputs">;
145
+ }, "strip", z.ZodTypeAny, {
146
+ type: "get-outputs";
147
+ }, {
148
+ type: "get-outputs";
149
+ }>, z.ZodObject<{
150
+ type: z.ZodLiteral<"get-key-images">;
151
+ keyImagesHex: z.ZodString;
152
+ }, "strip", z.ZodTypeAny, {
153
+ type: "get-key-images";
154
+ keyImagesHex: string;
155
+ }, {
156
+ type: "get-key-images";
157
+ keyImagesHex: string;
158
+ }>, z.ZodObject<{
159
+ type: z.ZodLiteral<"submit-monero-tx">;
160
+ signedTxHex: z.ZodOptional<z.ZodString>;
161
+ rawTxHex: z.ZodOptional<z.ZodString>;
162
+ }, "strip", z.ZodTypeAny, {
163
+ type: "submit-monero-tx";
164
+ signedTxHex?: string | undefined;
165
+ rawTxHex?: string | undefined;
166
+ }, {
167
+ type: "submit-monero-tx";
168
+ signedTxHex?: string | undefined;
169
+ rawTxHex?: string | undefined;
170
+ }>, z.ZodObject<{
171
+ type: z.ZodLiteral<"sweep-complete">;
172
+ txHash: z.ZodString;
173
+ }, "strip", z.ZodTypeAny, {
174
+ type: "sweep-complete";
175
+ txHash: string;
176
+ }, {
177
+ type: "sweep-complete";
178
+ txHash: string;
179
+ }>, z.ZodObject<{
180
+ type: z.ZodLiteral<"commit_intents">;
181
+ signedWithdrawIntent: z.ZodRecord<z.ZodString, z.ZodUnknown>;
182
+ signedRefundIntent: z.ZodRecord<z.ZodString, z.ZodUnknown>;
183
+ signedSwapIntent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
184
+ }, "strip", z.ZodTypeAny, {
185
+ type: "commit_intents";
186
+ signedWithdrawIntent: Record<string, unknown>;
187
+ signedRefundIntent: Record<string, unknown>;
188
+ signedSwapIntent?: Record<string, unknown> | undefined;
189
+ }, {
190
+ type: "commit_intents";
191
+ signedWithdrawIntent: Record<string, unknown>;
192
+ signedRefundIntent: Record<string, unknown>;
193
+ signedSwapIntent?: Record<string, unknown> | undefined;
194
+ }>, z.ZodObject<{
195
+ type: z.ZodLiteral<"sign_swap">;
196
+ signedSwapIntent: z.ZodRecord<z.ZodString, z.ZodUnknown>;
197
+ }, "strip", z.ZodTypeAny, {
198
+ type: "sign_swap";
199
+ signedSwapIntent: Record<string, unknown>;
200
+ }, {
201
+ type: "sign_swap";
202
+ signedSwapIntent: Record<string, unknown>;
203
+ }>, z.ZodObject<{
204
+ type: z.ZodLiteral<"submit_encsig">;
205
+ tx_redeem_encsig: z.ZodString;
206
+ }, "strip", z.ZodTypeAny, {
207
+ type: "submit_encsig";
208
+ tx_redeem_encsig: string;
209
+ }, {
210
+ type: "submit_encsig";
211
+ tx_redeem_encsig: string;
212
+ }>]>;
213
+ export type SwapAction = z.infer<typeof swapActionBodySchema>;
214
+ export declare const actionProtocolDataSchema: z.ZodUnion<[z.ZodObject<{
215
+ txFullRefundEncsig: z.ZodNullable<z.ZodString>;
216
+ txPartialRefundEncsig: z.ZodNullable<z.ZodString>;
217
+ /**
218
+ * Alice's plain ECDSA pre-sig on TxCancel. Optional on the wire so older
219
+ * sidecar versions still validate; consumers must tolerate `null` here.
220
+ * V-16 enabling-work — written into the recovery snapshot when present.
221
+ */
222
+ txCancelSig: z.ZodOptional<z.ZodNullable<z.ZodString>>;
223
+ txLockTxid: z.ZodNullable<z.ZodString>;
224
+ txLockVout: z.ZodNullable<z.ZodNumber>;
225
+ txLockAmountSats: z.ZodNullable<z.ZodString>;
226
+ }, "strip", z.ZodTypeAny, {
227
+ txFullRefundEncsig: string | null;
228
+ txPartialRefundEncsig: string | null;
229
+ txLockTxid: string | null;
230
+ txLockVout: number | null;
231
+ txLockAmountSats: string | null;
232
+ txCancelSig?: string | null | undefined;
233
+ }, {
234
+ txFullRefundEncsig: string | null;
235
+ txPartialRefundEncsig: string | null;
236
+ txLockTxid: string | null;
237
+ txLockVout: number | null;
238
+ txLockAmountSats: string | null;
239
+ txCancelSig?: string | null | undefined;
240
+ }>, z.ZodObject<{
241
+ txid: z.ZodString;
242
+ confirmations_required: z.ZodNumber;
243
+ estimated_time_minutes: z.ZodNumber;
244
+ }, "strip", z.ZodTypeAny, {
245
+ txid: string;
246
+ confirmations_required: number;
247
+ estimated_time_minutes: number;
248
+ }, {
249
+ txid: string;
250
+ confirmations_required: number;
251
+ estimated_time_minutes: number;
252
+ }>, z.ZodObject<{
253
+ tx_cancel_txid: z.ZodString;
254
+ tx_cancel_hex: z.ZodString;
255
+ }, "strip", z.ZodTypeAny, {
256
+ tx_cancel_txid: string;
257
+ tx_cancel_hex: string;
258
+ }, {
259
+ tx_cancel_txid: string;
260
+ tx_cancel_hex: string;
261
+ }>, z.ZodObject<{
262
+ tx_refund_txid: z.ZodString;
263
+ tx_refund_hex: z.ZodString;
264
+ refund_address: z.ZodString;
265
+ }, "strip", z.ZodTypeAny, {
266
+ refund_address: string;
267
+ tx_refund_txid: string;
268
+ tx_refund_hex: string;
269
+ }, {
270
+ refund_address: string;
271
+ tx_refund_txid: string;
272
+ tx_refund_hex: string;
273
+ }>, z.ZodObject<{
274
+ tx_refund_txid: z.ZodString;
275
+ }, "strip", z.ZodTypeAny, {
276
+ tx_refund_txid: string;
277
+ }, {
278
+ tx_refund_txid: string;
279
+ }>, z.ZodObject<{
280
+ outputs_hex: z.ZodString;
281
+ structured_outputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
282
+ one_time_public_key: z.ZodString;
283
+ tx_public_key: z.ZodString;
284
+ output_index: z.ZodNumber;
285
+ global_output_index: z.ZodNumber;
286
+ amount: z.ZodNumber;
287
+ rct_mask: z.ZodString;
288
+ additional_tx_keys: z.ZodArray<z.ZodString, "many">;
289
+ subaddr_major: z.ZodNumber;
290
+ subaddr_minor: z.ZodNumber;
291
+ }, "strip", z.ZodTypeAny, {
292
+ amount: number;
293
+ one_time_public_key: string;
294
+ tx_public_key: string;
295
+ output_index: number;
296
+ global_output_index: number;
297
+ rct_mask: string;
298
+ additional_tx_keys: string[];
299
+ subaddr_major: number;
300
+ subaddr_minor: number;
301
+ }, {
302
+ amount: number;
303
+ one_time_public_key: string;
304
+ tx_public_key: string;
305
+ output_index: number;
306
+ global_output_index: number;
307
+ rct_mask: string;
308
+ additional_tx_keys: string[];
309
+ subaddr_major: number;
310
+ subaddr_minor: number;
311
+ }>, "many">>;
312
+ s_a_hex: z.ZodString;
313
+ v_hex: z.ZodString;
314
+ receive_address: z.ZodString;
315
+ monero_lock_address: z.ZodString;
316
+ lock_tx_hash: z.ZodString;
317
+ restore_height: z.ZodNumber;
318
+ }, "strip", z.ZodTypeAny, {
319
+ monero_lock_address: string;
320
+ outputs_hex: string;
321
+ s_a_hex: string;
322
+ v_hex: string;
323
+ receive_address: string;
324
+ lock_tx_hash: string;
325
+ restore_height: number;
326
+ structured_outputs?: {
327
+ amount: number;
328
+ one_time_public_key: string;
329
+ tx_public_key: string;
330
+ output_index: number;
331
+ global_output_index: number;
332
+ rct_mask: string;
333
+ additional_tx_keys: string[];
334
+ subaddr_major: number;
335
+ subaddr_minor: number;
336
+ }[] | undefined;
337
+ }, {
338
+ monero_lock_address: string;
339
+ outputs_hex: string;
340
+ s_a_hex: string;
341
+ v_hex: string;
342
+ receive_address: string;
343
+ lock_tx_hash: string;
344
+ restore_height: number;
345
+ structured_outputs?: {
346
+ amount: number;
347
+ one_time_public_key: string;
348
+ tx_public_key: string;
349
+ output_index: number;
350
+ global_output_index: number;
351
+ rct_mask: string;
352
+ additional_tx_keys: string[];
353
+ subaddr_major: number;
354
+ subaddr_minor: number;
355
+ }[] | undefined;
356
+ }>, z.ZodObject<{
357
+ unsigned_tx_hex: z.ZodString;
358
+ construction_data: z.ZodOptional<z.ZodObject<{
359
+ inputs: z.ZodArray<z.ZodObject<{
360
+ ring_members: z.ZodArray<z.ZodObject<{
361
+ public_key: z.ZodString;
362
+ commitment: z.ZodString;
363
+ }, "strip", z.ZodTypeAny, {
364
+ public_key: string;
365
+ commitment: string;
366
+ }, {
367
+ public_key: string;
368
+ commitment: string;
369
+ }>, "many">;
370
+ real_output_index: z.ZodNumber;
371
+ real_output: z.ZodObject<{
372
+ one_time_public_key: z.ZodString;
373
+ tx_public_key: z.ZodString;
374
+ output_index: z.ZodNumber;
375
+ global_output_index: z.ZodNumber;
376
+ amount: z.ZodNumber;
377
+ rct_mask: z.ZodString;
378
+ additional_tx_keys: z.ZodArray<z.ZodString, "many">;
379
+ subaddr_major: z.ZodNumber;
380
+ subaddr_minor: z.ZodNumber;
381
+ }, "strip", z.ZodTypeAny, {
382
+ amount: number;
383
+ one_time_public_key: string;
384
+ tx_public_key: string;
385
+ output_index: number;
386
+ global_output_index: number;
387
+ rct_mask: string;
388
+ additional_tx_keys: string[];
389
+ subaddr_major: number;
390
+ subaddr_minor: number;
391
+ }, {
392
+ amount: number;
393
+ one_time_public_key: string;
394
+ tx_public_key: string;
395
+ output_index: number;
396
+ global_output_index: number;
397
+ rct_mask: string;
398
+ additional_tx_keys: string[];
399
+ subaddr_major: number;
400
+ subaddr_minor: number;
401
+ }>;
402
+ key_offsets: z.ZodArray<z.ZodNumber, "many">;
403
+ }, "strip", z.ZodTypeAny, {
404
+ ring_members: {
405
+ public_key: string;
406
+ commitment: string;
407
+ }[];
408
+ real_output_index: number;
409
+ real_output: {
410
+ amount: number;
411
+ one_time_public_key: string;
412
+ tx_public_key: string;
413
+ output_index: number;
414
+ global_output_index: number;
415
+ rct_mask: string;
416
+ additional_tx_keys: string[];
417
+ subaddr_major: number;
418
+ subaddr_minor: number;
419
+ };
420
+ key_offsets: number[];
421
+ }, {
422
+ ring_members: {
423
+ public_key: string;
424
+ commitment: string;
425
+ }[];
426
+ real_output_index: number;
427
+ real_output: {
428
+ amount: number;
429
+ one_time_public_key: string;
430
+ tx_public_key: string;
431
+ output_index: number;
432
+ global_output_index: number;
433
+ rct_mask: string;
434
+ additional_tx_keys: string[];
435
+ subaddr_major: number;
436
+ subaddr_minor: number;
437
+ };
438
+ key_offsets: number[];
439
+ }>, "many">;
440
+ destination: z.ZodObject<{
441
+ address: z.ZodString;
442
+ amount: z.ZodNumber;
443
+ }, "strip", z.ZodTypeAny, {
444
+ amount: number;
445
+ address: string;
446
+ }, {
447
+ amount: number;
448
+ address: string;
449
+ }>;
450
+ fee: z.ZodNumber;
451
+ tx_extra: z.ZodString;
452
+ rct_type: z.ZodNumber;
453
+ }, "strip", z.ZodTypeAny, {
454
+ inputs: {
455
+ ring_members: {
456
+ public_key: string;
457
+ commitment: string;
458
+ }[];
459
+ real_output_index: number;
460
+ real_output: {
461
+ amount: number;
462
+ one_time_public_key: string;
463
+ tx_public_key: string;
464
+ output_index: number;
465
+ global_output_index: number;
466
+ rct_mask: string;
467
+ additional_tx_keys: string[];
468
+ subaddr_major: number;
469
+ subaddr_minor: number;
470
+ };
471
+ key_offsets: number[];
472
+ }[];
473
+ destination: {
474
+ amount: number;
475
+ address: string;
476
+ };
477
+ fee: number;
478
+ tx_extra: string;
479
+ rct_type: number;
480
+ }, {
481
+ inputs: {
482
+ ring_members: {
483
+ public_key: string;
484
+ commitment: string;
485
+ }[];
486
+ real_output_index: number;
487
+ real_output: {
488
+ amount: number;
489
+ one_time_public_key: string;
490
+ tx_public_key: string;
491
+ output_index: number;
492
+ global_output_index: number;
493
+ rct_mask: string;
494
+ additional_tx_keys: string[];
495
+ subaddr_major: number;
496
+ subaddr_minor: number;
497
+ };
498
+ key_offsets: number[];
499
+ }[];
500
+ destination: {
501
+ amount: number;
502
+ address: string;
503
+ };
504
+ fee: number;
505
+ tx_extra: string;
506
+ rct_type: number;
507
+ }>>;
508
+ fee: z.ZodString;
509
+ amount: z.ZodString;
510
+ destination: z.ZodString;
511
+ }, "strip", z.ZodTypeAny, {
512
+ amount: string;
513
+ destination: string;
514
+ fee: string;
515
+ unsigned_tx_hex: string;
516
+ construction_data?: {
517
+ inputs: {
518
+ ring_members: {
519
+ public_key: string;
520
+ commitment: string;
521
+ }[];
522
+ real_output_index: number;
523
+ real_output: {
524
+ amount: number;
525
+ one_time_public_key: string;
526
+ tx_public_key: string;
527
+ output_index: number;
528
+ global_output_index: number;
529
+ rct_mask: string;
530
+ additional_tx_keys: string[];
531
+ subaddr_major: number;
532
+ subaddr_minor: number;
533
+ };
534
+ key_offsets: number[];
535
+ }[];
536
+ destination: {
537
+ amount: number;
538
+ address: string;
539
+ };
540
+ fee: number;
541
+ tx_extra: string;
542
+ rct_type: number;
543
+ } | undefined;
544
+ }, {
545
+ amount: string;
546
+ destination: string;
547
+ fee: string;
548
+ unsigned_tx_hex: string;
549
+ construction_data?: {
550
+ inputs: {
551
+ ring_members: {
552
+ public_key: string;
553
+ commitment: string;
554
+ }[];
555
+ real_output_index: number;
556
+ real_output: {
557
+ amount: number;
558
+ one_time_public_key: string;
559
+ tx_public_key: string;
560
+ output_index: number;
561
+ global_output_index: number;
562
+ rct_mask: string;
563
+ additional_tx_keys: string[];
564
+ subaddr_major: number;
565
+ subaddr_minor: number;
566
+ };
567
+ key_offsets: number[];
568
+ }[];
569
+ destination: {
570
+ amount: number;
571
+ address: string;
572
+ };
573
+ fee: number;
574
+ tx_extra: string;
575
+ rct_type: number;
576
+ } | undefined;
577
+ }>, z.ZodObject<{
578
+ tx_hashes: z.ZodArray<z.ZodString, "many">;
579
+ }, "strip", z.ZodTypeAny, {
580
+ tx_hashes: string[];
581
+ }, {
582
+ tx_hashes: string[];
583
+ }>]>;
584
+ export type SwapActionProtocolData = z.infer<typeof actionProtocolDataSchema>;
585
+ export declare const swapActionResponseSchema: z.ZodObject<{
586
+ swapNumber: z.ZodString;
587
+ status: z.ZodUnion<[z.ZodEnum<["initializing", "pending", "awaiting_funding", "deposited", "swapping", "sending", "cancelling", "completed", "failed", "refunded", "withheld", "punished", "expired"]>, z.ZodEffects<z.ZodString, `unknown:${string}`, string>]>;
588
+ message: z.ZodString;
589
+ protocolData: z.ZodNullable<z.ZodUnion<[z.ZodObject<{
590
+ txFullRefundEncsig: z.ZodNullable<z.ZodString>;
591
+ txPartialRefundEncsig: z.ZodNullable<z.ZodString>;
592
+ /**
593
+ * Alice's plain ECDSA pre-sig on TxCancel. Optional on the wire so older
594
+ * sidecar versions still validate; consumers must tolerate `null` here.
595
+ * V-16 enabling-work — written into the recovery snapshot when present.
596
+ */
597
+ txCancelSig: z.ZodOptional<z.ZodNullable<z.ZodString>>;
598
+ txLockTxid: z.ZodNullable<z.ZodString>;
599
+ txLockVout: z.ZodNullable<z.ZodNumber>;
600
+ txLockAmountSats: z.ZodNullable<z.ZodString>;
601
+ }, "strip", z.ZodTypeAny, {
602
+ txFullRefundEncsig: string | null;
603
+ txPartialRefundEncsig: string | null;
604
+ txLockTxid: string | null;
605
+ txLockVout: number | null;
606
+ txLockAmountSats: string | null;
607
+ txCancelSig?: string | null | undefined;
608
+ }, {
609
+ txFullRefundEncsig: string | null;
610
+ txPartialRefundEncsig: string | null;
611
+ txLockTxid: string | null;
612
+ txLockVout: number | null;
613
+ txLockAmountSats: string | null;
614
+ txCancelSig?: string | null | undefined;
615
+ }>, z.ZodObject<{
616
+ txid: z.ZodString;
617
+ confirmations_required: z.ZodNumber;
618
+ estimated_time_minutes: z.ZodNumber;
619
+ }, "strip", z.ZodTypeAny, {
620
+ txid: string;
621
+ confirmations_required: number;
622
+ estimated_time_minutes: number;
623
+ }, {
624
+ txid: string;
625
+ confirmations_required: number;
626
+ estimated_time_minutes: number;
627
+ }>, z.ZodObject<{
628
+ tx_cancel_txid: z.ZodString;
629
+ tx_cancel_hex: z.ZodString;
630
+ }, "strip", z.ZodTypeAny, {
631
+ tx_cancel_txid: string;
632
+ tx_cancel_hex: string;
633
+ }, {
634
+ tx_cancel_txid: string;
635
+ tx_cancel_hex: string;
636
+ }>, z.ZodObject<{
637
+ tx_refund_txid: z.ZodString;
638
+ tx_refund_hex: z.ZodString;
639
+ refund_address: z.ZodString;
640
+ }, "strip", z.ZodTypeAny, {
641
+ refund_address: string;
642
+ tx_refund_txid: string;
643
+ tx_refund_hex: string;
644
+ }, {
645
+ refund_address: string;
646
+ tx_refund_txid: string;
647
+ tx_refund_hex: string;
648
+ }>, z.ZodObject<{
649
+ tx_refund_txid: z.ZodString;
650
+ }, "strip", z.ZodTypeAny, {
651
+ tx_refund_txid: string;
652
+ }, {
653
+ tx_refund_txid: string;
654
+ }>, z.ZodObject<{
655
+ outputs_hex: z.ZodString;
656
+ structured_outputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
657
+ one_time_public_key: z.ZodString;
658
+ tx_public_key: z.ZodString;
659
+ output_index: z.ZodNumber;
660
+ global_output_index: z.ZodNumber;
661
+ amount: z.ZodNumber;
662
+ rct_mask: z.ZodString;
663
+ additional_tx_keys: z.ZodArray<z.ZodString, "many">;
664
+ subaddr_major: z.ZodNumber;
665
+ subaddr_minor: z.ZodNumber;
666
+ }, "strip", z.ZodTypeAny, {
667
+ amount: number;
668
+ one_time_public_key: string;
669
+ tx_public_key: string;
670
+ output_index: number;
671
+ global_output_index: number;
672
+ rct_mask: string;
673
+ additional_tx_keys: string[];
674
+ subaddr_major: number;
675
+ subaddr_minor: number;
676
+ }, {
677
+ amount: number;
678
+ one_time_public_key: string;
679
+ tx_public_key: string;
680
+ output_index: number;
681
+ global_output_index: number;
682
+ rct_mask: string;
683
+ additional_tx_keys: string[];
684
+ subaddr_major: number;
685
+ subaddr_minor: number;
686
+ }>, "many">>;
687
+ s_a_hex: z.ZodString;
688
+ v_hex: z.ZodString;
689
+ receive_address: z.ZodString;
690
+ monero_lock_address: z.ZodString;
691
+ lock_tx_hash: z.ZodString;
692
+ restore_height: z.ZodNumber;
693
+ }, "strip", z.ZodTypeAny, {
694
+ monero_lock_address: string;
695
+ outputs_hex: string;
696
+ s_a_hex: string;
697
+ v_hex: string;
698
+ receive_address: string;
699
+ lock_tx_hash: string;
700
+ restore_height: number;
701
+ structured_outputs?: {
702
+ amount: number;
703
+ one_time_public_key: string;
704
+ tx_public_key: string;
705
+ output_index: number;
706
+ global_output_index: number;
707
+ rct_mask: string;
708
+ additional_tx_keys: string[];
709
+ subaddr_major: number;
710
+ subaddr_minor: number;
711
+ }[] | undefined;
712
+ }, {
713
+ monero_lock_address: string;
714
+ outputs_hex: string;
715
+ s_a_hex: string;
716
+ v_hex: string;
717
+ receive_address: string;
718
+ lock_tx_hash: string;
719
+ restore_height: number;
720
+ structured_outputs?: {
721
+ amount: number;
722
+ one_time_public_key: string;
723
+ tx_public_key: string;
724
+ output_index: number;
725
+ global_output_index: number;
726
+ rct_mask: string;
727
+ additional_tx_keys: string[];
728
+ subaddr_major: number;
729
+ subaddr_minor: number;
730
+ }[] | undefined;
731
+ }>, z.ZodObject<{
732
+ unsigned_tx_hex: z.ZodString;
733
+ construction_data: z.ZodOptional<z.ZodObject<{
734
+ inputs: z.ZodArray<z.ZodObject<{
735
+ ring_members: z.ZodArray<z.ZodObject<{
736
+ public_key: z.ZodString;
737
+ commitment: z.ZodString;
738
+ }, "strip", z.ZodTypeAny, {
739
+ public_key: string;
740
+ commitment: string;
741
+ }, {
742
+ public_key: string;
743
+ commitment: string;
744
+ }>, "many">;
745
+ real_output_index: z.ZodNumber;
746
+ real_output: z.ZodObject<{
747
+ one_time_public_key: z.ZodString;
748
+ tx_public_key: z.ZodString;
749
+ output_index: z.ZodNumber;
750
+ global_output_index: z.ZodNumber;
751
+ amount: z.ZodNumber;
752
+ rct_mask: z.ZodString;
753
+ additional_tx_keys: z.ZodArray<z.ZodString, "many">;
754
+ subaddr_major: z.ZodNumber;
755
+ subaddr_minor: z.ZodNumber;
756
+ }, "strip", z.ZodTypeAny, {
757
+ amount: number;
758
+ one_time_public_key: string;
759
+ tx_public_key: string;
760
+ output_index: number;
761
+ global_output_index: number;
762
+ rct_mask: string;
763
+ additional_tx_keys: string[];
764
+ subaddr_major: number;
765
+ subaddr_minor: number;
766
+ }, {
767
+ amount: number;
768
+ one_time_public_key: string;
769
+ tx_public_key: string;
770
+ output_index: number;
771
+ global_output_index: number;
772
+ rct_mask: string;
773
+ additional_tx_keys: string[];
774
+ subaddr_major: number;
775
+ subaddr_minor: number;
776
+ }>;
777
+ key_offsets: z.ZodArray<z.ZodNumber, "many">;
778
+ }, "strip", z.ZodTypeAny, {
779
+ ring_members: {
780
+ public_key: string;
781
+ commitment: string;
782
+ }[];
783
+ real_output_index: number;
784
+ real_output: {
785
+ amount: number;
786
+ one_time_public_key: string;
787
+ tx_public_key: string;
788
+ output_index: number;
789
+ global_output_index: number;
790
+ rct_mask: string;
791
+ additional_tx_keys: string[];
792
+ subaddr_major: number;
793
+ subaddr_minor: number;
794
+ };
795
+ key_offsets: number[];
796
+ }, {
797
+ ring_members: {
798
+ public_key: string;
799
+ commitment: string;
800
+ }[];
801
+ real_output_index: number;
802
+ real_output: {
803
+ amount: number;
804
+ one_time_public_key: string;
805
+ tx_public_key: string;
806
+ output_index: number;
807
+ global_output_index: number;
808
+ rct_mask: string;
809
+ additional_tx_keys: string[];
810
+ subaddr_major: number;
811
+ subaddr_minor: number;
812
+ };
813
+ key_offsets: number[];
814
+ }>, "many">;
815
+ destination: z.ZodObject<{
816
+ address: z.ZodString;
817
+ amount: z.ZodNumber;
818
+ }, "strip", z.ZodTypeAny, {
819
+ amount: number;
820
+ address: string;
821
+ }, {
822
+ amount: number;
823
+ address: string;
824
+ }>;
825
+ fee: z.ZodNumber;
826
+ tx_extra: z.ZodString;
827
+ rct_type: z.ZodNumber;
828
+ }, "strip", z.ZodTypeAny, {
829
+ inputs: {
830
+ ring_members: {
831
+ public_key: string;
832
+ commitment: string;
833
+ }[];
834
+ real_output_index: number;
835
+ real_output: {
836
+ amount: number;
837
+ one_time_public_key: string;
838
+ tx_public_key: string;
839
+ output_index: number;
840
+ global_output_index: number;
841
+ rct_mask: string;
842
+ additional_tx_keys: string[];
843
+ subaddr_major: number;
844
+ subaddr_minor: number;
845
+ };
846
+ key_offsets: number[];
847
+ }[];
848
+ destination: {
849
+ amount: number;
850
+ address: string;
851
+ };
852
+ fee: number;
853
+ tx_extra: string;
854
+ rct_type: number;
855
+ }, {
856
+ inputs: {
857
+ ring_members: {
858
+ public_key: string;
859
+ commitment: string;
860
+ }[];
861
+ real_output_index: number;
862
+ real_output: {
863
+ amount: number;
864
+ one_time_public_key: string;
865
+ tx_public_key: string;
866
+ output_index: number;
867
+ global_output_index: number;
868
+ rct_mask: string;
869
+ additional_tx_keys: string[];
870
+ subaddr_major: number;
871
+ subaddr_minor: number;
872
+ };
873
+ key_offsets: number[];
874
+ }[];
875
+ destination: {
876
+ amount: number;
877
+ address: string;
878
+ };
879
+ fee: number;
880
+ tx_extra: string;
881
+ rct_type: number;
882
+ }>>;
883
+ fee: z.ZodString;
884
+ amount: z.ZodString;
885
+ destination: z.ZodString;
886
+ }, "strip", z.ZodTypeAny, {
887
+ amount: string;
888
+ destination: string;
889
+ fee: string;
890
+ unsigned_tx_hex: string;
891
+ construction_data?: {
892
+ inputs: {
893
+ ring_members: {
894
+ public_key: string;
895
+ commitment: string;
896
+ }[];
897
+ real_output_index: number;
898
+ real_output: {
899
+ amount: number;
900
+ one_time_public_key: string;
901
+ tx_public_key: string;
902
+ output_index: number;
903
+ global_output_index: number;
904
+ rct_mask: string;
905
+ additional_tx_keys: string[];
906
+ subaddr_major: number;
907
+ subaddr_minor: number;
908
+ };
909
+ key_offsets: number[];
910
+ }[];
911
+ destination: {
912
+ amount: number;
913
+ address: string;
914
+ };
915
+ fee: number;
916
+ tx_extra: string;
917
+ rct_type: number;
918
+ } | undefined;
919
+ }, {
920
+ amount: string;
921
+ destination: string;
922
+ fee: string;
923
+ unsigned_tx_hex: string;
924
+ construction_data?: {
925
+ inputs: {
926
+ ring_members: {
927
+ public_key: string;
928
+ commitment: string;
929
+ }[];
930
+ real_output_index: number;
931
+ real_output: {
932
+ amount: number;
933
+ one_time_public_key: string;
934
+ tx_public_key: string;
935
+ output_index: number;
936
+ global_output_index: number;
937
+ rct_mask: string;
938
+ additional_tx_keys: string[];
939
+ subaddr_major: number;
940
+ subaddr_minor: number;
941
+ };
942
+ key_offsets: number[];
943
+ }[];
944
+ destination: {
945
+ amount: number;
946
+ address: string;
947
+ };
948
+ fee: number;
949
+ tx_extra: string;
950
+ rct_type: number;
951
+ } | undefined;
952
+ }>, z.ZodObject<{
953
+ tx_hashes: z.ZodArray<z.ZodString, "many">;
954
+ }, "strip", z.ZodTypeAny, {
955
+ tx_hashes: string[];
956
+ }, {
957
+ tx_hashes: string[];
958
+ }>]>>;
959
+ }, "strip", z.ZodTypeAny, {
960
+ status: `unknown:${string}` | "initializing" | "pending" | "awaiting_funding" | "deposited" | "swapping" | "sending" | "cancelling" | "completed" | "failed" | "refunded" | "withheld" | "punished" | "expired";
961
+ message: string;
962
+ swapNumber: string;
963
+ protocolData: {
964
+ txFullRefundEncsig: string | null;
965
+ txPartialRefundEncsig: string | null;
966
+ txLockTxid: string | null;
967
+ txLockVout: number | null;
968
+ txLockAmountSats: string | null;
969
+ txCancelSig?: string | null | undefined;
970
+ } | {
971
+ txid: string;
972
+ confirmations_required: number;
973
+ estimated_time_minutes: number;
974
+ } | {
975
+ tx_cancel_txid: string;
976
+ tx_cancel_hex: string;
977
+ } | {
978
+ refund_address: string;
979
+ tx_refund_txid: string;
980
+ tx_refund_hex: string;
981
+ } | {
982
+ tx_refund_txid: string;
983
+ } | {
984
+ monero_lock_address: string;
985
+ outputs_hex: string;
986
+ s_a_hex: string;
987
+ v_hex: string;
988
+ receive_address: string;
989
+ lock_tx_hash: string;
990
+ restore_height: number;
991
+ structured_outputs?: {
992
+ amount: number;
993
+ one_time_public_key: string;
994
+ tx_public_key: string;
995
+ output_index: number;
996
+ global_output_index: number;
997
+ rct_mask: string;
998
+ additional_tx_keys: string[];
999
+ subaddr_major: number;
1000
+ subaddr_minor: number;
1001
+ }[] | undefined;
1002
+ } | {
1003
+ amount: string;
1004
+ destination: string;
1005
+ fee: string;
1006
+ unsigned_tx_hex: string;
1007
+ construction_data?: {
1008
+ inputs: {
1009
+ ring_members: {
1010
+ public_key: string;
1011
+ commitment: string;
1012
+ }[];
1013
+ real_output_index: number;
1014
+ real_output: {
1015
+ amount: number;
1016
+ one_time_public_key: string;
1017
+ tx_public_key: string;
1018
+ output_index: number;
1019
+ global_output_index: number;
1020
+ rct_mask: string;
1021
+ additional_tx_keys: string[];
1022
+ subaddr_major: number;
1023
+ subaddr_minor: number;
1024
+ };
1025
+ key_offsets: number[];
1026
+ }[];
1027
+ destination: {
1028
+ amount: number;
1029
+ address: string;
1030
+ };
1031
+ fee: number;
1032
+ tx_extra: string;
1033
+ rct_type: number;
1034
+ } | undefined;
1035
+ } | {
1036
+ tx_hashes: string[];
1037
+ } | null;
1038
+ }, {
1039
+ status: string;
1040
+ message: string;
1041
+ swapNumber: string;
1042
+ protocolData: {
1043
+ txFullRefundEncsig: string | null;
1044
+ txPartialRefundEncsig: string | null;
1045
+ txLockTxid: string | null;
1046
+ txLockVout: number | null;
1047
+ txLockAmountSats: string | null;
1048
+ txCancelSig?: string | null | undefined;
1049
+ } | {
1050
+ txid: string;
1051
+ confirmations_required: number;
1052
+ estimated_time_minutes: number;
1053
+ } | {
1054
+ tx_cancel_txid: string;
1055
+ tx_cancel_hex: string;
1056
+ } | {
1057
+ refund_address: string;
1058
+ tx_refund_txid: string;
1059
+ tx_refund_hex: string;
1060
+ } | {
1061
+ tx_refund_txid: string;
1062
+ } | {
1063
+ monero_lock_address: string;
1064
+ outputs_hex: string;
1065
+ s_a_hex: string;
1066
+ v_hex: string;
1067
+ receive_address: string;
1068
+ lock_tx_hash: string;
1069
+ restore_height: number;
1070
+ structured_outputs?: {
1071
+ amount: number;
1072
+ one_time_public_key: string;
1073
+ tx_public_key: string;
1074
+ output_index: number;
1075
+ global_output_index: number;
1076
+ rct_mask: string;
1077
+ additional_tx_keys: string[];
1078
+ subaddr_major: number;
1079
+ subaddr_minor: number;
1080
+ }[] | undefined;
1081
+ } | {
1082
+ amount: string;
1083
+ destination: string;
1084
+ fee: string;
1085
+ unsigned_tx_hex: string;
1086
+ construction_data?: {
1087
+ inputs: {
1088
+ ring_members: {
1089
+ public_key: string;
1090
+ commitment: string;
1091
+ }[];
1092
+ real_output_index: number;
1093
+ real_output: {
1094
+ amount: number;
1095
+ one_time_public_key: string;
1096
+ tx_public_key: string;
1097
+ output_index: number;
1098
+ global_output_index: number;
1099
+ rct_mask: string;
1100
+ additional_tx_keys: string[];
1101
+ subaddr_major: number;
1102
+ subaddr_minor: number;
1103
+ };
1104
+ key_offsets: number[];
1105
+ }[];
1106
+ destination: {
1107
+ amount: number;
1108
+ address: string;
1109
+ };
1110
+ fee: number;
1111
+ tx_extra: string;
1112
+ rct_type: number;
1113
+ } | undefined;
1114
+ } | {
1115
+ tx_hashes: string[];
1116
+ } | null;
1117
+ }>;
1118
+ export type SwapActionResponse = z.infer<typeof swapActionResponseSchema>;
1119
+ //# sourceMappingURL=action.zod.d.ts.map