@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,200 @@
1
+ [
2
+ {
3
+ "type": "constructor",
4
+ "payable": false,
5
+ "inputs": [
6
+ {
7
+ "type": "address",
8
+ "name": "_master"
9
+ }
10
+ ]
11
+ },
12
+ {
13
+ "type": "function",
14
+ "name": "addZeroPrefix",
15
+ "constant": true,
16
+ "stateMutability": "pure",
17
+ "payable": false,
18
+
19
+ "inputs": [
20
+ {
21
+ "type": "uint256",
22
+ "name": "value"
23
+ }
24
+ ],
25
+ "outputs": [
26
+ {
27
+ "type": "string"
28
+ }
29
+ ]
30
+ },
31
+ {
32
+ "type": "function",
33
+ "name": "generateDescription",
34
+ "constant": true,
35
+ "stateMutability": "view",
36
+ "payable": false,
37
+
38
+ "inputs": [
39
+ {
40
+ "type": "uint256",
41
+ "name": "tokenId"
42
+ }
43
+ ],
44
+ "outputs": [
45
+ {
46
+ "type": "string",
47
+ "name": "descriptionString"
48
+ },
49
+ {
50
+ "type": "tuple",
51
+ "name": "descriptionData",
52
+ "components": [
53
+ {
54
+ "type": "string",
55
+ "name": "productName"
56
+ },
57
+ {
58
+ "type": "string",
59
+ "name": "assetSymbol"
60
+ },
61
+ {
62
+ "type": "string",
63
+ "name": "expiryDate"
64
+ },
65
+ {
66
+ "type": "uint256",
67
+ "name": "coverAmount"
68
+ },
69
+ {
70
+ "type": "uint256",
71
+ "name": "id"
72
+ },
73
+ {
74
+ "type": "uint256",
75
+ "name": "decimals"
76
+ }
77
+ ]
78
+ }
79
+ ]
80
+ },
81
+ {
82
+ "type": "function",
83
+ "name": "generateSVGImage",
84
+ "constant": true,
85
+ "stateMutability": "pure",
86
+ "payable": false,
87
+
88
+ "inputs": [
89
+ {
90
+ "type": "tuple",
91
+ "name": "descriptionData",
92
+ "components": [
93
+ {
94
+ "type": "string",
95
+ "name": "productName"
96
+ },
97
+ {
98
+ "type": "string",
99
+ "name": "assetSymbol"
100
+ },
101
+ {
102
+ "type": "string",
103
+ "name": "expiryDate"
104
+ },
105
+ {
106
+ "type": "uint256",
107
+ "name": "coverAmount"
108
+ },
109
+ {
110
+ "type": "uint256",
111
+ "name": "id"
112
+ },
113
+ {
114
+ "type": "uint256",
115
+ "name": "decimals"
116
+ }
117
+ ]
118
+ }
119
+ ],
120
+ "outputs": [
121
+ {
122
+ "type": "bytes",
123
+ "name": "image"
124
+ }
125
+ ]
126
+ },
127
+ {
128
+ "type": "function",
129
+ "name": "getAssetDecimals",
130
+ "constant": true,
131
+ "stateMutability": "view",
132
+ "payable": false,
133
+
134
+ "inputs": [
135
+ {
136
+ "type": "uint256",
137
+ "name": "assetId"
138
+ }
139
+ ],
140
+ "outputs": [
141
+ {
142
+ "type": "uint256",
143
+ "name": "decimals"
144
+ }
145
+ ]
146
+ },
147
+ {
148
+ "type": "function",
149
+ "name": "getAssetSymbol",
150
+ "constant": true,
151
+ "stateMutability": "view",
152
+ "payable": false,
153
+
154
+ "inputs": [
155
+ {
156
+ "type": "uint256",
157
+ "name": "assetId"
158
+ }
159
+ ],
160
+ "outputs": [
161
+ {
162
+ "type": "string",
163
+ "name": "assetSymbol"
164
+ }
165
+ ]
166
+ },
167
+ {
168
+ "type": "function",
169
+ "name": "master",
170
+ "constant": true,
171
+ "stateMutability": "view",
172
+ "payable": false,
173
+
174
+ "inputs": [],
175
+ "outputs": [
176
+ {
177
+ "type": "address"
178
+ }
179
+ ]
180
+ },
181
+ {
182
+ "type": "function",
183
+ "name": "tokenURI",
184
+ "constant": true,
185
+ "stateMutability": "view",
186
+ "payable": false,
187
+
188
+ "inputs": [
189
+ {
190
+ "type": "uint256",
191
+ "name": "tokenId"
192
+ }
193
+ ],
194
+ "outputs": [
195
+ {
196
+ "type": "string"
197
+ }
198
+ ]
199
+ }
200
+ ]
@@ -0,0 +1,124 @@
1
+ [
2
+ {
3
+ "type": "constructor",
4
+ "payable": false,
5
+ "inputs": [
6
+ {
7
+ "type": "address",
8
+ "name": "masterAddress"
9
+ }
10
+ ]
11
+ },
12
+ {
13
+ "type": "function",
14
+ "name": "getCoverSegments",
15
+ "constant": true,
16
+ "stateMutability": "view",
17
+ "payable": false,
18
+
19
+ "inputs": [
20
+ {
21
+ "type": "uint256",
22
+ "name": "coverId"
23
+ }
24
+ ],
25
+ "outputs": [
26
+ {
27
+ "type": "tuple[]",
28
+ "components": [
29
+ {
30
+ "type": "uint256",
31
+ "name": "segmentId"
32
+ },
33
+ {
34
+ "type": "uint256",
35
+ "name": "amount"
36
+ },
37
+ {
38
+ "type": "uint256",
39
+ "name": "remainingAmount"
40
+ },
41
+ {
42
+ "type": "uint256",
43
+ "name": "start"
44
+ },
45
+ {
46
+ "type": "uint256",
47
+ "name": "period"
48
+ },
49
+ {
50
+ "type": "uint256",
51
+ "name": "gracePeriod"
52
+ }
53
+ ]
54
+ }
55
+ ]
56
+ },
57
+ {
58
+ "type": "function",
59
+ "name": "getCovers",
60
+ "constant": true,
61
+ "stateMutability": "view",
62
+ "payable": false,
63
+
64
+ "inputs": [
65
+ {
66
+ "type": "uint256[]",
67
+ "name": "coverIds"
68
+ }
69
+ ],
70
+ "outputs": [
71
+ {
72
+ "type": "tuple[]",
73
+ "components": [
74
+ {
75
+ "type": "uint256",
76
+ "name": "coverId"
77
+ },
78
+ {
79
+ "type": "uint256",
80
+ "name": "productId"
81
+ },
82
+ {
83
+ "type": "uint256",
84
+ "name": "coverAsset"
85
+ },
86
+ {
87
+ "type": "uint256",
88
+ "name": "amountPaidOut"
89
+ },
90
+ {
91
+ "type": "tuple[]",
92
+ "name": "segments",
93
+ "components": [
94
+ {
95
+ "type": "uint256",
96
+ "name": "segmentId"
97
+ },
98
+ {
99
+ "type": "uint256",
100
+ "name": "amount"
101
+ },
102
+ {
103
+ "type": "uint256",
104
+ "name": "remainingAmount"
105
+ },
106
+ {
107
+ "type": "uint256",
108
+ "name": "start"
109
+ },
110
+ {
111
+ "type": "uint256",
112
+ "name": "period"
113
+ },
114
+ {
115
+ "type": "uint256",
116
+ "name": "gracePeriod"
117
+ }
118
+ ]
119
+ }
120
+ ]
121
+ }
122
+ ]
123
+ }
124
+ ]
@@ -0,0 +1,58 @@
1
+ [
2
+ {
3
+ "type": "function",
4
+ "name": "decimals",
5
+ "constant": true,
6
+ "stateMutability": "view",
7
+ "payable": false,
8
+
9
+ "inputs": [],
10
+ "outputs": [
11
+ {
12
+ "type": "uint256"
13
+ }
14
+ ]
15
+ },
16
+ {
17
+ "type": "function",
18
+ "name": "latestAnswer",
19
+ "constant": true,
20
+ "stateMutability": "view",
21
+ "payable": false,
22
+
23
+ "inputs": [],
24
+ "outputs": [
25
+ {
26
+ "type": "uint256"
27
+ }
28
+ ]
29
+ },
30
+ {
31
+ "type": "function",
32
+ "name": "setDecimals",
33
+ "constant": false,
34
+ "payable": false,
35
+
36
+ "inputs": [
37
+ {
38
+ "type": "uint256",
39
+ "name": "_decimals"
40
+ }
41
+ ],
42
+ "outputs": []
43
+ },
44
+ {
45
+ "type": "function",
46
+ "name": "setLatestAnswer",
47
+ "constant": false,
48
+ "payable": false,
49
+
50
+ "inputs": [
51
+ {
52
+ "type": "uint256",
53
+ "name": "_latestAnswer"
54
+ }
55
+ ],
56
+ "outputs": []
57
+ }
58
+ ]