@etherisc/gif-next 0.0.2-f0d86c2-077 → 0.0.2-f72939c-683

Sign up to get free protection for your applications and to get access to all the features.
Files changed (176) hide show
  1. package/README.md +38 -11
  2. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +1 -1
  3. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +1 -1
  4. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  5. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  6. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  7. package/artifacts/contracts/components/Pool.sol/Pool.json +72 -4
  8. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  9. package/artifacts/contracts/components/Product.sol/Product.json +46 -3
  10. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
  11. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
  12. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
  13. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
  14. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
  15. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
  16. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
  17. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
  18. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
  19. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
  20. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
  21. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +2 -2
  22. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
  23. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
  24. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
  25. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
  26. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
  27. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
  28. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  29. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +540 -401
  30. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +1 -1
  31. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  32. package/artifacts/contracts/instance/Instance.sol/Instance.json +640 -469
  33. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +1 -1
  34. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +1 -1
  35. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +18 -0
  36. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  37. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +49 -0
  38. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  39. package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +1 -1
  40. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +1 -1
  41. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.json +18 -0
  42. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  43. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +41 -23
  44. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  45. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +4 -4
  46. package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +1 -1
  47. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +1 -1
  48. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +1 -1
  49. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +1 -1
  50. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +1 -1
  51. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +1 -1
  52. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +17 -48
  53. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +1 -1
  54. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +1 -1
  55. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +18 -49
  56. package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.dbg.json +1 -1
  57. package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.json +2 -2
  58. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.dbg.json +1 -1
  59. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.dbg.json +1 -1
  60. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +1 -1
  61. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +36 -88
  62. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +1 -1
  63. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +1 -1
  64. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.json +36 -88
  65. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +1 -1
  66. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +1 -1
  67. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.json +65 -38
  68. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +1 -1
  69. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +65 -38
  70. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +1 -1
  71. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +1 -1
  72. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.json +0 -5
  73. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +1 -1
  74. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +0 -5
  75. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +1 -1
  76. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +1 -1
  77. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +123 -1
  78. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +1 -1
  79. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +145 -5
  80. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +1 -1
  81. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +1 -1
  82. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +166 -168
  83. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  84. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +2 -2
  85. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +1 -1
  86. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +167 -169
  87. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +1 -1
  88. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +21 -21
  89. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +1 -1
  90. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  91. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  92. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +71 -0
  93. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
  94. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +6 -6
  95. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
  96. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +97 -26
  97. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  98. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +1 -1
  99. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  100. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +1 -1
  101. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  102. package/artifacts/contracts/registry/Registry.sol/Registry.json +2 -2
  103. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  104. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +1 -1
  105. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  106. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  107. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  108. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  109. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  110. package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +1 -1
  111. package/artifacts/contracts/test/TestPool.sol/TestPool.json +72 -4
  112. package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +1 -1
  113. package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +90 -4
  114. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  115. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +2 -2
  116. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  117. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  118. package/artifacts/contracts/test/TestService.sol/TestService.json +2 -2
  119. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  120. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  121. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  122. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  123. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  124. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  125. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  126. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  127. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  128. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +2 -2
  129. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  130. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +2 -2
  131. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  132. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +2 -2
  133. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  134. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  135. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +4 -0
  136. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +86 -0
  137. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  138. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  139. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  140. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +1 -1
  141. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  142. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  143. package/contracts/components/BaseComponent.sol +7 -1
  144. package/contracts/components/Pool.sol +20 -3
  145. package/contracts/components/Product.sol +69 -5
  146. package/contracts/instance/IInstance.sol +3 -4
  147. package/contracts/instance/Instance.sol +7 -4
  148. package/contracts/instance/base/IInstanceBase.sol +5 -0
  149. package/contracts/instance/base/IKeyValueStore.sol +4 -3
  150. package/contracts/instance/base/InstanceBase.sol +6 -2
  151. package/contracts/instance/base/KeyValueStore.sol +12 -7
  152. package/contracts/instance/base/Lifecycle.sol +15 -10
  153. package/contracts/instance/base/ModuleBase.sol +18 -17
  154. package/contracts/instance/module/bundle/BundleModule.sol +10 -11
  155. package/contracts/instance/module/bundle/IBundle.sol +4 -11
  156. package/contracts/instance/module/compensation/CompensationModule.sol +11 -2
  157. package/contracts/instance/module/component/ComponentModule.sol +39 -53
  158. package/contracts/instance/module/component/IComponent.sol +6 -30
  159. package/contracts/instance/module/policy/IPolicy.sol +11 -9
  160. package/contracts/instance/module/policy/PolicyModule.sol +35 -19
  161. package/contracts/instance/module/pool/IPoolModule.sol +0 -1
  162. package/contracts/instance/module/pool/PoolModule.sol +12 -9
  163. package/contracts/instance/module/risk/IRisk.sol +19 -2
  164. package/contracts/instance/module/risk/RiskModule.sol +64 -2
  165. package/contracts/instance/module/treasury/ITreasury.sol +35 -42
  166. package/contracts/instance/module/treasury/TreasuryModule.sol +96 -77
  167. package/contracts/instance/service/ComponentOwnerService.sol +19 -34
  168. package/contracts/instance/service/IProductService.sol +21 -1
  169. package/contracts/instance/service/PoolService.sol +10 -4
  170. package/contracts/instance/service/ProductService.sol +120 -68
  171. package/contracts/registry/Registry.sol +2 -2
  172. package/contracts/test/TestPool.sol +4 -2
  173. package/contracts/test/TestProduct.sol +25 -3
  174. package/contracts/types/ObjectType.sol +20 -8
  175. package/contracts/types/RiskId.sol +43 -0
  176. package/package.json +1 -1
