@lombard.finance/sdk 4.3.2 → 4.4.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 (224) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/LICENSE +21 -0
  3. package/README.md +6 -6
  4. package/dist/api-functions/generateDepositBtcAddress/generateDepositBtcAddress.d.ts.map +1 -1
  5. package/dist/api-functions/getDepositBtcAddress/getDepositBtcAddress.d.ts.map +1 -1
  6. package/dist/api.cjs +1 -1
  7. package/dist/api.js +29 -29
  8. package/dist/bridge.cjs +1 -1
  9. package/dist/bridge.js +7 -7
  10. package/dist/btc.cjs +1 -1
  11. package/dist/btc.js +10 -10
  12. package/dist/chains/btc/actions/deposit/BtcDeposit.d.ts +7 -4
  13. package/dist/chains/btc/actions/deposit/BtcDeposit.d.ts.map +1 -1
  14. package/dist/chains/btc/actions/deposit/config/index.d.ts +16 -8
  15. package/dist/chains/btc/actions/deposit/config/index.d.ts.map +1 -1
  16. package/dist/chains/btc/actions/deposit/config/solana.d.ts +20 -0
  17. package/dist/chains/btc/actions/deposit/config/solana.d.ts.map +1 -0
  18. package/dist/chains/btc/actions/deposit/config/types.d.ts +4 -3
  19. package/dist/chains/btc/actions/deposit/config/types.d.ts.map +1 -1
  20. package/dist/chains/evm/EvmActions.d.ts +4 -4
  21. package/dist/chains/evm/actions/deposit/config/evm.d.ts +3 -3
  22. package/dist/chains/evm/actions/deposit/config/evm.d.ts.map +1 -1
  23. package/dist/chains/evm/actions/deposit/config/types.d.ts +1 -1
  24. package/dist/chains/evm/actions/deposit/config/types.d.ts.map +1 -1
  25. package/dist/chains/evm/actions/deposit/factory.d.ts +1 -1
  26. package/dist/chains/evm/actions/deposit/types.d.ts +1 -1
  27. package/dist/chains/evm/actions/deposit/types.d.ts.map +1 -1
  28. package/dist/chains/evm/actions/redeem/EvmRedeem.d.ts.map +1 -1
  29. package/dist/chains/evm/actions/unstake/EvmUnstake.d.ts.map +1 -1
  30. package/dist/chains/solana/SolanaActions.d.ts +10 -0
  31. package/dist/chains/solana/SolanaActions.d.ts.map +1 -1
  32. package/dist/chains/solana/actions/index.d.ts +1 -0
  33. package/dist/chains/solana/actions/index.d.ts.map +1 -1
  34. package/dist/chains/solana/actions/redeem/SolanaRedeem.d.ts +37 -0
  35. package/dist/chains/solana/actions/redeem/SolanaRedeem.d.ts.map +1 -0
  36. package/dist/chains/solana/actions/redeem/config/index.d.ts +8 -0
  37. package/dist/chains/solana/actions/redeem/config/index.d.ts.map +1 -0
  38. package/dist/chains/solana/actions/redeem/config/solana.d.ts +22 -0
  39. package/dist/chains/solana/actions/redeem/config/solana.d.ts.map +1 -0
  40. package/dist/chains/solana/actions/redeem/config/types.d.ts +35 -0
  41. package/dist/chains/solana/actions/redeem/config/types.d.ts.map +1 -0
  42. package/dist/chains/solana/actions/redeem/factory.d.ts +12 -0
  43. package/dist/chains/solana/actions/redeem/factory.d.ts.map +1 -0
  44. package/dist/chains/solana/actions/redeem/index.d.ts +9 -0
  45. package/dist/chains/solana/actions/redeem/index.d.ts.map +1 -0
  46. package/dist/chains/solana/actions/redeem/types.d.ts +52 -0
  47. package/dist/chains/solana/actions/redeem/types.d.ts.map +1 -0
  48. package/dist/chains/solana/utils.d.ts +15 -0
  49. package/dist/chains/solana/utils.d.ts.map +1 -0
  50. package/dist/chunks/BtcActions-BOVJrdTI.cjs +2 -0
  51. package/dist/chunks/BtcActions-BOVJrdTI.cjs.map +1 -0
  52. package/dist/chunks/{BtcActions-k-qs1uO0.js → BtcActions-_a8r3Q7c.js} +457 -414
  53. package/dist/chunks/BtcActions-_a8r3Q7c.js.map +1 -0
  54. package/dist/chunks/{EvmActions-B_dF42So.js → EvmActions-D4vFpbYk.js} +163 -173
  55. package/dist/chunks/EvmActions-D4vFpbYk.js.map +1 -0
  56. package/dist/chunks/EvmActions-VrDbgMDy.cjs +2 -0
  57. package/dist/chunks/EvmActions-VrDbgMDy.cjs.map +1 -0
  58. package/dist/chunks/ReferralsClient-Cmrjo9bN.cjs +2 -0
  59. package/dist/chunks/ReferralsClient-Cmrjo9bN.cjs.map +1 -0
  60. package/dist/chunks/{ReferralsClient-DbFWWtVi.js → ReferralsClient-DvEsA3II.js} +160 -160
  61. package/dist/chunks/ReferralsClient-DvEsA3II.js.map +1 -0
  62. package/dist/chunks/{api-config-CtcP3TVl.js → api-config-Dm6dR85f.js} +6 -6
  63. package/dist/chunks/{api-config-CtcP3TVl.js.map → api-config-Dm6dR85f.js.map} +1 -1
  64. package/dist/chunks/{approveLBTC-CZiZmdcX.cjs → approveLBTC-CUXEC3kw.cjs} +2 -2
  65. package/dist/chunks/{approveLBTC-CZiZmdcX.cjs.map → approveLBTC-CUXEC3kw.cjs.map} +1 -1
  66. package/dist/chunks/approveLBTC-Du2El1tW.js +26 -0
  67. package/dist/chunks/{approveLBTC-B5-ZWqct.js.map → approveLBTC-Du2El1tW.js.map} +1 -1
  68. package/dist/chunks/{array-Cev6kyLJ.js → array-DYttUPf5.js} +7 -7
  69. package/dist/chunks/{array-Cev6kyLJ.js.map → array-DYttUPf5.js.map} +1 -1
  70. package/dist/chunks/{blockchain-identifier-BzMQWh-C.cjs → blockchain-identifier-BTPGxLio.cjs} +2 -2
  71. package/dist/chunks/{blockchain-identifier-BzMQWh-C.cjs.map → blockchain-identifier-BTPGxLio.cjs.map} +1 -1
  72. package/dist/chunks/{blockchain-identifier-BmadkNtK.js → blockchain-identifier-CTVaEPpY.js} +24 -24
  73. package/dist/chunks/{blockchain-identifier-BmadkNtK.js.map → blockchain-identifier-CTVaEPpY.js.map} +1 -1
  74. package/dist/chunks/{bridge-CTsiodO1.js → bridge-DqGabhIY.js} +13 -13
  75. package/dist/chunks/{bridge-CTsiodO1.js.map → bridge-DqGabhIY.js.map} +1 -1
  76. package/dist/chunks/{bridge-BzRlY9pP.cjs → bridge-dWaKrMKm.cjs} +2 -2
  77. package/dist/chunks/{bridge-BzRlY9pP.cjs.map → bridge-dWaKrMKm.cjs.map} +1 -1
  78. package/dist/chunks/{config-hFKqUyg3.js → config-DghboRx0.js} +10 -10
  79. package/dist/chunks/{config-hFKqUyg3.js.map → config-DghboRx0.js.map} +1 -1
  80. package/dist/chunks/{config-l4ZaZw_g.cjs → config-DmCmanM_.cjs} +2 -2
  81. package/dist/chunks/{config-l4ZaZw_g.cjs.map → config-DmCmanM_.cjs.map} +1 -1
  82. package/dist/chunks/constants-D1FnS2Z8.js +6 -0
  83. package/dist/chunks/constants-D1FnS2Z8.js.map +1 -0
  84. package/dist/chunks/constants-ueShGH9R.cjs +2 -0
  85. package/dist/chunks/constants-ueShGH9R.cjs.map +1 -0
  86. package/dist/chunks/{defi-registry-BIRv_zkp.cjs → defi-registry-DDNavtO1.cjs} +2 -2
  87. package/dist/chunks/{defi-registry-BIRv_zkp.cjs.map → defi-registry-DDNavtO1.cjs.map} +1 -1
  88. package/dist/chunks/{defi-registry-wNFN3qyB.js → defi-registry-DxjjBQTV.js} +13 -13
  89. package/dist/chunks/{defi-registry-wNFN3qyB.js.map → defi-registry-DxjjBQTV.js.map} +1 -1
  90. package/dist/chunks/{depositStatus-DM7fRmbN.js → depositStatus-05_X7FVs.js} +42 -42
  91. package/dist/chunks/{depositStatus-DM7fRmbN.js.map → depositStatus-05_X7FVs.js.map} +1 -1
  92. package/dist/chunks/{depositStatus-C3-EgT2a.cjs → depositStatus-CUjHpXFJ.cjs} +2 -2
  93. package/dist/chunks/{depositStatus-C3-EgT2a.cjs.map → depositStatus-CUjHpXFJ.cjs.map} +1 -1
  94. package/dist/chunks/events-5c8IHjEF.cjs +2 -0
  95. package/dist/chunks/events-5c8IHjEF.cjs.map +1 -0
  96. package/dist/chunks/{events-DdV_xi-2.js → events-rgJZNpHd.js} +414 -303
  97. package/dist/chunks/events-rgJZNpHd.js.map +1 -0
  98. package/dist/chunks/evm-by-btc-address-CZvE15lx.js +39 -0
  99. package/dist/chunks/{evm-by-btc-address-CwLiENtM.js.map → evm-by-btc-address-CZvE15lx.js.map} +1 -1
  100. package/dist/chunks/fee-requirements-CCNsxAvJ.js +14 -0
  101. package/dist/chunks/{fee-requirements-x8-8mpJ7.js.map → fee-requirements-CCNsxAvJ.js.map} +1 -1
  102. package/dist/chunks/get-exchange-ratio-B-xzYND1.js +20 -0
  103. package/dist/chunks/{get-exchange-ratio-NtnkG1kZ.js.map → get-exchange-ratio-B-xzYND1.js.map} +1 -1
  104. package/dist/chunks/{get-exchange-ratio-C-7DadfD.cjs → get-exchange-ratio-BEhD4gLB.cjs} +2 -2
  105. package/dist/chunks/{get-exchange-ratio-C-7DadfD.cjs.map → get-exchange-ratio-BEhD4gLB.cjs.map} +1 -1
  106. package/dist/chunks/{get-positions-summary-DkZZYbGP.cjs → get-positions-summary-Dh1QPLYO.cjs} +2 -2
  107. package/dist/chunks/{get-positions-summary-DkZZYbGP.cjs.map → get-positions-summary-Dh1QPLYO.cjs.map} +1 -1
  108. package/dist/chunks/{get-positions-summary-B_MmGHLv.js → get-positions-summary-iYshN1RQ.js} +28 -28
  109. package/dist/chunks/{get-positions-summary-B_MmGHLv.js.map → get-positions-summary-iYshN1RQ.js.map} +1 -1
  110. package/dist/chunks/{get-vault-tvl-YAXePAW3.js → get-vault-tvl-Ct_Zkg7C.js} +41 -41
  111. package/dist/chunks/{get-vault-tvl-YAXePAW3.js.map → get-vault-tvl-Ct_Zkg7C.js.map} +1 -1
  112. package/dist/chunks/{get-vault-tvl-DmTUbOY7.cjs → get-vault-tvl-D_tQIDAs.cjs} +2 -2
  113. package/dist/chunks/{get-vault-tvl-DmTUbOY7.cjs.map → get-vault-tvl-D_tQIDAs.cjs.map} +1 -1
  114. package/dist/chunks/{get-vault-withdrawals-CWcYy_sH.cjs → get-vault-withdrawals-8ALlEiAC.cjs} +2 -2
  115. package/dist/chunks/{get-vault-withdrawals-CWcYy_sH.cjs.map → get-vault-withdrawals-8ALlEiAC.cjs.map} +1 -1
  116. package/dist/chunks/get-vault-withdrawals-jk7Sv4S4.js +161 -0
  117. package/dist/chunks/{get-vault-withdrawals-BrpZlt6s.js.map → get-vault-withdrawals-jk7Sv4S4.js.map} +1 -1
  118. package/dist/chunks/{getSharesByAddress-BEgOf1C0.cjs → getSharesByAddress-D8hehnP1.cjs} +2 -2
  119. package/dist/chunks/{getSharesByAddress-BEgOf1C0.cjs.map → getSharesByAddress-D8hehnP1.cjs.map} +1 -1
  120. package/dist/chunks/{getSharesByAddress-BiruCDp6.js → getSharesByAddress-_tBaIBsw.js} +38 -38
  121. package/dist/chunks/{getSharesByAddress-BiruCDp6.js.map → getSharesByAddress-_tBaIBsw.js.map} +1 -1
  122. package/dist/chunks/getUserStakeAndBakeSignature-CSEyzgMc.cjs +2 -0
  123. package/dist/chunks/getUserStakeAndBakeSignature-CSEyzgMc.cjs.map +1 -0
  124. package/dist/chunks/getUserStakeAndBakeSignature-Su-k10ap.js +125 -0
  125. package/dist/chunks/getUserStakeAndBakeSignature-Su-k10ap.js.map +1 -0
  126. package/dist/chunks/lbtc-addresses-D8MYCdsx.js +10 -0
  127. package/dist/chunks/{lbtc-addresses-BLRmtR3c.js.map → lbtc-addresses-D8MYCdsx.js.map} +1 -1
  128. package/dist/chunks/{lbtc-addresses-xyTYV7hx.cjs → lbtc-addresses-Kil252DX.cjs} +2 -2
  129. package/dist/chunks/{lbtc-addresses-xyTYV7hx.cjs.map → lbtc-addresses-Kil252DX.cjs.map} +1 -1
  130. package/dist/chunks/numbers-CclN2Ohk.js +15 -0
  131. package/dist/chunks/{numbers-CM-lcmt4.js.map → numbers-CclN2Ohk.js.map} +1 -1
  132. package/dist/chunks/parameters-C_16L5ft.js +11 -0
  133. package/dist/chunks/{parameters-CDV-6Hk5.js.map → parameters-C_16L5ft.js.map} +1 -1
  134. package/dist/chunks/satoshi-CSoJBXc6.js +19 -0
  135. package/dist/chunks/{satoshi-Ch6y8aYG.js.map → satoshi-CSoJBXc6.js.map} +1 -1
  136. package/dist/chunks/statusConstants-Cri7yswV.cjs +2 -0
  137. package/dist/chunks/statusConstants-Cri7yswV.cjs.map +1 -0
  138. package/dist/chunks/{statusConstants-DFxMrVob.js → statusConstants-Zii1786K.js} +1134 -1113
  139. package/dist/chunks/statusConstants-Zii1786K.js.map +1 -0
  140. package/dist/chunks/{storeNetworkFeeSignature-BZGL2Zn_.js → storeNetworkFeeSignature-BODIpq3Y.js} +26 -26
  141. package/dist/chunks/{storeNetworkFeeSignature-BZGL2Zn_.js.map → storeNetworkFeeSignature-BODIpq3Y.js.map} +1 -1
  142. package/dist/chunks/{storeNetworkFeeSignature-D7yo6lDV.cjs → storeNetworkFeeSignature-Buk4091C.cjs} +2 -2
  143. package/dist/chunks/{storeNetworkFeeSignature-D7yo6lDV.cjs.map → storeNetworkFeeSignature-Buk4091C.cjs.map} +1 -1
  144. package/dist/chunks/time-Sa5gggPG.js +24 -0
  145. package/dist/chunks/{time-QPeEEEnQ.js.map → time-Sa5gggPG.js.map} +1 -1
  146. package/dist/chunks/{token-addresses-FKpA3uc4.js → token-addresses-D0v5cR1j.js} +174 -163
  147. package/dist/chunks/{token-addresses-FKpA3uc4.js.map → token-addresses-D0v5cR1j.js.map} +1 -1
  148. package/dist/chunks/{token-addresses-DRBecUa7.cjs → token-addresses-nzvTOi24.cjs} +2 -2
  149. package/dist/chunks/{token-addresses-DRBecUa7.cjs.map → token-addresses-nzvTOi24.cjs.map} +1 -1
  150. package/dist/chunks/{tokens-D_HeVB5p.cjs → tokens-BkvA0Gp1.cjs} +2 -2
  151. package/dist/chunks/{tokens-D_HeVB5p.cjs.map → tokens-BkvA0Gp1.cjs.map} +1 -1
  152. package/dist/chunks/{tokens-C6qZHzph.js → tokens-DgC1hfkm.js} +18 -18
  153. package/dist/chunks/{tokens-C6qZHzph.js.map → tokens-DgC1hfkm.js.map} +1 -1
  154. package/dist/chunks/{unstakeLBTC-H0zdYQa6.cjs → unstakeLBTC-CmoCaGX9.cjs} +2 -2
  155. package/dist/chunks/{unstakeLBTC-H0zdYQa6.cjs.map → unstakeLBTC-CmoCaGX9.cjs.map} +1 -1
  156. package/dist/chunks/{unstakeLBTC-DAIR9NO_.js → unstakeLBTC-DtvVbpbU.js} +50 -50
  157. package/dist/chunks/{unstakeLBTC-DAIR9NO_.js.map → unstakeLBTC-DtvVbpbU.js.map} +1 -1
  158. package/dist/chunks/{withdraw-hHueI2p7.js → withdraw-DgjuaUN3.js} +45 -45
  159. package/dist/chunks/{withdraw-hHueI2p7.js.map → withdraw-DgjuaUN3.js.map} +1 -1
  160. package/dist/chunks/{withdraw-C1fMFSwy.cjs → withdraw-i0AueZ_C.cjs} +2 -2
  161. package/dist/chunks/{withdraw-C1fMFSwy.cjs.map → withdraw-i0AueZ_C.cjs.map} +1 -1
  162. package/dist/common/constants.d.ts +1 -0
  163. package/dist/common/constants.d.ts.map +1 -1
  164. package/dist/contracts.cjs +1 -1
  165. package/dist/contracts.js +16 -16
  166. package/dist/core/assets/catalog.d.ts.map +1 -1
  167. package/dist/core.cjs +1 -1
  168. package/dist/core.js +85 -85
  169. package/dist/debug.js +4 -4
  170. package/dist/defi.cjs +1 -1
  171. package/dist/defi.js +10 -10
  172. package/dist/evm.cjs +1 -1
  173. package/dist/evm.js +34 -34
  174. package/dist/index.cjs +1 -1
  175. package/dist/index.d.ts +2 -1
  176. package/dist/index.d.ts.map +1 -1
  177. package/dist/index.js +287 -283
  178. package/dist/index.js.map +1 -1
  179. package/dist/metrics.cjs +1 -1
  180. package/dist/metrics.js +6 -6
  181. package/dist/stories/arg-types.d.ts +1 -0
  182. package/dist/stories/arg-types.d.ts.map +1 -1
  183. package/dist/tokens/token-addresses.d.ts +2 -2
  184. package/dist/tokens/token-addresses.d.ts.map +1 -1
  185. package/dist/utils/chain.d.ts +7 -0
  186. package/dist/utils/chain.d.ts.map +1 -1
  187. package/dist/utils.cjs +1 -1
  188. package/dist/utils.js +76 -76
  189. package/dist/vaults.cjs +1 -1
  190. package/dist/vaults.js +14 -14
  191. package/package.json +19 -6
  192. package/dist/chunks/BtcActions-XbVRQEcM.cjs +0 -2
  193. package/dist/chunks/BtcActions-XbVRQEcM.cjs.map +0 -1
  194. package/dist/chunks/BtcActions-k-qs1uO0.js.map +0 -1
  195. package/dist/chunks/EvmActions-BVzQ3fLK.cjs +0 -2
  196. package/dist/chunks/EvmActions-BVzQ3fLK.cjs.map +0 -1
  197. package/dist/chunks/EvmActions-B_dF42So.js.map +0 -1
  198. package/dist/chunks/ReferralsClient-BC-1wT1q.cjs +0 -2
  199. package/dist/chunks/ReferralsClient-BC-1wT1q.cjs.map +0 -1
  200. package/dist/chunks/ReferralsClient-DbFWWtVi.js.map +0 -1
  201. package/dist/chunks/approveLBTC-B5-ZWqct.js +0 -26
  202. package/dist/chunks/constants-BBK-JNcY.cjs +0 -2
  203. package/dist/chunks/constants-BBK-JNcY.cjs.map +0 -1
  204. package/dist/chunks/constants-CuT4axsy.js +0 -5
  205. package/dist/chunks/constants-CuT4axsy.js.map +0 -1
  206. package/dist/chunks/events-DdV_xi-2.js.map +0 -1
  207. package/dist/chunks/events-DqIJRzJo.cjs +0 -2
  208. package/dist/chunks/events-DqIJRzJo.cjs.map +0 -1
  209. package/dist/chunks/evm-by-btc-address-CwLiENtM.js +0 -39
  210. package/dist/chunks/fee-requirements-x8-8mpJ7.js +0 -14
  211. package/dist/chunks/get-exchange-ratio-NtnkG1kZ.js +0 -20
  212. package/dist/chunks/get-vault-withdrawals-BrpZlt6s.js +0 -161
  213. package/dist/chunks/getUserStakeAndBakeSignature-BxRq2cI1.cjs +0 -2
  214. package/dist/chunks/getUserStakeAndBakeSignature-BxRq2cI1.cjs.map +0 -1
  215. package/dist/chunks/getUserStakeAndBakeSignature-NGGblnJl.js +0 -120
  216. package/dist/chunks/getUserStakeAndBakeSignature-NGGblnJl.js.map +0 -1
  217. package/dist/chunks/lbtc-addresses-BLRmtR3c.js +0 -10
  218. package/dist/chunks/numbers-CM-lcmt4.js +0 -15
  219. package/dist/chunks/parameters-CDV-6Hk5.js +0 -11
  220. package/dist/chunks/satoshi-Ch6y8aYG.js +0 -19
  221. package/dist/chunks/statusConstants-BLiNBT6s.cjs +0 -2
  222. package/dist/chunks/statusConstants-BLiNBT6s.cjs.map +0 -1
  223. package/dist/chunks/statusConstants-DFxMrVob.js.map +0 -1
  224. package/dist/chunks/time-QPeEEEnQ.js +0 -24
