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