@@ -7,14 +7,19 @@
7
7
  "inputs": [
8
8
  {
9
9
  "internalType": "NftId",
10
- "name": "productNftId",
10
+ "name": "policyNftId",
11
11
  "type": "uint96"
12
12
  },
13
13
  {
14
14
  "internalType": "NftId",
15
- "name": "policyNftId",
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": "createApplication",
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": "StateId",
78
- "name": "state",
79
- "type": "uint8"
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": "data",
103
+ "name": "applicationData",
104
104
  "type": "bytes"
105
105
  },
106
106
  {
107
- "internalType": "Timestamp",
108
- "name": "createdAt",
109
- "type": "uint40"
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": "StateId",
192
- "name": "state",
193
- "type": "uint8"
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": "data",
231
+ "name": "applicationData",
218
232
  "type": "bytes"
219
233
  },
220
234
  {
221
- "internalType": "Timestamp",
222
- "name": "createdAt",
223
- "type": "uint40"
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": "policyInfo",
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",
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/ac8b1a0ba35c3a8a508882d70043ad3f.json"
3
+ "buildInfo": "../../../../../build-info/01797c1a22420f170e92428a4c013a0c.json"
4
4
  }
@@ -7,14 +7,19 @@
7
7
  "inputs": [
8
8
  {
9
9
  "internalType": "NftId",
10
- "name": "productNftId",
10
+ "name": "policyNftId",
11
11
  "type": "uint96"
12
12
  },
13
13
  {
14
14
  "internalType": "NftId",
15
- "name": "policyNftId",
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": "createApplication",
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": "StateId",
78
- "name": "state",
79
- "type": "uint8"
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": "data",
103
+ "name": "applicationData",
104
104
  "type": "bytes"
105
105
  },
106
106
  {
107
- "internalType": "Timestamp",
108
- "name": "createdAt",
109
- "type": "uint40"
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": "StateId",
192
- "name": "state",
193
- "type": "uint8"
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": "data",
231
+ "name": "applicationData",
218
232
  "type": "bytes"
219
233
  },
220
234
  {
221
- "internalType": "Timestamp",
222
- "name": "createdAt",
223
- "type": "uint40"
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": "policyInfo",
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",
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/ac8b1a0ba35c3a8a508882d70043ad3f.json"
3
+ "buildInfo": "../../../../../build-info/01797c1a22420f170e92428a4c013a0c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/ac8b1a0ba35c3a8a508882d70043ad3f.json"
3
+ "buildInfo": "../../../../../build-info/01797c1a22420f170e92428a4c013a0c.json"
4
4
  }
@@ -81,11 +81,6 @@
81
81
  "outputs": [
82
82
  {
83
83
  "components": [
84
- {
85
- "internalType": "NftId",
86
- "name": "nftId",
87
- "type": "uint96"
88
- },
89
84
  {
90
85
  "internalType": "bool",
91
86
  "name": "isVerifying",
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/ac8b1a0ba35c3a8a508882d70043ad3f.json"
3
+ "buildInfo": "../../../../../build-info/01797c1a22420f170e92428a4c013a0c.json"
4
4
  }
@@ -81,11 +81,6 @@
81
81
  "outputs": [
82
82
  {
83
83
  "components": [
84
- {
85
- "internalType": "NftId",
86
- "name": "nftId",
87
- "type": "uint96"
88
- },
89
84
  {
90
85
  "internalType": "bool",
91
86
  "name": "isVerifying",
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/ac8b1a0ba35c3a8a508882d70043ad3f.json"
3
+ "buildInfo": "../../../../../build-info/01797c1a22420f170e92428a4c013a0c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/ac8b1a0ba35c3a8a508882d70043ad3f.json"
3
+ "buildInfo": "../../../../../build-info/01797c1a22420f170e92428a4c013a0c.json"
4
4
  }
@@ -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": {},
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/ac8b1a0ba35c3a8a508882d70043ad3f.json"
3
+ "buildInfo": "../../../../../build-info/01797c1a22420f170e92428a4c013a0c.json"
4
4
  }