@ensuro/core 2.8.1 → 2.8.2

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 (41) hide show
  1. package/build/contracts/AccessManager.sol/AccessManager.json +618 -0
  2. package/build/contracts/ERC4626AssetManager.sol/ERC4626AssetManager.json +238 -0
  3. package/build/contracts/EToken.sol/EToken.json +1287 -0
  4. package/build/contracts/LPManualWhitelist.sol/LPManualWhitelist.json +657 -0
  5. package/build/contracts/LiquidityThresholdAssetManager.sol/LiquidityThresholdAssetManager.json +222 -0
  6. package/build/contracts/Policy.sol/Policy.json +10 -0
  7. package/build/contracts/PolicyPool.sol/PolicyPool.json +1775 -0
  8. package/build/contracts/PolicyPoolComponent.sol/PolicyPoolComponent.json +342 -0
  9. package/build/contracts/PremiumsAccount.sol/PremiumsAccount.json +1142 -0
  10. package/build/contracts/Reserve.sol/Reserve.json +413 -0
  11. package/build/contracts/RiskModule.sol/RiskModule.json +589 -0
  12. package/build/contracts/SignedBucketRiskModule.sol/SignedBucketRiskModule.json +1251 -0
  13. package/build/contracts/SignedQuoteRiskModule.sol/SignedQuoteRiskModule.json +1145 -0
  14. package/build/contracts/TimeScaled.sol/TimeScaled.json +10 -0
  15. package/build/contracts/TrustfulRiskModule.sol/TrustfulRiskModule.json +1143 -0
  16. package/build/contracts/dependencies/WadRayMath.sol/WadRayMath.json +10 -0
  17. package/build/contracts/interfaces/IAccessManager.sol/IAccessManager.json +343 -0
  18. package/build/contracts/interfaces/IAssetManager.sol/IAssetManager.json +128 -0
  19. package/build/contracts/interfaces/IEToken.sol/IEToken.json +460 -0
  20. package/build/contracts/interfaces/ILPWhitelist.sol/ILPWhitelist.json +103 -0
  21. package/build/contracts/interfaces/IPolicyHolder.sol/IPolicyHolder.json +108 -0
  22. package/build/contracts/interfaces/IPolicyHolderV2.sol/IPolicyHolderV2.json +142 -0
  23. package/build/contracts/interfaces/IPolicyPool.sol/IPolicyPool.json +820 -0
  24. package/build/contracts/interfaces/IPolicyPoolComponent.sol/IPolicyPoolComponent.json +43 -0
  25. package/build/contracts/interfaces/IPremiumsAccount.sol/IPremiumsAccount.json +477 -0
  26. package/build/contracts/interfaces/IRiskModule.sol/IRiskModule.json +165 -0
  27. package/build/contracts/migration/LPManualWhitelistV20.sol/LPManualWhitelistV20.json +491 -0
  28. package/build/contracts/migration/LPManualWhitelistV20Upgraded.sol/LPManualWhitelistV20Upgraded.json +502 -0
  29. package/build/contracts/mocks/FixedRateVault.sol/FixedRateVault.json +736 -0
  30. package/build/contracts/mocks/ForwardProxy.sol/ForwardProxy.json +43 -0
  31. package/build/contracts/mocks/IMintableERC20.sol/IMintableERC20.json +47 -0
  32. package/build/contracts/mocks/InterfaceIdCalculator.sol/InterfaceIdCalculator.json +193 -0
  33. package/build/contracts/mocks/PolicyHolderMock.sol/PolicyHolderMock.json +457 -0
  34. package/build/contracts/mocks/PolicyPoolComponentMock.sol/PolicyPoolComponentMock.json +54 -0
  35. package/build/contracts/mocks/PolicyPoolMock.sol/PolicyPoolMock.json +929 -0
  36. package/build/contracts/mocks/PolicyPoolMock.sol/PolicyPoolMockForward.json +92 -0
  37. package/build/contracts/mocks/RiskModuleMock.sol/RiskModuleMock.json +1316 -0
  38. package/build/contracts/mocks/TestCurrency.sol/TestCurrency.json +343 -0
  39. package/build/contracts/mocks/TestNFT.sol/TestNFT.json +388 -0
  40. package/js/deploy.js +6 -25
  41. package/package.json +3 -5
