@etherisc/gif-next 0.0.2-def25d4-556 → 0.0.2-e1f23dc-329

Sign up to get free protection for your applications and to get access to all the features.
Files changed (172) hide show
  1. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +1 -1
  2. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
  3. package/artifacts/contracts/components/Distribution.sol/Distribution.json +10 -62
  4. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +1 -1
  5. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
  6. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +0 -52
  7. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  8. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  9. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  10. package/artifacts/contracts/components/Pool.sol/Pool.json +8 -16
  11. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  12. package/artifacts/contracts/components/Product.sol/Product.json +8 -64
  13. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +1 -1
  14. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +1 -1
  15. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +1 -1
  16. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
  17. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
  18. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
  19. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
  20. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
  21. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
  22. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
  23. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
  24. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
  25. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
  26. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
  27. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
  28. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
  29. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
  30. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
  31. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
  32. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
  33. package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.dbg.json +1 -1
  34. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.dbg.json +1 -1
  35. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +1 -1
  36. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  37. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1304 -93
  38. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  39. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  40. package/artifacts/contracts/instance/Instance.sol/Instance.json +120 -84
  41. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
  42. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +2 -2
  43. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
  44. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +162 -38
  45. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  46. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +98 -18
  47. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  48. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +63 -27
  49. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +1 -1
  50. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +56 -2
  51. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +1 -1
  52. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  53. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  54. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  55. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  56. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
  57. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
  58. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
  59. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  60. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  61. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +1 -1
  62. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +1 -1
  63. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +1 -1
  64. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +16 -16
  65. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
  66. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +83 -24
  67. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
  68. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +26 -18
  69. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +1 -1
  70. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  71. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  72. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +87 -0
  73. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  74. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +19 -31
  75. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
  76. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +926 -0
  77. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  78. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +448 -0
  79. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
  80. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +1094 -0
  81. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  82. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +472 -0
  83. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  84. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  85. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +2 -110
  86. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  87. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +94 -0
  88. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  89. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  90. package/artifacts/contracts/registry/Registry.sol/Registry.json +35 -146
  91. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  92. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +76 -20
  93. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  94. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +26 -34
  95. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
  96. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +12 -12
  97. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +1 -1
  98. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  99. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  100. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  101. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
  102. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  103. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  104. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +2 -2
  105. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  106. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +2 -2
  107. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  108. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +2 -2
  109. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +1 -1
  110. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
  111. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  112. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  113. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  114. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  115. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  116. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +4 -4
  117. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  118. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +2 -2
  119. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  120. package/artifacts/contracts/test/TestService.sol/TestService.json +9 -9
  121. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  122. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  123. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  124. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  125. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  126. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  127. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  128. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
  129. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  130. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  131. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  132. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  133. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +1 -1
  134. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  135. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +1 -1
  136. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
  137. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  138. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
  139. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  140. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  141. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +1 -1
  142. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +1 -1
  143. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  144. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  145. package/contracts/components/Distribution.sol +8 -15
  146. package/contracts/components/IDistributionComponent.sol +0 -2
  147. package/contracts/components/Pool.sol +4 -20
  148. package/contracts/components/Product.sol +28 -41
  149. package/contracts/instance/IInstance.sol +28 -6
  150. package/contracts/instance/Instance.sol +14 -14
  151. package/contracts/instance/InstanceReader.sol +26 -1
  152. package/contracts/instance/InstanceService.sol +32 -4
  153. package/contracts/instance/InstanceServiceManager.sol +6 -5
  154. package/contracts/instance/base/ComponentServiceBase.sol +95 -2
  155. package/contracts/instance/module/IBundle.sol +1 -0
  156. package/contracts/instance/module/ISetup.sol +1 -0
  157. package/contracts/instance/service/DistributionService.sol +8 -25
  158. package/contracts/instance/service/DistributionServiceManager.sol +6 -5
  159. package/contracts/instance/service/IPoolService.sol +4 -0
  160. package/contracts/instance/service/IProductService.sol +3 -3
  161. package/contracts/instance/service/PoolService.sol +201 -0
  162. package/contracts/instance/service/PoolServiceManager.sol +54 -0
  163. package/contracts/instance/service/ProductService.sol +564 -0
  164. package/contracts/instance/service/ProductServiceManager.sol +54 -0
  165. package/contracts/registry/IRegistry.sol +5 -18
  166. package/contracts/registry/IRegistryService.sol +28 -11
  167. package/contracts/registry/Registry.sol +4 -45
  168. package/contracts/registry/RegistryService.sol +30 -71
  169. package/contracts/shared/NftOwnable.sol +2 -4
  170. package/contracts/shared/Service.sol +1 -0
  171. package/contracts/types/RoleId.sol +2 -0
  172. package/package.json +1 -1
@@ -3,6 +3,1110 @@
3
3
  "contractName": "IInstance",
4
4
  "sourceName": "contracts/instance/IInstance.sol",
5
5
  "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "ObjectType",
