@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,222 @@
1
+ [
2
+ {
3
+ "type": "function",
4
+ "name": "MAX_ACTIVE_TRANCHES",
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": "NXM_DECIMALS",
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": "ONE_NXM",
33
+ "constant": true,
34
+ "stateMutability": "view",
35
+ "payable": false,
36
+
37
+ "inputs": [],
38
+ "outputs": [
39
+ {
40
+ "type": "uint256"
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "type": "function",
46
+ "name": "TRANCHE_DURATION",
47
+ "constant": true,
48
+ "stateMutability": "view",
49
+ "payable": false,
50
+
51
+ "inputs": [],
52
+ "outputs": [
53
+ {
54
+ "type": "uint256"
55
+ }
56
+ ]
57
+ },
58
+ {
59
+ "type": "function",
60
+ "name": "addZeroPrefix",
61
+ "constant": true,
62
+ "stateMutability": "pure",
63
+ "payable": false,
64
+
65
+ "inputs": [
66
+ {
67
+ "type": "uint256",
68
+ "name": "value"
69
+ }
70
+ ],
71
+ "outputs": [
72
+ {
73
+ "type": "string"
74
+ }
75
+ ]
76
+ },
77
+ {
78
+ "type": "function",
79
+ "name": "buildDescription",
80
+ "constant": true,
81
+ "stateMutability": "view",
82
+ "payable": false,
83
+
84
+ "inputs": [
85
+ {
86
+ "type": "uint256",
87
+ "name": "tokenId"
88
+ }
89
+ ],
90
+ "outputs": [
91
+ {
92
+ "type": "string",
93
+ "name": "description"
94
+ },
95
+ {
96
+ "type": "tuple",
97
+ "name": "stakeData",
98
+ "components": [
99
+ {
100
+ "type": "uint256",
101
+ "name": "poolId"
102
+ },
103
+ {
104
+ "type": "uint256",
105
+ "name": "stakeAmount"
106
+ },
107
+ {
108
+ "type": "uint256",
109
+ "name": "tokenId"
110
+ }
111
+ ]
112
+ }
113
+ ]
114
+ },
115
+ {
116
+ "type": "function",
117
+ "name": "generateSVGImage",
118
+ "constant": true,
119
+ "stateMutability": "pure",
120
+ "payable": false,
121
+
122
+ "inputs": [
123
+ {
124
+ "type": "tuple",
125
+ "name": "stakeDescription",
126
+ "components": [
127
+ {
128
+ "type": "uint256",
129
+ "name": "poolId"
130
+ },
131
+ {
132
+ "type": "uint256",
133
+ "name": "stakeAmount"
134
+ },
135
+ {
136
+ "type": "uint256",
137
+ "name": "tokenId"
138
+ }
139
+ ]
140
+ }
141
+ ],
142
+ "outputs": [
143
+ {
144
+ "type": "bytes"
145
+ }
146
+ ]
147
+ },
148
+ {
149
+ "type": "function",
150
+ "name": "getActiveDeposits",
151
+ "constant": true,
152
+ "stateMutability": "view",
153
+ "payable": false,
154
+
155
+ "inputs": [
156
+ {
157
+ "type": "uint256",
158
+ "name": "tokenId"
159
+ },
160
+ {
161
+ "type": "address",
162
+ "name": "stakingPool"
163
+ }
164
+ ],
165
+ "outputs": [
166
+ {
167
+ "type": "string",
168
+ "name": "depositInfo"
169
+ },
170
+ {
171
+ "type": "uint256",
172
+ "name": "totalStake"
173
+ },
174
+ {
175
+ "type": "uint256",
176
+ "name": "pendingRewards"
177
+ }
178
+ ]
179
+ },
180
+ {
181
+ "type": "function",
182
+ "name": "toFloat",
183
+ "constant": true,
184
+ "stateMutability": "pure",
185
+ "payable": false,
186
+
187
+ "inputs": [
188
+ {
189
+ "type": "uint256",
190
+ "name": "number"
191
+ },
192
+ {
193
+ "type": "uint256",
194
+ "name": "decimals"
195
+ }
196
+ ],
197
+ "outputs": [
198
+ {
199
+ "type": "string"
200
+ }
201
+ ]
202
+ },
203
+ {
204
+ "type": "function",
205
+ "name": "tokenURI",
206
+ "constant": true,
207
+ "stateMutability": "view",
208
+ "payable": false,
209
+
210
+ "inputs": [
211
+ {
212
+ "type": "uint256",
213
+ "name": "tokenId"
214
+ }
215
+ ],
216
+ "outputs": [
217
+ {
218
+ "type": "string"
219
+ }
220
+ ]
221
+ }
222
+ ]