@lombard.finance/sdk 3.7.1 → 3.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (204) hide show
  1. package/CHANGELOG.md +102 -98
  2. package/README.md +164 -160
  3. package/dist/api-functions/generateDepositBtcAddress/generateDepositBtcAddress.d.ts.map +1 -1
  4. package/dist/api-functions/get-badges-by-address/get-badges-by-address.d.ts +1 -1
  5. package/dist/api-functions/get-badges-by-address/get-badges-by-address.d.ts.map +1 -1
  6. package/dist/api-functions/getDepositBtcAddress/getDepositBtcAddress.d.ts +1 -1
  7. package/dist/api-functions/getDepositBtcAddress/getDepositBtcAddress.d.ts.map +1 -1
  8. package/dist/api-functions/getDepositBtcAddress/make-request.d.ts.map +1 -1
  9. package/dist/api-functions/getDepositsByAddress/getDepositsByAddress.d.ts.map +1 -1
  10. package/dist/api-functions/getLBTCExchangeRate/get-exchange-ratio.d.ts.map +1 -1
  11. package/dist/api-functions/getLBTCExchangeRate/getLBTCExchangeRate.d.ts.map +1 -1
  12. package/dist/api-functions/getLBTCExchangeRate/index.d.ts +1 -1
  13. package/dist/api-functions/getLBTCExchangeRate/index.d.ts.map +1 -1
  14. package/dist/api-functions/getPointsByAddress/getPointsByAddress.d.ts.map +1 -1
  15. package/dist/api-functions/getUnstakesByAddress/getUnstakesByAddress.d.ts.map +1 -1
  16. package/dist/api-functions/getUserStakeAndBakeSignature/getUserStakeAndBakeSignature.d.ts.map +1 -1
  17. package/dist/api-functions/setReferral/setReferral.d.ts.map +1 -1
  18. package/dist/api-functions/storeNetworkFeeSignature/storeNetworkFeeSignature.d.ts.map +1 -1
  19. package/dist/api-functions/storeStakeAndBakeSignature/storeStakeAndBakeSignature.d.ts.map +1 -1
  20. package/dist/bridge/index.d.ts +2 -2
  21. package/dist/bridge/index.d.ts.map +1 -1
  22. package/dist/bridge/lib/bridge.d.ts.map +1 -1
  23. package/dist/bridge/lib/ccip-bridge.d.ts.map +1 -1
  24. package/dist/bridge/lib/ccip-config.d.ts +1 -1
  25. package/dist/bridge/lib/ccip-config.d.ts.map +1 -1
  26. package/dist/bridge/lib/config.d.ts.map +1 -1
  27. package/dist/bridge/lib/oft-bridge.d.ts.map +1 -1
  28. package/dist/clients/evm-signer-adapter.d.ts.map +1 -1
  29. package/dist/clients/public-client.d.ts.map +1 -1
  30. package/dist/clients/rpc-url-config.d.ts.map +1 -1
  31. package/dist/clients/wallet-client.d.ts.map +1 -1
  32. package/dist/common/blockchain-identifier.d.ts +2 -0
  33. package/dist/common/blockchain-identifier.d.ts.map +1 -1
  34. package/dist/common/chains.d.ts +191 -97
  35. package/dist/common/chains.d.ts.map +1 -1
  36. package/dist/common/chains.stories.d.ts.map +1 -1
  37. package/dist/common/contract-info.d.ts.map +1 -1
  38. package/dist/common/parameters.d.ts.map +1 -1
  39. package/dist/contract-functions/approveLBTC/approveLBTC.d.ts.map +1 -1
  40. package/dist/contract-functions/approveToken/approveToken.d.ts +1 -1
  41. package/dist/contract-functions/approveToken/approveToken.d.ts.map +1 -1
  42. package/dist/contract-functions/claimLBTC/claimLBTC.d.ts.map +1 -1
  43. package/dist/contract-functions/claimUnstakeRedeem/claimUnstakeRedeem.d.ts.map +1 -1
  44. package/dist/contract-functions/deposit/depositToken.d.ts.map +1 -1
  45. package/dist/contract-functions/getBasculeDepositStatus/getBasculeDepositStatus.d.ts.map +1 -1
  46. package/dist/contract-functions/getBasculeDepositStatus/getBasculeDepositStatus.stories.d.ts.map +1 -1
  47. package/dist/contract-functions/getBasculeDepositStatus/index.d.ts +1 -1
  48. package/dist/contract-functions/getBasculeDepositStatus/index.d.ts.map +1 -1
  49. package/dist/contract-functions/getLBTCMintingFee/getLBTCMintingFee.d.ts.map +1 -1
  50. package/dist/contract-functions/getLBTCMintingFee/getLBTCMintingFee.stories.d.ts.map +1 -1
  51. package/dist/contract-functions/getLBTCTotalSupply/getLBTCTotalSupply.d.ts.map +1 -1
  52. package/dist/contract-functions/getPermitNonce/getPermitNonce.d.ts.map +1 -1
  53. package/dist/contract-functions/getShareValue/getShareValue.d.ts.map +1 -1
  54. package/dist/contract-functions/getSharesByAddress/getSharesByAddress.d.ts.map +1 -1
  55. package/dist/contract-functions/getStakeAndBakeFee/getStakeAndBakeFee.d.ts.map +1 -1
  56. package/dist/contract-functions/index.d.ts +2 -2
  57. package/dist/contract-functions/index.d.ts.map +1 -1
  58. package/dist/contract-functions/signNetworkFee/signNetworkFee.d.ts.map +1 -1
  59. package/dist/contract-functions/signStakeAndBake/handleApprove.d.ts.map +1 -1
  60. package/dist/contract-functions/signStakeAndBake/signStakeAndBake.d.ts.map +1 -1
  61. package/dist/contract-functions/signStakeAndBake/typed-data-builder.d.ts.map +1 -1
  62. package/dist/contract-functions/signStakeAndBake/utils.d.ts.map +1 -1
  63. package/dist/contract-functions/signStakeAndBake/validation.d.ts.map +1 -1
  64. package/dist/contract-functions/unstakeLBTC/unstakeLBTC.d.ts.map +1 -1
  65. package/dist/debug-api/btc-script-to-address.d.ts.map +1 -1
  66. package/dist/debug-api/btc-tx-info.d.ts.map +1 -1
  67. package/dist/debug-api/evm-by-btc-address.d.ts.map +1 -1
  68. package/dist/defi/defi-registry.d.ts +1 -1
  69. package/dist/defi/defi-registry.d.ts.map +1 -1
  70. package/dist/defi/defi-registry.stories.d.ts.map +1 -1
  71. package/dist/defi/index.d.ts +1 -1
  72. package/dist/defi/index.d.ts.map +1 -1
  73. package/dist/index.cjs +1 -1
  74. package/dist/index.d.ts +7 -7
  75. package/dist/index.d.ts.map +1 -1
  76. package/dist/index.js +51 -49
  77. package/dist/index2.cjs +54 -54
  78. package/dist/index2.js +14414 -11251
  79. package/dist/metrics/get-additional-rewards.d.ts +1 -1
  80. package/dist/metrics/get-additional-rewards.d.ts.map +1 -1
  81. package/dist/metrics/get-lbtc-apy.d.ts +1 -1
  82. package/dist/metrics/get-lbtc-apy.d.ts.map +1 -1
  83. package/dist/metrics/get-lbtc-stats.d.ts.map +1 -1
  84. package/dist/metrics/get-lbtc-stats.stories.d.ts.map +1 -1
  85. package/dist/metrics/get-positions-summary.d.ts.map +1 -1
  86. package/dist/metrics/get-positions-summary.stories.d.ts.map +1 -1
  87. package/dist/stories/arg-types.d.ts.map +1 -1
  88. package/dist/tokens/lbtc-addresses.d.ts.map +1 -1
  89. package/dist/tokens/token-addresses.d.ts +1 -1
  90. package/dist/tokens/token-addresses.d.ts.map +1 -1
  91. package/dist/tokens/tokens.d.ts +5 -5
  92. package/dist/tokens/tokens.d.ts.map +1 -1
  93. package/dist/utils/block.d.ts.map +1 -1
  94. package/dist/utils/env.d.ts.map +1 -1
  95. package/dist/utils/err.d.ts +2 -2
  96. package/dist/utils/err.d.ts.map +1 -1
  97. package/dist/utils/transaction-executor.d.ts.map +1 -1
  98. package/dist/vaults/index.d.ts +5 -5
  99. package/dist/vaults/index.d.ts.map +1 -1
  100. package/dist/vaults/lib/config.d.ts.map +1 -1
  101. package/dist/vaults/lib/metrics/get-vault-apy.d.ts.map +1 -1
  102. package/dist/vaults/lib/metrics/get-vault-points.d.ts.map +1 -1
  103. package/dist/vaults/lib/metrics/get-vault-tvl.d.ts.map +1 -1
  104. package/dist/vaults/lib/ops/deposit.d.ts.map +1 -1
  105. package/dist/vaults/lib/ops/get-vault-deposits.d.ts.map +1 -1
  106. package/dist/vaults/lib/ops/get-vault-withdrawals.d.ts.map +1 -1
  107. package/dist/vaults/lib/ops/withdraw.d.ts.map +1 -1
  108. package/package.json +4 -4
  109. package/src/api-functions/generateDepositBtcAddress/generateDepositBtcAddress.ts +4 -3
  110. package/src/api-functions/get-badges-by-address/get-badges-by-address.ts +2 -1
  111. package/src/api-functions/getDepositBtcAddress/getDepositBtcAddress.test.ts +3 -2
  112. package/src/api-functions/getDepositBtcAddress/getDepositBtcAddress.ts +3 -2
  113. package/src/api-functions/getDepositBtcAddress/make-request.ts +2 -1
  114. package/src/api-functions/getDepositsByAddress/getDepositsByAddress.ts +4 -3
  115. package/src/api-functions/getLBTCExchangeRate/get-exchange-ratio.ts +2 -1
  116. package/src/api-functions/getLBTCExchangeRate/getLBTCExchangeRate.ts +1 -0
  117. package/src/api-functions/getLBTCExchangeRate/index.ts +1 -1
  118. package/src/api-functions/getPointsByAddress/getPointsByAddress.ts +1 -0
  119. package/src/api-functions/getUnstakesByAddress/getUnstakesByAddress.ts +5 -4
  120. package/src/api-functions/getUserStakeAndBakeSignature/getUserStakeAndBakeSignature.ts +1 -0
  121. package/src/api-functions/setReferral/setReferral.ts +1 -0
  122. package/src/api-functions/storeNetworkFeeSignature/storeNetworkFeeSignature.ts +1 -0
  123. package/src/api-functions/storeStakeAndBakeSignature/storeStakeAndBakeSignature.ts +1 -0
  124. package/src/bridge/index.ts +2 -3
  125. package/src/bridge/lib/bridge.ts +3 -2
  126. package/src/bridge/lib/ccip-bridge.ts +5 -4
  127. package/src/bridge/lib/ccip-config.ts +2 -1
  128. package/src/bridge/lib/config.ts +1 -0
  129. package/src/bridge/lib/oft-bridge.ts +3 -2
  130. package/src/clients/evm-signer-adapter.ts +4 -3
  131. package/src/clients/public-client.ts +1 -0
  132. package/src/clients/rpc-url-config.ts +4 -1
  133. package/src/clients/wallet-client.ts +3 -2
  134. package/src/common/blockchain-identifier.ts +14 -2
  135. package/src/common/chains.stories.tsx +2 -2
  136. package/src/common/chains.ts +54 -10
  137. package/src/common/contract-info.ts +1 -0
  138. package/src/common/parameters.ts +1 -0
  139. package/src/contract-functions/approveLBTC/approveLBTC.ts +1 -0
  140. package/src/contract-functions/approveToken/approveToken.ts +3 -2
  141. package/src/contract-functions/approveToken/index.ts +0 -1
  142. package/src/contract-functions/claimLBTC/claimLBTC.ts +1 -0
  143. package/src/contract-functions/claimUnstakeRedeem/claimUnstakeRedeem.ts +6 -5
  144. package/src/contract-functions/claimUnstakeRedeem/index.ts +0 -1
  145. package/src/contract-functions/deposit/depositToken.ts +7 -6
  146. package/src/contract-functions/getBasculeDepositStatus/getBasculeDepositStatus.stories.tsx +6 -6
  147. package/src/contract-functions/getBasculeDepositStatus/getBasculeDepositStatus.ts +14 -9
  148. package/src/contract-functions/getBasculeDepositStatus/index.ts +1 -1
  149. package/src/contract-functions/getLBTCMintingFee/getLBTCMintingFee.stories.tsx +1 -1
  150. package/src/contract-functions/getLBTCMintingFee/getLBTCMintingFee.ts +1 -0
  151. package/src/contract-functions/getLBTCTotalSupply/getLBTCTotalSupply.ts +1 -0
  152. package/src/contract-functions/getPermitNonce/getPermitNonce.ts +1 -0
  153. package/src/contract-functions/getShareValue/getShareValue.ts +2 -1
  154. package/src/contract-functions/getSharesByAddress/getSharesByAddress.ts +2 -1
  155. package/src/contract-functions/getStakeAndBakeFee/__tests__/getStakeAndBakeFee.test.ts +8 -4
  156. package/src/contract-functions/getStakeAndBakeFee/getStakeAndBakeFee.tsx +1 -0
  157. package/src/contract-functions/index.ts +2 -2
  158. package/src/contract-functions/signNetworkFee/signNetworkFee.ts +1 -0
  159. package/src/contract-functions/signStakeAndBake/__tests__/signStakeAndBake.test.ts +5 -4
  160. package/src/contract-functions/signStakeAndBake/handleApprove.ts +1 -0
  161. package/src/contract-functions/signStakeAndBake/index.ts +0 -1
  162. package/src/contract-functions/signStakeAndBake/signStakeAndBake.ts +15 -17
  163. package/src/contract-functions/signStakeAndBake/typed-data-builder.ts +6 -6
  164. package/src/contract-functions/signStakeAndBake/utils.ts +2 -1
  165. package/src/contract-functions/signStakeAndBake/validation.ts +5 -4
  166. package/src/contract-functions/unstakeLBTC/unstakeLBTC.ts +2 -1
  167. package/src/debug-api/btc-script-to-address.ts +1 -0
  168. package/src/debug-api/btc-tx-info.ts +2 -1
  169. package/src/debug-api/evm-by-btc-address.ts +1 -0
  170. package/src/defi/README.md +62 -33
  171. package/src/defi/defi-registry.stories.tsx +3 -1
  172. package/src/defi/defi-registry.ts +2 -1
  173. package/src/defi/index.ts +1 -2
  174. package/src/index.ts +34 -32
  175. package/src/metrics/get-additional-rewards.ts +3 -2
  176. package/src/metrics/get-lbtc-apy.ts +2 -1
  177. package/src/metrics/get-lbtc-stats.stories.tsx +2 -2
  178. package/src/metrics/get-lbtc-stats.ts +1 -0
  179. package/src/metrics/get-positions-summary.stories.tsx +4 -4
  180. package/src/metrics/get-positions-summary.ts +2 -1
  181. package/src/stories/arg-types.ts +1 -1
  182. package/src/tokens/abi/ASSET_ROUTER_ABI.ts +1 -1
  183. package/src/tokens/cross-chain-addresses.stories.tsx +16 -17
  184. package/src/tokens/denomination-utils.stories.tsx +6 -7
  185. package/src/tokens/getLbtcContractAddresses.stories.tsx +7 -8
  186. package/src/tokens/getTokenByAddress.stories.tsx +6 -7
  187. package/src/tokens/getTokenContractInfo.stories.tsx +9 -10
  188. package/src/tokens/isUpgradedContract.stories.tsx +4 -5
  189. package/src/tokens/lbtc-addresses.ts +1 -0
  190. package/src/tokens/token-addresses.ts +72 -49
  191. package/src/tokens/tokens.ts +8 -7
  192. package/src/utils/block.ts +1 -0
  193. package/src/utils/env.ts +1 -0
  194. package/src/utils/err.ts +3 -2
  195. package/src/utils/transaction-executor.ts +2 -1
  196. package/src/vaults/index.ts +14 -21
  197. package/src/vaults/lib/config.ts +1 -0
  198. package/src/vaults/lib/metrics/get-vault-apy.ts +2 -1
  199. package/src/vaults/lib/metrics/get-vault-points.ts +2 -1
  200. package/src/vaults/lib/metrics/get-vault-tvl.ts +3 -2
  201. package/src/vaults/lib/ops/deposit.ts +2 -1
  202. package/src/vaults/lib/ops/get-vault-deposits.ts +6 -5
  203. package/src/vaults/lib/ops/get-vault-withdrawals.ts +6 -5
  204. package/src/vaults/lib/ops/withdraw.ts +2 -1
