@lombard.finance/sdk 3.7.1 → 3.7.3

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