@eulerxyz/euler-v2-sdk 1.1.1 → 1.1.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.
- package/README.md +16 -12
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/sdk/buildSDK.d.ts +8 -0
- package/dist/src/sdk/buildSDK.d.ts.map +1 -1
- package/dist/src/sdk/buildSDK.js +20 -1
- package/dist/src/sdk/buildSDK.js.map +1 -1
- package/dist/src/sdk/sdk.d.ts +3 -0
- package/dist/src/sdk/sdk.d.ts.map +1 -1
- package/dist/src/sdk/sdk.js +2 -0
- package/dist/src/sdk/sdk.js.map +1 -1
- package/dist/src/services/executionService/abis/swapVerifierAbi.d.ts +130 -0
- package/dist/src/services/executionService/abis/swapVerifierAbi.d.ts.map +1 -1
- package/dist/src/services/executionService/abis/swapVerifierAbi.js +69 -0
- package/dist/src/services/executionService/abis/swapVerifierAbi.js.map +1 -1
- package/dist/src/services/executionService/encode.js +1 -1
- package/dist/src/services/executionService/encode.js.map +1 -1
- package/dist/src/services/executionService/executionService.d.ts +8 -6
- package/dist/src/services/executionService/executionService.d.ts.map +1 -1
- package/dist/src/services/executionService/executionService.js +6 -5
- package/dist/src/services/executionService/executionService.js.map +1 -1
- package/dist/src/services/executionService/simulate.d.ts +2 -0
- package/dist/src/services/executionService/simulate.d.ts.map +1 -1
- package/dist/src/services/executionService/simulate.js +9 -1
- package/dist/src/services/executionService/simulate.js.map +1 -1
- package/dist/src/services/positionMigrationService/connectors/aave/aaveConnector.d.ts +81 -0
- package/dist/src/services/positionMigrationService/connectors/aave/aaveConnector.d.ts.map +1 -0
- package/dist/src/services/positionMigrationService/connectors/aave/aaveConnector.js +1291 -0
- package/dist/src/services/positionMigrationService/connectors/aave/aaveConnector.js.map +1 -0
- package/dist/src/services/positionMigrationService/connectors/aave/aaveConnectorTypes.d.ts +84 -0
- package/dist/src/services/positionMigrationService/connectors/aave/aaveConnectorTypes.d.ts.map +1 -0
- package/dist/src/services/positionMigrationService/connectors/aave/aaveConnectorTypes.js +2 -0
- package/dist/src/services/positionMigrationService/connectors/aave/aaveConnectorTypes.js.map +1 -0
- package/dist/src/services/positionMigrationService/connectors/aave/abis/aaveV3Abi.d.ts +370 -0
- package/dist/src/services/positionMigrationService/connectors/aave/abis/aaveV3Abi.d.ts.map +1 -0
- package/dist/src/services/positionMigrationService/connectors/aave/abis/aaveV3Abi.js +243 -0
- package/dist/src/services/positionMigrationService/connectors/aave/abis/aaveV3Abi.js.map +1 -0
- package/dist/src/services/positionMigrationService/connectors/aave/index.d.ts +4 -0
- package/dist/src/services/positionMigrationService/connectors/aave/index.d.ts.map +1 -0
- package/dist/src/services/positionMigrationService/connectors/aave/index.js +3 -0
- package/dist/src/services/positionMigrationService/connectors/aave/index.js.map +1 -0
- package/dist/src/services/positionMigrationService/connectors/index.d.ts +4 -0
- package/dist/src/services/positionMigrationService/connectors/index.d.ts.map +1 -0
- package/dist/src/services/positionMigrationService/connectors/index.js +4 -0
- package/dist/src/services/positionMigrationService/connectors/index.js.map +1 -0
- package/dist/src/services/positionMigrationService/connectors/metamorpho/abis/metamorphoAbi.d.ts +166 -0
- package/dist/src/services/positionMigrationService/connectors/metamorpho/abis/metamorphoAbi.d.ts.map +1 -0
- package/dist/src/services/positionMigrationService/connectors/metamorpho/abis/metamorphoAbi.js +108 -0
- package/dist/src/services/positionMigrationService/connectors/metamorpho/abis/metamorphoAbi.js.map +1 -0
- package/dist/src/services/positionMigrationService/connectors/metamorpho/index.d.ts +4 -0
- package/dist/src/services/positionMigrationService/connectors/metamorpho/index.d.ts.map +1 -0
- package/dist/src/services/positionMigrationService/connectors/metamorpho/index.js +3 -0
- package/dist/src/services/positionMigrationService/connectors/metamorpho/index.js.map +1 -0
- package/dist/src/services/positionMigrationService/connectors/metamorpho/metamorphoConnector.d.ts +56 -0
- package/dist/src/services/positionMigrationService/connectors/metamorpho/metamorphoConnector.d.ts.map +1 -0
- package/dist/src/services/positionMigrationService/connectors/metamorpho/metamorphoConnector.js +426 -0
- package/dist/src/services/positionMigrationService/connectors/metamorpho/metamorphoConnector.js.map +1 -0
- package/dist/src/services/positionMigrationService/connectors/metamorpho/metamorphoConnectorTypes.d.ts +46 -0
- package/dist/src/services/positionMigrationService/connectors/metamorpho/metamorphoConnectorTypes.d.ts.map +1 -0
- package/dist/src/services/positionMigrationService/connectors/metamorpho/metamorphoConnectorTypes.js +2 -0
- package/dist/src/services/positionMigrationService/connectors/metamorpho/metamorphoConnectorTypes.js.map +1 -0
- package/dist/src/services/positionMigrationService/connectors/morpho/abis/morphoBlueAbi.d.ts +269 -0
- package/dist/src/services/positionMigrationService/connectors/morpho/abis/morphoBlueAbi.d.ts.map +1 -0
- package/dist/src/services/positionMigrationService/connectors/morpho/abis/morphoBlueAbi.js +172 -0
- package/dist/src/services/positionMigrationService/connectors/morpho/abis/morphoBlueAbi.js.map +1 -0
- package/dist/src/services/positionMigrationService/connectors/morpho/index.d.ts +4 -0
- package/dist/src/services/positionMigrationService/connectors/morpho/index.d.ts.map +1 -0
- package/dist/src/services/positionMigrationService/connectors/morpho/index.js +3 -0
- package/dist/src/services/positionMigrationService/connectors/morpho/index.js.map +1 -0
- package/dist/src/services/positionMigrationService/connectors/morpho/morphoConnector.d.ts +57 -0
- package/dist/src/services/positionMigrationService/connectors/morpho/morphoConnector.d.ts.map +1 -0
- package/dist/src/services/positionMigrationService/connectors/morpho/morphoConnector.js +856 -0
- package/dist/src/services/positionMigrationService/connectors/morpho/morphoConnector.js.map +1 -0
- package/dist/src/services/positionMigrationService/connectors/morpho/morphoConnectorTypes.d.ts +61 -0
- package/dist/src/services/positionMigrationService/connectors/morpho/morphoConnectorTypes.d.ts.map +1 -0
- package/dist/src/services/positionMigrationService/connectors/morpho/morphoConnectorTypes.js +2 -0
- package/dist/src/services/positionMigrationService/connectors/morpho/morphoConnectorTypes.js.map +1 -0
- package/dist/src/services/positionMigrationService/connectors/shared.d.ts +83 -0
- package/dist/src/services/positionMigrationService/connectors/shared.d.ts.map +1 -0
- package/dist/src/services/positionMigrationService/connectors/shared.js +214 -0
- package/dist/src/services/positionMigrationService/connectors/shared.js.map +1 -0
- package/dist/src/services/positionMigrationService/index.d.ts +4 -0
- package/dist/src/services/positionMigrationService/index.d.ts.map +1 -0
- package/dist/src/services/positionMigrationService/index.js +3 -0
- package/dist/src/services/positionMigrationService/index.js.map +1 -0
- package/dist/src/services/positionMigrationService/positionMigrationService.d.ts +55 -0
- package/dist/src/services/positionMigrationService/positionMigrationService.d.ts.map +1 -0
- package/dist/src/services/positionMigrationService/positionMigrationService.js +449 -0
- package/dist/src/services/positionMigrationService/positionMigrationService.js.map +1 -0
- package/dist/src/services/positionMigrationService/positionMigrationServiceTypes.d.ts +235 -0
- package/dist/src/services/positionMigrationService/positionMigrationServiceTypes.d.ts.map +1 -0
- package/dist/src/services/positionMigrationService/positionMigrationServiceTypes.js +2 -0
- package/dist/src/services/positionMigrationService/positionMigrationServiceTypes.js.map +1 -0
- package/dist/src/services/swapService/swapVerification.d.ts +1 -1
- package/dist/src/services/swapService/swapVerification.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
export declare const morphoBlueAbi: readonly [{
|
|
2
|
+
readonly type: "function";
|
|
3
|
+
readonly name: "borrow";
|
|
4
|
+
readonly inputs: readonly [{
|
|
5
|
+
readonly name: "marketParams";
|
|
6
|
+
readonly type: "tuple";
|
|
7
|
+
readonly components: readonly [{
|
|
8
|
+
readonly name: "loanToken";
|
|
9
|
+
readonly type: "address";
|
|
10
|
+
}, {
|
|
11
|
+
readonly name: "collateralToken";
|
|
12
|
+
readonly type: "address";
|
|
13
|
+
}, {
|
|
14
|
+
readonly name: "oracle";
|
|
15
|
+
readonly type: "address";
|
|
16
|
+
}, {
|
|
17
|
+
readonly name: "irm";
|
|
18
|
+
readonly type: "address";
|
|
19
|
+
}, {
|
|
20
|
+
readonly name: "lltv";
|
|
21
|
+
readonly type: "uint256";
|
|
22
|
+
}];
|
|
23
|
+
}, {
|
|
24
|
+
readonly name: "assets";
|
|
25
|
+
readonly type: "uint256";
|
|
26
|
+
}, {
|
|
27
|
+
readonly name: "shares";
|
|
28
|
+
readonly type: "uint256";
|
|
29
|
+
}, {
|
|
30
|
+
readonly name: "onBehalf";
|
|
31
|
+
readonly type: "address";
|
|
32
|
+
}, {
|
|
33
|
+
readonly name: "receiver";
|
|
34
|
+
readonly type: "address";
|
|
35
|
+
}];
|
|
36
|
+
readonly outputs: readonly [{
|
|
37
|
+
readonly name: "assetsBorrowed";
|
|
38
|
+
readonly type: "uint256";
|
|
39
|
+
}, {
|
|
40
|
+
readonly name: "sharesBorrowed";
|
|
41
|
+
readonly type: "uint256";
|
|
42
|
+
}];
|
|
43
|
+
readonly stateMutability: "nonpayable";
|
|
44
|
+
}, {
|
|
45
|
+
readonly type: "function";
|
|
46
|
+
readonly name: "isAuthorized";
|
|
47
|
+
readonly inputs: readonly [{
|
|
48
|
+
readonly name: "authorizer";
|
|
49
|
+
readonly type: "address";
|
|
50
|
+
}, {
|
|
51
|
+
readonly name: "authorized";
|
|
52
|
+
readonly type: "address";
|
|
53
|
+
}];
|
|
54
|
+
readonly outputs: readonly [{
|
|
55
|
+
readonly name: "";
|
|
56
|
+
readonly type: "bool";
|
|
57
|
+
}];
|
|
58
|
+
readonly stateMutability: "view";
|
|
59
|
+
}, {
|
|
60
|
+
readonly type: "function";
|
|
61
|
+
readonly name: "market";
|
|
62
|
+
readonly inputs: readonly [{
|
|
63
|
+
readonly name: "id";
|
|
64
|
+
readonly type: "bytes32";
|
|
65
|
+
}];
|
|
66
|
+
readonly outputs: readonly [{
|
|
67
|
+
readonly name: "totalSupplyAssets";
|
|
68
|
+
readonly type: "uint128";
|
|
69
|
+
}, {
|
|
70
|
+
readonly name: "totalSupplyShares";
|
|
71
|
+
readonly type: "uint128";
|
|
72
|
+
}, {
|
|
73
|
+
readonly name: "totalBorrowAssets";
|
|
74
|
+
readonly type: "uint128";
|
|
75
|
+
}, {
|
|
76
|
+
readonly name: "totalBorrowShares";
|
|
77
|
+
readonly type: "uint128";
|
|
78
|
+
}, {
|
|
79
|
+
readonly name: "lastUpdate";
|
|
80
|
+
readonly type: "uint128";
|
|
81
|
+
}, {
|
|
82
|
+
readonly name: "fee";
|
|
83
|
+
readonly type: "uint128";
|
|
84
|
+
}];
|
|
85
|
+
readonly stateMutability: "view";
|
|
86
|
+
}, {
|
|
87
|
+
readonly type: "function";
|
|
88
|
+
readonly name: "nonce";
|
|
89
|
+
readonly inputs: readonly [{
|
|
90
|
+
readonly name: "authorizer";
|
|
91
|
+
readonly type: "address";
|
|
92
|
+
}];
|
|
93
|
+
readonly outputs: readonly [{
|
|
94
|
+
readonly name: "";
|
|
95
|
+
readonly type: "uint256";
|
|
96
|
+
}];
|
|
97
|
+
readonly stateMutability: "view";
|
|
98
|
+
}, {
|
|
99
|
+
readonly type: "function";
|
|
100
|
+
readonly name: "position";
|
|
101
|
+
readonly inputs: readonly [{
|
|
102
|
+
readonly name: "id";
|
|
103
|
+
readonly type: "bytes32";
|
|
104
|
+
}, {
|
|
105
|
+
readonly name: "user";
|
|
106
|
+
readonly type: "address";
|
|
107
|
+
}];
|
|
108
|
+
readonly outputs: readonly [{
|
|
109
|
+
readonly name: "supplyShares";
|
|
110
|
+
readonly type: "uint256";
|
|
111
|
+
}, {
|
|
112
|
+
readonly name: "borrowShares";
|
|
113
|
+
readonly type: "uint128";
|
|
114
|
+
}, {
|
|
115
|
+
readonly name: "collateral";
|
|
116
|
+
readonly type: "uint128";
|
|
117
|
+
}];
|
|
118
|
+
readonly stateMutability: "view";
|
|
119
|
+
}, {
|
|
120
|
+
readonly type: "function";
|
|
121
|
+
readonly name: "repay";
|
|
122
|
+
readonly inputs: readonly [{
|
|
123
|
+
readonly name: "marketParams";
|
|
124
|
+
readonly type: "tuple";
|
|
125
|
+
readonly components: readonly [{
|
|
126
|
+
readonly name: "loanToken";
|
|
127
|
+
readonly type: "address";
|
|
128
|
+
}, {
|
|
129
|
+
readonly name: "collateralToken";
|
|
130
|
+
readonly type: "address";
|
|
131
|
+
}, {
|
|
132
|
+
readonly name: "oracle";
|
|
133
|
+
readonly type: "address";
|
|
134
|
+
}, {
|
|
135
|
+
readonly name: "irm";
|
|
136
|
+
readonly type: "address";
|
|
137
|
+
}, {
|
|
138
|
+
readonly name: "lltv";
|
|
139
|
+
readonly type: "uint256";
|
|
140
|
+
}];
|
|
141
|
+
}, {
|
|
142
|
+
readonly name: "assets";
|
|
143
|
+
readonly type: "uint256";
|
|
144
|
+
}, {
|
|
145
|
+
readonly name: "shares";
|
|
146
|
+
readonly type: "uint256";
|
|
147
|
+
}, {
|
|
148
|
+
readonly name: "onBehalf";
|
|
149
|
+
readonly type: "address";
|
|
150
|
+
}, {
|
|
151
|
+
readonly name: "data";
|
|
152
|
+
readonly type: "bytes";
|
|
153
|
+
}];
|
|
154
|
+
readonly outputs: readonly [{
|
|
155
|
+
readonly name: "assetsRepaid";
|
|
156
|
+
readonly type: "uint256";
|
|
157
|
+
}, {
|
|
158
|
+
readonly name: "sharesRepaid";
|
|
159
|
+
readonly type: "uint256";
|
|
160
|
+
}];
|
|
161
|
+
readonly stateMutability: "nonpayable";
|
|
162
|
+
}, {
|
|
163
|
+
readonly type: "function";
|
|
164
|
+
readonly name: "setAuthorizationWithSig";
|
|
165
|
+
readonly inputs: readonly [{
|
|
166
|
+
readonly name: "authorization";
|
|
167
|
+
readonly type: "tuple";
|
|
168
|
+
readonly components: readonly [{
|
|
169
|
+
readonly name: "authorizer";
|
|
170
|
+
readonly type: "address";
|
|
171
|
+
}, {
|
|
172
|
+
readonly name: "authorized";
|
|
173
|
+
readonly type: "address";
|
|
174
|
+
}, {
|
|
175
|
+
readonly name: "isAuthorized";
|
|
176
|
+
readonly type: "bool";
|
|
177
|
+
}, {
|
|
178
|
+
readonly name: "nonce";
|
|
179
|
+
readonly type: "uint256";
|
|
180
|
+
}, {
|
|
181
|
+
readonly name: "deadline";
|
|
182
|
+
readonly type: "uint256";
|
|
183
|
+
}];
|
|
184
|
+
}, {
|
|
185
|
+
readonly name: "signature";
|
|
186
|
+
readonly type: "tuple";
|
|
187
|
+
readonly components: readonly [{
|
|
188
|
+
readonly name: "v";
|
|
189
|
+
readonly type: "uint8";
|
|
190
|
+
}, {
|
|
191
|
+
readonly name: "r";
|
|
192
|
+
readonly type: "bytes32";
|
|
193
|
+
}, {
|
|
194
|
+
readonly name: "s";
|
|
195
|
+
readonly type: "bytes32";
|
|
196
|
+
}];
|
|
197
|
+
}];
|
|
198
|
+
readonly outputs: readonly [];
|
|
199
|
+
readonly stateMutability: "nonpayable";
|
|
200
|
+
}, {
|
|
201
|
+
readonly type: "function";
|
|
202
|
+
readonly name: "supplyCollateral";
|
|
203
|
+
readonly inputs: readonly [{
|
|
204
|
+
readonly name: "marketParams";
|
|
205
|
+
readonly type: "tuple";
|
|
206
|
+
readonly components: readonly [{
|
|
207
|
+
readonly name: "loanToken";
|
|
208
|
+
readonly type: "address";
|
|
209
|
+
}, {
|
|
210
|
+
readonly name: "collateralToken";
|
|
211
|
+
readonly type: "address";
|
|
212
|
+
}, {
|
|
213
|
+
readonly name: "oracle";
|
|
214
|
+
readonly type: "address";
|
|
215
|
+
}, {
|
|
216
|
+
readonly name: "irm";
|
|
217
|
+
readonly type: "address";
|
|
218
|
+
}, {
|
|
219
|
+
readonly name: "lltv";
|
|
220
|
+
readonly type: "uint256";
|
|
221
|
+
}];
|
|
222
|
+
}, {
|
|
223
|
+
readonly name: "assets";
|
|
224
|
+
readonly type: "uint256";
|
|
225
|
+
}, {
|
|
226
|
+
readonly name: "onBehalf";
|
|
227
|
+
readonly type: "address";
|
|
228
|
+
}, {
|
|
229
|
+
readonly name: "data";
|
|
230
|
+
readonly type: "bytes";
|
|
231
|
+
}];
|
|
232
|
+
readonly outputs: readonly [];
|
|
233
|
+
readonly stateMutability: "nonpayable";
|
|
234
|
+
}, {
|
|
235
|
+
readonly type: "function";
|
|
236
|
+
readonly name: "withdrawCollateral";
|
|
237
|
+
readonly inputs: readonly [{
|
|
238
|
+
readonly name: "marketParams";
|
|
239
|
+
readonly type: "tuple";
|
|
240
|
+
readonly components: readonly [{
|
|
241
|
+
readonly name: "loanToken";
|
|
242
|
+
readonly type: "address";
|
|
243
|
+
}, {
|
|
244
|
+
readonly name: "collateralToken";
|
|
245
|
+
readonly type: "address";
|
|
246
|
+
}, {
|
|
247
|
+
readonly name: "oracle";
|
|
248
|
+
readonly type: "address";
|
|
249
|
+
}, {
|
|
250
|
+
readonly name: "irm";
|
|
251
|
+
readonly type: "address";
|
|
252
|
+
}, {
|
|
253
|
+
readonly name: "lltv";
|
|
254
|
+
readonly type: "uint256";
|
|
255
|
+
}];
|
|
256
|
+
}, {
|
|
257
|
+
readonly name: "assets";
|
|
258
|
+
readonly type: "uint256";
|
|
259
|
+
}, {
|
|
260
|
+
readonly name: "onBehalf";
|
|
261
|
+
readonly type: "address";
|
|
262
|
+
}, {
|
|
263
|
+
readonly name: "receiver";
|
|
264
|
+
readonly type: "address";
|
|
265
|
+
}];
|
|
266
|
+
readonly outputs: readonly [];
|
|
267
|
+
readonly stateMutability: "nonpayable";
|
|
268
|
+
}];
|
|
269
|
+
//# sourceMappingURL=morphoBlueAbi.d.ts.map
|
package/dist/src/services/positionMigrationService/connectors/morpho/abis/morphoBlueAbi.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"morphoBlueAbi.d.ts","sourceRoot":"","sources":["../../../../../../../src/services/positionMigrationService/connectors/morpho/abis/morphoBlueAbi.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0KhB,CAAC"}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
export const morphoBlueAbi = [
|
|
2
|
+
{
|
|
3
|
+
type: "function",
|
|
4
|
+
name: "borrow",
|
|
5
|
+
inputs: [
|
|
6
|
+
{
|
|
7
|
+
name: "marketParams",
|
|
8
|
+
type: "tuple",
|
|
9
|
+
components: [
|
|
10
|
+
{ name: "loanToken", type: "address" },
|
|
11
|
+
{ name: "collateralToken", type: "address" },
|
|
12
|
+
{ name: "oracle", type: "address" },
|
|
13
|
+
{ name: "irm", type: "address" },
|
|
14
|
+
{ name: "lltv", type: "uint256" },
|
|
15
|
+
],
|
|
16
|
+
},
|
|
17
|
+
{ name: "assets", type: "uint256" },
|
|
18
|
+
{ name: "shares", type: "uint256" },
|
|
19
|
+
{ name: "onBehalf", type: "address" },
|
|
20
|
+
{ name: "receiver", type: "address" },
|
|
21
|
+
],
|
|
22
|
+
outputs: [
|
|
23
|
+
{ name: "assetsBorrowed", type: "uint256" },
|
|
24
|
+
{ name: "sharesBorrowed", type: "uint256" },
|
|
25
|
+
],
|
|
26
|
+
stateMutability: "nonpayable",
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
type: "function",
|
|
30
|
+
name: "isAuthorized",
|
|
31
|
+
inputs: [
|
|
32
|
+
{ name: "authorizer", type: "address" },
|
|
33
|
+
{ name: "authorized", type: "address" },
|
|
34
|
+
],
|
|
35
|
+
outputs: [{ name: "", type: "bool" }],
|
|
36
|
+
stateMutability: "view",
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
type: "function",
|
|
40
|
+
name: "market",
|
|
41
|
+
inputs: [{ name: "id", type: "bytes32" }],
|
|
42
|
+
outputs: [
|
|
43
|
+
{ name: "totalSupplyAssets", type: "uint128" },
|
|
44
|
+
{ name: "totalSupplyShares", type: "uint128" },
|
|
45
|
+
{ name: "totalBorrowAssets", type: "uint128" },
|
|
46
|
+
{ name: "totalBorrowShares", type: "uint128" },
|
|
47
|
+
{ name: "lastUpdate", type: "uint128" },
|
|
48
|
+
{ name: "fee", type: "uint128" },
|
|
49
|
+
],
|
|
50
|
+
stateMutability: "view",
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
type: "function",
|
|
54
|
+
name: "nonce",
|
|
55
|
+
inputs: [{ name: "authorizer", type: "address" }],
|
|
56
|
+
outputs: [{ name: "", type: "uint256" }],
|
|
57
|
+
stateMutability: "view",
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
type: "function",
|
|
61
|
+
name: "position",
|
|
62
|
+
inputs: [
|
|
63
|
+
{ name: "id", type: "bytes32" },
|
|
64
|
+
{ name: "user", type: "address" },
|
|
65
|
+
],
|
|
66
|
+
outputs: [
|
|
67
|
+
{ name: "supplyShares", type: "uint256" },
|
|
68
|
+
{ name: "borrowShares", type: "uint128" },
|
|
69
|
+
{ name: "collateral", type: "uint128" },
|
|
70
|
+
],
|
|
71
|
+
stateMutability: "view",
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
type: "function",
|
|
75
|
+
name: "repay",
|
|
76
|
+
inputs: [
|
|
77
|
+
{
|
|
78
|
+
name: "marketParams",
|
|
79
|
+
type: "tuple",
|
|
80
|
+
components: [
|
|
81
|
+
{ name: "loanToken", type: "address" },
|
|
82
|
+
{ name: "collateralToken", type: "address" },
|
|
83
|
+
{ name: "oracle", type: "address" },
|
|
84
|
+
{ name: "irm", type: "address" },
|
|
85
|
+
{ name: "lltv", type: "uint256" },
|
|
86
|
+
],
|
|
87
|
+
},
|
|
88
|
+
{ name: "assets", type: "uint256" },
|
|
89
|
+
{ name: "shares", type: "uint256" },
|
|
90
|
+
{ name: "onBehalf", type: "address" },
|
|
91
|
+
{ name: "data", type: "bytes" },
|
|
92
|
+
],
|
|
93
|
+
outputs: [
|
|
94
|
+
{ name: "assetsRepaid", type: "uint256" },
|
|
95
|
+
{ name: "sharesRepaid", type: "uint256" },
|
|
96
|
+
],
|
|
97
|
+
stateMutability: "nonpayable",
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
type: "function",
|
|
101
|
+
name: "setAuthorizationWithSig",
|
|
102
|
+
inputs: [
|
|
103
|
+
{
|
|
104
|
+
name: "authorization",
|
|
105
|
+
type: "tuple",
|
|
106
|
+
components: [
|
|
107
|
+
{ name: "authorizer", type: "address" },
|
|
108
|
+
{ name: "authorized", type: "address" },
|
|
109
|
+
{ name: "isAuthorized", type: "bool" },
|
|
110
|
+
{ name: "nonce", type: "uint256" },
|
|
111
|
+
{ name: "deadline", type: "uint256" },
|
|
112
|
+
],
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
name: "signature",
|
|
116
|
+
type: "tuple",
|
|
117
|
+
components: [
|
|
118
|
+
{ name: "v", type: "uint8" },
|
|
119
|
+
{ name: "r", type: "bytes32" },
|
|
120
|
+
{ name: "s", type: "bytes32" },
|
|
121
|
+
],
|
|
122
|
+
},
|
|
123
|
+
],
|
|
124
|
+
outputs: [],
|
|
125
|
+
stateMutability: "nonpayable",
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
type: "function",
|
|
129
|
+
name: "supplyCollateral",
|
|
130
|
+
inputs: [
|
|
131
|
+
{
|
|
132
|
+
name: "marketParams",
|
|
133
|
+
type: "tuple",
|
|
134
|
+
components: [
|
|
135
|
+
{ name: "loanToken", type: "address" },
|
|
136
|
+
{ name: "collateralToken", type: "address" },
|
|
137
|
+
{ name: "oracle", type: "address" },
|
|
138
|
+
{ name: "irm", type: "address" },
|
|
139
|
+
{ name: "lltv", type: "uint256" },
|
|
140
|
+
],
|
|
141
|
+
},
|
|
142
|
+
{ name: "assets", type: "uint256" },
|
|
143
|
+
{ name: "onBehalf", type: "address" },
|
|
144
|
+
{ name: "data", type: "bytes" },
|
|
145
|
+
],
|
|
146
|
+
outputs: [],
|
|
147
|
+
stateMutability: "nonpayable",
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
type: "function",
|
|
151
|
+
name: "withdrawCollateral",
|
|
152
|
+
inputs: [
|
|
153
|
+
{
|
|
154
|
+
name: "marketParams",
|
|
155
|
+
type: "tuple",
|
|
156
|
+
components: [
|
|
157
|
+
{ name: "loanToken", type: "address" },
|
|
158
|
+
{ name: "collateralToken", type: "address" },
|
|
159
|
+
{ name: "oracle", type: "address" },
|
|
160
|
+
{ name: "irm", type: "address" },
|
|
161
|
+
{ name: "lltv", type: "uint256" },
|
|
162
|
+
],
|
|
163
|
+
},
|
|
164
|
+
{ name: "assets", type: "uint256" },
|
|
165
|
+
{ name: "onBehalf", type: "address" },
|
|
166
|
+
{ name: "receiver", type: "address" },
|
|
167
|
+
],
|
|
168
|
+
outputs: [],
|
|
169
|
+
stateMutability: "nonpayable",
|
|
170
|
+
},
|
|
171
|
+
];
|
|
172
|
+
//# sourceMappingURL=morphoBlueAbi.js.map
|
package/dist/src/services/positionMigrationService/connectors/morpho/abis/morphoBlueAbi.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"morphoBlueAbi.js","sourceRoot":"","sources":["../../../../../../../src/services/positionMigrationService/connectors/morpho/abis/morphoBlueAbi.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG;IAC5B;QACC,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE;YACP;gBACC,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,OAAO;gBACb,UAAU,EAAE;oBACX,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE;oBACtC,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAAI,EAAE,SAAS,EAAE;oBAC5C,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,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E,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE;iBACjC;aACD;YACD,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE;YACnC,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE;YACrC,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE;SACrC;QACD,OAAO,EAAE,EAAE;QACX,eAAe,EAAE,YAAY;KAC7B;CACQ,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { morphoBlueAbi } from "./abis/morphoBlueAbi.js";
|
|
2
|
+
export { getMorphoMarketId, MORPHO_AUTHORIZATION_TYPES, MORPHO_CONNECTOR_ID, MORPHO_PROTOCOL, MorphoPositionMigrationConnector, splitMorphoAuthorizationSignature, } from "./morphoConnector.js";
|
|
3
|
+
export type { MorphoAuthorization, MorphoAuthorizationTypedDataMessage, MorphoAuthorizationTypedDataRequest, MorphoMarketParams, MorphoMarketState, MorphoMigrationConnectorConfig, MorphoMigrationPosition, MorphoMigrationTargetRaw, MorphoPositionRaw, MorphoSignature, } from "./morphoConnectorTypes.js";
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/services/positionMigrationService/connectors/morpho/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EACN,iBAAiB,EACjB,0BAA0B,EAC1B,mBAAmB,EACnB,eAAe,EACf,gCAAgC,EAChC,iCAAiC,GACjC,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EACX,mBAAmB,EACnB,mCAAmC,EACnC,mCAAmC,EACnC,kBAAkB,EAClB,iBAAiB,EACjB,8BAA8B,EAC9B,uBAAuB,EACvB,wBAAwB,EACxB,iBAAiB,EACjB,eAAe,GACf,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { morphoBlueAbi } from "./abis/morphoBlueAbi.js";
|
|
2
|
+
export { getMorphoMarketId, MORPHO_AUTHORIZATION_TYPES, MORPHO_CONNECTOR_ID, MORPHO_PROTOCOL, MorphoPositionMigrationConnector, splitMorphoAuthorizationSignature, } from "./morphoConnector.js";
|
|
3
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/services/positionMigrationService/connectors/morpho/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EACN,iBAAiB,EACjB,0BAA0B,EAC1B,mBAAmB,EACnB,eAAe,EACf,gCAAgC,EAChC,iCAAiC,GACjC,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { type Address, type Hex } from "viem";
|
|
2
|
+
import type { IDeploymentService } from "../../../deploymentService/index.js";
|
|
3
|
+
import { type EVCBatchItem, type IExecutionService } from "../../../executionService/index.js";
|
|
4
|
+
import type { IProviderService } from "../../../providerService/index.js";
|
|
5
|
+
import type { BuildConnectorMigrationBatchArgs, GetMigrationAuthorizationArgs, GetMigrationPositionArgs, ListMigrationPositionsArgs, ListMigrationTargetsArgs, MigrationTarget, PositionMigrationConnector } from "../../positionMigrationServiceTypes.js";
|
|
6
|
+
import type { MorphoAuthorizationTypedDataRequest, MorphoMarketParams, MorphoMigrationConnectorConfig, MorphoMigrationPosition, MorphoMigrationTargetRaw, MorphoSignature } from "./morphoConnectorTypes.js";
|
|
7
|
+
export declare const MORPHO_CONNECTOR_ID = "morpho";
|
|
8
|
+
export declare const MORPHO_PROTOCOL = "Morpho";
|
|
9
|
+
export declare const MORPHO_AUTHORIZATION_TYPES: {
|
|
10
|
+
readonly Authorization: readonly [{
|
|
11
|
+
readonly name: "authorizer";
|
|
12
|
+
readonly type: "address";
|
|
13
|
+
}, {
|
|
14
|
+
readonly name: "authorized";
|
|
15
|
+
readonly type: "address";
|
|
16
|
+
}, {
|
|
17
|
+
readonly name: "isAuthorized";
|
|
18
|
+
readonly type: "bool";
|
|
19
|
+
}, {
|
|
20
|
+
readonly name: "nonce";
|
|
21
|
+
readonly type: "uint256";
|
|
22
|
+
}, {
|
|
23
|
+
readonly name: "deadline";
|
|
24
|
+
readonly type: "uint256";
|
|
25
|
+
}];
|
|
26
|
+
};
|
|
27
|
+
export declare function getMorphoMarketId(marketParams: MorphoMarketParams): Hex;
|
|
28
|
+
export declare function splitMorphoAuthorizationSignature(signature: Hex): MorphoSignature;
|
|
29
|
+
export declare class MorphoPositionMigrationConnector implements PositionMigrationConnector<MorphoMarketParams, MorphoMigrationPosition> {
|
|
30
|
+
private readonly deploymentService;
|
|
31
|
+
private readonly providerService;
|
|
32
|
+
private readonly executionService;
|
|
33
|
+
readonly id = "morpho";
|
|
34
|
+
readonly protocol = "Morpho";
|
|
35
|
+
readonly name = "Morpho";
|
|
36
|
+
private readonly morphoAddresses;
|
|
37
|
+
private readonly defaultInterestBufferBps;
|
|
38
|
+
private readonly morphoGraphqlUrl;
|
|
39
|
+
private readonly morphoGraphqlTimeoutMs;
|
|
40
|
+
private readonly fetchFn;
|
|
41
|
+
private readonly defaultMinLiquidity;
|
|
42
|
+
constructor(deploymentService: IDeploymentService, providerService: IProviderService, executionService: IExecutionService, config?: MorphoMigrationConnectorConfig);
|
|
43
|
+
listPositions(args: ListMigrationPositionsArgs<MorphoMarketParams>): Promise<MorphoMigrationPosition[]>;
|
|
44
|
+
listTargets(args: ListMigrationTargetsArgs): Promise<MigrationTarget<MorphoMigrationTargetRaw, MorphoMarketParams>[]>;
|
|
45
|
+
getPosition(args: GetMigrationPositionArgs<MorphoMarketParams>): Promise<MorphoMigrationPosition>;
|
|
46
|
+
getAuthorization(args: GetMigrationAuthorizationArgs<MorphoMigrationPosition>): Promise<MorphoAuthorizationTypedDataRequest | undefined>;
|
|
47
|
+
buildMigrationBatch(args: BuildConnectorMigrationBatchArgs<MorphoMigrationPosition>): Promise<EVCBatchItem[]>;
|
|
48
|
+
private buildExternalToEulerBatch;
|
|
49
|
+
private buildEulerToMorphoBatch;
|
|
50
|
+
getProtocolAddress(chainId: number): Address | undefined;
|
|
51
|
+
getMorphoAddress(chainId: number): Address;
|
|
52
|
+
private isAuthorized;
|
|
53
|
+
private encodeSetAuthorizationWithSigItem;
|
|
54
|
+
private encodeRemoveAuthorizationItem;
|
|
55
|
+
private buildAuthorizationRequest;
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=morphoConnector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"morphoConnector.d.ts","sourceRoot":"","sources":["../../../../../../src/services/positionMigrationService/connectors/morpho/morphoConnector.ts"],"names":[],"mappings":"AAAA,OAAO,EAMN,KAAK,OAAO,EACZ,KAAK,GAAG,EACR,MAAM,MAAM,CAAC;AACd,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAEN,KAAK,YAAY,EACjB,KAAK,iBAAiB,EAGtB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAkB1E,OAAO,KAAK,EACX,gCAAgC,EAChC,6BAA6B,EAC7B,wBAAwB,EACxB,0BAA0B,EAC1B,wBAAwB,EACxB,eAAe,EAEf,0BAA0B,EAE1B,MAAM,wCAAwC,CAAC;AAEhD,OAAO,KAAK,EAGX,mCAAmC,EACnC,kBAAkB,EAElB,8BAA8B,EAC9B,uBAAuB,EACvB,wBAAwB,EAExB,eAAe,EACf,MAAM,2BAA2B,CAAC;AAEnC,eAAO,MAAM,mBAAmB,WAAW,CAAC;AAC5C,eAAO,MAAM,eAAe,WAAW,CAAC;AA+FxC,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;CAQ7B,CAAC;AAEX,w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