package/CHANGELOG.md CHANGED
@@ -1,208 +1,212 @@
1
+ # 3.7.2
2
+ * **added stable support**
3
+
1
4
  # 3.7.1
5
+
2
6
  * **added monad support**
3
7
 
4
8
  # 3.7.0
5
9
 
6
- * **added custom signer support for flexible transaction signing:**
7
- * introduced `SignerAdapter` interface for custom transaction signing logic,
8
- * `redeemToken` and `unstakeLBTC` now accept either `provider` (legacy) or `signer` (custom) parameter,
9
- * backward compatible - existing provider-based code continues to work unchanged.
10
- * added `depositToken` function that triggers the deposit method on the LBTC contract,
11
- * replaced `token` parameter of `redeemToken` function with a pair of new parameters `tokenIn` (the token that is being redeemed) and `tokenOut` (the token received after redemption, defaults to `undefined` [**BTC**]),
12
- * introduced `fetchAllPaginated` utility to handle pagination across all endpoints,
13
- * added unified deposits support:
14
- * introduced `Deposit` interface to unify Direct BTC Deposits and Native Deposits APIs.
15
- * added `isNative` flag to distinguish between deposit types.
16
- * added fetchers: `fetchDirectDeposits` and `fetchNativeDeposits` (now uses `fetchAllPaginated` internally).
17
- * added unified `getDepositsByAddress` function to fetch and combine deposits from both APIs.
18
- * improved mapping helpers: `mapDirectBtcDeposit` and `mapNativeDeposit` to normalize fields such as `txHash`, `eventIndex`, `amount`, `blockTime`, `fromChainId`, `toChainId`, `toTokenAddress`, `toToken`, `sanctioned`, `claimTxHash`, and `notarizationWaitDur`.
19
- * added JSDoc for all deposit types and fetchers.
20
- * ensured robust error handling: failure of one API does not prevent fetching from the other.
21
- * renamed `signature` property to `proof`.
22
- * refactored unstakes fetching:
23
- * `fetchUnstakesByAddress` now uses `fetchAllPaginated` internally,
24
- * removed `unstakeDate` property from `Unstake` interface,
25
- * added `blockTime` property to `Unstake` to retain original timestamp,
26
- * added `isNative` flag to distinguish between unstakes (directly to BTC) and redemptions (to native chain).
27
- * `fromChainId` and `toChainId` clearly separated; `toChainId` is undefined for BTC unstakes,
28
- * fully typed JSDoc added for `Unstake`, `UnstakeEntry`, and fetchers,
29
- * public API `getUnstakesByAddress` added as a wrapper over the fetcher.
30
- * renamed tokens:
31
- * `Token.NativeLBTC` to `Token.BTCb` (`BTC.b`)
32
- * `Token.BTCB` to `Token.BTCBinance` (`BTCB` - Binance BTC wrapper)
33
- * deprecated `Token.BTCK` which will be sunset as soon as the Katana contracts are updated.
34
- * btc.b support
10
+ - **added custom signer support for flexible transaction signing:**
11
+ - introduced `SignerAdapter` interface for custom transaction signing logic,
12
+ - `redeemToken` and `unstakeLBTC` now accept either `provider` (legacy) or `signer` (custom) parameter,
13
+ - backward compatible - existing provider-based code continues to work unchanged.
14
+ - added `depositToken` function that triggers the deposit method on the LBTC contract,
15
+ - replaced `token` parameter of `redeemToken` function with a pair of new parameters `tokenIn` (the token that is being redeemed) and `tokenOut` (the token received after redemption, defaults to `undefined` [**BTC**]),
16
+ - introduced `fetchAllPaginated` utility to handle pagination across all endpoints,
17
+ - added unified deposits support:
18
+ - introduced `Deposit` interface to unify Direct BTC Deposits and Native Deposits APIs.
19
+ - added `isNative` flag to distinguish between deposit types.
20
+ - added fetchers: `fetchDirectDeposits` and `fetchNativeDeposits` (now uses `fetchAllPaginated` internally).
21
+ - added unified `getDepositsByAddress` function to fetch and combine deposits from both APIs.
22
+ - improved mapping helpers: `mapDirectBtcDeposit` and `mapNativeDeposit` to normalize fields such as `txHash`, `eventIndex`, `amount`, `blockTime`, `fromChainId`, `toChainId`, `toTokenAddress`, `toToken`, `sanctioned`, `claimTxHash`, and `notarizationWaitDur`.
23
+ - added JSDoc for all deposit types and fetchers.
24
+ - ensured robust error handling: failure of one API does not prevent fetching from the other.
25
+ - renamed `signature` property to `proof`.
26
+ - refactored unstakes fetching:
27
+ - `fetchUnstakesByAddress` now uses `fetchAllPaginated` internally,
28
+ - removed `unstakeDate` property from `Unstake` interface,
29
+ - added `blockTime` property to `Unstake` to retain original timestamp,
30
+ - added `isNative` flag to distinguish between unstakes (directly to BTC) and redemptions (to native chain).
31
+ - `fromChainId` and `toChainId` clearly separated; `toChainId` is undefined for BTC unstakes,
32
+ - fully typed JSDoc added for `Unstake`, `UnstakeEntry`, and fetchers,
33
+ - public API `getUnstakesByAddress` added as a wrapper over the fetcher.
34
+ - renamed tokens:
35
+ - `Token.NativeLBTC` to `Token.BTCb` (`BTC.b`)
36
+ - `Token.BTCB` to `Token.BTCBinance` (`BTCB` - Binance BTC wrapper)
37
+ - deprecated `Token.BTCK` which will be sunset as soon as the Katana contracts are updated.
38
+ - btc.b support
35
39
  - katana, megaETH