10
+ "name": "objectType",
11
+ "type": "uint8"
12
+ },
13
+ {
14
+ "internalType": "StateId",
15
+ "name": "fromStateId",
16
+ "type": "uint8"
17
+ },
18
+ {
19
+ "internalType": "StateId",
20
+ "name": "toStateId",
21
+ "type": "uint8"
22
+ }
23
+ ],
24
+ "name": "ErrorInvalidStateTransition",
25
+ "type": "error"
26
+ },
27
+ {
28
+ "inputs": [
29
+ {
30
+ "internalType": "NftId",
31
+ "name": "nftId",
32
+ "type": "uint96"
33
+ },
34
+ {
35
+ "internalType": "ObjectType",
36
+ "name": "objectType",
37
+ "type": "uint8"
38
+ }
39
+ ],
40
+ "name": "ErrorNoLifecycle",
41
+ "type": "error"
42
+ },
43
+ {
44
+ "anonymous": false,
45
+ "inputs": [
46
+ {
47
+ "indexed": false,
48
+ "internalType": "ObjectType",
49
+ "name": "objectType",
50
+ "type": "uint8"
51
+ },
52
+ {
53
+ "indexed": false,
54
+ "internalType": "KeyId",
55
+ "name": "keyId",
56
+ "type": "bytes31"
57
+ },
58
+ {
59
+ "indexed": false,
60
+ "internalType": "StateId",
61
+ "name": "state",
62
+ "type": "uint8"
63
+ },
64
+ {
65
+ "indexed": false,
66
+ "internalType": "address",
67
+ "name": "createdBy",
68
+ "type": "address"
69
+ },
70
+ {
71
+ "indexed": false,
72
+ "internalType": "address",
73
+ "name": "txOrigin",
74
+ "type": "address"
75
+ }
76
+ ],
77
+ "name": "LogInfoCreated",
78
+ "type": "event"
79
+ },
80
+ {
81
+ "anonymous": false,
82
+ "inputs": [
83
+ {
84
+ "indexed": false,
85
+ "internalType": "ObjectType",
86
+ "name": "objectType",
87
+ "type": "uint8"
88
+ },
89
+ {
90
+ "indexed": false,
91
+ "internalType": "KeyId",
92
+ "name": "keyId",
93
+ "type": "bytes31"
94
+ },
95
+ {
96
+ "indexed": false,
97
+ "internalType": "StateId",
98
+ "name": "state",
99
+ "type": "uint8"
100
+ },
101
+ {
102
+ "indexed": false,
103
+ "internalType": "address",
104
+ "name": "updatedBy",
105
+ "type": "address"
106
+ },
107
+ {
108
+ "indexed": false,
109
+ "internalType": "address",
110
+ "name": "txOrigin",
111
+ "type": "address"
112
+ },
113
+ {
114
+ "indexed": false,
115
+ "internalType": "Blocknumber",
116
+ "name": "lastUpdatedIn",
117
+ "type": "uint32"
118
+ }
119
+ ],
120
+ "name": "LogInfoUpdated",
121
+ "type": "event"
122
+ },
123
+ {
124
+ "anonymous": false,
125
+ "inputs": [
126
+ {
127
+ "indexed": false,
128
+ "internalType": "ObjectType",
129
+ "name": "objectType",
130
+ "type": "uint8"
131
+ },
132
+ {
133
+ "indexed": false,
134
+ "internalType": "KeyId",
135
+ "name": "keyId",
136
+ "type": "bytes31"
137
+ },
138
+ {
139
+ "indexed": false,
140
+ "internalType": "StateId",
141
+ "name": "stateOld",
142
+ "type": "uint8"
143
+ },
144
+ {
145
+ "indexed": false,
146
+ "internalType": "StateId",
147
+ "name": "stateNew",
148
+ "type": "uint8"
149
+ },
150
+ {
151
+ "indexed": false,
152
+ "internalType": "address",
153
+ "name": "updatedBy",
154
+ "type": "address"
155
+ },
156
+ {
157
+ "indexed": false,
158
+ "internalType": "address",
159
+ "name": "txOrigin",
160
+ "type": "address"
161
+ },
162
+ {
163
+ "indexed": false,
164
+ "internalType": "Blocknumber",
165
+ "name": "lastUpdatedIn",
166
+ "type": "uint32"
167
+ }
168
+ ],
169
+ "name": "LogStateUpdated",
170
+ "type": "event"
171
+ },
172
+ {
173
+ "inputs": [
174
+ {
175
+ "internalType": "NftId",
176
+ "name": "bundleNftId",
177
+ "type": "uint96"
178
+ },
179
+ {
180
+ "components": [
181
+ {
182
+ "internalType": "NftId",
183
+ "name": "poolNftId",
184
+ "type": "uint96"
185
+ },
186
+ {
187
+ "components": [
188
+ {
189
+ "internalType": "UFixed",
190
+ "name": "fractionalFee",
191
+ "type": "uint256"
192
+ },
193
+ {
194
+ "internalType": "uint256",
195
+ "name": "fixedFee",
196
+ "type": "uint256"
197
+ }
198
+ ],
199
+ "internalType": "struct Fee",
200
+ "name": "fee",
201
+ "type": "tuple"
202
+ },
203
+ {
204
+ "internalType": "bytes",
205
+ "name": "filter",
206
+ "type": "bytes"
207
+ },
208
+ {
209
+ "internalType": "uint256",
210
+ "name": "capitalAmount",
211
+ "type": "uint256"
212
+ },
213
+ {
214
+ "internalType": "uint256",
215
+ "name": "lockedAmount",
216
+ "type": "uint256"
217
+ },
218
+ {
219
+ "internalType": "uint256",
220
+ "name": "balanceAmount",
221
+ "type": "uint256"
222
+ },
223
+ {
224
+ "internalType": "uint256",
225
+ "name": "lifetime",
226
+ "type": "uint256"
227
+ },
228
+ {
229
+ "internalType": "Timestamp",
230
+ "name": "expiredAt",
231
+ "type": "uint40"
232
+ },
233
+ {
234
+ "internalType": "Timestamp",
235
+ "name": "closedAt",
236
+ "type": "uint40"
237
+ }
238
+ ],
239
+ "internalType": "struct IBundle.BundleInfo",
240
+ "name": "bundle",
241
+ "type": "tuple"
242
+ }
243
+ ],
244
+ "name": "createBundle",
245
+ "outputs": [],
246
+ "stateMutability": "nonpayable",
247
+ "type": "function"
248
+ },
249
+ {
250
+ "inputs": [
251
+ {
252
+ "internalType": "NftId",
253
+ "name": "distributionNftId",
254
+ "type": "uint96"
255
+ },
256
+ {
257
+ "components": [
258
+ {
259
+ "internalType": "NftId",
260
+ "name": "productNftId",
261
+ "type": "uint96"
262
+ },
263
+ {
264
+ "internalType": "contract TokenHandler",
265
+ "name": "tokenHandler",
266
+ "type": "address"
267
+ },
268
+ {
269
+ "components": [
270
+ {
271
+ "internalType": "UFixed",
272
+ "name": "fractionalFee",
273
+ "type": "uint256"
274
+ },
275
+ {
276
+ "internalType": "uint256",
277
+ "name": "fixedFee",
278
+ "type": "uint256"
279
+ }
280
+ ],
281
+ "internalType": "struct Fee",
282
+ "name": "distributionFee",
283
+ "type": "tuple"
284
+ },
285
+ {
286
+ "internalType": "bool",
287
+ "name": "isIntercepting",
288
+ "type": "bool"
289
+ },
290
+ {
291
+ "internalType": "address",
292
+ "name": "wallet",
293
+ "type": "address"
294
+ }
295
+ ],
296
+ "internalType": "struct ISetup.DistributionSetupInfo",
297
+ "name": "setup",
298
+ "type": "tuple"
299
+ }
300
+ ],
301
+ "name": "createDistributionSetup",
302
+ "outputs": [],
303
+ "stateMutability": "nonpayable",
304
+ "type": "function"
305
+ },
306
+ {
307
+ "inputs": [
308
+ {
309
+ "internalType": "NftId",
310
+ "name": "policyNftId",
311
+ "type": "uint96"
312
+ },
313
+ {
314
+ "components": [
315
+ {
316
+ "internalType": "NftId",
317
+ "name": "productNftId",
318
+ "type": "uint96"
319
+ },
320
+ {
321
+ "internalType": "NftId",
322
+ "name": "bundleNftId",
323
+ "type": "uint96"
324
+ },
325
+ {
326
+ "internalType": "ReferralId",
327
+ "name": "referralId",
328
+ "type": "bytes8"
329
+ },
330
+ {
331
+ "internalType": "RiskId",
332
+ "name": "riskId",
333
+ "type": "bytes8"
334
+ },
335
+ {
336
+ "internalType": "uint256",
337
+ "name": "sumInsuredAmount",
338
+ "type": "uint256"
339
+ },
340
+ {
341
+ "internalType": "uint256",
342
+ "name": "premiumAmount",
343
+ "type": "uint256"
344
+ },
345
+ {
346
+ "internalType": "uint256",
347
+ "name": "premiumPaidAmount",
348
+ "type": "uint256"
349
+ },
350
+ {
351
+ "internalType": "uint256",
352
+ "name": "lifetime",
353
+ "type": "uint256"
354
+ },
355
+ {
356
+ "internalType": "bytes",
357
+ "name": "applicationData",
358
+ "type": "bytes"
359
+ },
360
+ {
361
+ "internalType": "bytes",
362
+ "name": "policyData",
363
+ "type": "bytes"
364
+ },
365
+ {
366
+ "internalType": "uint16",
367
+ "name": "claimsCount",
368
+ "type": "uint16"
369
+ },
370
+ {
371
+ "internalType": "uint16",
372
+ "name": "openClaimsCount",
373
+ "type": "uint16"
374
+ },
375
+ {
376
+ "internalType": "uint256",
377
+ "name": "payoutAmount",
378
+ "type": "uint256"
379
+ },
380
+ {
381
+ "internalType": "Timestamp",
382
+ "name": "activatedAt",
383
+ "type": "uint40"
384
+ },
385
+ {
386
+ "internalType": "Timestamp",
387
+ "name": "expiredAt",
388
+ "type": "uint40"
389
+ },
390
+ {
391
+ "internalType": "Timestamp",
392
+ "name": "closedAt",
393
+ "type": "uint40"
394
+ }
395
+ ],
396
+ "internalType": "struct IPolicy.PolicyInfo",
397
+ "name": "policy",
398
+ "type": "tuple"
399
+ }
400
+ ],
401
+ "name": "createPolicy",
402
+ "outputs": [],
403
+ "stateMutability": "nonpayable",
404
+ "type": "function"
405
+ },
406
+ {
407
+ "inputs": [
408
+ {
409
+ "internalType": "NftId",
410
+ "name": "poolNftId",
411
+ "type": "uint96"
412
+ },
413
+ {
414
+ "components": [
415
+ {
416
+ "internalType": "NftId",
417
+ "name": "productNftId",
418
+ "type": "uint96"
419
+ },
420
+ {
421
+ "internalType": "contract TokenHandler",
422
+ "name": "tokenHandler",
423
+ "type": "address"
424
+ },
425
+ {
426
+ "internalType": "UFixed",
427
+ "name": "collateralizationLevel",
428
+ "type": "uint256"
429
+ },
430
+ {
431
+ "components": [
432
+ {
433
+ "internalType": "UFixed",
434
+ "name": "fractionalFee",
435
+ "type": "uint256"
436
+ },
437
+ {
438
+ "internalType": "uint256",
439
+ "name": "fixedFee",
440
+ "type": "uint256"
441
+ }
442
+ ],
443
+ "internalType": "struct Fee",
444
+ "name": "poolFee",
445
+ "type": "tuple"
446
+ },
447
+ {
448
+ "components": [
449
+ {
450
+ "internalType": "UFixed",
451
+ "name": "fractionalFee",
452
+ "type": "uint256"
453
+ },
454
+ {
455
+ "internalType": "uint256",
456
+ "name": "fixedFee",
457
+ "type": "uint256"
458
+ }
459
+ ],
460
+ "internalType": "struct Fee",
461
+ "name": "stakingFee",
462
+ "type": "tuple"
463
+ },
464
+ {
465
+ "components": [
466
+ {
467
+ "internalType": "UFixed",
468
+ "name": "fractionalFee",
469
+ "type": "uint256"
470
+ },
471
+ {
472
+ "internalType": "uint256",
473
+ "name": "fixedFee",
474
+ "type": "uint256"
475
+ }
476
+ ],
477
+ "internalType": "struct Fee",
478
+ "name": "performanceFee",
479
+ "type": "tuple"
480
+ },
481
+ {
482
+ "internalType": "bool",
483
+ "name": "isIntercepting",
484
+ "type": "bool"
485
+ },
486
+ {
487
+ "internalType": "address",
488
+ "name": "wallet",
489
+ "type": "address"
490
+ }
491
+ ],
492
+ "internalType": "struct ISetup.PoolSetupInfo",
493
+ "name": "setup",
494
+ "type": "tuple"
495
+ }
496
+ ],
497
+ "name": "createPoolSetup",
498
+ "outputs": [],
499
+ "stateMutability": "nonpayable",
500
+ "type": "function"
501
+ },
502
+ {
503
+ "inputs": [
504
+ {
505
+ "internalType": "NftId",
506
+ "name": "productNftId",
507
+ "type": "uint96"
508
+ },
509
+ {
510
+ "components": [
511
+ {
512
+ "internalType": "contract IERC20Metadata",
513
+ "name": "token",
514
+ "type": "address"
515
+ },
516
+ {
517
+ "internalType": "contract TokenHandler",
518
+ "name": "tokenHandler",
519
+ "type": "address"
520
+ },
521
+ {
522
+ "internalType": "NftId",
523
+ "name": "distributionNftId",
524
+ "type": "uint96"
525
+ },
526
+ {
527
+ "internalType": "NftId",
528
+ "name": "poolNftId",
529
+ "type": "uint96"
530
+ },
531
+ {
532
+ "components": [
533
+ {
534
+ "internalType": "UFixed",
535
+ "name": "fractionalFee",
536
+ "type": "uint256"
537
+ },
538
+ {
539
+ "internalType": "uint256",
540
+ "name": "fixedFee",
541
+ "type": "uint256"
542
+ }
543
+ ],
544
+ "internalType": "struct Fee",
545
+ "name": "distributionFee",
546
+ "type": "tuple"
547
+ },
548
+ {
549
+ "components": [
550
+ {
551
+ "internalType": "UFixed",
552
+ "name": "fractionalFee",
553
+ "type": "uint256"
554
+ },
555
+ {
556
+ "internalType": "uint256",
557
+ "name": "fixedFee",
558
+ "type": "uint256"
559
+ }
560
+ ],
561
+ "internalType": "struct Fee",
562
+ "name": "productFee",
563
+ "type": "tuple"
564
+ },
565
+ {
566
+ "components": [
567
+ {
568
+ "internalType": "UFixed",
569
+ "name": "fractionalFee",
570
+ "type": "uint256"
571
+ },
572
+ {
573
+ "internalType": "uint256",
574
+ "name": "fixedFee",
575
+ "type": "uint256"
576
+ }
577
+ ],
578
+ "internalType": "struct Fee",
579
+ "name": "processingFee",
580
+ "type": "tuple"
581
+ },
582
+ {
583
+ "components": [
584
+ {
585
+ "internalType": "UFixed",
586
+ "name": "fractionalFee",
587
+ "type": "uint256"
588
+ },
589
+ {
590
+ "internalType": "uint256",
591
+ "name": "fixedFee",
592
+ "type": "uint256"
593
+ }
594
+ ],
595
+ "internalType": "struct Fee",
596
+ "name": "poolFee",
597
+ "type": "tuple"
598
+ },
599
+ {
600
+ "components": [
601
+ {
602
+ "internalType": "UFixed",
603
+ "name": "fractionalFee",
604
+ "type": "uint256"
605
+ },
606
+ {
607
+ "internalType": "uint256",
608
+ "name": "fixedFee",
609
+ "type": "uint256"
610
+ }
611
+ ],
612
+ "internalType": "struct Fee",
613
+ "name": "stakingFee",
614
+ "type": "tuple"
615
+ },
616
+ {
617
+ "components": [
618
+ {
619
+ "internalType": "UFixed",
620
+ "name": "fractionalFee",
621
+ "type": "uint256"
622
+ },
623
+ {
624
+ "internalType": "uint256",
625
+ "name": "fixedFee",
626
+ "type": "uint256"
627
+ }
628
+ ],
629
+ "internalType": "struct Fee",
630
+ "name": "performanceFee",
631
+ "type": "tuple"
632
+ }
633
+ ],
634
+ "internalType": "struct ISetup.ProductSetupInfo",
635
+ "name": "setup",
636
+ "type": "tuple"
637
+ }
638
+ ],
639
+ "name": "createProductSetup",
640
+ "outputs": [],
641
+ "stateMutability": "nonpayable",
642
+ "type": "function"
643
+ },
644
+ {
645
+ "inputs": [
646
+ {
647
+ "internalType": "RiskId",
648
+ "name": "riskId",
649
+ "type": "bytes8"
650
+ },
651
+ {
652
+ "components": [
653
+ {
654
+ "internalType": "NftId",
655
+ "name": "productNftId",
656
+ "type": "uint96"
657
+ },
658
+ {
659
+ "internalType": "bytes",
660
+ "name": "data",
661
+ "type": "bytes"
662
+ }
663
+ ],
664
+ "internalType": "struct IRisk.RiskInfo",
665
+ "name": "risk",
666
+ "type": "tuple"
667
+ }
668
+ ],
669
+ "name": "createRisk",
670
+ "outputs": [],
671
+ "stateMutability": "nonpayable",
672
+ "type": "function"
673
+ },
674
+ {
675
+ "inputs": [
676
+ {
677
+ "internalType": "Key32",
678
+ "name": "key",
679
+ "type": "bytes32"
680
+ }
681
+ ],
682
+ "name": "exists",
683
+ "outputs": [
684
+ {
685
+ "internalType": "bool",
686
+ "name": "",
687
+ "type": "bool"
688
+ }
689
+ ],
690
+ "stateMutability": "view",
691
+ "type": "function"
692
+ },
693
+ {
694
+ "inputs": [
695
+ {
696
+ "internalType": "Key32",
697
+ "name": "key",
698
+ "type": "bytes32"
699
+ }
700
+ ],
701
+ "name": "get",
702
+ "outputs": [
703
+ {
704
+ "components": [
705
+ {
706
+ "components": [
707
+ {
708
+ "internalType": "ObjectType",
709
+ "name": "objectType",
710
+ "type": "uint8"
711
+ },
712
+ {
713
+ "internalType": "StateId",
714
+ "name": "state",
715
+ "type": "uint8"
716
+ },
717
+ {
718
+ "internalType": "address",
719
+ "name": "updatedBy",
720
+ "type": "address"
721
+ },
722
+ {
723
+ "internalType": "Blocknumber",
724
+ "name": "updatedIn",
725
+ "type": "uint32"
726
+ },
727
+ {
728
+ "internalType": "Blocknumber",
729
+ "name": "createdIn",
730
+ "type": "uint32"
731
+ }
732
+ ],
733
+ "internalType": "struct IKeyValueStore.Metadata",
734
+ "name": "metadata",
735
+ "type": "tuple"
736
+ },
737
+ {
738
+ "internalType": "bytes",
739
+ "name": "data",
740
+ "type": "bytes"
741
+ }
742
+ ],
743
+ "internalType": "struct IKeyValueStore.Value",
744
+ "name": "value",
745
+ "type": "tuple"
746
+ }
747
+ ],
748
+ "stateMutability": "view",
749
+ "type": "function"
750
+ },
751
+ {
752
+ "inputs": [],
753
+ "name": "getComponentOwnerService",
754
+ "outputs": [
755
+ {
756
+ "internalType": "contract IComponentOwnerService",
757
+ "name": "",
758
+ "type": "address"
759
+ }
760
+ ],
761
+ "stateMutability": "view",
762
+ "type": "function"
763
+ },
764
+ {
765
+ "inputs": [
766
+ {
767
+ "internalType": "Key32",
768
+ "name": "key",
769
+ "type": "bytes32"
770
+ }
771
+ ],
772
+ "name": "getData",
773
+ "outputs": [
774
+ {
775
+ "internalType": "bytes",
776
+ "name": "data",
777
+ "type": "bytes"
778
+ }
779
+ ],
780
+ "stateMutability": "view",
781
+ "type": "function"
782
+ },
783
+ {
784
+ "inputs": [],
785
+ "name": "getDistributionService",
786
+ "outputs": [
787
+ {
788
+ "internalType": "contract IDistributionService",
789
+ "name": "",
790
+ "type": "address"
791
+ }
792
+ ],
793
+ "stateMutability": "view",
794
+ "type": "function"
795
+ },
796
+ {
797
+ "inputs": [
798
+ {
799
+ "internalType": "ObjectType",
800
+ "name": "objectType",
801
+ "type": "uint8"
802
+ }
803
+ ],
804
+ "name": "getInitialState",
805
+ "outputs": [
806
+ {
807
+ "internalType": "StateId",
808
+ "name": "",
809
+ "type": "uint8"
810
+ }
811
+ ],
812
+ "stateMutability": "view",
813
+ "type": "function"
814
+ },
815
+ {
816
+ "inputs": [],
817
+ "name": "getInstanceReader",
818
+ "outputs": [
819
+ {
820
+ "internalType": "contract InstanceReader",
821
+ "name": "",
822
+ "type": "address"
823
+ }
824
+ ],
825
+ "stateMutability": "view",
826
+ "type": "function"
827
+ },
828
+ {
829
+ "inputs": [
830
+ {
831
+ "internalType": "Key32",
832
+ "name": "key",
833
+ "type": "bytes32"
834
+ }
835
+ ],
836
+ "name": "getMetadata",
837
+ "outputs": [
838
+ {
839
+ "components": [
840
+ {
841
+ "internalType": "ObjectType",
842
+ "name": "objectType",
843
+ "type": "uint8"
844
+ },
845
+ {
846
+ "internalType": "StateId",
847
+ "name": "state",
848
+ "type": "uint8"
849
+ },
850
+ {
851
+ "internalType": "address",
852
+ "name": "updatedBy",
853
+ "type": "address"
854
+ },
855
+ {
856
+ "internalType": "Blocknumber",
857
+ "name": "updatedIn",
858
+ "type": "uint32"
859
+ },
860
+ {
861
+ "internalType": "Blocknumber",
862
+ "name": "createdIn",
863
+ "type": "uint32"
864
+ }
865
+ ],
866
+ "internalType": "struct IKeyValueStore.Metadata",
867
+ "name": "metadata",
868
+ "type": "tuple"
869
+ }
870
+ ],
871
+ "stateMutability": "view",
872
+ "type": "function"
873
+ },
874
+ {
875
+ "inputs": [],
876
+ "name": "getPoolService",
877
+ "outputs": [
878
+ {
879
+ "internalType": "contract IPoolService",
880
+ "name": "",
881
+ "type": "address"
882
+ }
883
+ ],
884
+ "stateMutability": "view",
885
+ "type": "function"
886
+ },
887
+ {
888
+ "inputs": [],
889
+ "name": "getProductService",
890
+ "outputs": [
891
+ {
892
+ "internalType": "contract IProductService",
893
+ "name": "",
894
+ "type": "address"
895
+ }
896
+ ],
897
+ "stateMutability": "view",
898
+ "type": "function"
899
+ },
900
+ {
901
+ "inputs": [
902
+ {
903
+ "internalType": "Key32",
904
+ "name": "key",
905
+ "type": "bytes32"
906
+ }
907
+ ],
908
+ "name": "getState",
909
+ "outputs": [
910
+ {
911
+ "internalType": "StateId",
912
+ "name": "state",
913
+ "type": "uint8"
914
+ }
915
+ ],
916
+ "stateMutability": "view",
917
+ "type": "function"
918
+ },
919
+ {
920
+ "inputs": [
921
+ {
922
+ "internalType": "ObjectType",
923
+ "name": "objectType",
924
+ "type": "uint8"
925
+ }
926
+ ],
927
+ "name": "hasLifecycle",
928
+ "outputs": [
929
+ {
930
+ "internalType": "bool",
931
+ "name": "",
932
+ "type": "bool"
933
+ }
934
+ ],
935
+ "stateMutability": "view",
936
+ "type": "function"
937
+ },
938
+ {
939
+ "inputs": [
940
+ {
941
+ "internalType": "ObjectType",
942
+ "name": "objectType",
943
+ "type": "uint8"
944
+ },
945
+ {
946
+ "internalType": "StateId",
947
+ "name": "fromId",
948
+ "type": "uint8"
949
+ },
950
+ {
951
+ "internalType": "StateId",
952
+ "name": "toId",
953
+ "type": "uint8"
954
+ }
955
+ ],
956
+ "name": "isValidTransition",
957
+ "outputs": [
958
+ {
959
+ "internalType": "bool",
960
+ "name": "",
961
+ "type": "bool"
962
+ }
963
+ ],
964
+ "stateMutability": "view",
965
+ "type": "function"
966
+ },
967
+ {
968
+ "inputs": [
969
+ {
970
+ "internalType": "bytes4",
971
+ "name": "interfaceId",
972
+ "type": "bytes4"
973
+ }
974
+ ],
975
+ "name": "supportsInterface",
976
+ "outputs": [
977
+ {
978
+ "internalType": "bool",
979
+ "name": "",
980
+ "type": "bool"
981
+ }
982
+ ],
983
+ "stateMutability": "view",
984
+ "type": "function"
985
+ },
986
+ {
987
+ "inputs": [
988
+ {
989
+ "internalType": "ObjectType",
990
+ "name": "objectType",
991
+ "type": "uint8"
992
+ },
993
+ {
994
+ "internalType": "KeyId",
995
+ "name": "id",
996
+ "type": "bytes31"
997
+ }
998
+ ],
999
+ "name": "toKey32",
1000
+ "outputs": [
1001
+ {
1002
+ "internalType": "Key32",
1003
+ "name": "",
1004
+ "type": "bytes32"
1005
+ }
1006
+ ],
1007
+ "stateMutability": "pure",
1008
+ "type": "function"
1009
+ },
1010
+ {
1011
+ "inputs": [
1012
+ {
1013
+ "internalType": "NftId",
1014
+ "name": "bundleNftId",
1015
+ "type": "uint96"
1016
+ },
1017
+ {
1018
+ "components": [
1019
+ {
1020
+ "internalType": "NftId",
1021
+ "name": "poolNftId",
1022
+ "type": "uint96"
1023
+ },
1024
+ {
1025
+ "components": [
1026
+ {
1027
+ "internalType": "UFixed",
1028
+ "name": "fractionalFee",
1029
+ "type": "uint256"
1030
+ },
1031
+ {
1032
+ "internalType": "uint256",
1033
+ "name": "fixedFee",
1034
+ "type": "uint256"
1035
+ }
1036
+ ],
1037
+ "internalType": "struct Fee",
1038
+ "name": "fee",
1039
+ "type": "tuple"
1040
+ },
1041
+ {
1042
+ "internalType": "bytes",
1043
+ "name": "filter",
1044
+ "type": "bytes"
1045
+ },
1046
+ {
1047
+ "internalType": "uint256",
1048
+ "name": "capitalAmount",
1049
+ "type": "uint256"
1050
+ },
1051
+ {
1052
+ "internalType": "uint256",
1053
+ "name": "lockedAmount",
1054
+ "type": "uint256"
1055
+ },
1056
+ {
1057
+ "internalType": "uint256",
1058
+ "name": "balanceAmount",
1059
+ "type": "uint256"
1060
+ },
1061
+ {
1062
+ "internalType": "uint256",
1063
+ "name": "lifetime",
1064
+ "type": "uint256"
1065
+ },
1066
+ {
1067
+ "internalType": "Timestamp",
1068
+ "name": "expiredAt",
1069
+ "type": "uint40"
1070
+ },
1071
+ {
1072
+ "internalType": "Timestamp",
1073
+ "name": "closedAt",
1074
+ "type": "uint40"
1075
+ }
1076
+ ],
1077
+ "internalType": "struct IBundle.BundleInfo",
1078
+ "name": "bundle",
1079
+ "type": "tuple"
1080
+ },
1081
+ {
1082
+ "internalType": "StateId",
1083
+ "name": "newState",
1084
+ "type": "uint8"
1085
+ }
1086
+ ],
1087
+ "name": "updateBundle",
1088
+ "outputs": [],
1089
+ "stateMutability": "nonpayable",
1090
+ "type": "function"
1091
+ },
1092
+ {
1093
+ "inputs": [
1094
+ {
1095
+ "internalType": "NftId",
1096
+ "name": "bundleNftId",
1097
+ "type": "uint96"
1098
+ },
1099
+ {
1100
+ "internalType": "StateId",
1101
+ "name": "newState",
1102
+ "type": "uint8"
1103
+ }
1104
+ ],
1105
+ "name": "updateBundleState",
1106
+ "outputs": [],
1107
+ "stateMutability": "nonpayable",
1108
+ "type": "function"
1109
+ },
6
1110
  {
7
1111
  "inputs": [
8
1112
  {
@@ -53,9 +1157,14 @@
53
1157
  "internalType": "struct ISetup.DistributionSetupInfo",
54
1158
  "name": "setup",
55
1159
  "type": "tuple"
1160
+ },
1161
+ {
1162
+ "internalType": "StateId",
1163
+ "name": "newState",
1164
+ "type": "uint8"
56
1165
  }
57
1166
  ],
58
- "name": "createDistributionSetup",
1167
+ "name": "updateDistributionSetup",
59
1168
  "outputs": [],
60
1169
  "stateMutability": "nonpayable",
61
1170
  "type": "function"
@@ -67,6 +1176,147 @@
67
1176
  "name": "distributionNftId",
68
1177
  "type": "uint96"
69
1178
  },
