@etherisc/gif-next 0.0.2-e4b632c-016 → 0.0.2-e59218b-293

Sign up to get free protection for your applications and to get access to all the features.
Files changed (190) hide show
  1. package/README.md +4 -0
  2. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +1 -1
  3. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +13 -0
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +23 -15
  6. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +1 -1
  7. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +13 -0
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
  9. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  10. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  11. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  12. package/artifacts/contracts/components/Pool.sol/Pool.json +21 -13
  13. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  14. package/artifacts/contracts/components/Product.sol/Product.json +26 -56
  15. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +1 -1
  16. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +1 -1
  17. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +1 -1
  18. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
  19. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
  20. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
  21. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
  22. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
  23. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
  24. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
  25. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
  26. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
  27. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
  28. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
  29. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
  30. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
  31. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
  32. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
  33. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
  34. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
  35. package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.dbg.json +1 -1
  36. package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.json +0 -13
  37. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.dbg.json +1 -1
  38. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +1 -1
  39. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  40. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1314 -93
  41. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  42. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  43. package/artifacts/contracts/instance/Instance.sol/Instance.json +134 -101
  44. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
  45. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +34 -47
  46. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
  47. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +167 -38
  48. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  49. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +209 -33
  50. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  51. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +91 -15
  52. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +1 -1
  53. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +59 -0
  54. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +1 -1
  55. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  56. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  57. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  58. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  59. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
  60. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
  61. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
  62. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  63. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  64. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +1 -1
  65. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +1 -1
  66. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +1 -1
  67. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +18 -18
  68. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
  69. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +130 -18
  70. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
  71. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +32 -16
  72. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +1 -1
  73. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  74. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  75. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +87 -0
  76. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  77. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +40 -31
  78. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
  79. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +926 -0
  80. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  81. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +448 -0
  82. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
  83. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +1147 -0
  84. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  85. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +488 -0
  86. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  87. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  88. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +201 -0
  89. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  90. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +94 -19
  91. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  92. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  93. package/artifacts/contracts/registry/Registry.sol/Registry.json +172 -49
  94. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  95. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +61 -29
  96. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  97. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +47 -34
  98. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
  99. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +410 -0
  100. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +1 -1
  101. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  102. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +2 -2
  103. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  104. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  105. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
  106. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  107. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  108. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +2 -2
  109. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  110. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +2 -2
  111. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  112. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +4 -4
  113. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +1 -1
  114. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
  115. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  116. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  117. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +2 -2
  118. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  119. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  120. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  121. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +4 -4
  122. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  123. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +2 -2
  124. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  125. package/artifacts/contracts/test/TestService.sol/TestService.json +11 -11
  126. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  127. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  128. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
  129. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  130. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +2 -2
  131. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  132. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  133. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  134. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  135. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
  136. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  137. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  138. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  139. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  140. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +1 -1
  141. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  142. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +1 -1
  143. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
  144. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  145. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
  146. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  147. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  148. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +1 -1
  149. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +1 -1
  150. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  151. package/artifacts/contracts/types/Version.sol/VersionLib.json +2 -2
  152. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  153. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +22 -3
  154. package/contracts/components/BaseComponent.sol +8 -3
  155. package/contracts/components/Distribution.sol +15 -18
  156. package/contracts/components/IBaseComponent.sol +1 -0
  157. package/contracts/components/IDistributionComponent.sol +1 -0
  158. package/contracts/components/Pool.sol +9 -22
  159. package/contracts/components/Product.sol +33 -42
  160. package/contracts/instance/AccessManagedSimple.sol +1 -8
  161. package/contracts/instance/IInstance.sol +28 -7
  162. package/contracts/instance/Instance.sol +16 -15
  163. package/contracts/instance/InstanceAccessManager.sol +1 -1
  164. package/contracts/instance/InstanceReader.sol +26 -1
  165. package/contracts/instance/InstanceService.sol +69 -9
  166. package/contracts/instance/InstanceServiceManager.sol +6 -5
  167. package/contracts/instance/base/ComponentServiceBase.sol +96 -1
  168. package/contracts/instance/module/IBundle.sol +1 -0
  169. package/contracts/instance/module/ISetup.sol +2 -0
  170. package/contracts/instance/service/DistributionService.sol +26 -8
  171. package/contracts/instance/service/DistributionServiceManager.sol +7 -6
  172. package/contracts/instance/service/IPoolService.sol +4 -0
  173. package/contracts/instance/service/IProductService.sol +6 -3
  174. package/contracts/instance/service/PoolService.sol +201 -0
  175. package/contracts/instance/service/PoolServiceManager.sol +54 -0
  176. package/contracts/instance/service/ProductService.sol +567 -0
  177. package/contracts/instance/service/ProductServiceManager.sol +54 -0
  178. package/contracts/registry/IRegistry.sol +25 -2
  179. package/contracts/registry/IRegistryService.sol +27 -12
  180. package/contracts/registry/Registry.sol +60 -35
  181. package/contracts/registry/RegistryService.sol +30 -116
  182. package/contracts/registry/RegistryServiceManager.sol +21 -5
  183. package/contracts/registry/TokenRegistry.sol +111 -0
  184. package/contracts/shared/ERC165.sol +6 -2
  185. package/contracts/shared/NftOwnable.sol +2 -4
  186. package/contracts/shared/Registerable.sol +1 -0
  187. package/contracts/shared/Service.sol +1 -0
  188. package/contracts/types/RoleId.sol +8 -0
  189. package/contracts/types/Version.sol +4 -1
  190. package/package.json +1 -1
