@lombard.finance/sdk 3.1.0 → 3.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/README.md +60 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +73 -62
- package/dist/index2.cjs +62 -52
- package/dist/index2.cjs.map +1 -1
- package/dist/index2.js +8361 -12041
- package/dist/index2.js.map +1 -1
- package/package.json +35 -33
- package/src/api-functions/generateDepositBtcAddress/generateDepositBtcAddress.ts +4 -4
- package/src/api-functions/getDepositBtcAddress/getDepositBtcAddress.stories.tsx +8 -0
- package/src/api-functions/getDepositBtcAddress/getDepositBtcAddress.ts +3 -3
- package/src/api-functions/getDepositsByAddress/getDepositsByAddress.ts +8 -7
- package/src/api-functions/getUnstakesByAddress/getUnstakesByAddress.ts +5 -5
- package/src/api-functions/getUserStakeAndBakeSignature/getUserStakeAndBakeSignature.stories.tsx +8 -0
- package/src/bridge/abi/CCIP_BRIDGE_ADAPTER_ABI.json +704 -0
- package/src/bridge/abi/OFT_BRIDGE_ADAPTER_ABI.json +912 -0
- package/src/bridge/index.ts +11 -0
- package/src/bridge/lib/bridge.stories.tsx +89 -0
- package/src/bridge/lib/bridge.ts +101 -0
- package/src/bridge/lib/ccip-bridge.stories.tsx +90 -0
- package/src/bridge/lib/ccip-bridge.ts +163 -0
- package/src/bridge/lib/config.ts +338 -0
- package/src/bridge/lib/oft-bridge.stories.tsx +89 -0
- package/src/bridge/lib/oft-bridge.ts +211 -0
- package/src/common/api-config.ts +8 -2
- package/src/common/blockchain-identifier.ts +32 -5
- package/src/common/chains.ts +13 -1
- package/src/common/contract-info.ts +8 -0
- package/src/contract-functions/approveLBTC/approveLBTC.stories.tsx +1 -1
- package/src/contract-functions/approveLBTC/approveLBTC.ts +3 -2
- package/src/contract-functions/claimLBTC/claimLBTC.ts +3 -2
- package/src/contract-functions/getBasculeDepositStatus/getBasculeDepositStatus.ts +10 -4
- package/src/contract-functions/getLBTCMintingFee/getLBTCMintingFee.tsx +14 -11
- package/src/contract-functions/getLBTCTotalSupply/getLBTCTotalSupply.ts +13 -9
- package/src/contract-functions/getPermitNonce/getPermitNonce.ts +16 -10
- package/src/contract-functions/getShareValue/getShareValue.stories.tsx +1 -1
- package/src/contract-functions/getShareValue/getShareValue.ts +1 -1
- package/src/contract-functions/getSharesByAddress/getSharesByAddress.stories.tsx +1 -1
- package/src/contract-functions/getSharesByAddress/getSharesByAddress.ts +1 -1
- package/src/contract-functions/getStakeAndBakeFee/getStakeAndBakeFee.stories.tsx +14 -1
- package/src/contract-functions/getStakeAndBakeFee/getStakeAndBakeFee.tsx +5 -1
- package/src/contract-functions/signNetworkFee/signNetworkFee.ts +3 -2
- package/src/contract-functions/signStakeAndBake/signStakeAndBake.stories.tsx +2 -1
- package/src/contract-functions/signStakeAndBake/signStakeAndBake.ts +8 -3
- package/src/contract-functions/unstakeLBTC/unstakeLBTC.ts +3 -2
- package/src/index.ts +26 -28
- package/src/metrics/get-lbtc-stats.stories.tsx +51 -0
- package/src/metrics/get-lbtc-stats.ts +38 -0
- package/src/rewards/lib/claim-reward.stories.tsx +1 -0
- package/src/rewards/lib/claim-reward.ts +5 -0
- package/src/rewards/lib/get-reward-signing-data.stories.tsx +1 -0
- package/src/rewards/lib/get-reward-signing-data.ts +4 -0
- package/src/tokens/abi/LBTC_ABI.json +1760 -1760
- package/src/tokens/abi/LBTC_ABI.ts +1761 -0
- package/src/tokens/lbtc-addresses.ts +1 -0
- package/src/tokens/token-addresses.ts +32 -0
- package/src/tokens/tokens.ts +59 -50
- package/src/utils/numbers.ts +3 -0
- package/src/vaults/index.ts +35 -176
- package/src/vaults/lib/config.ts +196 -0
- package/src/vaults/lib/metrics/get-vault-apy.stories.tsx +57 -0
- package/src/vaults/lib/metrics/get-vault-apy.ts +132 -0
- package/src/vaults/lib/{get-vault-points.stories.tsx → metrics/get-vault-points.stories.tsx} +8 -8
- package/src/vaults/lib/{get-vault-points.ts → metrics/get-vault-points.ts} +1 -1
- package/src/vaults/lib/metrics/get-vault-tvl.stories.tsx +57 -0
- package/src/vaults/lib/metrics/get-vault-tvl.ts +119 -0
- package/src/vaults/lib/{cancel-withdraw.stories.tsx → ops/cancel-withdraw.stories.tsx} +9 -9
- package/src/vaults/lib/{deposit.stories.tsx → ops/deposit.stories.tsx} +9 -9
- package/src/vaults/lib/{deposit.ts → ops/deposit.ts} +10 -10
- package/src/vaults/lib/{get-vault-deposits.stories.tsx → ops/get-vault-deposits.stories.tsx} +9 -9
- package/src/vaults/lib/{get-vault-deposits.ts → ops/get-vault-deposits.ts} +5 -5
- package/src/vaults/lib/{get-vault-withdrawals.stories.tsx → ops/get-vault-withdrawals.stories.tsx} +9 -9
- package/src/vaults/lib/{get-vault-withdrawals.ts → ops/get-vault-withdrawals.ts} +5 -5
- package/src/vaults/lib/{withdraw.stories.tsx → ops/withdraw.stories.tsx} +9 -9
- package/src/vaults/lib/{withdraw.ts → ops/withdraw.ts} +12 -12
- package/src/tokens/lbtc-contract.ts +0 -89
package/README.md
CHANGED
|
@@ -82,6 +82,15 @@ Read more about Lombard's mission: https://www.lombard.finance
|
|
|
82
82
|
|
|
83
83
|
9.4. [Getting the withdrawal history (checking withdrawal status)](#94-getting-the-withdrawal-history-checking-withdrawal-status)
|
|
84
84
|
|
|
85
|
+
10. [Metrics](#10-metrics)
|
|
86
|
+
|
|
87
|
+
10.1. [Getting the vault's TVL](#101-getting-the-vaults-tvl)
|
|
88
|
+
|
|
89
|
+
10.2. [Getting the vault's performance data](#102-getting-the-vaults-performance-data)
|
|
90
|
+
|
|
91
|
+
10.3. [Getting the LBTC statistics](#103-getting-the-lbtc-statistics)
|
|
92
|
+
|
|
93
|
+
|
|
85
94
|
|
|
86
95
|
## Installation
|
|
87
96
|
|
|
@@ -93,11 +102,12 @@ The SDK depends on the following packages:
|
|
|
93
102
|
* bignumber.js@9
|
|
94
103
|
* bitcoinjs-lib@6.1.5
|
|
95
104
|
* @bitcoin-js/tiny-secp256k1-asmjs@2.2.3
|
|
105
|
+
* @layerzerolabs/lz-v2-utilities@3.0.17
|
|
96
106
|
|
|
97
107
|
You may install them by running the following command:
|
|
98
108
|
|
|
99
109
|
```bash
|
|
100
|
-
npm i --save viem@^2.23.15 axios@^1 bignumber.js@^9 @bitcoin-js/tiny-secp256k1-asmjs@2.2.3 bitcoinjs-lib@6.1.5
|
|
110
|
+
npm i --save viem@^2.23.15 axios@^1 bignumber.js@^9 @bitcoin-js/tiny-secp256k1-asmjs@2.2.3 bitcoinjs-lib@6.1.5 @layerzerolabs/lz-v2-utilities@3.0.17
|
|
101
111
|
```
|
|
102
112
|
|
|
103
113
|
### 2. SDK installation
|
|
@@ -550,6 +560,7 @@ const withdrawal = await claimReward({
|
|
|
550
560
|
rewardToken, // The reward token, e.g. RewardToken.BABY
|
|
551
561
|
amount, // The amount to be claimed (withdrawn)
|
|
552
562
|
to, // The destination address, e.g. BABYLON chain address.
|
|
563
|
+
signingDataVariant: 'json', // Optional signing data variant, available values: 'json', 'plain-text'
|
|
553
564
|
chainId, // The chain id
|
|
554
565
|
provider, // The EIP-1193 provider.
|
|
555
566
|
});
|
|
@@ -581,3 +592,51 @@ The function returns an array of:
|
|
|
581
592
|
* `status` - the withdrawal status,
|
|
582
593
|
* `estimatedTimeSent` - the estimated time when the funds are sent,
|
|
583
594
|
* `timestamp` - the timestamp.
|
|
595
|
+
|
|
596
|
+
### 10. Metrics
|
|
597
|
+
|
|
598
|
+
#### 10.1. Getting the vault's TVL
|
|
599
|
+
|
|
600
|
+
The vault's TVL can be obtained by calling the `getVaultTVL` function.
|
|
601
|
+
|
|
602
|
+
```javascript
|
|
603
|
+
const data = await getVaultTVL({ vaultKey: Vault.Veda });
|
|
604
|
+
```
|
|
605
|
+
|
|
606
|
+
The above returns:
|
|
607
|
+
* `btcBalance` - the amount of BTC locked into the vault,
|
|
608
|
+
* `btcPrice` - the current price of BTC,
|
|
609
|
+
* `tvl` - the amount of USD locked into the vault.
|
|
610
|
+
|
|
611
|
+
#### 10.2. Getting the vault's performance data.
|
|
612
|
+
|
|
613
|
+
The performance of the vault can be checked via the `getVaultApy` function.
|
|
614
|
+
As in the example below:
|
|
615
|
+
|
|
616
|
+
```javascript
|
|
617
|
+
const APYs = await getVaultApy({
|
|
618
|
+
aggregationPeriod: 7, // The aggregation period in days, only 7, 14, and 30 are allowed.
|
|
619
|
+
chainId: ChainId.ethereum, // The vault's chain - can be omitted, defaults to `Ethereum`.
|
|
620
|
+
vaultKey: Vault.Veda // The vault identifier - can be omitted, default to `Vault.Veda`
|
|
621
|
+
});
|
|
622
|
+
```
|
|
623
|
+
|
|
624
|
+
The above returns an array of APY entries sorted in descending order (newest first).
|
|
625
|
+
Each entry contains:
|
|
626
|
+
|
|
627
|
+
* `apy` - the APY value,
|
|
628
|
+
* `allocations` - the record of general allocations in protocols used by the vault,
|
|
629
|
+
* `breakdown` - the detailed record of allocations and APY values broken down by chain and protocol,
|
|
630
|
+
* `timestamp` - the timestamp of the entry.
|
|
631
|
+
|
|
632
|
+
#### 10.3. Getting the LBTC statistics.
|
|
633
|
+
|
|
634
|
+
The simple set of LBTC statistics is accessible via `getLBTCStats` function.
|
|
635
|
+
|
|
636
|
+
The stats contain:
|
|
637
|
+
|
|
638
|
+
* `historicalHolders` - the number of all-time LBTC holders,
|
|
639
|
+
* `holders` - the number of current LBTC holders,
|
|
640
|
+
* `price` - the current BTC price,
|
|
641
|
+
* `supply` - the number of LBTC minted,
|
|
642
|
+
* `tvl` - the Lombard's TVL in USD.
|
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
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.n;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.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.Vault=e.Vault;exports.approveLBTC=e.approveLBTC;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.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.getLBTCExchangeRate=e.getLBTCExchangeRate;exports.getLBTCMintingFee=e.getLBTCMintingFee;exports.getLBTCTotalSupply=e.getLBTCTotalSupply;exports.getLbtcContractAddresses=e.getLbtcContractAddresses;exports.getNetworkFeeSignature=e.getNetworkFeeSignature;exports.getPermitNonce=e.getPermitNonce;exports.getPointsByAddress=e.getPointsByAddress;exports.getRewardBalances=e.getRewardBalances;exports.getRewardSigningData=e.getRewardSigningData;exports.getRewardWithdrawalFee=e.getRewardWithdrawalFee;exports.getRewardWithdrawals=e.getRewardWithdrawals;exports.getShareValue=e.getShareValue;exports.getSharesByAddress=e.getSharesByAddress;exports.getSonicNetworkByEnv=e.getSonicNetworkByEnv;exports.getStakeAndBakeFee=e.getStakeAndBakeFee;exports.getSuiNetworkByEnv=e.getSuiNetworkByEnv;exports.getUnstakesByAddress=e.getUnstakesByAddress;exports.getUserStakeAndBakeSignature=e.getUserStakeAndBakeSignature;exports.getVaultDeposits=e.getVaultDeposits;exports.getVaultPoints=e.getVaultPoints;exports.getVaultWithdrawals=e.getVaultWithdrawals;exports.isRewardTokenSupported=e.isRewardTokenSupported;exports.isValidChain=e.isValidChain;exports.queueWithdraw=e.queueWithdraw;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.toSatoshi=e.toSatoshi;exports.unstakeLBTC=e.unstakeLBTC;
|
|
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.n;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.Vault=e.Vault;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.getLBTCExchangeRate=e.getLBTCExchangeRate;exports.getLBTCMintingFee=e.getLBTCMintingFee;exports.getLBTCStats=e.getLBTCStats;exports.getLBTCTotalSupply=e.getLBTCTotalSupply;exports.getLbtcContractAddresses=e.getLbtcContractAddresses;exports.getNetworkFeeSignature=e.getNetworkFeeSignature;exports.getPermitNonce=e.getPermitNonce;exports.getPointsByAddress=e.getPointsByAddress;exports.getRewardBalances=e.getRewardBalances;exports.getRewardSigningData=e.getRewardSigningData;exports.getRewardWithdrawalFee=e.getRewardWithdrawalFee;exports.getRewardWithdrawals=e.getRewardWithdrawals;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.isRewardTokenSupported=e.isRewardTokenSupported;exports.isValidChain=e.isValidChain;exports.queueWithdraw=e.queueWithdraw;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.toSatoshi=e.toSatoshi;exports.unstakeLBTC=e.unstakeLBTC;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.js
CHANGED
|
@@ -1,71 +1,82 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { au as s, K as t, ag as r, ar as i, aq as g, E as n, x as d, n as o, a8 as S, ae as A, ac as N, t as B, av as C, S as T, f as E, h as I, j as l, ap as w, k, l as u, Z as _, Q as c, p as h, q as p, r as L, a1 as D, R as y, a6 as R, _ as V, aw as v, u as H, af as m, L as O, ak as f, o as F, aj as M, ao as U, ah as W, v as b, w as P, y as x, ai as q, z as j, M as z, m as G, N as J, at as K, A as Q, O as X, C as Y, a7 as Z, a9 as $, aa, ab as ea, X as sa, Y as ta, an as ra, am as ia, P as ga, al as na, D as da, F as oa, a5 as Sa, $ as Aa, a3 as Na, a4 as Ba, a2 as Ca, ad as Ta, as as Ea, a0 as Ia, G as la, T as wa, U as ka, V as ua, I as _a, J as ca, ax as ha, W as pa } from "./index2.js";
|
|
2
2
|
export {
|
|
3
3
|
s as BTC_DECIMALS,
|
|
4
4
|
t as BasculeDepositStatus,
|
|
5
5
|
r as BlockchainIdentifier,
|
|
6
6
|
i as CHAIN_ID_TO_VIEM_CHAIN_MAP,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
g as ChainId,
|
|
8
|
+
n as ENotarizationStatus,
|
|
9
|
+
d as ESessionState,
|
|
10
10
|
o as Env,
|
|
11
11
|
S as RewardBlockchainType,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
R as
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
x as
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
z as
|
|
47
|
-
G as
|
|
48
|
-
J as
|
|
49
|
-
K as
|
|
50
|
-
Q as
|
|
51
|
-
X as
|
|
52
|
-
Y as
|
|
53
|
-
Z as
|
|
54
|
-
$ as
|
|
55
|
-
aa as
|
|
56
|
-
ea as
|
|
57
|
-
sa as
|
|
58
|
-
ta as
|
|
59
|
-
ra as
|
|
60
|
-
ia as
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
oa as
|
|
65
|
-
Sa as
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
12
|
+
A as RewardToken,
|
|
13
|
+
N as RewardWithdrawalStatus,
|
|
14
|
+
B as SANCTIONED_ADDRESS,
|
|
15
|
+
C as SATOSHI_SCALE,
|
|
16
|
+
T as SOLANA_DEVNET_CHAIN,
|
|
17
|
+
E as SOLANA_MAINNET_CHAIN,
|
|
18
|
+
I as SOLANA_TESTNET_CHAIN,
|
|
19
|
+
l as SUI_DEVNET_CHAIN,
|
|
20
|
+
w as SUI_LOCALNET_CHAIN,
|
|
21
|
+
k as SUI_MAINNET_CHAIN,
|
|
22
|
+
u as SUI_TESTNET_CHAIN,
|
|
23
|
+
_ as Vault,
|
|
24
|
+
c as approveLBTC,
|
|
25
|
+
h as bridge,
|
|
26
|
+
p as bridgeCCIP,
|
|
27
|
+
L as bridgeOFT,
|
|
28
|
+
D as cancelWithdraw,
|
|
29
|
+
y as claimLBTC,
|
|
30
|
+
R as claimReward,
|
|
31
|
+
V as deposit,
|
|
32
|
+
v as fromSatoshi,
|
|
33
|
+
H as generateDepositBtcAddress,
|
|
34
|
+
m as getApiConfig,
|
|
35
|
+
O as getBasculeDepositStatus,
|
|
36
|
+
f as getBaseNetworkByEnv,
|
|
37
|
+
F as getBridgeInfo,
|
|
38
|
+
M as getBscNetworkByEnv,
|
|
39
|
+
U as getChainIdByName,
|
|
40
|
+
W as getChainNameById,
|
|
41
|
+
b as getDepositBtcAddress,
|
|
42
|
+
P as getDepositBtcAddresses,
|
|
43
|
+
x as getDepositsByAddress,
|
|
44
|
+
q as getEthNetworkByEnv,
|
|
45
|
+
j as getLBTCExchangeRate,
|
|
46
|
+
z as getLBTCMintingFee,
|
|
47
|
+
G as getLBTCStats,
|
|
48
|
+
J as getLBTCTotalSupply,
|
|
49
|
+
K as getLbtcContractAddresses,
|
|
50
|
+
Q as getNetworkFeeSignature,
|
|
51
|
+
X as getPermitNonce,
|
|
52
|
+
Y as getPointsByAddress,
|
|
53
|
+
Z as getRewardBalances,
|
|
54
|
+
$ as getRewardSigningData,
|
|
55
|
+
aa as getRewardWithdrawalFee,
|
|
56
|
+
ea as getRewardWithdrawals,
|
|
57
|
+
sa as getShareValue,
|
|
58
|
+
ta as getSharesByAddress,
|
|
59
|
+
ra as getSolanaNetworkByEnv,
|
|
60
|
+
ia as getSonicNetworkByEnv,
|
|
61
|
+
ga as getStakeAndBakeFee,
|
|
62
|
+
na as getSuiNetworkByEnv,
|
|
63
|
+
da as getUnstakesByAddress,
|
|
64
|
+
oa as getUserStakeAndBakeSignature,
|
|
65
|
+
Sa as getVaultApy,
|
|
66
|
+
Aa as getVaultDeposits,
|
|
67
|
+
Na as getVaultPoints,
|
|
68
|
+
Ba as getVaultTVL,
|
|
69
|
+
Ca as getVaultWithdrawals,
|
|
70
|
+
Ta as isRewardTokenSupported,
|
|
71
|
+
Ea as isValidChain,
|
|
72
|
+
Ia as queueWithdraw,
|
|
73
|
+
la as setReferral,
|
|
74
|
+
wa as signLbtcDestinationAddr,
|
|
75
|
+
ka as signNetworkFee,
|
|
76
|
+
ua as signStakeAndBake,
|
|
77
|
+
_a as storeNetworkFeeSignature,
|
|
78
|
+
ca as storeStakeAndBakeSignature,
|
|
79
|
+
ha as toSatoshi,
|
|
80
|
+
pa as unstakeLBTC
|
|
70
81
|
};
|
|
71
82
|
//# sourceMappingURL=index.js.map
|