1179
+ {
1180
+ "internalType": "StateId",
1181
+ "name": "newState",
1182
+ "type": "uint8"
1183
+ }
1184
+ ],
1185
+ "name": "updateDistributionSetupState",
1186
+ "outputs": [],
1187
+ "stateMutability": "nonpayable",
1188
+ "type": "function"
1189
+ },
1190
+ {
1191
+ "inputs": [
1192
+ {
1193
+ "internalType": "NftId",
1194
+ "name": "policyNftId",
1195
+ "type": "uint96"
1196
+ },
1197
+ {
1198
+ "components": [
1199
+ {
1200
+ "internalType": "NftId",
1201
+ "name": "productNftId",
1202
+ "type": "uint96"
1203
+ },
1204
+ {
1205
+ "internalType": "NftId",
1206
+ "name": "bundleNftId",
1207
+ "type": "uint96"
1208
+ },
1209
+ {
1210
+ "internalType": "ReferralId",
1211
+ "name": "referralId",
1212
+ "type": "bytes8"
1213
+ },
1214
+ {
1215
+ "internalType": "RiskId",
1216
+ "name": "riskId",
1217
+ "type": "bytes8"
1218
+ },
1219
+ {
1220
+ "internalType": "uint256",
1221
+ "name": "sumInsuredAmount",
1222
+ "type": "uint256"
1223
+ },
1224
+ {
1225
+ "internalType": "uint256",
1226
+ "name": "premiumAmount",
1227
+ "type": "uint256"
1228
+ },
1229
+ {
1230
+ "internalType": "uint256",
1231
+ "name": "premiumPaidAmount",
1232
+ "type": "uint256"
1233
+ },
1234
+ {
1235
+ "internalType": "uint256",
1236
+ "name": "lifetime",
1237
+ "type": "uint256"
1238
+ },
1239
+ {
1240
+ "internalType": "bytes",
1241
+ "name": "applicationData",
1242
+ "type": "bytes"
1243
+ },
1244
+ {
1245
+ "internalType": "bytes",
1246
+ "name": "policyData",
1247
+ "type": "bytes"
1248
+ },
1249
+ {
1250
+ "internalType": "uint16",
1251
+ "name": "claimsCount",
1252
+ "type": "uint16"
1253
+ },
1254
+ {
1255
+ "internalType": "uint16",
1256
+ "name": "openClaimsCount",
1257
+ "type": "uint16"
1258
+ },
1259
+ {
1260
+ "internalType": "uint256",
1261
+ "name": "payoutAmount",
1262
+ "type": "uint256"
1263
+ },
1264
+ {
1265
+ "internalType": "Timestamp",
1266
+ "name": "activatedAt",
1267
+ "type": "uint40"
1268
+ },
1269
+ {
1270
+ "internalType": "Timestamp",
1271
+ "name": "expiredAt",
1272
+ "type": "uint40"
1273
+ },
1274
+ {
1275
+ "internalType": "Timestamp",
1276
+ "name": "closedAt",
1277
+ "type": "uint40"
1278
+ }
1279
+ ],
1280
+ "internalType": "struct IPolicy.PolicyInfo",
1281
+ "name": "policy",
1282
+ "type": "tuple"
1283
+ },
1284
+ {
1285
+ "internalType": "StateId",
1286
+ "name": "newState",
1287
+ "type": "uint8"
1288
+ }
1289
+ ],
1290
+ "name": "updatePolicy",
1291
+ "outputs": [],
1292
+ "stateMutability": "nonpayable",
1293
+ "type": "function"
1294
+ },
1295
+ {
1296
+ "inputs": [
1297
+ {
1298
+ "internalType": "NftId",
1299
+ "name": "policyNftId",
1300
+ "type": "uint96"
1301
+ },
1302
+ {
1303
+ "internalType": "StateId",
1304
+ "name": "newState",
1305
+ "type": "uint8"
1306
+ }
1307
+ ],
1308
+ "name": "updatePolicyState",
1309
+ "outputs": [],
1310
+ "stateMutability": "nonpayable",
1311
+ "type": "function"
1312
+ },
1313
+ {
1314
+ "inputs": [
1315
+ {
1316
+ "internalType": "NftId",
1317
+ "name": "poolNftId",
1318
+ "type": "uint96"
1319
+ },
70
1320
  {
71
1321
  "components": [
72
1322
  {
@@ -149,9 +1399,32 @@
149
1399
  "internalType": "struct ISetup.PoolSetupInfo",
150
1400
  "name": "setup",
151
1401
  "type": "tuple"
1402
+ },
1403
+ {
1404
+ "internalType": "StateId",
1405
+ "name": "newState",
1406
+ "type": "uint8"
152
1407
  }
153
1408
  ],
154
- "name": "createPoolSetup",
1409
+ "name": "updatePoolSetup",
1410
+ "outputs": [],
1411
+ "stateMutability": "nonpayable",
1412
+ "type": "function"
1413
+ },
1414
+ {
1415
+ "inputs": [
1416
+ {
1417
+ "internalType": "NftId",
1418
+ "name": "poolNftId",
1419
+ "type": "uint96"
1420
+ },
1421
+ {
1422
+ "internalType": "StateId",
1423
+ "name": "newState",
1424
+ "type": "uint8"
1425
+ }
1426
+ ],
1427
+ "name": "updatePoolSetupState",
155
1428
  "outputs": [],
156
1429
  "stateMutability": "nonpayable",
157
1430
  "type": "function"
@@ -291,77 +1564,42 @@
291
1564
  "internalType": "struct ISetup.ProductSetupInfo",
292
1565
  "name": "setup",
293
1566
  "type": "tuple"
1567
+ },
1568
+ {
1569
+ "internalType": "StateId",
1570
+ "name": "newState",
1571
+ "type": "uint8"
294
1572
  }
295
1573
  ],
296
- "name": "createProductSetup",
1574
+ "name": "updateProductSetup",
297
1575
  "outputs": [],
298
1576
  "stateMutability": "nonpayable",
299
1577
  "type": "function"
300
1578
  },
