@lombard.finance/sdk 3.6.13 → 3.6.18

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 CHANGED
@@ -1,3 +1,40 @@
1
+ # 3.6.18
2
+
3
+ * removed deprecated rewards (BABY) logic,
4
+ * introduced `IPointsBase` interface to capture **common fields** shared across all seasons.
5
+ * added `IPointsByAddressSeason1` interface for Season 1 specific points:
6
+ * `okxPoints`
7
+ * `flashEvent1Points`
8
+ * `flashEvent2Points`
9
+ * added `IPointsByAddressSeason2` interface for Season 2 specific points:
10
+ * `refereePoints`
11
+ * `checkinPoints`
12
+ * made `totalWithoutBadgesPoints` optional in the base interface but required in Season 1.
13
+ * `getPointsByAddress` function now accepts a `season` parameter (`1 | 2`) and returns the correct typed object based on season.
14
+ * added convenience wrappers:
15
+ * `getLuxSeason1Points()` → returns `IPointsByAddressSeason1`
16
+ * `getLuxSeason2Points()` → returns `IPointsByAddressSeason2`
17
+ * improved type safety to prevent access to season-specific fields incorrectly.
18
+ * default season is now 2 when no `season` is provided.
19
+ * updated README.md.
20
+
21
+ # 3.6.17
22
+
23
+ * added support for season 2 points - added `season` parameter to the `getPoinstByAddress`.
24
+
25
+ # 3.6.16
26
+
27
+ * season 1 points API changes (removed campaign requests, now part of the same API).
28
+
29
+ # 3.6.15
30
+
31
+ * added `bob` chain,
32
+ * added token contract address on `bob`.
33
+
34
+ # 3.6.14
35
+
36
+ * fixed the issue with unused and unpublished dependencies.
37
+
1
38
  # 3.6.13
2
39
 
3
40
  * added new `token` parameter to the `signStakeAndBake` function,
package/README.md CHANGED
@@ -35,66 +35,61 @@ npm i --save @lombard.finance/sdk
35
35
 
36
36
  All functions are documented with JSDoc comments. You can use your IDE's autocomplete feature to see the available methods and their parameters.
37
37
 
38
- ### 1. Depositing BTC in order to get LBTC (aka staking).
38
+ ### 1. Depositing BTC in order to get LBTC (aka staking)
39
39
 
