@ensuro/core 2.8.0 → 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 (52) 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/contracts/Policy.sol +58 -21
  41. package/contracts/PolicyPool.sol +155 -37
  42. package/contracts/PolicyPoolComponent.sol +5 -2
  43. package/contracts/RiskModule.sol +27 -30
  44. package/contracts/SignedBucketRiskModule.sol +32 -95
  45. package/contracts/SignedQuoteRiskModule.sol +3 -1
  46. package/contracts/interfaces/IPolicyHolder.sol +2 -2
  47. package/contracts/interfaces/IPolicyHolderV2.sol +29 -0
  48. package/contracts/mocks/PolicyHolderMock.sol +71 -10
  49. package/js/deploy.js +6 -25
  50. package/js/utils.js +9 -4
  51. package/package.json +3 -5
  52. package/contracts/TieredSignedQuoteRiskModule.sol +0 -159
@@ -0,0 +1,43 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "ForwardProxy",
4
+ "sourceName": "contracts/mocks/ForwardProxy.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "address",
10
+ "name": "forwardTo",
11
+ "type": "address"
12
+ }
13
+ ],
14
+ "stateMutability": "nonpayable",
15
+ "type": "constructor"
16
+ },
17
+ {
18
+ "stateMutability": "payable",
19
+ "type": "fallback"
20
+ },
21
+ {
22
+ "inputs": [
23
+ {
24
+ "internalType": "address",
25
+ "name": "forwardTo",
26
+ "type": "address"
27
+ }
28
+ ],
29
+ "name": "setForwardTo",
30
+ "outputs": [],
31
+ "stateMutability": "nonpayable",
32
+ "type": "function"
33
+ },
34
+ {
35
+ "stateMutability": "payable",
36
+ "type": "receive"
37
+ }
38
+ ],
39
+ "bytecode": "0x608060405234801561001057600080fd5b5060405161019e38038061019e83398101604081905261002f91610054565b600080546001600160a01b0319166001600160a01b0392909216919091179055610084565b60006020828403121561006657600080fd5b81516001600160a01b038116811461007d57600080fd5b9392505050565b61010b806100936000396000f3fe608060405260043610601f5760003560e01c8063d4b2700114603157602b565b36602b576029606a565b005b6029606a565b348015603c57600080fd5b506029604836600460a7565b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6081607d6000546001600160a01b031690565b6083565b565b366000803760008036600080855af13d6000803e80801560a2573d6000f35b3d6000fd5b60006020828403121560b857600080fd5b81356001600160a01b038116811460ce57600080fd5b939250505056fea2646970667358221220d7cd5d6e725ae02651579cc21dba8ff3f04a77126dd52fb48cbbc0f34dface1b64736f6c63430008100033",
40
+ "deployedBytecode": "0x608060405260043610601f5760003560e01c8063d4b2700114603157602b565b36602b576029606a565b005b6029606a565b348015603c57600080fd5b506029604836600460a7565b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6081607d6000546001600160a01b031690565b6083565b565b366000803760008036600080855af13d6000803e80801560a2573d6000f35b3d6000fd5b60006020828403121560b857600080fd5b81356001600160a01b038116811460ce57600080fd5b939250505056fea2646970667358221220d7cd5d6e725ae02651579cc21dba8ff3f04a77126dd52fb48cbbc0f34dface1b64736f6c63430008100033",
41
+ "linkReferences": {},
42
+ "deployedLinkReferences": {}
43
+ }
@@ -0,0 +1,47 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IMintableERC20",
4
+ "sourceName": "contracts/mocks/IMintableERC20.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "address",
10
+ "name": "recipient",
11
+ "type": "address"
12
+ },
13
+ {
14
+ "internalType": "uint256",
15
+ "name": "amount",
16
+ "type": "uint256"
17
+ }
18
+ ],
19
+ "name": "burn",
20
+ "outputs": [],
21
+ "stateMutability": "nonpayable",
22
+ "type": "function"
23
+ },
24
+ {
25
+ "inputs": [
26
+ {
27
+ "internalType": "address",
28
+ "name": "recipient",
29
+ "type": "address"
30
+ },
31
+ {
32
+ "internalType": "uint256",
33
+ "name": "amount",
34
+ "type": "uint256"
35
+ }
36
+ ],
37
+ "name": "mint",
38
+ "outputs": [],
39
+ "stateMutability": "nonpayable",
40
+ "type": "function"
41
+ }
42
+ ],
43
+ "bytecode": "0x",
44
+ "deployedBytecode": "0x",
45
+ "linkReferences": {},
46
+ "deployedLinkReferences": {}
47
+ }
@@ -0,0 +1,193 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "InterfaceIdCalculator",
4
+ "sourceName": "contracts/mocks/InterfaceIdCalculator.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [],
8
+ "name": "IACCESSCONTROL_INTERFACEID",
9
+ "outputs": [
10
+ {
11
+ "internalType": "bytes4",
12
+ "name": "",
13
+ "type": "bytes4"
14
+ }
15
+ ],
16
+ "stateMutability": "view",
17
+ "type": "function"
18
+ },
19
+ {
20
+ "inputs": [],
21
+ "name": "IACCESSMANAGER_INTERFACEID",
22
+ "outputs": [
23
+ {
24
+ "internalType": "bytes4",
25
+ "name": "",
26
+ "type": "bytes4"
27
+ }
28
+ ],
29
+ "stateMutability": "view",
30
+ "type": "function"
31
+ },
32
+ {
33
+ "inputs": [],
34
+ "name": "IASSETMANAGER_INTERFACEID",
35
+ "outputs": [
36
+ {
37
+ "internalType": "bytes4",
38
+ "name": "",
39
+ "type": "bytes4"
40
+ }
41
+ ],
42
+ "stateMutability": "view",
43
+ "type": "function"
44
+ },
45
+ {
46
+ "inputs": [],
47
+ "name": "IERC165_INTERFACEID",
48
+ "outputs": [
49
+ {
50
+ "internalType": "bytes4",
51
+ "name": "",
52
+ "type": "bytes4"
53
+ }
54
+ ],
55
+ "stateMutability": "view",
56
+ "type": "function"
57
+ },
58
+ {
59
+ "inputs": [],
60
+ "name": "IERC20METADATA_INTERFACEID",
61
+ "outputs": [
62
+ {
63
+ "internalType": "bytes4",
64
+ "name": "",
65
+ "type": "bytes4"
66
+ }
67
+ ],
68
+ "stateMutability": "view",
69
+ "type": "function"
70
+ },
71
+ {
72
+ "inputs": [],
73
+ "name": "IERC20_INTERFACEID",
74
+ "outputs": [
75
+ {
76
+ "internalType": "bytes4",
77
+ "name": "",
78
+ "type": "bytes4"
79
+ }
80
+ ],
81
+ "stateMutability": "view",
82
+ "type": "function"
83
+ },
84
+ {
85
+ "inputs": [],
86
+ "name": "IERC721_INTERFACEID",
87
+ "outputs": [
88
+ {
89
+ "internalType": "bytes4",
90
+ "name": "",
91
+ "type": "bytes4"
92
+ }
93
+ ],
94
+ "stateMutability": "view",
95
+ "type": "function"
96
+ },
97
+ {
98
+ "inputs": [],
99
+ "name": "IETOKEN_INTERFACEID",
100
+ "outputs": [
101
+ {
102
+ "internalType": "bytes4",
103
+ "name": "",
104
+ "type": "bytes4"
105
+ }
106
+ ],
107
+ "stateMutability": "view",
108
+ "type": "function"
109
+ },
110
+ {
111
+ "inputs": [],
112
+ "name": "ILPWHITELIST_INTERFACEID",
113
+ "outputs": [
114
+ {
115
+ "internalType": "bytes4",
116
+ "name": "",
117
+ "type": "bytes4"
118
+ }
119
+ ],
120
+ "stateMutability": "view",
121
+ "type": "function"
122
+ },
123
+ {
124
+ "inputs": [],
125
+ "name": "IPOLICYHOLDER_INTERFACEID",
126
+ "outputs": [
127
+ {
128
+ "internalType": "bytes4",
129
+ "name": "",
130
+ "type": "bytes4"
131
+ }
132
+ ],
133
+ "stateMutability": "view",
134
+ "type": "function"
135
+ },
136
+ {
137
+ "inputs": [],
138
+ "name": "IPOLICYPOOLCOMPONENT_INTERFACEID",
139
+ "outputs": [
140
+ {
141
+ "internalType": "bytes4",
142
+ "name": "",
143
+ "type": "bytes4"
144
+ }
145
+ ],
146
+ "stateMutability": "view",
147
+ "type": "function"
148
+ },
149
+ {
150
+ "inputs": [],
151
+ "name": "IPOLICYPOOL_INTERFACEID",
152
+ "outputs": [
153
+ {
154
+ "internalType": "bytes4",
155
+ "name": "",
156
+ "type": "bytes4"
157
+ }
158
+ ],
159
+ "stateMutability": "view",
160
+ "type": "function"
161
+ },
162
+ {
163
+ "inputs": [],
164
+ "name": "IPREMIUMSACCOUNT_INTERFACEID",
165
+ "outputs": [
166
+ {
167
+ "internalType": "bytes4",
168
+ "name": "",
169
+ "type": "bytes4"
170
+ }
171
+ ],
172
+ "stateMutability": "view",
173
+ "type": "function"
174
+ },
175
+ {
176
+ "inputs": [],
177
+ "name": "IRISKMODULE_INTERFACEID",
178
+ "outputs": [
179
+ {
180
+ "internalType": "bytes4",
181
+ "name": "",
182
+ "type": "bytes4"
183
+ }
184
+ ],
185
+ "stateMutability": "view",
186
+ "type": "function"
187
+ }
188
+ ],
189
+ "bytecode": "0x608060405234801561001057600080fd5b50610206806100206000396000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c80638b98dad01161008c578063a23a166111610066578063a23a166114610198578063a88ecaa2146101a6578063c1bd03a6146101b4578063fef87f0b146101c257600080fd5b80638b98dad01461016e578063933c234b1461017c57806396047c991461018a57600080fd5b8063731e0f7f116100c8578063731e0f7f146101365780637874bf9814610144578063800915a5146101525780638786bcbd1461016057600080fd5b806311f34418146100ef5780632bac8ca31461011a578063362466de14610128575b600080fd5b6100fd630e72532960e11b81565b6040516001600160e01b0319909116815260200160405180910390f35b6100fd63272b8c4760e01b81565b6100fd634d15eb0360e01b81565b6100fd63a219a02560e01b81565b6100fd639077062160e01b81565b6100fd63f8722d8960e01b81565b6100fd633ece0a8960e01b81565b6100fd63da40804f60e01b81565b6100fd637965db0b60e01b81565b6100fd6380ac58cd60e01b81565b6100fd6301ffc9a760e01b81565b6100fd631e670a9760e21b81565b6100fd6336372b0760e01b81565b6100fd63019c676f60e31b8156fea2646970667358221220414ebe670cc56489c80778c2e90f7eb329d55d990875d0b52bc150d6bdb413f464736f6c63430008100033",
190
+ "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100ea5760003560e01c80638b98dad01161008c578063a23a166111610066578063a23a166114610198578063a88ecaa2146101a6578063c1bd03a6146101b4578063fef87f0b146101c257600080fd5b80638b98dad01461016e578063933c234b1461017c57806396047c991461018a57600080fd5b8063731e0f7f116100c8578063731e0f7f146101365780637874bf9814610144578063800915a5146101525780638786bcbd1461016057600080fd5b806311f34418146100ef5780632bac8ca31461011a578063362466de14610128575b600080fd5b6100fd630e72532960e11b81565b6040516001600160e01b0319909116815260200160405180910390f35b6100fd63272b8c4760e01b81565b6100fd634d15eb0360e01b81565b6100fd63a219a02560e01b81565b6100fd639077062160e01b81565b6100fd63f8722d8960e01b81565b6100fd633ece0a8960e01b81565b6100fd63da40804f60e01b81565b6100fd637965db0b60e01b81565b6100fd6380ac58cd60e01b81565b6100fd6301ffc9a760e01b81565b6100fd631e670a9760e21b81565b6100fd6336372b0760e01b81565b6100fd63019c676f60e31b8156fea2646970667358221220414ebe670cc56489c80778c2e90f7eb329d55d990875d0b52bc150d6bdb413f464736f6c63430008100033",
191
+ "linkReferences": {},
192
+ "deployedLinkReferences": {}
193
+ }