@lombard.finance/sdk 3.5.9 → 3.6.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/dist/index.cjs +1 -1
- package/dist/index.js +95 -89
- package/dist/index2.cjs +52 -52
- package/dist/index2.js +8977 -5591
- package/package.json +11 -6
- package/src/api-functions/generateDepositBtcAddress/generateDepositBtcAddress.stories.tsx +1 -1
- package/src/api-functions/generateDepositBtcAddress/generateDepositBtcAddress.ts +17 -5
- package/src/api-functions/getDepositBtcAddress/getDepositBtcAddress.stories.tsx +1 -1
- package/src/api-functions/getDepositBtcAddress/getDepositBtcAddress.ts +12 -13
- package/src/bridge/index.ts +8 -2
- package/src/bridge/lib/config.ts +28 -0
- package/src/bridge/lib/oft-bridge.ts +1 -0
- package/src/clients/rpc-url-config.ts +3 -1
- package/src/common/api-config.ts +4 -4
- package/src/common/chains.ts +22 -1
- package/src/contract-functions/claimLBTC/claimLBTC.stories.tsx +1 -1
- package/src/contract-functions/claimLBTC/claimLBTC.ts +3 -2
- package/src/contract-functions/getLBTCMintingFee/getLBTCMintingFee.tsx +84 -17
- package/src/contract-functions/unstakeLBTC/unstakeLBTC.stories.tsx +1 -1
- package/src/contract-functions/unstakeLBTC/unstakeLBTC.ts +6 -4
- package/src/index.ts +3 -0
- package/src/stories/components/decorators/wagmi-decorator.tsx +3 -1
- package/src/tokens/abi/ASSET_ROUTER_ABI.ts +1102 -0
- package/src/tokens/abi/NATIVE_LBTC_ABI.ts +1147 -0
- package/src/tokens/abi/STLBTC_ABI.ts +1062 -0
- package/src/tokens/lbtc-addresses.ts +2 -48
- package/src/tokens/token-addresses.ts +27 -19
- package/src/tokens/tokens.ts +45 -15
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index2.cjs");exports.BTC_DECIMALS=e.BTC_DECIMALS;exports.BasculeDepositStatus=e.BasculeDepositStatus;exports.BlockchainIdentifier=e.BlockchainIdentifier;exports.CHAIN_ID_TO_VIEM_CHAIN_MAP=e.CHAIN_ID_TO_VIEM_CHAIN_MAP;exports.ChainId=e.ChainId;exports.ENotarizationStatus=e.ENotarizationStatus;exports.ESessionState=e.ESessionState;exports.Env=e.t;exports.PayoutTxStatus=e.PayoutTxStatus;exports.RATIO_TOKEN_MAP=e.RATIO_TOKEN_MAP;exports.RewardBlockchainType=e.RewardBlockchainType;exports.RewardToken=e.RewardToken;exports.RewardWithdrawalStatus=e.RewardWithdrawalStatus;exports.SANCTIONED_ADDRESS=e.SANCTIONED_ADDRESS;exports.SATOSHI_SCALE=e.SATOSHI_SCALE;exports.SOLANA_DEVNET_CHAIN=e.SOLANA_DEVNET_CHAIN;exports.SOLANA_MAINNET_CHAIN=e.SOLANA_MAINNET_CHAIN;exports.SOLANA_TESTNET_CHAIN=e.SOLANA_TESTNET_CHAIN;exports.SUI_DEVNET_CHAIN=e.SUI_DEVNET_CHAIN;exports.SUI_LOCALNET_CHAIN=e.SUI_LOCALNET_CHAIN;exports.SUI_MAINNET_CHAIN=e.SUI_MAINNET_CHAIN;exports.SUI_TESTNET_CHAIN=e.SUI_TESTNET_CHAIN;exports.TOKEN_ADDRESSES=e.TOKEN_ADDRESSES;exports.Token=e.Token;exports.Vault=e.Vault;exports.addChain=e.addChain;exports.approveLBTC=e.approveLBTC;exports.bridge=e.bridge;exports.bridgeCCIP=e.bridgeCCIP;exports.bridgeOFT=e.bridgeOFT;exports.cancelWithdraw=e.cancelWithdraw;exports.claimLBTC=e.claimLBTC;exports.claimReward=e.claimReward;exports.deposit=e.deposit;exports.fromSatoshi=e.fromSatoshi;exports.generateDepositBtcAddress=e.generateDepositBtcAddress;exports.getApiConfig=e.getApiConfig;exports.getBasculeDepositStatus=e.getBasculeDepositStatus;exports.getBaseNetworkByEnv=e.getBaseNetworkByEnv;exports.getBridgeInfo=e.getBridgeInfo;exports.getBscNetworkByEnv=e.getBscNetworkByEnv;exports.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index2.cjs");exports.BTC_DECIMALS=e.BTC_DECIMALS;exports.BasculeDepositStatus=e.BasculeDepositStatus;exports.BlockchainIdentifier=e.BlockchainIdentifier;exports.CHAIN_ID_TO_VIEM_CHAIN_MAP=e.CHAIN_ID_TO_VIEM_CHAIN_MAP;exports.ChainId=e.ChainId;exports.ENotarizationStatus=e.ENotarizationStatus;exports.ESessionState=e.ESessionState;exports.Env=e.t;exports.OFT_GAS_LIMIT=e.OFT_GAS_LIMIT;exports.OFT_HI_GAS_LIMIT=e.OFT_HI_GAS_LIMIT;exports.OFT_HI_GAS_LIMIT_CHAINS=e.OFT_HI_GAS_LIMIT_CHAINS;exports.PayoutTxStatus=e.PayoutTxStatus;exports.RATIO_TOKEN_MAP=e.RATIO_TOKEN_MAP;exports.RewardBlockchainType=e.RewardBlockchainType;exports.RewardToken=e.RewardToken;exports.RewardWithdrawalStatus=e.RewardWithdrawalStatus;exports.SANCTIONED_ADDRESS=e.SANCTIONED_ADDRESS;exports.SATOSHI_SCALE=e.SATOSHI_SCALE;exports.SOLANA_DEVNET_CHAIN=e.SOLANA_DEVNET_CHAIN;exports.SOLANA_MAINNET_CHAIN=e.SOLANA_MAINNET_CHAIN;exports.SOLANA_TESTNET_CHAIN=e.SOLANA_TESTNET_CHAIN;exports.STLBTC_CHAINS=e.STLBTC_CHAINS;exports.STLBTC_ENVS=e.STLBTC_ENVS;exports.SUI_DEVNET_CHAIN=e.SUI_DEVNET_CHAIN;exports.SUI_LOCALNET_CHAIN=e.SUI_LOCALNET_CHAIN;exports.SUI_MAINNET_CHAIN=e.SUI_MAINNET_CHAIN;exports.SUI_TESTNET_CHAIN=e.SUI_TESTNET_CHAIN;exports.TOKEN_ADDRESSES=e.TOKEN_ADDRESSES;exports.Token=e.Token;exports.Vault=e.Vault;exports.addChain=e.addChain;exports.approveLBTC=e.approveLBTC;exports.bridge=e.bridge;exports.bridgeCCIP=e.bridgeCCIP;exports.bridgeOFT=e.bridgeOFT;exports.cancelWithdraw=e.cancelWithdraw;exports.claimLBTC=e.claimLBTC;exports.claimReward=e.claimReward;exports.deposit=e.deposit;exports.fromSatoshi=e.fromSatoshi;exports.generateDepositBtcAddress=e.generateDepositBtcAddress;exports.getApiConfig=e.getApiConfig;exports.getBasculeDepositStatus=e.getBasculeDepositStatus;exports.getBaseNetworkByEnv=e.getBaseNetworkByEnv;exports.getBridgeInfo=e.getBridgeInfo;exports.getBscNetworkByEnv=e.getBscNetworkByEnv;exports.getChainIdByName=e.getChainIdByName;exports.getChainNameById=e.getChainNameById;exports.getDepositBtcAddress=e.getDepositBtcAddress;exports.getDepositBtcAddresses=e.getDepositBtcAddresses;exports.getDepositsByAddress=e.getDepositsByAddress;exports.getEthNetworkByEnv=e.getEthNetworkByEnv;exports.getExchangeRatio=e.getExchangeRatio;exports.getLBTCBurningFee=e.getLBTCBurningFee;exports.getLBTCExchangeRate=e.getLBTCExchangeRate;exports.getLBTCMintingFee=e.getLBTCMintingFee;exports.getLBTCStats=e.getLBTCStats;exports.getLBTCTotalSupply=e.getLBTCTotalSupply;exports.getLbtcContractAddresses=e.getLbtcContractAddresses;exports.getMintingFee=e.getMintingFee;exports.getNetworkFeeSignature=e.getNetworkFeeSignature;exports.getPermitNonce=e.getPermitNonce;exports.getPointsByAddress=e.getPointsByAddress;exports.getRedeemFee=e.getRedeemFee;exports.getRewardBalances=e.getRewardBalances;exports.getRewardSigningData=e.getRewardSigningData;exports.getRewardWithdrawalFee=e.getRewardWithdrawalFee;exports.getRewardWithdrawals=e.getRewardWithdrawals;exports.getRewardsInfo=e.getRewardsInfo;exports.getShareValue=e.getShareValue;exports.getSharesByAddress=e.getSharesByAddress;exports.getSolanaNetworkByEnv=e.getSolanaNetworkByEnv;exports.getSonicNetworkByEnv=e.getSonicNetworkByEnv;exports.getStakeAndBakeFee=e.getStakeAndBakeFee;exports.getSuiNetworkByEnv=e.getSuiNetworkByEnv;exports.getUnstakesByAddress=e.getUnstakesByAddress;exports.getUserStakeAndBakeSignature=e.getUserStakeAndBakeSignature;exports.getVaultApy=e.getVaultApy;exports.getVaultDeposits=e.getVaultDeposits;exports.getVaultPoints=e.getVaultPoints;exports.getVaultTVL=e.getVaultTVL;exports.getVaultWithdrawals=e.getVaultWithdrawals;exports.isKatanaChain=e.isKatanaChain;exports.isRewardTokenSupported=e.isRewardTokenSupported;exports.isValidChain=e.isValidChain;exports.katana=e.katana;exports.katanaTatara=e.katanaTatara;exports.mintToken=e.mintToken;exports.queueWithdraw=e.queueWithdraw;exports.redeemToken=e.redeemToken;exports.setReferral=e.setReferral;exports.signLbtcDestinationAddr=e.signLbtcDestinationAddr;exports.signNetworkFee=e.signNetworkFee;exports.signStakeAndBake=e.signStakeAndBake;exports.storeNetworkFeeSignature=e.storeNetworkFeeSignature;exports.storeStakeAndBakeSignature=e.storeStakeAndBakeSignature;exports.tac=e.tac;exports.toSatoshi=e.toSatoshi;exports.unstakeLBTC=e.unstakeLBTC;
|
package/dist/index.js
CHANGED
|
@@ -1,96 +1,102 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aR as e, T as t, at as n, aH as i, aG as r, E as g, D as S, t as d, w as o, x as A, O as T, P as N, aN as B, al as I, ar as C, ap as _, y as E, aS as k, S as u, h as w, j as l, aP as L, aQ as c, k as h, aF as p, m as D, n as R, aO as y, aM as O, aa as F, aK as H, a0 as V, r as M, u as m, v, ae as P, a1 as f, aj as U, ab as W, aT as b, z as x, as as G, U as K, ax as q, q as z, aw as j, aB as J, au as Q, A as X, C as Y, F as Z, av as $, I as aa, W as sa, G as ea, V as ta, o as na, Z as ia, aL as ra, X as ga, J as Sa, _ as da, K as oa, Y as Aa, ak as Ta, am as Na, an as Ba, ao as Ia, p as Ca, a8 as _a, a9 as Ea, aA as ka, az as ua, $ as wa, ay as la, L as La, M as ca, ai as ha, ac as pa, ag as Da, ah as Ra, af as ya, aI as Oa, aq as Fa, aJ as Ha, aC as Va, aD as Ma, a2 as ma, ad as va, a7 as Pa, N as fa, a3 as Ua, a4 as Wa, a5 as ba, Q as xa, R as Ga, aE as Ka, aU as qa, a6 as za } from "./index2.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
e as BTC_DECIMALS,
|
|
4
4
|
t as BasculeDepositStatus,
|
|
5
5
|
n as BlockchainIdentifier,
|
|
6
6
|
i as CHAIN_ID_TO_VIEM_CHAIN_MAP,
|
|
7
7
|
r as ChainId,
|
|
8
8
|
g as ENotarizationStatus,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
A as
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
l as
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
O as
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
U as
|
|
41
|
-
W as
|
|
42
|
-
b as
|
|
43
|
-
x as
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
J as
|
|
50
|
-
Q as
|
|
51
|
-
X as
|
|
52
|
-
Y as
|
|
53
|
-
Z as
|
|
54
|
-
$ as
|
|
55
|
-
aa as
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
ta as
|
|
59
|
-
na as
|
|
60
|
-
ia as
|
|
61
|
-
ra as
|
|
62
|
-
ga as
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
Aa as
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
la as
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
Oa as
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
Ua as
|
|
95
|
-
Wa as
|
|
9
|
+
S as ESessionState,
|
|
10
|
+
d as Env,
|
|
11
|
+
o as OFT_GAS_LIMIT,
|
|
12
|
+
A as OFT_HI_GAS_LIMIT,
|
|
13
|
+
T as OFT_HI_GAS_LIMIT_CHAINS,
|
|
14
|
+
N as PayoutTxStatus,
|
|
15
|
+
B as RATIO_TOKEN_MAP,
|
|
16
|
+
I as RewardBlockchainType,
|
|
17
|
+
C as RewardToken,
|
|
18
|
+
_ as RewardWithdrawalStatus,
|
|
19
|
+
E as SANCTIONED_ADDRESS,
|
|
20
|
+
k as SATOSHI_SCALE,
|
|
21
|
+
u as SOLANA_DEVNET_CHAIN,
|
|
22
|
+
w as SOLANA_MAINNET_CHAIN,
|
|
23
|
+
l as SOLANA_TESTNET_CHAIN,
|
|
24
|
+
L as STLBTC_CHAINS,
|
|
25
|
+
c as STLBTC_ENVS,
|
|
26
|
+
h as SUI_DEVNET_CHAIN,
|
|
27
|
+
p as SUI_LOCALNET_CHAIN,
|
|
28
|
+
D as SUI_MAINNET_CHAIN,
|
|
29
|
+
R as SUI_TESTNET_CHAIN,
|
|
30
|
+
y as TOKEN_ADDRESSES,
|
|
31
|
+
O as Token,
|
|
32
|
+
F as Vault,
|
|
33
|
+
H as addChain,
|
|
34
|
+
V as approveLBTC,
|
|
35
|
+
M as bridge,
|
|
36
|
+
m as bridgeCCIP,
|
|
37
|
+
v as bridgeOFT,
|
|
38
|
+
P as cancelWithdraw,
|
|
39
|
+
f as claimLBTC,
|
|
40
|
+
U as claimReward,
|
|
41
|
+
W as deposit,
|
|
42
|
+
b as fromSatoshi,
|
|
43
|
+
x as generateDepositBtcAddress,
|
|
44
|
+
G as getApiConfig,
|
|
45
|
+
K as getBasculeDepositStatus,
|
|
46
|
+
q as getBaseNetworkByEnv,
|
|
47
|
+
z as getBridgeInfo,
|
|
48
|
+
j as getBscNetworkByEnv,
|
|
49
|
+
J as getChainIdByName,
|
|
50
|
+
Q as getChainNameById,
|
|
51
|
+
X as getDepositBtcAddress,
|
|
52
|
+
Y as getDepositBtcAddresses,
|
|
53
|
+
Z as getDepositsByAddress,
|
|
54
|
+
$ as getEthNetworkByEnv,
|
|
55
|
+
aa as getExchangeRatio,
|
|
56
|
+
sa as getLBTCBurningFee,
|
|
57
|
+
ea as getLBTCExchangeRate,
|
|
58
|
+
ta as getLBTCMintingFee,
|
|
59
|
+
na as getLBTCStats,
|
|
60
|
+
ia as getLBTCTotalSupply,
|
|
61
|
+
ra as getLbtcContractAddresses,
|
|
62
|
+
ga as getMintingFee,
|
|
63
|
+
Sa as getNetworkFeeSignature,
|
|
64
|
+
da as getPermitNonce,
|
|
65
|
+
oa as getPointsByAddress,
|
|
66
|
+
Aa as getRedeemFee,
|
|
67
|
+
Ta as getRewardBalances,
|
|
68
|
+
Na as getRewardSigningData,
|
|
69
|
+
Ba as getRewardWithdrawalFee,
|
|
70
|
+
Ia as getRewardWithdrawals,
|
|
71
|
+
Ca as getRewardsInfo,
|
|
72
|
+
_a as getShareValue,
|
|
73
|
+
Ea as getSharesByAddress,
|
|
74
|
+
ka as getSolanaNetworkByEnv,
|
|
75
|
+
ua as getSonicNetworkByEnv,
|
|
76
|
+
wa as getStakeAndBakeFee,
|
|
77
|
+
la as getSuiNetworkByEnv,
|
|
78
|
+
La as getUnstakesByAddress,
|
|
79
|
+
ca as getUserStakeAndBakeSignature,
|
|
80
|
+
ha as getVaultApy,
|
|
81
|
+
pa as getVaultDeposits,
|
|
82
|
+
Da as getVaultPoints,
|
|
83
|
+
Ra as getVaultTVL,
|
|
84
|
+
ya as getVaultWithdrawals,
|
|
85
|
+
Oa as isKatanaChain,
|
|
86
|
+
Fa as isRewardTokenSupported,
|
|
87
|
+
Ha as isValidChain,
|
|
88
|
+
Va as katana,
|
|
89
|
+
Ma as katanaTatara,
|
|
90
|
+
ma as mintToken,
|
|
91
|
+
va as queueWithdraw,
|
|
92
|
+
Pa as redeemToken,
|
|
93
|
+
fa as setReferral,
|
|
94
|
+
Ua as signLbtcDestinationAddr,
|
|
95
|
+
Wa as signNetworkFee,
|
|
96
|
+
ba as signStakeAndBake,
|
|
97
|
+
xa as storeNetworkFeeSignature,
|
|
98
|
+
Ga as storeStakeAndBakeSignature,
|
|
99
|
+
Ka as tac,
|
|
100
|
+
qa as toSatoshi,
|
|
101
|
+
za as unstakeLBTC
|
|
96
102
|
};
|