@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.
- package/CHANGELOG.md +106 -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 +3 -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 +4 -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 +14557 -11391
- 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 +20 -7
- 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 +17 -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,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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
51
|
+
- changed sevenseas api requests to proxy through bff
|
|
44
52
|
|
|
45
53
|
# 3.6.20
|
|
46
54
|
|
|
47
|
-
|
|
55
|
+
- updated LBTC token contract addresses for staging environment.
|
|
48
56
|
|
|
49
57
|
# 3.6.19
|
|
50
58
|
|
|
51
|
-
|
|
52
|
-
|
|
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
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
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
|
-
|
|
84
|
+
- added support for season 2 points - added `season` parameter to the `getPoinstByAddress`.
|
|
77
85
|
|
|
78
86
|
# 3.6.16
|
|
79
87
|
|
|
80
|
-
|
|
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
|
-
|
|
85
|
-
|
|
92
|
+
- added `bob` chain,
|
|
93
|
+
- added token contract address on `bob`.
|
|
86
94
|
|
|
87
95
|
# 3.6.14
|
|
88
96
|
|
|
89
|
-
|
|
97
|
+
- fixed the issue with unused and unpublished dependencies.
|
|
90
98
|
|
|
91
99
|
# 3.6.13
|
|
92
100
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
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
|
-
|
|
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
|
-
|
|
111
|
+
- Add CHANGELOG.md to published package.
|
|
104
112
|
|
|
105
113
|
# 3.6.10
|
|
106
114
|
|
|
107
|
-
|
|
115
|
+
- `Token.BTCK` is now an alias of `Token.NativeLBTC` (recommended).
|
|
108
116
|
|
|
109
117
|
# 3.6.9
|
|
110
118
|
|
|
111
|
-
|
|
119
|
+
- fixed issue with getting the deposit address on Sui and Solana networks.
|
|
112
120
|
|
|
113
121
|
# 3.6.8
|
|
114
122
|
|
|
115
|
-
|
|
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
|
-
|
|
127
|
+
- added new `getMinRedeemAmount` function that return the min redeem amount.
|
|
120
128
|
|
|
121
129
|
# 3.6.6
|
|
122
130
|
|
|
123
|
-
|
|
131
|
+
- disabled Bascule check for Katana
|
|
124
132
|
|
|
125
133
|
# 3.6.5
|
|
126
134
|
|
|
127
|
-
|
|
135
|
+
- fixed issue with the LBTC token contract address on Etherlink.
|
|
128
136
|
|
|
129
137
|
# 3.6.4
|
|
130
138
|
|
|
131
|
-
|
|
132
|
-
|
|
139
|
+
- added `getEstimatedApy` function,
|
|
140
|
+
- added new `inProgress` field to `PositionsSummary` type of `getPositionsSummary`.
|
|
133
141
|
|
|
134
142
|
# 3.6.3
|
|
135
143
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
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
|
-
|
|
151
|
+
- updated rewards API urls for `getRewardsInfo`.
|
|
144
152
|
|
|
145
153
|
# 3.6.1
|
|
146
154
|
|
|
147
|
-
|
|
155
|
+
- changed configuration for upgraded LBTC and BTCK (Native LBTC) on Tatara chain
|
|
148
156
|
(stage and testnet),
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
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
|
-
|
|
158
|
-
|
|
159
|
-
|
|
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
|
-
|
|
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
|
-
|
|
174
|
+
- added `tac` chain and bridge eth - tac bridge (OFT).
|
|
167
175
|
|
|
168
176
|
# 3.5.11
|
|
169
177
|
|
|
170
|
-
|
|
178
|
+
- updated the BFF API urls.
|
|
171
179
|
|
|
172
180
|
# 3.5.10
|
|
173
181
|
|
|
174
|
-
|
|
182
|
+
- added `token_address` param to generate and get deposit address functions.
|
|
175
183
|
|
|
176
184
|
# 3.5.9
|
|
177
185
|
|
|
178
|
-
|
|
186
|
+
- changed LBTC addresses for `dev` env.
|
|
179
187
|
|
|
180
188
|
# 3.5.8
|
|
181
189
|
|
|
182
|
-
|
|
190
|
+
- fixed exports for `getExchangeRatio`
|
|
183
191
|
|
|
184
192
|
# 3.5.7
|
|
185
193
|
|
|
186
|
-
|
|
194
|
+
- added `getRewardsInfo` function that retrieves the information about earned
|
|
187
195
|
rewards (yield),
|
|
188
|
-
|
|
189
|
-
|
|
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
|
-
|
|
202
|
+
- added support for Katana chain.
|
|
195
203
|
|
|
196
204
|
# 3.4.0
|
|
197
205
|
|
|
198
|
-
|
|
199
|
-
|
|
206
|
+
- bug fixes,
|
|
207
|
+
- added `getVaultDeposits` and `getVaultWithdrawals`.
|
|
200
208
|
|
|
201
209
|
# 3.2.0
|
|
202
210
|
|
|
203
|
-
|
|
211
|
+
- added metrics `getVaultTVL`, `getVaultApy`, `getLBTCStats`.
|
|
204
212
|
|
|
205
213
|
# 3.1.0
|
|
206
214
|
|
|
207
|
-
|
|
208
|
-
|
|
215
|
+
- added function to manually deposit / withdraw to and from the DeFi vault,
|
|
216
|
+
- switched to `viem`.
|