@@ -3,6 +3,1115 @@
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": "address",
635
+ "name": "wallet",
636
+ "type": "address"
637
+ }
638
+ ],
639
+ "internalType": "struct ISetup.ProductSetupInfo",
640
+ "name": "setup",
641
+ "type": "tuple"
642
+ }
643
+ ],
644
+ "name": "createProductSetup",
645
+ "outputs": [],
646
+ "stateMutability": "nonpayable",
647
+ "type": "function"
648
+ },
649
+ {
650
+ "inputs": [
651
+ {
652
+ "internalType": "RiskId",
653
+ "name": "riskId",
654
+ "type": "bytes8"
655
+ },
656
+ {
657
+ "components": [
658
+ {
659
+ "internalType": "NftId",
660
+ "name": "productNftId",
661
+ "type": "uint96"
662
+ },
663
+ {
664
+ "internalType": "bytes",
665
+ "name": "data",
666
+ "type": "bytes"
667
+ }
668
+ ],
669
+ "internalType": "struct IRisk.RiskInfo",
670
+ "name": "risk",
671
+ "type": "tuple"
672
+ }
673
+ ],
674
+ "name": "createRisk",
675
+ "outputs": [],
676
+ "stateMutability": "nonpayable",
677
+ "type": "function"
678
+ },
679
+ {
680
+ "inputs": [
681
+ {
682
+ "internalType": "Key32",
683
+ "name": "key",
684
+ "type": "bytes32"
685
+ }
686
+ ],
687
+ "name": "exists",
688
+ "outputs": [
689
+ {
690
+ "internalType": "bool",
691
+ "name": "",
692
+ "type": "bool"
693
+ }
694
+ ],
695
+ "stateMutability": "view",
696
+ "type": "function"
697
+ },
698
+ {
699
+ "inputs": [
700
+ {
701
+ "internalType": "Key32",
702
+ "name": "key",
703
+ "type": "bytes32"
704
+ }
705
+ ],
706
+ "name": "get",
707
+ "outputs": [
708
+ {
709
+ "components": [
710
+ {
711
+ "components": [
712
+ {
713
+ "internalType": "ObjectType",
714
+ "name": "objectType",
715
+ "type": "uint8"
716
+ },
717
+ {
718
+ "internalType": "StateId",
719
+ "name": "state",
720
+ "type": "uint8"
721
+ },
722
+ {
723
+ "internalType": "address",
724
+ "name": "updatedBy",
725
+ "type": "address"
726
+ },
727
+ {
728
+ "internalType": "Blocknumber",
729
+ "name": "updatedIn",
730
+ "type": "uint32"
731
+ },
732
+ {
733
+ "internalType": "Blocknumber",
734
+ "name": "createdIn",
735
+ "type": "uint32"
736
+ }
737
+ ],
738
+ "internalType": "struct IKeyValueStore.Metadata",
739
+ "name": "metadata",
740
+ "type": "tuple"
741
+ },
742
+ {
743
+ "internalType": "bytes",
744
+ "name": "data",
745
+ "type": "bytes"
746
+ }
747
+ ],
748
+ "internalType": "struct IKeyValueStore.Value",
749
+ "name": "value",
750
+ "type": "tuple"
751
+ }
752
+ ],
753
+ "stateMutability": "view",
754
+ "type": "function"
755
+ },
756
+ {
757
+ "inputs": [],
758
+ "name": "getComponentOwnerService",
759
+ "outputs": [
760
+ {
761
+ "internalType": "contract IComponentOwnerService",
762
+ "name": "",
763
+ "type": "address"
764
+ }
765
+ ],
766
+ "stateMutability": "view",
767
+ "type": "function"
768
+ },
769
+ {
770
+ "inputs": [
771
+ {
772
+ "internalType": "Key32",
773
+ "name": "key",
774
+ "type": "bytes32"
775
+ }
776
+ ],
777
+ "name": "getData",
778
+ "outputs": [
779
+ {
780
+ "internalType": "bytes",
781
+ "name": "data",
782
+ "type": "bytes"
783
+ }
784
+ ],
785
+ "stateMutability": "view",
786
+ "type": "function"
787
+ },
788
+ {
789
+ "inputs": [],
790
+ "name": "getDistributionService",
791
+ "outputs": [
792
+ {
793
+ "internalType": "contract IDistributionService",
794
+ "name": "",
795
+ "type": "address"
796
+ }
797
+ ],
798
+ "stateMutability": "view",
799
+ "type": "function"
800
+ },
801
+ {
802
+ "inputs": [
803
+ {
804
+ "internalType": "ObjectType",
805
+ "name": "objectType",
806
+ "type": "uint8"
807
+ }
808
+ ],
809
+ "name": "getInitialState",
810
+ "outputs": [
811
+ {
812
+ "internalType": "StateId",
813
+ "name": "",
814
+ "type": "uint8"
815
+ }
816
+ ],
817
+ "stateMutability": "view",
818
+ "type": "function"
819
+ },
820
+ {
821
+ "inputs": [],
822
+ "name": "getInstanceReader",
823
+ "outputs": [
824
+ {
825
+ "internalType": "contract InstanceReader",
826
+ "name": "",
827
+ "type": "address"
828
+ }
829
+ ],
830
+ "stateMutability": "view",
831
+ "type": "function"
832
+ },
833
+ {
834
+ "inputs": [
835
+ {
836
+ "internalType": "Key32",
837
+ "name": "key",
838
+ "type": "bytes32"
839
+ }
840
+ ],
841
+ "name": "getMetadata",
842
+ "outputs": [
843
+ {
844
+ "components": [
845
+ {
846
+ "internalType": "ObjectType",
847
+ "name": "objectType",
848
+ "type": "uint8"
849
+ },
850
+ {
851
+ "internalType": "StateId",
852
+ "name": "state",
853
+ "type": "uint8"
854
+ },
855
+ {
856
+ "internalType": "address",
857
+ "name": "updatedBy",
858
+ "type": "address"
859
+ },
860
+ {
861
+ "internalType": "Blocknumber",
862
+ "name": "updatedIn",
863
+ "type": "uint32"
864
+ },
865
+ {
866
+ "internalType": "Blocknumber",
867
+ "name": "createdIn",
868
+ "type": "uint32"
869
+ }
870
+ ],
871
+ "internalType": "struct IKeyValueStore.Metadata",
872
+ "name": "metadata",
873
+ "type": "tuple"
874
+ }
875
+ ],
876
+ "stateMutability": "view",
877
+ "type": "function"
878
+ },
879
+ {
880
+ "inputs": [],
881
+ "name": "getPoolService",
882
+ "outputs": [
883
+ {
884
+ "internalType": "contract IPoolService",
885
+ "name": "",
886
+ "type": "address"
887
+ }
888
+ ],
889
+ "stateMutability": "view",
890
+ "type": "function"
891
+ },
892
+ {
893
+ "inputs": [],
894
+ "name": "getProductService",
895
+ "outputs": [
896
+ {
897
+ "internalType": "contract IProductService",
898
+ "name": "",
899
+ "type": "address"
900
+ }
901
+ ],
902
+ "stateMutability": "view",
903
+ "type": "function"
904
+ },
905
+ {
906
+ "inputs": [
907
+ {
908
+ "internalType": "Key32",
909
+ "name": "key",
910
+ "type": "bytes32"
911
+ }
912
+ ],
913
+ "name": "getState",
914
+ "outputs": [
915
+ {
916
+ "internalType": "StateId",
917
+ "name": "state",
918
+ "type": "uint8"
919
+ }
920
+ ],
921
+ "stateMutability": "view",
922
+ "type": "function"
923
+ },
924
+ {
925
+ "inputs": [
926
+ {
927
+ "internalType": "ObjectType",
928
+ "name": "objectType",
929
+ "type": "uint8"
930
+ }
931
+ ],
932
+ "name": "hasLifecycle",
933
+ "outputs": [
934
+ {
935
+ "internalType": "bool",
936
+ "name": "",
937
+ "type": "bool"
938
+ }
939
+ ],
940
+ "stateMutability": "view",
941
+ "type": "function"
942
+ },
943
+ {
944
+ "inputs": [
945
+ {
946
+ "internalType": "ObjectType",
947
+ "name": "objectType",
948
+ "type": "uint8"
949
+ },
950
+ {
951
+ "internalType": "StateId",
952
+ "name": "fromId",
953
+ "type": "uint8"
954
+ },
955
+ {
956
+ "internalType": "StateId",
957
+ "name": "toId",
958
+ "type": "uint8"
959
+ }
960
+ ],
961
+ "name": "isValidTransition",
962
+ "outputs": [
963
+ {
964
+ "internalType": "bool",
965
+ "name": "",
966
+ "type": "bool"
967
+ }
968
+ ],
969
+ "stateMutability": "view",
970
+ "type": "function"
971
+ },
972
+ {
973
+ "inputs": [
974
+ {
975
+ "internalType": "bytes4",
976
+ "name": "interfaceId",
977
+ "type": "bytes4"
978
+ }
979
+ ],
980
+ "name": "supportsInterface",
981
+ "outputs": [
982
+ {
983
+ "internalType": "bool",
984
+ "name": "",
985
+ "type": "bool"
986
+ }
987
+ ],
988
+ "stateMutability": "view",
989
+ "type": "function"
990
+ },
991
+ {
992
+ "inputs": [
993
+ {
994
+ "internalType": "ObjectType",
995
+ "name": "objectType",
996
+ "type": "uint8"
997
+ },
998
+ {
999
+ "internalType": "KeyId",
1000
+ "name": "id",
1001
+ "type": "bytes31"
1002
+ }
1003
+ ],
1004
+ "name": "toKey32",
1005
+ "outputs": [
1006
+ {
1007
+ "internalType": "Key32",
1008
+ "name": "",
1009
+ "type": "bytes32"
1010
+ }
1011
+ ],
1012
+ "stateMutability": "pure",
1013
+ "type": "function"
1014
+ },
1015
+ {
1016
+ "inputs": [
1017
+ {
1018
+ "internalType": "NftId",
1019
+ "name": "bundleNftId",
1020
+ "type": "uint96"
1021
+ },
1022
+ {
1023
+ "components": [
1024
+ {
1025
+ "internalType": "NftId",
1026
+ "name": "poolNftId",
1027
+ "type": "uint96"
1028
+ },
1029
+ {
1030
+ "components": [
1031
+ {
1032
+ "internalType": "UFixed",
1033
+ "name": "fractionalFee",
1034
+ "type": "uint256"
1035
+ },
1036
+ {
1037
+ "internalType": "uint256",
1038
+ "name": "fixedFee",
1039
+ "type": "uint256"
1040
+ }
1041
+ ],
1042
+ "internalType": "struct Fee",
1043
+ "name": "fee",
1044
+ "type": "tuple"
1045
+ },
1046
+ {
1047
+ "internalType": "bytes",
1048
+ "name": "filter",
1049
+ "type": "bytes"
1050
+ },
1051
+ {
1052
+ "internalType": "uint256",
1053
+ "name": "capitalAmount",
1054
+ "type": "uint256"
1055
+ },
1056
+ {
1057
+ "internalType": "uint256",
1058
+ "name": "lockedAmount",
1059
+ "type": "uint256"
1060
+ },
1061
+ {
1062
+ "internalType": "uint256",
1063
+ "name": "balanceAmount",
1064
+ "type": "uint256"
1065
+ },
1066
+ {
1067
+ "internalType": "uint256",
1068
+ "name": "lifetime",
1069
+ "type": "uint256"
1070
+ },
1071
+ {
1072
+ "internalType": "Timestamp",
1073
+ "name": "expiredAt",
1074
+ "type": "uint40"
1075
+ },
1076
+ {
1077
+ "internalType": "Timestamp",
1078
+ "name": "closedAt",
1079
+ "type": "uint40"
1080
+ }
1081
+ ],
1082
+ "internalType": "struct IBundle.BundleInfo",
1083
+ "name": "bundle",
1084
+ "type": "tuple"
1085
+ },
1086
+ {
1087
+ "internalType": "StateId",
1088
+ "name": "newState",
1089
+ "type": "uint8"
1090
+ }
1091
+ ],
1092
+ "name": "updateBundle",
1093
+ "outputs": [],
1094
+ "stateMutability": "nonpayable",
1095
+ "type": "function"
1096
+ },
1097
+ {
1098
+ "inputs": [
1099
+ {
1100
+ "internalType": "NftId",
1101
+ "name": "bundleNftId",
1102
+ "type": "uint96"
1103
+ },
1104
+ {
1105
+ "internalType": "StateId",
1106
+ "name": "newState",
1107
+ "type": "uint8"
1108
+ }
1109
+ ],
1110
+ "name": "updateBundleState",
1111
+ "outputs": [],
1112
+ "stateMutability": "nonpayable",
1113
+ "type": "function"
1114
+ },
6
1115
  {
7
1116
  "inputs": [
8
1117
  {
@@ -53,9 +1162,14 @@
53
1162
  "internalType": "struct ISetup.DistributionSetupInfo",
54
1163
  "name": "setup",
55
1164
  "type": "tuple"
1165
+ },
1166
+ {
1167
+ "internalType": "StateId",
1168
+ "name": "newState",
1169
+ "type": "uint8"
56
1170
  }
57
1171
  ],
58
- "name": "createDistributionSetup",
1172
+ "name": "updateDistributionSetup",
59
1173
  "outputs": [],
60
1174
  "stateMutability": "nonpayable",
61
1175
  "type": "function"
@@ -67,6 +1181,147 @@
67
1181
  "name": "distributionNftId",
68
1182
  "type": "uint96"
69
1183
  },