36
40
 
37
41
  # 3.6.23
38
42
 
39
- * added Katana chain support to `getBasculeDepositStatus` with proper GMP payload decoding and mintID calculation.
43
+ - added Katana chain support to `getBasculeDepositStatus` with proper GMP payload decoding and mintID calculation.
40
44
 
41
45
  # 3.6.21
42
46
 
43
- * changed sevenseas api requests to proxy through bff
47
+ - changed sevenseas api requests to proxy through bff
44
48
 
45
49
  # 3.6.20
46
50
 
47
- * updated LBTC token contract addresses for staging environment.
51
+ - updated LBTC token contract addresses for staging environment.
48
52
 
49
53
  # 3.6.19
50
54
 
51
- * added Starknet-specific logic for BTC deposit address generation.
52
- * added token contract addresses for Starknet Sepolia.
55
+ - added Starknet-specific logic for BTC deposit address generation.
56
+ - added token contract addresses for Starknet Sepolia.
53
57
 
54
58
  # 3.6.18
55
59
 
56
- * removed deprecated rewards (BABY) logic,
57
- * introduced `IPointsBase` interface to capture **common fields** shared across all seasons.
58
- * added `IPointsByAddressSeason1` interface for Season 1 specific points:
59
- * `okxPoints`
60
- * `flashEvent1Points`
61
- * `flashEvent2Points`
62
- * added `IPointsByAddressSeason2` interface for Season 2 specific points:
63
- * `refereePoints`
64
- * `checkinPoints`
65
- * made `totalWithoutBadgesPoints` optional in the base interface but required in Season 1.
66
- * `getPointsByAddress` function now accepts a `season` parameter (`1 | 2`) and returns the correct typed object based on season.
67
- * added convenience wrappers:
68
- * `getLuxSeason1Points()` → returns `IPointsByAddressSeason1`
69
- * `getLuxSeason2Points()` → returns `IPointsByAddressSeason2`
70
- * improved type safety to prevent access to season-specific fields incorrectly.
71
- * default season is now 2 when no `season` is provided.
72
- * updated README.md.
60
+ - removed deprecated rewards (BABY) logic,
61
+ - introduced `IPointsBase` interface to capture **common fields** shared across all seasons.
62
+ - added `IPointsByAddressSeason1` interface for Season 1 specific points:
63
+ - `okxPoints`
64
+ - `flashEvent1Points`
65
+ - `flashEvent2Points`
66
+ - added `IPointsByAddressSeason2` interface for Season 2 specific points:
67
+ - `refereePoints`
68
+ - `checkinPoints`
69
+ - made `totalWithoutBadgesPoints` optional in the base interface but required in Season 1.
70
+ - `getPointsByAddress` function now accepts a `season` parameter (`1 | 2`) and returns the correct typed object based on season.
71
+ - added convenience wrappers:
72
+ - `getLuxSeason1Points()` → returns `IPointsByAddressSeason1`
73
+ - `getLuxSeason2Points()` → returns `IPointsByAddressSeason2`
74
+ - improved type safety to prevent access to season-specific fields incorrectly.
75
+ - default season is now 2 when no `season` is provided.
76
+ - updated README.md.
73
77
 