40
- You can read more about LBTC here: https://docs.lombard.finance/lbtc-liquid-bitcoin/introduction-to-lbtc
40
+ You can read more about LBTC here: [Introduction to LBTC](https://docs.lombard.finance/lbtc-liquid-bitcoin/introduction-to-lbtc)
41
41
 
42
- If you'd wish to stake your BTC and get LBTC follow the below steps:
42
+ If you'd like to stake your BTC and get LBTC, follow the steps below.
43
43
 
44
- #### 1.1 Get the current minting fee.
44
+ #### 1.1. Generate the BTC deposit address
45
45
 
46
- ```javascript
47
- const fee = await getLBTCMintingFee({ chainId: ChainId.ethereum }); // The fee represented in satoshis (BigNumber)
48
- ```
46
+ Use `signLbtcDestinationAddr` to generate a signature for the destination address and generate the deposit address:
49
47
 
50
- #### 1.2. Sign the network fee signature.
51
-
52
- ```javascript
53
- const expiry = Math.round((Date.now() + 24 * 60 * 60 * 1000) / 1000);
54
- const { signature, typedData } = await signNetworkFee({
55
- fee, // The fee from step 1
56
- expiry, // The optional expiration unix timestamp. This parameter can be omitted, it default to 24h from now. We recommend to set this to at least 8h from now.
57
- account, // The destination account address from the connected wallet.
58
- chainId: ChainId.ethereum // The destination chain id.
59
- provider, // The EIP-1193 provider, e.g. the injected provider: window.ethereum
48
+ ```ts
49
+ const signature = await signLbtcDestinationAddr({
50
+ account,
51
+ chainId: ChainId.ethereum,
52
+ provider,
60
53
  });
61
- ```
62
-
63
- #### 1.3. Store the signature to the Lombard's systems.
64
54
 
65
- ```javascript
66
- await storeNetworkFeeSignature({ signature, typedData, address }); // Pass the signature and typed data from step 2.
55
+ let depositBtcAddress = await getDepositBtcAddress({ address, chainId });
56
+ if (!depositBtcAddress) {
57
+ depositBtcAddress = await generateDepositBtcAddress({
58
+ address,
59
+ chainId,
60
+ signature,
61
+ partnerId: "YOUR_PARTNER_ID",
62
+ });
63
+ }
67
64
  ```
68
65
 
69
- It is recommended to verify that the signature has been stored. Please use `getNetworkFeeSignature`.
70
-
71
- ```javascript
72
- const { expirationData, hasSignature, isDelayed } = await getNetworkFeeSignature({ address, chainId });
73
- ```
66
+ #### 1.2. Check and store the network fee (if fee > 0)
74
67
 
75
- `isDelayed` is a flag determining whether the execution of auto-claimer using the stored signature is delayed due to the higher gas costs.
68
+ If the network fee is greater than 0, sign the fee and store the signature so the funds can be auto-minted:
76
69
 
77
- #### 1.4. Get or generate the BTC deposit address.
70
+ ```ts
71
+ const fee = await getLBTCMintingFee({ chainId: ChainId.ethereum }); // Fee in satoshis (BigNumber)
78
72
 
79
- ```javascript
80
- let depositBtcAddress = await getDepositBtcAddress({ address, chainId });
81
- if (!depositBtcAddress) {
82
- depositBtcAddress = await generateDepositBtcAddress({
83
- address,
84
- chainId,
85
- signature, // Pass here the signature from step 2.
86
- eip712Data: typedData // Pass here the typed data from step 2.
73
+ if (fee.gt(0)) {
74
+ const expiry = Math.round((Date.now() + 24 * 60 * 60 * 1000) / 1000);
75
+ const { signature, typedData } = await signNetworkFee({
76
+ fee,
77
+ expiry,
78
+ account,
79
+ chainId: ChainId.ethereum,
80
+ provider,
87
81
  });
82
+
83
+ await storeNetworkFeeSignature({ signature, typedData, address });
88
84
  }
89
85
  ```
90
86
 
91
- #### 1.5. Deposit BTC to the address.
87
+ #### 1.3. Deposit BTC to the address
88
+
89
+ Deposit your BTC to the generated address. Funds will be claimed automatically by Lombard’s claimer and credited to your account (`address`).
92
90
 
93
- Now you can deposit your BTC to the generated in the previous step BTC address.
94
- The funds will be claimed automatically by Lombard's claimer and transferred to
95
- the account (`address`).
96
91
 
97
- #### 1.6. Check the status of your deposit.
92
+ #### 1.4. Check the status of your deposit.
98
93
 
99
94
  If you'd like to check the status of your deposit use `getDepositsByAddress` function.
100
95
 
@@ -120,6 +115,8 @@ Every entry in the result of the above function may consist of the following pro
120
115
  * `notarizationStatus` - the notarization status of the deposit (pending, submitted, approved or failed),
121
116
  * `sessionState` - the state of the session (pending, completed, expired)
122
117
 
118
+ ---
119
+
123
120
  ### 2. Manually claiming LBTC.
124
121
 
125
122
  In case when a user deposited BTC to the BTC deposit address but the transaction has not been claimed automatically (due to expired signature or any other issue), you may want to claim LBTC manually as in the example below:
@@ -137,6 +134,8 @@ const txHash = await claimLBTC({
137
134
 
138
135
  The successful execution of the above will result with the transaction id.
139
136
 
137
+ ---
138
+
140
139
  ### 3. Depositing BTC and automatically staking LBTC into the DeFi vault
141
140
 
142
141
  You can read more about the DeFi vaults here: https://docs.lombard.finance/lbtc-liquid-bitcoin/defi-vaults/lombard-defi-vault
@@ -248,6 +247,8 @@ The above code results with:
248
247
  * `exchangeRate` - The current LBTCv to LBTC exchange rate,
249
248
  * `balanceLbtc` - The value of the owned shares is LBTC.
250
249
 
250
+ ---
251
+
251
252
  ### 4. Unstaking LBTC and getting BTC back.
252
253
 
253
254
  Every LBTC is redeemable back to BTC, you can do that programmatically by following the steps:
@@ -286,6 +287,8 @@ Every entry in the result of the above may consist of:
286
287
  * `payoutTxStatus` - The status of the payout, available values: `PayoutTxStatus.Completed` or `PayoutTxStatus.Pending`,
287
288
  * `sanctioned` - A flag indicating whether the unstake transaction has been sanctioned and flagged as suspicious.
288
289
 
290
+ ---
291
+
289
292
  ### 5. Depositing LBTC to the DeFi vault.
290
293
 
291
294
  If a user already has LBTC depositing to the DeFi vault can be done via the `deposit` function.
@@ -342,6 +345,8 @@ The above function returns the:
342
345
  * `exchangeRate` - the current exchange rate between LBTCv and LBTC,
343
346
  * `balanceLbtc` - the value of LBTCv represented in LBTC.
344
347
 
348
+ ---
349
+
345
350
  ### 6. Withdrawing LBTC from the DeFi vault.
346
351
 
347
352
  #### 6.1. Requesting a withdrawal from the DeFi vault
@@ -411,60 +416,91 @@ const txHash = await cancelWithdraw({
411
416
  });
412
417
  ```
413
418
 
414
- ### 7. Getting the points earned by an address.
419
+ ---
415
420
 
416
- If you'd like to check the amount of Lux points earned by an address then simply run the following function:
421
+ ### 7. Getting the points earned by an address
417
422
 
418
- ```javascript
419
- const points = await getPointsByAddress({ address: "0x...YOUR_ADDRESS" })
420
- ```
421
-
422
- The function returns the object of shape:
423
- ```typescript
424
- {
425
- /**
426
- * The number of points earned by holding LBTC.
427
- */
428
- holdingPoints: number;
429
- /**
430
- * The number of points earned by taking positions in DeFi vaults.
431
- */
432
- protocolPoints: number;
433
- /**
434
- * The number of points earned by your referrals.
435
- */
436
- referralPoints: number;
437
- /**
438
- * The number of points earned in the OKX campaign.
439
- */
440
- okxPoints: number;
441
- /**
442
- * The number of points earned by participating in the first flash event.
443
- */
444
- flashEvent1Points: number;
445
- /**
446
- * The number of points earned by participating in the second flash event.
447
- */
448
- flashEvent2Points: number;
449
- /**
450
- * The total number of points.
451
- */
452
- totalPoints: number;
453
- /**
454
- * The breakdown of points earned from each protocol.
455
- */
456
- protocolPointsBreakdown: IProtocolPointsBreakdown;
457
- /**
458
- * The amount of LUX points earned from badges.
459
- */
460
- badgesPoints: number;
461
- /**
462
- * The total amount of LUX points (without badges points).
463
- */
464
- totalWithoutBadgesPoints: number;
465
- }
423
+ You can check the amount of Lux points earned by an address with:
424
+
425
+ ```ts
426
+ import { getPointsByAddress } from "@lombard.finance/sdk";
427
+
428
+ // Fetch **current season** points (defaults to Season 2)
429
+ const points = await getPointsByAddress({ address: "0x...YOUR_ADDRESS" });
466
430
  ```
467
431
 
432
+ > 💡 **Tip:** If you already know which season you need,
433
+ > you can use the **season-specific wrappers** for cleaner, type-safe results:
434
+ >
435
+ > ```ts
436
+ > import { getLuxSeason1Points, getLuxSeason2Points } from "@lombard.finance/sdk";
437
+ >
438
+ > const s1 = await getLuxSeason1Points({ address: "0x...YOUR_ADDRESS" }); // Season 1 only
439
+ > const s2 = await getLuxSeason2Points({ address: "0x...YOUR_ADDRESS" }); // Season 2 only
440
+ > ```
441
+
442
+ #### Returned Object
443
+
444
+ The shape of the returned object depends on the **season**:
445
+
446
+ ##### **Season 1**
447
+
448
+ ```ts
449
+ {
450
+ /** Points earned by holding LBTC. */
451
+ holdingPoints: number;
452
+ /** Points earned by taking positions in DeFi vaults. */
453
+ protocolPoints: number;
454
+ /** Total referral points (referees + referrals). */
455
+ referralPoints: number;
456
+ /** Points earned in the OKX campaign. */
457
+ okxPoints: number;
458
+ /** Points earned in the first flash event. */
459
+ flashEvent1Points: number;
460
+ /** Points earned in the second flash event. */
461
+ flashEvent2Points: number;
462
+ /** Total points earned. */
463
+ totalPoints: number;
464
+ /** Breakdown of points earned from each protocol. */
465
+ protocolPointsBreakdown: IProtocolPointsBreakdown;
466
+ /** Lux points earned from badges. */
467
+ badgesPoints: number;
468
+ /** Total Lux points excluding badge points. */
469
+ totalWithoutBadgesPoints: number;
470
+ }
471
+ ```
472
+
473
+ ##### **Season 2**
474
+
475
+ ```ts
476
+ {
477
+ /** Points earned by holding LBTC. */
478
+ holdingPoints: number;
479
+ /** Points earned by taking positions in DeFi vaults. */
480
+ protocolPoints: number;
481
+ /** Points earned from referrals. */
482
+ referralPoints: number;
483
+ /** Points earned from referees. */
484
+ refereePoints: number;
485
+ /** Points earned by checking in. */
486
+ checkinPoints: number;
487
+ /** Total points earned. */
488
+ totalPoints: number;
489
+ /** Breakdown of points earned from each protocol. */
490
+ protocolPointsBreakdown: IProtocolPointsBreakdown;
491
+ /** Lux points earned from badges. */
492
+ badgesPoints: number;
493
+ /** Total Lux points excluding badge points (same as total in Season 2). */
494
+ totalWithoutBadgesPoints: number;
495
+ }
496
+ ```
497
+
498
+ ✅ Use `getPointsByAddress` when you want to dynamically select a season,
499
+ or `getLuxSeason1Points` / `getLuxSeason2Points` when you want **strong typing**
500
+ and guarantees for a specific season’s fields.
501
+
502
+ ---
503
+
468
504
  ### 8. Getting the DeFi vault points earned by an address.
469
505
 
470
506
  ```javascript
@@ -477,6 +513,8 @@ const {
477
513
  })
478
514
  ```
479
515
 
516
+ ---
517
+
480
518
  ### 9. Metrics
481
519
 
482
520
  #### 9.1. Getting the vault's TVL
@@ -654,3 +692,5 @@ The above returns:
654
692
  A list of campaigns where BTC rewards are still pending distribution.
655
693
  * **`name`** (`string`): Name of the reward campaign.
656
694
  * **`amount`** (`BigNumber`): Amount of BTC yet to be distributed.
695
+
696
+ ---
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_LLAMA_CHAIN_NAME_MAP=e.CHAIN_ID_TO_LLAMA_CHAIN_NAME_MAP;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.SOLANA_TOKEN_ADDRESSES=e.SOLANA_TOKEN_ADDRESSES;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.SUI_TOKEN_ADDRESSES=e.SUI_TOKEN_ADDRESSES;exports.TOKEN_ADDRESSES=e.TOKEN_ADDRESSES;exports.Token=e.Token;exports.Vault=e.Vault;exports.addChain=e.addChain;exports.allChains=e.allChains;exports.approveLBTC=e.approveLBTC;exports.bridge=e.bridge;exports.bridgeCCIP=e.bridgeCCIP;exports.bridgeOFT=e.bridgeOFT;exports.calculateStakeAndBakeLBTCAmount=e.calculateStakeAndBakeLBTCAmount;exports.cancelWithdraw=e.cancelWithdraw;exports.claimLBTC=e.claimLBTC;exports.claimReward=e.claimReward;exports.deposit=e.deposit;exports.fromBaseDenomination=e.fromBaseDenomination;exports.fromSatoshi=e.fromSatoshi;exports.generateDepositBtcAddress=e.generateDepositBtcAddress;exports.getAdditionalRewards=e.getAdditionalRewards;exports.getApiConfig=e.getApiConfig;exports.getApy=e.getApy;exports.getAssetInfo=e.getAssetInfo;exports.getBasculeDepositStatus=e.getBasculeDepositStatus;exports.getBaseNetworkByEnv=e.getBaseNetworkByEnv;exports.getBridgeInfo=e.getBridgeInfo;exports.getBscNetworkByEnv=e.getBscNetworkByEnv;exports.getChain=e.getChain;exports.getChainIdByName=e.getChainIdByName;exports.getChainNameById=e.getChainNameById;exports.getDepositBtcAddress=e.getDepositBtcAddress;exports.getDepositBtcAddresses=e.getDepositBtcAddresses;exports.getDepositsByAddress=e.getDepositsByAddress;exports.getEstimatedApy=e.getEstimatedApy;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.getLlamaChainName=e.getLlamaChainName;exports.getMinRedeemAmount=e.getMinRedeemAmount;exports.getMintingFee=e.getMintingFee;exports.getNetworkFeeSignature=e.getNetworkFeeSignature;exports.getPermitNonce=e.getPermitNonce;exports.getPointsByAddress=e.getPointsByAddress;exports.getPositionsSummary=e.getPositionsSummary;exports.getRedeemFee=e.getRedeemFee;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.getSolanaTokenAddress=e.getSolanaTokenAddress;exports.getSonicNetworkByEnv=e.getSonicNetworkByEnv;exports.getStakeAndBakeFee=e.getStakeAndBakeFee;exports.getSuiNetworkByEnv=e.getSuiNetworkByEnv;exports.getSuiTokenAddress=e.getSuiTokenAddress;exports.getTokenContractInfo=e.getTokenContractInfo;exports.getTokenInfo=e.getTokenInfo;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.isSolanaChain=e.isSolanaChain;exports.isSuiChain=e.isSuiChain;exports.isUpgradedAbi=e.isUpgradedAbi;exports.isUpgradedContract=e.isUpgradedContract;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.retrieveTokenProperties=e.retrieveTokenProperties;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.toBaseDenomination=e.toBaseDenomination;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_LLAMA_CHAIN_NAME_MAP=e.CHAIN_ID_TO_LLAMA_CHAIN_NAME_MAP;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.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.SOLANA_TOKEN_ADDRESSES=e.SOLANA_TOKEN_ADDRESSES;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.SUI_TOKEN_ADDRESSES=e.SUI_TOKEN_ADDRESSES;exports.TOKEN_ADDRESSES=e.TOKEN_ADDRESSES;exports.Token=e.Token;exports.Vault=e.Vault;exports.addChain=e.addChain;exports.allChains=e.allChains;exports.approveLBTC=e.approveLBTC;exports.bob=e.bob;exports.bobSepolia=e.bobSepolia;exports.bridge=e.bridge;exports.bridgeCCIP=e.bridgeCCIP;exports.bridgeOFT=e.bridgeOFT;exports.calculateStakeAndBakeLBTCAmount=e.calculateStakeAndBakeLBTCAmount;exports.cancelWithdraw=e.cancelWithdraw;exports.claimLBTC=e.claimLBTC;exports.deposit=e.deposit;exports.fromBaseDenomination=e.fromBaseDenomination;exports.fromSatoshi=e.fromSatoshi;exports.generateDepositBtcAddress=e.generateDepositBtcAddress;exports.getAdditionalRewards=e.getAdditionalRewards;exports.getApiConfig=e.getApiConfig;exports.getApy=e.getApy;exports.getAssetInfo=e.getAssetInfo;exports.getBasculeDepositStatus=e.getBasculeDepositStatus;exports.getBaseNetworkByEnv=e.getBaseNetworkByEnv;exports.getBridgeInfo=e.getBridgeInfo;exports.getBscNetworkByEnv=e.getBscNetworkByEnv;exports.getChain=e.getChain;exports.getChainIdByName=e.getChainIdByName;exports.getChainNameById=e.getChainNameById;exports.getDepositBtcAddress=e.getDepositBtcAddress;exports.getDepositBtcAddresses=e.getDepositBtcAddresses;exports.getDepositsByAddress=e.getDepositsByAddress;exports.getEstimatedApy=e.getEstimatedApy;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.getLlamaChainName=e.getLlamaChainName;exports.getLuxSeason1Points=e.getLuxSeason1Points;exports.getLuxSeason2Points=e.getLuxSeason2Points;exports.getMinRedeemAmount=e.getMinRedeemAmount;exports.getMintingFee=e.getMintingFee;exports.getNetworkFeeSignature=e.getNetworkFeeSignature;exports.getPermitNonce=e.getPermitNonce;exports.getPointsByAddress=e.getPointsByAddress;exports.getPositionsSummary=e.getPositionsSummary;exports.getRedeemFee=e.getRedeemFee;exports.getShareValue=e.getShareValue;exports.getSharesByAddress=e.getSharesByAddress;exports.getSolanaNetworkByEnv=e.getSolanaNetworkByEnv;exports.getSolanaTokenAddress=e.getSolanaTokenAddress;exports.getSonicNetworkByEnv=e.getSonicNetworkByEnv;exports.getStakeAndBakeFee=e.getStakeAndBakeFee;exports.getSuiNetworkByEnv=e.getSuiNetworkByEnv;exports.getSuiTokenAddress=e.getSuiTokenAddress;exports.getTokenContractInfo=e.getTokenContractInfo;exports.getTokenInfo=e.getTokenInfo;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.isSolanaChain=e.isSolanaChain;exports.isSuiChain=e.isSuiChain;exports.isUpgradedAbi=e.isUpgradedAbi;exports.isUpgradedContract=e.isUpgradedContract;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.retrieveTokenProperties=e.retrieveTokenProperties;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.toBaseDenomination=e.toBaseDenomination;exports.toSatoshi=e.toSatoshi;exports.unstakeLBTC=e.unstakeLBTC;
package/dist/index.js CHANGED
@@ -1,123 +1,118 @@
1
- import { b2 as e, W as t, ay as n, aR as i, aP as r, aO as g, G as o, I as d, u as A, y as S, z as T, O as N, Q as _, aY as C, aq as I, aw as B, au as E, C as k, b3 as u, S as l, h as c, j as h, b0 as L, k as w, aL as D, m as p, n as m, a_ as b, aZ as R, aX as y, af as O, aT as M, aK as H, a4 as F, v as V, w as P, x as f, aa as v, aj as U, a5 as W, ao as K, ag as x, bd as G, b4 as q, D as z, t as j, ax as J, q as Q, bb as X, X as Y, aC as Z, A as $, aB as aa, aV as sa, aG as ea, az as ta, E as na, F as ia, J as ra, r as ga, aA as oa, L as da, Z as Aa, K as Sa, Y as Ta, o as Na, a1 as _a, aW as Ca, aU as Ia, a0 as Ba, _ as Ea, M as ka, a2 as ua, N as la, p as ca, $ as ha, ap as La, ar as wa, as as Da, at as pa, ad as ma, ae as ba, aF as Ra, b1 as ya, aE as Oa, a3 as Ma, aD as Ha, a$ as Fa, b8 as Va, ba as Pa, P as fa, R as va, an as Ua, ah as Wa, al as Ka, am as xa, ak as Ga, aQ as qa, av as za, aN as ja, aM as Ja, b7 as Qa, b6 as Xa, aS as Ya, aH as Za, aI as $a, a6 as as, ai as ss, ac as es, b9 as ts, T as ns, a7 as is, a8 as rs, a9 as gs, U as os, V as ds, aJ as As, bc as Ss, b5 as Ts, ab as Ns } from "./index2.js";
1
+ import { aZ as e, Y as t, ar as n, aM as i, aK as o, aJ as g, G as A, I as S, u as r, y as d, z as T, O as N, T as _, aT as C, C as I, a_ as E, S as B, h as k, j as u, aX as L, k as l, aG as D, m as c, n as h, aV as p, aU as m, aS as b, ah as y, aO as O, aF as M, a6 as H, aD as w, aE as F, v as P, w as V, x as R, ac as f, al as v, a7 as U, ai as x, b8 as K, a$ as G, D as W, t as q, aq as z, q as j, b6 as J, Z as Q, av as X, A as Y, au as Z, aQ as $, az as aa, as as sa, E as ea, F as ta, J as na, r as ia, at as oa, L as ga, $ as Aa, K as Sa, _ as ra, o as da, a3 as Ta, aR as Na, aP as _a, P as Ca, Q as Ia, a2 as Ea, a0 as Ba, M as ka, a4 as ua, N as La, p as la, a1 as Da, af as ca, ag as ha, ay as pa, aY as ma, ax as ba, a5 as ya, aw as Oa, aW as Ma, b3 as Ha, b5 as wa, R as Fa, U as Pa, ap as Va, aj as Ra, an as fa, ao as va, am as Ua, aL as xa, aI as Ka, aH as Ga, b2 as Wa, b1 as qa, aN as za, aA as ja, aB as Ja, a8 as Qa, ak as Xa, ae as Ya, b4 as Za, V as $a, a9 as as, aa as ss, ab as es, W as ts, X as ns, aC as is, b7 as os, b0 as gs, ad as As } 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_LLAMA_CHAIN_NAME_MAP,
7
- r as CHAIN_ID_TO_VIEM_CHAIN_MAP,
7
+ o as CHAIN_ID_TO_VIEM_CHAIN_MAP,
8
8
  g as ChainId,
9
- o as ENotarizationStatus,
10
- d as ESessionState,
11
- A as Env,
12
- S as OFT_GAS_LIMIT,
9
+ A as ENotarizationStatus,
10
+ S as ESessionState,
11
+ r as Env,
12
+ d as OFT_GAS_LIMIT,
13
13
  T as OFT_HI_GAS_LIMIT,
14
14
  N as OFT_HI_GAS_LIMIT_CHAINS,
15
15
  _ as PayoutTxStatus,
16
16
  C as RATIO_TOKEN_MAP,
17
- I as RewardBlockchainType,
18
- B as RewardToken,
19
- E as RewardWithdrawalStatus,
20
- k as SANCTIONED_ADDRESS,
21
- u as SATOSHI_SCALE,
22
- l as SOLANA_DEVNET_CHAIN,
23
- c as SOLANA_MAINNET_CHAIN,
24
- h as SOLANA_TESTNET_CHAIN,
17
+ I as SANCTIONED_ADDRESS,
18
+ E as SATOSHI_SCALE,
19
+ B as SOLANA_DEVNET_CHAIN,
20
+ k as SOLANA_MAINNET_CHAIN,
21
+ u as SOLANA_TESTNET_CHAIN,
25
22
  L as SOLANA_TOKEN_ADDRESSES,
26
- w as SUI_DEVNET_CHAIN,
23
+ l as SUI_DEVNET_CHAIN,
27
24
  D as SUI_LOCALNET_CHAIN,
28
- p as SUI_MAINNET_CHAIN,
29
- m as SUI_TESTNET_CHAIN,
30
- b as SUI_TOKEN_ADDRESSES,
31
- R as TOKEN_ADDRESSES,
32
- y as Token,
33
- O as Vault,
34
- M as addChain,
35
- H as allChains,
36
- F as approveLBTC,
37
- V as bridge,
38
- P as bridgeCCIP,
39
- f as bridgeOFT,
40
- v as calculateStakeAndBakeLBTCAmount,
41
- U as cancelWithdraw,
42
- W as claimLBTC,
43
- K as claimReward,
25
+ c as SUI_MAINNET_CHAIN,
26
+ h as SUI_TESTNET_CHAIN,
27
+ p as SUI_TOKEN_ADDRESSES,
28
+ m as TOKEN_ADDRESSES,
29
+ b as Token,
30
+ y as Vault,
31
+ O as addChain,
32
+ M as allChains,
33
+ H as approveLBTC,
34
+ w as bob,
35
+ F as bobSepolia,
36
+ P as bridge,
37
+ V as bridgeCCIP,
38
+ R as bridgeOFT,
39
+ f as calculateStakeAndBakeLBTCAmount,
40
+ v as cancelWithdraw,
41
+ U as claimLBTC,
44
42
  x as deposit,
45
- G as fromBaseDenomination,
46
- q as fromSatoshi,
47
- z as generateDepositBtcAddress,
48
- j as getAdditionalRewards,
49
- J as getApiConfig,
50
- Q as getApy,
51
- X as getAssetInfo,
52
- Y as getBasculeDepositStatus,
53
- Z as getBaseNetworkByEnv,
54
- $ as getBridgeInfo,
55
- aa as getBscNetworkByEnv,
56
- sa as getChain,
57
- ea as getChainIdByName,
58
- ta as getChainNameById,
59
- na as getDepositBtcAddress,
60
- ia as getDepositBtcAddresses,
61
- ra as getDepositsByAddress,
62
- ga as getEstimatedApy,
43
+ K as fromBaseDenomination,
44
+ G as fromSatoshi,
45
+ W as generateDepositBtcAddress,
46
+ q as getAdditionalRewards,
47
+ z as getApiConfig,
48
+ j as getApy,
49
+ J as getAssetInfo,
50
+ Q as getBasculeDepositStatus,
51
+ X as getBaseNetworkByEnv,
52
+ Y as getBridgeInfo,
53
+ Z as getBscNetworkByEnv,
54
+ $ as getChain,
55
+ aa as getChainIdByName,
56
+ sa as getChainNameById,
57
+ ea as getDepositBtcAddress,
58
+ ta as getDepositBtcAddresses,
59
+ na as getDepositsByAddress,
60
+ ia as getEstimatedApy,
63
61
  oa as getEthNetworkByEnv,
64
- da as getExchangeRatio,
62
+ ga as getExchangeRatio,
65
63
  Aa as getLBTCBurningFee,
66
64
  Sa as getLBTCExchangeRate,
67
- Ta as getLBTCMintingFee,
68
- Na as getLBTCStats,
69
- _a as getLBTCTotalSupply,
70
- Ca as getLbtcContractAddresses,
71
- Ia as getLlamaChainName,
72
- Ba as getMinRedeemAmount,
73
- Ea as getMintingFee,
65
+ ra as getLBTCMintingFee,
66
+ da as getLBTCStats,
67
+ Ta as getLBTCTotalSupply,
68
+ Na as getLbtcContractAddresses,
69
+ _a as getLlamaChainName,
70
+ Ca as getLuxSeason1Points,
71
+ Ia as getLuxSeason2Points,
72
+ Ea as getMinRedeemAmount,
73
+ Ba as getMintingFee,
74
74
  ka as getNetworkFeeSignature,
75
75
  ua as getPermitNonce,
76
- la as getPointsByAddress,
77
- ca as getPositionsSummary,
78
- ha as getRedeemFee,
79
- La as getRewardBalances,
80
- wa as getRewardSigningData,
81
- Da as getRewardWithdrawalFee,
82
- pa as getRewardWithdrawals,
83
- ma as getShareValue,
84
- ba as getSharesByAddress,
85
- Ra as getSolanaNetworkByEnv,
86
- ya as getSolanaTokenAddress,
87
- Oa as getSonicNetworkByEnv,
88
- Ma as getStakeAndBakeFee,
89
- Ha as getSuiNetworkByEnv,
90
- Fa as getSuiTokenAddress,
91
- Va as getTokenContractInfo,
92
- Pa as getTokenInfo,
93
- fa as getUnstakesByAddress,
94
- va as getUserStakeAndBakeSignature,
95
- Ua as getVaultApy,
96
- Wa as getVaultDeposits,
97
- Ka as getVaultPoints,
98
- xa as getVaultTVL,
99
- Ga as getVaultWithdrawals,
100
- qa as isKatanaChain,
101
- za as isRewardTokenSupported,
102
- ja as isSolanaChain,
103
- Ja as isSuiChain,
104
- Qa as isUpgradedAbi,
105
- Xa as isUpgradedContract,
106
- Ya as isValidChain,
107
- Za as katana,
108
- $a as katanaTatara,
109
- as as mintToken,
110
- ss as queueWithdraw,
111
- es as redeemToken,
112
- ts as retrieveTokenProperties,
113
- ns as setReferral,
114
- is as signLbtcDestinationAddr,
115
- rs as signNetworkFee,
116
- gs as signStakeAndBake,
117
- os as storeNetworkFeeSignature,
118
- ds as storeStakeAndBakeSignature,
119
- As as tac,
120
- Ss as toBaseDenomination,
121
- Ts as toSatoshi,
122
- Ns as unstakeLBTC
76
+ La as getPointsByAddress,
77
+ la as getPositionsSummary,
78
+ Da as getRedeemFee,
79
+ ca as getShareValue,
80
+ ha as getSharesByAddress,
81
+ pa as getSolanaNetworkByEnv,
82
+ ma as getSolanaTokenAddress,
83
+ ba as getSonicNetworkByEnv,
84
+ ya as getStakeAndBakeFee,
85
+ Oa as getSuiNetworkByEnv,
86
+ Ma as getSuiTokenAddress,
87
+ Ha as getTokenContractInfo,
88
+ wa as getTokenInfo,
89
+ Fa as getUnstakesByAddress,
90
+ Pa as getUserStakeAndBakeSignature,
91
+ Va as getVaultApy,
92
+ Ra as getVaultDeposits,
93
+ fa as getVaultPoints,
94
+ va as getVaultTVL,
95
+ Ua as getVaultWithdrawals,
96
+ xa as isKatanaChain,
97
+ Ka as isSolanaChain,
98
+ Ga as isSuiChain,
99
+ Wa as isUpgradedAbi,
100
+ qa as isUpgradedContract,
101
+ za as isValidChain,
102
+ ja as katana,
103
+ Ja as katanaTatara,
104
+ Qa as mintToken,
105
+ Xa as queueWithdraw,
106
+ Ya as redeemToken,
107
+ Za as retrieveTokenProperties,
108
+ $a as setReferral,
109
+ as as signLbtcDestinationAddr,
110
+ ss as signNetworkFee,
111
+ es as signStakeAndBake,
112
+ ts as storeNetworkFeeSignature,
113
+ ns as storeStakeAndBakeSignature,
114
+ is as tac,
115
+ os as toBaseDenomination,
116
+ gs as toSatoshi,
117
+ As as unstakeLBTC
123
118
  };