@nexusmutual/sdk 1.12.0-rc.3 → 1.12.0-rc.4
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/dist/data/abis/{Assessment.json → Assessments.json} +365 -416
- package/dist/data/abis/{IndividualClaims.json → Claims.json} +320 -264
- package/dist/data/abis/Cover.json +7 -2
- package/dist/data/abis/CoverBroker.json +74 -34
- package/dist/data/abis/CoverProducts.json +55 -0
- package/dist/data/abis/Governor.json +817 -0
- package/dist/data/abis/LimitOrders.json +0 -7
- package/dist/data/abis/NXMaster.json +37 -223
- package/dist/data/abis/Pool.json +410 -229
- package/dist/data/abis/Ramm.json +92 -67
- package/dist/data/abis/{MemberRoles.json → Registry.json} +553 -249
- package/dist/data/abis/SafeTracker.json +89 -58
- package/dist/data/abis/StakingProducts.json +1 -14
- package/dist/data/abis/StakingViewer.json +82 -24
- package/dist/data/abis/SwapOperator.json +360 -209
- package/dist/data/abis/TokenController.json +72 -303
- package/dist/data/addresses.json +6 -10
- package/dist/data/product-types.json +24 -24
- package/dist/data/products.json +40 -40
- package/dist/data/version.json +1 -1
- package/dist/index.d.mts +12360 -12932
- package/dist/index.d.ts +12360 -12932
- package/dist/index.js +65 -65
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +65 -65
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -3
- package/dist/data/abis/AssessmentViewer.json +0 -106
- package/dist/data/abis/MCR.json +0 -321
- package/dist/data/abis/NexusViewer.json +0 -199
- package/dist/data/abis/PriceFeedOracle.json +0 -312
- package/dist/data/abis/ProposalCategory.json +0 -653
|
@@ -3,260 +3,392 @@
|
|
|
3
3
|
"inputs": [
|
|
4
4
|
{
|
|
5
5
|
"internalType": "address",
|
|
6
|
-
"name": "
|
|
6
|
+
"name": "_registryAddress",
|
|
7
7
|
"type": "address"
|
|
8
8
|
},
|
|
9
9
|
{
|
|
10
10
|
"internalType": "address",
|
|
11
|
-
"name": "
|
|
11
|
+
"name": "_cowSettlement",
|
|
12
12
|
"type": "address"
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
15
|
"internalType": "address",
|
|
16
|
-
"name": "
|
|
16
|
+
"name": "_enzymeV4VaultProxyAddress",
|
|
17
17
|
"type": "address"
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
20
|
"internalType": "address",
|
|
21
21
|
"name": "_weth",
|
|
22
22
|
"type": "address"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"stateMutability": "nonpayable",
|
|
26
|
+
"type": "constructor"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"inputs": [],
|
|
30
|
+
"name": "AboveMaxValidTo",
|
|
31
|
+
"type": "error"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"inputs": [],
|
|
35
|
+
"name": "BelowMinValidTo",
|
|
36
|
+
"type": "error"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"inputs": [],
|
|
40
|
+
"name": "FeeNotZero",
|
|
41
|
+
"type": "error"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"inputs": [
|
|
45
|
+
{
|
|
46
|
+
"internalType": "uint256",
|
|
47
|
+
"name": "expectedFromAmount",
|
|
48
|
+
"type": "uint256"
|
|
23
49
|
},
|
|
24
50
|
{
|
|
25
|
-
"internalType": "
|
|
26
|
-
"name": "
|
|
27
|
-
"type": "
|
|
51
|
+
"internalType": "uint256",
|
|
52
|
+
"name": "actualFromAmount",
|
|
53
|
+
"type": "uint256"
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"name": "FromAmountMismatch",
|
|
57
|
+
"type": "error"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"inputs": [
|
|
61
|
+
{
|
|
62
|
+
"internalType": "uint256",
|
|
63
|
+
"name": "expectedFromAmount",
|
|
64
|
+
"type": "uint256"
|
|
28
65
|
},
|
|
66
|
+
{
|
|
67
|
+
"internalType": "uint256",
|
|
68
|
+
"name": "actualFromAmount",
|
|
69
|
+
"type": "uint256"
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"name": "FromAmountTooHigh",
|
|
73
|
+
"type": "error"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"inputs": [
|
|
29
77
|
{
|
|
30
78
|
"internalType": "address",
|
|
31
|
-
"name": "
|
|
79
|
+
"name": "requestedAsset",
|
|
32
80
|
"type": "address"
|
|
33
81
|
},
|
|
34
82
|
{
|
|
35
83
|
"internalType": "address",
|
|
36
|
-
"name": "
|
|
84
|
+
"name": "orderAsset",
|
|
37
85
|
"type": "address"
|
|
38
|
-
}
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"name": "InvalidAsset",
|
|
89
|
+
"type": "error"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"inputs": [
|
|
39
93
|
{
|
|
40
94
|
"internalType": "address",
|
|
41
|
-
"name": "
|
|
95
|
+
"name": "expectedAsset",
|
|
42
96
|
"type": "address"
|
|
43
97
|
},
|
|
44
98
|
{
|
|
45
|
-
"internalType": "
|
|
46
|
-
"name": "
|
|
99
|
+
"internalType": "address",
|
|
100
|
+
"name": "actualAsset",
|
|
47
101
|
"type": "address"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"internalType": "uint256",
|
|
51
|
-
"name": "_minPoolEth",
|
|
52
|
-
"type": "uint256"
|
|
53
102
|
}
|
|
54
103
|
],
|
|
55
|
-
"
|
|
56
|
-
"type": "
|
|
104
|
+
"name": "InvalidDenominationAsset",
|
|
105
|
+
"type": "error"
|
|
57
106
|
},
|
|
58
107
|
{
|
|
59
108
|
"inputs": [
|
|
60
109
|
{
|
|
61
|
-
"internalType": "
|
|
62
|
-
"name": "
|
|
63
|
-
"type": "
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
"internalType": "uint256",
|
|
67
|
-
"name": "maxFee",
|
|
68
|
-
"type": "uint256"
|
|
110
|
+
"internalType": "address",
|
|
111
|
+
"name": "validReceiver",
|
|
112
|
+
"type": "address"
|
|
69
113
|
}
|
|
70
114
|
],
|
|
71
|
-
"name": "
|
|
115
|
+
"name": "InvalidReceiver",
|
|
116
|
+
"type": "error"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"inputs": [],
|
|
120
|
+
"name": "InvalidRecoveryReceiver",
|
|
121
|
+
"type": "error"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"inputs": [],
|
|
125
|
+
"name": "InvalidSwapKind",
|
|
72
126
|
"type": "error"
|
|
73
127
|
},
|
|
74
128
|
{
|
|
75
129
|
"inputs": [
|
|
76
130
|
{
|
|
77
|
-
"internalType": "
|
|
78
|
-
"name": "
|
|
79
|
-
"type": "
|
|
131
|
+
"internalType": "address",
|
|
132
|
+
"name": "asset",
|
|
133
|
+
"type": "address"
|
|
80
134
|
}
|
|
81
135
|
],
|
|
82
|
-
"name": "
|
|
136
|
+
"name": "InvalidSwapOperationForAsset",
|
|
137
|
+
"type": "error"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"inputs": [],
|
|
141
|
+
"name": "NoOrderToClose",
|
|
142
|
+
"type": "error"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"inputs": [],
|
|
146
|
+
"name": "OnlyController",
|
|
147
|
+
"type": "error"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"inputs": [],
|
|
151
|
+
"name": "OnlyMember",
|
|
152
|
+
"type": "error"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"inputs": [],
|
|
156
|
+
"name": "OnlySafe",
|
|
83
157
|
"type": "error"
|
|
84
158
|
},
|
|
85
159
|
{
|
|
86
160
|
"inputs": [
|
|
87
161
|
{
|
|
88
|
-
"internalType": "
|
|
89
|
-
"name": "
|
|
90
|
-
"type": "
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"internalType": "uint256",
|
|
94
|
-
"name": "minAmount",
|
|
95
|
-
"type": "uint256"
|
|
162
|
+
"internalType": "bytes",
|
|
163
|
+
"name": "currentOrderUID",
|
|
164
|
+
"type": "bytes"
|
|
96
165
|
}
|
|
97
166
|
],
|
|
98
|
-
"name": "
|
|
167
|
+
"name": "OrderInProgress",
|
|
99
168
|
"type": "error"
|
|
100
169
|
},
|
|
101
170
|
{
|
|
102
171
|
"inputs": [
|
|
103
172
|
{
|
|
104
|
-
"internalType": "
|
|
105
|
-
"name": "
|
|
106
|
-
"type": "
|
|
173
|
+
"internalType": "bytes",
|
|
174
|
+
"name": "providedOrderUID",
|
|
175
|
+
"type": "bytes"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"internalType": "bytes",
|
|
179
|
+
"name": "expectedOrderUID",
|
|
180
|
+
"type": "bytes"
|
|
107
181
|
}
|
|
108
182
|
],
|
|
109
|
-
"name": "
|
|
183
|
+
"name": "OrderUidMismatch",
|
|
110
184
|
"type": "error"
|
|
111
185
|
},
|
|
112
186
|
{
|
|
113
187
|
"inputs": [
|
|
114
188
|
{
|
|
115
189
|
"internalType": "uint256",
|
|
116
|
-
"name": "
|
|
190
|
+
"name": "currentState",
|
|
191
|
+
"type": "uint256"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"internalType": "uint256",
|
|
195
|
+
"name": "checks",
|
|
117
196
|
"type": "uint256"
|
|
118
197
|
}
|
|
119
198
|
],
|
|
120
|
-
"name": "
|
|
199
|
+
"name": "Paused",
|
|
200
|
+
"type": "error"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"inputs": [],
|
|
204
|
+
"name": "SafeAssetAmountIsZero",
|
|
121
205
|
"type": "error"
|
|
122
206
|
},
|
|
123
207
|
{
|
|
124
208
|
"inputs": [
|
|
125
209
|
{
|
|
126
210
|
"internalType": "uint256",
|
|
127
|
-
"name": "
|
|
211
|
+
"name": "requestedAmount",
|
|
128
212
|
"type": "uint256"
|
|
129
213
|
},
|
|
130
214
|
{
|
|
131
215
|
"internalType": "uint256",
|
|
132
|
-
"name": "
|
|
216
|
+
"name": "amount",
|
|
133
217
|
"type": "uint256"
|
|
134
218
|
}
|
|
135
219
|
],
|
|
136
|
-
"name": "
|
|
220
|
+
"name": "SafeAssetAmountMismatch",
|
|
137
221
|
"type": "error"
|
|
138
222
|
},
|
|
139
223
|
{
|
|
140
224
|
"inputs": [
|
|
141
225
|
{
|
|
142
226
|
"internalType": "address",
|
|
143
|
-
"name": "
|
|
227
|
+
"name": "requestedAsset",
|
|
144
228
|
"type": "address"
|
|
145
229
|
},
|
|
146
230
|
{
|
|
147
231
|
"internalType": "address",
|
|
148
|
-
"name": "
|
|
232
|
+
"name": "asset",
|
|
149
233
|
"type": "address"
|
|
150
234
|
}
|
|
151
235
|
],
|
|
152
|
-
"name": "
|
|
236
|
+
"name": "SafeAssetMismatch",
|
|
153
237
|
"type": "error"
|
|
154
238
|
},
|
|
155
239
|
{
|
|
156
240
|
"inputs": [
|
|
157
241
|
{
|
|
158
|
-
"internalType": "
|
|
159
|
-
"name": "
|
|
160
|
-
"type": "
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
"internalType": "uint256",
|
|
164
|
-
"name": "limit",
|
|
165
|
-
"type": "uint256"
|
|
242
|
+
"internalType": "address",
|
|
243
|
+
"name": "asset",
|
|
244
|
+
"type": "address"
|
|
166
245
|
}
|
|
167
246
|
],
|
|
168
|
-
"name": "
|
|
247
|
+
"name": "SafeAssetNotAllowed",
|
|
169
248
|
"type": "error"
|
|
170
249
|
},
|
|
171
250
|
{
|
|
172
251
|
"inputs": [
|
|
173
252
|
{
|
|
174
253
|
"internalType": "address",
|
|
175
|
-
"name": "
|
|
254
|
+
"name": "asset",
|
|
176
255
|
"type": "address"
|
|
177
256
|
}
|
|
178
257
|
],
|
|
179
|
-
"name": "
|
|
258
|
+
"name": "SameAssetSwapRequest",
|
|
180
259
|
"type": "error"
|
|
181
260
|
},
|
|
182
261
|
{
|
|
183
262
|
"inputs": [
|
|
184
263
|
{
|
|
185
|
-
"internalType": "
|
|
186
|
-
"name": "
|
|
187
|
-
"type": "
|
|
264
|
+
"internalType": "uint256",
|
|
265
|
+
"name": "deadline",
|
|
266
|
+
"type": "uint256"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"internalType": "uint256",
|
|
270
|
+
"name": "blockTimestamp",
|
|
271
|
+
"type": "uint256"
|
|
188
272
|
}
|
|
189
273
|
],
|
|
190
|
-
"name": "
|
|
274
|
+
"name": "SwapDeadlineExceeded",
|
|
191
275
|
"type": "error"
|
|
192
276
|
},
|
|
193
277
|
{
|
|
194
|
-
"inputs": [
|
|
195
|
-
|
|
278
|
+
"inputs": [
|
|
279
|
+
{
|
|
280
|
+
"internalType": "uint256",
|
|
281
|
+
"name": "expectedMaxFromAmount",
|
|
282
|
+
"type": "uint256"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"internalType": "uint256",
|
|
286
|
+
"name": "actualFromAmount",
|
|
287
|
+
"type": "uint256"
|
|
288
|
+
}
|
|
289
|
+
],
|
|
290
|
+
"name": "SwappedFromAmountTooHigh",
|
|
196
291
|
"type": "error"
|
|
197
292
|
},
|
|
198
293
|
{
|
|
199
|
-
"inputs": [
|
|
200
|
-
|
|
294
|
+
"inputs": [
|
|
295
|
+
{
|
|
296
|
+
"internalType": "uint256",
|
|
297
|
+
"name": "expectedMinToAmount",
|
|
298
|
+
"type": "uint256"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"internalType": "uint256",
|
|
302
|
+
"name": "actualToAmount",
|
|
303
|
+
"type": "uint256"
|
|
304
|
+
}
|
|
305
|
+
],
|
|
306
|
+
"name": "SwappedToAmountTooLow",
|
|
201
307
|
"type": "error"
|
|
202
308
|
},
|
|
203
309
|
{
|
|
204
310
|
"inputs": [
|
|
205
311
|
{
|
|
206
|
-
"internalType": "
|
|
207
|
-
"name": "
|
|
208
|
-
"type": "
|
|
312
|
+
"internalType": "uint256",
|
|
313
|
+
"name": "expectedToAmount",
|
|
314
|
+
"type": "uint256"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"internalType": "uint256",
|
|
318
|
+
"name": "actualToAmount",
|
|
319
|
+
"type": "uint256"
|
|
209
320
|
}
|
|
210
321
|
],
|
|
211
|
-
"name": "
|
|
322
|
+
"name": "ToAmountMismatch",
|
|
212
323
|
"type": "error"
|
|
213
324
|
},
|
|
214
325
|
{
|
|
215
326
|
"inputs": [
|
|
216
327
|
{
|
|
217
|
-
"internalType": "
|
|
218
|
-
"name": "
|
|
219
|
-
"type": "
|
|
328
|
+
"internalType": "uint256",
|
|
329
|
+
"name": "expectedToAmount",
|
|
330
|
+
"type": "uint256"
|
|
220
331
|
},
|
|
221
332
|
{
|
|
222
|
-
"internalType": "
|
|
223
|
-
"name": "
|
|
224
|
-
"type": "
|
|
333
|
+
"internalType": "uint256",
|
|
334
|
+
"name": "actualToAmount",
|
|
335
|
+
"type": "uint256"
|
|
225
336
|
}
|
|
226
337
|
],
|
|
227
|
-
"name": "
|
|
338
|
+
"name": "ToAmountTooLow",
|
|
228
339
|
"type": "error"
|
|
229
340
|
},
|
|
230
341
|
{
|
|
231
342
|
"inputs": [
|
|
343
|
+
{
|
|
344
|
+
"internalType": "address",
|
|
345
|
+
"name": "to",
|
|
346
|
+
"type": "address"
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"internalType": "uint256",
|
|
350
|
+
"name": "value",
|
|
351
|
+
"type": "uint256"
|
|
352
|
+
},
|
|
232
353
|
{
|
|
233
354
|
"internalType": "address",
|
|
234
355
|
"name": "token",
|
|
235
356
|
"type": "address"
|
|
236
357
|
}
|
|
237
358
|
],
|
|
238
|
-
"name": "
|
|
359
|
+
"name": "TransferFailed",
|
|
239
360
|
"type": "error"
|
|
240
361
|
},
|
|
241
362
|
{
|
|
242
363
|
"inputs": [
|
|
243
364
|
{
|
|
244
365
|
"internalType": "address",
|
|
245
|
-
"name": "
|
|
366
|
+
"name": "caller",
|
|
246
367
|
"type": "address"
|
|
247
368
|
},
|
|
248
369
|
{
|
|
249
370
|
"internalType": "uint256",
|
|
250
|
-
"name": "
|
|
371
|
+
"name": "callerIndex",
|
|
251
372
|
"type": "uint256"
|
|
252
373
|
},
|
|
374
|
+
{
|
|
375
|
+
"internalType": "uint256",
|
|
376
|
+
"name": "authorizedBitmap",
|
|
377
|
+
"type": "uint256"
|
|
378
|
+
}
|
|
379
|
+
],
|
|
380
|
+
"name": "Unauthorized",
|
|
381
|
+
"type": "error"
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
"inputs": [
|
|
253
385
|
{
|
|
254
386
|
"internalType": "address",
|
|
255
|
-
"name": "
|
|
387
|
+
"name": "asset",
|
|
256
388
|
"type": "address"
|
|
257
389
|
}
|
|
258
390
|
],
|
|
259
|
-
"name": "
|
|
391
|
+
"name": "UnsupportedAsset",
|
|
260
392
|
"type": "error"
|
|
261
393
|
},
|
|
262
394
|
{
|
|
@@ -270,6 +402,11 @@
|
|
|
270
402
|
"name": "UnsupportedTokenBalance",
|
|
271
403
|
"type": "error"
|
|
272
404
|
},
|
|
405
|
+
{
|
|
406
|
+
"inputs": [],
|
|
407
|
+
"name": "ZeroBalance",
|
|
408
|
+
"type": "error"
|
|
409
|
+
},
|
|
273
410
|
{
|
|
274
411
|
"anonymous": false,
|
|
275
412
|
"inputs": [
|
|
@@ -444,72 +581,89 @@
|
|
|
444
581
|
{
|
|
445
582
|
"indexed": false,
|
|
446
583
|
"internalType": "uint256",
|
|
447
|
-
"name": "
|
|
584
|
+
"name": "fromAmount",
|
|
448
585
|
"type": "uint256"
|
|
449
586
|
},
|
|
450
587
|
{
|
|
451
588
|
"indexed": false,
|
|
452
589
|
"internalType": "uint256",
|
|
453
|
-
"name": "
|
|
590
|
+
"name": "toAmount",
|
|
454
591
|
"type": "uint256"
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
"indexed": false,
|
|
595
|
+
"internalType": "enum ISwapOperator.SwapKind",
|
|
596
|
+
"name": "swapKind",
|
|
597
|
+
"type": "uint8"
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
"indexed": false,
|
|
601
|
+
"internalType": "uint32",
|
|
602
|
+
"name": "deadline",
|
|
603
|
+
"type": "uint32"
|
|
455
604
|
}
|
|
456
605
|
],
|
|
457
|
-
"name": "
|
|
606
|
+
"name": "SwapRequestCreated",
|
|
458
607
|
"type": "event"
|
|
459
608
|
},
|
|
460
609
|
{
|
|
461
610
|
"anonymous": false,
|
|
462
611
|
"inputs": [
|
|
463
612
|
{
|
|
464
|
-
"indexed":
|
|
613
|
+
"indexed": true,
|
|
465
614
|
"internalType": "address",
|
|
466
|
-
"name": "
|
|
615
|
+
"name": "fromAsset",
|
|
616
|
+
"type": "address"
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
"indexed": true,
|
|
620
|
+
"internalType": "address",
|
|
621
|
+
"name": "toAsset",
|
|
467
622
|
"type": "address"
|
|
468
623
|
},
|
|
469
624
|
{
|
|
470
625
|
"indexed": false,
|
|
471
626
|
"internalType": "uint256",
|
|
472
|
-
"name": "
|
|
627
|
+
"name": "fromAmount",
|
|
628
|
+
"type": "uint256"
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
"indexed": false,
|
|
632
|
+
"internalType": "uint256",
|
|
633
|
+
"name": "toAmount",
|
|
473
634
|
"type": "uint256"
|
|
474
635
|
}
|
|
475
636
|
],
|
|
476
|
-
"name": "
|
|
637
|
+
"name": "Swapped",
|
|
477
638
|
"type": "event"
|
|
478
639
|
},
|
|
479
640
|
{
|
|
480
|
-
"
|
|
481
|
-
"
|
|
482
|
-
"outputs": [
|
|
641
|
+
"anonymous": false,
|
|
642
|
+
"inputs": [
|
|
483
643
|
{
|
|
644
|
+
"indexed": false,
|
|
484
645
|
"internalType": "address",
|
|
485
|
-
"name": "",
|
|
646
|
+
"name": "asset",
|
|
486
647
|
"type": "address"
|
|
487
|
-
}
|
|
488
|
-
],
|
|
489
|
-
"stateMutability": "view",
|
|
490
|
-
"type": "function"
|
|
491
|
-
},
|
|
492
|
-
{
|
|
493
|
-
"inputs": [],
|
|
494
|
-
"name": "MAX_FEE",
|
|
495
|
-
"outputs": [
|
|
648
|
+
},
|
|
496
649
|
{
|
|
650
|
+
"indexed": false,
|
|
497
651
|
"internalType": "uint256",
|
|
498
|
-
"name": "",
|
|
652
|
+
"name": "amount",
|
|
499
653
|
"type": "uint256"
|
|
500
654
|
}
|
|
501
655
|
],
|
|
502
|
-
"
|
|
503
|
-
"type": "
|
|
656
|
+
"name": "TransferredToSafe",
|
|
657
|
+
"type": "event"
|
|
504
658
|
},
|
|
505
659
|
{
|
|
506
660
|
"inputs": [],
|
|
507
|
-
"name": "
|
|
661
|
+
"name": "ETH",
|
|
508
662
|
"outputs": [
|
|
509
663
|
{
|
|
510
|
-
"internalType": "
|
|
664
|
+
"internalType": "address",
|
|
511
665
|
"name": "",
|
|
512
|
-
"type": "
|
|
666
|
+
"type": "address"
|
|
513
667
|
}
|
|
514
668
|
],
|
|
515
669
|
"stateMutability": "view",
|
|
@@ -528,19 +682,6 @@
|
|
|
528
682
|
"stateMutability": "view",
|
|
529
683
|
"type": "function"
|
|
530
684
|
},
|
|
531
|
-
{
|
|
532
|
-
"inputs": [],
|
|
533
|
-
"name": "MIN_TIME_BETWEEN_ORDERS",
|
|
534
|
-
"outputs": [
|
|
535
|
-
{
|
|
536
|
-
"internalType": "uint256",
|
|
537
|
-
"name": "",
|
|
538
|
-
"type": "uint256"
|
|
539
|
-
}
|
|
540
|
-
],
|
|
541
|
-
"stateMutability": "view",
|
|
542
|
-
"type": "function"
|
|
543
|
-
},
|
|
544
685
|
{
|
|
545
686
|
"inputs": [],
|
|
546
687
|
"name": "MIN_VALID_TO_PERIOD",
|
|
@@ -554,25 +695,6 @@
|
|
|
554
695
|
"stateMutability": "view",
|
|
555
696
|
"type": "function"
|
|
556
697
|
},
|
|
557
|
-
{
|
|
558
|
-
"inputs": [
|
|
559
|
-
{
|
|
560
|
-
"internalType": "address",
|
|
561
|
-
"name": "",
|
|
562
|
-
"type": "address"
|
|
563
|
-
}
|
|
564
|
-
],
|
|
565
|
-
"name": "allowedSafeTransferAssets",
|
|
566
|
-
"outputs": [
|
|
567
|
-
{
|
|
568
|
-
"internalType": "bool",
|
|
569
|
-
"name": "",
|
|
570
|
-
"type": "bool"
|
|
571
|
-
}
|
|
572
|
-
],
|
|
573
|
-
"stateMutability": "view",
|
|
574
|
-
"type": "function"
|
|
575
|
-
},
|
|
576
698
|
{
|
|
577
699
|
"inputs": [
|
|
578
700
|
{
|
|
@@ -702,10 +824,10 @@
|
|
|
702
824
|
},
|
|
703
825
|
{
|
|
704
826
|
"inputs": [],
|
|
705
|
-
"name": "
|
|
827
|
+
"name": "enzymeComptroller",
|
|
706
828
|
"outputs": [
|
|
707
829
|
{
|
|
708
|
-
"internalType": "contract
|
|
830
|
+
"internalType": "contract IEnzymeV4Comptroller",
|
|
709
831
|
"name": "",
|
|
710
832
|
"type": "address"
|
|
711
833
|
}
|
|
@@ -888,32 +1010,6 @@
|
|
|
888
1010
|
"stateMutability": "view",
|
|
889
1011
|
"type": "function"
|
|
890
1012
|
},
|
|
891
|
-
{
|
|
892
|
-
"inputs": [],
|
|
893
|
-
"name": "master",
|
|
894
|
-
"outputs": [
|
|
895
|
-
{
|
|
896
|
-
"internalType": "contract INXMMaster",
|
|
897
|
-
"name": "",
|
|
898
|
-
"type": "address"
|
|
899
|
-
}
|
|
900
|
-
],
|
|
901
|
-
"stateMutability": "view",
|
|
902
|
-
"type": "function"
|
|
903
|
-
},
|
|
904
|
-
{
|
|
905
|
-
"inputs": [],
|
|
906
|
-
"name": "minPoolEth",
|
|
907
|
-
"outputs": [
|
|
908
|
-
{
|
|
909
|
-
"internalType": "uint256",
|
|
910
|
-
"name": "",
|
|
911
|
-
"type": "uint256"
|
|
912
|
-
}
|
|
913
|
-
],
|
|
914
|
-
"stateMutability": "view",
|
|
915
|
-
"type": "function"
|
|
916
|
-
},
|
|
917
1013
|
{
|
|
918
1014
|
"inputs": [],
|
|
919
1015
|
"name": "orderInProgress",
|
|
@@ -1007,6 +1103,19 @@
|
|
|
1007
1103
|
"stateMutability": "nonpayable",
|
|
1008
1104
|
"type": "function"
|
|
1009
1105
|
},
|
|
1106
|
+
{
|
|
1107
|
+
"inputs": [],
|
|
1108
|
+
"name": "pool",
|
|
1109
|
+
"outputs": [
|
|
1110
|
+
{
|
|
1111
|
+
"internalType": "contract IPool",
|
|
1112
|
+
"name": "",
|
|
1113
|
+
"type": "address"
|
|
1114
|
+
}
|
|
1115
|
+
],
|
|
1116
|
+
"stateMutability": "view",
|
|
1117
|
+
"type": "function"
|
|
1118
|
+
},
|
|
1010
1119
|
{
|
|
1011
1120
|
"inputs": [
|
|
1012
1121
|
{
|
|
@@ -1026,34 +1135,74 @@
|
|
|
1026
1135
|
"type": "function"
|
|
1027
1136
|
},
|
|
1028
1137
|
{
|
|
1029
|
-
"inputs": [
|
|
1138
|
+
"inputs": [],
|
|
1139
|
+
"name": "registry",
|
|
1140
|
+
"outputs": [
|
|
1030
1141
|
{
|
|
1031
|
-
"internalType": "
|
|
1032
|
-
"name": "
|
|
1142
|
+
"internalType": "contract IRegistry",
|
|
1143
|
+
"name": "",
|
|
1033
1144
|
"type": "address"
|
|
1034
|
-
}
|
|
1145
|
+
}
|
|
1146
|
+
],
|
|
1147
|
+
"stateMutability": "view",
|
|
1148
|
+
"type": "function"
|
|
1149
|
+
},
|
|
1150
|
+
{
|
|
1151
|
+
"inputs": [
|
|
1035
1152
|
{
|
|
1036
|
-
"
|
|
1037
|
-
|
|
1038
|
-
|
|
1153
|
+
"components": [
|
|
1154
|
+
{
|
|
1155
|
+
"internalType": "address",
|
|
1156
|
+
"name": "fromAsset",
|
|
1157
|
+
"type": "address"
|
|
1158
|
+
},
|
|
1159
|
+
{
|
|
1160
|
+
"internalType": "address",
|
|
1161
|
+
"name": "toAsset",
|
|
1162
|
+
"type": "address"
|
|
1163
|
+
},
|
|
1164
|
+
{
|
|
1165
|
+
"internalType": "uint256",
|
|
1166
|
+
"name": "fromAmount",
|
|
1167
|
+
"type": "uint256"
|
|
1168
|
+
},
|
|
1169
|
+
{
|
|
1170
|
+
"internalType": "uint256",
|
|
1171
|
+
"name": "toAmount",
|
|
1172
|
+
"type": "uint256"
|
|
1173
|
+
},
|
|
1174
|
+
{
|
|
1175
|
+
"internalType": "enum ISwapOperator.SwapKind",
|
|
1176
|
+
"name": "swapKind",
|
|
1177
|
+
"type": "uint8"
|
|
1178
|
+
},
|
|
1179
|
+
{
|
|
1180
|
+
"internalType": "uint32",
|
|
1181
|
+
"name": "deadline",
|
|
1182
|
+
"type": "uint32"
|
|
1183
|
+
}
|
|
1184
|
+
],
|
|
1185
|
+
"internalType": "struct ISwapOperator.SwapRequest",
|
|
1186
|
+
"name": "request",
|
|
1187
|
+
"type": "tuple"
|
|
1039
1188
|
}
|
|
1040
1189
|
],
|
|
1041
|
-
"name": "
|
|
1190
|
+
"name": "requestAssetSwap",
|
|
1042
1191
|
"outputs": [],
|
|
1043
1192
|
"stateMutability": "nonpayable",
|
|
1044
1193
|
"type": "function"
|
|
1045
1194
|
},
|
|
1046
1195
|
{
|
|
1047
|
-
"inputs": [
|
|
1048
|
-
"name": "safe",
|
|
1049
|
-
"outputs": [
|
|
1196
|
+
"inputs": [
|
|
1050
1197
|
{
|
|
1051
1198
|
"internalType": "address",
|
|
1052
|
-
"name": "",
|
|
1199
|
+
"name": "_swapController",
|
|
1053
1200
|
"type": "address"
|
|
1054
1201
|
}
|
|
1055
1202
|
],
|
|
1056
|
-
"
|
|
1203
|
+
"name": "setSwapController",
|
|
1204
|
+
"outputs": [],
|
|
1205
|
+
"stateMutability": "nonpayable",
|
|
1057
1206
|
"type": "function"
|
|
1058
1207
|
},
|
|
1059
1208
|
{
|
|
@@ -1073,12 +1222,12 @@
|
|
|
1073
1222
|
"inputs": [
|
|
1074
1223
|
{
|
|
1075
1224
|
"internalType": "uint256",
|
|
1076
|
-
"name": "
|
|
1225
|
+
"name": "fromAmount",
|
|
1077
1226
|
"type": "uint256"
|
|
1078
1227
|
},
|
|
1079
1228
|
{
|
|
1080
1229
|
"internalType": "uint256",
|
|
1081
|
-
"name": "
|
|
1230
|
+
"name": "toAmountMin",
|
|
1082
1231
|
"type": "uint256"
|
|
1083
1232
|
}
|
|
1084
1233
|
],
|
|
@@ -1091,12 +1240,12 @@
|
|
|
1091
1240
|
"inputs": [
|
|
1092
1241
|
{
|
|
1093
1242
|
"internalType": "uint256",
|
|
1094
|
-
"name": "
|
|
1243
|
+
"name": "fromAmount",
|
|
1095
1244
|
"type": "uint256"
|
|
1096
1245
|
},
|
|
1097
1246
|
{
|
|
1098
1247
|
"internalType": "uint256",
|
|
1099
|
-
"name": "
|
|
1248
|
+
"name": "toAmountMin",
|
|
1100
1249
|
"type": "uint256"
|
|
1101
1250
|
}
|
|
1102
1251
|
],
|
|
@@ -1107,38 +1256,40 @@
|
|
|
1107
1256
|
},
|
|
1108
1257
|
{
|
|
1109
1258
|
"inputs": [],
|
|
1110
|
-
"name": "
|
|
1259
|
+
"name": "swapRequest",
|
|
1111
1260
|
"outputs": [
|
|
1112
1261
|
{
|
|
1113
1262
|
"internalType": "address",
|
|
1114
|
-
"name": "
|
|
1263
|
+
"name": "fromAsset",
|
|
1115
1264
|
"type": "address"
|
|
1116
1265
|
},
|
|
1117
|
-
{
|
|
1118
|
-
"internalType": "uint256",
|
|
1119
|
-
"name": "amount",
|
|
1120
|
-
"type": "uint256"
|
|
1121
|
-
}
|
|
1122
|
-
],
|
|
1123
|
-
"stateMutability": "view",
|
|
1124
|
-
"type": "function"
|
|
1125
|
-
},
|
|
1126
|
-
{
|
|
1127
|
-
"inputs": [
|
|
1128
1266
|
{
|
|
1129
1267
|
"internalType": "address",
|
|
1130
|
-
"name": "
|
|
1268
|
+
"name": "toAsset",
|
|
1131
1269
|
"type": "address"
|
|
1132
1270
|
},
|
|
1133
1271
|
{
|
|
1134
1272
|
"internalType": "uint256",
|
|
1135
|
-
"name": "
|
|
1273
|
+
"name": "fromAmount",
|
|
1136
1274
|
"type": "uint256"
|
|
1275
|
+
},
|
|
1276
|
+
{
|
|
1277
|
+
"internalType": "uint256",
|
|
1278
|
+
"name": "toAmount",
|
|
1279
|
+
"type": "uint256"
|
|
1280
|
+
},
|
|
1281
|
+
{
|
|
1282
|
+
"internalType": "enum ISwapOperator.SwapKind",
|
|
1283
|
+
"name": "swapKind",
|
|
1284
|
+
"type": "uint8"
|
|
1285
|
+
},
|
|
1286
|
+
{
|
|
1287
|
+
"internalType": "uint32",
|
|
1288
|
+
"name": "deadline",
|
|
1289
|
+
"type": "uint32"
|
|
1137
1290
|
}
|
|
1138
1291
|
],
|
|
1139
|
-
"
|
|
1140
|
-
"outputs": [],
|
|
1141
|
-
"stateMutability": "nonpayable",
|
|
1292
|
+
"stateMutability": "view",
|
|
1142
1293
|
"type": "function"
|
|
1143
1294
|
},
|
|
1144
1295
|
{
|