@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.
- package/CHANGELOG.md +16 -0
- package/LICENSE +21 -0
- package/README.md +6 -6
- package/dist/api-functions/generateDepositBtcAddress/generateDepositBtcAddress.d.ts.map +1 -1
- package/dist/api-functions/getDepositBtcAddress/getDepositBtcAddress.d.ts.map +1 -1
- package/dist/api.cjs +1 -1
- package/dist/api.js +29 -29
- package/dist/bridge.cjs +1 -1
- package/dist/bridge.js +7 -7
- package/dist/btc.cjs +1 -1
- package/dist/btc.js +10 -10
- package/dist/chains/btc/actions/deposit/BtcDeposit.d.ts +7 -4
- package/dist/chains/btc/actions/deposit/BtcDeposit.d.ts.map +1 -1
- package/dist/chains/btc/actions/deposit/config/index.d.ts +16 -8
- package/dist/chains/btc/actions/deposit/config/index.d.ts.map +1 -1
- package/dist/chains/btc/actions/deposit/config/solana.d.ts +20 -0
- package/dist/chains/btc/actions/deposit/config/solana.d.ts.map +1 -0
- package/dist/chains/btc/actions/deposit/config/types.d.ts +4 -3
- package/dist/chains/btc/actions/deposit/config/types.d.ts.map +1 -1
- package/dist/chains/evm/EvmActions.d.ts +4 -4
- package/dist/chains/evm/actions/deposit/config/evm.d.ts +3 -3
- package/dist/chains/evm/actions/deposit/config/evm.d.ts.map +1 -1
- package/dist/chains/evm/actions/deposit/config/types.d.ts +1 -1
- package/dist/chains/evm/actions/deposit/config/types.d.ts.map +1 -1
- package/dist/chains/evm/actions/deposit/factory.d.ts +1 -1
- package/dist/chains/evm/actions/deposit/types.d.ts +1 -1
- package/dist/chains/evm/actions/deposit/types.d.ts.map +1 -1
- package/dist/chains/evm/actions/redeem/EvmRedeem.d.ts.map +1 -1
- package/dist/chains/evm/actions/unstake/EvmUnstake.d.ts.map +1 -1
- package/dist/chains/solana/SolanaActions.d.ts +10 -0
- package/dist/chains/solana/SolanaActions.d.ts.map +1 -1
- package/dist/chains/solana/actions/index.d.ts +1 -0
- package/dist/chains/solana/actions/index.d.ts.map +1 -1
- package/dist/chains/solana/actions/redeem/SolanaRedeem.d.ts +37 -0
- package/dist/chains/solana/actions/redeem/SolanaRedeem.d.ts.map +1 -0
- package/dist/chains/solana/actions/redeem/config/index.d.ts +8 -0
- package/dist/chains/solana/actions/redeem/config/index.d.ts.map +1 -0
- package/dist/chains/solana/actions/redeem/config/solana.d.ts +22 -0
- package/dist/chains/solana/actions/redeem/config/solana.d.ts.map +1 -0
- package/dist/chains/solana/actions/redeem/config/types.d.ts +35 -0
- package/dist/chains/solana/actions/redeem/config/types.d.ts.map +1 -0
- package/dist/chains/solana/actions/redeem/factory.d.ts +12 -0
- package/dist/chains/solana/actions/redeem/factory.d.ts.map +1 -0
- package/dist/chains/solana/actions/redeem/index.d.ts +9 -0
- package/dist/chains/solana/actions/redeem/index.d.ts.map +1 -0
- package/dist/chains/solana/actions/redeem/types.d.ts +52 -0
- package/dist/chains/solana/actions/redeem/types.d.ts.map +1 -0
- package/dist/chains/solana/utils.d.ts +15 -0
- package/dist/chains/solana/utils.d.ts.map +1 -0
- package/dist/chunks/BtcActions-BOVJrdTI.cjs +2 -0
- package/dist/chunks/BtcActions-BOVJrdTI.cjs.map +1 -0
- package/dist/chunks/{BtcActions-k-qs1uO0.js → BtcActions-_a8r3Q7c.js} +457 -414
- package/dist/chunks/BtcActions-_a8r3Q7c.js.map +1 -0
- package/dist/chunks/{EvmActions-B_dF42So.js → EvmActions-D4vFpbYk.js} +163 -173
- package/dist/chunks/EvmActions-D4vFpbYk.js.map +1 -0
- package/dist/chunks/EvmActions-VrDbgMDy.cjs +2 -0
- package/dist/chunks/EvmActions-VrDbgMDy.cjs.map +1 -0
- package/dist/chunks/ReferralsClient-Cmrjo9bN.cjs +2 -0
- package/dist/chunks/ReferralsClient-Cmrjo9bN.cjs.map +1 -0
- package/dist/chunks/{ReferralsClient-DbFWWtVi.js → ReferralsClient-DvEsA3II.js} +160 -160
- package/dist/chunks/ReferralsClient-DvEsA3II.js.map +1 -0
- package/dist/chunks/{api-config-CtcP3TVl.js → api-config-Dm6dR85f.js} +6 -6
- package/dist/chunks/{api-config-CtcP3TVl.js.map → api-config-Dm6dR85f.js.map} +1 -1
- package/dist/chunks/{approveLBTC-CZiZmdcX.cjs → approveLBTC-CUXEC3kw.cjs} +2 -2
- package/dist/chunks/{approveLBTC-CZiZmdcX.cjs.map → approveLBTC-CUXEC3kw.cjs.map} +1 -1
- package/dist/chunks/approveLBTC-Du2El1tW.js +26 -0
- package/dist/chunks/{approveLBTC-B5-ZWqct.js.map → approveLBTC-Du2El1tW.js.map} +1 -1
- package/dist/chunks/{array-Cev6kyLJ.js → array-DYttUPf5.js} +7 -7
- package/dist/chunks/{array-Cev6kyLJ.js.map → array-DYttUPf5.js.map} +1 -1
- package/dist/chunks/{blockchain-identifier-BzMQWh-C.cjs → blockchain-identifier-BTPGxLio.cjs} +2 -2
- package/dist/chunks/{blockchain-identifier-BzMQWh-C.cjs.map → blockchain-identifier-BTPGxLio.cjs.map} +1 -1
- package/dist/chunks/{blockchain-identifier-BmadkNtK.js → blockchain-identifier-CTVaEPpY.js} +24 -24
- package/dist/chunks/{blockchain-identifier-BmadkNtK.js.map → blockchain-identifier-CTVaEPpY.js.map} +1 -1
- package/dist/chunks/{bridge-CTsiodO1.js → bridge-DqGabhIY.js} +13 -13
- package/dist/chunks/{bridge-CTsiodO1.js.map → bridge-DqGabhIY.js.map} +1 -1
- package/dist/chunks/{bridge-BzRlY9pP.cjs → bridge-dWaKrMKm.cjs} +2 -2
- package/dist/chunks/{bridge-BzRlY9pP.cjs.map → bridge-dWaKrMKm.cjs.map} +1 -1
- package/dist/chunks/{config-hFKqUyg3.js → config-DghboRx0.js} +10 -10
- package/dist/chunks/{config-hFKqUyg3.js.map → config-DghboRx0.js.map} +1 -1
- package/dist/chunks/{config-l4ZaZw_g.cjs → config-DmCmanM_.cjs} +2 -2
- package/dist/chunks/{config-l4ZaZw_g.cjs.map → config-DmCmanM_.cjs.map} +1 -1
- package/dist/chunks/constants-D1FnS2Z8.js +6 -0
- package/dist/chunks/constants-D1FnS2Z8.js.map +1 -0
- package/dist/chunks/constants-ueShGH9R.cjs +2 -0
- package/dist/chunks/constants-ueShGH9R.cjs.map +1 -0
- package/dist/chunks/{defi-registry-BIRv_zkp.cjs → defi-registry-DDNavtO1.cjs} +2 -2
- package/dist/chunks/{defi-registry-BIRv_zkp.cjs.map → defi-registry-DDNavtO1.cjs.map} +1 -1
- package/dist/chunks/{defi-registry-wNFN3qyB.js → defi-registry-DxjjBQTV.js} +13 -13
- package/dist/chunks/{defi-registry-wNFN3qyB.js.map → defi-registry-DxjjBQTV.js.map} +1 -1
- package/dist/chunks/{depositStatus-DM7fRmbN.js → depositStatus-05_X7FVs.js} +42 -42
- package/dist/chunks/{depositStatus-DM7fRmbN.js.map → depositStatus-05_X7FVs.js.map} +1 -1
- package/dist/chunks/{depositStatus-C3-EgT2a.cjs → depositStatus-CUjHpXFJ.cjs} +2 -2
- package/dist/chunks/{depositStatus-C3-EgT2a.cjs.map → depositStatus-CUjHpXFJ.cjs.map} +1 -1
- package/dist/chunks/events-5c8IHjEF.cjs +2 -0
- package/dist/chunks/events-5c8IHjEF.cjs.map +1 -0
- package/dist/chunks/{events-DdV_xi-2.js → events-rgJZNpHd.js} +414 -303
- package/dist/chunks/events-rgJZNpHd.js.map +1 -0
- package/dist/chunks/evm-by-btc-address-CZvE15lx.js +39 -0
- package/dist/chunks/{evm-by-btc-address-CwLiENtM.js.map → evm-by-btc-address-CZvE15lx.js.map} +1 -1
- package/dist/chunks/fee-requirements-CCNsxAvJ.js +14 -0
- package/dist/chunks/{fee-requirements-x8-8mpJ7.js.map → fee-requirements-CCNsxAvJ.js.map} +1 -1
- package/dist/chunks/get-exchange-ratio-B-xzYND1.js +20 -0
- package/dist/chunks/{get-exchange-ratio-NtnkG1kZ.js.map → get-exchange-ratio-B-xzYND1.js.map} +1 -1
- package/dist/chunks/{get-exchange-ratio-C-7DadfD.cjs → get-exchange-ratio-BEhD4gLB.cjs} +2 -2
- package/dist/chunks/{get-exchange-ratio-C-7DadfD.cjs.map → get-exchange-ratio-BEhD4gLB.cjs.map} +1 -1
- package/dist/chunks/{get-positions-summary-DkZZYbGP.cjs → get-positions-summary-Dh1QPLYO.cjs} +2 -2
- package/dist/chunks/{get-positions-summary-DkZZYbGP.cjs.map → get-positions-summary-Dh1QPLYO.cjs.map} +1 -1
- package/dist/chunks/{get-positions-summary-B_MmGHLv.js → get-positions-summary-iYshN1RQ.js} +28 -28
- package/dist/chunks/{get-positions-summary-B_MmGHLv.js.map → get-positions-summary-iYshN1RQ.js.map} +1 -1
- package/dist/chunks/{get-vault-tvl-YAXePAW3.js → get-vault-tvl-Ct_Zkg7C.js} +41 -41
- package/dist/chunks/{get-vault-tvl-YAXePAW3.js.map → get-vault-tvl-Ct_Zkg7C.js.map} +1 -1
- package/dist/chunks/{get-vault-tvl-DmTUbOY7.cjs → get-vault-tvl-D_tQIDAs.cjs} +2 -2
- package/dist/chunks/{get-vault-tvl-DmTUbOY7.cjs.map → get-vault-tvl-D_tQIDAs.cjs.map} +1 -1
- package/dist/chunks/{get-vault-withdrawals-CWcYy_sH.cjs → get-vault-withdrawals-8ALlEiAC.cjs} +2 -2
- package/dist/chunks/{get-vault-withdrawals-CWcYy_sH.cjs.map → get-vault-withdrawals-8ALlEiAC.cjs.map} +1 -1
- package/dist/chunks/get-vault-withdrawals-jk7Sv4S4.js +161 -0
- package/dist/chunks/{get-vault-withdrawals-BrpZlt6s.js.map → get-vault-withdrawals-jk7Sv4S4.js.map} +1 -1
- package/dist/chunks/{getSharesByAddress-BEgOf1C0.cjs → getSharesByAddress-D8hehnP1.cjs} +2 -2
- package/dist/chunks/{getSharesByAddress-BEgOf1C0.cjs.map → getSharesByAddress-D8hehnP1.cjs.map} +1 -1
- package/dist/chunks/{getSharesByAddress-BiruCDp6.js → getSharesByAddress-_tBaIBsw.js} +38 -38
- package/dist/chunks/{getSharesByAddress-BiruCDp6.js.map → getSharesByAddress-_tBaIBsw.js.map} +1 -1
- package/dist/chunks/getUserStakeAndBakeSignature-CSEyzgMc.cjs +2 -0
- package/dist/chunks/getUserStakeAndBakeSignature-CSEyzgMc.cjs.map +1 -0
- package/dist/chunks/getUserStakeAndBakeSignature-Su-k10ap.js +125 -0
- package/dist/chunks/getUserStakeAndBakeSignature-Su-k10ap.js.map +1 -0
- package/dist/chunks/lbtc-addresses-D8MYCdsx.js +10 -0
- package/dist/chunks/{lbtc-addresses-BLRmtR3c.js.map → lbtc-addresses-D8MYCdsx.js.map} +1 -1
- package/dist/chunks/{lbtc-addresses-xyTYV7hx.cjs → lbtc-addresses-Kil252DX.cjs} +2 -2
- package/dist/chunks/{lbtc-addresses-xyTYV7hx.cjs.map → lbtc-addresses-Kil252DX.cjs.map} +1 -1
- package/dist/chunks/numbers-CclN2Ohk.js +15 -0
- package/dist/chunks/{numbers-CM-lcmt4.js.map → numbers-CclN2Ohk.js.map} +1 -1
- package/dist/chunks/parameters-C_16L5ft.js +11 -0
- package/dist/chunks/{parameters-CDV-6Hk5.js.map → parameters-C_16L5ft.js.map} +1 -1
- package/dist/chunks/satoshi-CSoJBXc6.js +19 -0
- package/dist/chunks/{satoshi-Ch6y8aYG.js.map → satoshi-CSoJBXc6.js.map} +1 -1
- package/dist/chunks/statusConstants-Cri7yswV.cjs +2 -0
- package/dist/chunks/statusConstants-Cri7yswV.cjs.map +1 -0
- package/dist/chunks/{statusConstants-DFxMrVob.js → statusConstants-Zii1786K.js} +1134 -1113
- package/dist/chunks/statusConstants-Zii1786K.js.map +1 -0
- package/dist/chunks/{storeNetworkFeeSignature-BZGL2Zn_.js → storeNetworkFeeSignature-BODIpq3Y.js} +26 -26
- package/dist/chunks/{storeNetworkFeeSignature-BZGL2Zn_.js.map → storeNetworkFeeSignature-BODIpq3Y.js.map} +1 -1
- package/dist/chunks/{storeNetworkFeeSignature-D7yo6lDV.cjs → storeNetworkFeeSignature-Buk4091C.cjs} +2 -2
- package/dist/chunks/{storeNetworkFeeSignature-D7yo6lDV.cjs.map → storeNetworkFeeSignature-Buk4091C.cjs.map} +1 -1
- package/dist/chunks/time-Sa5gggPG.js +24 -0
- package/dist/chunks/{time-QPeEEEnQ.js.map → time-Sa5gggPG.js.map} +1 -1
- package/dist/chunks/{token-addresses-FKpA3uc4.js → token-addresses-D0v5cR1j.js} +174 -163
- package/dist/chunks/{token-addresses-FKpA3uc4.js.map → token-addresses-D0v5cR1j.js.map} +1 -1
- package/dist/chunks/{token-addresses-DRBecUa7.cjs → token-addresses-nzvTOi24.cjs} +2 -2
- package/dist/chunks/{token-addresses-DRBecUa7.cjs.map → token-addresses-nzvTOi24.cjs.map} +1 -1
- package/dist/chunks/{tokens-D_HeVB5p.cjs → tokens-BkvA0Gp1.cjs} +2 -2
- package/dist/chunks/{tokens-D_HeVB5p.cjs.map → tokens-BkvA0Gp1.cjs.map} +1 -1
- package/dist/chunks/{tokens-C6qZHzph.js → tokens-DgC1hfkm.js} +18 -18
- package/dist/chunks/{tokens-C6qZHzph.js.map → tokens-DgC1hfkm.js.map} +1 -1
- package/dist/chunks/{unstakeLBTC-H0zdYQa6.cjs → unstakeLBTC-CmoCaGX9.cjs} +2 -2
- package/dist/chunks/{unstakeLBTC-H0zdYQa6.cjs.map → unstakeLBTC-CmoCaGX9.cjs.map} +1 -1
- package/dist/chunks/{unstakeLBTC-DAIR9NO_.js → unstakeLBTC-DtvVbpbU.js} +50 -50
- package/dist/chunks/{unstakeLBTC-DAIR9NO_.js.map → unstakeLBTC-DtvVbpbU.js.map} +1 -1
- package/dist/chunks/{withdraw-hHueI2p7.js → withdraw-DgjuaUN3.js} +45 -45
- package/dist/chunks/{withdraw-hHueI2p7.js.map → withdraw-DgjuaUN3.js.map} +1 -1
- package/dist/chunks/{withdraw-C1fMFSwy.cjs → withdraw-i0AueZ_C.cjs} +2 -2
- package/dist/chunks/{withdraw-C1fMFSwy.cjs.map → withdraw-i0AueZ_C.cjs.map} +1 -1
- package/dist/common/constants.d.ts +1 -0
- package/dist/common/constants.d.ts.map +1 -1
- package/dist/contracts.cjs +1 -1
- package/dist/contracts.js +16 -16
- package/dist/core/assets/catalog.d.ts.map +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.js +85 -85
- package/dist/debug.js +4 -4
- package/dist/defi.cjs +1 -1
- package/dist/defi.js +10 -10
- package/dist/evm.cjs +1 -1
- package/dist/evm.js +34 -34
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +287 -283
- package/dist/index.js.map +1 -1
- package/dist/metrics.cjs +1 -1
- package/dist/metrics.js +6 -6
- package/dist/stories/arg-types.d.ts +1 -0
- package/dist/stories/arg-types.d.ts.map +1 -1
- package/dist/tokens/token-addresses.d.ts +2 -2
- package/dist/tokens/token-addresses.d.ts.map +1 -1
- package/dist/utils/chain.d.ts +7 -0
- package/dist/utils/chain.d.ts.map +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +76 -76
- package/dist/vaults.cjs +1 -1
- package/dist/vaults.js +14 -14
- package/package.json +19 -6
- package/dist/chunks/BtcActions-XbVRQEcM.cjs +0 -2
- package/dist/chunks/BtcActions-XbVRQEcM.cjs.map +0 -1
- package/dist/chunks/BtcActions-k-qs1uO0.js.map +0 -1
- package/dist/chunks/EvmActions-BVzQ3fLK.cjs +0 -2
- package/dist/chunks/EvmActions-BVzQ3fLK.cjs.map +0 -1
- package/dist/chunks/EvmActions-B_dF42So.js.map +0 -1
- package/dist/chunks/ReferralsClient-BC-1wT1q.cjs +0 -2
- package/dist/chunks/ReferralsClient-BC-1wT1q.cjs.map +0 -1
- package/dist/chunks/ReferralsClient-DbFWWtVi.js.map +0 -1
- package/dist/chunks/approveLBTC-B5-ZWqct.js +0 -26
- package/dist/chunks/constants-BBK-JNcY.cjs +0 -2
- package/dist/chunks/constants-BBK-JNcY.cjs.map +0 -1
- package/dist/chunks/constants-CuT4axsy.js +0 -5
- package/dist/chunks/constants-CuT4axsy.js.map +0 -1
- package/dist/chunks/events-DdV_xi-2.js.map +0 -1
- package/dist/chunks/events-DqIJRzJo.cjs +0 -2
- package/dist/chunks/events-DqIJRzJo.cjs.map +0 -1
- package/dist/chunks/evm-by-btc-address-CwLiENtM.js +0 -39
- package/dist/chunks/fee-requirements-x8-8mpJ7.js +0 -14
- package/dist/chunks/get-exchange-ratio-NtnkG1kZ.js +0 -20
- package/dist/chunks/get-vault-withdrawals-BrpZlt6s.js +0 -161
- package/dist/chunks/getUserStakeAndBakeSignature-BxRq2cI1.cjs +0 -2
- package/dist/chunks/getUserStakeAndBakeSignature-BxRq2cI1.cjs.map +0 -1
- package/dist/chunks/getUserStakeAndBakeSignature-NGGblnJl.js +0 -120
- package/dist/chunks/getUserStakeAndBakeSignature-NGGblnJl.js.map +0 -1
- package/dist/chunks/lbtc-addresses-BLRmtR3c.js +0 -10
- package/dist/chunks/numbers-CM-lcmt4.js +0 -15
- package/dist/chunks/parameters-CDV-6Hk5.js +0 -11
- package/dist/chunks/satoshi-Ch6y8aYG.js +0 -19
- package/dist/chunks/statusConstants-BLiNBT6s.cjs +0 -2
- package/dist/chunks/statusConstants-BLiNBT6s.cjs.map +0 -1
- package/dist/chunks/statusConstants-DFxMrVob.js.map +0 -1
- package/dist/chunks/time-QPeEEEnQ.js +0 -24
|
@@ -1,43 +1,44 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var a = (t, 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 {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
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 {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
|
|
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:
|
|
19
|
-
if (
|
|
20
|
-
const
|
|
21
|
-
return `${s} ${
|
|
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} ${
|
|
24
|
-
},
|
|
24
|
+
return `${s} ${h}`;
|
|
25
|
+
}, m = (h) => !h || Object.keys(h).length === 0 ? [] : [h];
|
|
25
26
|
return {
|
|
26
|
-
debug(
|
|
27
|
-
|
|
27
|
+
debug(h, p) {
|
|
28
|
+
c("debug") && console.debug(l(h), ...m(p));
|
|
28
29
|
},
|
|
29
|
-
info(
|
|
30
|
-
|
|
30
|
+
info(h, p) {
|
|
31
|
+
c("info") && console.info(l(h), ...m(p));
|
|
31
32
|
},
|
|
32
|
-
warn(
|
|
33
|
-
|
|
33
|
+
warn(h, p) {
|
|
34
|
+
c("warn") && console.warn(l(h), ...m(p));
|
|
34
35
|
},
|
|
35
|
-
error(
|
|
36
|
-
|
|
36
|
+
error(h, p) {
|
|
37
|
+
c("error") && console.error(l(h), ...m(p));
|
|
37
38
|
}
|
|
38
39
|
};
|
|
39
40
|
}
|
|
40
|
-
function
|
|
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
|
|
53
|
+
function it() {
|
|
53
54
|
return {
|
|
54
|
-
"X-SDK-Version":
|
|
55
|
-
"X-SDK-Runtime":
|
|
55
|
+
"X-SDK-Version": Y,
|
|
56
|
+
"X-SDK-Runtime": G
|
|
56
57
|
};
|
|
57
58
|
}
|
|
58
|
-
class
|
|
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
|
|
114
|
+
return ne({ address: e, env: this.env, options: s });
|
|
114
115
|
}
|
|
115
116
|
async points(e, s) {
|
|
116
|
-
return
|
|
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
|
|
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,
|
|
168
|
-
return
|
|
168
|
+
async depositAddress(e, s, n) {
|
|
169
|
+
return N({
|
|
169
170
|
address: e,
|
|
170
171
|
chainId: s,
|
|
171
172
|
env: this.env,
|
|
172
|
-
partnerId:
|
|
173
|
-
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
|
|
208
|
-
return s != null && s.chainId ?
|
|
209
|
-
account:
|
|
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:
|
|
212
|
+
vaultKey: i,
|
|
212
213
|
rpcUrl: s.rpcUrl,
|
|
213
214
|
env: this.env
|
|
214
|
-
}) :
|
|
215
|
-
account:
|
|
216
|
-
vaultKey:
|
|
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
|
|
233
|
+
function Ee(t) {
|
|
233
234
|
if (!t.env)
|
|
234
|
-
throw
|
|
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 && (
|
|
240
|
+
return t.partner && (Ie(t.partner), e.partner = t.partner), e;
|
|
240
241
|
}
|
|
241
|
-
function
|
|
242
|
+
function Ie(t) {
|
|
242
243
|
if (typeof t != "object" || t === null)
|
|
243
|
-
throw
|
|
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
|
|
249
|
+
throw g.missingParameter("partner.partnerId");
|
|
249
250
|
if (e.partnerId.trim().length === 0)
|
|
250
|
-
throw
|
|
251
|
+
throw g.invalidConfiguration("Partner ID cannot be empty");
|
|
251
252
|
}
|
|
252
|
-
class
|
|
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
|
|
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
|
|
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((
|
|
298
|
-
var
|
|
298
|
+
})).map((n) => {
|
|
299
|
+
var i;
|
|
299
300
|
return {
|
|
300
|
-
depositAddress:
|
|
301
|
-
blockHeight:
|
|
302
|
-
isClaimed:
|
|
303
|
-
txid:
|
|
304
|
-
amount: (
|
|
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
|
|
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
|
|
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
|
|
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
|
|
347
|
+
return new Se(t.env);
|
|
347
348
|
}
|
|
348
349
|
};
|
|
349
350
|
}
|
|
350
|
-
function
|
|
351
|
-
const e = /* @__PURE__ */ new Map(), s = [
|
|
352
|
-
for (const
|
|
353
|
-
e.set(
|
|
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
|
|
356
|
-
e.set(
|
|
356
|
+
for (const n of t)
|
|
357
|
+
e.set(n.id, n);
|
|
357
358
|
return Array.from(e.values());
|
|
358
359
|
}
|
|
359
|
-
function
|
|
360
|
+
function _e(t, e) {
|
|
360
361
|
for (const s of t)
|
|
361
|
-
for (const
|
|
362
|
-
if (!
|
|
363
|
-
throw
|
|
362
|
+
for (const n of s.requiresProviders ?? [])
|
|
363
|
+
if (!we(e, n))
|
|
364
|
+
throw g.providerMissing(n, n);
|
|
364
365
|
}
|
|
365
|
-
function
|
|
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 =
|
|
371
|
+
const e = Ee(t), s = De(
|
|
371
372
|
t.modules
|
|
372
373
|
);
|
|
373
|
-
|
|
374
|
-
let
|
|
375
|
-
return !
|
|
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:
|
|
379
|
+
logger: n
|
|
379
380
|
};
|
|
380
381
|
}
|
|
381
|
-
|
|
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: [
|
|
386
|
-
destChain:
|
|
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: [
|
|
392
|
-
destChain:
|
|
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:
|
|
496
|
+
recipientSchema: v
|
|
397
497
|
};
|
|
398
|
-
function
|
|
399
|
-
return
|
|
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
|
|
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
|
|
417
|
-
constructor(s,
|
|
418
|
-
super(
|
|
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 =
|
|
424
|
-
throw
|
|
425
|
-
assetOut:
|
|
426
|
-
sourceChain:
|
|
427
|
-
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(
|
|
442
|
-
const
|
|
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 =
|
|
446
|
-
status:
|
|
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
|
-
},
|
|
549
|
+
}, r.READY);
|
|
450
550
|
}
|
|
451
551
|
async execute() {
|
|
452
|
-
return this.assertStatus(
|
|
453
|
-
const s = this._amount,
|
|
454
|
-
if (!s || !
|
|
455
|
-
throw
|
|
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:
|
|
557
|
+
status: r.READY,
|
|
458
558
|
steps: { burning: o.PENDING, releasing: o.IDLE }
|
|
459
559
|
});
|
|
460
|
-
const
|
|
461
|
-
amount:
|
|
462
|
-
btcAddress:
|
|
463
|
-
network:
|
|
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 =
|
|
466
|
-
status:
|
|
565
|
+
return this._txHash = l, this.emitProgress({
|
|
566
|
+
status: r.COMPLETED,
|
|
467
567
|
steps: { burning: o.COMPLETE, releasing: o.PENDING }
|
|
468
|
-
}), this.emitCompleted(), { txHash:
|
|
469
|
-
},
|
|
568
|
+
}), this.emitCompleted(), { txHash: l };
|
|
569
|
+
}, r.COMPLETED);
|
|
470
570
|
}
|
|
471
571
|
get prepareSchema() {
|
|
472
|
-
return
|
|
473
|
-
amount:
|
|
474
|
-
recipient:
|
|
572
|
+
return E({
|
|
573
|
+
amount: I,
|
|
574
|
+
recipient: L.recipientSchema
|
|
475
575
|
});
|
|
476
576
|
}
|
|
477
577
|
}
|
|
478
|
-
function
|
|
479
|
-
const s = new
|
|
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
|
|
483
|
-
getProvider: async (
|
|
484
|
-
const
|
|
485
|
-
if (
|
|
486
|
-
return
|
|
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
|
|
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 =
|
|
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
|
|
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
|
|
511
|
-
return new
|
|
621
|
+
function at(t) {
|
|
622
|
+
return new O(t);
|
|
512
623
|
}
|
|
513
|
-
const
|
|
624
|
+
const M = {
|
|
514
625
|
routes: [
|
|
515
626
|
{
|
|
516
|
-
sourceChains: [
|
|
517
|
-
destChain:
|
|
627
|
+
sourceChains: [d.STARKNET_MAINNET],
|
|
628
|
+
destChain: d.BITCOIN_MAINNET,
|
|
518
629
|
envs: [u.prod]
|
|
519
630
|
},
|
|
520
631
|
{
|
|
521
|
-
sourceChains: [
|
|
522
|
-
destChain:
|
|
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:
|
|
637
|
+
recipientSchema: v
|
|
527
638
|
};
|
|
528
|
-
function
|
|
529
|
-
return
|
|
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
|
|
534
|
-
constructor(s,
|
|
535
|
-
super(
|
|
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 =
|
|
541
|
-
throw
|
|
542
|
-
assetOut:
|
|
543
|
-
sourceChain:
|
|
544
|
-
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(
|
|
559
|
-
const
|
|
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 =
|
|
563
|
-
status:
|
|
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
|
-
},
|
|
677
|
+
}, r.READY);
|
|
567
678
|
}
|
|
568
679
|
async execute() {
|
|
569
|
-
return this.assertStatus(
|
|
570
|
-
const s = this._amount,
|
|
571
|
-
if (!s || !
|
|
572
|
-
throw
|
|
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:
|
|
685
|
+
status: r.READY,
|
|
575
686
|
steps: { burning: o.PENDING, releasing: o.IDLE }
|
|
576
687
|
});
|
|
577
|
-
const { txHash:
|
|
688
|
+
const { txHash: i } = await this.ctx.starknet.unstake({
|
|
578
689
|
amount: s,
|
|
579
|
-
btcAddress:
|
|
690
|
+
btcAddress: n,
|
|
580
691
|
env: this.env
|
|
581
692
|
});
|
|
582
|
-
return this._txHash =
|
|
583
|
-
status:
|
|
693
|
+
return this._txHash = i, this.emitProgress({
|
|
694
|
+
status: r.COMPLETED,
|
|
584
695
|
steps: { burning: o.COMPLETE, releasing: o.PENDING }
|
|
585
|
-
}), this.emitCompleted(), { txHash:
|
|
586
|
-
},
|
|
696
|
+
}), this.emitCompleted(), { txHash: i };
|
|
697
|
+
}, r.COMPLETED);
|
|
587
698
|
}
|
|
588
699
|
get prepareSchema() {
|
|
589
|
-
return
|
|
590
|
-
amount:
|
|
591
|
-
recipient:
|
|
700
|
+
return E({
|
|
701
|
+
amount: I,
|
|
702
|
+
recipient: M.recipientSchema
|
|
592
703
|
});
|
|
593
704
|
}
|
|
594
705
|
}
|
|
595
|
-
function
|
|
596
|
-
const s = new
|
|
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
|
|
600
|
-
getProvider: async (
|
|
601
|
-
const
|
|
602
|
-
if (
|
|
603
|
-
return
|
|
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
|
|
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 =
|
|
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
|
|
735
|
+
return new Me(this.ctx, e);
|
|
625
736
|
}
|
|
626
737
|
}
|
|
627
|
-
function
|
|
628
|
-
return new
|
|
738
|
+
function ot(t) {
|
|
739
|
+
return new R(t);
|
|
629
740
|
}
|
|
630
|
-
const
|
|
741
|
+
const B = {
|
|
631
742
|
routes: [
|
|
632
743
|
{
|
|
633
|
-
sourceChains: [
|
|
634
|
-
destChain:
|
|
744
|
+
sourceChains: [d.SUI_MAINNET],
|
|
745
|
+
destChain: d.BITCOIN_MAINNET,
|
|
635
746
|
envs: [u.prod]
|
|
636
747
|
},
|
|
637
748
|
{
|
|
638
|
-
sourceChains: [
|
|
639
|
-
destChain:
|
|
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:
|
|
754
|
+
recipientSchema: v
|
|
644
755
|
};
|
|
645
|
-
function
|
|
646
|
-
return
|
|
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
|
|
761
|
+
function He(t) {
|
|
651
762
|
switch (t) {
|
|
652
|
-
case
|
|
763
|
+
case d.SUI_MAINNET:
|
|
653
764
|
return "sui:mainnet";
|
|
654
|
-
case
|
|
765
|
+
case d.SUI_TESTNET:
|
|
655
766
|
return "sui:testnet";
|
|
656
767
|
default:
|
|
657
768
|
return "sui:testnet";
|
|
658
769
|
}
|
|
659
770
|
}
|
|
660
|
-
class
|
|
661
|
-
constructor(s,
|
|
662
|
-
super(
|
|
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 =
|
|
668
|
-
throw
|
|
669
|
-
assetOut:
|
|
670
|
-
sourceChain:
|
|
671
|
-
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(
|
|
686
|
-
const
|
|
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 =
|
|
690
|
-
status:
|
|
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
|
-
},
|
|
804
|
+
}, r.READY);
|
|
694
805
|
}
|
|
695
806
|
async execute() {
|
|
696
|
-
return this.assertStatus(
|
|
697
|
-
const s = this._amount,
|
|
698
|
-
if (!s || !
|
|
699
|
-
throw
|
|
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:
|
|
812
|
+
status: r.READY,
|
|
702
813
|
steps: { burning: o.PENDING, releasing: o.IDLE }
|
|
703
814
|
});
|
|
704
|
-
const
|
|
815
|
+
const i = He(this.params.sourceChain), { txHash: c } = await this.ctx.sui.unstake({
|
|
705
816
|
amount: s,
|
|
706
|
-
btcAddress:
|
|
707
|
-
chainId:
|
|
817
|
+
btcAddress: n,
|
|
818
|
+
chainId: i,
|
|
708
819
|
env: this.env
|
|
709
820
|
});
|
|
710
|
-
return this._txHash =
|
|
711
|
-
status:
|
|
821
|
+
return this._txHash = c, this.emitProgress({
|
|
822
|
+
status: r.COMPLETED,
|
|
712
823
|
steps: { burning: o.COMPLETE, releasing: o.PENDING }
|
|
713
|
-
}), this.emitCompleted(), { txHash:
|
|
714
|
-
},
|
|
824
|
+
}), this.emitCompleted(), { txHash: c };
|
|
825
|
+
}, r.COMPLETED);
|
|
715
826
|
}
|
|
716
827
|
get prepareSchema() {
|
|
717
|
-
return
|
|
718
|
-
amount:
|
|
719
|
-
recipient:
|
|
828
|
+
return E({
|
|
829
|
+
amount: I,
|
|
830
|
+
recipient: B.recipientSchema
|
|
720
831
|
});
|
|
721
832
|
}
|
|
722
833
|
}
|
|
723
|
-
function
|
|
724
|
-
const s = new
|
|
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
|
|
728
|
-
getProvider: async (
|
|
729
|
-
const
|
|
730
|
-
if (
|
|
731
|
-
return
|
|
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
|
|
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 =
|
|
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
|
|
863
|
+
return new Fe(this.ctx, e);
|
|
753
864
|
}
|
|
754
865
|
}
|
|
755
|
-
function
|
|
756
|
-
return new
|
|
866
|
+
function ct(t) {
|
|
867
|
+
return new H(t);
|
|
757
868
|
}
|
|
758
|
-
class
|
|
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
|
|
876
|
+
return K(e, this.env, s, this.catalog);
|
|
766
877
|
}
|
|
767
878
|
/** Get token decimals */
|
|
768
879
|
getDecimals(e) {
|
|
769
|
-
return
|
|
880
|
+
return V(e, this.catalog);
|
|
770
881
|
}
|
|
771
882
|
/** Get asset metadata (decimals, symbol, name) */
|
|
772
883
|
getMetadata(e) {
|
|
773
|
-
return
|
|
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
|
|
888
|
+
return $(e, this.env, s, this.catalog);
|
|
778
889
|
}
|
|
779
890
|
/** Get asset router contract address */
|
|
780
891
|
getAssetRouter(e, s) {
|
|
781
|
-
return
|
|
892
|
+
return q(e, this.env, s, this.catalog);
|
|
782
893
|
}
|
|
783
894
|
/** Get bridge adapter address */
|
|
784
895
|
getBridgeAdapter(e, s) {
|
|
785
|
-
return
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
916
|
+
return Q(e, s, this.catalog);
|
|
806
917
|
}
|
|
807
918
|
/** Get all supported assets */
|
|
808
919
|
getSupportedAssets() {
|
|
809
|
-
return
|
|
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
|
|
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
|
|
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
|
|
856
|
-
evm: new
|
|
857
|
-
solana: new
|
|
858
|
-
sui: new
|
|
859
|
-
starknet: new
|
|
860
|
-
}, this.referrals = new
|
|
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
|
|
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
|
|
872
|
-
|
|
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,
|
|
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
|
|
904
|
-
function
|
|
905
|
-
return
|
|
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
|
|
908
|
-
const e = "modules" in t && Array.isArray(t.modules) ? t : ye(t), s = await
|
|
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
|
|
1023
|
+
return new Ye(n);
|
|
913
1024
|
}
|
|
914
|
-
function
|
|
1025
|
+
function ht(t) {
|
|
915
1026
|
return typeof t == "object" && t !== null && "request" in t && typeof t.request == "function";
|
|
916
1027
|
}
|
|
917
|
-
function
|
|
1028
|
+
function dt(t) {
|
|
918
1029
|
return typeof t == "object" && t !== null && "getAddresses" in t && typeof t.getAddresses == "function";
|
|
919
1030
|
}
|
|
920
|
-
function
|
|
1031
|
+
function gt(t) {
|
|
921
1032
|
return typeof t == "object" && t !== null && "publicKey" in t && "signAndSendTransaction" in t;
|
|
922
1033
|
}
|
|
923
|
-
function
|
|
1034
|
+
function lt(t) {
|
|
924
1035
|
return typeof t == "object" && t !== null && "getAddress" in t && "signAndExecuteTransactionBlock" in t;
|
|
925
1036
|
}
|
|
926
|
-
function
|
|
1037
|
+
function pt(t) {
|
|
927
1038
|
return typeof t == "object" && t !== null && "address" in t && "execute" in t;
|
|
928
1039
|
}
|
|
929
|
-
const
|
|
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
|
-
},
|
|
1051
|
+
}, vt = {
|
|
941
1052
|
Progress: "progress",
|
|
942
1053
|
StatusChange: "status-change",
|
|
943
1054
|
Completed: "completed",
|
|
944
1055
|
Failed: "failed",
|
|
945
1056
|
Error: "error"
|
|
946
|
-
},
|
|
1057
|
+
}, ft = {
|
|
947
1058
|
Progress: "progress",
|
|
948
1059
|
StatusChange: "status-change",
|
|
949
1060
|
Completed: "completed",
|
|
950
1061
|
Failed: "failed",
|
|
951
1062
|
Error: "error"
|
|
952
|
-
},
|
|
1063
|
+
}, Ct = {
|
|
953
1064
|
Progress: "progress",
|
|
954
1065
|
StatusChange: "status-change",
|
|
955
1066
|
Completed: "completed",
|
|
956
1067
|
Failed: "failed",
|
|
957
1068
|
Error: "error"
|
|
958
|
-
},
|
|
1069
|
+
}, Et = {
|
|
959
1070
|
Progress: "progress",
|
|
960
1071
|
StatusChange: "status-change",
|
|
961
1072
|
Completed: "completed",
|
|
962
1073
|
Failed: "failed",
|
|
963
1074
|
Error: "error"
|
|
964
|
-
},
|
|
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
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
ye as
|
|
984
|
-
fe as
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
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-
|
|
1108
|
+
//# sourceMappingURL=events-rgJZNpHd.js.map
|