301
- {
302
- "inputs": [],
303
- "name": "getComponentOwnerService",
304
- "outputs": [
305
- {
306
- "internalType": "contract IComponentOwnerService",
307
- "name": "",
308
- "type": "address"
309
- }
310
- ],
311
- "stateMutability": "view",
312
- "type": "function"
313
- },
314
- {
315
- "inputs": [],
316
- "name": "getDistributionService",
317
- "outputs": [
318
- {
319
- "internalType": "contract IDistributionService",
320
- "name": "",
321
- "type": "address"
322
- }
323
- ],
324
- "stateMutability": "view",
325
- "type": "function"
326
- },
327
- {
328
- "inputs": [],
329
- "name": "getInstanceReader",
330
- "outputs": [
331
- {
332
- "internalType": "contract InstanceReader",
333
- "name": "",
334
- "type": "address"
335
- }
336
- ],
337
- "stateMutability": "view",
338
- "type": "function"
339
- },
340
1579
  {
341
1580
  "inputs": [
342
1581
  {
343
- "internalType": "bytes4",
344
- "name": "interfaceId",
345
- "type": "bytes4"
346
- }
347
- ],
348
- "name": "supportsInterface",
349
- "outputs": [
1582
+ "internalType": "NftId",
1583
+ "name": "productNftId",
1584
+ "type": "uint96"
1585
+ },
350
1586
  {
351
- "internalType": "bool",
352
- "name": "",
353
- "type": "bool"
1587
+ "internalType": "StateId",
1588
+ "name": "newState",
1589
+ "type": "uint8"
354
1590
  }
355
1591
  ],