@@ -1,43 +1,44 @@
1
- var B = Object.defineProperty;
2
- var R = (t, e, s) => e in t ? B(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
3
- var a = (t, e, s) => R(t, typeof e != "symbol" ? e + "" : e, s);
1
+ var F = Object.defineProperty;
2
+ var U = (t, e, s) => e in t ? F(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
3
+ var a = (t, e, s) => U(t, typeof e != "symbol" ? e + "" : e, s);
4
4
  import "axios";
5
- import { e as H, f as U, L as d, x as A, a as h, y as S, N as i, z as I, g as o, A as D, D as y, F as v, P as m, G as C, H as _, l as F, I as K, J as G, K as V, M as Y, O as j, Q as $, T as q, q as z, m as W, U as X, W as J, d as Q } from "./statusConstants-DFxMrVob.js";
6
- import { g as Z } from "./getUserStakeAndBakeSignature-NGGblnJl.js";
7
- import { e as P, k as ee, j as te, g as x, s as se, R as re } from "./ReferralsClient-DbFWWtVi.js";
8
- import { s as ne, g as ae } from "./storeNetworkFeeSignature-BZGL2Zn_.js";
9
- import { f as ie, B as oe } from "./BtcActions-k-qs1uO0.js";
10
- import { b as ce, E as ue } from "./EvmActions-B_dF42So.js";
11
- import { t as he } from "./satoshi-Ch6y8aYG.js";
5
+ import { SDK_RUNTIME as G, SDK_VERSION as Y, LombardError as g, bitcoinAddressSchema as v, Chain as d, BaseAction as f, NonEvmUnstakeStatus as r, validatePrepareParams as C, StepStatus as o, objectType as E, amountSchema as I, CapabilityRegistry as S, PartnerConfiguration as A, getProviderGetter as D, ASSET_CATALOG as x, getAssetAddress as K, getAssetDecimals as V, getAssetMetadata as j, usesAssetRouter as $, getAssetRouter as q, getBridgeAdapter as z, getPublicMarketMaker as W, getAssetByAddress as X, isAssetDeployed as Z, getAssetChains as J, getAssetEnvironments as Q, getSupportedAssets as ee, ProviderErrorCode as te } from "./statusConstants-Zii1786K.js";
6
+ import { generateDepositBtcAddress as se } from "./getUserStakeAndBakeSignature-Su-k10ap.js";
7
+ import { getDepositsByAddress as P, getUnstakesByAddress as ne, getPointsByAddress as re, getDepositBtcAddress as N, storeStakeAndBakeSignature as ie, ReferralsClient as ae } from "./ReferralsClient-DvEsA3II.js";
8
+ import { storeNetworkFeeSignature as oe, getNetworkFeeSignature as ce } from "./storeNetworkFeeSignature-BODIpq3Y.js";
9
+ import { btcModule as ue, BtcActions as he } from "./BtcActions-_a8r3Q7c.js";
10
+ import { evmModule as de, EvmActions as ge } from "./EvmActions-D4vFpbYk.js";
11
+ import { toSatoshi as b } from "./satoshi-CSoJBXc6.js";
12
12
  import { p as k, r as u } from "./index-CfcQ_g3t.js";
13
- import { g as de } from "./get-exchange-ratio-NtnkG1kZ.js";
14
- import { a as ge } from "./config-hFKqUyg3.js";
15
- import { g as le, a as pe } from "./get-vault-withdrawals-BrpZlt6s.js";
16
- const w = ["debug", "info", "warn", "error", "none"];
13
+ import { AssetId as w } from "./defi-registry-DxjjBQTV.js";
14
+ import { getExchangeRatio as le } from "./get-exchange-ratio-B-xzYND1.js";
15
+ import { Vault as pe } from "./config-DghboRx0.js";
16
+ import { getVaultWithdrawals as me, getVaultWithdrawalsAllChains as ve } from "./get-vault-withdrawals-jk7Sv4S4.js";
17
+ const y = ["debug", "info", "warn", "error", "none"];
17
18
  function fe(t = {}) {
18
- const { level: e = "debug", prefix: s = "[Lombard SDK]", timestamp: r = !1 } = t, n = w.indexOf(e), l = (c) => w.indexOf(c) >= n && e !== "none", p = (c) => {
19
- if (r) {
20
- const g = (/* @__PURE__ */ new Date()).toISOString();
21
- return `${s} ${g} ${c}`;
19
+ const { level: e = "debug", prefix: s = "[Lombard SDK]", timestamp: n = !1 } = t, i = y.indexOf(e), c = (h) => y.indexOf(h) >= i && e !== "none", l = (h) => {
20
+ if (n) {
21
+ const p = (/* @__PURE__ */ new Date()).toISOString();
22
+ return `${s} ${p} ${h}`;
22
23
  }
23
- return `${s} ${c}`;
24
- }, f = (c) => !c || Object.keys(c).length === 0 ? [] : [c];
24
+ return `${s} ${h}`;
25
+ }, m = (h) => !h || Object.keys(h).length === 0 ? [] : [h];
25
26
  return {
26
- debug(c, g) {
27
- l("debug") && console.debug(p(c), ...f(g));
27
+ debug(h, p) {
28
+ c("debug") && console.debug(l(h), ...m(p));
28
29
  },
29
- info(c, g) {
30
- l("info") && console.info(p(c), ...f(g));
30
+ info(h, p) {
31
+ c("info") && console.info(l(h), ...m(p));
31
32
  },
32
- warn(c, g) {
33
- l("warn") && console.warn(p(c), ...f(g));
33
+ warn(h, p) {
34
+ c("warn") && console.warn(l(h), ...m(p));
34
35
  },
35
- error(c, g) {
36
- l("error") && console.error(p(c), ...f(g));
36
+ error(h, p) {
37
+ c("error") && console.error(l(h), ...m(p));
37
38
  }
38
39
  };
39
40
  }
40
- function Qe() {
41
+ function rt() {
41
42
  return {
42
43
  debug: () => {
43
44
  },
@@ -49,13 +50,13 @@ function Qe() {
49
50
  }
50
51
  };
51
52
  }
52
- function Ze() {
53
+ function it() {
53
54
  return {
54
- "X-SDK-Version": U,
55
- "X-SDK-Runtime": H
55
+ "X-SDK-Version": Y,
56
+ "X-SDK-Runtime": G
56
57
  };
57
58
  }
58
- class ve {
59
+ class Ce {
59
60
  constructor(e = k) {
60
61
  /**
61
62
  * Internal API version flag for future v2 migration.
@@ -110,10 +111,10 @@ class ve {
110
111
  * ```
111
112
  */
112
113
  async unstakes(e, s) {
113
- return ee({ address: e, env: this.env, options: s });
114
+ return ne({ address: e, env: this.env, options: s });
114
115
  }
115
116
  async points(e, s) {
116
- return te({ address: e, env: this.env, season: s });
117
+ return re({ address: e, env: this.env, season: s });
117
118
  }
118
119
  /* -------------------------------------------------------------------------- */
119
120
  /* Token Exchange Ratios */
@@ -137,7 +138,7 @@ class ve {
137
138
  * ```
138
139
  */
139
140
  async exchangeRatio() {
140
- return de({ env: this.env });
141
+ return le({ env: this.env });
141
142
  }
142
143
  /* -------------------------------------------------------------------------- */
143
144
  /* Deposit Address */
@@ -164,13 +165,13 @@ class ve {
164
165
  * }
165
166
  * ```
166
167
  */
167
- async depositAddress(e, s, r) {
168
- return x({
168
+ async depositAddress(e, s, n) {
169
+ return N({
169
170
  address: e,
170
171
  chainId: s,
171
172
  env: this.env,
172
- partnerId: r == null ? void 0 : r.partnerId,
173
- token: r == null ? void 0 : r.token
173
+ partnerId: n == null ? void 0 : n.partnerId,
174
+ token: n == null ? void 0 : n.token
174
175
  });
175
176
  }
176
177
  /* -------------------------------------------------------------------------- */
@@ -204,16 +205,16 @@ class ve {
204
205
  * ```
205
206
  */
206
207
  async vaultWithdrawals(e, s) {
207
- const r = e, n = (s == null ? void 0 : s.vault) ?? ge.Veda;
208
- return s != null && s.chainId ? le({
209
- account: r,
208
+ const n = e, i = (s == null ? void 0 : s.vault) ?? pe.Veda;
209
+ return s != null && s.chainId ? me({
210
+ account: n,
210
211
  chainId: s.chainId,
211
- vaultKey: n,
212
+ vaultKey: i,
212
213
  rpcUrl: s.rpcUrl,
213
214
  env: this.env
214
- }) : pe({
215
- account: r,
216
- vaultKey: n,
215
+ }) : ve({
216
+ account: n,
217
+ vaultKey: i,
217
218
  rpcUrl: s == null ? void 0 : s.rpcUrl
218
219
  });
219
220
  }
@@ -229,27 +230,27 @@ class ve {
229
230
  return this.apiVersion;
230
231
  }
231
232
  }
232
- function me(t) {
233
+ function Ee(t) {
233
234
  if (!t.env)
234
- throw d.missingParameter("env");
235
+ throw g.missingParameter("env");
235
236
  const e = {
236
237
  env: t.env,
237
238
  providers: t.providers || {}
238
239
  };
239
- return t.partner && (Ce(t.partner), e.partner = t.partner), e;
240
+ return t.partner && (Ie(t.partner), e.partner = t.partner), e;
240
241
  }
241
- function Ce(t) {
242
+ function Ie(t) {
242
243
  if (typeof t != "object" || t === null)
243
- throw d.invalidConfiguration(
244
+ throw g.invalidConfiguration(
244
245
  "Partner configuration must be an object"
245
246
  );
246
247
  const e = t;
247
248
  if (!e.partnerId || typeof e.partnerId != "string")
248
- throw d.missingParameter("partner.partnerId");
249
+ throw g.missingParameter("partner.partnerId");
249
250
  if (e.partnerId.trim().length === 0)
250
- throw d.invalidConfiguration("Partner ID cannot be empty");
251
+ throw g.invalidConfiguration("Partner ID cannot be empty");
251
252
  }
252
- class Ee {
253
+ class Se {
253
254
  constructor(e) {
254
255
  this.env = e;
255
256
  }
@@ -257,7 +258,7 @@ class Ee {
257
258
  * Generate a new BTC deposit address
258
259
  */
259
260
  async generateDepositAddress(e) {
260
- return Z({
261
+ return se({
261
262
  address: e.address,
262
263
  chainId: e.chainId,
263
264
  signature: e.signature,
@@ -276,7 +277,7 @@ class Ee {
276
277
  */
277
278
  async getDepositAddress(e) {
278
279
  try {
279
- return await x({
280
+ return await N({
280
281
  address: e.address,
281
282
  chainId: e.chainId,
282
283
  token: e.token,
@@ -294,14 +295,14 @@ class Ee {
294
295
  return (await P({
295
296
  address: e,
296
297
  env: this.env
297
- })).map((r) => {
298
- var n;
298
+ })).map((n) => {
299
+ var i;
299
300
  return {
300
- depositAddress: r.depositAddress ?? "",
301
- blockHeight: r.blockHeight,
302
- isClaimed: r.isClaimed,
303
- txid: r.txHash,
304
- amount: (n = r.amount) == null ? void 0 : n.toString()
301
+ depositAddress: n.depositAddress ?? "",
302
+ blockHeight: n.blockHeight,
303
+ isClaimed: n.isClaimed,
304
+ txid: n.txHash,
305
+ amount: (i = n.amount) == null ? void 0 : i.toString()
305
306
  };
306
307
  });
307
308
  }
@@ -309,7 +310,7 @@ class Ee {
309
310
  * Store network fee signature
310
311
  */
311
312
  async storeFeeSignature(e) {
312
- await ne({
313
+ await oe({
313
314
  address: e.address,
314
315
  signature: e.signature,
315
316
  typedData: e.typedData,
@@ -321,7 +322,7 @@ class Ee {
321
322
  * Get stored network fee signature
322
323
  */
323
324
  async getFeeSignature(e) {
324
- return ae({
325
+ return ce({
325
326
  address: e.address,
326
327
  chainId: e.chainId,
327
328
  env: this.env,
@@ -332,7 +333,7 @@ class Ee {
332
333
  * Store stake and bake signature
333
334
  */
334
335
  async storeStakeAndBakeSignature(e) {
335
- await se({
336
+ await ie({
336
337
  signature: e.signature,
337
338
  typedData: e.typedData,
338
339
  env: this.env
@@ -343,64 +344,163 @@ function Ae() {
343
344
  return {
344
345
  id: "api",
345
346
  register(t) {
346
- return new Ee(t.env);
347
+ return new Se(t.env);
347
348
  }
348
349
  };
349
350
  }
350
- function Se(t) {
351
- const e = /* @__PURE__ */ new Map(), s = [ie(), ce(), Ae()];
352
- for (const r of s)
353
- e.set(r.id, r);
351
+ function De(t) {
352
+ const e = /* @__PURE__ */ new Map(), s = [ue(), de(), Ae()];
353
+ for (const n of s)
354
+ e.set(n.id, n);
354
355
  if (t)
355
- for (const r of t)
356
- e.set(r.id, r);
356
+ for (const n of t)
357
+ e.set(n.id, n);
357
358
  return Array.from(e.values());
358
359
  }
359
- function Ie(t, e) {
360
+ function _e(t, e) {
360
361
  for (const s of t)
361
- for (const r of s.requiresProviders ?? [])
362
- if (!De(e, r))
363
- throw d.providerMissing(r, r);
362
+ for (const n of s.requiresProviders ?? [])
363
+ if (!we(e, n))
364
+ throw g.providerMissing(n, n);
364
365
  }
365
- function De(t, e) {
366
+ function we(t, e) {
366
367
  var s;
367
368
  return !!((s = t.providers) != null && s[e]);
368
369
  }
369
370
  function ye(t) {
370
- const e = me(t), s = Se(
371
+ const e = Ee(t), s = De(
371
372
  t.modules
372
373
  );
373
- Ie(s, e);
374
- let r = t.logger;
375
- return !r && t.debug && (r = fe({ level: "debug" })), {
374
+ _e(s, e);
375
+ let n = t.logger;
376
+ return !n && t.debug && (n = fe({ level: "debug" })), {
376
377
  ...e,
377
378
  modules: s,
378
- logger: r
379
+ logger: n
379
380
  };
380
381
  }
381
- const N = {
382
+ function xe(t) {
383
+ switch (t) {
384
+ case "prod":
385
+ return "mainnet-beta";
386
+ case "testnet":
387
+ return "testnet";
388
+ case "stage":
389
+ case "dev":
390
+ case "ibc":
391
+ default:
392
+ return "devnet";
393
+ }
394
+ }
395
+ const T = {
396
+ routes: [
397
+ {
398
+ sourceChains: [d.SOLANA_DEVNET],
399
+ destChain: d.BITCOIN_SIGNET,
400
+ assetIn: w.BTCb,
401
+ assetOut: w.BTC,
402
+ envs: [u.stage, u.dev]
403
+ }
404
+ ],
405
+ recipientSchema: v
406
+ };
407
+ function Pe(t, e, s, n, i) {
408
+ return T.routes.some(
409
+ (c) => c.sourceChains.includes(t) && c.destChain === e && c.assetIn === s && c.assetOut === n && c.envs.includes(i)
410
+ );
411
+ }
412
+ class Ne extends f {
413
+ constructor(s, n) {
414
+ super(r.IDLE);
415
+ a(this, "_amount");
416
+ a(this, "_recipient");
417
+ a(this, "_txHash");
418
+ a(this, "env");
419
+ if (this.ctx = s, this.params = n, this.env = s.env, !Pe(
420
+ n.sourceChain,
421
+ n.destChain,
422
+ n.assetIn,
423
+ n.assetOut,
424
+ this.env
425
+ ))
426
+ throw g.routeNotFound({
427
+ assetOut: n.assetOut,
428
+ sourceChain: n.sourceChain,
429
+ destChain: n.destChain,
430
+ env: this.env
431
+ });
432
+ }
433
+ get amount() {
434
+ return this._amount;
435
+ }
436
+ get recipient() {
437
+ return this._recipient;
438
+ }
439
+ get txHash() {
440
+ return this._txHash;
441
+ }
442
+ async prepare(s) {
443
+ return this.assertStatus(r.IDLE, "prepare"), this.act(async () => {
444
+ const n = C(this.prepareSchema, s, {
445
+ destChain: this.params.destChain
446
+ });
447
+ this._amount = n.amount, this._recipient = n.recipient, this.emitProgress({
448
+ status: r.READY,
449
+ steps: { burning: o.IDLE, releasing: o.IDLE }
450
+ });
451
+ }, r.READY);
452
+ }
453
+ async execute() {
454
+ return this.assertStatus(r.READY, "execute"), this.act(async () => {
455
+ const s = this._amount, n = this._recipient;
456
+ if (!s || !n)
457
+ throw g.missingParameter("amount or recipient");
458
+ this.emitProgress({
459
+ status: r.READY,
460
+ steps: { burning: o.PENDING, releasing: o.IDLE }
461
+ });
462
+ const i = b(s).toString(), c = xe(this.env), { txHash: l } = await this.ctx.solana.redeemForBtc({
463
+ amount: i,
464
+ btcAddress: n,
465
+ network: c,
466
+ env: this.env
467
+ });
468
+ return this._txHash = l, this.emitProgress({
469
+ status: r.CONFIRMING,
470
+ steps: { burning: o.COMPLETE, releasing: o.PENDING }
471
+ }), { txHash: l };
472
+ }, r.CONFIRMING);
473
+ }
474
+ get prepareSchema() {
475
+ return E({
476
+ amount: I,
477
+ recipient: T.recipientSchema
478
+ });
479
+ }
480
+ }
481
+ const L = {
382
482
  routes: [
383
483
  // Production: Solana Mainnet → Bitcoin Mainnet
384
484
  {
385
- sourceChains: [h.SOLANA_MAINNET],
386
- destChain: h.BITCOIN_MAINNET,
485
+ sourceChains: [d.SOLANA_MAINNET],
486
+ destChain: d.BITCOIN_MAINNET,
387
487
  envs: [u.prod]
388
488
  },
389
489
  // Testnet: Solana Devnet → Bitcoin Signet
390
490
  {
391
- sourceChains: [h.SOLANA_DEVNET],
392
- destChain: h.BITCOIN_SIGNET,
491
+ sourceChains: [d.SOLANA_DEVNET],
492
+ destChain: d.BITCOIN_SIGNET,
393
493
  envs: [u.testnet, u.stage, u.dev, u.ibc]
394
494
  }
395
495
  ],
396
- recipientSchema: A
496
+ recipientSchema: v
397
497
  };
398
- function we(t, e) {
399
- return N.routes.some(
498
+ function be(t, e) {
499
+ return L.routes.some(
400
500
  (s) => s.sourceChains.includes(t) && s.envs.includes(e)
401
501
  );
402
502
  }
403
- function _e(t) {
503
+ function ke(t) {
404
504
  switch (t) {
405
505
  case "prod":
406
506
  return "mainnet-beta";
@@ -413,18 +513,18 @@ function _e(t) {
413
513
  return "devnet";
414
514
  }
415
515
  }
416
- class Pe extends S {
417
- constructor(s, r) {
418
- super(i.IDLE);
516
+ class Te extends f {
517
+ constructor(s, n) {
518
+ super(r.IDLE);
419
519
  a(this, "_amount");
420
520
  a(this, "_recipient");
421
521
  a(this, "_txHash");
422
522
  a(this, "env");
423
- if (this.ctx = s, this.params = r, this.env = s.env, !we(r.sourceChain, this.env))
424
- throw d.routeNotFound({
425
- assetOut: r.assetOut,
426
- sourceChain: r.sourceChain,
427
- destChain: r.destChain,
523
+ if (this.ctx = s, this.params = n, this.env = s.env, !be(n.sourceChain, this.env))
524
+ throw g.routeNotFound({
525
+ assetOut: n.assetOut,
526
+ sourceChain: n.sourceChain,
527
+ destChain: n.destChain,
428
528
  env: this.env
429
529
  });
430
530
  }
@@ -438,63 +538,63 @@ class Pe extends S {
438
538
  return this._txHash;
439
539
  }
440
540
  async prepare(s) {
441
- return this.assertStatus(i.IDLE, "prepare"), this.act(async () => {
442
- const r = I(this.prepareSchema, s, {
541
+ return this.assertStatus(r.IDLE, "prepare"), this.act(async () => {
542
+ const n = C(this.prepareSchema, s, {
443
543
  destChain: this.params.destChain
444
544
  });
445
- this._amount = r.amount, this._recipient = r.recipient, this.emitProgress({
446
- status: i.READY,
545
+ this._amount = n.amount, this._recipient = n.recipient, this.emitProgress({
546
+ status: r.READY,
447
547
  steps: { burning: o.IDLE, releasing: o.IDLE }
448
548
  });
449
- }, i.READY);
549
+ }, r.READY);
450
550
  }
451
551
  async execute() {
452
- return this.assertStatus(i.READY, "execute"), this.act(async () => {
453
- const s = this._amount, r = this._recipient;
454
- if (!s || !r)
455
- throw d.missingParameter("amount or recipient");
552
+ return this.assertStatus(r.READY, "execute"), this.act(async () => {
553
+ const s = this._amount, n = this._recipient;
554
+ if (!s || !n)
555
+ throw g.missingParameter("amount or recipient");
456
556
  this.emitProgress({
457
- status: i.READY,
557
+ status: r.READY,
458
558
  steps: { burning: o.PENDING, releasing: o.IDLE }
459
559
  });
460
- const n = he(s).toString(), l = _e(this.env), { txHash: p } = await this.ctx.solana.unstake({
461
- amount: n,
462
- btcAddress: r,
463
- network: l
560
+ const i = b(s).toString(), c = ke(this.env), { txHash: l } = await this.ctx.solana.unstake({
561
+ amount: i,
562
+ btcAddress: n,
563
+ network: c
464
564
  });
465
- return this._txHash = p, this.emitProgress({
466
- status: i.COMPLETED,
565
+ return this._txHash = l, this.emitProgress({
566
+ status: r.COMPLETED,
467
567
  steps: { burning: o.COMPLETE, releasing: o.PENDING }
468
- }), this.emitCompleted(), { txHash: p };
469
- }, i.COMPLETED);
568
+ }), this.emitCompleted(), { txHash: l };
569
+ }, r.COMPLETED);
470
570
  }
471
571
  get prepareSchema() {
472
- return D({
473
- amount: y,
474
- recipient: N.recipientSchema
572
+ return E({
573
+ amount: I,
574
+ recipient: L.recipientSchema
475
575
  });
476
576
  }
477
577
  }
478
- function xe(t) {
479
- const s = new v(t.modules, t).require("solana");
578
+ function Le(t) {
579
+ const s = new S(t.modules, t).require("solana");
480
580
  return {
481
581
  env: t.env,
482
- partner: new m(t.partner),
483
- getProvider: async (r) => {
484
- const n = C(t.providers, r);
485
- if (n)
486
- return n();
582
+ partner: new A(t.partner),
583
+ getProvider: async (n) => {
584
+ const i = D(t.providers, n);
585
+ if (i)
586
+ return i();
487
587
  },
488
588
  solana: s
489
589
  };
490
590
  }
491
- class b {
591
+ class O {
492
592
  constructor(e) {
493
593
  a(this, "_ctx", null);
494
594
  this.config = e;
495
595
  }
496
596
  get ctx() {
497
- return this._ctx || (this._ctx = xe(this.config)), this._ctx;
597
+ return this._ctx || (this._ctx = Le(this.config)), this._ctx;
498
598
  }
499
599
  /**
500
600
  * Unstake LBTC → BTC
@@ -504,44 +604,55 @@ class b {
504
604
  * @throws LombardError if solana module is not registered
505
605
  */
506
606
  unstake(e) {
507
- return new Pe(this.ctx, e);
607
+ return new Te(this.ctx, e);
608
+ }
609
+ /**
610
+ * Redeem BTC.b → BTC
611
+ *
612
+ * Burns BTC.b on Solana and releases BTC to a Bitcoin address via GMP.
613
+ *
614
+ * @throws LombardError if solana module is not registered
615
+ * @throws LombardError if route is not supported
616
+ */
617
+ redeem(e) {
618
+ return new Ne(this.ctx, e);
508
619
  }
509
620
  }
510
- function et(t) {
511
- return new b(t);
621
+ function at(t) {
622
+ return new O(t);
512
623
  }
513
- const T = {
624
+ const M = {
514
625
  routes: [
515
626
  {
516
- sourceChains: [h.STARKNET_MAINNET],
517
- destChain: h.BITCOIN_MAINNET,
627
+ sourceChains: [d.STARKNET_MAINNET],
628
+ destChain: d.BITCOIN_MAINNET,
518
629
  envs: [u.prod]
519
630
  },
520
631
  {
521
- sourceChains: [h.STARKNET_SEPOLIA],
522
- destChain: h.BITCOIN_SIGNET,
632
+ sourceChains: [d.STARKNET_SEPOLIA],
633
+ destChain: d.BITCOIN_SIGNET,
523
634
  envs: [u.testnet, u.stage, u.dev, u.ibc]
524
635
  }
525
636
  ],
526
- recipientSchema: A
637
+ recipientSchema: v
527
638
  };
528
- function ke(t, e) {
529
- return T.routes.some(
639
+ function Oe(t, e) {
640
+ return M.routes.some(
530
641
  (s) => s.sourceChains.includes(t) && s.envs.includes(e)
531
642
  );
532
643
  }
533
- class Ne extends S {
534
- constructor(s, r) {
535
- super(i.IDLE);
644
+ class Me extends f {
645
+ constructor(s, n) {
646
+ super(r.IDLE);
536
647
  a(this, "_amount");
537
648
  a(this, "_recipient");
538
649
  a(this, "_txHash");
539
650
  a(this, "env");
540
- if (this.ctx = s, this.params = r, this.env = s.env, !ke(r.sourceChain, this.env))
541
- throw d.routeNotFound({
542
- assetOut: r.assetOut,
543
- sourceChain: r.sourceChain,
544
- destChain: r.destChain,
651
+ if (this.ctx = s, this.params = n, this.env = s.env, !Oe(n.sourceChain, this.env))
652
+ throw g.routeNotFound({
653
+ assetOut: n.assetOut,
654
+ sourceChain: n.sourceChain,
655
+ destChain: n.destChain,
545
656
  env: this.env
546
657
  });
547
658
  }
@@ -555,63 +666,63 @@ class Ne extends S {
555
666
  return this._txHash;
556
667
  }
557
668
  async prepare(s) {
558
- return this.assertStatus(i.IDLE, "prepare"), this.act(async () => {
559
- const r = I(this.prepareSchema, s, {
669
+ return this.assertStatus(r.IDLE, "prepare"), this.act(async () => {
670
+ const n = C(this.prepareSchema, s, {
560
671
  destChain: this.params.destChain
561
672
  });
562
- this._amount = r.amount, this._recipient = r.recipient, this.emitProgress({
563
- status: i.READY,
673
+ this._amount = n.amount, this._recipient = n.recipient, this.emitProgress({
674
+ status: r.READY,
564
675
  steps: { burning: o.IDLE, releasing: o.IDLE }
565
676
  });
566
- }, i.READY);
677
+ }, r.READY);
567
678
  }
568
679
  async execute() {
569
- return this.assertStatus(i.READY, "execute"), this.act(async () => {
570
- const s = this._amount, r = this._recipient;
571
- if (!s || !r)
572
- throw d.missingParameter("amount or recipient");
680
+ return this.assertStatus(r.READY, "execute"), this.act(async () => {
681
+ const s = this._amount, n = this._recipient;
682
+ if (!s || !n)
683
+ throw g.missingParameter("amount or recipient");
573
684
  this.emitProgress({
574
- status: i.READY,
685
+ status: r.READY,
575
686
  steps: { burning: o.PENDING, releasing: o.IDLE }
576
687
  });
577
- const { txHash: n } = await this.ctx.starknet.unstake({
688
+ const { txHash: i } = await this.ctx.starknet.unstake({
578
689
  amount: s,
579
- btcAddress: r,
690
+ btcAddress: n,
580
691
  env: this.env
581
692
  });
582
- return this._txHash = n, this.emitProgress({
583
- status: i.COMPLETED,
693
+ return this._txHash = i, this.emitProgress({
694
+ status: r.COMPLETED,
584
695
  steps: { burning: o.COMPLETE, releasing: o.PENDING }
585
- }), this.emitCompleted(), { txHash: n };
586
- }, i.COMPLETED);
696
+ }), this.emitCompleted(), { txHash: i };
697
+ }, r.COMPLETED);
587
698
  }
588
699
  get prepareSchema() {
589
- return D({
590
- amount: y,
591
- recipient: T.recipientSchema
700
+ return E({
701
+ amount: I,
702
+ recipient: M.recipientSchema
592
703
  });
593
704
  }
594
705
  }
595
- function be(t) {
596
- const s = new v(t.modules, t).require("starknet");
706
+ function Re(t) {
707
+ const s = new S(t.modules, t).require("starknet");
597
708
  return {
598
709
  env: t.env,
599
- partner: new m(t.partner),
600
- getProvider: async (r) => {
601
- const n = C(t.providers, r);
602
- if (n)
603
- return n();
710
+ partner: new A(t.partner),
711
+ getProvider: async (n) => {
712
+ const i = D(t.providers, n);
713
+ if (i)
714
+ return i();
604
715
  },
605
716
  starknet: s
606
717
  };
607
718
  }
608
- class L {
719
+ class R {
609
720
  constructor(e) {
610
721
  a(this, "_ctx", null);
611
722
  this.config = e;
612
723
  }
613
724
  get ctx() {
614
- return this._ctx || (this._ctx = be(this.config)), this._ctx;
725
+ return this._ctx || (this._ctx = Re(this.config)), this._ctx;
615
726
  }
616
727
  /**
617
728
  * Unstake LBTC → BTC
@@ -621,54 +732,54 @@ class L {
621
732
  * @throws LombardError if starknet module is not registered
622
733
  */
623
734
  unstake(e) {
624
- return new Ne(this.ctx, e);
735
+ return new Me(this.ctx, e);
625
736
  }
626
737
  }
627
- function tt(t) {
628
- return new L(t);
738
+ function ot(t) {
739
+ return new R(t);
629
740
  }
630
- const M = {
741
+ const B = {
631
742
  routes: [
632
743
  {
633
- sourceChains: [h.SUI_MAINNET],
634
- destChain: h.BITCOIN_MAINNET,
744
+ sourceChains: [d.SUI_MAINNET],
745
+ destChain: d.BITCOIN_MAINNET,
635
746
  envs: [u.prod]
636
747
  },
637
748
  {
638
- sourceChains: [h.SUI_TESTNET],
639
- destChain: h.BITCOIN_SIGNET,
749
+ sourceChains: [d.SUI_TESTNET],
750
+ destChain: d.BITCOIN_SIGNET,
640
751
  envs: [u.testnet, u.stage, u.dev, u.ibc]
641
752
  }
642
753
  ],
643
- recipientSchema: A
754
+ recipientSchema: v
644
755
  };
645
- function Te(t, e) {
646
- return M.routes.some(
756
+ function Be(t, e) {
757
+ return B.routes.some(
647
758
  (s) => s.sourceChains.includes(t) && s.envs.includes(e)
648
759
  );
649
760
  }
650
- function Le(t) {
761
+ function He(t) {
651
762
  switch (t) {
652
- case h.SUI_MAINNET:
763
+ case d.SUI_MAINNET:
653
764
  return "sui:mainnet";
654
- case h.SUI_TESTNET:
765
+ case d.SUI_TESTNET:
655
766
  return "sui:testnet";
656
767
  default:
657
768
  return "sui:testnet";
658
769
  }
659
770
  }
660
- class Me extends S {
661
- constructor(s, r) {
662
- super(i.IDLE);
771
+ class Fe extends f {
772
+ constructor(s, n) {
773
+ super(r.IDLE);
663
774
  a(this, "_amount");
664
775
  a(this, "_recipient");
665
776
  a(this, "_txHash");
666
777
  a(this, "env");
667
- if (this.ctx = s, this.params = r, this.env = s.env, !Te(r.sourceChain, this.env))
668
- throw d.routeNotFound({
669
- assetOut: r.assetOut,
670
- sourceChain: r.sourceChain,
671
- destChain: r.destChain,
778
+ if (this.ctx = s, this.params = n, this.env = s.env, !Be(n.sourceChain, this.env))
779
+ throw g.routeNotFound({
780
+ assetOut: n.assetOut,
781
+ sourceChain: n.sourceChain,
782
+ destChain: n.destChain,
672
783
  env: this.env
673
784
  });
674
785
  }
@@ -682,64 +793,64 @@ class Me extends S {
682
793
  return this._txHash;
683
794
  }
684
795
  async prepare(s) {
685
- return this.assertStatus(i.IDLE, "prepare"), this.act(async () => {
686
- const r = I(this.prepareSchema, s, {
796
+ return this.assertStatus(r.IDLE, "prepare"), this.act(async () => {
797
+ const n = C(this.prepareSchema, s, {
687
798
  destChain: this.params.destChain
688
799
  });
689
- this._amount = r.amount, this._recipient = r.recipient, this.emitProgress({
690
- status: i.READY,
800
+ this._amount = n.amount, this._recipient = n.recipient, this.emitProgress({
801
+ status: r.READY,
691
802
  steps: { burning: o.IDLE, releasing: o.IDLE }
692
803
  });
693
- }, i.READY);
804
+ }, r.READY);
694
805
  }
695
806
  async execute() {
696
- return this.assertStatus(i.READY, "execute"), this.act(async () => {
697
- const s = this._amount, r = this._recipient;
698
- if (!s || !r)
699
- throw d.missingParameter("amount or recipient");
807
+ return this.assertStatus(r.READY, "execute"), this.act(async () => {
808
+ const s = this._amount, n = this._recipient;
809
+ if (!s || !n)
810
+ throw g.missingParameter("amount or recipient");
700
811
  this.emitProgress({
701
- status: i.READY,
812
+ status: r.READY,
702
813
  steps: { burning: o.PENDING, releasing: o.IDLE }
703
814
  });
704
- const n = Le(this.params.sourceChain), { txHash: l } = await this.ctx.sui.unstake({
815
+ const i = He(this.params.sourceChain), { txHash: c } = await this.ctx.sui.unstake({
705
816
  amount: s,
706
- btcAddress: r,
707
- chainId: n,
817
+ btcAddress: n,
818
+ chainId: i,
708
819
  env: this.env
709
820
  });
710
- return this._txHash = l, this.emitProgress({
711
- status: i.COMPLETED,
821
+ return this._txHash = c, this.emitProgress({
822
+ status: r.COMPLETED,
712
823
  steps: { burning: o.COMPLETE, releasing: o.PENDING }
713
- }), this.emitCompleted(), { txHash: l };
714
- }, i.COMPLETED);
824
+ }), this.emitCompleted(), { txHash: c };
825
+ }, r.COMPLETED);
715
826
  }
716
827
  get prepareSchema() {
717
- return D({
718
- amount: y,
719
- recipient: M.recipientSchema
828
+ return E({
829
+ amount: I,
830
+ recipient: B.recipientSchema
720
831
  });
721
832
  }
722
833
  }
723
- function Oe(t) {
724
- const s = new v(t.modules, t).require("sui");
834
+ function Ue(t) {
835
+ const s = new S(t.modules, t).require("sui");
725
836
  return {
726
837
  env: t.env,
727
- partner: new m(t.partner),
728
- getProvider: async (r) => {
729
- const n = C(t.providers, r);
730
- if (n)
731
- return n();
838
+ partner: new A(t.partner),
839
+ getProvider: async (n) => {
840
+ const i = D(t.providers, n);
841
+ if (i)
842
+ return i();
732
843
  },
733
844
  sui: s
734
845
  };
735
846
  }
736
- class O {
847
+ class H {
737
848
  constructor(e) {
738
849
  a(this, "_ctx", null);
739
850
  this.config = e;
740
851
  }
741
852
  get ctx() {
742
- return this._ctx || (this._ctx = Oe(this.config)), this._ctx;
853
+ return this._ctx || (this._ctx = Ue(this.config)), this._ctx;
743
854
  }
744
855
  /**
745
856
  * Unstake LBTC → BTC
@@ -749,71 +860,71 @@ class O {
749
860
  * @throws LombardError if sui module is not registered
750
861
  */
751
862
  unstake(e) {
752
- return new Me(this.ctx, e);
863
+ return new Fe(this.ctx, e);
753
864
  }
754
865
  }
755
- function st(t) {
756
- return new O(t);
866
+ function ct(t) {
867
+ return new H(t);
757
868
  }
758
- class Be {
869
+ class Ge {
759
870
  constructor(e = k, s) {
760
871
  a(this, "catalog");
761
- this.env = e, this.catalog = s ?? _;
872
+ this.env = e, this.catalog = s ?? x;
762
873
  }
763
874
  /** Get token contract address */
764
875
  getAddress(e, s) {
765
- return F(e, this.env, s, this.catalog);
876
+ return K(e, this.env, s, this.catalog);
766
877
  }
767
878
  /** Get token decimals */
768
879
  getDecimals(e) {
769
- return K(e, this.catalog);
880
+ return V(e, this.catalog);
770
881
  }
771
882
  /** Get asset metadata (decimals, symbol, name) */
772
883
  getMetadata(e) {
773
- return G(e, this.catalog);
884
+ return j(e, this.catalog);
774
885
  }
775
886
  /** Check if asset uses an asset router contract */
776
887
  usesAssetRouter(e, s) {
777
- return V(e, this.env, s, this.catalog);
888
+ return $(e, this.env, s, this.catalog);
778
889
  }
779
890
  /** Get asset router contract address */
780
891
  getAssetRouter(e, s) {
781
- return Y(e, this.env, s, this.catalog);
892
+ return q(e, this.env, s, this.catalog);
782
893
  }
783
894
  /** Get bridge adapter address */
784
895
  getBridgeAdapter(e, s) {
785
- return j(e, this.env, s, this.catalog);
896
+ return z(e, this.env, s, this.catalog);
786
897
  }
787
898
  /** Get public market maker address */
788
899
  getPublicMarketMaker(e, s) {
789
- return $(e, this.env, s, this.catalog);
900
+ return W(e, this.env, s, this.catalog);
790
901
  }
791
902
  /** Find asset by contract address (reverse lookup) */
792
903
  getByAddress(e, s) {
793
- return q(e, this.env, s, this.catalog);
904
+ return X(e, this.env, s, this.catalog);
794
905
  }
795
906
  /** Check if asset is deployed on a chain */
796
907
  isDeployed(e, s) {
797
- return z(e, this.env, s, this.catalog);
908
+ return Z(e, this.env, s, this.catalog);
798
909
  }
799
910
  /** Get all chains where asset is deployed */
800
911
  getChains(e) {
801
- return W(e, this.env, this.catalog);
912
+ return J(e, this.env, this.catalog);
802
913
  }
803
914
  /** Get all environments where asset is deployed on a chain */
804
915
  getEnvironments(e, s) {
805
- return X(e, s, this.catalog);
916
+ return Q(e, s, this.catalog);
806
917
  }
807
918
  /** Get all supported assets */
808
919
  getSupportedAssets() {
809
- return J(this.catalog);
920
+ return ee(this.catalog);
810
921
  }
811
922
  /** Direct access to the asset catalog */
812
923
  getCatalog() {
813
924
  return this.catalog;
814
925
  }
815
926
  }
816
- class Re {
927
+ class Ye {
817
928
  constructor(e) {
818
929
  a(this, "config");
819
930
  a(this, "env");
@@ -848,31 +959,31 @@ class Re {
848
959
  a(this, "referrals");
849
960
  /** Capability registry (manages optional module services) */
850
961
  a(this, "capabilities");
851
- this.config = e, this.env = e.env, this.partnerConfig = new m(e.partner), this.capabilities = new v(
962
+ this.config = e, this.env = e.env, this.partnerConfig = new A(e.partner), this.capabilities = new S(
852
963
  this.config.modules,
853
964
  this.config
854
965
  ), this.chain = {
855
- btc: new oe(this.config),
856
- evm: new ue(this.config),
857
- solana: new b(this.config),
858
- sui: new O(this.config),
859
- starknet: new L(this.config)
860
- }, this.referrals = new re(this), this.assets = new Be(this.env), this.api = new ve(this.env);
966
+ btc: new he(this.config),
967
+ evm: new ge(this.config),
968
+ solana: new O(this.config),
969
+ sui: new H(this.config),
970
+ starknet: new R(this.config)
971
+ }, this.referrals = new ae(this), this.assets = new Ge(this.env), this.api = new Ce(this.env);
861
972
  }
862
973
  async getProvider(e) {
863
974
  const s = e;
864
975
  if (this.providerCache.has(s))
865
976
  return this.providerCache.get(s);
866
- const r = C(this.config.providers, e);
867
- if (!r)
868
- throw d.providerMissing(e, e);
869
- const n = await r();
977
+ const n = D(this.config.providers, e);
870
978
  if (!n)
871
- throw new d(
872
- Q.PROVIDER_INITIALIZATION_FAILED,
979
+ throw g.providerMissing(e, e);
980
+ const i = await n();
981
+ if (!i)
982
+ throw new g(
983
+ te.PROVIDER_INITIALIZATION_FAILED,
873
984
  `Failed to initialize ${e} provider`
874
985
  );
875
- return this.providerCache.set(s, n), n;
986
+ return this.providerCache.set(s, i), i;
876
987
  }
877
988
  /**
878
989
  * Configure partner settings
@@ -900,33 +1011,33 @@ class Re {
900
1011
  return this.partnerConfig.getPartnerId();
901
1012
  }
902
1013
  }
903
- const E = /* @__PURE__ */ new Map();
904
- function He(t) {
905
- return E.has(t) || E.set(t, Promise.resolve(_)), E.get(t);
1014
+ const _ = /* @__PURE__ */ new Map();
1015
+ function Ke(t) {
1016
+ return _.has(t) || _.set(t, Promise.resolve(x)), _.get(t);
906
1017
  }
907
- async function rt(t) {
908
- const e = "modules" in t && Array.isArray(t.modules) ? t : ye(t), s = await He(e.env), r = {
1018
+ async function ut(t) {
1019
+ const e = "modules" in t && Array.isArray(t.modules) ? t : ye(t), s = await Ke(e.env), n = {
909
1020
  ...e,
910
1021
  catalog: s
911
1022
  };
912
- return new Re(r);
1023
+ return new Ye(n);
913
1024
  }
914
- function nt(t) {
1025
+ function ht(t) {
915
1026
  return typeof t == "object" && t !== null && "request" in t && typeof t.request == "function";
916
1027
  }
917
- function at(t) {
1028
+ function dt(t) {
918
1029
  return typeof t == "object" && t !== null && "getAddresses" in t && typeof t.getAddresses == "function";
919
1030
  }
920
- function it(t) {
1031
+ function gt(t) {
921
1032
  return typeof t == "object" && t !== null && "publicKey" in t && "signAndSendTransaction" in t;
922
1033
  }
923
- function ot(t) {
1034
+ function lt(t) {
924
1035
  return typeof t == "object" && t !== null && "getAddress" in t && "signAndExecuteTransactionBlock" in t;
925
1036
  }
926
- function ct(t) {
1037
+ function pt(t) {
927
1038
  return typeof t == "object" && t !== null && "address" in t && "execute" in t;
928
1039
  }
929
- const ut = {
1040
+ const mt = {
930
1041
  /** Progress update with detailed step information */
931
1042
  Progress: "progress",
932
1043
  /** Status change (e.g., 'idle' → 'preparing' → 'ready') */
@@ -937,31 +1048,31 @@ const ut = {
937
1048
  Failed: "failed",
938
1049
  /** Error occurred */
939
1050
  Error: "error"
940
- }, ht = {
1051
+ }, vt = {
941
1052
  Progress: "progress",
942
1053
  StatusChange: "status-change",
943
1054
  Completed: "completed",
944
1055
  Failed: "failed",
945
1056
  Error: "error"
946
- }, dt = {
1057
+ }, ft = {
947
1058
  Progress: "progress",
948
1059
  StatusChange: "status-change",
949
1060
  Completed: "completed",
950
1061
  Failed: "failed",
951
1062
  Error: "error"
952
- }, gt = {
1063
+ }, Ct = {
953
1064
  Progress: "progress",
954
1065
  StatusChange: "status-change",
955
1066
  Completed: "completed",
956
1067
  Failed: "failed",
957
1068
  Error: "error"
958
- }, lt = {
1069
+ }, Et = {
959
1070
  Progress: "progress",
960
1071
  StatusChange: "status-change",
961
1072
  Completed: "completed",
962
1073
  Failed: "failed",
963
1074
  Error: "error"
964
- }, pt = {
1075
+ }, It = {
965
1076
  Progress: "progress",
966
1077
  StatusChange: "status-change",
967
1078
  Completed: "completed",
@@ -969,29 +1080,29 @@ const ut = {
969
1080
  Error: "error"
970
1081
  };
971
1082
  export {
972
- ve as A,
973
- pt as B,
974
- lt as D,
975
- Re as L,
976
- dt as R,
977
- b as S,
978
- gt as U,
979
- ht as a,
980
- ut as b,
981
- L as c,
982
- O as d,
983
- ye as e,
984
- fe as f,
985
- rt as g,
986
- Qe as h,
987
- Ze as i,
988
- at as j,
989
- nt as k,
990
- it as l,
991
- ct as m,
992
- ot as n,
993
- tt as o,
994
- st as p,
995
- et as s
1083
+ Ce as ApiNamespace,
1084
+ It as BridgeEvent,
1085
+ Et as DeployEvent,
1086
+ vt as DepositEvent,
1087
+ Ye as LombardSDK,
1088
+ ft as RedeemEvent,
1089
+ O as SolanaActions,
1090
+ mt as StakeEvent,
1091
+ R as StarknetActions,
1092
+ H as SuiActions,
1093
+ Ct as UnstakeEvent,
1094
+ ye as createConfig,
1095
+ fe as createConsoleLogger,
1096
+ ut as createLombardSDK,
1097
+ rt as createSilentLogger,
1098
+ it as getSdkHeaders,
1099
+ dt as isBtcProvider,
1100
+ ht as isEvmProvider,
1101
+ gt as isSolanaProvider,
1102
+ pt as isStarknetProvider,
1103
+ lt as isSuiProvider,
1104
+ at as solanaActions,
1105
+ ot as starknetActions,
1106
+ ct as suiActions
996
1107
  };
997
- //# sourceMappingURL=events-DdV_xi-2.js.map
1108
+ //# sourceMappingURL=events-rgJZNpHd.js.map