@nexusmutual/sdk 0.3.9 → 0.3.11

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.
@@ -15,6 +15,11 @@
15
15
  "internalType": "uint8[]",
16
16
  "name": "_assetDecimals",
17
17
  "type": "uint8[]"
18
+ },
19
+ {
20
+ "internalType": "address",
21
+ "name": "_safeTracker",
22
+ "type": "address"
18
23
  }
19
24
  ],
20
25
  "stateMutability": "nonpayable",
@@ -123,5 +128,18 @@
123
128
  ],
124
129
  "stateMutability": "view",
125
130
  "type": "function"
131
+ },
132
+ {
133
+ "inputs": [],
134
+ "name": "safeTracker",
135
+ "outputs": [
136
+ {
137
+ "internalType": "address",
138
+ "name": "",
139
+ "type": "address"
140
+ }
141
+ ],
142
+ "stateMutability": "view",
143
+ "type": "function"
126
144
  }
127
145
  ]
@@ -0,0 +1,470 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "uint256",
6
+ "name": "_investmentLimit",
7
+ "type": "uint256"
8
+ },
9
+ {
10
+ "internalType": "address",
11
+ "name": "_safe",
12
+ "type": "address"
13
+ },
14
+ {
15
+ "internalType": "address",
16
+ "name": "_usdc",
17
+ "type": "address"
18
+ },
19
+ {
20
+ "internalType": "address",
21
+ "name": "_dai",
22
+ "type": "address"
23
+ },
24
+ {
25
+ "internalType": "address",
26
+ "name": "_weth",
27
+ "type": "address"
28
+ },
29
+ {
30
+ "internalType": "address",
31
+ "name": "_aweth",
32
+ "type": "address"
33
+ },
34
+ {
35
+ "internalType": "address",
36
+ "name": "_debtUsdc",
37
+ "type": "address"
38
+ }
39
+ ],
40
+ "stateMutability": "nonpayable",
41
+ "type": "constructor"
42
+ },
43
+ {
44
+ "inputs": [],
45
+ "name": "InvestmentSurpassesLimit",
46
+ "type": "error"
47
+ },
48
+ {
49
+ "inputs": [],
50
+ "name": "OnlySafe",
51
+ "type": "error"
52
+ },
53
+ {
54
+ "anonymous": false,
55
+ "inputs": [
56
+ {
57
+ "indexed": true,
58
+ "internalType": "address",
59
+ "name": "owner",
60
+ "type": "address"
61
+ },
62
+ {
63
+ "indexed": true,
64
+ "internalType": "address",
65
+ "name": "spender",
66
+ "type": "address"
67
+ },
68
+ {
69
+ "indexed": false,
70
+ "internalType": "uint256",
71
+ "name": "value",
72
+ "type": "uint256"
73
+ }
74
+ ],
75
+ "name": "Approval",
76
+ "type": "event"
77
+ },
78
+ {
79
+ "anonymous": false,
80
+ "inputs": [
81
+ {
82
+ "indexed": false,
83
+ "internalType": "uint256",
84
+ "name": "investedUSDC",
85
+ "type": "uint256"
86
+ }
87
+ ],
88
+ "name": "CoverReInvestmentUSDCUpdated",
89
+ "type": "event"
90
+ },
91
+ {
92
+ "anonymous": false,
93
+ "inputs": [
94
+ {
95
+ "indexed": true,
96
+ "internalType": "address",
97
+ "name": "from",
98
+ "type": "address"
99
+ },
100
+ {
101
+ "indexed": true,
102
+ "internalType": "address",
103
+ "name": "to",
104
+ "type": "address"
105
+ },
106
+ {
107
+ "indexed": false,
108
+ "internalType": "uint256",
109
+ "name": "value",
110
+ "type": "uint256"
111
+ }
112
+ ],
113
+ "name": "Transfer",
114
+ "type": "event"
115
+ },
116
+ {
117
+ "inputs": [
118
+ {
119
+ "internalType": "address",
120
+ "name": "",
121
+ "type": "address"
122
+ },
123
+ {
124
+ "internalType": "address",
125
+ "name": "",
126
+ "type": "address"
127
+ }
128
+ ],
129
+ "name": "allowance",
130
+ "outputs": [
131
+ {
132
+ "internalType": "uint256",
133
+ "name": "",
134
+ "type": "uint256"
135
+ }
136
+ ],
137
+ "stateMutability": "pure",
138
+ "type": "function"
139
+ },
140
+ {
141
+ "inputs": [
142
+ {
143
+ "internalType": "address",
144
+ "name": "spender",
145
+ "type": "address"
146
+ },
147
+ {
148
+ "internalType": "uint256",
149
+ "name": "value",
150
+ "type": "uint256"
151
+ }
152
+ ],
153
+ "name": "approve",
154
+ "outputs": [
155
+ {
156
+ "internalType": "bool",
157
+ "name": "",
158
+ "type": "bool"
159
+ }
160
+ ],
161
+ "stateMutability": "nonpayable",
162
+ "type": "function"
163
+ },
164
+ {
165
+ "inputs": [],
166
+ "name": "aweth",
167
+ "outputs": [
168
+ {
169
+ "internalType": "contract IERC20",
170
+ "name": "",
171
+ "type": "address"
172
+ }
173
+ ],
174
+ "stateMutability": "view",
175
+ "type": "function"
176
+ },
177
+ {
178
+ "inputs": [
179
+ {
180
+ "internalType": "address",
181
+ "name": "account",
182
+ "type": "address"
183
+ }
184
+ ],
185
+ "name": "balanceOf",
186
+ "outputs": [
187
+ {
188
+ "internalType": "uint256",
189
+ "name": "",
190
+ "type": "uint256"
191
+ }
192
+ ],
193
+ "stateMutability": "view",
194
+ "type": "function"
195
+ },
196
+ {
197
+ "inputs": [],
198
+ "name": "changeDependentContractAddress",
199
+ "outputs": [],
200
+ "stateMutability": "nonpayable",
201
+ "type": "function"
202
+ },
203
+ {
204
+ "inputs": [
205
+ {
206
+ "internalType": "address",
207
+ "name": "masterAddress",
208
+ "type": "address"
209
+ }
210
+ ],
211
+ "name": "changeMasterAddress",
212
+ "outputs": [],
213
+ "stateMutability": "nonpayable",
214
+ "type": "function"
215
+ },
216
+ {
217
+ "inputs": [],
218
+ "name": "coverReInvestmentUSDC",
219
+ "outputs": [
220
+ {
221
+ "internalType": "uint256",
222
+ "name": "",
223
+ "type": "uint256"
224
+ }
225
+ ],
226
+ "stateMutability": "view",
227
+ "type": "function"
228
+ },
229
+ {
230
+ "inputs": [],
231
+ "name": "dai",
232
+ "outputs": [
233
+ {
234
+ "internalType": "contract IERC20",
235
+ "name": "",
236
+ "type": "address"
237
+ }
238
+ ],
239
+ "stateMutability": "view",
240
+ "type": "function"
241
+ },
242
+ {
243
+ "inputs": [],
244
+ "name": "debtUsdc",
245
+ "outputs": [
246
+ {
247
+ "internalType": "contract IERC20",
248
+ "name": "",
249
+ "type": "address"
250
+ }
251
+ ],
252
+ "stateMutability": "view",
253
+ "type": "function"
254
+ },
255
+ {
256
+ "inputs": [],
257
+ "name": "decimals",
258
+ "outputs": [
259
+ {
260
+ "internalType": "uint8",
261
+ "name": "",
262
+ "type": "uint8"
263
+ }
264
+ ],
265
+ "stateMutability": "view",
266
+ "type": "function"
267
+ },
268
+ {
269
+ "inputs": [
270
+ {
271
+ "internalType": "uint256",
272
+ "name": "",
273
+ "type": "uint256"
274
+ }
275
+ ],
276
+ "name": "internalContracts",
277
+ "outputs": [
278
+ {
279
+ "internalType": "address payable",
280
+ "name": "",
281
+ "type": "address"
282
+ }
283
+ ],
284
+ "stateMutability": "view",
285
+ "type": "function"
286
+ },
287
+ {
288
+ "inputs": [],
289
+ "name": "investmentLimit",
290
+ "outputs": [
291
+ {
292
+ "internalType": "uint256",
293
+ "name": "",
294
+ "type": "uint256"
295
+ }
296
+ ],
297
+ "stateMutability": "view",
298
+ "type": "function"
299
+ },
300
+ {
301
+ "inputs": [],
302
+ "name": "latestAnswer",
303
+ "outputs": [
304
+ {
305
+ "internalType": "uint256",
306
+ "name": "",
307
+ "type": "uint256"
308
+ }
309
+ ],
310
+ "stateMutability": "pure",
311
+ "type": "function"
312
+ },
313
+ {
314
+ "inputs": [],
315
+ "name": "master",
316
+ "outputs": [
317
+ {
318
+ "internalType": "contract INXMMaster",
319
+ "name": "",
320
+ "type": "address"
321
+ }
322
+ ],
323
+ "stateMutability": "view",
324
+ "type": "function"
325
+ },
326
+ {
327
+ "inputs": [],
328
+ "name": "name",
329
+ "outputs": [
330
+ {
331
+ "internalType": "string",
332
+ "name": "",
333
+ "type": "string"
334
+ }
335
+ ],
336
+ "stateMutability": "view",
337
+ "type": "function"
338
+ },
339
+ {
340
+ "inputs": [],
341
+ "name": "safe",
342
+ "outputs": [
343
+ {
344
+ "internalType": "address",
345
+ "name": "",
346
+ "type": "address"
347
+ }
348
+ ],
349
+ "stateMutability": "view",
350
+ "type": "function"
351
+ },
352
+ {
353
+ "inputs": [],
354
+ "name": "symbol",
355
+ "outputs": [
356
+ {
357
+ "internalType": "string",
358
+ "name": "",
359
+ "type": "string"
360
+ }
361
+ ],
362
+ "stateMutability": "view",
363
+ "type": "function"
364
+ },
365
+ {
366
+ "inputs": [],
367
+ "name": "totalSupply",
368
+ "outputs": [
369
+ {
370
+ "internalType": "uint256",
371
+ "name": "",
372
+ "type": "uint256"
373
+ }
374
+ ],
375
+ "stateMutability": "view",
376
+ "type": "function"
377
+ },
378
+ {
379
+ "inputs": [
380
+ {
381
+ "internalType": "address",
382
+ "name": "to",
383
+ "type": "address"
384
+ },
385
+ {
386
+ "internalType": "uint256",
387
+ "name": "amount",
388
+ "type": "uint256"
389
+ }
390
+ ],
391
+ "name": "transfer",
392
+ "outputs": [
393
+ {
394
+ "internalType": "bool",
395
+ "name": "",
396
+ "type": "bool"
397
+ }
398
+ ],
399
+ "stateMutability": "nonpayable",
400
+ "type": "function"
401
+ },
402
+ {
403
+ "inputs": [
404
+ {
405
+ "internalType": "address",
406
+ "name": "from",
407
+ "type": "address"
408
+ },
409
+ {
410
+ "internalType": "address",
411
+ "name": "to",
412
+ "type": "address"
413
+ },
414
+ {
415
+ "internalType": "uint256",
416
+ "name": "amount",
417
+ "type": "uint256"
418
+ }
419
+ ],
420
+ "name": "transferFrom",
421
+ "outputs": [
422
+ {
423
+ "internalType": "bool",
424
+ "name": "",
425
+ "type": "bool"
426
+ }
427
+ ],
428
+ "stateMutability": "nonpayable",
429
+ "type": "function"
430
+ },
431
+ {
432
+ "inputs": [
433
+ {
434
+ "internalType": "uint256",
435
+ "name": "investedUSDC",
436
+ "type": "uint256"
437
+ }
438
+ ],
439
+ "name": "updateCoverReInvestmentUSDC",
440
+ "outputs": [],
441
+ "stateMutability": "nonpayable",
442
+ "type": "function"
443
+ },
444
+ {
445
+ "inputs": [],
446
+ "name": "usdc",
447
+ "outputs": [
448
+ {
449
+ "internalType": "contract IERC20",
450
+ "name": "",
451
+ "type": "address"
452
+ }
453
+ ],
454
+ "stateMutability": "view",
455
+ "type": "function"
456
+ },
457
+ {
458
+ "inputs": [],
459
+ "name": "weth",
460
+ "outputs": [
461
+ {
462
+ "internalType": "contract IERC20",
463
+ "name": "",
464
+ "type": "address"
465
+ }
466
+ ],
467
+ "stateMutability": "view",
468
+ "type": "function"
469
+ }
470
+ ]
@@ -26,6 +26,21 @@
26
26
  "name": "_enzymeV4VaultProxyAddress",
