Version Packages#484
Open
opgitgovernance wants to merge 1 commit into
Open
Conversation
✅ Deploy Preview for actions-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
56a8226 to
4ba5f8f
Compare
ce21ebf to
37e07b4
Compare
4862d31 to
fc8e000
Compare
fc8e000 to
cea2c15
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@eth-optimism/actions-sdk@0.8.0
Minor Changes
#489
eafff2cThanks @its-everdred! - AddAaveBorrowProviderfor Aave V3 borrow markets.aaveinBORROW_PROVIDER_NAMESandconfig.borrow.aave, andexports
AaveBorrowProviderfrom the SDK entry point.aave-v3variant toBorrowMarketId/BorrowMarketConfig, with asynthetic market id derived from
(chainId, collateralReserve, debtReserve)since Aave has no params-hash market id.
shared Aave Pool: reads come from
getReserveData/getUserAccountDataandthe specific reserve token balances via multicall; writes build
Pool.borrow/
repay/supply/withdrawcalldata, with native ETH routed through theWETH gateway and full repays using
type(uint256).max.actions/shared/aave/soboth the lend and borrow providers consume one cross-domain home.
Types note:
BorrowMarketIdandBorrowMarketConfigwiden from a single shapeinto a discriminated union over
kind(morpho-blue|aave-v3). This is asource-level type change for consumers that constructed those types without a
kindor readmarketParamswithout narrowing first; it ships under aminorbecause the borrow surface is pre-1.0 and still landing incrementally.
#490
7cfe1e2Thanks @its-everdred! - Drop the redundantborrowProviderandlendProviderfields fromBorrowMarketConfig. Thekinddiscriminant already routes a market to itsprovider, so the provider name no longer needs to be stored on every market
config. The CLI derives the display provider name from
kindvia the newexported
borrowProviderForKind(kind)helper.#458
b07e295Thanks @its-everdred! - Add SDK borrow namespace with Morpho Blue support.actions.borrow.getMarket/getMarkets/getPositionandwallet.borrow.openPosition/closePosition/depositCollateral/withdrawCollateral/repayexpose a borrow surface mirroring the existing lend and swap namespaces.
MorphoBorrowProviderships the read side via raw multicall againstMorpho Blue with results passed through Morpho's
Market/AccrualPositionfor health-factor and liquidation-price math, andthe write side via hand-rolled
supplyCollateral/borrow/repay/withdrawCollateralcalldata.BorrowQuoteflow mirrors swap'sQUOTE_DISCRIMINATORpattern,with recipient binding, expiration, and chain/market id validation
before dispatch.
computeMorphoMarketId/verifyMorphoMarketIdhelpersenable config-time sanity checks; provider constructor throws
BorrowMarketParamsMismatchErrorwhen configuredmarketIddoesn'tmatch the configured
MarketParams.BorrowSettings(defaultapprovalMode: 'exact', defaultquoteExpirationSeconds: 30, defaulthealthBufferPct: 0.05) andBorrowConfigtypes.MockBorrowProviderfor downstream backend/frontend test suites.#466
338f38eThanks @its-everdred! - Fix Morpho borrow position collateral accounting for pledged vault sharesand frontend-wallet borrow position reads.
BorrowMarketPositionexposes the raw on-chain collateral balance ascollateralShares(vault shares for vault-wrapped collateral). The SDK nolonger derives or formats an underlying-asset collateral amount: the
collateralAmount,collateralAmountFormatted, andcollateralSharesFormattedfields are removed. Consumers that need an underlying display amount convert
vault shares themselves via the vault's
convertToAssets.WalletBorrowNamespacegains a publicgetPosition(params)methodthat binds the recipient to the wallet address.
#520
287bad7Thanks @its-everdred! - Pin signing-path dependency ranges and make vendor SDKs optional/lazy.Hardens the published manifest so a consumer's fresh install resolves the same
signing-path graph CI tests against, and so single-vendor consumers stop pulling
vendor SDKs they never use. No runtime behavior change.
viemis now a requiredpeerDependency(>=2.33.0 <2.34.0) instead of abundled
dependency. Action required for consumers: installviem@2.33.xalongside the SDK. This lets the consumer dedupe to a single
viemacrossthe smart-wallet CREATE2 / UserOp path, where the deterministic
funds-receiving address is delegated to viem account-abstraction internals.
permissionless,@morpho-org/blue-sdk,@morpho-org/blue-sdk-viem,@morpho-org/morpho-ts.The tight
>=tested <next-minorranges are deliberate (not the repo's defaultcaret style): the Morpho marketId/calldata math and the viem CREATE2 address
are fund-safety-bearing, and an in-range minor bump can shift them silently.
peerDependenciesMeta.optionalwithupper-bounded ranges (
>=x <next-major), so a Turnkey-only or Local-onlyintegrator is no longer told they are missing 9 packages, and a future
breaking vendor major is no longer silently accepted into the signing path.
PrivyHostedWalletProvider,PrivyWallet, andDynamicWalletas type-only exports. Providers arestill constructed lazily via the hosted-wallet registry with provider type
privy; only the eager runtime re-export, which pulled@privy-io/node/@dynamic-labs/ethereuminto every consumer's import graphis removed. Direct
new PrivyHostedWalletProvider(...)from the SDK root wasnever the supported construction path.
Patch Changes
#518
d296846Thanks @its-everdred! - Consolidate the SDK Anvil fork-test harness behind one network test utility surface.#517
42323a6Thanks @its-everdred! - Clamp swap slippage validation to finite values in [0, 1) and reuseprovider-derived slippage bounds when encoding Uniswap calldata.
#500
3c554c1Thanks @its-everdred! - Fix Velodrome universal router swaps to encode the requested output recipient and keep allowance checks bound to the executing wallet.actions-cli@0.3.1
Patch Changes
eafff2c,d296846,7cfe1e2,b07e295,42323a6,338f38e,287bad7,3c554c1]:@eth-optimism/actions-service@0.2.4
Patch Changes
eafff2c,d296846,7cfe1e2,b07e295,42323a6,338f38e,287bad7,3c554c1]:actions-ui@0.2.4
Patch Changes
eafff2c,d296846,7cfe1e2,b07e295,42323a6,338f38e,287bad7,3c554c1]: