@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.
- package/CHANGELOG.md +102 -98
- package/README.md +164 -160
- package/dist/api-functions/generateDepositBtcAddress/generateDepositBtcAddress.d.ts.map +1 -1
- package/dist/api-functions/get-badges-by-address/get-badges-by-address.d.ts +1 -1
- package/dist/api-functions/get-badges-by-address/get-badges-by-address.d.ts.map +1 -1
- package/dist/api-functions/getDepositBtcAddress/getDepositBtcAddress.d.ts +1 -1
- package/dist/api-functions/getDepositBtcAddress/getDepositBtcAddress.d.ts.map +1 -1
- package/dist/api-functions/getDepositBtcAddress/make-request.d.ts.map +1 -1
- package/dist/api-functions/getDepositsByAddress/getDepositsByAddress.d.ts.map +1 -1
- package/dist/api-functions/getLBTCExchangeRate/get-exchange-ratio.d.ts.map +1 -1
- package/dist/api-functions/getLBTCExchangeRate/getLBTCExchangeRate.d.ts.map +1 -1
- package/dist/api-functions/getLBTCExchangeRate/index.d.ts +1 -1
- package/dist/api-functions/getLBTCExchangeRate/index.d.ts.map +1 -1
- package/dist/api-functions/getPointsByAddress/getPointsByAddress.d.ts.map +1 -1
- package/dist/api-functions/getUnstakesByAddress/getUnstakesByAddress.d.ts.map +1 -1
- package/dist/api-functions/getUserStakeAndBakeSignature/getUserStakeAndBakeSignature.d.ts.map +1 -1
- package/dist/api-functions/setReferral/setReferral.d.ts.map +1 -1
- package/dist/api-functions/storeNetworkFeeSignature/storeNetworkFeeSignature.d.ts.map +1 -1
- package/dist/api-functions/storeStakeAndBakeSignature/storeStakeAndBakeSignature.d.ts.map +1 -1
- package/dist/bridge/index.d.ts +2 -2
- package/dist/bridge/index.d.ts.map +1 -1
- package/dist/bridge/lib/bridge.d.ts.map +1 -1
- package/dist/bridge/lib/ccip-bridge.d.ts.map +1 -1
- package/dist/bridge/lib/ccip-config.d.ts +1 -1
- package/dist/bridge/lib/ccip-config.d.ts.map +1 -1
- package/dist/bridge/lib/config.d.ts.map +1 -1
- package/dist/bridge/lib/oft-bridge.d.ts.map +1 -1
- package/dist/clients/evm-signer-adapter.d.ts.map +1 -1
- package/dist/clients/public-client.d.ts.map +1 -1
- package/dist/clients/rpc-url-config.d.ts.map +1 -1
- package/dist/clients/wallet-client.d.ts.map +1 -1
- package/dist/common/blockchain-identifier.d.ts +2 -0
- package/dist/common/blockchain-identifier.d.ts.map +1 -1
- package/dist/common/chains.d.ts +191 -97
- package/dist/common/chains.d.ts.map +1 -1
- package/dist/common/chains.stories.d.ts.map +1 -1
- package/dist/common/contract-info.d.ts.map +1 -1
- package/dist/common/parameters.d.ts.map +1 -1
- package/dist/contract-functions/approveLBTC/approveLBTC.d.ts.map +1 -1
- package/dist/contract-functions/approveToken/approveToken.d.ts +1 -1
- package/dist/contract-functions/approveToken/approveToken.d.ts.map +1 -1
- package/dist/contract-functions/claimLBTC/claimLBTC.d.ts.map +1 -1
- package/dist/contract-functions/claimUnstakeRedeem/claimUnstakeRedeem.d.ts.map +1 -1
- package/dist/contract-functions/deposit/depositToken.d.ts.map +1 -1
- package/dist/contract-functions/getBasculeDepositStatus/getBasculeDepositStatus.d.ts.map +1 -1
- package/dist/contract-functions/getBasculeDepositStatus/getBasculeDepositStatus.stories.d.ts.map +1 -1
- package/dist/contract-functions/getBasculeDepositStatus/index.d.ts +1 -1
- package/dist/contract-functions/getBasculeDepositStatus/index.d.ts.map +1 -1
- package/dist/contract-functions/getLBTCMintingFee/getLBTCMintingFee.d.ts.map +1 -1
- package/dist/contract-functions/getLBTCMintingFee/getLBTCMintingFee.stories.d.ts.map +1 -1
- package/dist/contract-functions/getLBTCTotalSupply/getLBTCTotalSupply.d.ts.map +1 -1
- package/dist/contract-functions/getPermitNonce/getPermitNonce.d.ts.map +1 -1
- package/dist/contract-functions/getShareValue/getShareValue.d.ts.map +1 -1
- package/dist/contract-functions/getSharesByAddress/getSharesByAddress.d.ts.map +1 -1
- package/dist/contract-functions/getStakeAndBakeFee/getStakeAndBakeFee.d.ts.map +1 -1
- package/dist/contract-functions/index.d.ts +2 -2
- package/dist/contract-functions/index.d.ts.map +1 -1
- package/dist/contract-functions/signNetworkFee/signNetworkFee.d.ts.map +1 -1
- package/dist/contract-functions/signStakeAndBake/handleApprove.d.ts.map +1 -1
- package/dist/contract-functions/signStakeAndBake/signStakeAndBake.d.ts.map +1 -1
- package/dist/contract-functions/signStakeAndBake/typed-data-builder.d.ts.map +1 -1
- package/dist/contract-functions/signStakeAndBake/utils.d.ts.map +1 -1
- package/dist/contract-functions/signStakeAndBake/validation.d.ts.map +1 -1
- package/dist/contract-functions/unstakeLBTC/unstakeLBTC.d.ts.map +1 -1
- package/dist/debug-api/btc-script-to-address.d.ts.map +1 -1
- package/dist/debug-api/btc-tx-info.d.ts.map +1 -1
- package/dist/debug-api/evm-by-btc-address.d.ts.map +1 -1
- package/dist/defi/defi-registry.d.ts +1 -1
- package/dist/defi/defi-registry.d.ts.map +1 -1
- package/dist/defi/defi-registry.stories.d.ts.map +1 -1
- package/dist/defi/index.d.ts +1 -1
- package/dist/defi/index.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +51 -49
- package/dist/index2.cjs +54 -54
- package/dist/index2.js +14414 -11251
- package/dist/metrics/get-additional-rewards.d.ts +1 -1
- package/dist/metrics/get-additional-rewards.d.ts.map +1 -1
- package/dist/metrics/get-lbtc-apy.d.ts +1 -1
- package/dist/metrics/get-lbtc-apy.d.ts.map +1 -1
- package/dist/metrics/get-lbtc-stats.d.ts.map +1 -1
- package/dist/metrics/get-lbtc-stats.stories.d.ts.map +1 -1
- package/dist/metrics/get-positions-summary.d.ts.map +1 -1
- package/dist/metrics/get-positions-summary.stories.d.ts.map +1 -1
- package/dist/stories/arg-types.d.ts.map +1 -1
- package/dist/tokens/lbtc-addresses.d.ts.map +1 -1
- package/dist/tokens/token-addresses.d.ts +1 -1
- package/dist/tokens/token-addresses.d.ts.map +1 -1
- package/dist/tokens/tokens.d.ts +5 -5
- package/dist/tokens/tokens.d.ts.map +1 -1
- package/dist/utils/block.d.ts.map +1 -1
- package/dist/utils/env.d.ts.map +1 -1
- package/dist/utils/err.d.ts +2 -2
- package/dist/utils/err.d.ts.map +1 -1
- package/dist/utils/transaction-executor.d.ts.map +1 -1
- package/dist/vaults/index.d.ts +5 -5
- package/dist/vaults/index.d.ts.map +1 -1
- package/dist/vaults/lib/config.d.ts.map +1 -1
- package/dist/vaults/lib/metrics/get-vault-apy.d.ts.map +1 -1
- package/dist/vaults/lib/metrics/get-vault-points.d.ts.map +1 -1
- package/dist/vaults/lib/metrics/get-vault-tvl.d.ts.map +1 -1
- package/dist/vaults/lib/ops/deposit.d.ts.map +1 -1
- package/dist/vaults/lib/ops/get-vault-deposits.d.ts.map +1 -1
- package/dist/vaults/lib/ops/get-vault-withdrawals.d.ts.map +1 -1
- package/dist/vaults/lib/ops/withdraw.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/api-functions/generateDepositBtcAddress/generateDepositBtcAddress.ts +4 -3
- package/src/api-functions/get-badges-by-address/get-badges-by-address.ts +2 -1
- package/src/api-functions/getDepositBtcAddress/getDepositBtcAddress.test.ts +3 -2
- package/src/api-functions/getDepositBtcAddress/getDepositBtcAddress.ts +3 -2
- package/src/api-functions/getDepositBtcAddress/make-request.ts +2 -1
- package/src/api-functions/getDepositsByAddress/getDepositsByAddress.ts +4 -3
- package/src/api-functions/getLBTCExchangeRate/get-exchange-ratio.ts +2 -1
- package/src/api-functions/getLBTCExchangeRate/getLBTCExchangeRate.ts +1 -0
- package/src/api-functions/getLBTCExchangeRate/index.ts +1 -1
- package/src/api-functions/getPointsByAddress/getPointsByAddress.ts +1 -0
- package/src/api-functions/getUnstakesByAddress/getUnstakesByAddress.ts +5 -4
- package/src/api-functions/getUserStakeAndBakeSignature/getUserStakeAndBakeSignature.ts +1 -0
- package/src/api-functions/setReferral/setReferral.ts +1 -0
- package/src/api-functions/storeNetworkFeeSignature/storeNetworkFeeSignature.ts +1 -0
- package/src/api-functions/storeStakeAndBakeSignature/storeStakeAndBakeSignature.ts +1 -0
- package/src/bridge/index.ts +2 -3
- package/src/bridge/lib/bridge.ts +3 -2
- package/src/bridge/lib/ccip-bridge.ts +5 -4
- package/src/bridge/lib/ccip-config.ts +2 -1
- package/src/bridge/lib/config.ts +1 -0
- package/src/bridge/lib/oft-bridge.ts +3 -2
- package/src/clients/evm-signer-adapter.ts +4 -3
- package/src/clients/public-client.ts +1 -0
- package/src/clients/rpc-url-config.ts +4 -1
- package/src/clients/wallet-client.ts +3 -2
- package/src/common/blockchain-identifier.ts +14 -2
- package/src/common/chains.stories.tsx +2 -2
- package/src/common/chains.ts +54 -10
- package/src/common/contract-info.ts +1 -0
- package/src/common/parameters.ts +1 -0
- package/src/contract-functions/approveLBTC/approveLBTC.ts +1 -0
- package/src/contract-functions/approveToken/approveToken.ts +3 -2
- package/src/contract-functions/approveToken/index.ts +0 -1
- package/src/contract-functions/claimLBTC/claimLBTC.ts +1 -0
- package/src/contract-functions/claimUnstakeRedeem/claimUnstakeRedeem.ts +6 -5
- package/src/contract-functions/claimUnstakeRedeem/index.ts +0 -1
- package/src/contract-functions/deposit/depositToken.ts +7 -6
- package/src/contract-functions/getBasculeDepositStatus/getBasculeDepositStatus.stories.tsx +6 -6
- package/src/contract-functions/getBasculeDepositStatus/getBasculeDepositStatus.ts +14 -9
- package/src/contract-functions/getBasculeDepositStatus/index.ts +1 -1
- package/src/contract-functions/getLBTCMintingFee/getLBTCMintingFee.stories.tsx +1 -1
- package/src/contract-functions/getLBTCMintingFee/getLBTCMintingFee.ts +1 -0
- package/src/contract-functions/getLBTCTotalSupply/getLBTCTotalSupply.ts +1 -0
- package/src/contract-functions/getPermitNonce/getPermitNonce.ts +1 -0
- package/src/contract-functions/getShareValue/getShareValue.ts +2 -1
- package/src/contract-functions/getSharesByAddress/getSharesByAddress.ts +2 -1
- package/src/contract-functions/getStakeAndBakeFee/__tests__/getStakeAndBakeFee.test.ts +8 -4
- package/src/contract-functions/getStakeAndBakeFee/getStakeAndBakeFee.tsx +1 -0
- package/src/contract-functions/index.ts +2 -2
- package/src/contract-functions/signNetworkFee/signNetworkFee.ts +1 -0
- package/src/contract-functions/signStakeAndBake/__tests__/signStakeAndBake.test.ts +5 -4
- package/src/contract-functions/signStakeAndBake/handleApprove.ts +1 -0
- package/src/contract-functions/signStakeAndBake/index.ts +0 -1
- package/src/contract-functions/signStakeAndBake/signStakeAndBake.ts +15 -17
- package/src/contract-functions/signStakeAndBake/typed-data-builder.ts +6 -6
- package/src/contract-functions/signStakeAndBake/utils.ts +2 -1
- package/src/contract-functions/signStakeAndBake/validation.ts +5 -4
- package/src/contract-functions/unstakeLBTC/unstakeLBTC.ts +2 -1
- package/src/debug-api/btc-script-to-address.ts +1 -0
- package/src/debug-api/btc-tx-info.ts +2 -1
- package/src/debug-api/evm-by-btc-address.ts +1 -0
- package/src/defi/README.md +62 -33
- package/src/defi/defi-registry.stories.tsx +3 -1
- package/src/defi/defi-registry.ts +2 -1
- package/src/defi/index.ts +1 -2
- package/src/index.ts +34 -32
- package/src/metrics/get-additional-rewards.ts +3 -2
- package/src/metrics/get-lbtc-apy.ts +2 -1
- package/src/metrics/get-lbtc-stats.stories.tsx +2 -2
- package/src/metrics/get-lbtc-stats.ts +1 -0
- package/src/metrics/get-positions-summary.stories.tsx +4 -4
- package/src/metrics/get-positions-summary.ts +2 -1
- package/src/stories/arg-types.ts +1 -1
- package/src/tokens/abi/ASSET_ROUTER_ABI.ts +1 -1
- package/src/tokens/cross-chain-addresses.stories.tsx +16 -17
- package/src/tokens/denomination-utils.stories.tsx +6 -7
- package/src/tokens/getLbtcContractAddresses.stories.tsx +7 -8
- package/src/tokens/getTokenByAddress.stories.tsx +6 -7
- package/src/tokens/getTokenContractInfo.stories.tsx +9 -10
- package/src/tokens/isUpgradedContract.stories.tsx +4 -5
- package/src/tokens/lbtc-addresses.ts +1 -0
- package/src/tokens/token-addresses.ts +72 -49
- package/src/tokens/tokens.ts +8 -7
- package/src/utils/block.ts +1 -0
- package/src/utils/env.ts +1 -0
- package/src/utils/err.ts +3 -2
- package/src/utils/transaction-executor.ts +2 -1
- package/src/vaults/index.ts +14 -21
- package/src/vaults/lib/config.ts +1 -0
- package/src/vaults/lib/metrics/get-vault-apy.ts +2 -1
- package/src/vaults/lib/metrics/get-vault-points.ts +2 -1
- package/src/vaults/lib/metrics/get-vault-tvl.ts +3 -2
- package/src/vaults/lib/ops/deposit.ts +2 -1
- package/src/vaults/lib/ops/get-vault-deposits.ts +6 -5
- package/src/vaults/lib/ops/get-vault-withdrawals.ts +6 -5
- 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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
|
-
|
|
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
|
-
|
|
47
|
+
- changed sevenseas api requests to proxy through bff
|
|
44
48
|
|
|
45
49
|
# 3.6.20
|
|
46
50
|
|
|
47
|
-
|
|
51
|
+
- updated LBTC token contract addresses for staging environment.
|
|
48
52
|
|
|
49
53
|
# 3.6.19
|
|
50
54
|
|
|
51
|
-
|
|
52
|
-
|
|
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
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
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
|
-
|
|
80
|
+
- added support for season 2 points - added `season` parameter to the `getPoinstByAddress`.
|
|
77
81
|
|
|
78
82
|
# 3.6.16
|
|
79
83
|
|
|
80
|
-
|
|
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
|
-
|
|
85
|
-
|
|
88
|
+
- added `bob` chain,
|
|
89
|
+
- added token contract address on `bob`.
|
|
86
90
|
|
|
87
91
|
# 3.6.14
|
|
88
92
|
|
|
89
|
-
|
|
93
|
+
- fixed the issue with unused and unpublished dependencies.
|
|
90
94
|
|
|
91
95
|
# 3.6.13
|
|
92
96
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
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
|
-
|
|
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
|
-
|
|
107
|
+
- Add CHANGELOG.md to published package.
|
|
104
108
|
|
|
105
109
|
# 3.6.10
|
|
106
110
|
|
|
107
|
-
|
|
111
|
+
- `Token.BTCK` is now an alias of `Token.NativeLBTC` (recommended).
|
|
108
112
|
|
|
109
113
|
# 3.6.9
|
|
110
114
|
|
|
111
|
-
|
|
115
|
+
- fixed issue with getting the deposit address on Sui and Solana networks.
|
|
112
116
|
|
|
113
117
|
# 3.6.8
|
|
114
118
|
|
|
115
|
-
|
|
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
|
-
|
|
123
|
+
- added new `getMinRedeemAmount` function that return the min redeem amount.
|
|
120
124
|
|
|
121
125
|
# 3.6.6
|
|
122
126
|
|
|
123
|
-
|
|
127
|
+
- disabled Bascule check for Katana
|
|
124
128
|
|
|
125
129
|
# 3.6.5
|
|
126
130
|
|
|
127
|
-
|
|
131
|
+
- fixed issue with the LBTC token contract address on Etherlink.
|
|
128
132
|
|
|
129
133
|
# 3.6.4
|
|
130
134
|
|
|
131
|
-
|
|
132
|
-
|
|
135
|
+
- added `getEstimatedApy` function,
|
|
136
|
+
- added new `inProgress` field to `PositionsSummary` type of `getPositionsSummary`.
|
|
133
137
|
|
|
134
138
|
# 3.6.3
|
|
135
139
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
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
|
-
|
|
147
|
+
- updated rewards API urls for `getRewardsInfo`.
|
|
144
148
|
|
|
145
149
|
# 3.6.1
|
|
146
150
|
|
|
147
|
-
|
|
151
|
+
- changed configuration for upgraded LBTC and BTCK (Native LBTC) on Tatara chain
|
|
148
152
|
(stage and testnet),
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
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
|
-
|
|
158
|
-
|
|
159
|
-
|
|
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
|
-
|
|
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
|
-
|
|
170
|
+
- added `tac` chain and bridge eth - tac bridge (OFT).
|
|
167
171
|
|
|
168
172
|
# 3.5.11
|
|
169
173
|
|
|
170
|
-
|
|
174
|
+
- updated the BFF API urls.
|
|
171
175
|
|
|
172
176
|
# 3.5.10
|
|
173
177
|
|
|
174
|
-
|
|
178
|
+
- added `token_address` param to generate and get deposit address functions.
|
|
175
179
|
|
|
176
180
|
# 3.5.9
|
|
177
181
|
|
|
178
|
-
|
|
182
|
+
- changed LBTC addresses for `dev` env.
|
|
179
183
|
|
|
180
184
|
# 3.5.8
|
|
181
185
|
|
|
182
|
-
|
|
186
|
+
- fixed exports for `getExchangeRatio`
|
|
183
187
|
|
|
184
188
|
# 3.5.7
|
|
185
189
|
|
|
186
|
-
|
|
190
|
+
- added `getRewardsInfo` function that retrieves the information about earned
|
|
187
191
|
rewards (yield),
|
|
188
|
-
|
|
189
|
-
|
|
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
|
-
|
|
198
|
+
- added support for Katana chain.
|
|
195
199
|
|
|
196
200
|
# 3.4.0
|
|
197
201
|
|
|
198
|
-
|
|
199
|
-
|
|
202
|
+
- bug fixes,
|
|
203
|
+
- added `getVaultDeposits` and `getVaultWithdrawals`.
|
|
200
204
|
|
|
201
205
|
# 3.2.0
|
|
202
206
|
|
|
203
|
-
|
|
207
|
+
- added metrics `getVaultTVL`, `getVaultApy`, `getLBTCStats`.
|
|
204
208
|
|
|
205
209
|
# 3.1.0
|
|
206
210
|
|
|
207
|
-
|
|
208
|
-
|
|
211
|
+
- added function to manually deposit / withdraw to and from the DeFi vault,
|
|
212
|
+
- switched to `viem`.
|