@morpho-org/bundler-sdk-viem 5.0.2 → 5.0.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.
Files changed (2) hide show
  1. package/DEPRECATION.md +21 -0
  2. package/package.json +8 -7
package/DEPRECATION.md ADDED
@@ -0,0 +1,21 @@
1
+ # Deprecation and Migration
2
+
3
+ `@morpho-org/bundler-sdk-viem` is deprecated for application consumers.
4
+
5
+ Npm deprecation message:
6
+
7
+ ```text
8
+ Deprecated: use @morpho-org/morpho-sdk. Bundler action helpers are consolidated under @morpho-org/morpho-sdk and ABIs are under @morpho-org/morpho-sdk/abis.
9
+ ```
10
+
11
+ ## Migration Path
12
+
13
+ Use `@morpho-org/morpho-sdk` for the Bundler3 surface kept by the consolidated SDK:
14
+
15
+ - Import `BundlerAction` and `BundlerCall` from `@morpho-org/morpho-sdk/bundler`.
16
+ - Import supported action types from `@morpho-org/morpho-sdk/bundler`, including `Action`, `ActionArgs`, `ActionType`, `Actions`, `Authorization`, `InputReallocation`, `Permit2PermitSingle`, and `Permit2PermitSingleDetails`.
17
+ - Import Bundler3 and adapter ABI literals from `@morpho-org/morpho-sdk/abis`, including `bundler3Abi`, `coreAdapterAbi`, `generalAdapter1Abi`, `ethereumGeneralAdapter1Abi`, `paraswapAdapterAbi`, wrapper adapter ABIs, and migration adapter ABIs.
18
+
19
+ ## Not Retained
20
+
21
+ `morpho-sdk` keeps only the Bundler3 action encoding subset needed by its transaction builders. It does not retain `ActionBundle`, operation population or simulation helpers, Paraswap operation helpers, reward-claim helpers, migration operation helpers, or broad transaction requirement flows from `bundler-sdk-viem`.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@morpho-org/bundler-sdk-viem",
3
3
  "description": "Viem-based extension of `@morpho-org/simulation-sdk` that exports utilities to transform simple interactions on Morpho (such as `Blue_Borrow`) and Morpho Vaults (such as `MetaMorpho_Deposit`) into the required bundles (with ERC20 approvals, transfers, etc) to submit to the bundler onchain.",
4
- "version": "5.0.2",
4
+ "version": "5.0.3",
5
5
  "author": "Morpho Association <contact@morpho.org>",
6
6
  "contributors": [
7
7
  "Rubilmax <rmilon@gmail.com>"
@@ -20,6 +20,7 @@
20
20
  "type": "module",
21
21
  "main": "src/index.ts",
22
22
  "files": [
23
+ "DEPRECATION.md",
23
24
  "lib"
24
25
  ],
25
26
  "peerDependencies": {
@@ -39,14 +40,14 @@
39
40
  "typescript": "^6.0.3",
40
41
  "viem": "^2.50.4",
41
42
  "vitest": "^4.1.7",
42
- "@morpho-org/blue-sdk": "^6.0.1",
43
- "@morpho-org/blue-sdk-viem": "^5.0.1",
43
+ "@morpho-org/blue-sdk": "^6.1.0",
44
+ "@morpho-org/blue-sdk-viem": "^5.1.0",
44
45
  "@morpho-org/morpho-test": "^4.0.1",
45
- "@morpho-org/morpho-ts": "^2.5.3",
46
- "@morpho-org/simulation-sdk": "^4.0.2",
47
- "@morpho-org/simulation-sdk-wagmi": "^5.0.2",
46
+ "@morpho-org/morpho-ts": "^2.6.0",
47
+ "@morpho-org/simulation-sdk": "^4.0.3",
48
+ "@morpho-org/simulation-sdk-wagmi": "^5.0.3",
48
49
  "@morpho-org/test": "^2.8.1",
49
- "@morpho-org/test-wagmi": "^3.0.2"
50
+ "@morpho-org/test-wagmi": "^3.0.3"
50
51
  },
51
52
  "scripts": {
52
53
  "prepublish": "$npm_execpath build",