@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,569 @@
1
+ [
2
+ {
3
+ "type": "constructor",
4
+ "payable": false,
5
+ "inputs": [
6
+ {
7
+ "type": "string",
8
+ "name": "_name"
9
+ },
10
+ {
11
+ "type": "string",
12
+ "name": "_symbol"
13
+ },
14
+ {
15
+ "type": "address",
16
+ "name": "_stakingPoolFactory"
17
+ },
18
+ {
19
+ "type": "address",
20
+ "name": "_operator"
21
+ },
22
+ {
23
+ "type": "address",
24
+ "name": "_nftDescriptor"
25
+ }
26
+ ]
27
+ },
28
+ {
29
+ "type": "error",
30
+ "name": "AlreadyMinted",
31
+ "inputs": []
32
+ },
33
+ {
34
+ "type": "error",
35
+ "name": "InvalidNewNFTDescriptorAddress",
36
+ "inputs": []
37
+ },
38
+ {
39
+ "type": "error",
40
+ "name": "InvalidNewOperatorAddress",
41
+ "inputs": []
42
+ },
43
+ {
44
+ "type": "error",
45
+ "name": "InvalidRecipient",
46
+ "inputs": []
47
+ },
48
+ {
49
+ "type": "error",
50
+ "name": "NotAuthorized",
51
+ "inputs": []
52
+ },
53
+ {
54
+ "type": "error",
55
+ "name": "NotMinted",
56
+ "inputs": []
57
+ },
58
+ {
59
+ "type": "error",
60
+ "name": "NotOperator",
61
+ "inputs": []
62
+ },
63
+ {
64
+ "type": "error",
65
+ "name": "NotStakingPool",
66
+ "inputs": []
67
+ },
68
+ {
69
+ "type": "error",
70
+ "name": "UnsafeRecipient",
71
+ "inputs": []
72
+ },
73
+ {
74
+ "type": "error",
75
+ "name": "WrongFrom",
76
+ "inputs": []
77
+ },
78
+ {
79
+ "type": "event",
80
+ "anonymous": false,
81
+ "name": "Approval",
82
+ "inputs": [
83
+ {
84
+ "type": "address",
85
+ "name": "owner",
86
+ "indexed": true
87
+ },
88
+ {
89
+ "type": "address",
90
+ "name": "approved",
91
+ "indexed": true
92
+ },
93
+ {
94
+ "type": "uint256",
95
+ "name": "tokenId",
96
+ "indexed": true
97
+ }
98
+ ]
99
+ },
100
+ {
101
+ "type": "event",
102
+ "anonymous": false,
103
+ "name": "ApprovalForAll",
104
+ "inputs": [
105
+ {
106
+ "type": "address",
107
+ "name": "owner",
108
+ "indexed": true
109
+ },
110
+ {
111
+ "type": "address",
112
+ "name": "operator",
113
+ "indexed": true
114
+ },
115
+ {
116
+ "type": "bool",
117
+ "name": "approved",
118
+ "indexed": false
119
+ }
120
+ ]
121
+ },
122
+ {
123
+ "type": "event",
124
+ "anonymous": false,
125
+ "name": "Transfer",
126
+ "inputs": [
127
+ {
128
+ "type": "address",
129
+ "name": "from",
130
+ "indexed": true
131
+ },
132
+ {
133
+ "type": "address",
134
+ "name": "to",
135
+ "indexed": true
136
+ },
137
+ {
138
+ "type": "uint256",
139
+ "name": "tokenId",
140
+ "indexed": true
141
+ }
142
+ ]
143
+ },
144
+ {
145
+ "type": "function",
146
+ "name": "approve",
147
+ "constant": false,
148
+ "payable": false,
149
+
150
+ "inputs": [
151
+ {
152
+ "type": "address",
153
+ "name": "spender"
154
+ },
155
+ {
156
+ "type": "uint256",
157
+ "name": "id"
158
+ }
159
+ ],
160
+ "outputs": []
161
+ },
162
+ {
163
+ "type": "function",
164
+ "name": "balanceOf",
165
+ "constant": true,
166
+ "stateMutability": "view",
167
+ "payable": false,
168
+
169
+ "inputs": [
170
+ {
171
+ "type": "address",
172
+ "name": "owner"
173
+ }
174
+ ],
175
+ "outputs": [
176
+ {
177
+ "type": "uint256"
178
+ }
179
+ ]
180
+ },
181
+ {
182
+ "type": "function",
183
+ "name": "changeNFTDescriptor",
184
+ "constant": false,
185
+ "payable": false,
186
+
187
+ "inputs": [
188
+ {
189
+ "type": "address",
190
+ "name": "newNFTDescriptor"
191
+ }
192
+ ],
193
+ "outputs": []
194
+ },
195
+ {
196
+ "type": "function",
197
+ "name": "changeOperator",
198
+ "constant": false,
199
+ "payable": false,
200
+
201
+ "inputs": [
202
+ {
203
+ "type": "address",
204
+ "name": "newOperator"
205
+ }
206
+ ],
207
+ "outputs": []
208
+ },
209
+ {
210
+ "type": "function",
211
+ "name": "getApproved",
212
+ "constant": true,
213
+ "stateMutability": "view",
214
+ "payable": false,
215
+
216
+ "inputs": [
217
+ {
218
+ "type": "uint256"
219
+ }
220
+ ],
221
+ "outputs": [
222
+ {
223
+ "type": "address"
224
+ }
225
+ ]
226
+ },
227
+ {
228
+ "type": "function",
229
+ "name": "isApprovedForAll",
230
+ "constant": true,
231
+ "stateMutability": "view",
232
+ "payable": false,
233
+
234
+ "inputs": [
235
+ {
236
+ "type": "address"
237
+ },
238
+ {
239
+ "type": "address"
240
+ }
241
+ ],
242
+ "outputs": [
243
+ {
244
+ "type": "bool"
245
+ }
246
+ ]
247
+ },
248
+ {
249
+ "type": "function",
250
+ "name": "isApprovedOrOwner",
251
+ "constant": true,
252
+ "stateMutability": "view",
253
+ "payable": false,
254
+
255
+ "inputs": [
256
+ {
257
+ "type": "address",
258
+ "name": "spender"
259
+ },
260
+ {
261
+ "type": "uint256",
262
+ "name": "id"
263
+ }
264
+ ],
265
+ "outputs": [
266
+ {
267
+ "type": "bool"
268
+ }
269
+ ]
270
+ },
271
+ {
272
+ "type": "function",
273
+ "name": "mint",
274
+ "constant": false,
275
+ "payable": false,
276
+
277
+ "inputs": [
278
+ {
279
+ "type": "uint256",
280
+ "name": "poolId"
281
+ },
282
+ {
283
+ "type": "address",
284
+ "name": "to"
285
+ }
286
+ ],
287
+ "outputs": [
288
+ {
289
+ "type": "uint256",
290
+ "name": "id"
291
+ }
292
+ ]
293
+ },
294
+ {
295
+ "type": "function",
296
+ "name": "name",
297
+ "constant": true,
298
+ "stateMutability": "view",
299
+ "payable": false,
300
+
301
+ "inputs": [],
302
+ "outputs": [
303
+ {
304
+ "type": "string"
305
+ }
306
+ ]
307
+ },
308
+ {
309
+ "type": "function",
310
+ "name": "nftDescriptor",
311
+ "constant": true,
312
+ "stateMutability": "view",
313
+ "payable": false,
314
+
315
+ "inputs": [],
316
+ "outputs": [
317
+ {
318
+ "type": "address"
319
+ }
320
+ ]
321
+ },
322
+ {
323
+ "type": "function",
324
+ "name": "operator",
325
+ "constant": true,
326
+ "stateMutability": "view",
327
+ "payable": false,
328
+
329
+ "inputs": [],
330
+ "outputs": [
331
+ {
332
+ "type": "address"
333
+ }
334
+ ]
335
+ },
336
+ {
337
+ "type": "function",
338
+ "name": "ownerOf",
339
+ "constant": true,
340
+ "stateMutability": "view",
341
+ "payable": false,
342
+
343
+ "inputs": [
344
+ {
345
+ "type": "uint256",
346
+ "name": "id"
347
+ }
348
+ ],
349
+ "outputs": [
350
+ {
351
+ "type": "address",
352
+ "name": "owner"
353
+ }
354
+ ]
355
+ },
356
+ {
357
+ "type": "function",
358
+ "name": "safeTransferFrom",
359
+ "constant": false,
360
+ "payable": false,
361
+
362
+ "inputs": [
363
+ {
364
+ "type": "address",
365
+ "name": "from"
366
+ },
367
+ {
368
+ "type": "address",
369
+ "name": "to"
370
+ },
371
+ {
372
+ "type": "uint256",
373
+ "name": "id"
374
+ }
375
+ ],
376
+ "outputs": []
377
+ },
378
+ {
379
+ "type": "function",
380
+ "name": "safeTransferFrom",
381
+ "constant": false,
382
+ "payable": false,
383
+
384
+ "inputs": [
385
+ {
386
+ "type": "address",
387
+ "name": "from"
388
+ },
389
+ {
390
+ "type": "address",
391
+ "name": "to"
392
+ },
393
+ {
394
+ "type": "uint256",
395
+ "name": "id"
396
+ },
397
+ {
398
+ "type": "bytes",
399
+ "name": "data"
400
+ }
401
+ ],
402
+ "outputs": []
403
+ },
404
+ {
405
+ "type": "function",
406
+ "name": "setApprovalForAll",
407
+ "constant": false,
408
+ "payable": false,
409
+
410
+ "inputs": [
411
+ {
412
+ "type": "address",
413
+ "name": "spender"
414
+ },
415
+ {
416
+ "type": "bool",
417
+ "name": "approved"
418
+ }
419
+ ],
420
+ "outputs": []
421
+ },
422
+ {
423
+ "type": "function",
424
+ "name": "stakingPoolFactory",
425
+ "constant": true,
426
+ "stateMutability": "view",
427
+ "payable": false,
428
+
429
+ "inputs": [],
430
+ "outputs": [
431
+ {
432
+ "type": "address"
433
+ }
434
+ ]
435
+ },
436
+ {
437
+ "type": "function",
438
+ "name": "stakingPoolOf",
439
+ "constant": true,
440
+ "stateMutability": "view",
441
+ "payable": false,
442
+
443
+ "inputs": [
444
+ {
445
+ "type": "uint256",
446
+ "name": "tokenId"
447
+ }
448
+ ],
449
+ "outputs": [
450
+ {
451
+ "type": "uint256",
452
+ "name": "poolId"
453
+ }
454
+ ]
455
+ },
456
+ {
457
+ "type": "function",
458
+ "name": "supportsInterface",
459
+ "constant": true,
460
+ "stateMutability": "pure",
461
+ "payable": false,
462
+
463
+ "inputs": [
464
+ {
465
+ "type": "bytes4",
466
+ "name": "interfaceId"
467
+ }
468
+ ],
469
+ "outputs": [
470
+ {
471
+ "type": "bool"
472
+ }
473
+ ]
474
+ },
475
+ {
476
+ "type": "function",
477
+ "name": "symbol",
478
+ "constant": true,
479
+ "stateMutability": "view",
480
+ "payable": false,
481
+
482
+ "inputs": [],
483
+ "outputs": [
484
+ {
485
+ "type": "string"
486
+ }
487
+ ]
488
+ },
489
+ {
490
+ "type": "function",
491
+ "name": "tokenInfo",
492
+ "constant": true,
493
+ "stateMutability": "view",
494
+ "payable": false,
495
+
496
+ "inputs": [
497
+ {
498
+ "type": "uint256",
499
+ "name": "tokenId"
500
+ }
501
+ ],
502
+ "outputs": [
503
+ {
504
+ "type": "uint256",
505
+ "name": "poolId"
506
+ },
507
+ {
508
+ "type": "address",
509
+ "name": "owner"
510
+ }
511
+ ]
512
+ },
513
+ {
514
+ "type": "function",
515
+ "name": "tokenURI",
516
+ "constant": true,
517
+ "stateMutability": "view",
518
+ "payable": false,
519
+
520
+ "inputs": [
521
+ {
522
+ "type": "uint256",
523
+ "name": "id"
524
+ }
525
+ ],
526
+ "outputs": [
527
+ {
528
+ "type": "string",
529
+ "name": "uri"
530
+ }
531
+ ]
532
+ },
533
+ {
534
+ "type": "function",
535
+ "name": "totalSupply",
536
+ "constant": true,
537
+ "stateMutability": "view",
538
+ "payable": false,
539
+
540
+ "inputs": [],
541
+ "outputs": [
542
+ {
543
+ "type": "uint256"
544
+ }
545
+ ]
546
+ },
547
+ {
548
+ "type": "function",
549
+ "name": "transferFrom",
550
+ "constant": false,
551
+ "payable": false,
552
+
553
+ "inputs": [
554
+ {
555
+ "type": "address",
556
+ "name": "from"
557
+ },
558
+ {
559
+ "type": "address",
560
+ "name": "to"
561
+ },
562
+ {
563
+ "type": "uint256",
564
+ "name": "id"
565
+ }
566
+ ],
567
+ "outputs": []
568
+ }
569
+ ]