@etherisc/gif-next 0.0.2-2e6787f-928 → 0.0.2-2eb7eeb-578

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (211) 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 +21 -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/Dummy.sol/LifeCycleModule.json +2 -2
  30. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
  31. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
  32. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
  33. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +2 -2
  34. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
  35. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +2 -2
  36. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
  37. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
  38. package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.dbg.json +1 -1
  39. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.dbg.json +1 -1
  40. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.json +15 -2
  41. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +1 -1
  42. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  43. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +887 -1
  44. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  45. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +59 -0
  46. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  47. package/artifacts/contracts/instance/Instance.sol/Instance.json +177 -84
  48. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
  49. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +34 -34
  50. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
  51. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +168 -37
  52. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  53. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +269 -41
  54. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  55. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +97 -13
  56. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +1 -1
  57. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +59 -0
  58. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +1 -1
  59. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  60. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  61. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  62. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +2 -2
  63. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  64. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +2 -2
  65. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
  66. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
  67. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
  68. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  69. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  70. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +1 -1
  71. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +1 -1
  72. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +1 -1
  73. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +18 -18
  74. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
  75. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +716 -0
  76. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  77. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +444 -0
  78. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +1 -1
  79. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  80. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  81. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  82. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +19 -31
  83. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
  84. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +839 -0
  85. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  86. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +448 -0
  87. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
  88. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +1086 -0
  89. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  90. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +468 -0
  91. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  92. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  93. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +182 -0
  94. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  95. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +94 -19
  96. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  97. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  98. package/artifacts/contracts/registry/Registry.sol/Registry.json +145 -49
  99. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  100. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +61 -29
  101. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  102. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +43 -34
  103. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
  104. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +410 -0
  105. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +1 -1
  106. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  107. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +2 -2
  108. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  109. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  110. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
  111. package/artifacts/contracts/{instance/base → shared}/IService.sol/IService.json +1 -1
  112. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  113. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  114. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +2 -2
  115. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  116. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +2 -2
  117. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  118. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +4 -4
  119. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +4 -0
  120. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.json +442 -0
  121. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
  122. package/artifacts/contracts/{instance/base/ServiceBase.sol/ServiceBase.json → shared/Service.sol/Service.json} +2 -2
  123. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  124. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  125. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +2 -2
  126. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  127. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  128. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  129. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +4 -4
  130. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  131. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +2 -2
  132. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  133. package/artifacts/contracts/test/TestService.sol/TestService.json +11 -11
  134. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  135. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  136. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
  137. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  138. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +2 -2
  139. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  140. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  141. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  142. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  143. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
  144. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  145. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  146. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  147. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  148. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +1 -1
  149. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  150. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +1 -1
  151. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
  152. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  153. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
  154. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  155. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  156. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  157. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +1 -1
  158. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +1 -1
  159. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  160. package/artifacts/contracts/types/Version.sol/VersionLib.json +2 -2
  161. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  162. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +22 -3
  163. package/contracts/components/BaseComponent.sol +8 -3
  164. package/contracts/components/Distribution.sol +11 -18
  165. package/contracts/components/IBaseComponent.sol +1 -0
  166. package/contracts/components/IDistributionComponent.sol +1 -0
  167. package/contracts/components/Pool.sol +5 -22
  168. package/contracts/components/Product.sol +29 -42
  169. package/contracts/instance/AccessManagedSimple.sol +5 -4
  170. package/contracts/instance/AccessManagerSimple.sol +10 -0
  171. package/contracts/instance/IInstance.sol +31 -6
  172. package/contracts/instance/IInstanceService.sol +21 -8
  173. package/contracts/instance/Instance.sol +32 -25
  174. package/contracts/instance/InstanceAccessManager.sol +1 -1
  175. package/contracts/instance/InstanceReader.sol +27 -1
  176. package/contracts/instance/InstanceService.sol +124 -28
  177. package/contracts/instance/InstanceServiceManager.sol +6 -5
  178. package/contracts/instance/base/ComponentServiceBase.sol +86 -8
  179. package/contracts/instance/module/IBundle.sol +1 -0
  180. package/contracts/instance/module/ISetup.sol +1 -0
  181. package/contracts/instance/service/ComponentOwnerService.sol +5 -5
  182. package/contracts/instance/service/DistributionService.sol +88 -0
  183. package/contracts/instance/service/DistributionServiceManager.sol +54 -0
  184. package/contracts/instance/service/IComponentOwnerService.sol +1 -1
  185. package/contracts/instance/service/IDistributionService.sol +1 -1
  186. package/contracts/instance/service/IPoolService.sol +1 -1
  187. package/contracts/instance/service/IProductService.sol +4 -4
  188. package/contracts/instance/service/PoolService.sol +194 -0
  189. package/contracts/instance/service/PoolServiceManager.sol +54 -0
  190. package/contracts/instance/service/ProductService.sol +564 -0
  191. package/contracts/instance/service/ProductServiceManager.sol +54 -0
  192. package/contracts/registry/IRegistry.sol +24 -2
  193. package/contracts/registry/IRegistryService.sol +34 -19
  194. package/contracts/registry/Registry.sol +57 -36
  195. package/contracts/registry/RegistryService.sol +42 -123
  196. package/contracts/registry/RegistryServiceManager.sol +21 -5
  197. package/contracts/registry/TokenRegistry.sol +111 -0
  198. package/contracts/shared/ERC165.sol +6 -2
  199. package/contracts/{instance/base → shared}/IService.sol +3 -3
  200. package/contracts/shared/NftOwnable.sol +2 -4
  201. package/contracts/shared/Registerable.sol +1 -0
  202. package/contracts/shared/RegisterableUpgradable.sol +16 -0
  203. package/contracts/shared/Service.sol +55 -0
  204. package/contracts/test/TestService.sol +3 -5
  205. package/contracts/types/RoleId.sol +8 -0
  206. package/contracts/types/StateId.sol +4 -0
  207. package/contracts/types/Version.sol +4 -1
  208. package/package.json +1 -1
  209. package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +0 -4
  210. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +0 -4
  211. package/contracts/instance/base/ServiceBase.sol +0 -44