74
78
  # 3.6.17
75
79
 
76
- * added support for season 2 points - added `season` parameter to the `getPoinstByAddress`.
80
+ - added support for season 2 points - added `season` parameter to the `getPoinstByAddress`.
77
81
 
78
82
  # 3.6.16
79
83
 
80
- * season 1 points API changes (removed campaign requests, now part of the same API).
84
+ - season 1 points API changes (removed campaign requests, now part of the same API).
81
85
 
82
86
  # 3.6.15
83
87
 
84
- * added `bob` chain,
85
- * added token contract address on `bob`.
88
+ - added `bob` chain,
89
+ - added token contract address on `bob`.
86
90
 
87
91
  # 3.6.14
88
92
 
89
- * fixed the issue with unused and unpublished dependencies.
93
+ - fixed the issue with unused and unpublished dependencies.
90
94
 
91
95
  # 3.6.13
92
96
 
93
- * added new `token` parameter to the `signStakeAndBake` function,
94
- * by default, `token` is set to `"BTC"`, and the value is automatically converted to LBTC using the current exchange ratio,
95
- * if `token` is explicitly set to `"LBTC"`, the value is used as-is (no conversion).
97
+ - added new `token` parameter to the `signStakeAndBake` function,
98
+ - by default, `token` is set to `"BTC"`, and the value is automatically converted to LBTC using the current exchange ratio,
99
+ - if `token` is explicitly set to `"LBTC"`, the value is used as-is (no conversion).
96
100
 
