@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,777 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "contract INXMMaster",
6
+ "name": "_master",
7
+ "type": "address"
8
+ },
9
+ {
10
+ "internalType": "contract IStakingNFT",
11
+ "name": "_stakingNFT",
12
+ "type": "address"
13
+ },
14
+ {
15
+ "internalType": "contract IStakingPoolFactory",
16
+ "name": "_stakingPoolFactory",
17
+ "type": "address"
18
+ },
19
+ {
20
+ "internalType": "contract IStakingProducts",
21
+ "name": "_stakingProducts",
22
+ "type": "address"
23
+ }
24
+ ],
25
+ "stateMutability": "nonpayable",
26
+ "type": "constructor"
27
+ },
28
+ {
29
+ "inputs": [
30
+ {
31
+ "internalType": "uint256",
32
+ "name": "index",
33
+ "type": "uint256"
34
+ }
35
+ ],
36
+ "name": "RevertedWithoutReason",
37
+ "type": "error"
38
+ },
39
+ {
40
+ "inputs": [],
41
+ "name": "MAX_ACTIVE_TRANCHES",
42
+ "outputs": [
43
+ {
44
+ "internalType": "uint256",
45
+ "name": "",
46
+ "type": "uint256"
47
+ }
48
+ ],
49
+ "stateMutability": "view",
50
+ "type": "function"
51
+ },
52
+ {
53
+ "inputs": [],
54
+ "name": "MAX_UINT",
55
+ "outputs": [
56
+ {
57
+ "internalType": "uint256",
58
+ "name": "",
59
+ "type": "uint256"
60
+ }
61
+ ],
62
+ "stateMutability": "view",
63
+ "type": "function"
64
+ },
65
+ {
66
+ "inputs": [],
67
+ "name": "ONE_NXM",
68
+ "outputs": [
69
+ {
70
+ "internalType": "uint256",
71
+ "name": "",
72
+ "type": "uint256"
73
+ }
74
+ ],
75
+ "stateMutability": "view",
76
+ "type": "function"
77
+ },
78
+ {
79
+ "inputs": [],
80
+ "name": "TRANCHE_DURATION",
81
+ "outputs": [
82
+ {
83
+ "internalType": "uint256",
84
+ "name": "",
85
+ "type": "uint256"
86
+ }
87
+ ],
88
+ "stateMutability": "view",
89
+ "type": "function"
90
+ },
91
+ {
92
+ "inputs": [],
93
+ "name": "TRANCHE_ID_AT_DEPLOY",
94
+ "outputs": [
95
+ {
96
+ "internalType": "uint256",
97
+ "name": "",
98
+ "type": "uint256"
99
+ }
100
+ ],
101
+ "stateMutability": "view",
102
+ "type": "function"
103
+ },
104
+ {
105
+ "inputs": [
106
+ {
107
+ "internalType": "uint256[]",
108
+ "name": "tokenIds",
109
+ "type": "uint256[]"
110
+ }
111
+ ],
112
+ "name": "getAggregatedTokens",
113
+ "outputs": [
114
+ {
115
+ "components": [
116
+ {
117
+ "internalType": "uint256",
118
+ "name": "totalActiveStake",
119
+ "type": "uint256"
120
+ },
121
+ {
122
+ "internalType": "uint256",
123
+ "name": "totalExpiredStake",
124
+ "type": "uint256"
125
+ },
126
+ {
127
+ "internalType": "uint256",
128
+ "name": "totalRewards",
129
+ "type": "uint256"
130
+ }
131
+ ],
132
+ "internalType": "struct StakingViewer.AggregatedTokens",
133
+ "name": "aggregated",
134
+ "type": "tuple"
135
+ }
136
+ ],
137
+ "stateMutability": "view",
138
+ "type": "function"
139
+ },
140
+ {
141
+ "inputs": [],
142
+ "name": "getAllPools",
143
+ "outputs": [
144
+ {
145
+ "components": [
146
+ {
147
+ "internalType": "uint256",
148
+ "name": "poolId",
149
+ "type": "uint256"
150
+ },
151
+ {
152
+ "internalType": "bool",
153
+ "name": "isPrivatePool",
154
+ "type": "bool"
155
+ },
156
+ {
157
+ "internalType": "address",
158
+ "name": "manager",
159
+ "type": "address"
160
+ },
161
+ {
162
+ "internalType": "uint256",
163
+ "name": "poolFee",
164
+ "type": "uint256"
165
+ },
166
+ {
167
+ "internalType": "uint256",
168
+ "name": "maxPoolFee",
169
+ "type": "uint256"
170
+ },
171
+ {
172
+ "internalType": "uint256",
173
+ "name": "activeStake",
174
+ "type": "uint256"
175
+ },
176
+ {
177
+ "internalType": "uint256",
178
+ "name": "currentAPY",
179
+ "type": "uint256"
180
+ }
181
+ ],
182
+ "internalType": "struct StakingViewer.Pool[]",
183
+ "name": "pools",
184
+ "type": "tuple[]"
185
+ }
186
+ ],
187
+ "stateMutability": "view",
188
+ "type": "function"
189
+ },
190
+ {
191
+ "inputs": [
192
+ {
193
+ "internalType": "uint256[]",
194
+ "name": "poolIds",
195
+ "type": "uint256[]"
196
+ }
197
+ ],
198
+ "name": "getManagerRewards",
199
+ "outputs": [
200
+ {
201
+ "components": [
202
+ {
203
+ "internalType": "uint256",
204
+ "name": "tokenId",
205
+ "type": "uint256"
206
+ },
207
+ {
208
+ "internalType": "uint256",
209
+ "name": "poolId",
210
+ "type": "uint256"
211
+ },
212
+ {
213
+ "internalType": "uint256",
214
+ "name": "activeStake",
215
+ "type": "uint256"
216
+ },
217
+ {
218
+ "internalType": "uint256",
219
+ "name": "expiredStake",
220
+ "type": "uint256"
221
+ },
222
+ {
223
+ "internalType": "uint256",
224
+ "name": "rewards",
225
+ "type": "uint256"
226
+ },
227
+ {
228
+ "components": [
229
+ {
230
+ "internalType": "uint256",
231
+ "name": "tokenId",
232
+ "type": "uint256"
233
+ },
234
+ {
235
+ "internalType": "uint256",
236
+ "name": "trancheId",
237
+ "type": "uint256"
238
+ },
239
+ {
240
+ "internalType": "uint256",
241
+ "name": "stake",
242
+ "type": "uint256"
243
+ },
244
+ {
245
+ "internalType": "uint256",
246
+ "name": "stakeShares",
247
+ "type": "uint256"
248
+ },
249
+ {
250
+ "internalType": "uint256",
251
+ "name": "reward",
252
+ "type": "uint256"
253
+ }
254
+ ],
255
+ "internalType": "struct StakingViewer.Deposit[]",
256
+ "name": "deposits",
257
+ "type": "tuple[]"
258
+ }
259
+ ],
260
+ "internalType": "struct StakingViewer.Token[]",
261
+ "name": "tokens",
262
+ "type": "tuple[]"
263
+ }
264
+ ],
265
+ "stateMutability": "view",
266
+ "type": "function"
267
+ },
268
+ {
269
+ "inputs": [
270
+ {
271
+ "internalType": "uint256",
272
+ "name": "poolId",
273
+ "type": "uint256"
274
+ }
275
+ ],
276
+ "name": "getPool",
277
+ "outputs": [
278
+ {
279
+ "components": [
280
+ {
281
+ "internalType": "uint256",
282
+ "name": "poolId",
283
+ "type": "uint256"
284
+ },
285
+ {
286
+ "internalType": "bool",
287
+ "name": "isPrivatePool",
288
+ "type": "bool"
289
+ },
290
+ {
291
+ "internalType": "address",
292
+ "name": "manager",
293
+ "type": "address"
294
+ },
295
+ {
296
+ "internalType": "uint256",
297
+ "name": "poolFee",
298
+ "type": "uint256"
299
+ },
300
+ {
301
+ "internalType": "uint256",
302
+ "name": "maxPoolFee",
303
+ "type": "uint256"
304
+ },
305
+ {
306
+ "internalType": "uint256",
307
+ "name": "activeStake",
308
+ "type": "uint256"
309
+ },
310
+ {
311
+ "internalType": "uint256",
312
+ "name": "currentAPY",
313
+ "type": "uint256"
314
+ }
315
+ ],
316
+ "internalType": "struct StakingViewer.Pool",
317
+ "name": "pool",
318
+ "type": "tuple"
319
+ }
320
+ ],
321
+ "stateMutability": "view",
322
+ "type": "function"
323
+ },
324
+ {
325
+ "inputs": [
326
+ {
327
+ "internalType": "uint256",
328
+ "name": "poolId",
329
+ "type": "uint256"
330
+ }
331
+ ],
332
+ "name": "getPoolProducts",
333
+ "outputs": [
334
+ {
335
+ "components": [
336
+ {
337
+ "internalType": "uint256",
338
+ "name": "productId",
339
+ "type": "uint256"
340
+ },
341
+ {
342
+ "internalType": "uint256",
343
+ "name": "lastEffectiveWeight",
344
+ "type": "uint256"
345
+ },
346
+ {
347
+ "internalType": "uint256",
348
+ "name": "targetWeight",
349
+ "type": "uint256"
350
+ },
351
+ {
352
+ "internalType": "uint256",
353
+ "name": "targetPrice",
354
+ "type": "uint256"
355
+ },
356
+ {
357
+ "internalType": "uint256",
358
+ "name": "bumpedPrice",
359
+ "type": "uint256"
360
+ },
361
+ {
362
+ "internalType": "uint256",
363
+ "name": "bumpedPriceUpdateTime",
364
+ "type": "uint256"
365
+ }
366
+ ],
367
+ "internalType": "struct StakingViewer.StakingProduct[]",
368
+ "name": "products",
369
+ "type": "tuple[]"
370
+ }
371
+ ],
372
+ "stateMutability": "view",
373
+ "type": "function"
374
+ },
375
+ {
376
+ "inputs": [
377
+ {
378
+ "internalType": "uint256[]",
379
+ "name": "poolIds",
380
+ "type": "uint256[]"
381
+ }
382
+ ],
383
+ "name": "getPools",
384
+ "outputs": [
385
+ {
386
+ "components": [
387
+ {
388
+ "internalType": "uint256",
389
+ "name": "poolId",
390
+ "type": "uint256"
391
+ },
392
+ {
393
+ "internalType": "bool",
394
+ "name": "isPrivatePool",
395
+ "type": "bool"
396
+ },
397
+ {
398
+ "internalType": "address",
399
+ "name": "manager",
400
+ "type": "address"
401
+ },
402
+ {
403
+ "internalType": "uint256",
404
+ "name": "poolFee",
405
+ "type": "uint256"
406
+ },
407
+ {
408
+ "internalType": "uint256",
409
+ "name": "maxPoolFee",
410
+ "type": "uint256"
411
+ },
412
+ {
413
+ "internalType": "uint256",
414
+ "name": "activeStake",
415
+ "type": "uint256"
416
+ },
417
+ {
418
+ "internalType": "uint256",
419
+ "name": "currentAPY",
420
+ "type": "uint256"
421
+ }
422
+ ],
423
+ "internalType": "struct StakingViewer.Pool[]",
424
+ "name": "pools",
425
+ "type": "tuple[]"
426
+ }
427
+ ],
428
+ "stateMutability": "view",
429
+ "type": "function"
430
+ },
431
+ {
432
+ "inputs": [
433
+ {
434
+ "internalType": "uint256",
435
+ "name": "productId",
436
+ "type": "uint256"
437
+ }
438
+ ],
439
+ "name": "getProductPools",
440
+ "outputs": [
441
+ {
442
+ "components": [
443
+ {
444
+ "internalType": "uint256",
445
+ "name": "poolId",
446
+ "type": "uint256"
447
+ },
448
+ {
449
+ "internalType": "bool",
450
+ "name": "isPrivatePool",
451
+ "type": "bool"
452
+ },
453
+ {
454
+ "internalType": "address",
455
+ "name": "manager",
456
+ "type": "address"
457
+ },
458
+ {
459
+ "internalType": "uint256",
460
+ "name": "poolFee",
461
+ "type": "uint256"
462
+ },
463
+ {
464
+ "internalType": "uint256",
465
+ "name": "maxPoolFee",
466
+ "type": "uint256"
467
+ },
468
+ {
469
+ "internalType": "uint256",
470
+ "name": "activeStake",
471
+ "type": "uint256"
472
+ },
473
+ {
474
+ "internalType": "uint256",
475
+ "name": "currentAPY",
476
+ "type": "uint256"
477
+ }
478
+ ],
479
+ "internalType": "struct StakingViewer.Pool[]",
480
+ "name": "pools",
481
+ "type": "tuple[]"
482
+ }
483
+ ],
484
+ "stateMutability": "view",
485
+ "type": "function"
486
+ },
487
+ {
488
+ "inputs": [
489
+ {
490
+ "internalType": "uint256[]",
491
+ "name": "tokenIds",
492
+ "type": "uint256[]"
493
+ }
494
+ ],
495
+ "name": "getStakingPoolsOf",
496
+ "outputs": [
497
+ {
498
+ "components": [
499
+ {
500
+ "internalType": "uint256",
501
+ "name": "poolId",
502
+ "type": "uint256"
503
+ },
504
+ {
505
+ "internalType": "uint256",
506
+ "name": "tokenId",
507
+ "type": "uint256"
508
+ }
509
+ ],
510
+ "internalType": "struct StakingViewer.TokenPoolMap[]",
511
+ "name": "tokenPools",
512
+ "type": "tuple[]"
513
+ }
514
+ ],
515
+ "stateMutability": "view",
516
+ "type": "function"
517
+ },
518
+ {
519
+ "inputs": [
520
+ {
521
+ "internalType": "uint256",
522
+ "name": "tokenId",
523
+ "type": "uint256"
524
+ }
525
+ ],
526
+ "name": "getToken",
527
+ "outputs": [
528
+ {
529
+ "components": [
530
+ {
531
+ "internalType": "uint256",
532
+ "name": "tokenId",
533
+ "type": "uint256"
534
+ },
535
+ {
536
+ "internalType": "uint256",
537
+ "name": "poolId",
538
+ "type": "uint256"
539
+ },
540
+ {
541
+ "internalType": "uint256",
542
+ "name": "activeStake",
543
+ "type": "uint256"
544
+ },
545
+ {
546
+ "internalType": "uint256",
547
+ "name": "expiredStake",
548
+ "type": "uint256"
549
+ },
550
+ {
551
+ "internalType": "uint256",
552
+ "name": "rewards",
553
+ "type": "uint256"
554
+ },
555
+ {
556
+ "components": [
557
+ {
558
+ "internalType": "uint256",
559
+ "name": "tokenId",
560
+ "type": "uint256"
561
+ },
562
+ {
563
+ "internalType": "uint256",
564
+ "name": "trancheId",
565
+ "type": "uint256"
566
+ },
567
+ {
568
+ "internalType": "uint256",
569
+ "name": "stake",
570
+ "type": "uint256"
571
+ },
572
+ {
573
+ "internalType": "uint256",
574
+ "name": "stakeShares",
575
+ "type": "uint256"
576
+ },
577
+ {
578
+ "internalType": "uint256",
579
+ "name": "reward",
580
+ "type": "uint256"
581
+ }
582
+ ],
583
+ "internalType": "struct StakingViewer.Deposit[]",
584
+ "name": "deposits",
585
+ "type": "tuple[]"
586
+ }
587
+ ],
588
+ "internalType": "struct StakingViewer.Token",
589
+ "name": "token",
590
+ "type": "tuple"
591
+ }
592
+ ],
593
+ "stateMutability": "view",
594
+ "type": "function"
595
+ },
596
+ {
597
+ "inputs": [
598
+ {
599
+ "internalType": "uint256[]",
600
+ "name": "tokenIds",
601
+ "type": "uint256[]"
602
+ }
603
+ ],
604
+ "name": "getTokens",
605
+ "outputs": [
606
+ {
607
+ "components": [
608
+ {
609
+ "internalType": "uint256",
610
+ "name": "tokenId",
611
+ "type": "uint256"
612
+ },
613
+ {
614
+ "internalType": "uint256",
615
+ "name": "poolId",
616
+ "type": "uint256"
617
+ },
618
+ {
619
+ "internalType": "uint256",
620
+ "name": "activeStake",
621
+ "type": "uint256"
622
+ },
623
+ {
624
+ "internalType": "uint256",
625
+ "name": "expiredStake",
626
+ "type": "uint256"
627
+ },
628
+ {
629
+ "internalType": "uint256",
630
+ "name": "rewards",
631
+ "type": "uint256"
632
+ },
633
+ {
634
+ "components": [
635
+ {
636
+ "internalType": "uint256",
637
+ "name": "tokenId",
638
+ "type": "uint256"
639
+ },
640
+ {
641
+ "internalType": "uint256",
642
+ "name": "trancheId",
643
+ "type": "uint256"
644
+ },
645
+ {
646
+ "internalType": "uint256",
647
+ "name": "stake",
648
+ "type": "uint256"
649
+ },
650
+ {
651
+ "internalType": "uint256",
652
+ "name": "stakeShares",
653
+ "type": "uint256"
654
+ },
655
+ {
656
+ "internalType": "uint256",
657
+ "name": "reward",
658
+ "type": "uint256"
659
+ }
660
+ ],
661
+ "internalType": "struct StakingViewer.Deposit[]",
662
+ "name": "deposits",
663
+ "type": "tuple[]"
664
+ }
665
+ ],
666
+ "internalType": "struct StakingViewer.Token[]",
667
+ "name": "tokens",
668
+ "type": "tuple[]"
669
+ }
670
+ ],
671
+ "stateMutability": "view",
672
+ "type": "function"
673
+ },
674
+ {
675
+ "inputs": [],
676
+ "name": "master",
677
+ "outputs": [
678
+ {
679
+ "internalType": "contract INXMMaster",
680
+ "name": "",
681
+ "type": "address"
682
+ }
683
+ ],
684
+ "stateMutability": "view",
685
+ "type": "function"
686
+ },
687
+ {
688
+ "inputs": [
689
+ {
690
+ "internalType": "bytes[]",
691
+ "name": "data",
692
+ "type": "bytes[]"
693
+ }
694
+ ],
695
+ "name": "multicall",
696
+ "outputs": [
697
+ {
698
+ "internalType": "bytes[]",
699
+ "name": "results",
700
+ "type": "bytes[]"
701
+ }
702
+ ],
703
+ "stateMutability": "nonpayable",
704
+ "type": "function"
705
+ },
706
+ {
707
+ "inputs": [
708
+ {
709
+ "internalType": "uint256[]",
710
+ "name": "poolIds",
711
+ "type": "uint256[]"
712
+ }
713
+ ],
714
+ "name": "processExpirations",
715
+ "outputs": [],
716
+ "stateMutability": "nonpayable",
717
+ "type": "function"
718
+ },
719
+ {
720
+ "inputs": [],
721
+ "name": "stakingNFT",
722
+ "outputs": [
723
+ {
724
+ "internalType": "contract IStakingNFT",
725
+ "name": "",
726
+ "type": "address"
727
+ }
728
+ ],
729
+ "stateMutability": "view",
730
+ "type": "function"
731
+ },
732
+ {
733
+ "inputs": [
734
+ {
735
+ "internalType": "uint256",
736
+ "name": "poolId",
737
+ "type": "uint256"
738
+ }
739
+ ],
740
+ "name": "stakingPool",
741
+ "outputs": [
742
+ {
743
+ "internalType": "contract IStakingPool",
744
+ "name": "",
745
+ "type": "address"
746
+ }
747
+ ],
748
+ "stateMutability": "view",
749
+ "type": "function"
750
+ },
751
+ {
752
+ "inputs": [],
753
+ "name": "stakingPoolFactory",
754
+ "outputs": [
755
+ {
756
+ "internalType": "contract IStakingPoolFactory",
757
+ "name": "",
758
+ "type": "address"
759
+ }
760
+ ],
761
+ "stateMutability": "view",
762
+ "type": "function"
763
+ },
764
+ {
765
+ "inputs": [],
766
+ "name": "stakingProducts",
767
+ "outputs": [
768
+ {
769
+ "internalType": "contract IStakingProducts",
770
+ "name": "",
771
+ "type": "address"
772
+ }
773
+ ],
774
+ "stateMutability": "view",
775
+ "type": "function"
776
+ }
777
+ ]