@@ -3,6 +3,83 @@
3
3
  "contractName": "IInstance",
4
4
  "sourceName": "contracts/instance/IInstance.sol",
5
5
  "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "NftId",
10
+ "name": "bundleNftId",
11
+ "type": "uint96"
12
+ },
13
+ {
14
+ "components": [
15
+ {
16
+ "internalType": "NftId",
17
+ "name": "poolNftId",
18
+ "type": "uint96"
19
+ },
20
+ {
21
+ "components": [
22
+ {
23
+ "internalType": "UFixed",
24
+ "name": "fractionalFee",
25
+ "type": "uint256"
26
+ },
27
+ {
28
+ "internalType": "uint256",
29
+ "name": "fixedFee",
30
+ "type": "uint256"
31
+ }
32
+ ],
33
+ "internalType": "struct Fee",
34
+ "name": "fee",
35
+ "type": "tuple"
36
+ },
37
+ {
38
+ "internalType": "bytes",
39
+ "name": "filter",
40
+ "type": "bytes"
41
+ },
42
+ {
43
+ "internalType": "uint256",
44
+ "name": "capitalAmount",
45
+ "type": "uint256"
46
+ },
47
+ {
48
+ "internalType": "uint256",
49
+ "name": "lockedAmount",
50
+ "type": "uint256"
51
+ },
52
+ {
53
+ "internalType": "uint256",
54
+ "name": "balanceAmount",
55
+ "type": "uint256"
56
+ },
57
+ {
58
+ "internalType": "uint256",
59
+ "name": "lifetime",
60
+ "type": "uint256"
61
+ },
62
+ {
63
+ "internalType": "Timestamp",
64
+ "name": "expiredAt",
65
+ "type": "uint40"
66
+ },
67
+ {
68
+ "internalType": "Timestamp",
69
+ "name": "closedAt",
70
+ "type": "uint40"
71
+ }
72
+ ],
73
+ "internalType": "struct IBundle.BundleInfo",
74
+ "name": "bundle",
75
+ "type": "tuple"
76
+ }
77
+ ],
78
+ "name": "createBundle",
79
+ "outputs": [],
80
+ "stateMutability": "nonpayable",
81
+ "type": "function"
82
+ },
6
83
  {
7
84
  "inputs": [
8
85
  {
@@ -64,7 +141,107 @@
64
141
  "inputs": [
65
142
  {
66
143
  "internalType": "NftId",
67
- "name": "distributionNftId",
144
+ "name": "policyNftId",
145
+ "type": "uint96"
146
+ },
147
+ {
148
+ "components": [
149
+ {
150
+ "internalType": "NftId",
151
+ "name": "productNftId",
152
+ "type": "uint96"
153
+ },
154
+ {
155
+ "internalType": "NftId",
156
+ "name": "bundleNftId",
157
+ "type": "uint96"
158
+ },
159
+ {
160
+ "internalType": "ReferralId",
161
+ "name": "referralId",
162
+ "type": "bytes8"
163
+ },
164
+ {
165
+ "internalType": "RiskId",
166
+ "name": "riskId",
167
+ "type": "bytes8"
168
+ },
169
+ {
170
+ "internalType": "uint256",
171
+ "name": "sumInsuredAmount",
172
+ "type": "uint256"
173
+ },
174
+ {
175
+ "internalType": "uint256",
176
+ "name": "premiumAmount",
177
+ "type": "uint256"
178
+ },
179
+ {
180
+ "internalType": "uint256",
181
+ "name": "premiumPaidAmount",
182
+ "type": "uint256"
183
+ },
184
+ {
185
+ "internalType": "uint256",
186
+ "name": "lifetime",
187
+ "type": "uint256"
188
+ },
189
+ {
190
+ "internalType": "bytes",
191
+ "name": "applicationData",
192
+ "type": "bytes"
193
+ },
194
+ {
195
+ "internalType": "bytes",
196
+ "name": "policyData",
197
+ "type": "bytes"
198
+ },
199
+ {
200
+ "internalType": "uint16",
201
+ "name": "claimsCount",
202
+ "type": "uint16"
203
+ },
204
+ {
205
+ "internalType": "uint16",
206
+ "name": "openClaimsCount",
207
+ "type": "uint16"
208
+ },
209
+ {
210
+ "internalType": "uint256",
211
+ "name": "payoutAmount",
212
+ "type": "uint256"
213
+ },
214
+ {
215
+ "internalType": "Timestamp",
216
+ "name": "activatedAt",
217
+ "type": "uint40"
218
+ },
219
+ {
220
+ "internalType": "Timestamp",
221
+ "name": "expiredAt",
222
+ "type": "uint40"
223
+ },
224
+ {
225
+ "internalType": "Timestamp",
226
+ "name": "closedAt",
227
+ "type": "uint40"
228
+ }
229
+ ],
230
+ "internalType": "struct IPolicy.PolicyInfo",
231
+ "name": "policy",
232
+ "type": "tuple"
233
+ }
234
+ ],
235
+ "name": "createPolicy",
236
+ "outputs": [],
237
+ "stateMutability": "nonpayable",
238
+ "type": "function"
239
+ },
240
+ {
241
+ "inputs": [
242
+ {
243
+ "internalType": "NftId",
244
+ "name": "poolNftId",
68
245
  "type": "uint96"
69
246
  },
70
247
  {
@@ -298,6 +475,36 @@
298
475
  "stateMutability": "nonpayable",
299
476
  "type": "function"
300
477
  },
478
+ {
479
+ "inputs": [
480
+ {
481
+ "internalType": "RiskId",
482
+ "name": "riskId",
483
+ "type": "bytes8"
484
+ },
485
+ {
486
+ "components": [
487
+ {
488
+ "internalType": "NftId",
489
+ "name": "productNftId",
490
+ "type": "uint96"
491
+ },
492
+ {
493
+ "internalType": "bytes",
494
+ "name": "data",
495
+ "type": "bytes"
496
+ }
497
+ ],
498
+ "internalType": "struct IRisk.RiskInfo",
499
+ "name": "risk",
500
+ "type": "tuple"
501
+ }
502
+ ],
503
+ "name": "createRisk",
504
+ "outputs": [],
505
+ "stateMutability": "nonpayable",
506
+ "type": "function"
507
+ },
301
508
  {
302
509
  "inputs": [],
303
510
  "name": "getComponentOwnerService",
@@ -311,6 +518,19 @@
311
518
  "stateMutability": "view",
312
519
  "type": "function"
313
520
  },
521
+ {
522
+ "inputs": [],
523
+ "name": "getDistributionService",
524
+ "outputs": [
525
+ {
526
+ "internalType": "contract IDistributionService",
527
+ "name": "",
528
+ "type": "address"
529
+ }
530
+ ],
531
+ "stateMutability": "view",
532
+ "type": "function"
533
+ },
314
534
  {
315
535
  "inputs": [],
316
536
  "name": "getInstanceReader",
@@ -324,6 +544,32 @@
324
544
  "stateMutability": "view",
325
545
  "type": "function"
326
546
  },
547
+ {
548
+ "inputs": [],
549
+ "name": "getPoolService",
550
+ "outputs": [
551
+ {
552
+ "internalType": "contract IPoolService",
553
+ "name": "",
554
+ "type": "address"
555
+ }
556
+ ],
557
+ "stateMutability": "view",
558
+ "type": "function"
559
+ },
560
+ {
561
+ "inputs": [],
562
+ "name": "getProductService",
563
+ "outputs": [
564
+ {
565
+ "internalType": "contract IProductService",
566
+ "name": "",
567
+ "type": "address"
568
+ }
569
+ ],
570
+ "stateMutability": "view",
571
+ "type": "function"
572
+ },
327
573
  {
328
574
  "inputs": [
329
575
  {
@@ -342,6 +588,646 @@
342
588
  ],
343
589
  "stateMutability": "view",
344
590
  "type": "function"
591
+ },
592
+ {
593
+ "inputs": [
594
+ {
595
+ "internalType": "NftId",
596
+ "name": "bundleNftId",
597
+ "type": "uint96"
598
+ },
599
+ {
600
+ "components": [
601
+ {
602
+ "internalType": "NftId",
603
+ "name": "poolNftId",
604
+ "type": "uint96"
605
+ },
606
+ {
607
+ "components": [
608
+ {
609
+ "internalType": "UFixed",
610
+ "name": "fractionalFee",
611
+ "type": "uint256"
612
+ },
613
+ {
614
+ "internalType": "uint256",
615
+ "name": "fixedFee",
616
+ "type": "uint256"
617
+ }
618
+ ],
619
+ "internalType": "struct Fee",
620
+ "name": "fee",
621
+ "type": "tuple"
622
+ },
623
+ {
624
+ "internalType": "bytes",
625
+ "name": "filter",
626
+ "type": "bytes"
627
+ },
628
+ {
629
+ "internalType": "uint256",
630
+ "name": "capitalAmount",
631
+ "type": "uint256"
632
+ },
633
+ {
634
+ "internalType": "uint256",
635
+ "name": "lockedAmount",
636
+ "type": "uint256"
637
+ },
638
+ {
639
+ "internalType": "uint256",
640
+ "name": "balanceAmount",
641
+ "type": "uint256"
642
+ },
643
+ {
644
+ "internalType": "uint256",
645
+ "name": "lifetime",
646
+ "type": "uint256"
647
+ },
648
+ {
649
+ "internalType": "Timestamp",
650
+ "name": "expiredAt",
651
+ "type": "uint40"
652
+ },
653
+ {
654
+ "internalType": "Timestamp",
655
+ "name": "closedAt",
656
+ "type": "uint40"
657
+ }
658
+ ],
659
+ "internalType": "struct IBundle.BundleInfo",
660
+ "name": "bundle",
661
+ "type": "tuple"
662
+ },
663
+ {
664
+ "internalType": "StateId",
665
+ "name": "newState",
666
+ "type": "uint8"
667
+ }
668
+ ],
669
+ "name": "updateBundle",
670
+ "outputs": [],
671
+ "stateMutability": "nonpayable",
672
+ "type": "function"
673
+ },
674
+ {
675
+ "inputs": [
676
+ {
677
+ "internalType": "NftId",
678
+ "name": "bundleNftId",
679
+ "type": "uint96"
680
+ },
681
+ {
682
+ "internalType": "StateId",
683
+ "name": "newState",
684
+ "type": "uint8"
685
+ }
686
+ ],
687
+ "name": "updateBundleState",
688
+ "outputs": [],
689
+ "stateMutability": "nonpayable",
690
+ "type": "function"
691
+ },
692
+ {
693
+ "inputs": [
694
+ {
695
+ "internalType": "NftId",
696
+ "name": "distributionNftId",
697
+ "type": "uint96"
698
+ },
699
+ {
700
+ "components": [
701
+ {
702
+ "internalType": "NftId",
703
+ "name": "productNftId",
704
+ "type": "uint96"
705
+ },
706
+ {
707
+ "internalType": "contract TokenHandler",
708
+ "name": "tokenHandler",
709
+ "type": "address"
710
+ },
711
+ {
712
+ "components": [
713
+ {
714
+ "internalType": "UFixed",
715
+ "name": "fractionalFee",
716
+ "type": "uint256"
717
+ },
718
+ {
719
+ "internalType": "uint256",
720
+ "name": "fixedFee",
721
+ "type": "uint256"
722
+ }
723
+ ],
724
+ "internalType": "struct Fee",
725
+ "name": "distributionFee",
726
+ "type": "tuple"
727
+ },
728
+ {
729
+ "internalType": "bool",
730
+ "name": "isIntercepting",
731
+ "type": "bool"
732
+ },
733
+ {
734
+ "internalType": "address",
735
+ "name": "wallet",
736
+ "type": "address"
737
+ }
738
+ ],
739
+ "internalType": "struct ISetup.DistributionSetupInfo",
740
+ "name": "setup",
741
+ "type": "tuple"
742
+ },
743
+ {
744
+ "internalType": "StateId",
745
+ "name": "newState",
746
+ "type": "uint8"
747
+ }
748
+ ],
749
+ "name": "updateDistributionSetup",
750
+ "outputs": [],
751
+ "stateMutability": "nonpayable",
752
+ "type": "function"
753
+ },
754
+ {
755
+ "inputs": [
756
+ {
757
+ "internalType": "NftId",
758
+ "name": "distributionNftId",
759
+ "type": "uint96"
760
+ },
761
+ {
762
+ "internalType": "StateId",
763
+ "name": "newState",
764
+ "type": "uint8"
765
+ }
766
+ ],
767
+ "name": "updateDistributionSetupState",
768
+ "outputs": [],
769
+ "stateMutability": "nonpayable",
770
+ "type": "function"
771
+ },
772
+ {
773
+ "inputs": [
774
+ {
775
+ "internalType": "NftId",
776
+ "name": "policyNftId",
777
+ "type": "uint96"
778
+ },
779
+ {
780
+ "components": [
781
+ {
782
+ "internalType": "NftId",
783
+ "name": "productNftId",
784
+ "type": "uint96"
785
+ },
786
+ {
787
+ "internalType": "NftId",
788
+ "name": "bundleNftId",
789
+ "type": "uint96"
790
+ },
791
+ {
792
+ "internalType": "ReferralId",
793
+ "name": "referralId",
794
+ "type": "bytes8"
795
+ },
796
+ {
797
+ "internalType": "RiskId",
798
+ "name": "riskId",
799
+ "type": "bytes8"
800
+ },
801
+ {
802
+ "internalType": "uint256",
803
+ "name": "sumInsuredAmount",
804
+ "type": "uint256"
805
+ },
806
+ {
807
+ "internalType": "uint256",
808
+ "name": "premiumAmount",
809
+ "type": "uint256"
810
+ },
811
+ {
812
+ "internalType": "uint256",
813
+ "name": "premiumPaidAmount",
814
+ "type": "uint256"
815
+ },
816
+ {
817
+ "internalType": "uint256",
818
+ "name": "lifetime",
819
+ "type": "uint256"
820
+ },
821
+ {
822
+ "internalType": "bytes",
823
+ "name": "applicationData",
824
+ "type": "bytes"
825
+ },
826
+ {
827
+ "internalType": "bytes",
828
+ "name": "policyData",
829
+ "type": "bytes"
830
+ },
831
+ {
832
+ "internalType": "uint16",
833
+ "name": "claimsCount",
834
+ "type": "uint16"
835
+ },
836
+ {
837
+ "internalType": "uint16",
838
+ "name": "openClaimsCount",
839
+ "type": "uint16"
840
+ },
841
+ {
842
+ "internalType": "uint256",
843
+ "name": "payoutAmount",
844
+ "type": "uint256"
845
+ },
846
+ {
847
+ "internalType": "Timestamp",
848
+ "name": "activatedAt",
849
+ "type": "uint40"
850
+ },
851
+ {
852
+ "internalType": "Timestamp",
853
+ "name": "expiredAt",
854
+ "type": "uint40"
855
+ },
856
+ {
857
+ "internalType": "Timestamp",
858
+ "name": "closedAt",
859
+ "type": "uint40"
860
+ }
861
+ ],
862
+ "internalType": "struct IPolicy.PolicyInfo",
863
+ "name": "policy",
864
+ "type": "tuple"
865
+ },
866
+ {
867
+ "internalType": "StateId",
868
+ "name": "newState",
869
+ "type": "uint8"
870
+ }
871
+ ],
872
+ "name": "updatePolicy",
873
+ "outputs": [],
874
+ "stateMutability": "nonpayable",
875
+ "type": "function"
876
+ },
877
+ {
878
+ "inputs": [
879
+ {
880
+ "internalType": "NftId",
881
+ "name": "policyNftId",
882
+ "type": "uint96"
883
+ },
884
+ {
885
+ "internalType": "StateId",
886
+ "name": "newState",
887
+ "type": "uint8"
888
+ }
889
+ ],
890
+ "name": "updatePolicyState",
891
+ "outputs": [],
892
+ "stateMutability": "nonpayable",
893
+ "type": "function"
894
+ },
895
+ {
896
+ "inputs": [
897
+ {
898
+ "internalType": "NftId",
899
+ "name": "poolNftId",
900
+ "type": "uint96"
901
+ },
902
+ {
903
+ "components": [
904
+ {
905
+ "internalType": "NftId",
906
+ "name": "productNftId",
907
+ "type": "uint96"
908
+ },
909
+ {
910
+ "internalType": "contract TokenHandler",
911
+ "name": "tokenHandler",
912
+ "type": "address"
913
+ },
914
+ {
915
+ "internalType": "UFixed",
916
+ "name": "collateralizationLevel",
917
+ "type": "uint256"
918
+ },
919
+ {
920
+ "components": [
921
+ {
922
+ "internalType": "UFixed",
923
+ "name": "fractionalFee",
924
+ "type": "uint256"
925
+ },
926
+ {
927
+ "internalType": "uint256",
928
+ "name": "fixedFee",
929
+ "type": "uint256"
930
+ }
931
+ ],
932
+ "internalType": "struct Fee",
933
+ "name": "poolFee",
934
+ "type": "tuple"
935
+ },
936
+ {
937
+ "components": [
938
+ {
939
+ "internalType": "UFixed",
940
+ "name": "fractionalFee",
941
+ "type": "uint256"
942
+ },
943
+ {
944
+ "internalType": "uint256",
945
+ "name": "fixedFee",
946
+ "type": "uint256"
947
+ }
948
+ ],
949
+ "internalType": "struct Fee",
950
+ "name": "stakingFee",
951
+ "type": "tuple"
952
+ },
953
+ {
954
+ "components": [
955
+ {
956
+ "internalType": "UFixed",
957
+ "name": "fractionalFee",
958
+ "type": "uint256"
959
+ },
960
+ {
961
+ "internalType": "uint256",
962
+ "name": "fixedFee",
963
+ "type": "uint256"
964
+ }
965
+ ],
966
+ "internalType": "struct Fee",
967
+ "name": "performanceFee",
968
+ "type": "tuple"
969
+ },
970
+ {
971
+ "internalType": "bool",
972
+ "name": "isIntercepting",
973
+ "type": "bool"
974
+ },
975
+ {
976
+ "internalType": "address",
977
+ "name": "wallet",
978
+ "type": "address"
979
+ }
980
+ ],
981
+ "internalType": "struct ISetup.PoolSetupInfo",
982
+ "name": "setup",
983
+ "type": "tuple"
984
+ },
985
+ {
986
+ "internalType": "StateId",
987
+ "name": "newState",
988
+ "type": "uint8"
989
+ }
990
+ ],
991
+ "name": "updatePoolSetup",
992
+ "outputs": [],
993
+ "stateMutability": "nonpayable",
994
+ "type": "function"
995
+ },
996
+ {
997
+ "inputs": [
998
+ {
999
+ "internalType": "NftId",
1000
+ "name": "poolNftId",
1001
+ "type": "uint96"
1002
+ },
1003
+ {
1004
+ "internalType": "StateId",
1005
+ "name": "newState",
1006
+ "type": "uint8"
1007
+ }
1008
+ ],
1009
+ "name": "updatePoolSetupState",
1010
+ "outputs": [],
1011
+ "stateMutability": "nonpayable",
1012
+ "type": "function"
1013
+ },
1014
+ {
1015
+ "inputs": [
1016
+ {
1017
+ "internalType": "NftId",
1018
+ "name": "productNftId",
1019
+ "type": "uint96"
1020
+ },
1021
+ {
1022
+ "components": [
1023
+ {
1024
+ "internalType": "contract IERC20Metadata",
1025
+ "name": "token",
1026
+ "type": "address"
1027
+ },
1028
+ {
1029
+ "internalType": "contract TokenHandler",
1030
+ "name": "tokenHandler",
1031
+ "type": "address"
1032
+ },
1033
+ {
1034
+ "internalType": "NftId",
1035
+ "name": "distributionNftId",
1036
+ "type": "uint96"
1037
+ },
1038
+ {
1039
+ "internalType": "NftId",
1040
+ "name": "poolNftId",
1041
+ "type": "uint96"
1042
+ },
1043
+ {
1044
+ "components": [
1045
+ {
1046
+ "internalType": "UFixed",
1047
+ "name": "fractionalFee",
1048
+ "type": "uint256"
1049
+ },
1050
+ {
1051
+ "internalType": "uint256",
1052
+ "name": "fixedFee",
1053
+ "type": "uint256"
1054
+ }
1055
+ ],
1056
+ "internalType": "struct Fee",
1057
+ "name": "distributionFee",
1058
+ "type": "tuple"
1059
+ },
1060
+ {
1061
+ "components": [
1062
+ {
1063
+ "internalType": "UFixed",
1064
+ "name": "fractionalFee",
1065
+ "type": "uint256"
1066
+ },
1067
+ {
1068
+ "internalType": "uint256",
1069
+ "name": "fixedFee",
1070
+ "type": "uint256"
1071
+ }
1072
+ ],
1073
+ "internalType": "struct Fee",
1074
+ "name": "productFee",
1075
+ "type": "tuple"
1076
+ },
1077
+ {
1078
+ "components": [
1079
+ {
1080
+ "internalType": "UFixed",
1081
+ "name": "fractionalFee",
1082
+ "type": "uint256"
1083
+ },
1084
+ {
1085
+ "internalType": "uint256",
1086
+ "name": "fixedFee",
1087
+ "type": "uint256"
1088
+ }
1089
+ ],
1090
+ "internalType": "struct Fee",
1091
+ "name": "processingFee",
1092
+ "type": "tuple"
1093
+ },
1094
+ {
1095
+ "components": [
1096
+ {
1097
+ "internalType": "UFixed",
1098
+ "name": "fractionalFee",
1099
+ "type": "uint256"
1100
+ },
1101
+ {
1102
+ "internalType": "uint256",
1103
+ "name": "fixedFee",
1104
+ "type": "uint256"
1105
+ }
1106
+ ],
1107
+ "internalType": "struct Fee",
1108
+ "name": "poolFee",
1109
+ "type": "tuple"
1110
+ },
1111
+ {
1112
+ "components": [
1113
+ {
1114
+ "internalType": "UFixed",
1115
+ "name": "fractionalFee",
1116
+ "type": "uint256"
1117
+ },
1118
+ {
1119
+ "internalType": "uint256",
1120
+ "name": "fixedFee",
1121
+ "type": "uint256"
1122
+ }
1123
+ ],
1124
+ "internalType": "struct Fee",
1125
+ "name": "stakingFee",
1126
+ "type": "tuple"
1127
+ },
1128
+ {
1129
+ "components": [
1130
+ {
1131
+ "internalType": "UFixed",
1132
+ "name": "fractionalFee",
1133
+ "type": "uint256"
1134
+ },
1135
+ {
1136
+ "internalType": "uint256",
1137
+ "name": "fixedFee",
1138
+ "type": "uint256"
1139
+ }
1140
+ ],
1141
+ "internalType": "struct Fee",
1142
+ "name": "performanceFee",
1143
+ "type": "tuple"
1144
+ }
1145
+ ],
1146
+ "internalType": "struct ISetup.ProductSetupInfo",
1147
+ "name": "setup",
1148
+ "type": "tuple"
1149
+ },
1150
+ {
1151
+ "internalType": "StateId",
1152
+ "name": "newState",
1153
+ "type": "uint8"
1154
+ }
1155
+ ],
1156
+ "name": "updateProductSetup",
1157
+ "outputs": [],
1158
+ "stateMutability": "nonpayable",
1159
+ "type": "function"
1160
+ },
1161
+ {
1162
+ "inputs": [
1163
+ {
1164
+ "internalType": "NftId",
1165
+ "name": "productNftId",
1166
+ "type": "uint96"
1167
+ },
1168
+ {
1169
+ "internalType": "StateId",
1170
+ "name": "newState",
1171
+ "type": "uint8"
1172
+ }
1173
+ ],
1174
+ "name": "updateProductSetupState",
1175
+ "outputs": [],
1176
+ "stateMutability": "nonpayable",
1177
+ "type": "function"
1178
+ },
1179
+ {
1180
+ "inputs": [
1181
+ {
1182
+ "internalType": "RiskId",
1183
+ "name": "riskId",
1184
+ "type": "bytes8"
1185
+ },
1186
+ {
1187
+ "components": [
1188
+ {
1189
+ "internalType": "NftId",
1190
+ "name": "productNftId",
1191
+ "type": "uint96"
1192
+ },
1193
+ {
1194
+ "internalType": "bytes",
1195
+ "name": "data",
1196
+ "type": "bytes"
1197
+ }
1198
+ ],
1199
+ "internalType": "struct IRisk.RiskInfo",
1200
+ "name": "risk",
1201
+ "type": "tuple"
1202
+ },
1203
+ {
1204
+ "internalType": "StateId",
1205
+ "name": "newState",
1206
+ "type": "uint8"
1207
+ }
1208
+ ],
1209
+ "name": "updateRisk",
1210
+ "outputs": [],
1211
+ "stateMutability": "nonpayable",
1212
+ "type": "function"
1213
+ },
1214
+ {
1215
+ "inputs": [
1216
+ {
1217
+ "internalType": "RiskId",
1218
+ "name": "riskId",
1219
+ "type": "bytes8"
1220
+ },
1221
+ {
1222
+ "internalType": "StateId",
1223
+ "name": "newState",
1224
+ "type": "uint8"
1225
+ }
1226
+ ],
1227
+ "name": "updateRiskState",
1228
+ "outputs": [],
1229
+ "stateMutability": "nonpayable",
1230
+ "type": "function"
345
1231
  }
346
1232
  ],
347
1233
  "bytecode": "0x",