27
27
  "type": "address"
28
28
  },
29
+ {
30
+ "internalType": "address",
31
+ "name": "_safe",
32
+ "type": "address"
33
+ },
34
+ {
35
+ "internalType": "address",
36
+ "name": "_dai",
37
+ "type": "address"
38
+ },
39
+ {
40
+ "internalType": "address",
41
+ "name": "_usdc",
42
+ "type": "address"
43
+ },
29
44
  {
30
45
  "internalType": "contract IEnzymeFundValueCalculatorRouter",
31
46
  "name": "_enzymeFundValueCalculatorRouter",
@@ -442,6 +457,25 @@
442
457
  "name": "Swapped",
443
458
  "type": "event"
444
459
  },
460
+ {
461
+ "anonymous": false,
462
+ "inputs": [
463
+ {
464
+ "indexed": false,
465
+ "internalType": "address",
466
+ "name": "asset",
467
+ "type": "address"
468
+ },
469
+ {
470
+ "indexed": false,
471
+ "internalType": "uint256",
472
+ "name": "amount",
473
+ "type": "uint256"
474
+ }
475
+ ],
476
+ "name": "TransferredToSafe",
477
+ "type": "event"
478
+ },
445
479
  {
446
480
  "inputs": [],
447
481
  "name": "ETH",
@@ -520,6 +554,25 @@
520
554
  "stateMutability": "view",
521
555
  "type": "function"
522
556
  },
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
+ },
523
576
  {
524
577
  "inputs": [
525
578
  {
@@ -972,6 +1025,37 @@
972
1025
  "stateMutability": "nonpayable",
973
1026
  "type": "function"
974
1027
  },
1028
+ {
1029
+ "inputs": [
1030
+ {
1031
+ "internalType": "address",
1032
+ "name": "asset",
1033
+ "type": "address"
1034
+ },
1035
+ {
1036
+ "internalType": "uint256",
1037
+ "name": "amount",
1038
+ "type": "uint256"
1039
+ }
1040
+ ],
1041
+ "name": "requestAsset",
1042
+ "outputs": [],
1043
+ "stateMutability": "nonpayable",
1044
+ "type": "function"
1045
+ },
1046
+ {
1047
+ "inputs": [],
1048
+ "name": "safe",
1049
+ "outputs": [
1050
+ {
1051
+ "internalType": "address",
1052
+ "name": "",
1053
+ "type": "address"
1054
+ }
1055
+ ],
1056
+ "stateMutability": "view",
1057
+ "type": "function"
1058
+ },
975
1059
  {
976
1060
  "inputs": [],
977
1061
  "name": "swapController",
@@ -1021,6 +1105,42 @@
1021
1105
  "stateMutability": "nonpayable",
1022
1106
  "type": "function"
1023
1107
  },
1108
+ {
1109
+ "inputs": [],
1110
+ "name": "transferRequest",
1111
+ "outputs": [
1112
+ {
1113
+ "internalType": "address",
1114
+ "name": "asset",
1115
+ "type": "address"
1116
+ },
1117
+ {
1118
+ "internalType": "uint256",
1119
+ "name": "amount",
1120
+ "type": "uint256"
1121
+ }
1122
+ ],
1123
+ "stateMutability": "view",
1124
+ "type": "function"
1125
+ },
1126
+ {
1127
+ "inputs": [
1128
+ {
1129
+ "internalType": "address",
1130
+ "name": "requestedAsset",
1131
+ "type": "address"
1132
+ },
1133
+ {
1134
+ "internalType": "uint256",
1135
+ "name": "requestedAmount",
1136
+ "type": "uint256"
1137
+ }
1138
+ ],
1139
+ "name": "transferRequestedAsset",
1140
+ "outputs": [],
1141
+ "stateMutability": "nonpayable",
1142
+ "type": "function"
1143
+ },
1024
1144
  {
1025
1145
  "inputs": [],
1026
1146
  "name": "weth",
@@ -23,15 +23,16 @@
23
23
  "NXMToken": "0xd7c49CEE7E9188cCa6AD8FF264C1DA2e69D4Cf3B",
24
24
  "NXMaster": "0x01BFd82675DBCc7762C84019cA518e701C0cD07e",
25
25
  "Pool": "0xcafeaBED7e0653aFe9674A3ad862b78DB3F36e60",
26
- "PriceFeedOracle": "0xcafeaf6f31b54931795DA9055910DA7C83D23495",
26
+ "PriceFeedOracle": "0xcafea210B662b19bbd1692873A46be324a482672",
27
27
  "ProductsV1": "0xcafeab02966FdC69Ce5aFDD532DD51466892E32B",
28
28
  "ProposalCategory": "0x888eA6Ab349c854936b98586CE6a17E98BF254b2",
29
29
  "Ramm": "0xcafea54f03E1Cc036653444e581A10a43B2487CD",
30
+ "SafeTracker": "0xcafeaB8B01C74c2239eA9b2B0F6aB2dD409c6c13",
30
31
  "StakingNFT": "0xcafea508a477D94c502c253A58239fb8F948e97f",
31
32
  "StakingPoolFactory": "0xcafeafb97BF8831D95C0FC659b8eB3946B101CB3",
32
33
  "StakingProducts": "0xcafea573fBd815B5f59e8049E71E554bde3477E4",
33
34
  "StakingViewer": "0xcafea970135C07B07a3eCA76C6c00AAC849767b3",
34
- "SwapOperator": "0xcafea5C050E74a21C11Af78C927e17853153097D",
35
+ "SwapOperator": "0xcafea3cA5366964A102388EAd5f3eBb0769C46Cb",
35
36
  "TokenController": "0x5407381b6c251cFd498ccD4A1d877739CB7960B8",
36
37
  "wNXM": "0x0d438F3b5175Bebc262bF23753C1E53d03432bDE",
37
38
  "YieldTokenIncidents": "0xcafeac831dC5ca0D7ef467953b7822D2f44C8f83",