97
101
  # 3.6.12
98
102
 
99
- * total points earned by address are taken from the API and not calculated any more.
103
+ - total points earned by address are taken from the API and not calculated any more.
100
104
 
101
105
  # 3.6.11
102
106
 
103
- * Add CHANGELOG.md to published package.
107
+ - Add CHANGELOG.md to published package.
104
108
 
105
109
  # 3.6.10
106
110
 
107
- * `Token.BTCK` is now an alias of `Token.NativeLBTC` (recommended).
111
+ - `Token.BTCK` is now an alias of `Token.NativeLBTC` (recommended).
108
112
 
109
113
  # 3.6.9
110
114
 
111
- * fixed issue with getting the deposit address on Sui and Solana networks.
115
+ - fixed issue with getting the deposit address on Sui and Solana networks.
112
116
 
113
117
  # 3.6.8
114
118
 
115
- * reverted changes from 3.6.6 - the Bascule address has been fixed in the contract.
119
+ - reverted changes from 3.6.6 - the Bascule address has been fixed in the contract.
116
120
 
117
121
  # 3.6.7
118
122
 
119
- * added new `getMinRedeemAmount` function that return the min redeem amount.
123
+ - added new `getMinRedeemAmount` function that return the min redeem amount.
120
124
 
121
125
  # 3.6.6
