@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,1981 @@
1
+ import { z } from 'zod';
2
+ export declare const swapStatusSchema: 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>]>;
3
+ export type SwapStatus = z.infer<typeof swapStatusSchema>;
4
+ export declare const chainflipVerificationSchema: z.ZodObject<{
5
+ provider: z.ZodLiteral<"chainflip">;
6
+ channel_id: z.ZodString;
7
+ status_url: z.ZodString;
8
+ explorer_url: z.ZodNullable<z.ZodString>;
9
+ }, "strip", z.ZodTypeAny, {
10
+ provider: "chainflip";
11
+ channel_id: string;
12
+ status_url: string;
13
+ explorer_url: string | null;
14
+ }, {
15
+ provider: "chainflip";
16
+ channel_id: string;
17
+ status_url: string;
18
+ explorer_url: string | null;
19
+ }>;
20
+ export type ChainflipVerification = z.infer<typeof chainflipVerificationSchema>;
21
+ export declare const thorchainVerificationSchema: z.ZodObject<{
22
+ provider: z.ZodLiteral<"thorchain">;
23
+ thornode_url: z.ZodString;
24
+ inbound_addresses_url: z.ZodString;
25
+ registered_memo: z.ZodNullable<z.ZodString>;
26
+ reference_number: z.ZodNullable<z.ZodNumber>;
27
+ explorer_url: z.ZodNullable<z.ZodString>;
28
+ }, "strip", z.ZodTypeAny, {
29
+ provider: "thorchain";
30
+ explorer_url: string | null;
31
+ thornode_url: string;
32
+ inbound_addresses_url: string;
33
+ registered_memo: string | null;
34
+ reference_number: number | null;
35
+ }, {
36
+ provider: "thorchain";
37
+ explorer_url: string | null;
38
+ thornode_url: string;
39
+ inbound_addresses_url: string;
40
+ registered_memo: string | null;
41
+ reference_number: number | null;
42
+ }>;
43
+ export type ThorchainVerification = z.infer<typeof thorchainVerificationSchema>;
44
+ /**
45
+ * Near-Intents verification shape emitted by the server.
46
+ *
47
+ * - `status_url` is nullable: 1Click has no public per-swap URL guaranteed to
48
+ * work without auth; the server emits null when it declines to expose one.
49
+ * - `correlation_id` echoes the 1Click correlationId (used for support /
50
+ * dispute reference). Optional because older server builds omit it.
51
+ */
52
+ export declare const nearIntentsVerificationSchema: z.ZodObject<{
53
+ provider: z.ZodLiteral<"near_intents">;
54
+ status_url: z.ZodNullable<z.ZodString>;
55
+ deposit_memo: z.ZodNullable<z.ZodString>;
56
+ explorer_url: z.ZodNullable<z.ZodString>;
57
+ correlation_id: z.ZodOptional<z.ZodString>;
58
+ }, "strip", z.ZodTypeAny, {
59
+ provider: "near_intents";
60
+ status_url: string | null;
61
+ explorer_url: string | null;
62
+ deposit_memo: string | null;
63
+ correlation_id?: string | undefined;
64
+ }, {
65
+ provider: "near_intents";
66
+ status_url: string | null;
67
+ explorer_url: string | null;
68
+ deposit_memo: string | null;
69
+ correlation_id?: string | undefined;
70
+ }>;
71
+ export type NearIntentsVerification = z.infer<typeof nearIntentsVerificationSchema>;
72
+ export declare const atomicSwapVerificationSchema: z.ZodObject<{
73
+ provider: z.ZodLiteral<"atomicswap">;
74
+ lock_address: z.ZodString;
75
+ deposit_type: z.ZodString;
76
+ timelock_blocks: z.ZodNumber;
77
+ timelock_hours: z.ZodNumber;
78
+ refund_address: z.ZodString;
79
+ explorer_url: z.ZodNullable<z.ZodString>;
80
+ }, "strip", z.ZodTypeAny, {
81
+ provider: "atomicswap";
82
+ explorer_url: string | null;
83
+ lock_address: string;
84
+ deposit_type: string;
85
+ timelock_blocks: number;
86
+ timelock_hours: number;
87
+ refund_address: string;
88
+ }, {
89
+ provider: "atomicswap";
90
+ explorer_url: string | null;
91
+ lock_address: string;
92
+ deposit_type: string;
93
+ timelock_blocks: number;
94
+ timelock_hours: number;
95
+ refund_address: string;
96
+ }>;
97
+ export type AtomicSwapVerification = z.infer<typeof atomicSwapVerificationSchema>;
98
+ export declare const swapVerificationSchema: z.ZodDiscriminatedUnion<"provider", [z.ZodObject<{
99
+ provider: z.ZodLiteral<"chainflip">;
100
+ channel_id: z.ZodString;
101
+ status_url: z.ZodString;
102
+ explorer_url: z.ZodNullable<z.ZodString>;
103
+ }, "strip", z.ZodTypeAny, {
104
+ provider: "chainflip";
105
+ channel_id: string;
106
+ status_url: string;
107
+ explorer_url: string | null;
108
+ }, {
109
+ provider: "chainflip";
110
+ channel_id: string;
111
+ status_url: string;
112
+ explorer_url: string | null;
113
+ }>, z.ZodObject<{
114
+ provider: z.ZodLiteral<"thorchain">;
115
+ thornode_url: z.ZodString;
116
+ inbound_addresses_url: z.ZodString;
117
+ registered_memo: z.ZodNullable<z.ZodString>;
118
+ reference_number: z.ZodNullable<z.ZodNumber>;
119
+ explorer_url: z.ZodNullable<z.ZodString>;
120
+ }, "strip", z.ZodTypeAny, {
121
+ provider: "thorchain";
122
+ explorer_url: string | null;
123
+ thornode_url: string;
124
+ inbound_addresses_url: string;
125
+ registered_memo: string | null;
126
+ reference_number: number | null;
127
+ }, {
128
+ provider: "thorchain";
129
+ explorer_url: string | null;
130
+ thornode_url: string;
131
+ inbound_addresses_url: string;
132
+ registered_memo: string | null;
133
+ reference_number: number | null;
134
+ }>, z.ZodObject<{
135
+ provider: z.ZodLiteral<"near_intents">;
136
+ status_url: z.ZodNullable<z.ZodString>;
137
+ deposit_memo: z.ZodNullable<z.ZodString>;
138
+ explorer_url: z.ZodNullable<z.ZodString>;
139
+ correlation_id: z.ZodOptional<z.ZodString>;
140
+ }, "strip", z.ZodTypeAny, {
141
+ provider: "near_intents";
142
+ status_url: string | null;
143
+ explorer_url: string | null;
144
+ deposit_memo: string | null;
145
+ correlation_id?: string | undefined;
146
+ }, {
147
+ provider: "near_intents";
148
+ status_url: string | null;
149
+ explorer_url: string | null;
150
+ deposit_memo: string | null;
151
+ correlation_id?: string | undefined;
152
+ }>, z.ZodObject<{
153
+ provider: z.ZodLiteral<"atomicswap">;
154
+ lock_address: z.ZodString;
155
+ deposit_type: z.ZodString;
156
+ timelock_blocks: z.ZodNumber;
157
+ timelock_hours: z.ZodNumber;
158
+ refund_address: z.ZodString;
159
+ explorer_url: z.ZodNullable<z.ZodString>;
160
+ }, "strip", z.ZodTypeAny, {
161
+ provider: "atomicswap";
162
+ explorer_url: string | null;
163
+ lock_address: string;
164
+ deposit_type: string;
165
+ timelock_blocks: number;
166
+ timelock_hours: number;
167
+ refund_address: string;
168
+ }, {
169
+ provider: "atomicswap";
170
+ explorer_url: string | null;
171
+ lock_address: string;
172
+ deposit_type: string;
173
+ timelock_blocks: number;
174
+ timelock_hours: number;
175
+ refund_address: string;
176
+ }>]>;
177
+ export type SwapVerification = z.infer<typeof swapVerificationSchema>;
178
+ export declare const requiredActionTypeSchema: z.ZodUnion<[z.ZodEnum<["wait", "fund", "sweep", "cancel", "refund", "sign_swap", "submit_encsig", "none"]>, z.ZodEffects<z.ZodString, `unknown:${string}`, string>]>;
179
+ export type RequiredActionType = z.infer<typeof requiredActionTypeSchema>;
180
+ export declare const actionUrgencySchema: z.ZodUnion<[z.ZodEnum<["low", "medium", "critical"]>, z.ZodEffects<z.ZodString, `unknown:${string}`, string>]>;
181
+ export type ActionUrgency = z.infer<typeof actionUrgencySchema>;
182
+ export declare const requiredActionSchema: z.ZodObject<{
183
+ type: z.ZodUnion<[z.ZodEnum<["wait", "fund", "sweep", "cancel", "refund", "sign_swap", "submit_encsig", "none"]>, z.ZodEffects<z.ZodString, `unknown:${string}`, string>]>;
184
+ urgency: z.ZodUnion<[z.ZodEnum<["low", "medium", "critical"]>, z.ZodEffects<z.ZodString, `unknown:${string}`, string>]>;
185
+ message: z.ZodString;
186
+ blocksRemaining: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
187
+ estimatedSecondsRemaining: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
188
+ txCancelTxid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
189
+ txRefundTxid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
190
+ }, "strip", z.ZodTypeAny, {
191
+ message: string;
192
+ type: `unknown:${string}` | "wait" | "fund" | "sweep" | "cancel" | "refund" | "sign_swap" | "submit_encsig" | "none";
193
+ urgency: `unknown:${string}` | "low" | "medium" | "critical";
194
+ blocksRemaining?: number | null | undefined;
195
+ estimatedSecondsRemaining?: number | null | undefined;
196
+ txCancelTxid?: string | null | undefined;
197
+ txRefundTxid?: string | null | undefined;
198
+ }, {
199
+ message: string;
200
+ type: string;
201
+ urgency: string;
202
+ blocksRemaining?: number | null | undefined;
203
+ estimatedSecondsRemaining?: number | null | undefined;
204
+ txCancelTxid?: string | null | undefined;
205
+ txRefundTxid?: string | null | undefined;
206
+ }>;
207
+ export type RequiredAction = z.infer<typeof requiredActionSchema>;
208
+ export declare const swapRequestProtocolSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
209
+ type: z.ZodLiteral<"atomicSwap">;
210
+ atomicSwap: z.ZodObject<{
211
+ S_b_bitcoin: z.ZodString;
212
+ S_b_monero: z.ZodString;
213
+ dleq_proof: z.ZodString;
214
+ v_b: z.ZodString;
215
+ B: z.ZodString;
216
+ libp2p_seed_hex: z.ZodOptional<z.ZodString>;
217
+ }, "strip", z.ZodTypeAny, {
218
+ S_b_bitcoin: string;
219
+ S_b_monero: string;
220
+ dleq_proof: string;
221
+ v_b: string;
222
+ B: string;
223
+ libp2p_seed_hex?: string | undefined;
224
+ }, {
225
+ S_b_bitcoin: string;
226
+ S_b_monero: string;
227
+ dleq_proof: string;
228
+ v_b: string;
229
+ B: string;
230
+ libp2p_seed_hex?: string | undefined;
231
+ }>;
232
+ fundingProof: z.ZodOptional<z.ZodArray<z.ZodObject<{
233
+ txid: z.ZodString;
234
+ vout: z.ZodNumber;
235
+ value: z.ZodNumber;
236
+ address: z.ZodString;
237
+ nonce: z.ZodString;
238
+ signature: z.ZodString;
239
+ }, "strip", z.ZodTypeAny, {
240
+ value: number;
241
+ txid: string;
242
+ vout: number;
243
+ address: string;
244
+ nonce: string;
245
+ signature: string;
246
+ }, {
247
+ value: number;
248
+ txid: string;
249
+ vout: number;
250
+ address: string;
251
+ nonce: string;
252
+ signature: string;
253
+ }>, "many">>;
254
+ }, "strip", z.ZodTypeAny, {
255
+ type: "atomicSwap";
256
+ atomicSwap: {
257
+ S_b_bitcoin: string;
258
+ S_b_monero: string;
259
+ dleq_proof: string;
260
+ v_b: string;
261
+ B: string;
262
+ libp2p_seed_hex?: string | undefined;
263
+ };
264
+ fundingProof?: {
265
+ value: number;
266
+ txid: string;
267
+ vout: number;
268
+ address: string;
269
+ nonce: string;
270
+ signature: string;
271
+ }[] | undefined;
272
+ }, {
273
+ type: "atomicSwap";
274
+ atomicSwap: {
275
+ S_b_bitcoin: string;
276
+ S_b_monero: string;
277
+ dleq_proof: string;
278
+ v_b: string;
279
+ B: string;
280
+ libp2p_seed_hex?: string | undefined;
281
+ };
282
+ fundingProof?: {
283
+ value: number;
284
+ txid: string;
285
+ vout: number;
286
+ address: string;
287
+ nonce: string;
288
+ signature: string;
289
+ }[] | undefined;
290
+ }>, z.ZodObject<{
291
+ type: z.ZodLiteral<"nearBridge">;
292
+ nearBridge: z.ZodObject<{
293
+ publicKey: z.ZodString;
294
+ }, "strip", z.ZodTypeAny, {
295
+ publicKey: string;
296
+ }, {
297
+ publicKey: string;
298
+ }>;
299
+ }, "strip", z.ZodTypeAny, {
300
+ type: "nearBridge";
301
+ nearBridge: {
302
+ publicKey: string;
303
+ };
304
+ }, {
305
+ type: "nearBridge";
306
+ nearBridge: {
307
+ publicKey: string;
308
+ };
309
+ }>]>;
310
+ export declare const createSwapBodySchema: z.ZodObject<{
311
+ from: z.ZodString;
312
+ to: z.ZodString;
313
+ amount: z.ZodString;
314
+ destAddress: z.ZodString;
315
+ refundAddress: z.ZodOptional<z.ZodString>;
316
+ provider: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["thorchain", "chainflip", "near_intents", "atomicswap"]>, z.ZodEffects<z.ZodString, `unknown:${string}`, string>]>>;
317
+ variantId: z.ZodOptional<z.ZodString>;
318
+ fromChain: z.ZodOptional<z.ZodString>;
319
+ toChain: z.ZodOptional<z.ZodString>;
320
+ slippageBps: z.ZodOptional<z.ZodNumber>;
321
+ protocol: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
322
+ type: z.ZodLiteral<"atomicSwap">;
323
+ atomicSwap: z.ZodObject<{
324
+ S_b_bitcoin: z.ZodString;
325
+ S_b_monero: z.ZodString;
326
+ dleq_proof: z.ZodString;
327
+ v_b: z.ZodString;
328
+ B: z.ZodString;
329
+ libp2p_seed_hex: z.ZodOptional<z.ZodString>;
330
+ }, "strip", z.ZodTypeAny, {
331
+ S_b_bitcoin: string;
332
+ S_b_monero: string;
333
+ dleq_proof: string;
334
+ v_b: string;
335
+ B: string;
336
+ libp2p_seed_hex?: string | undefined;
337
+ }, {
338
+ S_b_bitcoin: string;
339
+ S_b_monero: string;
340
+ dleq_proof: string;
341
+ v_b: string;
342
+ B: string;
343
+ libp2p_seed_hex?: string | undefined;
344
+ }>;
345
+ fundingProof: z.ZodOptional<z.ZodArray<z.ZodObject<{
346
+ txid: z.ZodString;
347
+ vout: z.ZodNumber;
348
+ value: z.ZodNumber;
349
+ address: z.ZodString;
350
+ nonce: z.ZodString;
351
+ signature: z.ZodString;
352
+ }, "strip", z.ZodTypeAny, {
353
+ value: number;
354
+ txid: string;
355
+ vout: number;
356
+ address: string;
357
+ nonce: string;
358
+ signature: string;
359
+ }, {
360
+ value: number;
361
+ txid: string;
362
+ vout: number;
363
+ address: string;
364
+ nonce: string;
365
+ signature: string;
366
+ }>, "many">>;
367
+ }, "strip", z.ZodTypeAny, {
368
+ type: "atomicSwap";
369
+ atomicSwap: {
370
+ S_b_bitcoin: string;
371
+ S_b_monero: string;
372
+ dleq_proof: string;
373
+ v_b: string;
374
+ B: string;
375
+ libp2p_seed_hex?: string | undefined;
376
+ };
377
+ fundingProof?: {
378
+ value: number;
379
+ txid: string;
380
+ vout: number;
381
+ address: string;
382
+ nonce: string;
383
+ signature: string;
384
+ }[] | undefined;
385
+ }, {
386
+ type: "atomicSwap";
387
+ atomicSwap: {
388
+ S_b_bitcoin: string;
389
+ S_b_monero: string;
390
+ dleq_proof: string;
391
+ v_b: string;
392
+ B: string;
393
+ libp2p_seed_hex?: string | undefined;
394
+ };
395
+ fundingProof?: {
396
+ value: number;
397
+ txid: string;
398
+ vout: number;
399
+ address: string;
400
+ nonce: string;
401
+ signature: string;
402
+ }[] | undefined;
403
+ }>, z.ZodObject<{
404
+ type: z.ZodLiteral<"nearBridge">;
405
+ nearBridge: z.ZodObject<{
406
+ publicKey: z.ZodString;
407
+ }, "strip", z.ZodTypeAny, {
408
+ publicKey: string;
409
+ }, {
410
+ publicKey: string;
411
+ }>;
412
+ }, "strip", z.ZodTypeAny, {
413
+ type: "nearBridge";
414
+ nearBridge: {
415
+ publicKey: string;
416
+ };
417
+ }, {
418
+ type: "nearBridge";
419
+ nearBridge: {
420
+ publicKey: string;
421
+ };
422
+ }>]>>;
423
+ callbackUrl: z.ZodOptional<z.ZodString>;
424
+ callbackSecret: z.ZodOptional<z.ZodString>;
425
+ telegramChatId: z.ZodOptional<z.ZodString>;
426
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
427
+ }, "strip", z.ZodTypeAny, {
428
+ amount: string;
429
+ from: string;
430
+ to: string;
431
+ destAddress: string;
432
+ provider?: `unknown:${string}` | "thorchain" | "chainflip" | "near_intents" | "atomicswap" | undefined;
433
+ variantId?: string | undefined;
434
+ fromChain?: string | undefined;
435
+ toChain?: string | undefined;
436
+ refundAddress?: string | undefined;
437
+ slippageBps?: number | undefined;
438
+ protocol?: {
439
+ type: "atomicSwap";
440
+ atomicSwap: {
441
+ S_b_bitcoin: string;
442
+ S_b_monero: string;
443
+ dleq_proof: string;
444
+ v_b: string;
445
+ B: string;
446
+ libp2p_seed_hex?: string | undefined;
447
+ };
448
+ fundingProof?: {
449
+ value: number;
450
+ txid: string;
451
+ vout: number;
452
+ address: string;
453
+ nonce: string;
454
+ signature: string;
455
+ }[] | undefined;
456
+ } | {
457
+ type: "nearBridge";
458
+ nearBridge: {
459
+ publicKey: string;
460
+ };
461
+ } | undefined;
462
+ callbackUrl?: string | undefined;
463
+ callbackSecret?: string | undefined;
464
+ telegramChatId?: string | undefined;
465
+ metadata?: Record<string, unknown> | undefined;
466
+ }, {
467
+ amount: string;
468
+ from: string;
469
+ to: string;
470
+ destAddress: string;
471
+ provider?: string | undefined;
472
+ variantId?: string | undefined;
473
+ fromChain?: string | undefined;
474
+ toChain?: string | undefined;
475
+ refundAddress?: string | undefined;
476
+ slippageBps?: number | undefined;
477
+ protocol?: {
478
+ type: "atomicSwap";
479
+ atomicSwap: {
480
+ S_b_bitcoin: string;
481
+ S_b_monero: string;
482
+ dleq_proof: string;
483
+ v_b: string;
484
+ B: string;
485
+ libp2p_seed_hex?: string | undefined;
486
+ };
487
+ fundingProof?: {
488
+ value: number;
489
+ txid: string;
490
+ vout: number;
491
+ address: string;
492
+ nonce: string;
493
+ signature: string;
494
+ }[] | undefined;
495
+ } | {
496
+ type: "nearBridge";
497
+ nearBridge: {
498
+ publicKey: string;
499
+ };
500
+ } | undefined;
501
+ callbackUrl?: string | undefined;
502
+ callbackSecret?: string | undefined;
503
+ telegramChatId?: string | undefined;
504
+ metadata?: Record<string, unknown> | undefined;
505
+ }>;
506
+ export type CreateSwapBody = z.input<typeof createSwapBodySchema>;
507
+ /**
508
+ * Alice's protocol parameters the client uses during atomic-swap negotiation
509
+ * and refund. Now includes the unsigned lock PSBT, Monero lock verification
510
+ * data (tx_hash, tx_key, restore_height), and the server-computed combined
511
+ * view key that used to live in the top-level `xmrVerification` wrapper.
512
+ */
513
+ export declare const protocolParamsSchema: z.ZodObject<{
514
+ A: z.ZodString;
515
+ S_a_bitcoin: z.ZodString;
516
+ cancel_timelock: z.ZodNumber;
517
+ punish_timelock: z.ZodNumber;
518
+ redeem_address: z.ZodString;
519
+ punish_address: z.ZodString;
520
+ tx_cancel_fee_sats: z.ZodNumber;
521
+ tx_refund_fee_sats: z.ZodNumber;
522
+ tx_redeem_fee_sats: z.ZodNumber;
523
+ tx_punish_fee_sats: z.ZodNumber;
524
+ amnesty_amount_sats: z.ZodOptional<z.ZodNumber>;
525
+ remaining_refund_timelock: z.ZodOptional<z.ZodNumber>;
526
+ tx_partial_refund_fee_sats: z.ZodOptional<z.ZodNumber>;
527
+ tx_reclaim_fee_sats: z.ZodOptional<z.ZodNumber>;
528
+ tx_withhold_fee_sats: z.ZodOptional<z.ZodNumber>;
529
+ tx_mercy_fee_sats: z.ZodOptional<z.ZodNumber>;
530
+ tx_full_refund_encsig: z.ZodOptional<z.ZodNullable<z.ZodString>>;
531
+ tx_partial_refund_encsig: z.ZodOptional<z.ZodNullable<z.ZodString>>;
532
+ /**
533
+ * Alice's plain ECDSA pre-sig on TxCancel (Message3). The client persists
534
+ * this in the recovery snapshot before /fund so a future autonomous-cancel
535
+ * path can broadcast TxCancel without the sidecar's cooperation. Currently
536
+ * informational only — the server still publishes TxCancel. V-16 enabling-
537
+ * work.
538
+ */
539
+ tx_cancel_sig: z.ZodOptional<z.ZodNullable<z.ZodString>>;
540
+ unsigned_lock_psbt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
541
+ S_a_monero: z.ZodOptional<z.ZodString>;
542
+ dleq_proof_s_a: z.ZodOptional<z.ZodNullable<z.ZodString>>;
543
+ v_a: z.ZodOptional<z.ZodNullable<z.ZodString>>;
544
+ monero_lock_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
545
+ xmr_amount_pico: z.ZodOptional<z.ZodString>;
546
+ monero_tx_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
547
+ monero_tx_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
548
+ monero_restore_height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
549
+ combined_view_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
550
+ }, "strip", z.ZodTypeAny, {
551
+ A: string;
552
+ S_a_bitcoin: string;
553
+ cancel_timelock: number;
554
+ punish_timelock: number;
555
+ redeem_address: string;
556
+ punish_address: string;
557
+ tx_cancel_fee_sats: number;
558
+ tx_refund_fee_sats: number;
559
+ tx_redeem_fee_sats: number;
560
+ tx_punish_fee_sats: number;
561
+ amnesty_amount_sats?: number | undefined;
562
+ remaining_refund_timelock?: number | undefined;
563
+ tx_partial_refund_fee_sats?: number | undefined;
564
+ tx_reclaim_fee_sats?: number | undefined;
565
+ tx_withhold_fee_sats?: number | undefined;
566
+ tx_mercy_fee_sats?: number | undefined;
567
+ tx_full_refund_encsig?: string | null | undefined;
568
+ tx_partial_refund_encsig?: string | null | undefined;
569
+ tx_cancel_sig?: string | null | undefined;
570
+ unsigned_lock_psbt?: string | null | undefined;
571
+ S_a_monero?: string | undefined;
572
+ dleq_proof_s_a?: string | null | undefined;
573
+ v_a?: string | null | undefined;
574
+ monero_lock_address?: string | null | undefined;
575
+ xmr_amount_pico?: string | undefined;
576
+ monero_tx_hash?: string | null | undefined;
577
+ monero_tx_key?: string | null | undefined;
578
+ monero_restore_height?: number | null | undefined;
579
+ combined_view_key?: string | null | undefined;
580
+ }, {
581
+ A: string;
582
+ S_a_bitcoin: string;
583
+ cancel_timelock: number;
584
+ punish_timelock: number;
585
+ redeem_address: string;
586
+ punish_address: string;
587
+ tx_cancel_fee_sats: number;
588
+ tx_refund_fee_sats: number;
589
+ tx_redeem_fee_sats: number;
590
+ tx_punish_fee_sats: number;
591
+ amnesty_amount_sats?: number | undefined;
592
+ remaining_refund_timelock?: number | undefined;
593
+ tx_partial_refund_fee_sats?: number | undefined;
594
+ tx_reclaim_fee_sats?: number | undefined;
595
+ tx_withhold_fee_sats?: number | undefined;
596
+ tx_mercy_fee_sats?: number | undefined;
597
+ tx_full_refund_encsig?: string | null | undefined;
598
+ tx_partial_refund_encsig?: string | null | undefined;
599
+ tx_cancel_sig?: string | null | undefined;
600
+ unsigned_lock_psbt?: string | null | undefined;
601
+ S_a_monero?: string | undefined;
602
+ dleq_proof_s_a?: string | null | undefined;
603
+ v_a?: string | null | undefined;
604
+ monero_lock_address?: string | null | undefined;
605
+ xmr_amount_pico?: string | undefined;
606
+ monero_tx_hash?: string | null | undefined;
607
+ monero_tx_key?: string | null | undefined;
608
+ monero_restore_height?: number | null | undefined;
609
+ combined_view_key?: string | null | undefined;
610
+ }>;
611
+ export declare const swapProtocolDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
612
+ type: z.ZodLiteral<"atomicswap">;
613
+ params: z.ZodNullable<z.ZodObject<{
614
+ A: z.ZodString;
615
+ S_a_bitcoin: z.ZodString;
616
+ cancel_timelock: z.ZodNumber;
617
+ punish_timelock: z.ZodNumber;
618
+ redeem_address: z.ZodString;
619
+ punish_address: z.ZodString;
620
+ tx_cancel_fee_sats: z.ZodNumber;
621
+ tx_refund_fee_sats: z.ZodNumber;
622
+ tx_redeem_fee_sats: z.ZodNumber;
623
+ tx_punish_fee_sats: z.ZodNumber;
624
+ amnesty_amount_sats: z.ZodOptional<z.ZodNumber>;
625
+ remaining_refund_timelock: z.ZodOptional<z.ZodNumber>;
626
+ tx_partial_refund_fee_sats: z.ZodOptional<z.ZodNumber>;
627
+ tx_reclaim_fee_sats: z.ZodOptional<z.ZodNumber>;
628
+ tx_withhold_fee_sats: z.ZodOptional<z.ZodNumber>;
629
+ tx_mercy_fee_sats: z.ZodOptional<z.ZodNumber>;
630
+ tx_full_refund_encsig: z.ZodOptional<z.ZodNullable<z.ZodString>>;
631
+ tx_partial_refund_encsig: z.ZodOptional<z.ZodNullable<z.ZodString>>;
632
+ /**
633
+ * Alice's plain ECDSA pre-sig on TxCancel (Message3). The client persists
634
+ * this in the recovery snapshot before /fund so a future autonomous-cancel
635
+ * path can broadcast TxCancel without the sidecar's cooperation. Currently
636
+ * informational only — the server still publishes TxCancel. V-16 enabling-
637
+ * work.
638
+ */
639
+ tx_cancel_sig: z.ZodOptional<z.ZodNullable<z.ZodString>>;
640
+ unsigned_lock_psbt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
641
+ S_a_monero: z.ZodOptional<z.ZodString>;
642
+ dleq_proof_s_a: z.ZodOptional<z.ZodNullable<z.ZodString>>;
643
+ v_a: z.ZodOptional<z.ZodNullable<z.ZodString>>;
644
+ monero_lock_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
645
+ xmr_amount_pico: z.ZodOptional<z.ZodString>;
646
+ monero_tx_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
647
+ monero_tx_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
648
+ monero_restore_height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
649
+ combined_view_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
650
+ }, "strip", z.ZodTypeAny, {
651
+ A: string;
652
+ S_a_bitcoin: string;
653
+ cancel_timelock: number;
654
+ punish_timelock: number;
655
+ redeem_address: string;
656
+ punish_address: string;
657
+ tx_cancel_fee_sats: number;
658
+ tx_refund_fee_sats: number;
659
+ tx_redeem_fee_sats: number;
660
+ tx_punish_fee_sats: number;
661
+ amnesty_amount_sats?: number | undefined;
662
+ remaining_refund_timelock?: number | undefined;
663
+ tx_partial_refund_fee_sats?: number | undefined;
664
+ tx_reclaim_fee_sats?: number | undefined;
665
+ tx_withhold_fee_sats?: number | undefined;
666
+ tx_mercy_fee_sats?: number | undefined;
667
+ tx_full_refund_encsig?: string | null | undefined;
668
+ tx_partial_refund_encsig?: string | null | undefined;
669
+ tx_cancel_sig?: string | null | undefined;
670
+ unsigned_lock_psbt?: string | null | undefined;
671
+ S_a_monero?: string | undefined;
672
+ dleq_proof_s_a?: string | null | undefined;
673
+ v_a?: string | null | undefined;
674
+ monero_lock_address?: string | null | undefined;
675
+ xmr_amount_pico?: string | undefined;
676
+ monero_tx_hash?: string | null | undefined;
677
+ monero_tx_key?: string | null | undefined;
678
+ monero_restore_height?: number | null | undefined;
679
+ combined_view_key?: string | null | undefined;
680
+ }, {
681
+ A: string;
682
+ S_a_bitcoin: string;
683
+ cancel_timelock: number;
684
+ punish_timelock: number;
685
+ redeem_address: string;
686
+ punish_address: string;
687
+ tx_cancel_fee_sats: number;
688
+ tx_refund_fee_sats: number;
689
+ tx_redeem_fee_sats: number;
690
+ tx_punish_fee_sats: number;
691
+ amnesty_amount_sats?: number | undefined;
692
+ remaining_refund_timelock?: number | undefined;
693
+ tx_partial_refund_fee_sats?: number | undefined;
694
+ tx_reclaim_fee_sats?: number | undefined;
695
+ tx_withhold_fee_sats?: number | undefined;
696
+ tx_mercy_fee_sats?: number | undefined;
697
+ tx_full_refund_encsig?: string | null | undefined;
698
+ tx_partial_refund_encsig?: string | null | undefined;
699
+ tx_cancel_sig?: string | null | undefined;
700
+ unsigned_lock_psbt?: string | null | undefined;
701
+ S_a_monero?: string | undefined;
702
+ dleq_proof_s_a?: string | null | undefined;
703
+ v_a?: string | null | undefined;
704
+ monero_lock_address?: string | null | undefined;
705
+ xmr_amount_pico?: string | undefined;
706
+ monero_tx_hash?: string | null | undefined;
707
+ monero_tx_key?: string | null | undefined;
708
+ monero_restore_height?: number | null | undefined;
709
+ combined_view_key?: string | null | undefined;
710
+ }>>;
711
+ }, "strip", z.ZodTypeAny, {
712
+ params: {
713
+ A: string;
714
+ S_a_bitcoin: string;
715
+ cancel_timelock: number;
716
+ punish_timelock: number;
717
+ redeem_address: string;
718
+ punish_address: string;
719
+ tx_cancel_fee_sats: number;
720
+ tx_refund_fee_sats: number;
721
+ tx_redeem_fee_sats: number;
722
+ tx_punish_fee_sats: number;
723
+ amnesty_amount_sats?: number | undefined;
724
+ remaining_refund_timelock?: number | undefined;
725
+ tx_partial_refund_fee_sats?: number | undefined;
726
+ tx_reclaim_fee_sats?: number | undefined;
727
+ tx_withhold_fee_sats?: number | undefined;
728
+ tx_mercy_fee_sats?: number | undefined;
729
+ tx_full_refund_encsig?: string | null | undefined;
730
+ tx_partial_refund_encsig?: string | null | undefined;
731
+ tx_cancel_sig?: string | null | undefined;
732
+ unsigned_lock_psbt?: string | null | undefined;
733
+ S_a_monero?: string | undefined;
734
+ dleq_proof_s_a?: string | null | undefined;
735
+ v_a?: string | null | undefined;
736
+ monero_lock_address?: string | null | undefined;
737
+ xmr_amount_pico?: string | undefined;
738
+ monero_tx_hash?: string | null | undefined;
739
+ monero_tx_key?: string | null | undefined;
740
+ monero_restore_height?: number | null | undefined;
741
+ combined_view_key?: string | null | undefined;
742
+ } | null;
743
+ type: "atomicswap";
744
+ }, {
745
+ params: {
746
+ A: string;
747
+ S_a_bitcoin: string;
748
+ cancel_timelock: number;
749
+ punish_timelock: number;
750
+ redeem_address: string;
751
+ punish_address: string;
752
+ tx_cancel_fee_sats: number;
753
+ tx_refund_fee_sats: number;
754
+ tx_redeem_fee_sats: number;
755
+ tx_punish_fee_sats: number;
756
+ amnesty_amount_sats?: number | undefined;
757
+ remaining_refund_timelock?: number | undefined;
758
+ tx_partial_refund_fee_sats?: number | undefined;
759
+ tx_reclaim_fee_sats?: number | undefined;
760
+ tx_withhold_fee_sats?: number | undefined;
761
+ tx_mercy_fee_sats?: number | undefined;
762
+ tx_full_refund_encsig?: string | null | undefined;
763
+ tx_partial_refund_encsig?: string | null | undefined;
764
+ tx_cancel_sig?: string | null | undefined;
765
+ unsigned_lock_psbt?: string | null | undefined;
766
+ S_a_monero?: string | undefined;
767
+ dleq_proof_s_a?: string | null | undefined;
768
+ v_a?: string | null | undefined;
769
+ monero_lock_address?: string | null | undefined;
770
+ xmr_amount_pico?: string | undefined;
771
+ monero_tx_hash?: string | null | undefined;
772
+ monero_tx_key?: string | null | undefined;
773
+ monero_restore_height?: number | null | undefined;
774
+ combined_view_key?: string | null | undefined;
775
+ } | null;
776
+ type: "atomicswap";
777
+ }>, z.ZodObject<{
778
+ type: z.ZodLiteral<"near_intents">;
779
+ pendingSignature: z.ZodNullable<z.ZodObject<{
780
+ unsignedSwapPayload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
781
+ freshQuote: z.ZodObject<{
782
+ amountOut: z.ZodString;
783
+ quoteHash: z.ZodString;
784
+ expiresAt: z.ZodString;
785
+ }, "strip", z.ZodTypeAny, {
786
+ amountOut: string;
787
+ quoteHash: string;
788
+ expiresAt: string;
789
+ }, {
790
+ amountOut: string;
791
+ quoteHash: string;
792
+ expiresAt: string;
793
+ }>;
794
+ }, "strip", z.ZodTypeAny, {
795
+ unsignedSwapPayload: Record<string, unknown>;
796
+ freshQuote: {
797
+ amountOut: string;
798
+ quoteHash: string;
799
+ expiresAt: string;
800
+ };
801
+ }, {
802
+ unsignedSwapPayload: Record<string, unknown>;
803
+ freshQuote: {
804
+ amountOut: string;
805
+ quoteHash: string;
806
+ expiresAt: string;
807
+ };
808
+ }>>;
809
+ }, "strip", z.ZodTypeAny, {
810
+ type: "near_intents";
811
+ pendingSignature: {
812
+ unsignedSwapPayload: Record<string, unknown>;
813
+ freshQuote: {
814
+ amountOut: string;
815
+ quoteHash: string;
816
+ expiresAt: string;
817
+ };
818
+ } | null;
819
+ }, {
820
+ type: "near_intents";
821
+ pendingSignature: {
822
+ unsignedSwapPayload: Record<string, unknown>;
823
+ freshQuote: {
824
+ amountOut: string;
825
+ quoteHash: string;
826
+ expiresAt: string;
827
+ };
828
+ } | null;
829
+ }>, z.ZodObject<{
830
+ type: z.ZodLiteral<"thorchain">;
831
+ }, "strip", z.ZodTypeAny, {
832
+ type: "thorchain";
833
+ }, {
834
+ type: "thorchain";
835
+ }>, z.ZodObject<{
836
+ type: z.ZodLiteral<"chainflip">;
837
+ }, "strip", z.ZodTypeAny, {
838
+ type: "chainflip";
839
+ }, {
840
+ type: "chainflip";
841
+ }>]>;
842
+ export type SwapProtocolData = z.infer<typeof swapProtocolDataSchema>;
843
+ export type SwapDetailProtocolData = SwapProtocolData;
844
+ export declare const createSwapResponseSchema: z.ZodObject<{
845
+ swapNumber: z.ZodString;
846
+ 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>]>;
847
+ provider: z.ZodUnion<[z.ZodEnum<["thorchain", "chainflip", "near_intents", "atomicswap"]>, z.ZodEffects<z.ZodString, `unknown:${string}`, string>]>;
848
+ depositAddress: z.ZodNullable<z.ZodString>;
849
+ fromToken: z.ZodString;
850
+ toToken: z.ZodString;
851
+ amountIn: z.ZodString;
852
+ amountInUsd: z.ZodNullable<z.ZodString>;
853
+ expectedAmountOut: z.ZodNullable<z.ZodString>;
854
+ expectedAmountOutUsd: z.ZodNullable<z.ZodString>;
855
+ priceImpactPct: z.ZodNullable<z.ZodString>;
856
+ expiresAt: z.ZodNullable<z.ZodString>;
857
+ requiresFunding: z.ZodBoolean;
858
+ fundingDeadlineSecs: z.ZodNullable<z.ZodNumber>;
859
+ protocolData: z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
860
+ type: z.ZodLiteral<"atomicswap">;
861
+ params: z.ZodNullable<z.ZodObject<{
862
+ A: z.ZodString;
863
+ S_a_bitcoin: z.ZodString;
864
+ cancel_timelock: z.ZodNumber;
865
+ punish_timelock: z.ZodNumber;
866
+ redeem_address: z.ZodString;
867
+ punish_address: z.ZodString;
868
+ tx_cancel_fee_sats: z.ZodNumber;
869
+ tx_refund_fee_sats: z.ZodNumber;
870
+ tx_redeem_fee_sats: z.ZodNumber;
871
+ tx_punish_fee_sats: z.ZodNumber;
872
+ amnesty_amount_sats: z.ZodOptional<z.ZodNumber>;
873
+ remaining_refund_timelock: z.ZodOptional<z.ZodNumber>;
874
+ tx_partial_refund_fee_sats: z.ZodOptional<z.ZodNumber>;
875
+ tx_reclaim_fee_sats: z.ZodOptional<z.ZodNumber>;
876
+ tx_withhold_fee_sats: z.ZodOptional<z.ZodNumber>;
877
+ tx_mercy_fee_sats: z.ZodOptional<z.ZodNumber>;
878
+ tx_full_refund_encsig: z.ZodOptional<z.ZodNullable<z.ZodString>>;
879
+ tx_partial_refund_encsig: z.ZodOptional<z.ZodNullable<z.ZodString>>;
880
+ /**
881
+ * Alice's plain ECDSA pre-sig on TxCancel (Message3). The client persists
882
+ * this in the recovery snapshot before /fund so a future autonomous-cancel
883
+ * path can broadcast TxCancel without the sidecar's cooperation. Currently
884
+ * informational only — the server still publishes TxCancel. V-16 enabling-
885
+ * work.
886
+ */
887
+ tx_cancel_sig: z.ZodOptional<z.ZodNullable<z.ZodString>>;
888
+ unsigned_lock_psbt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
889
+ S_a_monero: z.ZodOptional<z.ZodString>;
890
+ dleq_proof_s_a: z.ZodOptional<z.ZodNullable<z.ZodString>>;
891
+ v_a: z.ZodOptional<z.ZodNullable<z.ZodString>>;
892
+ monero_lock_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
893
+ xmr_amount_pico: z.ZodOptional<z.ZodString>;
894
+ monero_tx_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
895
+ monero_tx_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
896
+ monero_restore_height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
897
+ combined_view_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
898
+ }, "strip", z.ZodTypeAny, {
899
+ A: string;
900
+ S_a_bitcoin: string;
901
+ cancel_timelock: number;
902
+ punish_timelock: number;
903
+ redeem_address: string;
904
+ punish_address: string;
905
+ tx_cancel_fee_sats: number;
906
+ tx_refund_fee_sats: number;
907
+ tx_redeem_fee_sats: number;
908
+ tx_punish_fee_sats: number;
909
+ amnesty_amount_sats?: number | undefined;
910
+ remaining_refund_timelock?: number | undefined;
911
+ tx_partial_refund_fee_sats?: number | undefined;
912
+ tx_reclaim_fee_sats?: number | undefined;
913
+ tx_withhold_fee_sats?: number | undefined;
914
+ tx_mercy_fee_sats?: number | undefined;
915
+ tx_full_refund_encsig?: string | null | undefined;
916
+ tx_partial_refund_encsig?: string | null | undefined;
917
+ tx_cancel_sig?: string | null | undefined;
918
+ unsigned_lock_psbt?: string | null | undefined;
919
+ S_a_monero?: string | undefined;
920
+ dleq_proof_s_a?: string | null | undefined;
921
+ v_a?: string | null | undefined;
922
+ monero_lock_address?: string | null | undefined;
923
+ xmr_amount_pico?: string | undefined;
924
+ monero_tx_hash?: string | null | undefined;
925
+ monero_tx_key?: string | null | undefined;
926
+ monero_restore_height?: number | null | undefined;
927
+ combined_view_key?: string | null | undefined;
928
+ }, {
929
+ A: string;
930
+ S_a_bitcoin: string;
931
+ cancel_timelock: number;
932
+ punish_timelock: number;
933
+ redeem_address: string;
934
+ punish_address: string;
935
+ tx_cancel_fee_sats: number;
936
+ tx_refund_fee_sats: number;
937
+ tx_redeem_fee_sats: number;
938
+ tx_punish_fee_sats: number;
939
+ amnesty_amount_sats?: number | undefined;
940
+ remaining_refund_timelock?: number | undefined;
941
+ tx_partial_refund_fee_sats?: number | undefined;
942
+ tx_reclaim_fee_sats?: number | undefined;
943
+ tx_withhold_fee_sats?: number | undefined;
944
+ tx_mercy_fee_sats?: number | undefined;
945
+ tx_full_refund_encsig?: string | null | undefined;
946
+ tx_partial_refund_encsig?: string | null | undefined;
947
+ tx_cancel_sig?: string | null | undefined;
948
+ unsigned_lock_psbt?: string | null | undefined;
949
+ S_a_monero?: string | undefined;
950
+ dleq_proof_s_a?: string | null | undefined;
951
+ v_a?: string | null | undefined;
952
+ monero_lock_address?: string | null | undefined;
953
+ xmr_amount_pico?: string | undefined;
954
+ monero_tx_hash?: string | null | undefined;
955
+ monero_tx_key?: string | null | undefined;
956
+ monero_restore_height?: number | null | undefined;
957
+ combined_view_key?: string | null | undefined;
958
+ }>>;
959
+ }, "strip", z.ZodTypeAny, {
960
+ params: {
961
+ A: string;
962
+ S_a_bitcoin: string;
963
+ cancel_timelock: number;
964
+ punish_timelock: number;
965
+ redeem_address: string;
966
+ punish_address: string;
967
+ tx_cancel_fee_sats: number;
968
+ tx_refund_fee_sats: number;
969
+ tx_redeem_fee_sats: number;
970
+ tx_punish_fee_sats: number;
971
+ amnesty_amount_sats?: number | undefined;
972
+ remaining_refund_timelock?: number | undefined;
973
+ tx_partial_refund_fee_sats?: number | undefined;
974
+ tx_reclaim_fee_sats?: number | undefined;
975
+ tx_withhold_fee_sats?: number | undefined;
976
+ tx_mercy_fee_sats?: number | undefined;
977
+ tx_full_refund_encsig?: string | null | undefined;
978
+ tx_partial_refund_encsig?: string | null | undefined;
979
+ tx_cancel_sig?: string | null | undefined;
980
+ unsigned_lock_psbt?: string | null | undefined;
981
+ S_a_monero?: string | undefined;
982
+ dleq_proof_s_a?: string | null | undefined;
983
+ v_a?: string | null | undefined;
984
+ monero_lock_address?: string | null | undefined;
985
+ xmr_amount_pico?: string | undefined;
986
+ monero_tx_hash?: string | null | undefined;
987
+ monero_tx_key?: string | null | undefined;
988
+ monero_restore_height?: number | null | undefined;
989
+ combined_view_key?: string | null | undefined;
990
+ } | null;
991
+ type: "atomicswap";
992
+ }, {
993
+ params: {
994
+ A: string;
995
+ S_a_bitcoin: string;
996
+ cancel_timelock: number;
997
+ punish_timelock: number;
998
+ redeem_address: string;
999
+ punish_address: string;
1000
+ tx_cancel_fee_sats: number;
1001
+ tx_refund_fee_sats: number;
1002
+ tx_redeem_fee_sats: number;
1003
+ tx_punish_fee_sats: number;
1004
+ amnesty_amount_sats?: number | undefined;
1005
+ remaining_refund_timelock?: number | undefined;
1006
+ tx_partial_refund_fee_sats?: number | undefined;
1007
+ tx_reclaim_fee_sats?: number | undefined;
1008
+ tx_withhold_fee_sats?: number | undefined;
1009
+ tx_mercy_fee_sats?: number | undefined;
1010
+ tx_full_refund_encsig?: string | null | undefined;
1011
+ tx_partial_refund_encsig?: string | null | undefined;
1012
+ tx_cancel_sig?: string | null | undefined;
1013
+ unsigned_lock_psbt?: string | null | undefined;
1014
+ S_a_monero?: string | undefined;
1015
+ dleq_proof_s_a?: string | null | undefined;
1016
+ v_a?: string | null | undefined;
1017
+ monero_lock_address?: string | null | undefined;
1018
+ xmr_amount_pico?: string | undefined;
1019
+ monero_tx_hash?: string | null | undefined;
1020
+ monero_tx_key?: string | null | undefined;
1021
+ monero_restore_height?: number | null | undefined;
1022
+ combined_view_key?: string | null | undefined;
1023
+ } | null;
1024
+ type: "atomicswap";
1025
+ }>, z.ZodObject<{
1026
+ type: z.ZodLiteral<"near_intents">;
1027
+ pendingSignature: z.ZodNullable<z.ZodObject<{
1028
+ unsignedSwapPayload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1029
+ freshQuote: z.ZodObject<{
1030
+ amountOut: z.ZodString;
1031
+ quoteHash: z.ZodString;
1032
+ expiresAt: z.ZodString;
1033
+ }, "strip", z.ZodTypeAny, {
1034
+ amountOut: string;
1035
+ quoteHash: string;
1036
+ expiresAt: string;
1037
+ }, {
1038
+ amountOut: string;
1039
+ quoteHash: string;
1040
+ expiresAt: string;
1041
+ }>;
1042
+ }, "strip", z.ZodTypeAny, {
1043
+ unsignedSwapPayload: Record<string, unknown>;
1044
+ freshQuote: {
1045
+ amountOut: string;
1046
+ quoteHash: string;
1047
+ expiresAt: string;
1048
+ };
1049
+ }, {
1050
+ unsignedSwapPayload: Record<string, unknown>;
1051
+ freshQuote: {
1052
+ amountOut: string;
1053
+ quoteHash: string;
1054
+ expiresAt: string;
1055
+ };
1056
+ }>>;
1057
+ }, "strip", z.ZodTypeAny, {
1058
+ type: "near_intents";
1059
+ pendingSignature: {
1060
+ unsignedSwapPayload: Record<string, unknown>;
1061
+ freshQuote: {
1062
+ amountOut: string;
1063
+ quoteHash: string;
1064
+ expiresAt: string;
1065
+ };
1066
+ } | null;
1067
+ }, {
1068
+ type: "near_intents";
1069
+ pendingSignature: {
1070
+ unsignedSwapPayload: Record<string, unknown>;
1071
+ freshQuote: {
1072
+ amountOut: string;
1073
+ quoteHash: string;
1074
+ expiresAt: string;
1075
+ };
1076
+ } | null;
1077
+ }>, z.ZodObject<{
1078
+ type: z.ZodLiteral<"thorchain">;
1079
+ }, "strip", z.ZodTypeAny, {
1080
+ type: "thorchain";
1081
+ }, {
1082
+ type: "thorchain";
1083
+ }>, z.ZodObject<{
1084
+ type: z.ZodLiteral<"chainflip">;
1085
+ }, "strip", z.ZodTypeAny, {
1086
+ type: "chainflip";
1087
+ }, {
1088
+ type: "chainflip";
1089
+ }>]>>;
1090
+ verification: z.ZodNullable<z.ZodDiscriminatedUnion<"provider", [z.ZodObject<{
1091
+ provider: z.ZodLiteral<"chainflip">;
1092
+ channel_id: z.ZodString;
1093
+ status_url: z.ZodString;
1094
+ explorer_url: z.ZodNullable<z.ZodString>;
1095
+ }, "strip", z.ZodTypeAny, {
1096
+ provider: "chainflip";
1097
+ channel_id: string;
1098
+ status_url: string;
1099
+ explorer_url: string | null;
1100
+ }, {
1101
+ provider: "chainflip";
1102
+ channel_id: string;
1103
+ status_url: string;
1104
+ explorer_url: string | null;
1105
+ }>, z.ZodObject<{
1106
+ provider: z.ZodLiteral<"thorchain">;
1107
+ thornode_url: z.ZodString;
1108
+ inbound_addresses_url: z.ZodString;
1109
+ registered_memo: z.ZodNullable<z.ZodString>;
1110
+ reference_number: z.ZodNullable<z.ZodNumber>;
1111
+ explorer_url: z.ZodNullable<z.ZodString>;
1112
+ }, "strip", z.ZodTypeAny, {
1113
+ provider: "thorchain";
1114
+ explorer_url: string | null;
1115
+ thornode_url: string;
1116
+ inbound_addresses_url: string;
1117
+ registered_memo: string | null;
1118
+ reference_number: number | null;
1119
+ }, {
1120
+ provider: "thorchain";
1121
+ explorer_url: string | null;
1122
+ thornode_url: string;
1123
+ inbound_addresses_url: string;
1124
+ registered_memo: string | null;
1125
+ reference_number: number | null;
1126
+ }>, z.ZodObject<{
1127
+ provider: z.ZodLiteral<"near_intents">;
1128
+ status_url: z.ZodNullable<z.ZodString>;
1129
+ deposit_memo: z.ZodNullable<z.ZodString>;
1130
+ explorer_url: z.ZodNullable<z.ZodString>;
1131
+ correlation_id: z.ZodOptional<z.ZodString>;
1132
+ }, "strip", z.ZodTypeAny, {
1133
+ provider: "near_intents";
1134
+ status_url: string | null;
1135
+ explorer_url: string | null;
1136
+ deposit_memo: string | null;
1137
+ correlation_id?: string | undefined;
1138
+ }, {
1139
+ provider: "near_intents";
1140
+ status_url: string | null;
1141
+ explorer_url: string | null;
1142
+ deposit_memo: string | null;
1143
+ correlation_id?: string | undefined;
1144
+ }>, z.ZodObject<{
1145
+ provider: z.ZodLiteral<"atomicswap">;
1146
+ lock_address: z.ZodString;
1147
+ deposit_type: z.ZodString;
1148
+ timelock_blocks: z.ZodNumber;
1149
+ timelock_hours: z.ZodNumber;
1150
+ refund_address: z.ZodString;
1151
+ explorer_url: z.ZodNullable<z.ZodString>;
1152
+ }, "strip", z.ZodTypeAny, {
1153
+ provider: "atomicswap";
1154
+ explorer_url: string | null;
1155
+ lock_address: string;
1156
+ deposit_type: string;
1157
+ timelock_blocks: number;
1158
+ timelock_hours: number;
1159
+ refund_address: string;
1160
+ }, {
1161
+ provider: "atomicswap";
1162
+ explorer_url: string | null;
1163
+ lock_address: string;
1164
+ deposit_type: string;
1165
+ timelock_blocks: number;
1166
+ timelock_hours: number;
1167
+ refund_address: string;
1168
+ }>]>>;
1169
+ }, "strip", z.ZodTypeAny, {
1170
+ status: `unknown:${string}` | "initializing" | "pending" | "awaiting_funding" | "deposited" | "swapping" | "sending" | "cancelling" | "completed" | "failed" | "refunded" | "withheld" | "punished" | "expired";
1171
+ provider: `unknown:${string}` | "thorchain" | "chainflip" | "near_intents" | "atomicswap";
1172
+ fromToken: string;
1173
+ toToken: string;
1174
+ priceImpactPct: string | null;
1175
+ amountInUsd: string | null;
1176
+ expiresAt: string | null;
1177
+ swapNumber: string;
1178
+ depositAddress: string | null;
1179
+ amountIn: string;
1180
+ expectedAmountOut: string | null;
1181
+ expectedAmountOutUsd: string | null;
1182
+ requiresFunding: boolean;
1183
+ fundingDeadlineSecs: number | null;
1184
+ protocolData: {
1185
+ params: {
1186
+ A: string;
1187
+ S_a_bitcoin: string;
1188
+ cancel_timelock: number;
1189
+ punish_timelock: number;
1190
+ redeem_address: string;
1191
+ punish_address: string;
1192
+ tx_cancel_fee_sats: number;
1193
+ tx_refund_fee_sats: number;
1194
+ tx_redeem_fee_sats: number;
1195
+ tx_punish_fee_sats: number;
1196
+ amnesty_amount_sats?: number | undefined;
1197
+ remaining_refund_timelock?: number | undefined;
1198
+ tx_partial_refund_fee_sats?: number | undefined;
1199
+ tx_reclaim_fee_sats?: number | undefined;
1200
+ tx_withhold_fee_sats?: number | undefined;
1201
+ tx_mercy_fee_sats?: number | undefined;
1202
+ tx_full_refund_encsig?: string | null | undefined;
1203
+ tx_partial_refund_encsig?: string | null | undefined;
1204
+ tx_cancel_sig?: string | null | undefined;
1205
+ unsigned_lock_psbt?: string | null | undefined;
1206
+ S_a_monero?: string | undefined;
1207
+ dleq_proof_s_a?: string | null | undefined;
1208
+ v_a?: string | null | undefined;
1209
+ monero_lock_address?: string | null | undefined;
1210
+ xmr_amount_pico?: string | undefined;
1211
+ monero_tx_hash?: string | null | undefined;
1212
+ monero_tx_key?: string | null | undefined;
1213
+ monero_restore_height?: number | null | undefined;
1214
+ combined_view_key?: string | null | undefined;
1215
+ } | null;
1216
+ type: "atomicswap";
1217
+ } | {
1218
+ type: "near_intents";
1219
+ pendingSignature: {
1220
+ unsignedSwapPayload: Record<string, unknown>;
1221
+ freshQuote: {
1222
+ amountOut: string;
1223
+ quoteHash: string;
1224
+ expiresAt: string;
1225
+ };
1226
+ } | null;
1227
+ } | {
1228
+ type: "thorchain";
1229
+ } | {
1230
+ type: "chainflip";
1231
+ } | null;
1232
+ verification: {
1233
+ provider: "chainflip";
1234
+ channel_id: string;
1235
+ status_url: string;
1236
+ explorer_url: string | null;
1237
+ } | {
1238
+ provider: "thorchain";
1239
+ explorer_url: string | null;
1240
+ thornode_url: string;
1241
+ inbound_addresses_url: string;
1242
+ registered_memo: string | null;
1243
+ reference_number: number | null;
1244
+ } | {
1245
+ provider: "near_intents";
1246
+ status_url: string | null;
1247
+ explorer_url: string | null;
1248
+ deposit_memo: string | null;
1249
+ correlation_id?: string | undefined;
1250
+ } | {
1251
+ provider: "atomicswap";
1252
+ explorer_url: string | null;
1253
+ lock_address: string;
1254
+ deposit_type: string;
1255
+ timelock_blocks: number;
1256
+ timelock_hours: number;
1257
+ refund_address: string;
1258
+ } | null;
1259
+ }, {
1260
+ status: string;
1261
+ provider: string;
1262
+ fromToken: string;
1263
+ toToken: string;
1264
+ priceImpactPct: string | null;
1265
+ amountInUsd: string | null;
1266
+ expiresAt: string | null;
1267
+ swapNumber: string;
1268
+ depositAddress: string | null;
1269
+ amountIn: string;
1270
+ expectedAmountOut: string | null;
1271
+ expectedAmountOutUsd: string | null;
1272
+ requiresFunding: boolean;
1273
+ fundingDeadlineSecs: number | null;
1274
+ protocolData: {
1275
+ params: {
1276
+ A: string;
1277
+ S_a_bitcoin: string;
1278
+ cancel_timelock: number;
1279
+ punish_timelock: number;
1280
+ redeem_address: string;
1281
+ punish_address: string;
1282
+ tx_cancel_fee_sats: number;
1283
+ tx_refund_fee_sats: number;
1284
+ tx_redeem_fee_sats: number;
1285
+ tx_punish_fee_sats: number;
1286
+ amnesty_amount_sats?: number | undefined;
1287
+ remaining_refund_timelock?: number | undefined;
1288
+ tx_partial_refund_fee_sats?: number | undefined;
1289
+ tx_reclaim_fee_sats?: number | undefined;
1290
+ tx_withhold_fee_sats?: number | undefined;
1291
+ tx_mercy_fee_sats?: number | undefined;
1292
+ tx_full_refund_encsig?: string | null | undefined;
1293
+ tx_partial_refund_encsig?: string | null | undefined;
1294
+ tx_cancel_sig?: string | null | undefined;
1295
+ unsigned_lock_psbt?: string | null | undefined;
1296
+ S_a_monero?: string | undefined;
1297
+ dleq_proof_s_a?: string | null | undefined;
1298
+ v_a?: string | null | undefined;
1299
+ monero_lock_address?: string | null | undefined;
1300
+ xmr_amount_pico?: string | undefined;
1301
+ monero_tx_hash?: string | null | undefined;
1302
+ monero_tx_key?: string | null | undefined;
1303
+ monero_restore_height?: number | null | undefined;
1304
+ combined_view_key?: string | null | undefined;
1305
+ } | null;
1306
+ type: "atomicswap";
1307
+ } | {
1308
+ type: "near_intents";
1309
+ pendingSignature: {
1310
+ unsignedSwapPayload: Record<string, unknown>;
1311
+ freshQuote: {
1312
+ amountOut: string;
1313
+ quoteHash: string;
1314
+ expiresAt: string;
1315
+ };
1316
+ } | null;
1317
+ } | {
1318
+ type: "thorchain";
1319
+ } | {
1320
+ type: "chainflip";
1321
+ } | null;
1322
+ verification: {
1323
+ provider: "chainflip";
1324
+ channel_id: string;
1325
+ status_url: string;
1326
+ explorer_url: string | null;
1327
+ } | {
1328
+ provider: "thorchain";
1329
+ explorer_url: string | null;
1330
+ thornode_url: string;
1331
+ inbound_addresses_url: string;
1332
+ registered_memo: string | null;
1333
+ reference_number: number | null;
1334
+ } | {
1335
+ provider: "near_intents";
1336
+ status_url: string | null;
1337
+ explorer_url: string | null;
1338
+ deposit_memo: string | null;
1339
+ correlation_id?: string | undefined;
1340
+ } | {
1341
+ provider: "atomicswap";
1342
+ explorer_url: string | null;
1343
+ lock_address: string;
1344
+ deposit_type: string;
1345
+ timelock_blocks: number;
1346
+ timelock_hours: number;
1347
+ refund_address: string;
1348
+ } | null;
1349
+ }>;
1350
+ export type CreateSwapResponse = z.infer<typeof createSwapResponseSchema>;
1351
+ export declare const swapDetailSchema: z.ZodObject<{
1352
+ swapNumber: z.ZodString;
1353
+ 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>]>;
1354
+ provider: z.ZodUnion<[z.ZodEnum<["thorchain", "chainflip", "near_intents", "atomicswap"]>, z.ZodEffects<z.ZodString, `unknown:${string}`, string>]>;
1355
+ fromToken: z.ZodString;
1356
+ fromChain: z.ZodString;
1357
+ toToken: z.ZodString;
1358
+ toChain: z.ZodString;
1359
+ amountIn: z.ZodString;
1360
+ amountInUsd: z.ZodNullable<z.ZodString>;
1361
+ expectedAmountOut: z.ZodNullable<z.ZodString>;
1362
+ expectedAmountOutUsd: z.ZodNullable<z.ZodString>;
1363
+ actualAmountOut: z.ZodNullable<z.ZodString>;
1364
+ actualAmountOutUsd: z.ZodNullable<z.ZodString>;
1365
+ priceImpactPct: z.ZodNullable<z.ZodString>;
1366
+ depositAddress: z.ZodNullable<z.ZodString>;
1367
+ fundingAddress: z.ZodNullable<z.ZodString>;
1368
+ destAddress: z.ZodString;
1369
+ refundAddress: z.ZodNullable<z.ZodString>;
1370
+ depositTxHash: z.ZodNullable<z.ZodString>;
1371
+ outputTxHash: z.ZodNullable<z.ZodString>;
1372
+ refundTxHash: z.ZodNullable<z.ZodString>;
1373
+ expiresAt: z.ZodNullable<z.ZodString>;
1374
+ createdAt: z.ZodString;
1375
+ updatedAt: z.ZodString;
1376
+ completedAt: z.ZodNullable<z.ZodString>;
1377
+ durationSeconds: z.ZodNullable<z.ZodNumber>;
1378
+ requiresFunding: z.ZodBoolean;
1379
+ verification: z.ZodNullable<z.ZodDiscriminatedUnion<"provider", [z.ZodObject<{
1380
+ provider: z.ZodLiteral<"chainflip">;
1381
+ channel_id: z.ZodString;
1382
+ status_url: z.ZodString;
1383
+ explorer_url: z.ZodNullable<z.ZodString>;
1384
+ }, "strip", z.ZodTypeAny, {
1385
+ provider: "chainflip";
1386
+ channel_id: string;
1387
+ status_url: string;
1388
+ explorer_url: string | null;
1389
+ }, {
1390
+ provider: "chainflip";
1391
+ channel_id: string;
1392
+ status_url: string;
1393
+ explorer_url: string | null;
1394
+ }>, z.ZodObject<{
1395
+ provider: z.ZodLiteral<"thorchain">;
1396
+ thornode_url: z.ZodString;
1397
+ inbound_addresses_url: z.ZodString;
1398
+ registered_memo: z.ZodNullable<z.ZodString>;
1399
+ reference_number: z.ZodNullable<z.ZodNumber>;
1400
+ explorer_url: z.ZodNullable<z.ZodString>;
1401
+ }, "strip", z.ZodTypeAny, {
1402
+ provider: "thorchain";
1403
+ explorer_url: string | null;
1404
+ thornode_url: string;
1405
+ inbound_addresses_url: string;
1406
+ registered_memo: string | null;
1407
+ reference_number: number | null;
1408
+ }, {
1409
+ provider: "thorchain";
1410
+ explorer_url: string | null;
1411
+ thornode_url: string;
1412
+ inbound_addresses_url: string;
1413
+ registered_memo: string | null;
1414
+ reference_number: number | null;
1415
+ }>, z.ZodObject<{
1416
+ provider: z.ZodLiteral<"near_intents">;
1417
+ status_url: z.ZodNullable<z.ZodString>;
1418
+ deposit_memo: z.ZodNullable<z.ZodString>;
1419
+ explorer_url: z.ZodNullable<z.ZodString>;
1420
+ correlation_id: z.ZodOptional<z.ZodString>;
1421
+ }, "strip", z.ZodTypeAny, {
1422
+ provider: "near_intents";
1423
+ status_url: string | null;
1424
+ explorer_url: string | null;
1425
+ deposit_memo: string | null;
1426
+ correlation_id?: string | undefined;
1427
+ }, {
1428
+ provider: "near_intents";
1429
+ status_url: string | null;
1430
+ explorer_url: string | null;
1431
+ deposit_memo: string | null;
1432
+ correlation_id?: string | undefined;
1433
+ }>, z.ZodObject<{
1434
+ provider: z.ZodLiteral<"atomicswap">;
1435
+ lock_address: z.ZodString;
1436
+ deposit_type: z.ZodString;
1437
+ timelock_blocks: z.ZodNumber;
1438
+ timelock_hours: z.ZodNumber;
1439
+ refund_address: z.ZodString;
1440
+ explorer_url: z.ZodNullable<z.ZodString>;
1441
+ }, "strip", z.ZodTypeAny, {
1442
+ provider: "atomicswap";
1443
+ explorer_url: string | null;
1444
+ lock_address: string;
1445
+ deposit_type: string;
1446
+ timelock_blocks: number;
1447
+ timelock_hours: number;
1448
+ refund_address: string;
1449
+ }, {
1450
+ provider: "atomicswap";
1451
+ explorer_url: string | null;
1452
+ lock_address: string;
1453
+ deposit_type: string;
1454
+ timelock_blocks: number;
1455
+ timelock_hours: number;
1456
+ refund_address: string;
1457
+ }>]>>;
1458
+ requiredAction: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1459
+ type: z.ZodUnion<[z.ZodEnum<["wait", "fund", "sweep", "cancel", "refund", "sign_swap", "submit_encsig", "none"]>, z.ZodEffects<z.ZodString, `unknown:${string}`, string>]>;
1460
+ urgency: z.ZodUnion<[z.ZodEnum<["low", "medium", "critical"]>, z.ZodEffects<z.ZodString, `unknown:${string}`, string>]>;
1461
+ message: z.ZodString;
1462
+ blocksRemaining: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1463
+ estimatedSecondsRemaining: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1464
+ txCancelTxid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1465
+ txRefundTxid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1466
+ }, "strip", z.ZodTypeAny, {
1467
+ message: string;
1468
+ type: `unknown:${string}` | "wait" | "fund" | "sweep" | "cancel" | "refund" | "sign_swap" | "submit_encsig" | "none";
1469
+ urgency: `unknown:${string}` | "low" | "medium" | "critical";
1470
+ blocksRemaining?: number | null | undefined;
1471
+ estimatedSecondsRemaining?: number | null | undefined;
1472
+ txCancelTxid?: string | null | undefined;
1473
+ txRefundTxid?: string | null | undefined;
1474
+ }, {
1475
+ message: string;
1476
+ type: string;
1477
+ urgency: string;
1478
+ blocksRemaining?: number | null | undefined;
1479
+ estimatedSecondsRemaining?: number | null | undefined;
1480
+ txCancelTxid?: string | null | undefined;
1481
+ txRefundTxid?: string | null | undefined;
1482
+ }>>>;
1483
+ protocolData: z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1484
+ type: z.ZodLiteral<"atomicswap">;
1485
+ params: z.ZodNullable<z.ZodObject<{
1486
+ A: z.ZodString;
1487
+ S_a_bitcoin: z.ZodString;
1488
+ cancel_timelock: z.ZodNumber;
1489
+ punish_timelock: z.ZodNumber;
1490
+ redeem_address: z.ZodString;
1491
+ punish_address: z.ZodString;
1492
+ tx_cancel_fee_sats: z.ZodNumber;
1493
+ tx_refund_fee_sats: z.ZodNumber;
1494
+ tx_redeem_fee_sats: z.ZodNumber;
1495
+ tx_punish_fee_sats: z.ZodNumber;
1496
+ amnesty_amount_sats: z.ZodOptional<z.ZodNumber>;
1497
+ remaining_refund_timelock: z.ZodOptional<z.ZodNumber>;
1498
+ tx_partial_refund_fee_sats: z.ZodOptional<z.ZodNumber>;
1499
+ tx_reclaim_fee_sats: z.ZodOptional<z.ZodNumber>;
1500
+ tx_withhold_fee_sats: z.ZodOptional<z.ZodNumber>;
1501
+ tx_mercy_fee_sats: z.ZodOptional<z.ZodNumber>;
1502
+ tx_full_refund_encsig: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1503
+ tx_partial_refund_encsig: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1504
+ /**
1505
+ * Alice's plain ECDSA pre-sig on TxCancel (Message3). The client persists
1506
+ * this in the recovery snapshot before /fund so a future autonomous-cancel
1507
+ * path can broadcast TxCancel without the sidecar's cooperation. Currently
1508
+ * informational only — the server still publishes TxCancel. V-16 enabling-
1509
+ * work.
1510
+ */
1511
+ tx_cancel_sig: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1512
+ unsigned_lock_psbt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1513
+ S_a_monero: z.ZodOptional<z.ZodString>;
1514
+ dleq_proof_s_a: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1515
+ v_a: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1516
+ monero_lock_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1517
+ xmr_amount_pico: z.ZodOptional<z.ZodString>;
1518
+ monero_tx_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1519
+ monero_tx_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1520
+ monero_restore_height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1521
+ combined_view_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1522
+ }, "strip", z.ZodTypeAny, {
1523
+ A: string;
1524
+ S_a_bitcoin: string;
1525
+ cancel_timelock: number;
1526
+ punish_timelock: number;
1527
+ redeem_address: string;
1528
+ punish_address: string;
1529
+ tx_cancel_fee_sats: number;
1530
+ tx_refund_fee_sats: number;
1531
+ tx_redeem_fee_sats: number;
1532
+ tx_punish_fee_sats: number;
1533
+ amnesty_amount_sats?: number | undefined;
1534
+ remaining_refund_timelock?: number | undefined;
1535
+ tx_partial_refund_fee_sats?: number | undefined;
1536
+ tx_reclaim_fee_sats?: number | undefined;
1537
+ tx_withhold_fee_sats?: number | undefined;
1538
+ tx_mercy_fee_sats?: number | undefined;
1539
+ tx_full_refund_encsig?: string | null | undefined;
1540
+ tx_partial_refund_encsig?: string | null | undefined;
1541
+ tx_cancel_sig?: string | null | undefined;
1542
+ unsigned_lock_psbt?: string | null | undefined;
1543
+ S_a_monero?: string | undefined;
1544
+ dleq_proof_s_a?: string | null | undefined;
1545
+ v_a?: string | null | undefined;
1546
+ monero_lock_address?: string | null | undefined;
1547
+ xmr_amount_pico?: string | undefined;
1548
+ monero_tx_hash?: string | null | undefined;
1549
+ monero_tx_key?: string | null | undefined;
1550
+ monero_restore_height?: number | null | undefined;
1551
+ combined_view_key?: string | null | undefined;
1552
+ }, {
1553
+ A: string;
1554
+ S_a_bitcoin: string;
1555
+ cancel_timelock: number;
1556
+ punish_timelock: number;
1557
+ redeem_address: string;
1558
+ punish_address: string;
1559
+ tx_cancel_fee_sats: number;
1560
+ tx_refund_fee_sats: number;
1561
+ tx_redeem_fee_sats: number;
1562
+ tx_punish_fee_sats: number;
1563
+ amnesty_amount_sats?: number | undefined;
1564
+ remaining_refund_timelock?: number | undefined;
1565
+ tx_partial_refund_fee_sats?: number | undefined;
1566
+ tx_reclaim_fee_sats?: number | undefined;
1567
+ tx_withhold_fee_sats?: number | undefined;
1568
+ tx_mercy_fee_sats?: number | undefined;
1569
+ tx_full_refund_encsig?: string | null | undefined;
1570
+ tx_partial_refund_encsig?: string | null | undefined;
1571
+ tx_cancel_sig?: string | null | undefined;
1572
+ unsigned_lock_psbt?: string | null | undefined;
1573
+ S_a_monero?: string | undefined;
1574
+ dleq_proof_s_a?: string | null | undefined;
1575
+ v_a?: string | null | undefined;
1576
+ monero_lock_address?: string | null | undefined;
1577
+ xmr_amount_pico?: string | undefined;
1578
+ monero_tx_hash?: string | null | undefined;
1579
+ monero_tx_key?: string | null | undefined;
1580
+ monero_restore_height?: number | null | undefined;
1581
+ combined_view_key?: string | null | undefined;
1582
+ }>>;
1583
+ }, "strip", z.ZodTypeAny, {
1584
+ params: {
1585
+ A: string;
1586
+ S_a_bitcoin: string;
1587
+ cancel_timelock: number;
1588
+ punish_timelock: number;
1589
+ redeem_address: string;
1590
+ punish_address: string;
1591
+ tx_cancel_fee_sats: number;
1592
+ tx_refund_fee_sats: number;
1593
+ tx_redeem_fee_sats: number;
1594
+ tx_punish_fee_sats: number;
1595
+ amnesty_amount_sats?: number | undefined;
1596
+ remaining_refund_timelock?: number | undefined;
1597
+ tx_partial_refund_fee_sats?: number | undefined;
1598
+ tx_reclaim_fee_sats?: number | undefined;
1599
+ tx_withhold_fee_sats?: number | undefined;
1600
+ tx_mercy_fee_sats?: number | undefined;
1601
+ tx_full_refund_encsig?: string | null | undefined;
1602
+ tx_partial_refund_encsig?: string | null | undefined;
1603
+ tx_cancel_sig?: string | null | undefined;
1604
+ unsigned_lock_psbt?: string | null | undefined;
1605
+ S_a_monero?: string | undefined;
1606
+ dleq_proof_s_a?: string | null | undefined;
1607
+ v_a?: string | null | undefined;
1608
+ monero_lock_address?: string | null | undefined;
1609
+ xmr_amount_pico?: string | undefined;
1610
+ monero_tx_hash?: string | null | undefined;
1611
+ monero_tx_key?: string | null | undefined;
1612
+ monero_restore_height?: number | null | undefined;
1613
+ combined_view_key?: string | null | undefined;
1614
+ } | null;
1615
+ type: "atomicswap";
1616
+ }, {
1617
+ params: {
1618
+ A: string;
1619
+ S_a_bitcoin: string;
1620
+ cancel_timelock: number;
1621
+ punish_timelock: number;
1622
+ redeem_address: string;
1623
+ punish_address: string;
1624
+ tx_cancel_fee_sats: number;
1625
+ tx_refund_fee_sats: number;
1626
+ tx_redeem_fee_sats: number;
1627
+ tx_punish_fee_sats: number;
1628
+ amnesty_amount_sats?: number | undefined;
1629
+ remaining_refund_timelock?: number | undefined;
1630
+ tx_partial_refund_fee_sats?: number | undefined;
1631
+ tx_reclaim_fee_sats?: number | undefined;
1632
+ tx_withhold_fee_sats?: number | undefined;
1633
+ tx_mercy_fee_sats?: number | undefined;
1634
+ tx_full_refund_encsig?: string | null | undefined;
1635
+ tx_partial_refund_encsig?: string | null | undefined;
1636
+ tx_cancel_sig?: string | null | undefined;
1637
+ unsigned_lock_psbt?: string | null | undefined;
1638
+ S_a_monero?: string | undefined;
1639
+ dleq_proof_s_a?: string | null | undefined;
1640
+ v_a?: string | null | undefined;
1641
+ monero_lock_address?: string | null | undefined;
1642
+ xmr_amount_pico?: string | undefined;
1643
+ monero_tx_hash?: string | null | undefined;
1644
+ monero_tx_key?: string | null | undefined;
1645
+ monero_restore_height?: number | null | undefined;
1646
+ combined_view_key?: string | null | undefined;
1647
+ } | null;
1648
+ type: "atomicswap";
1649
+ }>, z.ZodObject<{
1650
+ type: z.ZodLiteral<"near_intents">;
1651
+ pendingSignature: z.ZodNullable<z.ZodObject<{
1652
+ unsignedSwapPayload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1653
+ freshQuote: z.ZodObject<{
1654
+ amountOut: z.ZodString;
1655
+ quoteHash: z.ZodString;
1656
+ expiresAt: z.ZodString;
1657
+ }, "strip", z.ZodTypeAny, {
1658
+ amountOut: string;
1659
+ quoteHash: string;
1660
+ expiresAt: string;
1661
+ }, {
1662
+ amountOut: string;
1663
+ quoteHash: string;
1664
+ expiresAt: string;
1665
+ }>;
1666
+ }, "strip", z.ZodTypeAny, {
1667
+ unsignedSwapPayload: Record<string, unknown>;
1668
+ freshQuote: {
1669
+ amountOut: string;
1670
+ quoteHash: string;
1671
+ expiresAt: string;
1672
+ };
1673
+ }, {
1674
+ unsignedSwapPayload: Record<string, unknown>;
1675
+ freshQuote: {
1676
+ amountOut: string;
1677
+ quoteHash: string;
1678
+ expiresAt: string;
1679
+ };
1680
+ }>>;
1681
+ }, "strip", z.ZodTypeAny, {
1682
+ type: "near_intents";
1683
+ pendingSignature: {
1684
+ unsignedSwapPayload: Record<string, unknown>;
1685
+ freshQuote: {
1686
+ amountOut: string;
1687
+ quoteHash: string;
1688
+ expiresAt: string;
1689
+ };
1690
+ } | null;
1691
+ }, {
1692
+ type: "near_intents";
1693
+ pendingSignature: {
1694
+ unsignedSwapPayload: Record<string, unknown>;
1695
+ freshQuote: {
1696
+ amountOut: string;
1697
+ quoteHash: string;
1698
+ expiresAt: string;
1699
+ };
1700
+ } | null;
1701
+ }>, z.ZodObject<{
1702
+ type: z.ZodLiteral<"thorchain">;
1703
+ }, "strip", z.ZodTypeAny, {
1704
+ type: "thorchain";
1705
+ }, {
1706
+ type: "thorchain";
1707
+ }>, z.ZodObject<{
1708
+ type: z.ZodLiteral<"chainflip">;
1709
+ }, "strip", z.ZodTypeAny, {
1710
+ type: "chainflip";
1711
+ }, {
1712
+ type: "chainflip";
1713
+ }>]>>;
1714
+ }, "strip", z.ZodTypeAny, {
1715
+ status: `unknown:${string}` | "initializing" | "pending" | "awaiting_funding" | "deposited" | "swapping" | "sending" | "cancelling" | "completed" | "failed" | "refunded" | "withheld" | "punished" | "expired";
1716
+ provider: `unknown:${string}` | "thorchain" | "chainflip" | "near_intents" | "atomicswap";
1717
+ fromToken: string;
1718
+ toToken: string;
1719
+ fromChain: string;
1720
+ toChain: string;
1721
+ priceImpactPct: string | null;
1722
+ amountInUsd: string | null;
1723
+ destAddress: string;
1724
+ refundAddress: string | null;
1725
+ expiresAt: string | null;
1726
+ swapNumber: string;
1727
+ depositAddress: string | null;
1728
+ amountIn: string;
1729
+ expectedAmountOut: string | null;
1730
+ expectedAmountOutUsd: string | null;
1731
+ requiresFunding: boolean;
1732
+ protocolData: {
1733
+ params: {
1734
+ A: string;
1735
+ S_a_bitcoin: string;
1736
+ cancel_timelock: number;
1737
+ punish_timelock: number;
1738
+ redeem_address: string;
1739
+ punish_address: string;
1740
+ tx_cancel_fee_sats: number;
1741
+ tx_refund_fee_sats: number;
1742
+ tx_redeem_fee_sats: number;
1743
+ tx_punish_fee_sats: number;
1744
+ amnesty_amount_sats?: number | undefined;
1745
+ remaining_refund_timelock?: number | undefined;
1746
+ tx_partial_refund_fee_sats?: number | undefined;
1747
+ tx_reclaim_fee_sats?: number | undefined;
1748
+ tx_withhold_fee_sats?: number | undefined;
1749
+ tx_mercy_fee_sats?: number | undefined;
1750
+ tx_full_refund_encsig?: string | null | undefined;
1751
+ tx_partial_refund_encsig?: string | null | undefined;
1752
+ tx_cancel_sig?: string | null | undefined;
1753
+ unsigned_lock_psbt?: string | null | undefined;
1754
+ S_a_monero?: string | undefined;
1755
+ dleq_proof_s_a?: string | null | undefined;
1756
+ v_a?: string | null | undefined;
1757
+ monero_lock_address?: string | null | undefined;
1758
+ xmr_amount_pico?: string | undefined;
1759
+ monero_tx_hash?: string | null | undefined;
1760
+ monero_tx_key?: string | null | undefined;
1761
+ monero_restore_height?: number | null | undefined;
1762
+ combined_view_key?: string | null | undefined;
1763
+ } | null;
1764
+ type: "atomicswap";
1765
+ } | {
1766
+ type: "near_intents";
1767
+ pendingSignature: {
1768
+ unsignedSwapPayload: Record<string, unknown>;
1769
+ freshQuote: {
1770
+ amountOut: string;
1771
+ quoteHash: string;
1772
+ expiresAt: string;
1773
+ };
1774
+ } | null;
1775
+ } | {
1776
+ type: "thorchain";
1777
+ } | {
1778
+ type: "chainflip";
1779
+ } | null;
1780
+ verification: {
1781
+ provider: "chainflip";
1782
+ channel_id: string;
1783
+ status_url: string;
1784
+ explorer_url: string | null;
1785
+ } | {
1786
+ provider: "thorchain";
1787
+ explorer_url: string | null;
1788
+ thornode_url: string;
1789
+ inbound_addresses_url: string;
1790
+ registered_memo: string | null;
1791
+ reference_number: number | null;
1792
+ } | {
1793
+ provider: "near_intents";
1794
+ status_url: string | null;
1795
+ explorer_url: string | null;
1796
+ deposit_memo: string | null;
1797
+ correlation_id?: string | undefined;
1798
+ } | {
1799
+ provider: "atomicswap";
1800
+ explorer_url: string | null;
1801
+ lock_address: string;
1802
+ deposit_type: string;
1803
+ timelock_blocks: number;
1804
+ timelock_hours: number;
1805
+ refund_address: string;
1806
+ } | null;
1807
+ actualAmountOut: string | null;
1808
+ actualAmountOutUsd: string | null;
1809
+ fundingAddress: string | null;
1810
+ depositTxHash: string | null;
1811
+ outputTxHash: string | null;
1812
+ refundTxHash: string | null;
1813
+ createdAt: string;
1814
+ updatedAt: string;
1815
+ completedAt: string | null;
1816
+ durationSeconds: number | null;
1817
+ requiredAction?: {
1818
+ message: string;
1819
+ type: `unknown:${string}` | "wait" | "fund" | "sweep" | "cancel" | "refund" | "sign_swap" | "submit_encsig" | "none";
1820
+ urgency: `unknown:${string}` | "low" | "medium" | "critical";
1821
+ blocksRemaining?: number | null | undefined;
1822
+ estimatedSecondsRemaining?: number | null | undefined;
1823
+ txCancelTxid?: string | null | undefined;
1824
+ txRefundTxid?: string | null | undefined;
1825
+ } | null | undefined;
1826
+ }, {
1827
+ status: string;
1828
+ provider: string;
1829
+ fromToken: string;
1830
+ toToken: string;
1831
+ fromChain: string;
1832
+ toChain: string;
1833
+ priceImpactPct: string | null;
1834
+ amountInUsd: string | null;
1835
+ destAddress: string;
1836
+ refundAddress: string | null;
1837
+ expiresAt: string | null;
1838
+ swapNumber: string;
1839
+ depositAddress: string | null;
1840
+ amountIn: string;
1841
+ expectedAmountOut: string | null;
1842
+ expectedAmountOutUsd: string | null;
1843
+ requiresFunding: boolean;
1844
+ protocolData: {
1845
+ params: {
1846
+ A: string;
1847
+ S_a_bitcoin: string;
1848
+ cancel_timelock: number;
1849
+ punish_timelock: number;
1850
+ redeem_address: string;
1851
+ punish_address: string;
1852
+ tx_cancel_fee_sats: number;
1853
+ tx_refund_fee_sats: number;
1854
+ tx_redeem_fee_sats: number;
1855
+ tx_punish_fee_sats: number;
1856
+ amnesty_amount_sats?: number | undefined;
1857
+ remaining_refund_timelock?: number | undefined;
1858
+ tx_partial_refund_fee_sats?: number | undefined;
1859
+ tx_reclaim_fee_sats?: number | undefined;
1860
+ tx_withhold_fee_sats?: number | undefined;
1861
+ tx_mercy_fee_sats?: number | undefined;
1862
+ tx_full_refund_encsig?: string | null | undefined;
1863
+ tx_partial_refund_encsig?: string | null | undefined;
1864
+ tx_cancel_sig?: string | null | undefined;
1865
+ unsigned_lock_psbt?: string | null | undefined;
1866
+ S_a_monero?: string | undefined;
1867
+ dleq_proof_s_a?: string | null | undefined;
1868
+ v_a?: string | null | undefined;
1869
+ monero_lock_address?: string | null | undefined;
1870
+ xmr_amount_pico?: string | undefined;
1871
+ monero_tx_hash?: string | null | undefined;
1872
+ monero_tx_key?: string | null | undefined;
1873
+ monero_restore_height?: number | null | undefined;
1874
+ combined_view_key?: string | null | undefined;
1875
+ } | null;
1876
+ type: "atomicswap";
1877
+ } | {
1878
+ type: "near_intents";
1879
+ pendingSignature: {
1880
+ unsignedSwapPayload: Record<string, unknown>;
1881
+ freshQuote: {
1882
+ amountOut: string;
1883
+ quoteHash: string;
1884
+ expiresAt: string;
1885
+ };
1886
+ } | null;
1887
+ } | {
1888
+ type: "thorchain";
1889
+ } | {
1890
+ type: "chainflip";
1891
+ } | null;
1892
+ verification: {
1893
+ provider: "chainflip";
1894
+ channel_id: string;
1895
+ status_url: string;
1896
+ explorer_url: string | null;
1897
+ } | {
1898
+ provider: "thorchain";
1899
+ explorer_url: string | null;
1900
+ thornode_url: string;
1901
+ inbound_addresses_url: string;
1902
+ registered_memo: string | null;
1903
+ reference_number: number | null;
1904
+ } | {
1905
+ provider: "near_intents";
1906
+ status_url: string | null;
1907
+ explorer_url: string | null;
1908
+ deposit_memo: string | null;
1909
+ correlation_id?: string | undefined;
1910
+ } | {
1911
+ provider: "atomicswap";
1912
+ explorer_url: string | null;
1913
+ lock_address: string;
1914
+ deposit_type: string;
1915
+ timelock_blocks: number;
1916
+ timelock_hours: number;
1917
+ refund_address: string;
1918
+ } | null;
1919
+ actualAmountOut: string | null;
1920
+ actualAmountOutUsd: string | null;
1921
+ fundingAddress: string | null;
1922
+ depositTxHash: string | null;
1923
+ outputTxHash: string | null;
1924
+ refundTxHash: string | null;
1925
+ createdAt: string;
1926
+ updatedAt: string;
1927
+ completedAt: string | null;
1928
+ durationSeconds: number | null;
1929
+ requiredAction?: {
1930
+ message: string;
1931
+ type: string;
1932
+ urgency: string;
1933
+ blocksRemaining?: number | null | undefined;
1934
+ estimatedSecondsRemaining?: number | null | undefined;
1935
+ txCancelTxid?: string | null | undefined;
1936
+ txRefundTxid?: string | null | undefined;
1937
+ } | null | undefined;
1938
+ }>;
1939
+ export type SwapDetail = z.infer<typeof swapDetailSchema>;
1940
+ export declare const recentSwapSchema: z.ZodObject<{
1941
+ swapNumber: z.ZodString;
1942
+ fromToken: z.ZodString;
1943
+ toToken: z.ZodString;
1944
+ provider: z.ZodUnion<[z.ZodEnum<["thorchain", "chainflip", "near_intents", "atomicswap"]>, z.ZodEffects<z.ZodString, `unknown:${string}`, string>]>;
1945
+ 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>]>;
1946
+ amountIn: z.ZodString;
1947
+ amountInUsd: z.ZodNullable<z.ZodString>;
1948
+ expectedAmountOut: z.ZodNullable<z.ZodString>;
1949
+ expectedAmountOutUsd: z.ZodNullable<z.ZodString>;
1950
+ createdAt: z.ZodString;
1951
+ completedAt: z.ZodNullable<z.ZodString>;
1952
+ durationSeconds: z.ZodNullable<z.ZodNumber>;
1953
+ }, "strip", z.ZodTypeAny, {
1954
+ status: `unknown:${string}` | "initializing" | "pending" | "awaiting_funding" | "deposited" | "swapping" | "sending" | "cancelling" | "completed" | "failed" | "refunded" | "withheld" | "punished" | "expired";
1955
+ provider: `unknown:${string}` | "thorchain" | "chainflip" | "near_intents" | "atomicswap";
1956
+ fromToken: string;
1957
+ toToken: string;
1958
+ amountInUsd: string | null;
1959
+ swapNumber: string;
1960
+ amountIn: string;
1961
+ expectedAmountOut: string | null;
1962
+ expectedAmountOutUsd: string | null;
1963
+ createdAt: string;
1964
+ completedAt: string | null;
1965
+ durationSeconds: number | null;
1966
+ }, {
1967
+ status: string;
1968
+ provider: string;
1969
+ fromToken: string;
1970
+ toToken: string;
1971
+ amountInUsd: string | null;
1972
+ swapNumber: string;
1973
+ amountIn: string;
1974
+ expectedAmountOut: string | null;
1975
+ expectedAmountOutUsd: string | null;
1976
+ createdAt: string;
1977
+ completedAt: string | null;
1978
+ durationSeconds: number | null;
1979
+ }>;
1980
+ export type RecentSwap = z.infer<typeof recentSwapSchema>;
1981
+ //# sourceMappingURL=swap.zod.d.ts.map