@nexusmutual/sdk 0.0.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.
Files changed (44) hide show
  1. package/.github/workflows/merge-master.yml +124 -0
  2. package/.github/workflows/pull_request.yml +62 -0
  3. package/README.md +32 -0
  4. package/dist/contracts/abis/Assessment.json +700 -0
  5. package/dist/contracts/abis/Cover.json +1258 -0
  6. package/dist/contracts/abis/CoverMigrator.json +189 -0
  7. package/dist/contracts/abis/CoverNFT.json +498 -0
  8. package/dist/contracts/abis/CoverNFTDescriptor.json +200 -0
  9. package/dist/contracts/abis/CoverViewer.json +124 -0
  10. package/dist/contracts/abis/EACAggregatorProxy.json +58 -0
  11. package/dist/contracts/abis/ERC20.json +364 -0
  12. package/dist/contracts/abis/Governance.json +975 -0
  13. package/dist/contracts/abis/IndividualClaims.json +528 -0
  14. package/dist/contracts/abis/LegacyClaimProofs.json +64 -0
  15. package/dist/contracts/abis/LegacyClaimsData.json +1912 -0
  16. package/dist/contracts/abis/LegacyClaimsReward.json +179 -0
  17. package/dist/contracts/abis/LegacyGateway.json +542 -0
  18. package/dist/contracts/abis/LegacyPooledStaking.json +1320 -0
  19. package/dist/contracts/abis/LegacyQuotationData.json +1121 -0
  20. package/dist/contracts/abis/MCR.json +326 -0
  21. package/dist/contracts/abis/MemberRoles.json +681 -0
  22. package/dist/contracts/abis/NXMToken.json +498 -0
  23. package/dist/contracts/abis/NXMaster.json +501 -0
  24. package/dist/contracts/abis/Pool.json +928 -0
  25. package/dist/contracts/abis/PriceFeedOracle.json +122 -0
  26. package/dist/contracts/abis/ProductsV1.json +21 -0
  27. package/dist/contracts/abis/ProposalCategory.json +550 -0
  28. package/dist/contracts/abis/StakingNFT.json +569 -0
  29. package/dist/contracts/abis/StakingNFTDescriptor.json +222 -0
  30. package/dist/contracts/abis/StakingPool.json +1433 -0
  31. package/dist/contracts/abis/StakingPoolFactory.json +108 -0
  32. package/dist/contracts/abis/StakingProducts.json +885 -0
  33. package/dist/contracts/abis/StakingViewer.json +777 -0
  34. package/dist/contracts/abis/SwapOperator.json +754 -0
  35. package/dist/contracts/abis/TokenController.json +1024 -0
  36. package/dist/contracts/abis/YieldTokenIncidents.json +438 -0
  37. package/dist/contracts/abis/index.js +69 -0
  38. package/dist/contracts/addresses.json +35 -0
  39. package/dist/index.d.ts +5 -0
  40. package/dist/index.js +13 -0
  41. package/dist/products/product-logos.json +103 -0
  42. package/dist/products/product-types.json +58 -0
  43. package/dist/products/products.json +1414 -0
  44. package/package.json +50 -0
