@ensuro/core 2.7.0 → 2.8.0-beta1

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 (77) hide show
  1. package/README.md +11 -5
  2. package/contracts/AccessManager.sol +3 -13
  3. package/contracts/EToken.sol +29 -95
  4. package/contracts/LPManualWhitelist.sol +11 -26
  5. package/contracts/LiquidityThresholdAssetManager.sol +10 -21
  6. package/contracts/Policy.sol +6 -17
  7. package/contracts/PolicyPool.sol +23 -75
  8. package/contracts/PolicyPoolComponent.sol +9 -32
  9. package/contracts/PremiumsAccount.sol +16 -47
  10. package/contracts/Reserve.sol +10 -16
  11. package/contracts/RiskModule.sol +22 -80
  12. package/contracts/SignedBucketRiskModule.sol +18 -80
  13. package/contracts/SignedQuoteRiskModule.sol +13 -44
  14. package/contracts/TieredSignedQuoteRiskModule.sol +7 -13
  15. package/contracts/TimeScaled.sol +8 -39
  16. package/contracts/TrustfulRiskModule.sol +13 -48
  17. package/contracts/interfaces/IAccessManager.sol +2 -11
  18. package/contracts/interfaces/IEToken.sol +1 -5
  19. package/contracts/interfaces/ILPWhitelist.sol +2 -10
  20. package/contracts/interfaces/IPolicyHolder.sol +2 -11
  21. package/contracts/interfaces/IPremiumsAccount.sol +1 -5
  22. package/contracts/migration/LPManualWhitelistV20.sol +3 -15
  23. package/contracts/migration/LPManualWhitelistV20Upgraded.sol +1 -5
  24. package/contracts/mocks/FixedRateVault.sol +1 -6
  25. package/contracts/mocks/PolicyHolderMock.sol +3 -13
  26. package/contracts/mocks/PolicyPoolComponentMock.sol +1 -3
  27. package/contracts/mocks/PolicyPoolMock.sol +8 -28
  28. package/contracts/mocks/RiskModuleMock.sol +3 -16
  29. package/contracts/mocks/TestNFT.sol +1 -1
  30. package/js/deploy.js +44 -39
  31. package/js/test-utils.js +30 -19
  32. package/js/utils.js +62 -29
  33. package/package.json +1 -1
  34. package/scripts/utils.sh +23 -12
  35. package/build/contracts/AccessManager.sol/AccessManager.json +0 -618
  36. package/build/contracts/ERC4626AssetManager.sol/ERC4626AssetManager.json +0 -238
  37. package/build/contracts/EToken.sol/EToken.json +0 -1277
  38. package/build/contracts/LPManualWhitelist.sol/LPManualWhitelist.json +0 -647
  39. package/build/contracts/LiquidityThresholdAssetManager.sol/LiquidityThresholdAssetManager.json +0 -222
  40. package/build/contracts/Policy.sol/Policy.json +0 -10
  41. package/build/contracts/PolicyPool.sol/PolicyPool.json +0 -1416
  42. package/build/contracts/PolicyPoolComponent.sol/PolicyPoolComponent.json +0 -332
  43. package/build/contracts/PremiumsAccount.sol/PremiumsAccount.json +0 -970
  44. package/build/contracts/Reserve.sol/Reserve.json +0 -403
  45. package/build/contracts/RiskModule.sol/RiskModule.json +0 -559
  46. package/build/contracts/SignedBucketRiskModule.sol/SignedBucketRiskModule.json +0 -1262
  47. package/build/contracts/SignedQuoteRiskModule.sol/SignedQuoteRiskModule.json +0 -1110
  48. package/build/contracts/TieredSignedQuoteRiskModule.sol/TieredSignedQuoteRiskModule.json +0 -1316
  49. package/build/contracts/TimeScaled.sol/TimeScaled.json +0 -10
  50. package/build/contracts/TrustfulRiskModule.sol/TrustfulRiskModule.json +0 -984
  51. package/build/contracts/dependencies/ERC1967Proxy.sol/ERC1967Proxy.json +0 -64
  52. package/build/contracts/dependencies/IERC20Metadata.sol/IERC20Metadata.json +0 -233
  53. package/build/contracts/dependencies/WadRayMath.sol/WadRayMath.json +0 -10
  54. package/build/contracts/interfaces/IAccessManager.sol/IAccessManager.json +0 -343
  55. package/build/contracts/interfaces/IAssetManager.sol/IAssetManager.json +0 -128
  56. package/build/contracts/interfaces/IEToken.sol/IEToken.json +0 -460
  57. package/build/contracts/interfaces/ILPWhitelist.sol/ILPWhitelist.json +0 -103
  58. package/build/contracts/interfaces/IPolicyHolder.sol/IPolicyHolder.json +0 -108
  59. package/build/contracts/interfaces/IPolicyPool.sol/IPolicyPool.json +0 -501
  60. package/build/contracts/interfaces/IPolicyPoolComponent.sol/IPolicyPoolComponent.json +0 -43
  61. package/build/contracts/interfaces/IPremiumsAccount.sol/IPremiumsAccount.json +0 -315
  62. package/build/contracts/interfaces/IRiskModule.sol/IRiskModule.json +0 -165
  63. package/build/contracts/migration/LPManualWhitelistV20.sol/LPManualWhitelistV20.json +0 -481
  64. package/build/contracts/migration/LPManualWhitelistV20Upgraded.sol/LPManualWhitelistV20Upgraded.json +0 -492
  65. package/build/contracts/mocks/FixedRateVault.sol/FixedRateVault.json +0 -736
  66. package/build/contracts/mocks/ForwardProxy.sol/ForwardProxy.json +0 -43
  67. package/build/contracts/mocks/IMintableERC20.sol/IMintableERC20.json +0 -47
  68. package/build/contracts/mocks/InterfaceIdCalculator.sol/InterfaceIdCalculator.json +0 -180
  69. package/build/contracts/mocks/PolicyHolderMock.sol/PolicyHolderMock.json +0 -319
  70. package/build/contracts/mocks/PolicyPoolComponentMock.sol/PolicyPoolComponentMock.json +0 -54
  71. package/build/contracts/mocks/PolicyPoolMock.sol/PolicyPoolMock.json +0 -721
  72. package/build/contracts/mocks/PolicyPoolMock.sol/PolicyPoolMockForward.json +0 -92
  73. package/build/contracts/mocks/RiskModuleMock.sol/RiskModuleMock.json +0 -783
  74. package/build/contracts/mocks/TestCurrency.sol/TestCurrency.json +0 -343
  75. package/build/contracts/mocks/TestNFT.sol/TestNFT.json +0 -388
  76. package/contracts/dependencies/ERC1967Proxy.sol +0 -19
  77. package/contracts/dependencies/IERC20Metadata.sol +0 -19
