@ensuro/core 2.6.2 → 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.
- package/README.md +11 -5
- package/contracts/AccessManager.sol +3 -13
- package/contracts/EToken.sol +29 -95
- package/contracts/LPManualWhitelist.sol +11 -26
- package/contracts/LiquidityThresholdAssetManager.sol +10 -21
- package/contracts/Policy.sol +6 -17
- package/contracts/PolicyPool.sol +39 -91
- package/contracts/PolicyPoolComponent.sol +9 -32
- package/contracts/PremiumsAccount.sol +16 -47
- package/contracts/Reserve.sol +10 -16
- package/contracts/RiskModule.sol +22 -80
- package/contracts/SignedBucketRiskModule.sol +18 -80
- package/contracts/SignedQuoteRiskModule.sol +13 -44
- package/contracts/TieredSignedQuoteRiskModule.sol +7 -13
- package/contracts/TimeScaled.sol +8 -39
- package/contracts/TrustfulRiskModule.sol +13 -48
- package/contracts/interfaces/IAccessManager.sol +2 -11
- package/contracts/interfaces/IEToken.sol +1 -5
- package/contracts/interfaces/ILPWhitelist.sol +2 -10
- package/contracts/interfaces/IPolicyHolder.sol +2 -11
- package/contracts/interfaces/IPremiumsAccount.sol +1 -5
- package/contracts/migration/LPManualWhitelistV20.sol +3 -15
- package/contracts/migration/LPManualWhitelistV20Upgraded.sol +1 -5
- package/contracts/mocks/FixedRateVault.sol +1 -6
- package/contracts/mocks/PolicyHolderMock.sol +73 -29
- package/contracts/mocks/PolicyPoolComponentMock.sol +1 -3
- package/contracts/mocks/PolicyPoolMock.sol +8 -28
- package/contracts/mocks/RiskModuleMock.sol +3 -16
- package/contracts/mocks/TestNFT.sol +1 -1
- package/js/constants.js +8 -2
- package/js/deploy.js +65 -62
- package/js/enums.js +26 -8
- package/js/test-utils.js +105 -23
- package/js/utils.js +78 -28
- package/package.json +1 -1
- package/scripts/utils.sh +23 -12
- package/build/contracts/AccessManager.sol/AccessManager.json +0 -618
- package/build/contracts/ERC4626AssetManager.sol/ERC4626AssetManager.json +0 -238
- package/build/contracts/EToken.sol/EToken.json +0 -1277
- package/build/contracts/LPManualWhitelist.sol/LPManualWhitelist.json +0 -647
- package/build/contracts/LiquidityThresholdAssetManager.sol/LiquidityThresholdAssetManager.json +0 -222
- package/build/contracts/Policy.sol/Policy.json +0 -10
- package/build/contracts/PolicyPool.sol/PolicyPool.json +0 -1416
- package/build/contracts/PolicyPoolComponent.sol/PolicyPoolComponent.json +0 -332
- package/build/contracts/PremiumsAccount.sol/PremiumsAccount.json +0 -970
- package/build/contracts/Reserve.sol/Reserve.json +0 -403
- package/build/contracts/RiskModule.sol/RiskModule.json +0 -559
- package/build/contracts/SignedBucketRiskModule.sol/SignedBucketRiskModule.json +0 -1262
- package/build/contracts/SignedQuoteRiskModule.sol/SignedQuoteRiskModule.json +0 -1110
- package/build/contracts/TieredSignedQuoteRiskModule.sol/TieredSignedQuoteRiskModule.json +0 -1316
- package/build/contracts/TimeScaled.sol/TimeScaled.json +0 -10
- package/build/contracts/TrustfulRiskModule.sol/TrustfulRiskModule.json +0 -984
- package/build/contracts/dependencies/ERC1967Proxy.sol/ERC1967Proxy.json +0 -64
- package/build/contracts/dependencies/IERC20Metadata.sol/IERC20Metadata.json +0 -233
- package/build/contracts/dependencies/WadRayMath.sol/WadRayMath.json +0 -10
- package/build/contracts/interfaces/IAccessManager.sol/IAccessManager.json +0 -343
- package/build/contracts/interfaces/IAssetManager.sol/IAssetManager.json +0 -128
- package/build/contracts/interfaces/IEToken.sol/IEToken.json +0 -460
- package/build/contracts/interfaces/ILPWhitelist.sol/ILPWhitelist.json +0 -103
- package/build/contracts/interfaces/IPolicyHolder.sol/IPolicyHolder.json +0 -108
- package/build/contracts/interfaces/IPolicyPool.sol/IPolicyPool.json +0 -501
- package/build/contracts/interfaces/IPolicyPoolComponent.sol/IPolicyPoolComponent.json +0 -43
- package/build/contracts/interfaces/IPremiumsAccount.sol/IPremiumsAccount.json +0 -315
- package/build/contracts/interfaces/IRiskModule.sol/IRiskModule.json +0 -165
- package/build/contracts/migration/LPManualWhitelistV20.sol/LPManualWhitelistV20.json +0 -481
- package/build/contracts/migration/LPManualWhitelistV20Upgraded.sol/LPManualWhitelistV20Upgraded.json +0 -492
- package/build/contracts/mocks/FixedRateVault.sol/FixedRateVault.json +0 -736
- package/build/contracts/mocks/ForwardProxy.sol/ForwardProxy.json +0 -43
- package/build/contracts/mocks/IMintableERC20.sol/IMintableERC20.json +0 -47
- package/build/contracts/mocks/InterfaceIdCalculator.sol/InterfaceIdCalculator.json +0 -180
- package/build/contracts/mocks/PolicyHolderMock.sol/PolicyHolderMock.json +0 -228
- package/build/contracts/mocks/PolicyPoolComponentMock.sol/PolicyPoolComponentMock.json +0 -54
- package/build/contracts/mocks/PolicyPoolMock.sol/PolicyPoolMock.json +0 -721
- package/build/contracts/mocks/PolicyPoolMock.sol/PolicyPoolMockForward.json +0 -92
- package/build/contracts/mocks/RiskModuleMock.sol/RiskModuleMock.json +0 -783
- package/build/contracts/mocks/TestCurrency.sol/TestCurrency.json +0 -343
- package/build/contracts/mocks/TestNFT.sol/TestNFT.json +0 -388
- package/contracts/dependencies/ERC1967Proxy.sol +0 -19
- 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,228 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"_format": "hh-sol-artifact-1",
|
|
3
|
-
"contractName": "PolicyHolderMock",
|
|
4
|
-
"sourceName": "contracts/mocks/PolicyHolderMock.sol",
|
|
5
|
-
"abi": [
|
|
6
|
-
{
|
|
7
|
-
"inputs": [
|
|
8
|
-
{
|
|
9
|
-
"internalType": "bool",
|
|
10
|
-
"name": "fail_",
|
|
11
|
-
"type": "bool"
|
|
12
|
-
}
|
|
13
|
-
],
|
|
14
|
-
"stateMutability": "nonpayable",
|
|
15
|
-
"type": "constructor"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"anonymous": false,
|
|
19
|
-
"inputs": [
|
|
20
|
-
{
|
|
21
|
-
"indexed": false,
|
|
22
|
-
"internalType": "uint256",
|
|
23
|
-
"name": "kind",
|
|
24
|
-
"type": "uint256"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"indexed": false,
|
|
28
|
-
"internalType": "uint256",
|
|
29
|
-
"name": "policyId",
|
|
30
|
-
"type": "uint256"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"indexed": false,
|
|
34
|
-
"internalType": "address",
|
|
35
|
-
"name": "operator",
|
|
36
|
-
"type": "address"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"indexed": false,
|
|
40
|
-
"internalType": "address",
|
|
41
|
-
"name": "from",
|
|
42
|
-
"type": "address"
|
|
43
|
-
}
|
|
44
|
-
],
|
|
45
|
-
"name": "NotificationReceived",
|
|
46
|
-
"type": "event"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"inputs": [],
|
|
50
|
-
"name": "fail",
|
|
51
|
-
"outputs": [
|
|
52
|
-
{
|
|
53
|
-
"internalType": "bool",
|
|
54
|
-
"name": "",
|
|
55
|
-
"type": "bool"
|
|
56
|
-
}
|
|
57
|
-
],
|
|
58
|
-
"stateMutability": "view",
|
|
59
|
-
"type": "function"
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
"inputs": [],
|
|
63
|
-
"name": "notImplemented",
|
|
64
|
-
"outputs": [
|
|
65
|
-
{
|
|
66
|
-
"internalType": "bool",
|
|
67
|
-
"name": "",
|
|
68
|
-
"type": "bool"
|
|
69
|
-
}
|
|
70
|
-
],
|
|
71
|
-
"stateMutability": "view",
|
|
72
|
-
"type": "function"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"inputs": [
|
|
76
|
-
{
|
|
77
|
-
"internalType": "address",
|
|
78
|
-
"name": "operator",
|
|
79
|
-
"type": "address"
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
"internalType": "address",
|
|
83
|
-
"name": "from",
|
|
84
|
-
"type": "address"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"internalType": "uint256",
|
|
88
|
-
"name": "policyId_",
|
|
89
|
-
"type": "uint256"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"internalType": "bytes",
|
|
93
|
-
"name": "",
|
|
94
|
-
"type": "bytes"
|
|
95
|
-
}
|
|
96
|
-
],
|
|
97
|
-
"name": "onERC721Received",
|
|
98
|
-
"outputs": [
|
|
99
|
-
{
|
|
100
|
-
"internalType": "bytes4",
|
|
101
|
-
"name": "",
|
|
102
|
-
"type": "bytes4"
|
|
103
|
-
}
|
|
104
|
-
],
|
|
105
|
-
"stateMutability": "nonpayable",
|
|
106
|
-
"type": "function"
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
"inputs": [
|
|
110
|
-
{
|
|
111
|
-
"internalType": "address",
|
|
112
|
-
"name": "operator",
|
|
113
|
-
"type": "address"
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
"internalType": "address",
|
|
117
|
-
"name": "from",
|
|
118
|
-
"type": "address"
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
"internalType": "uint256",
|
|
122
|
-
"name": "policyId_",
|
|
123
|
-
"type": "uint256"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"internalType": "uint256",
|
|
127
|
-
"name": "amount",
|
|
128
|
-
"type": "uint256"
|
|
129
|
-
}
|
|
130
|
-
],
|
|
131
|
-
"name": "onPayoutReceived",
|
|
132
|
-
"outputs": [
|
|
133
|
-
{
|
|
134
|
-
"internalType": "bytes4",
|
|
135
|
-
"name": "",
|
|
136
|
-
"type": "bytes4"
|
|
137
|
-
}
|
|
138
|
-
],
|
|
139
|
-
"stateMutability": "nonpayable",
|
|
140
|
-
"type": "function"
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
"inputs": [
|
|
144
|
-
{
|
|
145
|
-
"internalType": "address",
|
|
146
|
-
"name": "operator",
|
|
147
|
-
"type": "address"
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
"internalType": "address",
|
|
151
|
-
"name": "from",
|
|
152
|
-
"type": "address"
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
"internalType": "uint256",
|
|
156
|
-
"name": "policyId_",
|
|
157
|
-
"type": "uint256"
|
|
158
|
-
}
|
|
159
|
-
],
|
|
160
|
-
"name": "onPolicyExpired",
|
|
161
|
-
"outputs": [
|
|
162
|
-
{
|
|
163
|
-
"internalType": "bytes4",
|
|
164
|
-
"name": "",
|
|
165
|
-
"type": "bytes4"
|
|
166
|
-
}
|
|
167
|
-
],
|
|
168
|
-
"stateMutability": "nonpayable",
|
|
169
|
-
"type": "function"
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
"inputs": [],
|
|
173
|
-
"name": "payout",
|
|
174
|
-
"outputs": [
|
|
175
|
-
{
|
|
176
|
-
"internalType": "uint256",
|
|
177
|
-
"name": "",
|
|
178
|
-
"type": "uint256"
|
|
179
|
-
}
|
|
180
|
-
],
|
|
181
|
-
"stateMutability": "view",
|
|
182
|
-
"type": "function"
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
"inputs": [],
|
|
186
|
-
"name": "policyId",
|
|
187
|
-
"outputs": [
|
|
188
|
-
{
|
|
189
|
-
"internalType": "uint256",
|
|
190
|
-
"name": "",
|
|
191
|
-
"type": "uint256"
|
|
192
|
-
}
|
|
193
|
-
],
|
|
194
|
-
"stateMutability": "view",
|
|
195
|
-
"type": "function"
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
"inputs": [
|
|
199
|
-
{
|
|
200
|
-
"internalType": "bool",
|
|
201
|
-
"name": "fail_",
|
|
202
|
-
"type": "bool"
|
|
203
|
-
}
|
|
204
|
-
],
|
|
205
|
-
"name": "setFail",
|
|
206
|
-
"outputs": [],
|
|
207
|
-
"stateMutability": "nonpayable",
|
|
208
|
-
"type": "function"
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
"inputs": [
|
|
212
|
-
{
|
|
213
|
-
"internalType": "bool",
|
|
214
|
-
"name": "notImplemented_",
|
|
215
|
-
"type": "bool"
|
|
216
|
-
}
|
|
217
|
-
],
|
|
218
|
-
"name": "setNotImplemented",
|
|
219
|
-
"outputs": [],
|
|
220
|
-
"stateMutability": "nonpayable",
|
|
221
|
-
"type": "function"
|
|
222
|
-
}
|
|
223
|
-
],
|
|
224
|
-
"bytecode": "0x608060405234801561001057600080fd5b5060405161065738038061065783398101604081905261002f91610051565b6002805461ffff191691151561ff00191691909117905560001960015561007a565b60006020828403121561006357600080fd5b8151801515811461007357600080fd5b9392505050565b6105ce806100896000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c8063a9cc471811610066578063a9cc471814610125578063aeec8f9d14610132578063d6281d3e1461015a578063e8e617b71461016d578063ee89ef3a1461018057600080fd5b8063150b7a021461009857806335287014146100c957806363bd1d4a146100eb5780639d76940214610102575b600080fd5b6100ab6100a636600461042f565b610189565b6040516001600160e01b031990911681526020015b60405180910390f35b6002546100db90610100900460ff1681565b60405190151581526020016100c0565b6100f460015481565b6040519081526020016100c0565b6101236101103660046104ca565b6002805460ff1916911515919091179055565b005b6002546100db9060ff1681565b6101236101403660046104ca565b600280549115156101000261ff0019909216919091179055565b6100ab6101683660046104f3565b610262565b6100ab61017b366004610535565b61033d565b6100f460005481565b600254600090610100900460ff16156101a157600080fd5b60025460ff161561020f5760405162461bcd60e51b815260206004820152602d60248201527f6f6e45524337323152656365697665643a205468657920746f6c64206d65204960448201526c081a185d99481d1bc819985a5b609a1b60648201526084015b60405180910390fd5b60008481556040517fed80108518efd09a475da47e8e2247346c5d2dea917fc27629cd0d1ebba504aa916102489187908a908a90610571565b60405180910390a150630a85bd0160e11b95945050505050565b600254600090610100900460ff161561027a57600080fd5b60025460ff16156102e35760405162461bcd60e51b815260206004820152602d60248201527f6f6e5061796f757452656365697665643a205468657920746f6c64206d65204960448201526c081a185d99481d1bc819985a5b609a1b6064820152608401610206565b600083905560018290556040517fed80108518efd09a475da47e8e2247346c5d2dea917fc27629cd0d1ebba504aa9061032490600290869089908990610571565b60405180910390a150636b140e9f60e11b949350505050565b600254600090610100900460ff161561035557600080fd5b60025460ff16156103bd5760405162461bcd60e51b815260206004820152602c60248201527f6f6e506f6c696379457870697265643a205468657920746f6c64206d6520492060448201526b1a185d99481d1bc819985a5b60a21b6064820152608401610206565b600082815560019081556040517fed80108518efd09a475da47e8e2247346c5d2dea917fc27629cd0d1ebba504aa916103fb91859088908890610571565b60405180910390a15063e8e617b760e01b9392505050565b80356001600160a01b038116811461042a57600080fd5b919050565b60008060008060006080868803121561044757600080fd5b61045086610413565b945061045e60208701610413565b935060408601359250606086013567ffffffffffffffff8082111561048257600080fd5b818801915088601f83011261049657600080fd5b8135818111156104a557600080fd5b8960208285010111156104b757600080fd5b9699959850939650602001949392505050565b6000602082840312156104dc57600080fd5b813580151581146104ec57600080fd5b9392505050565b6000806000806080858703121561050957600080fd5b61051285610413565b935061052060208601610413565b93969395505050506040820135916060013590565b60008060006060848603121561054a57600080fd5b61055384610413565b925061056160208501610413565b9150604084013590509250925092565b93845260208401929092526001600160a01b0390811660408401521660608201526080019056fea2646970667358221220d0072122404d3733f27b0b19a83647b7950c9327bd652d50f319802184e9f72064736f6c63430008100033",
|
|
225
|
-
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100935760003560e01c8063a9cc471811610066578063a9cc471814610125578063aeec8f9d14610132578063d6281d3e1461015a578063e8e617b71461016d578063ee89ef3a1461018057600080fd5b8063150b7a021461009857806335287014146100c957806363bd1d4a146100eb5780639d76940214610102575b600080fd5b6100ab6100a636600461042f565b610189565b6040516001600160e01b031990911681526020015b60405180910390f35b6002546100db90610100900460ff1681565b60405190151581526020016100c0565b6100f460015481565b6040519081526020016100c0565b6101236101103660046104ca565b6002805460ff1916911515919091179055565b005b6002546100db9060ff1681565b6101236101403660046104ca565b600280549115156101000261ff0019909216919091179055565b6100ab6101683660046104f3565b610262565b6100ab61017b366004610535565b61033d565b6100f460005481565b600254600090610100900460ff16156101a157600080fd5b60025460ff161561020f5760405162461bcd60e51b815260206004820152602d60248201527f6f6e45524337323152656365697665643a205468657920746f6c64206d65204960448201526c081a185d99481d1bc819985a5b609a1b60648201526084015b60405180910390fd5b60008481556040517fed80108518efd09a475da47e8e2247346c5d2dea917fc27629cd0d1ebba504aa916102489187908a908a90610571565b60405180910390a150630a85bd0160e11b95945050505050565b600254600090610100900460ff161561027a57600080fd5b60025460ff16156102e35760405162461bcd60e51b815260206004820152602d60248201527f6f6e5061796f757452656365697665643a205468657920746f6c64206d65204960448201526c081a185d99481d1bc819985a5b609a1b6064820152608401610206565b600083905560018290556040517fed80108518efd09a475da47e8e2247346c5d2dea917fc27629cd0d1ebba504aa9061032490600290869089908990610571565b60405180910390a150636b140e9f60e11b949350505050565b600254600090610100900460ff161561035557600080fd5b60025460ff16156103bd5760405162461bcd60e51b815260206004820152602c60248201527f6f6e506f6c696379457870697265643a205468657920746f6c64206d6520492060448201526b1a185d99481d1bc819985a5b60a21b6064820152608401610206565b600082815560019081556040517fed80108518efd09a475da47e8e2247346c5d2dea917fc27629cd0d1ebba504aa916103fb91859088908890610571565b60405180910390a15063e8e617b760e01b9392505050565b80356001600160a01b038116811461042a57600080fd5b919050565b60008060008060006080868803121561044757600080fd5b61045086610413565b945061045e60208701610413565b935060408601359250606086013567ffffffffffffffff8082111561048257600080fd5b818801915088601f83011261049657600080fd5b8135818111156104a557600080fd5b8960208285010111156104b757600080fd5b9699959850939650602001949392505050565b6000602082840312156104dc57600080fd5b813580151581146104ec57600080fd5b9392505050565b6000806000806080858703121561050957600080fd5b61051285610413565b935061052060208601610413565b93969395505050506040820135916060013590565b60008060006060848603121561054a57600080fd5b61055384610413565b925061056160208501610413565b9150604084013590509250925092565b93845260208401929092526001600160a01b0390811660408401521660608201526080019056fea2646970667358221220d0072122404d3733f27b0b19a83647b7950c9327bd652d50f319802184e9f72064736f6c63430008100033",
|
|
226
|
-
"linkReferences": {},
|
|
227
|
-
"deployedLinkReferences": {}
|
|
228
|
-
}
|
|
@@ -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
|
-
}
|