@etherisc/gif-next 0.0.2-f9bc4c7-556 → 0.0.2-fe34d97-357
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +36 -0
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +72 -4
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +46 -3
- package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +2 -2
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +540 -401
- package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +640 -469
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +1 -1
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +1 -1
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +18 -0
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +49 -0
- package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +1 -1
- package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +1 -1
- package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.json +18 -0
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +41 -23
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +4 -4
- package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +1 -1
- package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +1 -1
- package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +1 -1
- package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +17 -48
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +1 -1
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +18 -49
- package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.json +2 -2
- package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.dbg.json +1 -1
- package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +36 -88
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +1 -1
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.json +36 -88
- package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +1 -1
- package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.json +65 -38
- package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +65 -38
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +1 -1
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.json +0 -5
- package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +0 -5
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +1 -1
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +123 -1
- package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +145 -5
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +1 -1
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +166 -168
- package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +1 -1
- package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +2 -2
- package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +167 -169
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +21 -21
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +71 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +6 -6
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +97 -26
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.json +2 -2
- package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
- package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +1 -1
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
- package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
- package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
- package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
- package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +1 -1
- package/artifacts/contracts/test/TestPool.sol/TestPool.json +72 -4
- package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +1 -1
- package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +90 -4
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +2 -2
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
- package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
- package/artifacts/contracts/test/TestService.sol/TestService.json +2 -2
- package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
- package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
- package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
- package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
- package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
- package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
- package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
- package/artifacts/contracts/types/Key32.sol/Key32Lib.json +2 -2
- package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/NftId.sol/NftIdLib.json +2 -2
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +2 -2
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +86 -0
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
- package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
- package/contracts/components/BaseComponent.sol +7 -1
- package/contracts/components/Pool.sol +20 -3
- package/contracts/components/Product.sol +69 -5
- package/contracts/instance/IInstance.sol +3 -4
- package/contracts/instance/Instance.sol +7 -4
- package/contracts/instance/base/IInstanceBase.sol +5 -0
- package/contracts/instance/base/IKeyValueStore.sol +4 -3
- package/contracts/instance/base/InstanceBase.sol +6 -2
- package/contracts/instance/base/KeyValueStore.sol +12 -7
- package/contracts/instance/base/Lifecycle.sol +15 -10
- package/contracts/instance/base/ModuleBase.sol +18 -17
- package/contracts/instance/module/bundle/BundleModule.sol +10 -11
- package/contracts/instance/module/bundle/IBundle.sol +4 -11
- package/contracts/instance/module/compensation/CompensationModule.sol +11 -2
- package/contracts/instance/module/component/ComponentModule.sol +39 -53
- package/contracts/instance/module/component/IComponent.sol +6 -30
- package/contracts/instance/module/policy/IPolicy.sol +11 -9
- package/contracts/instance/module/policy/PolicyModule.sol +35 -19
- package/contracts/instance/module/pool/IPoolModule.sol +0 -1
- package/contracts/instance/module/pool/PoolModule.sol +12 -9
- package/contracts/instance/module/risk/IRisk.sol +19 -2
- package/contracts/instance/module/risk/RiskModule.sol +64 -2
- package/contracts/instance/module/treasury/ITreasury.sol +35 -42
- package/contracts/instance/module/treasury/TreasuryModule.sol +96 -77
- package/contracts/instance/service/ComponentOwnerService.sol +19 -34
- package/contracts/instance/service/IProductService.sol +21 -1
- package/contracts/instance/service/PoolService.sol +10 -4
- package/contracts/instance/service/ProductService.sol +120 -68
- package/contracts/registry/Registry.sol +2 -2
- package/contracts/test/TestPool.sol +4 -2
- package/contracts/test/TestProduct.sol +25 -3
- package/contracts/types/ObjectType.sol +20 -8
- package/contracts/types/RiskId.sol +43 -0
- package/package.json +1 -1
@@ -7,14 +7,19 @@
|
|
7
7
|
"inputs": [
|
8
8
|
{
|
9
9
|
"internalType": "NftId",
|
10
|
-
"name": "
|
10
|
+
"name": "policyNftId",
|
11
11
|
"type": "uint96"
|
12
12
|
},
|
13
13
|
{
|
14
14
|
"internalType": "NftId",
|
15
|
-
"name": "
|
15
|
+
"name": "productNftId",
|
16
16
|
"type": "uint96"
|
17
17
|
},
|
18
|
+
{
|
19
|
+
"internalType": "RiskId",
|
20
|
+
"name": "riskId",
|
21
|
+
"type": "bytes8"
|
22
|
+
},
|
18
23
|
{
|
19
24
|
"internalType": "uint256",
|
20
25
|
"name": "sumInsuredAmount",
|
@@ -36,7 +41,7 @@
|
|
36
41
|
"type": "uint96"
|
37
42
|
}
|
38
43
|
],
|
39
|
-
"name": "
|
44
|
+
"name": "createPolicyInfo",
|
40
45
|
"outputs": [],
|
41
46
|
"stateMutability": "nonpayable",
|
42
47
|
"type": "function"
|
@@ -53,11 +58,6 @@
|
|
53
58
|
"outputs": [
|
54
59
|
{
|
55
60
|
"components": [
|
56
|
-
{
|
57
|
-
"internalType": "NftId",
|
58
|
-
"name": "nftId",
|
59
|
-
"type": "uint96"
|
60
|
-
},
|
61
61
|
{
|
62
62
|
"internalType": "NftId",
|
63
63
|
"name": "productNftId",
|
@@ -74,9 +74,9 @@
|
|
74
74
|
"type": "address"
|
75
75
|
},
|
76
76
|
{
|
77
|
-
"internalType": "
|
78
|
-
"name": "
|
79
|
-
"type": "
|
77
|
+
"internalType": "RiskId",
|
78
|
+
"name": "riskId",
|
79
|
+
"type": "bytes8"
|
80
80
|
},
|
81
81
|
{
|
82
82
|
"internalType": "uint256",
|
@@ -100,13 +100,13 @@
|
|
100
100
|
},
|
101
101
|
{
|
102
102
|
"internalType": "bytes",
|
103
|
-
"name": "
|
103
|
+
"name": "applicationData",
|
104
104
|
"type": "bytes"
|
105
105
|
},
|
106
106
|
{
|
107
|
-
"internalType": "
|
108
|
-
"name": "
|
109
|
-
"type": "
|
107
|
+
"internalType": "bytes",
|
108
|
+
"name": "policyData",
|
109
|
+
"type": "bytes"
|
110
110
|
},
|
111
111
|
{
|
112
112
|
"internalType": "Timestamp",
|
@@ -122,11 +122,6 @@
|
|
122
122
|
"internalType": "Timestamp",
|
123
123
|
"name": "closedAt",
|
124
124
|
"type": "uint40"
|
125
|
-
},
|
126
|
-
{
|
127
|
-
"internalType": "Blocknumber",
|
128
|
-
"name": "updatedIn",
|
129
|
-
"type": "uint32"
|
130
125
|
}
|
131
126
|
],
|
132
127
|
"internalType": "struct IPolicy.PolicyInfo",
|
@@ -137,6 +132,25 @@
|
|
137
132
|
"stateMutability": "view",
|
138
133
|
"type": "function"
|
139
134
|
},
|
135
|
+
{
|
136
|
+
"inputs": [
|
137
|
+
{
|
138
|
+
"internalType": "NftId",
|
139
|
+
"name": "nftId",
|
140
|
+
"type": "uint96"
|
141
|
+
}
|
142
|
+
],
|
143
|
+
"name": "getPolicyState",
|
144
|
+
"outputs": [
|
145
|
+
{
|
146
|
+
"internalType": "StateId",
|
147
|
+
"name": "state",
|
148
|
+
"type": "uint8"
|
149
|
+
}
|
150
|
+
],
|
151
|
+
"stateMutability": "view",
|
152
|
+
"type": "function"
|
153
|
+
},
|
140
154
|
{
|
141
155
|
"inputs": [],
|
142
156
|
"name": "getProductService",
|
@@ -165,13 +179,13 @@
|
|
165
179
|
},
|
166
180
|
{
|
167
181
|
"inputs": [
|
182
|
+
{
|
183
|
+
"internalType": "NftId",
|
184
|
+
"name": "policyNftId",
|
185
|
+
"type": "uint96"
|
186
|
+
},
|
168
187
|
{
|
169
188
|
"components": [
|
170
|
-
{
|
171
|
-
"internalType": "NftId",
|
172
|
-
"name": "nftId",
|
173
|
-
"type": "uint96"
|
174
|
-
},
|
175
189
|
{
|
176
190
|
"internalType": "NftId",
|
177
191
|
"name": "productNftId",
|
@@ -188,9 +202,9 @@
|
|
188
202
|
"type": "address"
|
189
203
|
},
|
190
204
|
{
|
191
|
-
"internalType": "
|
192
|
-
"name": "
|
193
|
-
"type": "
|
205
|
+
"internalType": "RiskId",
|
206
|
+
"name": "riskId",
|
207
|
+
"type": "bytes8"
|
194
208
|
},
|
195
209
|
{
|
196
210
|
"internalType": "uint256",
|
@@ -214,13 +228,13 @@
|
|
214
228
|
},
|
215
229
|
{
|
216
230
|
"internalType": "bytes",
|
217
|
-
"name": "
|
231
|
+
"name": "applicationData",
|
218
232
|
"type": "bytes"
|
219
233
|
},
|
220
234
|
{
|
221
|
-
"internalType": "
|
222
|
-
"name": "
|
223
|
-
"type": "
|
235
|
+
"internalType": "bytes",
|
236
|
+
"name": "policyData",
|
237
|
+
"type": "bytes"
|
224
238
|
},
|
225
239
|
{
|
226
240
|
"internalType": "Timestamp",
|
@@ -236,15 +250,10 @@
|
|
236
250
|
"internalType": "Timestamp",
|
237
251
|
"name": "closedAt",
|
238
252
|
"type": "uint40"
|
239
|
-
},
|
240
|
-
{
|
241
|
-
"internalType": "Blocknumber",
|
242
|
-
"name": "updatedIn",
|
243
|
-
"type": "uint32"
|
244
253
|
}
|
245
254
|
],
|
246
255
|
"internalType": "struct IPolicy.PolicyInfo",
|
247
|
-
"name": "
|
256
|
+
"name": "info",
|
248
257
|
"type": "tuple"
|
249
258
|
}
|
250
259
|
],
|
@@ -252,6 +261,24 @@
|
|
252
261
|
"outputs": [],
|
253
262
|
"stateMutability": "nonpayable",
|
254
263
|
"type": "function"
|
264
|
+
},
|
265
|
+
{
|
266
|
+
"inputs": [
|
267
|
+
{
|
268
|
+
"internalType": "NftId",
|
269
|
+
"name": "nftId",
|
270
|
+
"type": "uint96"
|
271
|
+
},
|
272
|
+
{
|
273
|
+
"internalType": "StateId",
|
274
|
+
"name": "state",
|
275
|
+
"type": "uint8"
|
276
|
+
}
|
277
|
+
],
|
278
|
+
"name": "updatePolicyState",
|
279
|
+
"outputs": [],
|
280
|
+
"stateMutability": "nonpayable",
|
281
|
+
"type": "function"
|
255
282
|
}
|
256
283
|
],
|
257
284
|
"bytecode": "0x",
|
@@ -7,14 +7,19 @@
|
|
7
7
|
"inputs": [
|
8
8
|
{
|
9
9
|
"internalType": "NftId",
|
10
|
-
"name": "
|
10
|
+
"name": "policyNftId",
|
11
11
|
"type": "uint96"
|
12
12
|
},
|
13
13
|
{
|
14
14
|
"internalType": "NftId",
|
15
|
-
"name": "
|
15
|
+
"name": "productNftId",
|
16
16
|
"type": "uint96"
|
17
17
|
},
|
18
|
+
{
|
19
|
+
"internalType": "RiskId",
|
20
|
+
"name": "riskId",
|
21
|
+
"type": "bytes8"
|
22
|
+
},
|
18
23
|
{
|
19
24
|
"internalType": "uint256",
|
20
25
|
"name": "sumInsuredAmount",
|
@@ -36,7 +41,7 @@
|
|
36
41
|
"type": "uint96"
|
37
42
|
}
|
38
43
|
],
|
39
|
-
"name": "
|
44
|
+
"name": "createPolicyInfo",
|
40
45
|
"outputs": [],
|
41
46
|
"stateMutability": "nonpayable",
|
42
47
|
"type": "function"
|
@@ -53,11 +58,6 @@
|
|
53
58
|
"outputs": [
|
54
59
|
{
|
55
60
|
"components": [
|
56
|
-
{
|
57
|
-
"internalType": "NftId",
|
58
|
-
"name": "nftId",
|
59
|
-
"type": "uint96"
|
60
|
-
},
|
61
61
|
{
|
62
62
|
"internalType": "NftId",
|
63
63
|
"name": "productNftId",
|
@@ -74,9 +74,9 @@
|
|
74
74
|
"type": "address"
|
75
75
|
},
|
76
76
|
{
|
77
|
-
"internalType": "
|
78
|
-
"name": "
|
79
|
-
"type": "
|
77
|
+
"internalType": "RiskId",
|
78
|
+
"name": "riskId",
|
79
|
+
"type": "bytes8"
|
80
80
|
},
|
81
81
|
{
|
82
82
|
"internalType": "uint256",
|
@@ -100,13 +100,13 @@
|
|
100
100
|
},
|
101
101
|
{
|
102
102
|
"internalType": "bytes",
|
103
|
-
"name": "
|
103
|
+
"name": "applicationData",
|
104
104
|
"type": "bytes"
|
105
105
|
},
|
106
106
|
{
|
107
|
-
"internalType": "
|
108
|
-
"name": "
|
109
|
-
"type": "
|
107
|
+
"internalType": "bytes",
|
108
|
+
"name": "policyData",
|
109
|
+
"type": "bytes"
|
110
110
|
},
|
111
111
|
{
|
112
112
|
"internalType": "Timestamp",
|
@@ -122,11 +122,6 @@
|
|
122
122
|
"internalType": "Timestamp",
|
123
123
|
"name": "closedAt",
|
124
124
|
"type": "uint40"
|
125
|
-
},
|
126
|
-
{
|
127
|
-
"internalType": "Blocknumber",
|
128
|
-
"name": "updatedIn",
|
129
|
-
"type": "uint32"
|
130
125
|
}
|
131
126
|
],
|
132
127
|
"internalType": "struct IPolicy.PolicyInfo",
|
@@ -137,6 +132,25 @@
|
|
137
132
|
"stateMutability": "view",
|
138
133
|
"type": "function"
|
139
134
|
},
|
135
|
+
{
|
136
|
+
"inputs": [
|
137
|
+
{
|
138
|
+
"internalType": "NftId",
|
139
|
+
"name": "nftId",
|
140
|
+
"type": "uint96"
|
141
|
+
}
|
142
|
+
],
|
143
|
+
"name": "getPolicyState",
|
144
|
+
"outputs": [
|
145
|
+
{
|
146
|
+
"internalType": "StateId",
|
147
|
+
"name": "state",
|
148
|
+
"type": "uint8"
|
149
|
+
}
|
150
|
+
],
|
151
|
+
"stateMutability": "view",
|
152
|
+
"type": "function"
|
153
|
+
},
|
140
154
|
{
|
141
155
|
"inputs": [],
|
142
156
|
"name": "getProductService",
|
@@ -165,13 +179,13 @@
|
|
165
179
|
},
|
166
180
|
{
|
167
181
|
"inputs": [
|
182
|
+
{
|
183
|
+
"internalType": "NftId",
|
184
|
+
"name": "policyNftId",
|
185
|
+
"type": "uint96"
|
186
|
+
},
|
168
187
|
{
|
169
188
|
"components": [
|
170
|
-
{
|
171
|
-
"internalType": "NftId",
|
172
|
-
"name": "nftId",
|
173
|
-
"type": "uint96"
|
174
|
-
},
|
175
189
|
{
|
176
190
|
"internalType": "NftId",
|
177
191
|
"name": "productNftId",
|
@@ -188,9 +202,9 @@
|
|
188
202
|
"type": "address"
|
189
203
|
},
|
190
204
|
{
|
191
|
-
"internalType": "
|
192
|
-
"name": "
|
193
|
-
"type": "
|
205
|
+
"internalType": "RiskId",
|
206
|
+
"name": "riskId",
|
207
|
+
"type": "bytes8"
|
194
208
|
},
|
195
209
|
{
|
196
210
|
"internalType": "uint256",
|
@@ -214,13 +228,13 @@
|
|
214
228
|
},
|
215
229
|
{
|
216
230
|
"internalType": "bytes",
|
217
|
-
"name": "
|
231
|
+
"name": "applicationData",
|
218
232
|
"type": "bytes"
|
219
233
|
},
|
220
234
|
{
|
221
|
-
"internalType": "
|
222
|
-
"name": "
|
223
|
-
"type": "
|
235
|
+
"internalType": "bytes",
|
236
|
+
"name": "policyData",
|
237
|
+
"type": "bytes"
|
224
238
|
},
|
225
239
|
{
|
226
240
|
"internalType": "Timestamp",
|
@@ -236,15 +250,10 @@
|
|
236
250
|
"internalType": "Timestamp",
|
237
251
|
"name": "closedAt",
|
238
252
|
"type": "uint40"
|
239
|
-
},
|
240
|
-
{
|
241
|
-
"internalType": "Blocknumber",
|
242
|
-
"name": "updatedIn",
|
243
|
-
"type": "uint32"
|
244
253
|
}
|
245
254
|
],
|
246
255
|
"internalType": "struct IPolicy.PolicyInfo",
|
247
|
-
"name": "
|
256
|
+
"name": "info",
|
248
257
|
"type": "tuple"
|
249
258
|
}
|
250
259
|
],
|
@@ -252,6 +261,24 @@
|
|
252
261
|
"outputs": [],
|
253
262
|
"stateMutability": "nonpayable",
|
254
263
|
"type": "function"
|
264
|
+
},
|
265
|
+
{
|
266
|
+
"inputs": [
|
267
|
+
{
|
268
|
+
"internalType": "NftId",
|
269
|
+
"name": "bundleNftId",
|
270
|
+
"type": "uint96"
|
271
|
+
},
|
272
|
+
{
|
273
|
+
"internalType": "StateId",
|
274
|
+
"name": "state",
|
275
|
+
"type": "uint8"
|
276
|
+
}
|
277
|
+
],
|
278
|
+
"name": "updatePolicyState",
|
279
|
+
"outputs": [],
|
280
|
+
"stateMutability": "nonpayable",
|
281
|
+
"type": "function"
|
255
282
|
}
|
256
283
|
],
|
257
284
|
"bytecode": "0x",
|
@@ -2,7 +2,129 @@
|
|
2
2
|
"_format": "hh-sol-artifact-1",
|
3
3
|
"contractName": "IRiskModule",
|
4
4
|
"sourceName": "contracts/instance/module/risk/IRisk.sol",
|
5
|
-
"abi": [
|
5
|
+
"abi": [
|
6
|
+
{
|
7
|
+
"inputs": [
|
8
|
+
{
|
9
|
+
"internalType": "RiskId",
|
10
|
+
"name": "riskId",
|
11
|
+
"type": "bytes8"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"internalType": "NftId",
|
15
|
+
"name": "productNftId",
|
16
|
+
"type": "uint96"
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"internalType": "bytes",
|
20
|
+
"name": "data",
|
21
|
+
"type": "bytes"
|
22
|
+
}
|
23
|
+
],
|
24
|
+
"name": "createRisk",
|
25
|
+
"outputs": [],
|
26
|
+
"stateMutability": "nonpayable",
|
27
|
+
"type": "function"
|
28
|
+
},
|
29
|
+
{
|
30
|
+
"inputs": [
|
31
|
+
{
|
32
|
+
"internalType": "RiskId",
|
33
|
+
"name": "riskId",
|
34
|
+
"type": "bytes8"
|
35
|
+
}
|
36
|
+
],
|
37
|
+
"name": "getRiskInfo",
|
38
|
+
"outputs": [
|
39
|
+
{
|
40
|
+
"components": [
|
41
|
+
{
|
42
|
+
"internalType": "NftId",
|
43
|
+
"name": "productNftId",
|
44
|
+
"type": "uint96"
|
45
|
+
},
|
46
|
+
{
|
47
|
+
"internalType": "bytes",
|
48
|
+
"name": "data",
|
49
|
+
"type": "bytes"
|
50
|
+
}
|
51
|
+
],
|
52
|
+
"internalType": "struct IRisk.RiskInfo",
|
53
|
+
"name": "info",
|
54
|
+
"type": "tuple"
|
55
|
+
}
|
56
|
+
],
|
57
|
+
"stateMutability": "view",
|
58
|
+
"type": "function"
|
59
|
+
},
|
60
|
+
{
|
61
|
+
"inputs": [
|
62
|
+
{
|
63
|
+
"internalType": "RiskId",
|
64
|
+
"name": "riskId",
|
65
|
+
"type": "bytes8"
|
66
|
+
}
|
67
|
+
],
|
68
|
+
"name": "getRiskState",
|
69
|
+
"outputs": [
|
70
|
+
{
|
71
|
+
"internalType": "StateId",
|
72
|
+
"name": "state",
|
73
|
+
"type": "uint8"
|
74
|
+
}
|
75
|
+
],
|
76
|
+
"stateMutability": "view",
|
77
|
+
"type": "function"
|
78
|
+
},
|
79
|
+
{
|
80
|
+
"inputs": [
|
81
|
+
{
|
82
|
+
"internalType": "RiskId",
|
83
|
+
"name": "riskId",
|
84
|
+
"type": "bytes8"
|
85
|
+
},
|
86
|
+
{
|
87
|
+
"components": [
|
88
|
+
{
|
89
|
+
"internalType": "NftId",
|
90
|
+
"name": "productNftId",
|
91
|
+
"type": "uint96"
|
92
|
+
},
|
93
|
+
{
|
94
|
+
"internalType": "bytes",
|
95
|
+
"name": "data",
|
96
|
+
"type": "bytes"
|
97
|
+
}
|
98
|
+
],
|
99
|
+
"internalType": "struct IRisk.RiskInfo",
|
100
|
+
"name": "info",
|
101
|
+
"type": "tuple"
|
102
|
+
}
|
103
|
+
],
|
104
|
+
"name": "setRiskInfo",
|
105
|
+
"outputs": [],
|
106
|
+
"stateMutability": "nonpayable",
|
107
|
+
"type": "function"
|
108
|
+
},
|
109
|
+
{
|
110
|
+
"inputs": [
|
111
|
+
{
|
112
|
+
"internalType": "RiskId",
|
113
|
+
"name": "riskId",
|
114
|
+
"type": "bytes8"
|
115
|
+
},
|
116
|
+
{
|
117
|
+
"internalType": "StateId",
|
118
|
+
"name": "state",
|
119
|
+
"type": "uint8"
|
120
|
+
}
|
121
|
+
],
|
122
|
+
"name": "updateRiskState",
|
123
|
+
"outputs": [],
|
124
|
+
"stateMutability": "nonpayable",
|
125
|
+
"type": "function"
|
126
|
+
}
|
127
|
+
],
|
6
128
|
"bytecode": "0x",
|
7
129
|
"deployedBytecode": "0x",
|
8
130
|
"linkReferences": {},
|