122
126
 
123
- * disabled Bascule check for Katana
127
+ - disabled Bascule check for Katana
124
128
 
125
129
  # 3.6.5
126
130
 
127
- * fixed issue with the LBTC token contract address on Etherlink.
131
+ - fixed issue with the LBTC token contract address on Etherlink.
128
132
 
129
133
  # 3.6.4
130
134
 
131
- * added `getEstimatedApy` function,
132
- * added new `inProgress` field to `PositionsSummary` type of `getPositionsSummary`.
135
+ - added `getEstimatedApy` function,
136
+ - added new `inProgress` field to `PositionsSummary` type of `getPositionsSummary`.
133
137
 
134
138
  # 3.6.3
135
139
 
136
- * updated rewards API url and schema for `getRewardsInfo`,
137
- * renamed `getRewardsInfo` to `getPositionsSummary`,
138
- * added `getApy` function and remove `apr` from `getLBTCStats`,
139
- * added `getAdditionalRewards` function.
140
+ - updated rewards API url and schema for `getRewardsInfo`,
141
+ - renamed `getRewardsInfo` to `getPositionsSummary`,
142
+ - added `getApy` function and remove `apr` from `getLBTCStats`,
143
+ - added `getAdditionalRewards` function.
140
144
 
141
145
  # 3.6.2
