@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,681 @@
1
+ [
2
+ {
3
+ "type": "constructor",
4
+ "payable": false,
5
+ "inputs": [
6
+ {
7
+ "type": "address",
8
+ "name": "tokenAddress"
9
+ }
10
+ ]
11
+ },
12
+ {
13
+ "type": "event",
14
+ "anonymous": false,
15
+ "name": "MemberJoined",
16
+ "inputs": [
17
+ {
18
+ "type": "address",
19
+ "name": "newMember",
20
+ "indexed": true
21
+ },
22
+ {
23
+ "type": "uint256",
24
+ "name": "nonce",
25
+ "indexed": true
26
+ }
27
+ ]
28
+ },
29
+ {
30
+ "type": "event",
31
+ "anonymous": false,
32
+ "name": "MemberRole",
33
+ "inputs": [
34
+ {
35
+ "type": "uint256",
36
+ "name": "roleId",
37
+ "indexed": true
38
+ },
39
+ {
40
+ "type": "bytes32",
41
+ "name": "roleName",
42
+ "indexed": false
43
+ },
44
+ {
45
+ "type": "string",
46
+ "name": "roleDescription",
47
+ "indexed": false
48
+ }
49
+ ]
50
+ },
51
+ {
52
+ "type": "event",
53
+ "anonymous": false,
54
+ "name": "switchedMembership",
55
+ "inputs": [
56
+ {
57
+ "type": "address",
58
+ "name": "previousMember",
59
+ "indexed": true
60
+ },
61
+ {
62
+ "type": "address",
63
+ "name": "newMember",
64
+ "indexed": true
65
+ },
66
+ {
67
+ "type": "uint256",
68
+ "name": "timeStamp",
69
+ "indexed": false
70
+ }
71
+ ]
72
+ },
73
+ {
74
+ "type": "function",
75
+ "name": "MEMBERSHIP_APPROVAL",
76
+ "constant": true,
77
+ "stateMutability": "view",
78
+ "payable": false,
79
+
80
+ "inputs": [],
81
+ "outputs": [
82
+ {
83
+ "type": "bytes32"
84
+ }
85
+ ]
86
+ },
87
+ {
88
+ "type": "function",
89
+ "name": "addRole",
90
+ "constant": false,
91
+ "payable": false,
92
+
93
+ "inputs": [
94
+ {
95
+ "type": "bytes32",
96
+ "name": "_roleName"
97
+ },
98
+ {
99
+ "type": "string",
100
+ "name": "_roleDescription"
101
+ },
102
+ {
103
+ "type": "address",
104
+ "name": "_authorized"
105
+ }
106
+ ],
107
+ "outputs": []
108
+ },
109
+ {
110
+ "type": "function",
111
+ "name": "authorized",
112
+ "constant": true,
113
+ "stateMutability": "view",
114
+ "payable": false,
115
+
116
+ "inputs": [
117
+ {
118
+ "type": "uint256",
119
+ "name": "_memberRoleId"
120
+ }
121
+ ],
122
+ "outputs": [
123
+ {
124
+ "type": "address"
125
+ }
126
+ ]
127
+ },
128
+ {
129
+ "type": "function",
130
+ "name": "changeAuthorized",
131
+ "constant": false,
132
+ "payable": false,
133
+
134
+ "inputs": [
135
+ {
136
+ "type": "uint256",
137
+ "name": "_roleId"
138
+ },
139
+ {
140
+ "type": "address",
141
+ "name": "_newAuthorized"
142
+ }
143
+ ],
144
+ "outputs": []
145
+ },
146
+ {
147
+ "type": "function",
148
+ "name": "changeDependentContractAddress",
149
+ "constant": false,
150
+ "payable": false,
151
+
152
+ "inputs": [],
153
+ "outputs": []
154
+ },
155
+ {
156
+ "type": "function",
157
+ "name": "changeMasterAddress",
158
+ "constant": false,
159
+ "payable": false,
160
+
161
+ "inputs": [
162
+ {
163
+ "type": "address",
164
+ "name": "masterAddress"
165
+ }
166
+ ],
167
+ "outputs": []
168
+ },
169
+ {
170
+ "type": "function",
171
+ "name": "changeMaxABCount",
172
+ "constant": false,
173
+ "payable": false,
174
+
175
+ "inputs": [
176
+ {
177
+ "type": "uint256",
178
+ "name": "_val"
179
+ }
180
+ ],
181
+ "outputs": []
182
+ },
183
+ {
184
+ "type": "function",
185
+ "name": "checkRole",
186
+ "constant": true,
187
+ "stateMutability": "view",
188
+ "payable": false,
189
+
190
+ "inputs": [
191
+ {
192
+ "type": "address",
193
+ "name": "_memberAddress"
194
+ },
195
+ {
196
+ "type": "uint256",
197
+ "name": "_roleId"
198
+ }
199
+ ],
200
+ "outputs": [
201
+ {
202
+ "type": "bool"
203
+ }
204
+ ]
205
+ },
206
+ {
207
+ "type": "function",
208
+ "name": "getMemberLengthForAllRoles",
209
+ "constant": true,
210
+ "stateMutability": "view",
211
+ "payable": false,
212
+
213
+ "inputs": [],
214
+ "outputs": [
215
+ {
216
+ "type": "uint256[]",
217
+ "name": "totalMembers"
218
+ }
219
+ ]
220
+ },
221
+ {
222
+ "type": "function",
223
+ "name": "internalContracts",
224
+ "constant": true,
225
+ "stateMutability": "view",
226
+ "payable": false,
227
+
228
+ "inputs": [
229
+ {
230
+ "type": "uint256"
231
+ }
232
+ ],
233
+ "outputs": [
234
+ {
235
+ "type": "address"
236
+ }
237
+ ]
238
+ },
239
+ {
240
+ "type": "function",
241
+ "name": "isAuthorizedToGovern",
242
+ "constant": true,
243
+ "stateMutability": "view",
244
+ "payable": false,
245
+
246
+ "inputs": [
247
+ {
248
+ "type": "address",
249
+ "name": "_toCheck"
250
+ }
251
+ ],
252
+ "outputs": [
253
+ {
254
+ "type": "bool"
255
+ }
256
+ ]
257
+ },
258
+ {
259
+ "type": "function",
260
+ "name": "isMember",
261
+ "constant": true,
262
+ "stateMutability": "view",
263
+ "payable": false,
264
+
265
+ "inputs": [
266
+ {
267
+ "type": "address",
268
+ "name": "member"
269
+ }
270
+ ],
271
+ "outputs": [
272
+ {
273
+ "type": "bool"
274
+ }
275
+ ]
276
+ },
277
+ {
278
+ "type": "function",
279
+ "name": "join",
280
+ "constant": false,
281
+ "stateMutability": "payable",
282
+ "payable": true,
283
+
284
+ "inputs": [
285
+ {
286
+ "type": "address",
287
+ "name": "_userAddress"
288
+ },
289
+ {
290
+ "type": "uint256",
291
+ "name": "nonce"
292
+ },
293
+ {
294
+ "type": "bytes",
295
+ "name": "signature"
296
+ }
297
+ ],
298
+ "outputs": []
299
+ },
300
+ {
301
+ "type": "function",
302
+ "name": "joiningFee",
303
+ "constant": true,
304
+ "stateMutability": "view",
305
+ "payable": false,
306
+
307
+ "inputs": [],
308
+ "outputs": [
309
+ {
310
+ "type": "uint256"
311
+ }
312
+ ]
313
+ },
314
+ {
315
+ "type": "function",
316
+ "name": "kycAuthAddress",
317
+ "constant": true,
318
+ "stateMutability": "view",
319
+ "payable": false,
320
+
321
+ "inputs": [],
322
+ "outputs": [
323
+ {
324
+ "type": "address"
325
+ }
326
+ ]
327
+ },
328
+ {
329
+ "type": "function",
330
+ "name": "launched",
331
+ "constant": true,
332
+ "stateMutability": "view",
333
+ "payable": false,
334
+
335
+ "inputs": [],
336
+ "outputs": [
337
+ {
338
+ "type": "bool"
339
+ }
340
+ ]
341
+ },
342
+ {
343
+ "type": "function",
344
+ "name": "launchedOn",
345
+ "constant": true,
346
+ "stateMutability": "view",
347
+ "payable": false,
348
+
349
+ "inputs": [],
350
+ "outputs": [
351
+ {
352
+ "type": "uint256"
353
+ }
354
+ ]
355
+ },
356
+ {
357
+ "type": "function",
358
+ "name": "master",
359
+ "constant": true,
360
+ "stateMutability": "view",
361
+ "payable": false,
362
+
363
+ "inputs": [],
364
+ "outputs": [
365
+ {
366
+ "type": "address"
367
+ }
368
+ ]
369
+ },
370
+ {
371
+ "type": "function",
372
+ "name": "masterAddress",
373
+ "constant": true,
374
+ "stateMutability": "view",
375
+ "payable": false,
376
+
377
+ "inputs": [],
378
+ "outputs": [
379
+ {
380
+ "type": "address"
381
+ }
382
+ ]
383
+ },
384
+ {
385
+ "type": "function",
386
+ "name": "maxABCount",
387
+ "constant": true,
388
+ "stateMutability": "view",
389
+ "payable": false,
390
+
391
+ "inputs": [],
392
+ "outputs": [
393
+ {
394
+ "type": "uint256"
395
+ }
396
+ ]
397
+ },
398
+ {
399
+ "type": "function",
400
+ "name": "memberAtIndex",
401
+ "constant": true,
402
+ "stateMutability": "view",
403
+ "payable": false,
404
+
405
+ "inputs": [
406
+ {
407
+ "type": "uint256",
408
+ "name": "_memberRoleId"
409
+ },
410
+ {
411
+ "type": "uint256",
412
+ "name": "index"
413
+ }
414
+ ],
415
+ "outputs": [
416
+ {
417
+ "type": "address"
418
+ },
419
+ {
420
+ "type": "bool"
421
+ }
422
+ ]
423
+ },
424
+ {
425
+ "type": "function",
426
+ "name": "members",
427
+ "constant": true,
428
+ "stateMutability": "view",
429
+ "payable": false,
430
+
431
+ "inputs": [
432
+ {
433
+ "type": "uint256",
434
+ "name": "_memberRoleId"
435
+ }
436
+ ],
437
+ "outputs": [
438
+ {
439
+ "type": "uint256"
440
+ },
441
+ {
442
+ "type": "address[]",
443
+ "name": "memberArray"
444
+ }
445
+ ]
446
+ },
447
+ {
448
+ "type": "function",
449
+ "name": "membersLength",
450
+ "constant": true,
451
+ "stateMutability": "view",
452
+ "payable": false,
453
+
454
+ "inputs": [
455
+ {
456
+ "type": "uint256",
457
+ "name": "_memberRoleId"
458
+ }
459
+ ],
460
+ "outputs": [
461
+ {
462
+ "type": "uint256"
463
+ }
464
+ ]
465
+ },
466
+ {
467
+ "type": "function",
468
+ "name": "numberOfMembers",
469
+ "constant": true,
470
+ "stateMutability": "view",
471
+ "payable": false,
472
+
473
+ "inputs": [
474
+ {
475
+ "type": "uint256",
476
+ "name": "_memberRoleId"
477
+ }
478
+ ],
479
+ "outputs": [
480
+ {
481
+ "type": "uint256"
482
+ }
483
+ ]
484
+ },
485
+ {
486
+ "type": "function",
487
+ "name": "roles",
488
+ "constant": true,
489
+ "stateMutability": "view",
490
+ "payable": false,
491
+
492
+ "inputs": [
493
+ {
494
+ "type": "address",
495
+ "name": "_memberAddress"
496
+ }
497
+ ],
498
+ "outputs": [
499
+ {
500
+ "type": "uint256[]"
501
+ }
502
+ ]
503
+ },
504
+ {
505
+ "type": "function",
506
+ "name": "setKycAuthAddress",
507
+ "constant": false,
508
+ "payable": false,
509
+
510
+ "inputs": [
511
+ {
512
+ "type": "address",
513
+ "name": "_add"
514
+ }
515
+ ],
516
+ "outputs": []
517
+ },
518
+ {
519
+ "type": "function",
520
+ "name": "storageCleanup",
521
+ "constant": false,
522
+ "payable": false,
523
+
524
+ "inputs": [
525
+ {
526
+ "type": "address[]",
527
+ "name": "payoutAddresses"
528
+ }
529
+ ],
530
+ "outputs": []
531
+ },
532
+ {
533
+ "type": "function",
534
+ "name": "swapABMember",
535
+ "constant": false,
536
+ "payable": false,
537
+
538
+ "inputs": [
539
+ {
540
+ "type": "address",
541
+ "name": "_newABAddress"
542
+ },
543
+ {
544
+ "type": "address",
545
+ "name": "_removeAB"
546
+ }
547
+ ],
548
+ "outputs": []
549
+ },
550
+ {
551
+ "type": "function",
552
+ "name": "switchMembership",
553
+ "constant": false,
554
+ "payable": false,
555
+
556
+ "inputs": [
557
+ {
558
+ "type": "address",
559
+ "name": "newAddress"
560
+ }
561
+ ],
562
+ "outputs": []
563
+ },
564
+ {
565
+ "type": "function",
566
+ "name": "switchMembershipAndAssets",
567
+ "constant": false,
568
+ "payable": false,
569
+
570
+ "inputs": [
571
+ {
572
+ "type": "address",
573
+ "name": "newAddress"
574
+ },
575
+ {
576
+ "type": "uint256[]",
577
+ "name": "coverIds"
578
+ },
579
+ {
580
+ "type": "uint256[]",
581
+ "name": "stakingTokenIds"
582
+ }
583
+ ],
584
+ "outputs": []
585
+ },
586
+ {
587
+ "type": "function",
588
+ "name": "switchMembershipOf",
589
+ "constant": false,
590
+ "payable": false,
591
+
592
+ "inputs": [
593
+ {
594
+ "type": "address",
595
+ "name": "member"
596
+ },
597
+ {
598
+ "type": "address",
599
+ "name": "newAddress"
600
+ }
601
+ ],
602
+ "outputs": []
603
+ },
604
+ {
605
+ "type": "function",
606
+ "name": "token",
607
+ "constant": true,
608
+ "stateMutability": "view",
609
+ "payable": false,
610
+
611
+ "inputs": [],
612
+ "outputs": [
613
+ {
614
+ "type": "address"
615
+ }
616
+ ]
617
+ },
618
+ {
619
+ "type": "function",
620
+ "name": "totalRoles",
621
+ "constant": true,
622
+ "stateMutability": "view",
623
+ "payable": false,
624
+
625
+ "inputs": [],
626
+ "outputs": [
627
+ {
628
+ "type": "uint256"
629
+ }
630
+ ]
631
+ },
632
+ {
633
+ "type": "function",
634
+ "name": "updateRole",
635
+ "constant": false,
636
+ "payable": false,
637
+
638
+ "inputs": [
639
+ {
640
+ "type": "address",
641
+ "name": "_memberAddress"
642
+ },
643
+ {
644
+ "type": "uint256",
645
+ "name": "_roleId"
646
+ },
647
+ {
648
+ "type": "bool",
649
+ "name": "_active"
650
+ }
651
+ ],
652
+ "outputs": []
653
+ },
654
+ {
655
+ "type": "function",
656
+ "name": "usedMessageHashes",
657
+ "constant": true,
658
+ "stateMutability": "view",
659
+ "payable": false,
660
+
661
+ "inputs": [
662
+ {
663
+ "type": "bytes32"
664
+ }
665
+ ],
666
+ "outputs": [
667
+ {
668
+ "type": "bool"
669
+ }
670
+ ]
671
+ },
672
+ {
673
+ "type": "function",
674
+ "name": "withdrawMembership",
675
+ "constant": false,
676
+ "payable": false,
677
+
678
+ "inputs": [],
679
+ "outputs": []
680
+ }
681
+ ]