@morpho-org/morpho-sdk 5.0.0 → 5.1.1
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/README.md +4 -4
- package/lib/cjs/actions/blue/buildAssetFundingActions.d.ts +47 -0
- package/lib/cjs/actions/blue/buildAssetFundingActions.js +63 -0
- package/lib/cjs/actions/blue/repay.d.ts +39 -39
- package/lib/cjs/actions/blue/repay.js +65 -46
- package/lib/cjs/actions/blue/repayWithdrawCollateral.d.ts +37 -37
- package/lib/cjs/actions/blue/repayWithdrawCollateral.js +64 -41
- package/lib/cjs/actions/blue/resolveRepayFunding.d.ts +69 -0
- package/lib/cjs/actions/blue/resolveRepayFunding.js +82 -0
- package/lib/cjs/actions/blue/supply.d.ts +1 -1
- package/lib/cjs/actions/blue/supply.js +8 -22
- package/lib/cjs/actions/blue/supplyCollateral.d.ts +1 -1
- package/lib/cjs/actions/blue/supplyCollateral.js +8 -22
- package/lib/cjs/actions/blue/supplyCollateralBorrow.d.ts +1 -1
- package/lib/cjs/actions/blue/supplyCollateralBorrow.js +8 -21
- package/lib/cjs/entities/blue/blue.js +161 -87
- package/lib/cjs/helpers/index.d.ts +1 -1
- package/lib/cjs/helpers/index.js +1 -2
- package/lib/cjs/helpers/validate.d.ts +0 -18
- package/lib/cjs/helpers/validate.js +1 -38
- package/lib/cjs/types/action.d.ts +51 -3
- package/lib/cjs/types/error.d.ts +24 -2
- package/lib/cjs/types/error.js +26 -5
- package/lib/cjs/utils.d.ts +1 -1
- package/lib/cjs/utils.js +2 -3
- package/lib/esm/actions/blue/buildAssetFundingActions.d.ts +47 -0
- package/lib/esm/actions/blue/buildAssetFundingActions.js +59 -0
- package/lib/esm/actions/blue/repay.d.ts +39 -39
- package/lib/esm/actions/blue/repay.js +66 -47
- package/lib/esm/actions/blue/repayWithdrawCollateral.d.ts +37 -37
- package/lib/esm/actions/blue/repayWithdrawCollateral.js +65 -42
- package/lib/esm/actions/blue/resolveRepayFunding.d.ts +69 -0
- package/lib/esm/actions/blue/resolveRepayFunding.js +78 -0
- package/lib/esm/actions/blue/supply.d.ts +1 -1
- package/lib/esm/actions/blue/supply.js +9 -23
- package/lib/esm/actions/blue/supplyCollateral.d.ts +1 -1
- package/lib/esm/actions/blue/supplyCollateral.js +9 -23
- package/lib/esm/actions/blue/supplyCollateralBorrow.d.ts +1 -1
- package/lib/esm/actions/blue/supplyCollateralBorrow.js +9 -22
- package/lib/esm/entities/blue/blue.js +162 -88
- package/lib/esm/helpers/index.d.ts +1 -1
- package/lib/esm/helpers/index.js +1 -1
- package/lib/esm/helpers/validate.d.ts +0 -18
- package/lib/esm/helpers/validate.js +1 -37
- package/lib/esm/types/action.d.ts +51 -3
- package/lib/esm/types/error.d.ts +24 -2
- package/lib/esm/types/error.js +23 -3
- package/lib/esm/utils.d.ts +1 -1
- package/lib/esm/utils.js +1 -1
- package/package.json +19 -18
- package/src/index.ts +0 -4
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@morpho-org/morpho-sdk",
|
|
3
3
|
"description": "Abstraction layer for Morpho's complexity.",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.1.1",
|
|
5
5
|
"author": "Morpho Association <contact@morpho.org>",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"Foulks-Plb <https://x.com/FoulkPlb>"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"type": "module",
|
|
21
|
-
"main": "
|
|
21
|
+
"main": "./lib/cjs/index.js",
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
24
|
"types": "./lib/esm/index.d.ts",
|
|
@@ -89,40 +89,40 @@
|
|
|
89
89
|
"typesVersions": {
|
|
90
90
|
"*": {
|
|
91
91
|
"abis": [
|
|
92
|
-
"
|
|
92
|
+
"lib/esm/abis.d.ts"
|
|
93
93
|
],
|
|
94
94
|
"addresses": [
|
|
95
|
-
"
|
|
95
|
+
"lib/esm/addresses.d.ts"
|
|
96
96
|
],
|
|
97
97
|
"augment": [
|
|
98
|
-
"
|
|
98
|
+
"lib/esm/augment.d.ts"
|
|
99
99
|
],
|
|
100
100
|
"augment/*": [
|
|
101
|
-
"
|
|
101
|
+
"lib/esm/augment/*.d.ts"
|
|
102
102
|
],
|
|
103
103
|
"bundler": [
|
|
104
|
-
"
|
|
104
|
+
"lib/esm/bundler/index.d.ts"
|
|
105
105
|
],
|
|
106
106
|
"constants": [
|
|
107
|
-
"
|
|
107
|
+
"lib/esm/constants.d.ts"
|
|
108
108
|
],
|
|
109
109
|
"entities": [
|
|
110
|
-
"
|
|
110
|
+
"lib/esm/entities/index.d.ts"
|
|
111
111
|
],
|
|
112
112
|
"errors": [
|
|
113
|
-
"
|
|
113
|
+
"lib/esm/errors.d.ts"
|
|
114
114
|
],
|
|
115
115
|
"fetch": [
|
|
116
|
-
"
|
|
116
|
+
"lib/esm/fetch.d.ts"
|
|
117
117
|
],
|
|
118
118
|
"format": [
|
|
119
|
-
"
|
|
119
|
+
"lib/esm/format.d.ts"
|
|
120
120
|
],
|
|
121
121
|
"types": [
|
|
122
|
-
"
|
|
122
|
+
"lib/esm/types.d.ts"
|
|
123
123
|
],
|
|
124
124
|
"utils": [
|
|
125
|
-
"
|
|
125
|
+
"lib/esm/utils.d.ts"
|
|
126
126
|
]
|
|
127
127
|
}
|
|
128
128
|
},
|
|
@@ -138,8 +138,8 @@
|
|
|
138
138
|
"dependencies": {
|
|
139
139
|
"zod": "^4.4.3",
|
|
140
140
|
"@morpho-org/blue-sdk": "^6.3.0",
|
|
141
|
-
"@morpho-org/
|
|
142
|
-
"@morpho-org/
|
|
141
|
+
"@morpho-org/morpho-ts": "^2.8.0",
|
|
142
|
+
"@morpho-org/blue-sdk-viem": "^5.1.2"
|
|
143
143
|
},
|
|
144
144
|
"peerDependencies": {
|
|
145
145
|
"viem": "^2.0.0"
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
"vitest": "^4.1.9",
|
|
153
153
|
"@morpho-org/bundler-sdk-viem": "^5.0.3",
|
|
154
154
|
"@morpho-org/simulation-sdk": "^4.0.3",
|
|
155
|
-
"@morpho-org/test": "^2.8.
|
|
155
|
+
"@morpho-org/test": "^2.8.2"
|
|
156
156
|
},
|
|
157
157
|
"scripts": {
|
|
158
158
|
"prepublish": "$npm_execpath build",
|
|
@@ -160,5 +160,6 @@
|
|
|
160
160
|
"build:cjs": "tsc --build tsconfig.build.cjs.json && echo '{\"type\":\"commonjs\"}' > lib/cjs/package.json",
|
|
161
161
|
"build:esm": "tsc --build tsconfig.build.esm.json && echo '{\"type\":\"module\"}' > lib/esm/package.json",
|
|
162
162
|
"test": "vitest --root ../.. --project morpho-sdk"
|
|
163
|
-
}
|
|
163
|
+
},
|
|
164
|
+
"types": "./lib/esm/index.d.ts"
|
|
164
165
|
}
|
package/src/index.ts
DELETED