@ensuro/core 2.8.3 → 2.9.0

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/README.md +2 -3
  2. package/build/contracts/AccessManager.sol/AccessManager.json +2 -15
  3. package/build/contracts/ERC4626AssetManager.sol/ERC4626AssetManager.json +2 -2
  4. package/build/contracts/ERC4626PlusVaultAssetManager.sol/ERC4626PlusVaultAssetManager.json +2 -2
  5. package/build/contracts/EToken.sol/EToken.json +7 -85
  6. package/build/contracts/FullSignedBucketRiskModule.sol/FullSignedBucketRiskModule.json +1484 -0
  7. package/build/contracts/LPManualWhitelist.sol/LPManualWhitelist.json +7 -85
  8. package/build/contracts/Policy.sol/Policy.json +2 -2
  9. package/build/contracts/PolicyPool.sol/PolicyPool.json +2 -15
  10. package/build/contracts/PolicyPoolComponent.sol/PolicyPoolComponent.json +5 -83
  11. package/build/contracts/PremiumsAccount.sol/PremiumsAccount.json +7 -85
  12. package/build/contracts/Reserve.sol/Reserve.json +5 -83
  13. package/build/contracts/RiskModule.sol/RiskModule.json +5 -96
  14. package/build/contracts/SignedBucketRiskModule.sol/SignedBucketRiskModule.json +7 -150
  15. package/build/contracts/SignedQuoteRiskModule.sol/SignedQuoteRiskModule.json +7 -98
  16. package/build/contracts/TimeScaled.sol/TimeScaled.json +2 -2
  17. package/build/contracts/TrustfulRiskModule.sol/TrustfulRiskModule.json +7 -98
  18. package/build/contracts/dependencies/WadRayMath.sol/WadRayMath.json +2 -2
  19. package/build/contracts/migration/LPManualWhitelistV20.sol/LPManualWhitelistV20.json +5 -83
  20. package/build/contracts/migration/LPManualWhitelistV20Upgraded.sol/LPManualWhitelistV20Upgraded.json +7 -85
  21. package/build/contracts/mocks/FixedRateVault.sol/FixedRateVault.json +2 -2
  22. package/build/contracts/mocks/ForwardProxy.sol/ForwardProxy.json +2 -2
  23. package/build/contracts/mocks/InterfaceIdCalculator.sol/InterfaceIdCalculator.json +2 -2
  24. package/build/contracts/mocks/PolicyHolderMock.sol/PolicyHolderMock.json +2 -2
  25. package/build/contracts/mocks/PolicyPoolComponentMock.sol/PolicyPoolComponentMock.json +2 -2
  26. package/build/contracts/mocks/PolicyPoolMock.sol/PolicyPoolMock.json +2 -2
  27. package/build/contracts/mocks/PolicyPoolMock.sol/PolicyPoolMockForward.json +2 -2
  28. package/build/contracts/mocks/RiskModuleMock.sol/RiskModuleMock.json +7 -98
  29. package/build/contracts/mocks/TestCurrency.sol/TestCurrency.json +2 -2
  30. package/build/contracts/mocks/TestNFT.sol/TestNFT.json +2 -2
  31. package/contracts/AccessManager.sol +0 -1
  32. package/contracts/EToken.sol +2 -20
  33. package/contracts/FullSignedBucketRiskModule.sol +204 -0
  34. package/contracts/PolicyPool.sol +0 -1
  35. package/contracts/PolicyPoolComponent.sol +7 -44
  36. package/contracts/PremiumsAccount.sol +3 -3
  37. package/contracts/RiskModule.sol +10 -21
  38. package/contracts/SignedBucketRiskModule.sol +15 -9
  39. package/contracts/SignedQuoteRiskModule.sol +7 -4
  40. package/js/test-utils.js +1 -2
  41. package/js/utils.js +65 -0
  42. package/package.json +1 -1
  43. package/scripts/deploySmokeTest-fork.sh +1 -1
  44. package/scripts/deploySmokeTest.sh +1 -1
@@ -18,6 +18,11 @@
18
18
  "name": "NoZeroWallet",
19
19
  "type": "error"
20
20
  },
21
+ {
22
+ "inputs": [],
23
+ "name": "OnlyPolicyPool",
24
+ "type": "error"
25
+ },
21
26
  {
22
27
  "inputs": [],
23
28
  "name": "PremiumsAccountMustBePartOfThePool",
@@ -155,84 +160,6 @@
155
160
  "name": "Upgraded",
156
161
  "type": "event"
157
162
  },
158
- {
159
- "inputs": [],
160
- "name": "GUARDIAN_ROLE",
161
- "outputs": [
162
- {
163
- "internalType": "bytes32",
164
- "name": "",
165
- "type": "bytes32"
166
- }
167
- ],
168
- "stateMutability": "view",
169
- "type": "function"
170
- },
171
- {
172
- "inputs": [],
173
- "name": "LEVEL1_ROLE",
174
- "outputs": [
175
- {
176
- "internalType": "bytes32",
177
- "name": "",
178
- "type": "bytes32"
179
- }
180
- ],
181
- "stateMutability": "view",
182
- "type": "function"
183
- },
184
- {
185
- "inputs": [],
186
- "name": "LEVEL2_ROLE",
187
- "outputs": [
188
- {
189
- "internalType": "bytes32",
190
- "name": "",
191
- "type": "bytes32"
192
- }
193
- ],
194
- "stateMutability": "view",
195
- "type": "function"
196
- },
197
- {
198
- "inputs": [],
199
- "name": "LEVEL3_ROLE",
200
- "outputs": [
201
- {
202
- "internalType": "bytes32",
203
- "name": "",
204
- "type": "bytes32"
205
- }
206
- ],
207
- "stateMutability": "view",
208
- "type": "function"
209
- },
210
- {
211
- "inputs": [],
212
- "name": "RM_PROVIDER_ROLE",
213
- "outputs": [
214
- {
215
- "internalType": "bytes32",
216
- "name": "",
217
- "type": "bytes32"
218
- }
219
- ],
220
- "stateMutability": "view",
221
- "type": "function"
222
- },
223
- {
224
- "inputs": [],
225
- "name": "TWEAK_EXPIRATION",
226
- "outputs": [
227
- {
228
- "internalType": "uint40",
229
- "name": "",
230
- "type": "uint40"
231
- }
232
- ],
233
- "stateMutability": "view",
234
- "type": "function"
235
- },
236
163
  {
237
164
  "inputs": [],
238
165
  "name": "activeExposure",
@@ -301,24 +228,6 @@
301
228
  "stateMutability": "view",
302
229
  "type": "function"
303
230
  },
304
- {
305
- "inputs": [],
306
- "name": "lastTweak",
307
- "outputs": [
308
- {
309
- "internalType": "uint40",
310
- "name": "",
311
- "type": "uint40"
312
- },
313
- {
314
- "internalType": "uint56",
315
- "name": "",
316
- "type": "uint56"
317
- }
318
- ],
319
- "stateMutability": "view",
320
- "type": "function"
321
- },
322
231
  {
323
232
  "inputs": [],
324
233
  "name": "maxDuration",