1184
+ {
1185
+ "internalType": "StateId",
1186
+ "name": "newState",
1187
+ "type": "uint8"
1188
+ }
1189
+ ],
1190
+ "name": "updateDistributionSetupState",
1191
+ "outputs": [],
1192
+ "stateMutability": "nonpayable",
1193
+ "type": "function"
1194
+ },
1195
+ {
1196
+ "inputs": [
1197
+ {
1198
+ "internalType": "NftId",
1199
+ "name": "policyNftId",
1200
+ "type": "uint96"
1201
+ },
1202
+ {
1203
+ "components": [
1204
+ {
1205
+ "internalType": "NftId",
1206
+ "name": "productNftId",
1207
+ "type": "uint96"
1208
+ },
1209
+ {
1210
+ "internalType": "NftId",
1211
+ "name": "bundleNftId",
1212
+ "type": "uint96"
1213
+ },
1214
+ {
1215
+ "internalType": "ReferralId",
1216
+ "name": "referralId",
1217
+ "type": "bytes8"
1218
+ },
1219
+ {
1220
+ "internalType": "RiskId",
1221
+ "name": "riskId",
1222
+ "type": "bytes8"
1223
+ },
1224
+ {
1225
+ "internalType": "uint256",
1226
+ "name": "sumInsuredAmount",
1227
+ "type": "uint256"
1228
+ },
1229
+ {
1230
+ "internalType": "uint256",
1231
+ "name": "premiumAmount",
1232
+ "type": "uint256"
1233
+ },
1234
+ {
1235
+ "internalType": "uint256",
1236
+ "name": "premiumPaidAmount",
1237
+ "type": "uint256"
1238
+ },
1239
+ {
1240
+ "internalType": "uint256",
1241
+ "name": "lifetime",
1242
+ "type": "uint256"
1243
+ },
1244
+ {
1245
+ "internalType": "bytes",
1246
+ "name": "applicationData",
1247
+ "type": "bytes"
1248
+ },
1249
+ {
1250
+ "internalType": "bytes",
1251
+ "name": "policyData",
1252
+ "type": "bytes"
1253
+ },
1254
+ {
1255
+ "internalType": "uint16",
1256
+ "name": "claimsCount",
1257
+ "type": "uint16"
1258
+ },
1259
+ {
1260
+ "internalType": "uint16",
1261
+ "name": "openClaimsCount",
1262
+ "type": "uint16"
1263
+ },
1264
+ {
1265
+ "internalType": "uint256",
1266
+ "name": "payoutAmount",
1267
+ "type": "uint256"
1268
+ },
1269
+ {
1270
+ "internalType": "Timestamp",
1271
+ "name": "activatedAt",
1272
+ "type": "uint40"
1273
+ },
1274
+ {
1275
+ "internalType": "Timestamp",
1276
+ "name": "expiredAt",
1277
+ "type": "uint40"
1278
+ },
1279
+ {
1280
+ "internalType": "Timestamp",
1281
+ "name": "closedAt",
1282
+ "type": "uint40"
1283
+ }
1284
+ ],
1285
+ "internalType": "struct IPolicy.PolicyInfo",
1286
+ "name": "policy",
1287
+ "type": "tuple"
1288
+ },
1289
+ {
1290
+ "internalType": "StateId",
1291
+ "name": "newState",
1292
+ "type": "uint8"
1293
+ }
1294
+ ],
1295
+ "name": "updatePolicy",
1296
+ "outputs": [],
1297
+ "stateMutability": "nonpayable",
1298
+ "type": "function"
1299
+ },
1300
+ {
1301
+ "inputs": [
1302
+ {
1303
+ "internalType": "NftId",
1304
+ "name": "policyNftId",
1305
+ "type": "uint96"
1306
+ },
1307
+ {
1308
+ "internalType": "StateId",
1309
+ "name": "newState",
1310
+ "type": "uint8"
1311
+ }
1312
+ ],
1313
+ "name": "updatePolicyState",
1314
+ "outputs": [],
1315
+ "stateMutability": "nonpayable",
1316
+ "type": "function"
1317
+ },
1318
+ {
1319
+ "inputs": [
1320
+ {
1321
+ "internalType": "NftId",
1322
+ "name": "poolNftId",
1323
+ "type": "uint96"
1324
+ },
70
1325
  {
71
1326
  "components": [
72
1327
  {
@@ -149,9 +1404,32 @@
149
1404
  "internalType": "struct ISetup.PoolSetupInfo",
150
1405
  "name": "setup",
151
1406
  "type": "tuple"
1407
+ },
1408
+ {
1409
+ "internalType": "StateId",
1410
+ "name": "newState",
1411
+ "type": "uint8"
152
1412
  }
153
1413
  ],
154
- "name": "createPoolSetup",
1414
+ "name": "updatePoolSetup",
1415
+ "outputs": [],
1416
+ "stateMutability": "nonpayable",
1417
+ "type": "function"
1418
+ },
1419
+ {
1420
+ "inputs": [
1421
+ {
1422
+ "internalType": "NftId",
1423
+ "name": "poolNftId",
1424
+ "type": "uint96"
1425
+ },
1426
+ {
1427
+ "internalType": "StateId",
1428
+ "name": "newState",
1429
+ "type": "uint8"
1430
+ }
1431
+ ],
1432
+ "name": "updatePoolSetupState",
155
1433
  "outputs": [],
156
1434
  "stateMutability": "nonpayable",
157
1435
  "type": "function"
@@ -286,82 +1564,52 @@
286
1564
  "internalType": "struct Fee",
287
1565
  "name": "performanceFee",
288
1566
  "type": "tuple"
1567
+ },
1568
+ {
1569
+ "internalType": "address",
1570
+ "name": "wallet",
1571
+ "type": "address"
289
1572
  }
290
1573
  ],
291
1574
  "internalType": "struct ISetup.ProductSetupInfo",
292
1575
  "name": "setup",
293
1576
  "type": "tuple"
1577
+ },
1578
+ {
1579
+ "internalType": "StateId",
1580
+ "name": "newState",
1581
+ "type": "uint8"
294
1582
  }
