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