142
146
 
143
- * updated rewards API urls for `getRewardsInfo`.
147
+ - updated rewards API urls for `getRewardsInfo`.
144
148
 
145
149
  # 3.6.1
146
150
 
147
- * changed configuration for upgraded LBTC and BTCK (Native LBTC) on Tatara chain
151
+ - changed configuration for upgraded LBTC and BTCK (Native LBTC) on Tatara chain
148
152
  (stage and testnet),
149
- * added auto-detection for upgraded LBTC and BTCK contracts,
150
- * updated redeem fee logic based on the recent ABI changes,
151
- * `getTokenContractInfo` in now an async function,
152
- * refactored the internal `AbiFor` type and upgraded contracts logic,
153
- * added `accountAddress` and `partnerId` params to the `getLBTCStats` function.
153
+ - added auto-detection for upgraded LBTC and BTCK contracts,
154
+ - updated redeem fee logic based on the recent ABI changes,
155
+ - `getTokenContractInfo` in now an async function,
156
+ - refactored the internal `AbiFor` type and upgraded contracts logic,
157
+ - added `accountAddress` and `partnerId` params to the `getLBTCStats` function.
154
158
 
155
159
  # 3.6.0
156
160
 
157
- * `Token.LBTC` ABI changes to `stLBTC` for specified chains: `Sepolia`,
158
- * added new `Token.NativeLBTC`,
159
- * changed `getLBTCMintingFee` and `getMintingFee` so it either takes the value
161
+ - `Token.LBTC` ABI changes to `stLBTC` for specified chains: `Sepolia`,
162
+ - added new `Token.NativeLBTC`,
163
+ - changed `getLBTCMintingFee` and `getMintingFee` so it either takes the value
160
164
  from the token contract (old version) or `AssetRouter` contract (new version),