@@ -1,43 +0,0 @@
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
- }
@@ -1,47 +0,0 @@
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
- }
@@ -1,180 +0,0 @@
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": "IPOLICYPOOLCOMPONENT_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": "IPOLICYPOOL_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": "IPREMIUMSACCOUNT_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": "IRISKMODULE_INTERFACEID",
165
- "outputs": [
166
- {
167
- "internalType": "bytes4",
168
- "name": "",
169
- "type": "bytes4"
170
- }
171
- ],
172
- "stateMutability": "view",
173
- "type": "function"
174
- }
175
- ],
176
- "bytecode": "0x608060405234801561001057600080fd5b506101dd806100206000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c80638b98dad01161008c578063a23a166111610066578063a23a16611461016f578063a88ecaa21461017d578063c1bd03a61461018b578063fef87f0b1461019957600080fd5b80638b98dad014610145578063933c234b1461015357806396047c991461016157600080fd5b806311f34418146100d45780632bac8ca3146100ff578063362466de1461010d578063731e0f7f1461011b5780637874bf9814610129578063800915a514610137575b600080fd5b6100e2632dd9c4bb60e21b81565b6040516001600160e01b0319909116815260200160405180910390f35b6100e263272b8c4760e01b81565b6100e2634d15eb0360e01b81565b6100e263a219a02560e01b81565b6100e2639077062160e01b81565b6100e263f8722d8960e01b81565b6100e263da40804f60e01b81565b6100e2637965db0b60e01b81565b6100e26380ac58cd60e01b81565b6100e26301ffc9a760e01b81565b6100e2631e670a9760e21b81565b6100e26336372b0760e01b81565b6100e263191a7d6b60e11b8156fea264697066735822122092b92c8be83266e0e70a1adb472157c0d7afb5a76d4f137c36fe2809e1ee142f64736f6c63430008100033",
177
- "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100cf5760003560e01c80638b98dad01161008c578063a23a166111610066578063a23a16611461016f578063a88ecaa21461017d578063c1bd03a61461018b578063fef87f0b1461019957600080fd5b80638b98dad014610145578063933c234b1461015357806396047c991461016157600080fd5b806311f34418146100d45780632bac8ca3146100ff578063362466de1461010d578063731e0f7f1461011b5780637874bf9814610129578063800915a514610137575b600080fd5b6100e2632dd9c4bb60e21b81565b6040516001600160e01b0319909116815260200160405180910390f35b6100e263272b8c4760e01b81565b6100e2634d15eb0360e01b81565b6100e263a219a02560e01b81565b6100e2639077062160e01b81565b6100e263f8722d8960e01b81565b6100e263da40804f60e01b81565b6100e2637965db0b60e01b81565b6100e26380ac58cd60e01b81565b6100e26301ffc9a760e01b81565b6100e2631e670a9760e21b81565b6100e26336372b0760e01b81565b6100e263191a7d6b60e11b8156fea264697066735822122092b92c8be83266e0e70a1adb472157c0d7afb5a76d4f137c36fe2809e1ee142f64736f6c63430008100033",
178
- "linkReferences": {},
179
- "deployedLinkReferences": {}
180
- }
@@ -1,319 +0,0 @@
1
- {
2
- "_format": "hh-sol-artifact-1",
3
- "contractName": "PolicyHolderMock",
4
- "sourceName": "contracts/mocks/PolicyHolderMock.sol",
5
- "abi": [
6
- {
7
- "inputs": [],
8
- "stateMutability": "nonpayable",
9
- "type": "constructor"
10
- },
11
- {
12
- "anonymous": false,
13
- "inputs": [
14
- {
15
- "indexed": false,
16
- "internalType": "enum PolicyHolderMock.NotificationKind",
17
- "name": "kind",
18
- "type": "uint8"
19
- },
20
- {
21
- "indexed": false,
22
- "internalType": "uint256",
23
- "name": "policyId",
24
- "type": "uint256"
25
- },
26
- {
27
- "indexed": false,
28
- "internalType": "address",
29
- "name": "operator",
30
- "type": "address"
31
- },
32
- {
33
- "indexed": false,
34
- "internalType": "address",
35
- "name": "from",
36
- "type": "address"
37
- }
38
- ],
39
- "name": "NotificationReceived",
40
- "type": "event"
41
- },
42
- {
43
- "inputs": [],
44
- "name": "badlyImplemented",
45
- "outputs": [
46
- {
47
- "internalType": "bool",
48
- "name": "",
49
- "type": "bool"
50
- }
51
- ],
52
- "stateMutability": "view",
53
- "type": "function"
54
- },
55
- {
56
- "inputs": [],
57
- "name": "emptyRevert",
58
- "outputs": [
59
- {
60
- "internalType": "bool",
61
- "name": "",
62
- "type": "bool"
63
- }
64
- ],
65
- "stateMutability": "view",
66
- "type": "function"
67
- },
68
- {
69
- "inputs": [],
70
- "name": "fail",
71
- "outputs": [
72
- {
73
- "internalType": "bool",
74
- "name": "",
75
- "type": "bool"
76
- }
77
- ],
78
- "stateMutability": "view",
79
- "type": "function"
80
- },
81
- {
82
- "inputs": [],
83
- "name": "noERC165",
84
- "outputs": [
85
- {
86
- "internalType": "bool",
87
- "name": "",
88
- "type": "bool"
89
- }
90
- ],
91
- "stateMutability": "view",
92
- "type": "function"
93
- },
94
- {
95
- "inputs": [],
96
- "name": "notImplemented",
97
- "outputs": [
98
- {
99
- "internalType": "bool",
100
- "name": "",
101
- "type": "bool"
102
- }
103
- ],
104
- "stateMutability": "view",
105
- "type": "function"
106
- },
107
- {
108
- "inputs": [
109
- {
110
- "internalType": "address",
111
- "name": "operator",
112
- "type": "address"
113
- },
114
- {
115
- "internalType": "address",
116
- "name": "from",
117
- "type": "address"
118
- },
119
- {
120
- "internalType": "uint256",
121
- "name": "policyId_",
122
- "type": "uint256"
123
- },
124
- {
125
- "internalType": "bytes",
126
- "name": "",
127
- "type": "bytes"
128
- }
129
- ],
130
- "name": "onERC721Received",
131
- "outputs": [
132
- {
133
- "internalType": "bytes4",
134
- "name": "",
135
- "type": "bytes4"
136
- }
137
- ],
138
- "stateMutability": "nonpayable",
139
- "type": "function"
140
- },
141
- {
142
- "inputs": [
143
- {
144
- "internalType": "address",
145
- "name": "operator",
146
- "type": "address"
147
- },
148
- {
149
- "internalType": "address",
150
- "name": "from",
151
- "type": "address"
152
- },
153
- {
154
- "internalType": "uint256",
155
- "name": "policyId_",
156
- "type": "uint256"
157
- },
158
- {
159
- "internalType": "uint256",
160
- "name": "amount",
161
- "type": "uint256"
162
- }
163
- ],
164
- "name": "onPayoutReceived",
165
- "outputs": [
166
- {
167
- "internalType": "bytes4",
168
- "name": "",
169
- "type": "bytes4"
170
- }
171
- ],
172
- "stateMutability": "nonpayable",
173
- "type": "function"
174
- },
175
- {
176
- "inputs": [
177
- {
178
- "internalType": "address",
179
- "name": "operator",
180
- "type": "address"
181
- },
182
- {
183
- "internalType": "address",
184
- "name": "from",
185
- "type": "address"
186
- },
187
- {
188
- "internalType": "uint256",
189
- "name": "policyId_",
190
- "type": "uint256"
191
- }
192
- ],
193
- "name": "onPolicyExpired",
194
- "outputs": [
195
- {
196
- "internalType": "bytes4",
197
- "name": "",
198
- "type": "bytes4"
199
- }
200
- ],
201
- "stateMutability": "nonpayable",
202
- "type": "function"
203
- },
204
- {
205
- "inputs": [],
206
- "name": "payout",
207
- "outputs": [
208
- {
209
- "internalType": "uint256",
210
- "name": "",
211
- "type": "uint256"
212
- }
213
- ],
214
- "stateMutability": "view",
215
- "type": "function"
216
- },
217
- {
218
- "inputs": [],
219
- "name": "policyId",
220
- "outputs": [
221
- {
222
- "internalType": "uint256",
223
- "name": "",
224
- "type": "uint256"
225
- }
226
- ],
227
- "stateMutability": "view",
228
- "type": "function"
229
- },
230
- {
231
- "inputs": [
232
- {
233
- "internalType": "bool",
234
- "name": "badlyImplemented_",
235
- "type": "bool"
236
- }
237
- ],
238
- "name": "setBadlyImplemented",
239
- "outputs": [],
240
- "stateMutability": "nonpayable",
241
- "type": "function"
242
- },
243
- {
244
- "inputs": [
245
- {
246
- "internalType": "bool",
247
- "name": "emptyRevert_",
248
- "type": "bool"
249
- }
250
- ],
251
- "name": "setEmptyRevert",
252
- "outputs": [],
253
- "stateMutability": "nonpayable",
254
- "type": "function"
255
- },
256
- {
257
- "inputs": [
258
- {
259
- "internalType": "bool",
260
- "name": "fail_",
261
- "type": "bool"
262
- }
263
- ],
264
- "name": "setFail",
265
- "outputs": [],
266
- "stateMutability": "nonpayable",
267
- "type": "function"
268
- },
269
- {
270
- "inputs": [
271
- {
272
- "internalType": "bool",
273
- "name": "noERC165_",
274
- "type": "bool"
275
- }
276
- ],
277
- "name": "setNoERC165",
278
- "outputs": [],
279
- "stateMutability": "nonpayable",
280
- "type": "function"
281
- },
282
- {
283
- "inputs": [
284
- {
285
- "internalType": "bool",
286
- "name": "notImplemented_",
287
- "type": "bool"
288
- }
289
- ],
290
- "name": "setNotImplemented",
291
- "outputs": [],
292
- "stateMutability": "nonpayable",
293
- "type": "function"
294
- },
295
- {
296
- "inputs": [
297
- {
298
- "internalType": "bytes4",
299
- "name": "interfaceId",
300
- "type": "bytes4"
301
- }
302
- ],
303
- "name": "supportsInterface",
304
- "outputs": [
305
- {
306
- "internalType": "bool",
307
- "name": "",
308
- "type": "bool"
309
- }
310
- ],
311
- "stateMutability": "view",
312
- "type": "function"
313
- }
314
- ],
315
- "bytecode": "0x608060405234801561001057600080fd5b506002805464ffffffffff19169055600019600155610821806100346000396000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c80639d76940211610097578063c3af904e11610066578063c3af904e14610286578063d6281d3e1461029a578063e8e617b7146102ad578063ee89ef3a146102c057600080fd5b80639d76940214610219578063a9cc47181461023a578063aeec8f9d14610247578063bcce53991461027157600080fd5b806331ca2944116100d357806331ca2944146101b557806335287014146101dd57806363bd1d4a146101f05780636db656191461020757600080fd5b806301ffc9a714610105578063150b7a021461012d5780632bb2adb3146101595780632fb6436214610187575b600080fd5b610118610113366004610623565b6102c9565b60405190151581526020015b60405180910390f35b61014061013b366004610669565b610332565b6040516001600160e01b03199091168152602001610124565b610185610167366004610704565b6002805491151563010000000263ff00000019909216919091179055565b005b610185610195366004610704565b600280549115156401000000000264ff0000000019909216919091179055565b6101856101c3366004610704565b600280549115156101000261ff0019909216919091179055565b6002546101189062010000900460ff1681565b6101f960015481565b604051908152602001610124565b60025461011890610100900460ff1681565b610185610227366004610704565b6002805460ff1916911515919091179055565b6002546101189060ff1681565b610185610255366004610704565b60028054911515620100000262ff000019909216919091179055565b60025461011890640100000000900460ff1681565b600254610118906301000000900460ff1681565b6101406102a8366004610726565b610432565b6101406102bb366004610768565b61052b565b6101f960005481565b600254600090640100000000900460ff16156102e457600080fd5b60025462010000900460ff16156102fd57506000919050565b6001600160e01b03198216633ece0a8960e01b148061032c57506001600160e01b031982166301ffc9a760e01b145b92915050565b60025460009060ff16156103b857600254610100900460ff161561035557600080fd5b60405162461bcd60e51b815260206004820152602d60248201527f6f6e45524337323152656365697665643a205468657920746f6c64206d65204960448201526c081a185d99481d1bc819985a5b609a1b60648201526084015b60405180910390fd5b60008481556000196001556040517fcb6442f1752a34d49fd946725ee915eae9914b3fe3f3193b98232c772393e7c5916103f79187908a908a906107a4565b60405180910390a16002546301000000900460ff161561041f5750630badf00d60e01b610429565b50630a85bd0160e11b5b95945050505050565b60025460009060ff16156104b357600254610100900460ff161561045557600080fd5b60405162461bcd60e51b815260206004820152602d60248201527f6f6e5061796f757452656365697665643a205468657920746f6c64206d65204960448201526c081a185d99481d1bc819985a5b609a1b60648201526084016103af565b600083905560018281556040517fcb6442f1752a34d49fd946725ee915eae9914b3fe3f3193b98232c772393e7c5916104f1918690899089906107a4565b60405180910390a16002546301000000900460ff16156105195750630badf00d60e01b610523565b50636b140e9f60e11b5b949350505050565b60025460009060ff16156105ab57600254610100900460ff161561054e57600080fd5b60405162461bcd60e51b815260206004820152602c60248201527f6f6e506f6c696379457870697265643a205468657920746f6c64206d6520492060448201526b1a185d99481d1bc819985a5b60a21b60648201526084016103af565b60008281556001556040517fcb6442f1752a34d49fd946725ee915eae9914b3fe3f3193b98232c772393e7c5906105ea906002908590889088906107a4565b60405180910390a16002546301000000900460ff16156106125750630badf00d60e01b61061c565b5063e8e617b760e01b5b9392505050565b60006020828403121561063557600080fd5b81356001600160e01b03198116811461061c57600080fd5b80356001600160a01b038116811461066457600080fd5b919050565b60008060008060006080868803121561068157600080fd5b61068a8661064d565b94506106986020870161064d565b935060408601359250606086013567ffffffffffffffff808211156106bc57600080fd5b818801915088601f8301126106d057600080fd5b8135818111156106df57600080fd5b8960208285010111156106f157600080fd5b9699959850939650602001949392505050565b60006020828403121561071657600080fd5b8135801515811461061c57600080fd5b6000806000806080858703121561073c57600080fd5b6107458561064d565b93506107536020860161064d565b93969395505050506040820135916060013590565b60008060006060848603121561077d57600080fd5b6107868461064d565b92506107946020850161064d565b9150604084013590509250925092565b60808101600386106107c657634e487b7160e01b600052602160045260246000fd5b94815260208101939093526001600160a01b039182166040840152166060909101529056fea26469706673582212202e49c5f2f0355608eb652a83821517c4ded37d91845f3f6fe597dafdfed7e90364736f6c63430008100033",
316
- "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101005760003560e01c80639d76940211610097578063c3af904e11610066578063c3af904e14610286578063d6281d3e1461029a578063e8e617b7146102ad578063ee89ef3a146102c057600080fd5b80639d76940214610219578063a9cc47181461023a578063aeec8f9d14610247578063bcce53991461027157600080fd5b806331ca2944116100d357806331ca2944146101b557806335287014146101dd57806363bd1d4a146101f05780636db656191461020757600080fd5b806301ffc9a714610105578063150b7a021461012d5780632bb2adb3146101595780632fb6436214610187575b600080fd5b610118610113366004610623565b6102c9565b60405190151581526020015b60405180910390f35b61014061013b366004610669565b610332565b6040516001600160e01b03199091168152602001610124565b610185610167366004610704565b6002805491151563010000000263ff00000019909216919091179055565b005b610185610195366004610704565b600280549115156401000000000264ff0000000019909216919091179055565b6101856101c3366004610704565b600280549115156101000261ff0019909216919091179055565b6002546101189062010000900460ff1681565b6101f960015481565b604051908152602001610124565b60025461011890610100900460ff1681565b610185610227366004610704565b6002805460ff1916911515919091179055565b6002546101189060ff1681565b610185610255366004610704565b60028054911515620100000262ff000019909216919091179055565b60025461011890640100000000900460ff1681565b600254610118906301000000900460ff1681565b6101406102a8366004610726565b610432565b6101406102bb366004610768565b61052b565b6101f960005481565b600254600090640100000000900460ff16156102e457600080fd5b60025462010000900460ff16156102fd57506000919050565b6001600160e01b03198216633ece0a8960e01b148061032c57506001600160e01b031982166301ffc9a760e01b145b92915050565b60025460009060ff16156103b857600254610100900460ff161561035557600080fd5b60405162461bcd60e51b815260206004820152602d60248201527f6f6e45524337323152656365697665643a205468657920746f6c64206d65204960448201526c081a185d99481d1bc819985a5b609a1b60648201526084015b60405180910390fd5b60008481556000196001556040517fcb6442f1752a34d49fd946725ee915eae9914b3fe3f3193b98232c772393e7c5916103f79187908a908a906107a4565b60405180910390a16002546301000000900460ff161561041f5750630badf00d60e01b610429565b50630a85bd0160e11b5b95945050505050565b60025460009060ff16156104b357600254610100900460ff161561045557600080fd5b60405162461bcd60e51b815260206004820152602d60248201527f6f6e5061796f757452656365697665643a205468657920746f6c64206d65204960448201526c081a185d99481d1bc819985a5b609a1b60648201526084016103af565b600083905560018281556040517fcb6442f1752a34d49fd946725ee915eae9914b3fe3f3193b98232c772393e7c5916104f1918690899089906107a4565b60405180910390a16002546301000000900460ff16156105195750630badf00d60e01b610523565b50636b140e9f60e11b5b949350505050565b60025460009060ff16156105ab57600254610100900460ff161561054e57600080fd5b60405162461bcd60e51b815260206004820152602c60248201527f6f6e506f6c696379457870697265643a205468657920746f6c64206d6520492060448201526b1a185d99481d1bc819985a5b60a21b60648201526084016103af565b60008281556001556040517fcb6442f1752a34d49fd946725ee915eae9914b3fe3f3193b98232c772393e7c5906105ea906002908590889088906107a4565b60405180910390a16002546301000000900460ff16156106125750630badf00d60e01b61061c565b5063e8e617b760e01b5b9392505050565b60006020828403121561063557600080fd5b81356001600160e01b03198116811461061c57600080fd5b80356001600160a01b038116811461066457600080fd5b919050565b60008060008060006080868803121561068157600080fd5b61068a8661064d565b94506106986020870161064d565b935060408601359250606086013567ffffffffffffffff808211156106bc57600080fd5b818801915088601f8301126106d057600080fd5b8135818111156106df57600080fd5b8960208285010111156106f157600080fd5b9699959850939650602001949392505050565b60006020828403121561071657600080fd5b8135801515811461061c57600080fd5b6000806000806080858703121561073c57600080fd5b6107458561064d565b93506107536020860161064d565b93969395505050506040820135916060013590565b60008060006060848603121561077d57600080fd5b6107868461064d565b92506107946020850161064d565b9150604084013590509250925092565b60808101600386106107c657634e487b7160e01b600052602160045260246000fd5b94815260208101939093526001600160a01b039182166040840152166060909101529056fea26469706673582212202e49c5f2f0355608eb652a83821517c4ded37d91845f3f6fe597dafdfed7e90364736f6c63430008100033",
317
- "linkReferences": {},
318
- "deployedLinkReferences": {}
319
- }
@@ -1,54 +0,0 @@
1
- {
2
- "_format": "hh-sol-artifact-1",
3
- "contractName": "PolicyPoolComponentMock",
4
- "sourceName": "contracts/mocks/PolicyPoolComponentMock.sol",
5
- "abi": [
6
- {
7
- "inputs": [
8
- {
9
- "internalType": "contract IPolicyPool",
10
- "name": "policyPool_",
11
- "type": "address"
12
- }
13
- ],
14
- "stateMutability": "nonpayable",
15
- "type": "constructor"
16
- },
17
- {
18
- "inputs": [],
19
- "name": "policyPool",
20
- "outputs": [
21
- {
22
- "internalType": "contract IPolicyPool",
23
- "name": "",
24
- "type": "address"
25
- }
26
- ],
27
- "stateMutability": "view",
28
- "type": "function"
29
- },
30
- {
31
- "inputs": [
32
- {
33
- "internalType": "bytes4",
34
- "name": "interfaceId",
35
- "type": "bytes4"
36
- }
37
- ],
38
- "name": "supportsInterface",
39
- "outputs": [
40
- {
41
- "internalType": "bool",
42
- "name": "",
43
- "type": "bool"
44
- }
45
- ],
46
- "stateMutability": "view",
47
- "type": "function"
48
- }
49
- ],
50
- "bytecode": "0x60a060405234801561001057600080fd5b506040516101b63803806101b683398101604081905261002f91610040565b6001600160a01b0316608052610070565b60006020828403121561005257600080fd5b81516001600160a01b038116811461006957600080fd5b9392505050565b60805161012c61008a60003960006068015261012c6000f3fe6080604052348015600f57600080fd5b506004361060325760003560e01c806301ffc9a71460375780634d15eb0314605b575b600080fd5b6046604236600460c7565b6091565b60405190151581526020015b60405180910390f35b6040516001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001681526020016052565b60006001600160e01b031982166301ffc9a760e01b148060c157506001600160e01b03198216634d15eb0360e01b145b92915050565b60006020828403121560d857600080fd5b81356001600160e01b03198116811460ef57600080fd5b939250505056fea2646970667358221220eb121ec83c4e583c1f198dce6b8c1f7a3a64008caa99a0fd68b798c4f44eefc064736f6c63430008100033",
51
- "deployedBytecode": "0x6080604052348015600f57600080fd5b506004361060325760003560e01c806301ffc9a71460375780634d15eb0314605b575b600080fd5b6046604236600460c7565b6091565b60405190151581526020015b60405180910390f35b6040516001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001681526020016052565b60006001600160e01b031982166301ffc9a760e01b148060c157506001600160e01b03198216634d15eb0360e01b145b92915050565b60006020828403121560d857600080fd5b81356001600160e01b03198116811460ef57600080fd5b939250505056fea2646970667358221220eb121ec83c4e583c1f198dce6b8c1f7a3a64008caa99a0fd68b798c4f44eefc064736f6c63430008100033",
52
- "linkReferences": {},
53
- "deployedLinkReferences": {}
54
- }