356
- "stateMutability": "view",
1592
+ "name": "updateProductSetupState",
1593
+ "outputs": [],
1594
+ "stateMutability": "nonpayable",
357
1595
  "type": "function"
358
1596
  },
359
1597
  {
360
1598
  "inputs": [
361
1599
  {
362
- "internalType": "NftId",
363
- "name": "distributionNftId",
364
- "type": "uint96"
1600
+ "internalType": "RiskId",
1601
+ "name": "riskId",
1602
+ "type": "bytes8"
365
1603
  },
366
1604
  {
367
1605
  "components": [
@@ -371,40 +1609,13 @@
371
1609
  "type": "uint96"
372
1610
  },
373
1611
  {
374
- "internalType": "contract TokenHandler",
375
- "name": "tokenHandler",
376
- "type": "address"
377
- },
378
- {
379
- "components": [
380
- {
381
- "internalType": "UFixed",
382
- "name": "fractionalFee",
383
- "type": "uint256"
384
- },
385
- {
386
- "internalType": "uint256",
387
- "name": "fixedFee",
388
- "type": "uint256"
389
- }
390
- ],
391
- "internalType": "struct Fee",
392
- "name": "distributionFee",
393
- "type": "tuple"
394
- },
395
- {
396
- "internalType": "bool",
397
- "name": "isIntercepting",
398
- "type": "bool"
399
- },
400
- {
401
- "internalType": "address",
402
- "name": "wallet",
403
- "type": "address"
1612
+ "internalType": "bytes",
1613
+ "name": "data",
1614
+ "type": "bytes"
404
1615
  }
405
1616
  ],
406
- "internalType": "struct ISetup.DistributionSetupInfo",
407
- "name": "setup",
1617
+ "internalType": "struct IRisk.RiskInfo",
1618
+ "name": "risk",
408
1619
  "type": "tuple"
409
1620
  },
410
1621
  {
@@ -413,7 +1624,7 @@
413
1624
  "type": "uint8"
414
1625
  }
415
1626
  ],
416
- "name": "updateDistributionSetup",
1627
+ "name": "updateRisk",
417
1628
  "outputs": [],
418
1629
  "stateMutability": "nonpayable",
419
1630
  "type": "function"
@@ -421,9 +1632,9 @@
421
1632
  {
422
1633
  "inputs": [
423
1634
  {
424
- "internalType": "NftId",
425
- "name": "distributionNftId",
426
- "type": "uint96"
1635
+ "internalType": "RiskId",
1636
+ "name": "riskId",
1637
+ "type": "bytes8"
427
1638
  },
428
1639
  {
429
1640
  "internalType": "StateId",
@@ -431,7 +1642,7 @@
431
1642
  "type": "uint8"
432
1643
  }
433
1644
  ],
434
- "name": "updateDistributionSetupState",
1645
+ "name": "updateRiskState",
435
1646
  "outputs": [],
436
1647
  "stateMutability": "nonpayable",
437
1648
  "type": "function"