Changelog
4.5.0
SDK
Added
- Dual Governance module
Playground
- DualGovernance warning status
SDK
Added
Hooditestnet supportviemversion up to^2.26.0
Playground
Hooditestnet supportviemversion up to^2.26.0
4.3.0
SDK
Added
Unichain,UnichainSepoliaL2 chains support
4.2.0
SDK
Added
SoneiumandSoneiumMinatochains are added as separate L2 chainsGoerlichain is removedviemversion up to^2.22.11
Playground
SoneiumandSoneiumMinatochains are added as separate L2 chainsGoerlichain is removedviemversion up to^2.22.11
4.1.0
SDK
Added
TransactionCallbackcan be async and are now awaitedTransactionCallbackStage.SIGNstage in callback can now return custom gas limit that overrides estimated oneestimateTransferandestimateApprovefor all (w)stETH instancesLidoSDKL2now hasapproveWstethForWrapEstimateGas,wrapWstethToStethEstimateGas,unwrapStethEstimateGashelpersLidoSDKStakenow hasstakeEthEstimateGashelperLidoSDKWrapnow haswrapStethEstimateGas,approveStethForWrapEstimateGasandunwrapEstimateGashelpersLidoSDKWithdraw.claimnow hasclaimRequestsEstimateGashelperLidoSDKWithdraw.requestnow hasrequestWithdrawalEstimateGas,requestWithdrawalWithPermitEstimateGashelpersLidoSDKWithdraw.request.requestWithdrawalWithPermitnow accepts customdeadlineprop for permit signature
Fixed
LIDO_CONTRACT_NAMES,LIDO_L2_CONTRACT_NAMES,LIDO_L2_CONTRACT_NAMEScan now be used directly as non-const enumsLidoLocatorAbiis now exported fromcorePopulatedTransactionthat is returned frompopulateTXhelpers now only has relevant fieldsLidoSDKWrap.wrapEthEstimateGasnow applies correct gas limit
4.0.1
SDK
Fixed
LidoSDKRewardsnow filter outs edgecases with self-transfers
4.0.0
Breaking change
viemis no longer an internal dependency and is listed as peer dependency
SDK
Added
LidoSDKL2module is added to support Lido on L2 networks functionalityOptimismandOptimism-sepoliachains are added as separate L2 chainscore.getL2ContractAddressandLIDO_L2_CONTRACT_NAMES enumare added to support l2 contracts- ABIs are exported from corresponding modules to support custom functionality and direct viem access
Fixed
multicallis used only if supported by client
Playground
- L2 and updated reef-knot support
3.4.0
SDK
Fixed
apringetRewardsFromChainandgetRewardsFromSubgraphis now in percents e.g 3.14 and not 0.314- package is build with ts@5.4.5 with changes in bundle
LidoSDKApr.calculateAprFromRebaseEventhas increased precision
Playground
Fixed
- updated version of
reef-knotpackage withwagmi@2
3.3.0
No changes
3.2.2
SDK
Fixed
- fixed edge-case in
withdraw.views.findCheckpointHintswhere last finalized request would fail assertion withCannot find hints for unfinalized request... - subsequently fixed same error in
withdraw.request-info,withdraw.claimmodules
3.2.1
SDK
Fixed
- fixed edge-cases in
getRewardsFromChainandgetRewardsFromSubgraphsometimes causing transfer events to be wronged and leading to negative balance
3.2.0
SDK
Added
Sepoliatestnet- New method
getWithdrawalWaitingTimeByAmountfor fetching withdrawal waiting time for amount of eth - New method
getWithdrawalWaitingTimeByRequestIdsfor fetching withdrawal waiting time for earlier created requests by their ids
Playground
- Support for
Sepoliatestnet - Added blocks with new methods
getWithdrawalWaitingTimeByAmountandgetWithdrawalWaitingTimeByRequestIds
3.1.0
SDK
Fixed
- Mainnet subgraph ID now points to updated, L2 based subgraph
3.1.0
SDK
Added
viemversion up to2.0.6- Account hoisting support: methods no longer require address/account if it's hoisted to
walletClientor available viaeth_requestAccounts - Stake, Wrap, Withdraw Request & Claim transaction methods now return parsed transaction result
waitForTransactionReceiptParametersoptional config added to all transaction methods props
Fixed
- better multisig behavior for transactions
- Simulate methods now have correct return types
stakeEthPopulateTxnot does not calculategasLimitwhich prevented usage when stake limit is reached
Playground
- Upped
nextandviemversions
3.0.1
SDK
Fixed
- modules constructors types did not allow
rpcProviderpassage - increased default timeout on transaction confirmation
- account hoisting in
LidoSDKStethandLidoSDKWStethforsignPermitandpopulatePermit LidoSDKRewards:getRewardsFromSubgraphnow returns APR in correct units(not in percent)getRewardsFromSubgraphnow allows object to be returned fromgetSubgraphUrl
LidoSDKStatitsticsnow has helper typesLidoSDKWithdraw:- now has more exported types
approveSimulateTx,requestWithdrawalSimulateTx,requestWithdrawalWithPermitSimulateTxfixed account hoistinggetClaimableRequestsETHByAccountnow returns only claimable requests
Playground
- Playground now has custom RPC input
Tests
- All modules are covered by unit tests