161
- * renamed `getBurningFee` to `getRedeemFee` and refactored it so it takes the
165
+ - renamed `getBurningFee` to `getRedeemFee` and refactored it so it takes the
162
166
  fee values from the `AssetRouter` or the token contract (old version).
163
167
 
164
168
  # 3.5.12
165
169
 
166
- * added `tac` chain and bridge eth - tac bridge (OFT).
170
+ - added `tac` chain and bridge eth - tac bridge (OFT).
167
171
 
168
172
  # 3.5.11
169
173
 
170
- * updated the BFF API urls.
174
+ - updated the BFF API urls.
171
175
 
172
176
  # 3.5.10
173
177
 
174
- * added `token_address` param to generate and get deposit address functions.
178
+ - added `token_address` param to generate and get deposit address functions.
175
179
 
176
180
  # 3.5.9
177
181
 
178
- * changed LBTC addresses for `dev` env.
182
+ - changed LBTC addresses for `dev` env.
179
183
 
180
184
  # 3.5.8
181
185
 
182
- * fixed exports for `getExchangeRatio`
186
+ - fixed exports for `getExchangeRatio`
183
187
 
184
188
  # 3.5.7
185
189
 
186
- * added `getRewardsInfo` function that retrieves the information about earned
190
+ - added `getRewardsInfo` function that retrieves the information about earned
187
191
  rewards (yield),
188
- * added `apr` to the `getLBTCStats` function,
189
- * added `getExchangeRatio` function that gets the exchange ratios of LBTC:BTC
192
+ - added `apr` to the `getLBTCStats` function,
193
+ - added `getExchangeRatio` function that gets the exchange ratios of LBTC:BTC
190
194
  and BTC:LBTC.
191
195
 
192
196
  # 3.5.6
193
197
 
194
- * added support for Katana chain.
198
+ - added support for Katana chain.
195
199
 
196
200
  # 3.4.0
197
201
 
198
- * bug fixes,
199
- * added `getVaultDeposits` and `getVaultWithdrawals`.
202
+ - bug fixes,
203
+ - added `getVaultDeposits` and `getVaultWithdrawals`.
200
204
 
201
205
  # 3.2.0
202
206
 
203
- * added metrics `getVaultTVL`, `getVaultApy`, `getLBTCStats`.
207
+ - added metrics `getVaultTVL`, `getVaultApy`, `getLBTCStats`.
204
208
 
205
209
  # 3.1.0
206
210
 
207
- * added function to manually deposit / withdraw to and from the DeFi vault,
208
- * switched to `viem`.
211
+ - added function to manually deposit / withdraw to and from the DeFi vault,
212
+ - switched to `viem`.