@lombard.finance/sdk 3.6.9 → 3.6.11
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 +108 -0
- package/dist/index2.cjs +46 -46
- package/dist/index2.js +2523 -2526
- package/package.json +4 -2
- package/src/api-functions/getDepositBtcAddress/getDepositBtcAddress.stories.tsx +2 -4
- package/src/api-functions/getDepositBtcAddress/getDepositBtcAddress.test.ts +264 -0
- package/src/api-functions/getDepositBtcAddress/getDepositBtcAddress.ts +36 -184
- package/src/api-functions/getDepositBtcAddress/getDepositBtcAddresses.stories.tsx +2 -4
- package/src/api-functions/getDepositBtcAddress/make-request.ts +51 -0
- package/src/api-functions/getDepositBtcAddress/types.ts +101 -0
- package/src/tokens/token-addresses.ts +29 -37
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# 3.6.11
|
|
2
|
+
|
|
3
|
+
* Add CHANGELOG.md to published package.
|
|
4
|
+
|
|
5
|
+
# 3.6.10
|
|
6
|
+
|
|
7
|
+
* `Token.BTCK` is now an alias of `Token.NativeLBTC` (recommended).
|
|
8
|
+
|
|
9
|
+
# 3.6.9
|
|
10
|
+
|
|
11
|
+
* fixed issue with getting the deposit address on Sui and Solana networks.
|
|
12
|
+
|
|
13
|
+
# 3.6.8
|
|
14
|
+
|
|
15
|
+
* reverted changes from 3.6.6 - the Bascule address has been fixed in the contract.
|
|
16
|
+
|
|
17
|
+
# 3.6.7
|
|
18
|
+
|
|
19
|
+
* added new `getMinRedeemAmount` function that return the min redeem amount.
|
|
20
|
+
|
|
21
|
+
# 3.6.6
|
|
22
|
+
|
|
23
|
+
* disabled Bascule check for Katana
|
|
24
|
+
|
|
25
|
+
# 3.6.5
|
|
26
|
+
|
|
27
|
+
* fixed issue with the LBTC token contract address on Etherlink.
|
|
28
|
+
|
|
29
|
+
# 3.6.4
|
|
30
|
+
|
|
31
|
+
* added `getEstimatedApy` function,
|
|
32
|
+
* added new `inProgress` field to `PositionsSummary` type of `getPositionsSummary`.
|
|
33
|
+
|
|
34
|
+
# 3.6.3
|
|
35
|
+
|
|
36
|
+
* updated rewards API url and schema for `getRewardsInfo`,
|
|
37
|
+
* renamed `getRewardsInfo` to `getPositionsSummary`,
|
|
38
|
+
* added `getApy` function and remove `apr` from `getLBTCStats`,
|
|
39
|
+
* added `getAdditionalRewards` function.
|
|
40
|
+
|
|
41
|
+
# 3.6.2
|
|
42
|
+
|
|
43
|
+
* updated rewards API urls for `getRewardsInfo`.
|
|
44
|
+
|
|
45
|
+
# 3.6.1
|
|
46
|
+
|
|
47
|
+
* changed configuration for upgraded LBTC and BTCK (Native LBTC) on Tatara chain
|
|
48
|
+
(stage and testnet),
|
|
49
|
+
* added auto-detection for upgraded LBTC and BTCK contracts,
|
|
50
|
+
* updated redeem fee logic based on the recent ABI changes,
|
|
51
|
+
* `getTokenContractInfo` in now an async function,
|
|
52
|
+
* refactored the internal `AbiFor` type and upgraded contracts logic,
|
|
53
|
+
* added `accountAddress` and `partnerId` params to the `getLBTCStats` function.
|
|
54
|
+
|
|
55
|
+
# 3.6.0
|
|
56
|
+
|
|
57
|
+
* `Token.LBTC` ABI changes to `stLBTC` for specified chains: `Sepolia`,
|
|
58
|
+
* added new `Token.NativeLBTC`,
|
|
59
|
+
* changed `getLBTCMintingFee` and `getMintingFee` so it either takes the value
|
|
60
|
+
from the token contract (old version) or `AssetRouter` contract (new version),
|
|
61
|
+
* renamed `getBurningFee` to `getRedeemFee` and refactored it so it takes the
|
|
62
|
+
fee values from the `AssetRouter` or the token contract (old version).
|
|
63
|
+
|
|
64
|
+
# 3.5.12
|
|
65
|
+
|
|
66
|
+
* added `tac` chain and bridge eth - tac bridge (OFT).
|
|
67
|
+
|
|
68
|
+
# 3.5.11
|
|
69
|
+
|
|
70
|
+
* updated the BFF API urls.
|
|
71
|
+
|
|
72
|
+
# 3.5.10
|
|
73
|
+
|
|
74
|
+
* added `token_address` param to generate and get deposit address functions.
|
|
75
|
+
|
|
76
|
+
# 3.5.9
|
|
77
|
+
|
|
78
|
+
* changed LBTC addresses for `dev` env.
|
|
79
|
+
|
|
80
|
+
# 3.5.8
|
|
81
|
+
|
|
82
|
+
* fixed exports for `getExchangeRatio`
|
|
83
|
+
|
|
84
|
+
# 3.5.7
|
|
85
|
+
|
|
86
|
+
* added `getRewardsInfo` function that retrieves the information about earned
|
|
87
|
+
rewards (yield),
|
|
88
|
+
* added `apr` to the `getLBTCStats` function,
|
|
89
|
+
* added `getExchangeRatio` function that gets the exchange ratios of LBTC:BTC
|
|
90
|
+
and BTC:LBTC.
|
|
91
|
+
|
|
92
|
+
# 3.5.6
|
|
93
|
+
|
|
94
|
+
* added support for Katana chain.
|
|
95
|
+
|
|
96
|
+
# 3.4.0
|
|
97
|
+
|
|
98
|
+
* bug fixes,
|
|
99
|
+
* added `getVaultDeposits` and `getVaultWithdrawals`.
|
|
100
|
+
|
|
101
|
+
# 3.2.0
|
|
102
|
+
|
|
103
|
+
* added metrics `getVaultTVL`, `getVaultApy`, `getLBTCStats`.
|
|
104
|
+
|
|
105
|
+
# 3.1.0
|
|
106
|
+
|
|
107
|
+
* added function to manually deposit / withdraw to and from the DeFi vault,
|
|
108
|
+
* switched to `viem`.
|