@@ -0,0 +1,10 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "WadRayMath",
4
+ "sourceName": "contracts/dependencies/WadRayMath.sol",
5
+ "abi": [],
6
+ "bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212209480bd52c511457a77ed57ee796c4e2b40668f8c48e8bbc2e39267428ea9857264736f6c63430008100033",
7
+ "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212209480bd52c511457a77ed57ee796c4e2b40668f8c48e8bbc2e39267428ea9857264736f6c63430008100033",
8
+ "linkReferences": {},
9
+ "deployedLinkReferences": {}
10
+ }
@@ -0,0 +1,343 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IAccessManager",
4
+ "sourceName": "contracts/interfaces/IAccessManager.sol",
5
+ "abi": [
6
+ {
7
+ "anonymous": false,
8
+ "inputs": [
9
+ {
10
+ "indexed": true,
11
+ "internalType": "bytes32",
12
+ "name": "role",
13
+ "type": "bytes32"
14
+ },
15
+ {
16
+ "indexed": true,
17
+ "internalType": "bytes32",
18
+ "name": "previousAdminRole",
19
+ "type": "bytes32"
20
+ },
21
+ {
22
+ "indexed": true,
23
+ "internalType": "bytes32",
24
+ "name": "newAdminRole",
25
+ "type": "bytes32"
26
+ }
27
+ ],
28
+ "name": "RoleAdminChanged",
29
+ "type": "event"
30
+ },
31
+ {
32
+ "anonymous": false,
33
+ "inputs": [
34
+ {
35
+ "indexed": true,
36
+ "internalType": "bytes32",
37
+ "name": "role",
38
+ "type": "bytes32"
39
+ },
40
+ {
41
+ "indexed": true,
42
+ "internalType": "address",
43
+ "name": "account",
44
+ "type": "address"
45
+ },
46
+ {
47
+ "indexed": true,
48
+ "internalType": "address",
49
+ "name": "sender",
50
+ "type": "address"
51
+ }
52
+ ],
53
+ "name": "RoleGranted",
54
+ "type": "event"
55
+ },
56
+ {
57
+ "anonymous": false,
58
+ "inputs": [
59
+ {
60
+ "indexed": true,
61
+ "internalType": "bytes32",
62
+ "name": "role",
63
+ "type": "bytes32"
64
+ },
65
+ {
66
+ "indexed": true,
67
+ "internalType": "address",
68
+ "name": "account",
69
+ "type": "address"
70
+ },
71
+ {
72
+ "indexed": true,
73
+ "internalType": "address",
74
+ "name": "sender",
75
+ "type": "address"
76
+ }
77
+ ],
78
+ "name": "RoleRevoked",
79
+ "type": "event"
80
+ },
81
+ {
82
+ "inputs": [
83
+ {
84
+ "internalType": "address",
85
+ "name": "component",
86
+ "type": "address"
87
+ },
88
+ {
89
+ "internalType": "bytes32",
90
+ "name": "role",
91
+ "type": "bytes32"
92
+ },
93
+ {
94
+ "internalType": "address",
95
+ "name": "account",
96
+ "type": "address"
97
+ },
98
+ {
99
+ "internalType": "bool",
100
+ "name": "alsoGlobal",
101
+ "type": "bool"
102
+ }
103
+ ],
104
+ "name": "checkComponentRole",
105
+ "outputs": [],
106
+ "stateMutability": "view",
107
+ "type": "function"
108
+ },
109
+ {
110
+ "inputs": [
111
+ {
112
+ "internalType": "address",
113
+ "name": "component",
114
+ "type": "address"
115
+ },
116
+ {
117
+ "internalType": "bytes32",
118
+ "name": "role1",
119
+ "type": "bytes32"
120
+ },
121
+ {
122
+ "internalType": "bytes32",
123
+ "name": "role2",
124
+ "type": "bytes32"
125
+ },
126
+ {
127
+ "internalType": "address",
128
+ "name": "account",
129
+ "type": "address"
130
+ },
131
+ {
132
+ "internalType": "bool",
133
+ "name": "alsoGlobal",
134
+ "type": "bool"
135
+ }
136
+ ],
137
+ "name": "checkComponentRole2",
138
+ "outputs": [],
139
+ "stateMutability": "view",
140
+ "type": "function"
141
+ },
142
+ {
143
+ "inputs": [
144
+ {
145
+ "internalType": "bytes32",
146
+ "name": "role",
147
+ "type": "bytes32"
148
+ },
149
+ {
150
+ "internalType": "address",
151
+ "name": "account",
152
+ "type": "address"
153
+ }
154
+ ],
155
+ "name": "checkRole",
156
+ "outputs": [],
157
+ "stateMutability": "view",
158
+ "type": "function"
159
+ },
160
+ {
161
+ "inputs": [
162
+ {
163
+ "internalType": "bytes32",
164
+ "name": "role1",
165
+ "type": "bytes32"
166
+ },
167
+ {
168
+ "internalType": "bytes32",
169
+ "name": "role2",
170
+ "type": "bytes32"
171
+ },
172
+ {
173
+ "internalType": "address",
174
+ "name": "account",
175
+ "type": "address"
176
+ }
177
+ ],
178
+ "name": "checkRole2",
179
+ "outputs": [],
180
+ "stateMutability": "view",
181
+ "type": "function"
182
+ },
183
+ {
184
+ "inputs": [
185
+ {
186
+ "internalType": "address",
187
+ "name": "component",
188
+ "type": "address"
189
+ },
190
+ {
191
+ "internalType": "bytes32",
192
+ "name": "role",
193
+ "type": "bytes32"
194
+ }
195
+ ],
196
+ "name": "getComponentRole",
197
+ "outputs": [
198
+ {
199
+ "internalType": "bytes32",
200
+ "name": "",
201
+ "type": "bytes32"
202
+ }
203
+ ],
204
+ "stateMutability": "view",
205
+ "type": "function"
206
+ },
207
+ {
208
+ "inputs": [
209
+ {
210
+ "internalType": "bytes32",
211
+ "name": "role",
212
+ "type": "bytes32"
213
+ }
214
+ ],
215
+ "name": "getRoleAdmin",
216
+ "outputs": [
217
+ {
218
+ "internalType": "bytes32",
219
+ "name": "",
220
+ "type": "bytes32"
221
+ }
222
+ ],
223
+ "stateMutability": "view",
224
+ "type": "function"
225
+ },
226
+ {
227
+ "inputs": [
228
+ {
229
+ "internalType": "bytes32",
230
+ "name": "role",
231
+ "type": "bytes32"
232
+ },
233
+ {
234
+ "internalType": "address",
235
+ "name": "account",
236
+ "type": "address"
237
+ }
238
+ ],
239
+ "name": "grantRole",
240
+ "outputs": [],
241
+ "stateMutability": "nonpayable",
242
+ "type": "function"
243
+ },
244
+ {
245
+ "inputs": [
246
+ {
247
+ "internalType": "address",
248
+ "name": "component",
249
+ "type": "address"
250
+ },
251
+ {
252
+ "internalType": "bytes32",
253
+ "name": "role",
254
+ "type": "bytes32"
255
+ },
256
+ {
257
+ "internalType": "address",
258
+ "name": "account",
259
+ "type": "address"
260
+ },
261
+ {
262
+ "internalType": "bool",
263
+ "name": "alsoGlobal",
264
+ "type": "bool"
265
+ }
266
+ ],
267
+ "name": "hasComponentRole",
268
+ "outputs": [
269
+ {
270
+ "internalType": "bool",
271
+ "name": "",
272
+ "type": "bool"
273
+ }
274
+ ],
275
+ "stateMutability": "view",
276
+ "type": "function"
277
+ },
278
+ {
279
+ "inputs": [
280
+ {
281
+ "internalType": "bytes32",
282
+ "name": "role",
283
+ "type": "bytes32"
284
+ },
285
+ {
286
+ "internalType": "address",
287
+ "name": "account",
288
+ "type": "address"
289
+ }
290
+ ],
291
+ "name": "hasRole",
292
+ "outputs": [
293
+ {
294
+ "internalType": "bool",
295
+ "name": "",
296
+ "type": "bool"
297
+ }
298
+ ],
299
+ "stateMutability": "view",
300
+ "type": "function"
301
+ },
302
+ {
303
+ "inputs": [
304
+ {
305
+ "internalType": "bytes32",
306
+ "name": "role",
307
+ "type": "bytes32"
308
+ },
309
+ {
310
+ "internalType": "address",
311
+ "name": "account",
312
+ "type": "address"
313
+ }
314
+ ],
315
+ "name": "renounceRole",
316
+ "outputs": [],
317
+ "stateMutability": "nonpayable",
318
+ "type": "function"
319
+ },
320
+ {
321
+ "inputs": [
322
+ {
323
+ "internalType": "bytes32",
324
+ "name": "role",
325
+ "type": "bytes32"
326
+ },
327
+ {
328
+ "internalType": "address",
329
+ "name": "account",
330
+ "type": "address"
331
+ }
332
+ ],
333
+ "name": "revokeRole",
334
+ "outputs": [],
335
+ "stateMutability": "nonpayable",
336
+ "type": "function"
337
+ }
338
+ ],
339
+ "bytecode": "0x",
340
+ "deployedBytecode": "0x",
341
+ "linkReferences": {},
342
+ "deployedLinkReferences": {}
343
+ }
@@ -0,0 +1,128 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IAssetManager",
4
+ "sourceName": "contracts/interfaces/IAssetManager.sol",
5
+ "abi": [
6
+ {
7
+ "anonymous": false,
8
+ "inputs": [
9
+ {
10
+ "indexed": false,
11
+ "internalType": "int256",
12
+ "name": "earnings",
13
+ "type": "int256"
14
+ }
15
+ ],
16
+ "name": "EarningsRecorded",
17
+ "type": "event"
18
+ },
19
+ {
20
+ "anonymous": false,
21
+ "inputs": [
22
+ {
23
+ "indexed": false,
24
+ "internalType": "uint256",
25
+ "name": "amount",
26
+ "type": "uint256"
27
+ }
28
+ ],
29
+ "name": "MoneyDeinvested",
30
+ "type": "event"
31
+ },
32
+ {
33
+ "anonymous": false,
34
+ "inputs": [
35
+ {
36
+ "indexed": false,
37
+ "internalType": "uint256",
38
+ "name": "amount",
39
+ "type": "uint256"
40
+ }
41
+ ],
42
+ "name": "MoneyInvested",
43
+ "type": "event"
44
+ },
45
+ {
46
+ "inputs": [],
47
+ "name": "connect",
48
+ "outputs": [],
49
+ "stateMutability": "nonpayable",
50
+ "type": "function"
51
+ },
52
+ {
53
+ "inputs": [],
54
+ "name": "deinvestAll",
55
+ "outputs": [
56
+ {
57
+ "internalType": "int256",
58
+ "name": "",
59
+ "type": "int256"
60
+ }
61
+ ],
62
+ "stateMutability": "nonpayable",
63
+ "type": "function"
64
+ },
65
+ {
66
+ "inputs": [],
67
+ "name": "rebalance",
68
+ "outputs": [],
69
+ "stateMutability": "nonpayable",
70
+ "type": "function"
71
+ },
72
+ {
73
+ "inputs": [],
74
+ "name": "recordEarnings",
75
+ "outputs": [
76
+ {
77
+ "internalType": "int256",
78
+ "name": "",
79
+ "type": "int256"
80
+ }
81
+ ],
82
+ "stateMutability": "nonpayable",
83
+ "type": "function"
84
+ },
85
+ {
86
+ "inputs": [
87
+ {
88
+ "internalType": "uint256",
89
+ "name": "paymentAmount",
90
+ "type": "uint256"
91
+ }
92
+ ],
93
+ "name": "refillWallet",
94
+ "outputs": [
95
+ {
96
+ "internalType": "uint256",
97
+ "name": "",
98
+ "type": "uint256"
99
+ }
100
+ ],
101
+ "stateMutability": "nonpayable",
102
+ "type": "function"
103
+ },
104
+ {
105
+ "inputs": [
106
+ {
107
+ "internalType": "bytes4",
108
+ "name": "interfaceId",
109
+ "type": "bytes4"
110
+ }
111
+ ],
112
+ "name": "supportsInterface",
113
+ "outputs": [
114
+ {
115
+ "internalType": "bool",
116
+ "name": "",
117
+ "type": "bool"
118
+ }
119
+ ],
120
+ "stateMutability": "view",
121
+ "type": "function"
122
+ }
123
+ ],
124
+ "bytecode": "0x",
125
+ "deployedBytecode": "0x",
126
+ "linkReferences": {},
127
+ "deployedLinkReferences": {}
128
+ }