@@ -0,0 +1,754 @@
1
+ [
2
+ {
3
+ "type": "constructor",
4
+ "payable": false,
5
+ "inputs": [
6
+ {
7
+ "type": "address",
8
+ "name": "_cowSettlement"
9
+ },
10
+ {
11
+ "type": "address",
12
+ "name": "_swapController"
13
+ },
14
+ {
15
+ "type": "address",
16
+ "name": "_master"
17
+ },
18
+ {
19
+ "type": "address",
20
+ "name": "_weth"
21
+ },
22
+ {
23
+ "type": "address",
24
+ "name": "_enzymeV4VaultProxyAddress"
25
+ },
26
+ {
27
+ "type": "address",
28
+ "name": "_enzymeFundValueCalculatorRouter"
29
+ },
30
+ {
31
+ "type": "uint256",
32
+ "name": "_minPoolEth"
33
+ }
34
+ ]
35
+ },
36
+ {
37
+ "type": "event",
38
+ "anonymous": false,
39
+ "name": "OrderClosed",
40
+ "inputs": [
41
+ {
42
+ "type": "tuple",
43
+ "name": "order",
44
+ "indexed": false,
45
+ "components": [
46
+ {
47
+ "type": "address",
48
+ "name": "sellToken"
49
+ },
50
+ {
51
+ "type": "address",
52
+ "name": "buyToken"
53
+ },
54
+ {
55
+ "type": "address",
56
+ "name": "receiver"
57
+ },
58
+ {
59
+ "type": "uint256",
60
+ "name": "sellAmount"
61
+ },
62
+ {
63
+ "type": "uint256",
64
+ "name": "buyAmount"
65
+ },
66
+ {
67
+ "type": "uint32",
68
+ "name": "validTo"
69
+ },
70
+ {
71
+ "type": "bytes32",
72
+ "name": "appData"
73
+ },
74
+ {
75
+ "type": "uint256",
76
+ "name": "feeAmount"
77
+ },
78
+ {
79
+ "type": "bytes32",
80
+ "name": "kind"
81
+ },
82
+ {
83
+ "type": "bool",
84
+ "name": "partiallyFillable"
85
+ },
86
+ {
87
+ "type": "bytes32",
88
+ "name": "sellTokenBalance"
89
+ },
90
+ {
91
+ "type": "bytes32",
92
+ "name": "buyTokenBalance"
93
+ }
94
+ ]
95
+ },
96
+ {
97
+ "type": "uint256",
98
+ "name": "filledAmount",
99
+ "indexed": false
100
+ }
101
+ ]
102
+ },
103
+ {
104
+ "type": "event",
105
+ "anonymous": false,
106
+ "name": "OrderPlaced",
107
+ "inputs": [
108
+ {
109
+ "type": "tuple",
110
+ "name": "order",
111
+ "indexed": false,
112
+ "components": [
113
+ {
114
+ "type": "address",
115
+ "name": "sellToken"
116
+ },
117
+ {
118
+ "type": "address",
119
+ "name": "buyToken"
120
+ },
121
+ {
122
+ "type": "address",
123
+ "name": "receiver"
124
+ },
125
+ {
126
+ "type": "uint256",
127
+ "name": "sellAmount"
128
+ },
129
+ {
130
+ "type": "uint256",
131
+ "name": "buyAmount"
132
+ },
133
+ {
134
+ "type": "uint32",
135
+ "name": "validTo"
136
+ },
137
+ {
138
+ "type": "bytes32",
139
+ "name": "appData"
140
+ },
141
+ {
142
+ "type": "uint256",
143
+ "name": "feeAmount"
144
+ },
145
+ {
146
+ "type": "bytes32",
147
+ "name": "kind"
148
+ },
149
+ {
150
+ "type": "bool",
151
+ "name": "partiallyFillable"
152
+ },
153
+ {
154
+ "type": "bytes32",
155
+ "name": "sellTokenBalance"
156
+ },
157
+ {
158
+ "type": "bytes32",
159
+ "name": "buyTokenBalance"
160
+ }
161
+ ]
162
+ }
163
+ ]
164
+ },
165
+ {
166
+ "type": "event",
167
+ "anonymous": false,
168
+ "name": "Swapped",
169
+ "inputs": [
170
+ {
171
+ "type": "address",
172
+ "name": "fromAsset",
173
+ "indexed": true
174
+ },
175
+ {
176
+ "type": "address",
177
+ "name": "toAsset",
178
+ "indexed": true
179
+ },
180
+ {
181
+ "type": "uint256",
182
+ "name": "amountIn",
183
+ "indexed": false
184
+ },
185
+ {
186
+ "type": "uint256",
187
+ "name": "amountOut",
188
+ "indexed": false
189
+ }
190
+ ]
191
+ },
192
+ {
193
+ "type": "function",
194
+ "name": "ETH",
195
+ "constant": true,
196
+ "stateMutability": "view",
197
+ "payable": false,
198
+
199
+ "inputs": [],
200
+ "outputs": [
201
+ {
202
+ "type": "address"
203
+ }
204
+ ]
205
+ },
206
+ {
207
+ "type": "function",
208
+ "name": "MAX_SLIPPAGE_DENOMINATOR",
209
+ "constant": true,
210
+ "stateMutability": "view",
211
+ "payable": false,
212
+
213
+ "inputs": [],
214
+ "outputs": [
215
+ {
216
+ "type": "uint256"
217
+ }
218
+ ]
219
+ },
220
+ {
221
+ "type": "function",
222
+ "name": "MAX_VALID_TO_PERIOD",
223
+ "constant": true,
224
+ "stateMutability": "view",
225
+ "payable": false,
226
+
227
+ "inputs": [],
228
+ "outputs": [
229
+ {
230
+ "type": "uint256"
231
+ }
232
+ ]
233
+ },
234
+ {
235
+ "type": "function",
236
+ "name": "MIN_TIME_BETWEEN_ORDERS",
237
+ "constant": true,
238
+ "stateMutability": "view",
239
+ "payable": false,
240
+
241
+ "inputs": [],
242
+ "outputs": [
243
+ {
244
+ "type": "uint256"
245
+ }
246
+ ]
247
+ },
248
+ {
249
+ "type": "function",
250
+ "name": "MIN_VALID_TO_PERIOD",
251
+ "constant": true,
252
+ "stateMutability": "view",
253
+ "payable": false,
254
+
255
+ "inputs": [],
256
+ "outputs": [
257
+ {
258
+ "type": "uint256"
259
+ }
260
+ ]
261
+ },
262
+ {
263
+ "type": "function",
264
+ "name": "closeOrder",
265
+ "constant": false,
266
+ "payable": false,
267
+
268
+ "inputs": [
269
+ {
270
+ "type": "tuple",
271
+ "name": "order",
272
+ "components": [
273
+ {
274
+ "type": "address",
275
+ "name": "sellToken"
276
+ },
277
+ {
278
+ "type": "address",
279
+ "name": "buyToken"
280
+ },
281
+ {
282
+ "type": "address",
283
+ "name": "receiver"
284
+ },
285
+ {
286
+ "type": "uint256",
287
+ "name": "sellAmount"
288
+ },
289
+ {
290
+ "type": "uint256",
291
+ "name": "buyAmount"
292
+ },
293
+ {
294
+ "type": "uint32",
295
+ "name": "validTo"
296
+ },
297
+ {
298
+ "type": "bytes32",
299
+ "name": "appData"
300
+ },
301
+ {
302
+ "type": "uint256",
303
+ "name": "feeAmount"
304
+ },
305
+ {
306
+ "type": "bytes32",
307
+ "name": "kind"
308
+ },
309
+ {
310
+ "type": "bool",
311
+ "name": "partiallyFillable"
312
+ },
313
+ {
314
+ "type": "bytes32",
315
+ "name": "sellTokenBalance"
316
+ },
317
+ {
318
+ "type": "bytes32",
319
+ "name": "buyTokenBalance"
320
+ }
321
+ ]
322
+ }
323
+ ],
324
+ "outputs": []
325
+ },
326
+ {
327
+ "type": "function",
328
+ "name": "cowSettlement",
329
+ "constant": true,
330
+ "stateMutability": "view",
331
+ "payable": false,
332
+
333
+ "inputs": [],
334
+ "outputs": [
335
+ {
336
+ "type": "address"
337
+ }
338
+ ]
339
+ },
340
+ {
341
+ "type": "function",
342
+ "name": "cowVaultRelayer",
343
+ "constant": true,
344
+ "stateMutability": "view",
345
+ "payable": false,
346
+
347
+ "inputs": [],
348
+ "outputs": [
349
+ {
350
+ "type": "address"
351
+ }
352
+ ]
353
+ },
354
+ {
355
+ "type": "function",
356
+ "name": "currentOrderUID",
357
+ "constant": true,
358
+ "stateMutability": "view",
359
+ "payable": false,
360
+
361
+ "inputs": [],
362
+ "outputs": [
363
+ {
364
+ "type": "bytes"
365
+ }
366
+ ]
367
+ },
368
+ {
369
+ "type": "function",
370
+ "name": "domainSeparator",
371
+ "constant": true,
372
+ "stateMutability": "view",
373
+ "payable": false,
374
+
375
+ "inputs": [],
376
+ "outputs": [
377
+ {
378
+ "type": "bytes32"
379
+ }
380
+ ]
381
+ },
382
+ {
383
+ "type": "function",
384
+ "name": "enzymeFundValueCalculatorRouter",
385
+ "constant": true,
386
+ "stateMutability": "view",
387
+ "payable": false,
388
+
389
+ "inputs": [],
390
+ "outputs": [
391
+ {
392
+ "type": "address"
393
+ }
394
+ ]
395
+ },
396
+ {
397
+ "type": "function",
398
+ "name": "enzymeV4VaultProxyAddress",
399
+ "constant": true,
400
+ "stateMutability": "view",
401
+ "payable": false,
402
+
403
+ "inputs": [],
404
+ "outputs": [
405
+ {
406
+ "type": "address"
407
+ }
408
+ ]
409
+ },
410
+ {
411
+ "type": "function",
412
+ "name": "getDigest",
413
+ "constant": true,
414
+ "stateMutability": "view",
415
+ "payable": false,
416
+
417
+ "inputs": [
418
+ {
419
+ "type": "tuple",
420
+ "name": "order",
421
+ "components": [
422
+ {
423
+ "type": "address",
424
+ "name": "sellToken"
425
+ },
426
+ {
427
+ "type": "address",
428
+ "name": "buyToken"
429
+ },
430
+ {
431
+ "type": "address",
432
+ "name": "receiver"
433
+ },
434
+ {
435
+ "type": "uint256",
436
+ "name": "sellAmount"
437
+ },
438
+ {
439
+ "type": "uint256",
440
+ "name": "buyAmount"
441
+ },
442
+ {
443
+ "type": "uint32",
444
+ "name": "validTo"
445
+ },
446
+ {
447
+ "type": "bytes32",
448
+ "name": "appData"
449
+ },
450
+ {
451
+ "type": "uint256",
452
+ "name": "feeAmount"
453
+ },
454
+ {
455
+ "type": "bytes32",
456
+ "name": "kind"
457
+ },
458
+ {
459
+ "type": "bool",
460
+ "name": "partiallyFillable"
461
+ },
462
+ {
463
+ "type": "bytes32",
464
+ "name": "sellTokenBalance"
465
+ },
466
+ {
467
+ "type": "bytes32",
468
+ "name": "buyTokenBalance"
469
+ }
470
+ ]
471
+ }
472
+ ],
473
+ "outputs": [
474
+ {
475
+ "type": "bytes32"
476
+ }
477
+ ]
478
+ },
479
+ {
480
+ "type": "function",
481
+ "name": "getUID",
482
+ "constant": true,
483
+ "stateMutability": "view",
484
+ "payable": false,
485
+
486
+ "inputs": [
487
+ {
488
+ "type": "tuple",
489
+ "name": "order",
490
+ "components": [
491
+ {
492
+ "type": "address",
493
+ "name": "sellToken"
494
+ },
495
+ {
496
+ "type": "address",
497
+ "name": "buyToken"
498
+ },
499
+ {
500
+ "type": "address",
501
+ "name": "receiver"
502
+ },
503
+ {
504
+ "type": "uint256",
505
+ "name": "sellAmount"
506
+ },
507
+ {
508
+ "type": "uint256",
509
+ "name": "buyAmount"
510
+ },
511
+ {
512
+ "type": "uint32",
513
+ "name": "validTo"
514
+ },
515
+ {
516
+ "type": "bytes32",
517
+ "name": "appData"
518
+ },
519
+ {
520
+ "type": "uint256",
521
+ "name": "feeAmount"
522
+ },
523
+ {
524
+ "type": "bytes32",
525
+ "name": "kind"
526
+ },
527
+ {
528
+ "type": "bool",
529
+ "name": "partiallyFillable"
530
+ },
531
+ {
532
+ "type": "bytes32",
533
+ "name": "sellTokenBalance"
534
+ },
535
+ {
536
+ "type": "bytes32",
537
+ "name": "buyTokenBalance"
538
+ }
539
+ ]
540
+ }
541
+ ],
542
+ "outputs": [
543
+ {
544
+ "type": "bytes"
545
+ }
546
+ ]
547
+ },
548
+ {
549
+ "type": "function",
550
+ "name": "master",
551
+ "constant": true,
552
+ "stateMutability": "view",
553
+ "payable": false,
554
+
555
+ "inputs": [],
556
+ "outputs": [
557
+ {
558
+ "type": "address"
559
+ }
560
+ ]
561
+ },
562
+ {
563
+ "type": "function",
564
+ "name": "maxFee",
565
+ "constant": true,
566
+ "stateMutability": "view",
567
+ "payable": false,
568
+
569
+ "inputs": [],
570
+ "outputs": [
571
+ {
572
+ "type": "uint256"
573
+ }
574
+ ]
575
+ },
576
+ {
577
+ "type": "function",
578
+ "name": "minPoolEth",
579
+ "constant": true,
580
+ "stateMutability": "view",
581
+ "payable": false,
582
+
583
+ "inputs": [],
584
+ "outputs": [
585
+ {
586
+ "type": "uint256"
587
+ }
588
+ ]
589
+ },
590
+ {
591
+ "type": "function",
592
+ "name": "orderInProgress",
593
+ "constant": true,
594
+ "stateMutability": "view",
595
+ "payable": false,
596
+
597
+ "inputs": [],
598
+ "outputs": [
599
+ {
600
+ "type": "bool"
601
+ }
602
+ ]
603
+ },
604
+ {
605
+ "type": "function",
606
+ "name": "placeOrder",
607
+ "constant": false,
608
+ "payable": false,
609
+
610
+ "inputs": [
611
+ {
612
+ "type": "tuple",
613
+ "name": "order",
614
+ "components": [
615
+ {
616
+ "type": "address",
617
+ "name": "sellToken"
618
+ },
619
+ {
620
+ "type": "address",
621
+ "name": "buyToken"
622
+ },
623
+ {
624
+ "type": "address",
625
+ "name": "receiver"
626
+ },
627
+ {
628
+ "type": "uint256",
629
+ "name": "sellAmount"
630
+ },
631
+ {
632
+ "type": "uint256",
633
+ "name": "buyAmount"
634
+ },
635
+ {
636
+ "type": "uint32",
637
+ "name": "validTo"
638
+ },
639
+ {
640
+ "type": "bytes32",
641
+ "name": "appData"
642
+ },
643
+ {
644
+ "type": "uint256",
645
+ "name": "feeAmount"
646
+ },
647
+ {
648
+ "type": "bytes32",
649
+ "name": "kind"
650
+ },
651
+ {
652
+ "type": "bool",
653
+ "name": "partiallyFillable"
654
+ },
655
+ {
656
+ "type": "bytes32",
657
+ "name": "sellTokenBalance"
658
+ },
659
+ {
660
+ "type": "bytes32",
661
+ "name": "buyTokenBalance"
662
+ }
663
+ ]
664
+ },
665
+ {
666
+ "type": "bytes",
667
+ "name": "orderUID"
668
+ }
669
+ ],
670
+ "outputs": []
671
+ },
672
+ {
673
+ "type": "function",
674
+ "name": "recoverAsset",
675
+ "constant": false,
676
+ "payable": false,
677
+
678
+ "inputs": [
679
+ {
680
+ "type": "address",
681
+ "name": "assetAddress"
682
+ },
683
+ {
684
+ "type": "address",
685
+ "name": "receiver"
686
+ }
687
+ ],
688
+ "outputs": []
689
+ },
690
+ {
691
+ "type": "function",
692
+ "name": "swapController",
693
+ "constant": true,
694
+ "stateMutability": "view",
695
+ "payable": false,
696
+
697
+ "inputs": [],
698
+ "outputs": [
699
+ {
700
+ "type": "address"
701
+ }
702
+ ]
703
+ },
704
+ {
705
+ "type": "function",
706
+ "name": "swapETHForEnzymeVaultShare",
707
+ "constant": false,
708
+ "payable": false,
709
+
710
+ "inputs": [
711
+ {
712
+ "type": "uint256",
713
+ "name": "amountIn"
714
+ },
715
+ {
716
+ "type": "uint256",
717
+ "name": "amountOutMin"
718
+ }
719
+ ],
720
+ "outputs": []
721
+ },
722
+ {
723
+ "type": "function",
724
+ "name": "swapEnzymeVaultShareForETH",
725
+ "constant": false,
726
+ "payable": false,
727
+
728
+ "inputs": [
729
+ {
730
+ "type": "uint256",
731
+ "name": "amountIn"
732
+ },
733
+ {
734
+ "type": "uint256",
735
+ "name": "amountOutMin"
736
+ }
737
+ ],
738
+ "outputs": []
739
+ },
740
+ {
741
+ "type": "function",
742
+ "name": "weth",
743
+ "constant": true,
744
+ "stateMutability": "view",
745
+ "payable": false,
746
+
747
+ "inputs": [],
748
+ "outputs": [
749
+ {
750
+ "type": "address"
751
+ }
752
+ ]
753
+ }
754
+ ]