Skip to content

Commit ad414f0

Browse files
authored
Merge pull request #183 from lidofinance/develop
Release 4.1.0
2 parents 0bbc3b6 + 077a4e5 commit ad414f0

35 files changed

+530
-1502
lines changed

docs/sdk/changelog.mdx

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
sidebar_position: 4
3+
title: Changelog
4+
---
5+
6+
import Changelog from '../../packages/sdk/CHANGELOG.md';
7+
8+
<Changelog />

docs/sdk/migration.mdx

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
sidebar_position: 5
3+
title: Migration Guide
4+
---
5+
6+
import Migration from '../../packages/sdk/MIGRATION.md';
7+
8+
<Migration />

packages/sdk/CHANGELOG.md

+23
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
# 4.1.0
2+
3+
## SDK
4+
5+
### Added
6+
7+
- `TransactionCallback` can be async and are now awaited
8+
- `TransactionCallbackStage.SIGN` stage in callback can now return custom gas limit that overrides estimated one
9+
- `estimateTransfer` and `estimateApprove` for all (w)stETH instances
10+
- `LidoSDKL2` now has `approveWstethForWrapEstimateGas`, `wrapWstethToStethEstimateGas`,`unwrapStethEstimateGas` helpers
11+
- `LidoSDKStake` now has `stakeEthEstimateGas` helper
12+
- `LidoSDKWrap` now has `wrapStethEstimateGas`, `approveStethForWrapEstimateGas` and `unwrapEstimateGas` helpers
13+
- `LidoSDKWithdraw.claim` now has `claimRequestsEstimateGas` helper
14+
- `LidoSDKWithdraw.request` now has `requestWithdrawalEstimateGas`,`requestWithdrawalWithPermitEstimateGas` helpers
15+
- `LidoSDKWithdraw.request.requestWithdrawalWithPermit` now accepts custom `deadline` prop for permit signature
16+
17+
### Fixed
18+
19+
- `LIDO_CONTRACT_NAMES`, `LIDO_L2_CONTRACT_NAMES`, `LIDO_L2_CONTRACT_NAMES` can now be used directly as non-const enums
20+
- `LidoLocatorAbi` is now exported from `core`
21+
- `PopulatedTransaction` that is returned from `populateTX` helpers now only has relevant fields
22+
- `LidoSDKWrap.wrapEthEstimateGas`now applies correct gas limit
23+
124
# 4.0.1
225

326
## SDK

packages/sdk/MIGRATION.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,16 @@ Internal utilities:
3131
## Events
3232

3333
- `getRebaseEventsByDays` was removed
34-
- `getRebaseEvents` arguments signature was changed to fit wide range of use-cases, [see docs](./README.md#`getRebaseEvents`)
34+
- `getRebaseEvents` arguments signature was changed to fit wide range of use-cases, [see docs](https://lidofinance.github.io/lido-ethereum-sdk/modules/lido-events#getrebaseevents)
3535
- `getLastRebaseEvents` covers previous use case of `getRebaseEvents`
3636

3737
## Rewards
3838

39-
`getRewards...` props signature changed to fit wide range of use cases [see docs](./README.md#Rewards)
39+
`getRewards...` props signature changed to fit wide range of use cases [see docs](https://lidofinance.github.io/lido-ethereum-sdk/modules/rewards)
4040

4141
Props:
4242

43-
- `to`, `from`, `back` props, [see docs](./README.md#Rewards).
43+
- `to`, `from`, `back` props, [see docs](https://lidofinance.github.io/lido-ethereum-sdk/modules/reward).
4444
- `step` prop was removed due to conflicting defaults. Replaced with `stepEntities`(defaults 1000) and `stepBlocks`(defaults 50000) for subgraph and chain methods accordingly.
4545
- `getSubgraphUrl` now can receive subgraph id `null` for chains where it is not available
4646

0 commit comments

Comments
 (0)