295
1583
  ],
296
- "name": "createProductSetup",
1584
+ "name": "updateProductSetup",
297
1585
  "outputs": [],
298
1586
  "stateMutability": "nonpayable",
299
1587
  "type": "function"
300
1588
  },
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
1589
  {
341
1590
  "inputs": [
342
1591
  {
343
- "internalType": "bytes4",
344
- "name": "interfaceId",
345
- "type": "bytes4"
346
- }
347
- ],
348
- "name": "supportsInterface",
349
- "outputs": [
1592
+ "internalType": "NftId",
1593
+ "name": "productNftId",
1594
+ "type": "uint96"
1595
+ },
350
1596
  {
351
- "internalType": "bool",
352
- "name": "",
353
- "type": "bool"
1597
+ "internalType": "StateId",
1598
+ "name": "newState",
1599
+ "type": "uint8"
354
1600
  }
355
1601
  ],
356
- "stateMutability": "view",
1602
+ "name": "updateProductSetupState",
1603
+ "outputs": [],
1604
+ "stateMutability": "nonpayable",
357
1605
  "type": "function"
358
1606
  },
359
1607
  {
360
1608
  "inputs": [
361
1609
  {
362
- "internalType": "NftId",
363
- "name": "distributionNftId",
364
- "type": "uint96"
1610
+ "internalType": "RiskId",
1611
+ "name": "riskId",
1612
+ "type": "bytes8"
365
1613
  },
366
1614
  {
367
1615
  "components": [
@@ -371,40 +1619,13 @@
371
1619
  "type": "uint96"
372
1620
  },
373
1621
  {
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"
1622
+ "internalType": "bytes",
1623
+ "name": "data",
1624
+ "type": "bytes"
404
1625
  }
405
1626
  ],
406
- "internalType": "struct ISetup.DistributionSetupInfo",
407
- "name": "setup",
1627
+ "internalType": "struct IRisk.RiskInfo",
1628
+ "name": "risk",
408
1629
  "type": "tuple"
409
1630
  },
410
1631
  {
@@ -413,7 +1634,7 @@
413
1634
  "type": "uint8"
414
1635
  }
415
1636
  ],
416
- "name": "updateDistributionSetup",
1637
+ "name": "updateRisk",
417
1638
  "outputs": [],
418
1639
  "stateMutability": "nonpayable",
419
1640
  "type": "function"
@@ -421,9 +1642,9 @@
421
1642
  {
422
1643
  "inputs": [
423
1644
  {
424
- "internalType": "NftId",
425
- "name": "distributionNftId",
426
- "type": "uint96"
1645
+ "internalType": "RiskId",
1646
+ "name": "riskId",
1647
+ "type": "bytes8"
427
1648
  },
428
1649
  {
429
1650
  "internalType": "StateId",
@@ -431,7 +1652,7 @@
431
1652
  "type": "uint8"
432
1653
  }
433
1654
  ],
434
- "name": "updateDistributionSetupState",
1655
+ "name": "updateRiskState",
435
1656
  "outputs": [],
436
1657
  "stateMutability": "nonpayable",
437
1658
  "type": "function"