@etherisc/gif-next 0.0.2-fe77319 → 0.0.2-fe88ad7-208

Sign up to get free protection for your applications and to get access to all the features.
Files changed (441) hide show
  1. package/README.md +364 -8
  2. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +4 -0
  3. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +482 -0
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +675 -0
  6. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +4 -0
  7. package/artifacts/contracts/{instance/access/Access.sol/AccessModule.json → components/IBaseComponent.sol/IBaseComponent.json} +217 -220
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +152 -0
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +4 -0
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +275 -0
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +4 -0
  13. package/artifacts/contracts/{instance/pool/PoolModule.sol/PoolModule.json → components/IProductComponent.sol/IProductComponent.json} +81 -86
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +687 -40
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +612 -50
  18. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +4 -0
  19. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.json +66 -0
  20. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +4 -0
  21. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.json +24 -0
  22. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +4 -0
  23. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.json +42 -0
  24. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +4 -0
  25. package/artifacts/contracts/experiment/errors/Require.sol/Require.json +105 -0
  26. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +4 -0
  27. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +105 -0
  28. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +4 -0
  29. package/artifacts/contracts/experiment/inheritance/A.sol/A.json +128 -0
  30. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +4 -0
  31. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +42 -0
  32. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +4 -0
  33. package/artifacts/contracts/experiment/{B.sol → inheritance/B.sol}/B.json +2 -2
  34. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +4 -0
  35. package/artifacts/contracts/experiment/{C.sol → inheritance/C.sol}/C.json +2 -2
  36. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +4 -0
  37. package/artifacts/contracts/experiment/{IA.sol → inheritance/IA.sol}/IA.json +1 -1
  38. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +4 -0
  39. package/artifacts/contracts/experiment/{IA.sol → inheritance/IA.sol}/ISharedA.json +1 -1
  40. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +4 -0
  41. package/artifacts/contracts/experiment/{IB.sol → inheritance/IB.sol}/IB.json +1 -1
  42. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +4 -0
  43. package/artifacts/contracts/experiment/{IC.sol → inheritance/IC.sol}/IC.json +1 -1
  44. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +4 -0
  45. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +59 -0
  46. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +4 -0
  47. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +124 -0
  48. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +4 -0
  49. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +74 -0
  50. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +4 -0
  51. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +124 -0
  52. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +4 -0
  53. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +207 -0
  54. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +4 -0
  55. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +10 -0
  56. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +4 -0
  57. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +10 -0
  58. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +4 -0
  59. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +1206 -0
  60. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
  61. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +788 -0
  62. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
  63. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.json +185 -0
  64. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  65. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1314 -469
  66. package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.dbg.json +4 -0
  67. package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.json +448 -0
  68. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
  69. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +570 -0
  70. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  71. package/artifacts/contracts/instance/Instance.sol/Instance.json +2531 -505
  72. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
  73. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +1047 -0
  74. package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.dbg.json +4 -0
  75. package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.json +763 -0
  76. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +4 -0
  77. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1422 -0
  78. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
  79. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +963 -0
  80. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
  81. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +460 -0
  82. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
  83. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +285 -0
  84. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +4 -0
  85. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +532 -0
  86. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +4 -0
  87. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +113 -0
  88. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +4 -0
  89. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +429 -0
  90. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +4 -0
  91. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.json +115 -0
  92. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +4 -0
  93. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +502 -0
  94. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +4 -0
  95. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +169 -0
  96. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +4 -0
  97. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +254 -0
  98. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +4 -0
  99. package/artifacts/contracts/instance/{access/IAccess.sol/IAccess.json → module/IBundle.sol/IBundle.json} +2 -2
  100. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +4 -0
  101. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.json +10 -0
  102. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
  103. package/artifacts/contracts/instance/{policy → module}/IPolicy.sol/IPolicy.json +1 -1
  104. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
  105. package/artifacts/contracts/instance/{pool/IPoolModule.sol/IPool.json → module/IRisk.sol/IRisk.json} +2 -2
  106. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +4 -0
  107. package/artifacts/contracts/instance/{component/IComponent.sol/IComponent.json → module/ISetup.sol/ISetup.json} +2 -2
  108. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +4 -0
  109. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.json +10 -0
  110. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
  111. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +945 -0
  112. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  113. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +432 -0
  114. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +4 -0
  115. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +814 -0
  116. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
  117. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +693 -0
  118. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  119. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +420 -0
  120. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
  121. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +669 -0
  122. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +4 -0
  123. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +466 -0
  124. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
  125. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +446 -0
  126. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  127. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +664 -0
  128. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +4 -0
  129. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +499 -0
  130. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +4 -0
  131. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +536 -0
  132. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
  133. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +993 -0
  134. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  135. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +464 -0
  136. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
  137. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +727 -0
  138. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  139. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +420 -0
  140. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
  141. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +777 -0
  142. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  143. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +420 -0
  144. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +4 -0
  145. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +771 -0
  146. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  147. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +449 -76
  148. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
  149. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +976 -0
  150. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +4 -0
  151. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +34 -0
  152. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  153. package/artifacts/contracts/registry/Registry.sol/Registry.json +544 -79
  154. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
  155. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +285 -0
  156. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +4 -0
  157. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +1195 -0
  158. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
  159. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +451 -0
  160. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
  161. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +546 -0
  162. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
  163. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +397 -0
  164. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +4 -0
  165. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +107 -0
  166. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +4 -0
  167. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +35 -0
  168. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
  169. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +127 -0
  170. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +4 -0
  171. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +201 -0
  172. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
  173. package/artifacts/contracts/shared/IService.sol/IService.json +421 -0
  174. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +4 -0
  175. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +205 -0
  176. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
  177. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +158 -0
  178. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +4 -0
  179. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +349 -0
  180. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +4 -0
  181. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +274 -0
  182. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +4 -0
  183. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.json +442 -0
  184. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
  185. package/artifacts/contracts/shared/Service.sol/Service.json +468 -0
  186. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +4 -0
  187. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +96 -0
  188. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
  189. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +129 -0
  190. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +4 -0
  191. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +228 -0
  192. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +4 -0
  193. package/artifacts/contracts/test/TestFee.sol/TestFee.json +119 -0
  194. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +4 -0
  195. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +305 -0
  196. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +4 -0
  197. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +116 -0
  198. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +4 -0
  199. package/artifacts/contracts/test/TestService.sol/TestService.json +600 -0
  200. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +4 -0
  201. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +376 -0
  202. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +4 -0
  203. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +218 -0
  204. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +4 -0
  205. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +286 -0
  206. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +4 -0
  207. package/artifacts/contracts/test/Usdc.sol/USDC.json +376 -0
  208. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +4 -0
  209. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.json +10 -0
  210. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +4 -0
  211. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +174 -0
  212. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +4 -0
  213. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.json +10 -0
  214. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
  215. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +104 -0
  216. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +4 -0
  217. package/artifacts/contracts/types/Fee.sol/FeeLib.json +257 -0
  218. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +4 -0
  219. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +125 -0
  220. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +4 -0
  221. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +153 -0
  222. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +4 -0
  223. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +33 -0
  224. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +4 -0
  225. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +100 -0
  226. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +4 -0
  227. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +92 -0
  228. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +4 -0
  229. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +123 -0
  230. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +4 -0
  231. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +86 -0
  232. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +4 -0
  233. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +156 -0
  234. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +4 -0
  235. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +92 -0
  236. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +4 -0
  237. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +249 -0
  238. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +4 -0
  239. package/artifacts/contracts/types/UFixed.sol/MathLib.json +10 -0
  240. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +4 -0
  241. package/artifacts/contracts/types/UFixed.sol/UFixedLib.json +479 -0
  242. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +4 -0
  243. package/artifacts/contracts/types/Version.sol/VersionLib.json +177 -0
  244. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +4 -0
  245. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +49 -0
  246. package/contracts/components/BaseComponent.sol +159 -0
  247. package/contracts/components/Distribution.sol +163 -0
  248. package/contracts/components/IBaseComponent.sol +34 -0
  249. package/contracts/components/IDistributionComponent.sol +44 -0
  250. package/contracts/components/IPoolComponent.sol +66 -0
  251. package/contracts/components/IProductComponent.sol +35 -0
  252. package/contracts/components/Pool.sol +260 -18
  253. package/contracts/components/Product.sol +263 -36
  254. package/contracts/experiment/cloning/Cloner.sol +47 -0
  255. package/contracts/experiment/errors/Require.sol +38 -0
  256. package/contracts/experiment/errors/Revert.sol +44 -0
  257. package/contracts/experiment/{A.sol → inheritance/A.sol} +8 -11
  258. package/contracts/experiment/{B.sol → inheritance/B.sol} +10 -5
  259. package/contracts/experiment/{C.sol → inheritance/C.sol} +11 -5
  260. package/contracts/experiment/{IA.sol → inheritance/IA.sol} +2 -7
  261. package/contracts/experiment/{IB.sol → inheritance/IB.sol} +3 -2
  262. package/contracts/experiment/inheritance/IC.sol +12 -0
  263. package/contracts/experiment/statemachine/Dummy.sol +27 -0
  264. package/contracts/experiment/statemachine/ISM.sol +25 -0
  265. package/contracts/experiment/statemachine/SM.sol +57 -0
  266. package/contracts/experiment/statemachine/SimpleStateMachine.sol +31 -0
  267. package/contracts/experiment/types/TypeA.sol +47 -0
  268. package/contracts/experiment/types/TypeB.sol +29 -0
  269. package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +23 -0
  270. package/contracts/instance/BundleManager.sol +129 -0
  271. package/contracts/instance/Cloneable.sol +46 -0
  272. package/contracts/instance/IInstance.sol +57 -15
  273. package/contracts/instance/IInstanceBase.sol +26 -0
  274. package/contracts/instance/IInstanceService.sol +40 -0
  275. package/contracts/instance/Instance.sol +257 -44
  276. package/contracts/instance/InstanceAccessManager.sol +303 -0
  277. package/contracts/instance/InstanceBase.sol +41 -0
  278. package/contracts/instance/InstanceReader.sol +315 -0
  279. package/contracts/instance/InstanceService.sol +350 -0
  280. package/contracts/instance/InstanceServiceManager.sol +54 -0
  281. package/contracts/instance/ObjectManager.sol +101 -0
  282. package/contracts/instance/base/ComponentServiceBase.sol +82 -0
  283. package/contracts/instance/base/IInstanceBase.sol +23 -0
  284. package/contracts/instance/base/IKeyValueStore.sol +49 -0
  285. package/contracts/instance/base/ILifecycle.sol +30 -0
  286. package/contracts/instance/base/KeyValueStore.sol +172 -0
  287. package/contracts/instance/base/Lifecycle.sol +100 -0
  288. package/contracts/instance/module/IAccess.sol +48 -0
  289. package/contracts/instance/module/IBundle.sol +20 -0
  290. package/contracts/instance/module/IDistribution.sol +39 -0
  291. package/contracts/instance/module/IPolicy.sol +45 -0
  292. package/contracts/instance/module/IRisk.sol +11 -0
  293. package/contracts/instance/module/ISetup.sol +46 -0
  294. package/contracts/instance/module/ITreasury.sol +23 -0
  295. package/contracts/instance/service/BundleService.sol +260 -0
  296. package/contracts/instance/service/BundleServiceManager.sol +51 -0
  297. package/contracts/instance/service/ComponentOwnerService.sol +315 -0
  298. package/contracts/instance/service/DistributionService.sol +113 -0
  299. package/contracts/instance/service/DistributionServiceManager.sol +51 -0
  300. package/contracts/instance/service/IBundleService.sol +45 -0
  301. package/contracts/instance/service/IComponentOwnerService.sol +20 -0
  302. package/contracts/instance/service/IDistributionService.sol +12 -0
  303. package/contracts/instance/service/IPolicyService.sol +87 -0
  304. package/contracts/instance/service/IPoolService.sol +20 -0
  305. package/contracts/instance/service/IProductService.sol +40 -0
  306. package/contracts/instance/service/PolicyService.sol +503 -0
  307. package/contracts/instance/service/PolicyServiceManager.sol +54 -0
  308. package/contracts/instance/service/PoolService.sol +124 -0
  309. package/contracts/instance/service/PoolServiceManager.sol +51 -0
  310. package/contracts/instance/service/ProductService.sol +170 -0
  311. package/contracts/instance/service/ProductServiceManager.sol +54 -0
  312. package/contracts/registry/ChainNft.sol +202 -0
  313. package/contracts/registry/IRegistry.sol +78 -53
  314. package/contracts/registry/IRegistryService.sol +58 -0
  315. package/contracts/registry/ITransferInterceptor.sol +6 -0
  316. package/contracts/registry/Registry.sol +329 -130
  317. package/contracts/registry/RegistryAccessManager.sol +210 -0
  318. package/contracts/registry/RegistryService.sol +323 -0
  319. package/contracts/registry/RegistryServiceManager.sol +62 -0
  320. package/contracts/registry/ReleaseManager.sol +348 -0
  321. package/contracts/registry/TokenRegistry.sol +110 -0
  322. package/contracts/shared/ContractDeployerLib.sol +72 -0
  323. package/contracts/shared/ERC165.sol +25 -0
  324. package/contracts/shared/INftOwnable.sol +22 -0
  325. package/contracts/shared/IRegisterable.sol +17 -0
  326. package/contracts/shared/IService.sol +16 -0
  327. package/contracts/shared/IVersionable.sol +96 -0
  328. package/contracts/shared/NftOwnable.sol +134 -0
  329. package/contracts/shared/ProxyManager.sol +94 -0
  330. package/contracts/shared/Registerable.sol +90 -0
  331. package/contracts/shared/RegisterableUpgradable.sol +16 -0
  332. package/contracts/shared/Service.sol +58 -0
  333. package/contracts/shared/TokenHandler.sol +27 -0
  334. package/contracts/shared/UpgradableProxyWithAdmin.sol +16 -0
  335. package/contracts/shared/Versionable.sol +147 -0
  336. package/contracts/test/TestFee.sol +25 -0
  337. package/contracts/test/TestRegisterable.sol +18 -0
  338. package/contracts/test/TestRoleId.sol +14 -0
  339. package/contracts/test/TestService.sol +25 -0
  340. package/contracts/test/TestToken.sol +26 -0
  341. package/contracts/test/TestVersion.sol +44 -0
  342. package/contracts/test/TestVersionable.sol +17 -0
  343. package/contracts/test/Usdc.sol +26 -0
  344. package/contracts/types/AddressSet.sol +58 -0
  345. package/contracts/types/Blocknumber.sol +118 -0
  346. package/contracts/types/ChainId.sol +38 -0
  347. package/contracts/types/DistributorType.sol +55 -0
  348. package/contracts/types/Fee.sol +56 -0
  349. package/contracts/types/Key32.sol +50 -0
  350. package/contracts/types/NftId.sol +72 -0
  351. package/contracts/types/NftIdSet.sol +62 -0
  352. package/contracts/types/NumberId.sol +52 -0
  353. package/contracts/types/ObjectType.sol +152 -0
  354. package/contracts/types/Referral.sol +85 -0
  355. package/contracts/types/RiskId.sol +43 -0
  356. package/contracts/types/RoleId.sol +90 -0
  357. package/contracts/types/StateId.sol +105 -0
  358. package/contracts/types/Timestamp.sol +127 -0
  359. package/contracts/types/UFixed.sol +325 -0
  360. package/contracts/types/Version.sol +107 -0
  361. package/package.json +21 -6
  362. package/artifacts/contracts/components/Component.sol/Component.dbg.json +0 -4
  363. package/artifacts/contracts/components/Component.sol/Component.json +0 -179
  364. package/artifacts/contracts/components/Component.sol/InstanceLinked.dbg.json +0 -4
  365. package/artifacts/contracts/components/Component.sol/InstanceLinked.json +0 -35
  366. package/artifacts/contracts/components/IPool.sol/IPoolComponent.dbg.json +0 -4
  367. package/artifacts/contracts/components/IPool.sol/IPoolComponent.json +0 -179
  368. package/artifacts/contracts/components/IProduct.sol/IProductComponent.dbg.json +0 -4
  369. package/artifacts/contracts/components/IProduct.sol/IProductComponent.json +0 -192
  370. package/artifacts/contracts/experiment/A.sol/A.dbg.json +0 -4
  371. package/artifacts/contracts/experiment/A.sol/A.json +0 -128
  372. package/artifacts/contracts/experiment/A.sol/AShared.dbg.json +0 -4
  373. package/artifacts/contracts/experiment/A.sol/AShared.json +0 -42
  374. package/artifacts/contracts/experiment/B.sol/B.dbg.json +0 -4
  375. package/artifacts/contracts/experiment/C.sol/C.dbg.json +0 -4
  376. package/artifacts/contracts/experiment/IA.sol/IA.dbg.json +0 -4
  377. package/artifacts/contracts/experiment/IA.sol/ISharedA.dbg.json +0 -4
  378. package/artifacts/contracts/experiment/IB.sol/IB.dbg.json +0 -4
  379. package/artifacts/contracts/experiment/IC.sol/IC.dbg.json +0 -4
  380. package/artifacts/contracts/instance/access/Access.sol/AccessModule.dbg.json +0 -4
  381. package/artifacts/contracts/instance/access/IAccess.sol/IAccess.dbg.json +0 -4
  382. package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.dbg.json +0 -4
  383. package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.json +0 -35
  384. package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.dbg.json +0 -4
  385. package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.json +0 -50
  386. package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.dbg.json +0 -4
  387. package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.json +0 -336
  388. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
  389. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.json +0 -327
  390. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.dbg.json +0 -4
  391. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.json +0 -105
  392. package/artifacts/contracts/instance/component/IComponent.sol/IComponent.dbg.json +0 -4
  393. package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.dbg.json +0 -4
  394. package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.json +0 -179
  395. package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.dbg.json +0 -4
  396. package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.json +0 -245
  397. package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.dbg.json +0 -4
  398. package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.json +0 -94
  399. package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.dbg.json +0 -4
  400. package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.json +0 -24
  401. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
  402. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
  403. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.json +0 -231
  404. package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
  405. package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.json +0 -231
  406. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPool.dbg.json +0 -4
  407. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
  408. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.json +0 -149
  409. package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
  410. package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.dbg.json +0 -4
  411. package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.json +0 -75
  412. package/artifacts/contracts/instance/product/IProductService.sol/IProductService.dbg.json +0 -4
  413. package/artifacts/contracts/instance/product/IProductService.sol/IProductService.json +0 -114
  414. package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.dbg.json +0 -4
  415. package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.json +0 -75
  416. package/artifacts/contracts/instance/product/ProductService.sol/ProductService.dbg.json +0 -4
  417. package/artifacts/contracts/instance/product/ProductService.sol/ProductService.json +0 -125
  418. package/artifacts/contracts/registry/IRegistry.sol/IOwnable.dbg.json +0 -4
  419. package/artifacts/contracts/registry/IRegistry.sol/IOwnable.json +0 -24
  420. package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.dbg.json +0 -4
  421. package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.json +0 -166
  422. package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.dbg.json +0 -4
  423. package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.json +0 -49
  424. package/artifacts/contracts/registry/Registry.sol/Registerable.dbg.json +0 -4
  425. package/artifacts/contracts/registry/Registry.sol/Registerable.json +0 -166
  426. package/artifacts/contracts/registry/Registry.sol/RegistryLinked.dbg.json +0 -4
  427. package/artifacts/contracts/registry/Registry.sol/RegistryLinked.json +0 -60
  428. package/contracts/components/Component.sol +0 -62
  429. package/contracts/components/IPool.sol +0 -9
  430. package/contracts/components/IProduct.sol +0 -11
  431. package/contracts/experiment/IC.sol +0 -11
  432. package/contracts/instance/access/Access.sol +0 -218
  433. package/contracts/instance/access/IAccess.sol +0 -83
  434. package/contracts/instance/component/ComponentModule.sol +0 -259
  435. package/contracts/instance/component/IComponent.sol +0 -94
  436. package/contracts/instance/policy/IPolicy.sol +0 -66
  437. package/contracts/instance/policy/PolicyModule.sol +0 -106
  438. package/contracts/instance/pool/IPoolModule.sol +0 -40
  439. package/contracts/instance/pool/PoolModule.sol +0 -83
  440. package/contracts/instance/product/IProductService.sol +0 -45
  441. package/contracts/instance/product/ProductService.sol +0 -105
@@ -4,185 +4,401 @@
4
4
  "sourceName": "contracts/instance/IInstance.sol",
5
5
  "abi": [
6
6
  {
7
- "anonymous": false,
8
7
  "inputs": [
9
8
  {
10
- "indexed": false,
11
- "internalType": "uint256",
12
- "name": "idx",
13
- "type": "uint256"
9
+ "internalType": "ObjectType",
10
+ "name": "objectType",
11
+ "type": "uint8"
14
12
  },
15
13
  {
16
- "indexed": false,
17
- "internalType": "address",
18
- "name": "module",
19
- "type": "address"
14
+ "internalType": "StateId",
15
+ "name": "fromStateId",
16
+ "type": "uint8"
20
17
  },
21
18
  {
22
- "indexed": false,
23
- "internalType": "string",
24
- "name": "comment",
25
- "type": "string"
19
+ "internalType": "StateId",
20
+ "name": "toStateId",
21
+ "type": "uint8"
26
22
  }
27
23
  ],
28
- "name": "LogDebug",
29
- "type": "event"
24
+ "name": "ErrorInvalidStateTransition",
25
+ "type": "error"
30
26
  },
31
27
  {
32
- "inputs": [],
33
- "name": "ORACLE_OWNER_ROLE",
34
- "outputs": [
28
+ "inputs": [
35
29
  {
36
- "internalType": "bytes32",
37
- "name": "role",
38
- "type": "bytes32"
39
- }
40
- ],
41
- "stateMutability": "view",
42
- "type": "function"
43
- },
44
- {
45
- "inputs": [],
46
- "name": "POOL_OWNER_ROLE",
47
- "outputs": [
30
+ "internalType": "NftId",
31
+ "name": "nftId",
32
+ "type": "uint96"
33
+ },
48
34
  {
49
- "internalType": "bytes32",
50
- "name": "role",
51
- "type": "bytes32"
35
+ "internalType": "ObjectType",
36
+ "name": "objectType",
37
+ "type": "uint8"
52
38
  }
53
39
  ],
54
- "stateMutability": "view",
55
- "type": "function"
40
+ "name": "ErrorNoLifecycle",
41
+ "type": "error"
56
42
  },
57
43
  {
58
- "inputs": [],
59
- "name": "PRODUCT_OWNER_ROLE",
60
- "outputs": [
44
+ "anonymous": false,
45
+ "inputs": [
61
46
  {
62
- "internalType": "bytes32",
63
- "name": "role",
64
- "type": "bytes32"
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"
65
75
  }
66
76
  ],
67
- "stateMutability": "view",
68
- "type": "function"
77
+ "name": "LogInfoCreated",
78
+ "type": "event"
69
79
  },
70
80
  {
81
+ "anonymous": false,
71
82
  "inputs": [
72
83
  {
73
- "internalType": "uint256",
74
- "name": "nftId",
75
- "type": "uint256"
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"
76
118
  }
77
119
  ],
78
- "name": "activate",
79
- "outputs": [],
80
- "stateMutability": "nonpayable",
81
- "type": "function"
120
+ "name": "LogInfoUpdated",
121
+ "type": "event"
82
122
  },
83
123
  {
84
- "inputs": [],
85
- "name": "components",
86
- "outputs": [
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
+ },
87
150
  {
88
- "internalType": "uint256",
89
- "name": "numberOfCompnents",
90
- "type": "uint256"
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"
91
167
  }
92
168
  ],
93
- "stateMutability": "view",
94
- "type": "function"
169
+ "name": "LogStateUpdated",
170
+ "type": "event"
95
171
  },
96
172
  {
97
173
  "inputs": [
174
+ {
175
+ "internalType": "NftId",
176
+ "name": "bundleNftId",
177
+ "type": "uint96"
178
+ },
98
179
  {
99
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
+ },
100
208
  {
101
209
  "internalType": "uint256",
102
- "name": "nftId",
210
+ "name": "capitalAmount",
103
211
  "type": "uint256"
104
212
  },
105
213
  {
106
214
  "internalType": "uint256",
107
- "name": "parentNftId",
215
+ "name": "lockedAmount",
108
216
  "type": "uint256"
109
217
  },
110
218
  {
111
219
  "internalType": "uint256",
112
- "name": "objectType",
220
+ "name": "balanceAmount",
113
221
  "type": "uint256"
114
222
  },
115
223
  {
116
- "internalType": "address",
117
- "name": "objectAddress",
118
- "type": "address"
224
+ "internalType": "uint256",
225
+ "name": "lifetime",
226
+ "type": "uint256"
119
227
  },
120
228
  {
121
- "internalType": "address",
122
- "name": "initialOwner",
123
- "type": "address"
229
+ "internalType": "Timestamp",
230
+ "name": "expiredAt",
231
+ "type": "uint40"
232
+ },
233
+ {
234
+ "internalType": "Timestamp",
235
+ "name": "closedAt",
236
+ "type": "uint40"
124
237
  }
125
238
  ],
126
- "internalType": "struct IRegistry.RegistryInfo",
127
- "name": "productInfo",
239
+ "internalType": "struct IBundle.BundleInfo",
240
+ "name": "bundle",
128
241
  "type": "tuple"
129
- },
130
- {
131
- "internalType": "address",
132
- "name": "applicationOwner",
133
- "type": "address"
134
- },
135
- {
136
- "internalType": "uint256",
137
- "name": "sumInsuredAmount",
138
- "type": "uint256"
139
- },
140
- {
141
- "internalType": "uint256",
142
- "name": "premiumAmount",
143
- "type": "uint256"
144
- },
145
- {
146
- "internalType": "uint256",
147
- "name": "lifetime",
148
- "type": "uint256"
149
- },
150
- {
151
- "internalType": "uint256",
152
- "name": "bundleNftId",
153
- "type": "uint256"
154
242
  }
155
243
  ],
156
- "name": "createApplication",
157
- "outputs": [
244
+ "name": "createBundle",
245
+ "outputs": [],
246
+ "stateMutability": "nonpayable",
247
+ "type": "function"
248
+ },
249
+ {
250
+ "inputs": [
158
251
  {
159
- "internalType": "uint256",
160
- "name": "nftId",
161
- "type": "uint256"
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"
162
299
  }
163
300
  ],
301
+ "name": "createDistributionSetup",
302
+ "outputs": [],
164
303
  "stateMutability": "nonpayable",
165
304
  "type": "function"
166
305
  },
167
306
  {
168
307
  "inputs": [
169
308
  {
170
- "internalType": "uint256",
171
- "name": "nftId",
172
- "type": "uint256"
173
- },
174
- {
175
- "internalType": "address",
176
- "name": "wallet",
177
- "type": "address"
309
+ "internalType": "NftId",
310
+ "name": "policyNftId",
311
+ "type": "uint96"
178
312
  },
179
313
  {
180
- "internalType": "address",
181
- "name": "token",
182
- "type": "address"
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"
183
399
  }
184
400
  ],
185
- "name": "createPoolInfo",
401
+ "name": "createPolicy",
186
402
  "outputs": [],
187
403
  "stateMutability": "nonpayable",
188
404
  "type": "function"
@@ -190,31 +406,252 @@
190
406
  {
191
407
  "inputs": [
192
408
  {
193
- "internalType": "string",
194
- "name": "roleName",
195
- "type": "string"
196
- }
197
- ],
198
- "name": "createRole",
199
- "outputs": [
409
+ "internalType": "NftId",
410
+ "name": "poolNftId",
411
+ "type": "uint96"
412
+ },
200
413
  {
201
- "internalType": "bytes32",
202
- "name": "role",
203
- "type": "bytes32"
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": "bool",
488
+ "name": "isConfirmingApplication",
489
+ "type": "bool"
490
+ },
491
+ {
492
+ "internalType": "address",
493
+ "name": "wallet",
494
+ "type": "address"
495
+ }
496
+ ],
497
+ "internalType": "struct ISetup.PoolSetupInfo",
498
+ "name": "setup",
499
+ "type": "tuple"
204
500
  }
205
501
  ],
502
+ "name": "createPoolSetup",
503
+ "outputs": [],
206
504
  "stateMutability": "nonpayable",
207
505
  "type": "function"
208
506
  },
209
507
  {
210
508
  "inputs": [
211
509
  {
212
- "internalType": "bytes32",
213
- "name": "role",
214
- "type": "bytes32"
510
+ "internalType": "NftId",
511
+ "name": "productNftId",
512
+ "type": "uint96"
513
+ },
514
+ {
515
+ "components": [
516
+ {
517
+ "internalType": "contract IERC20Metadata",
518
+ "name": "token",
519
+ "type": "address"
520
+ },
521
+ {
522
+ "internalType": "contract TokenHandler",
523
+ "name": "tokenHandler",
524
+ "type": "address"
525
+ },
526
+ {
527
+ "internalType": "NftId",
528
+ "name": "distributionNftId",
529
+ "type": "uint96"
530
+ },
531
+ {
532
+ "internalType": "NftId",
533
+ "name": "poolNftId",
534
+ "type": "uint96"
535
+ },
536
+ {
537
+ "components": [
538
+ {
539
+ "internalType": "UFixed",
540
+ "name": "fractionalFee",
541
+ "type": "uint256"
542
+ },
543
+ {
544
+ "internalType": "uint256",
545
+ "name": "fixedFee",
546
+ "type": "uint256"
547
+ }
548
+ ],
549
+ "internalType": "struct Fee",
550
+ "name": "distributionFee",
551
+ "type": "tuple"
552
+ },
553
+ {
554
+ "components": [
555
+ {
556
+ "internalType": "UFixed",
557
+ "name": "fractionalFee",
558
+ "type": "uint256"
559
+ },
560
+ {
561
+ "internalType": "uint256",
562
+ "name": "fixedFee",
563
+ "type": "uint256"
564
+ }
565
+ ],
566
+ "internalType": "struct Fee",
567
+ "name": "productFee",
568
+ "type": "tuple"
569
+ },
570
+ {
571
+ "components": [
572
+ {
573
+ "internalType": "UFixed",
574
+ "name": "fractionalFee",
575
+ "type": "uint256"
576
+ },
577
+ {
578
+ "internalType": "uint256",
579
+ "name": "fixedFee",
580
+ "type": "uint256"
581
+ }
582
+ ],
583
+ "internalType": "struct Fee",
584
+ "name": "processingFee",
585
+ "type": "tuple"
586
+ },
587
+ {
588
+ "components": [
589
+ {
590
+ "internalType": "UFixed",
591
+ "name": "fractionalFee",
592
+ "type": "uint256"
593
+ },
594
+ {
595
+ "internalType": "uint256",
596
+ "name": "fixedFee",
597
+ "type": "uint256"
598
+ }
599
+ ],
600
+ "internalType": "struct Fee",
601
+ "name": "poolFee",
602
+ "type": "tuple"
603
+ },
604
+ {
605
+ "components": [
606
+ {
607
+ "internalType": "UFixed",
608
+ "name": "fractionalFee",
609
+ "type": "uint256"
610
+ },
611
+ {
612
+ "internalType": "uint256",
613
+ "name": "fixedFee",
614
+ "type": "uint256"
615
+ }
616
+ ],
617
+ "internalType": "struct Fee",
618
+ "name": "stakingFee",
619
+ "type": "tuple"
620
+ },
621
+ {
622
+ "components": [
623
+ {
624
+ "internalType": "UFixed",
625
+ "name": "fractionalFee",
626
+ "type": "uint256"
627
+ },
628
+ {
629
+ "internalType": "uint256",
630
+ "name": "fixedFee",
631
+ "type": "uint256"
632
+ }
633
+ ],
634
+ "internalType": "struct Fee",
635
+ "name": "performanceFee",
636
+ "type": "tuple"
637
+ },
638
+ {
639
+ "internalType": "bool",
640
+ "name": "isIntercepting",
641
+ "type": "bool"
642
+ },
643
+ {
644
+ "internalType": "address",
645
+ "name": "wallet",
646
+ "type": "address"
647
+ }
648
+ ],
649
+ "internalType": "struct ISetup.ProductSetupInfo",
650
+ "name": "setup",
651
+ "type": "tuple"
215
652
  }
216
653
  ],
217
- "name": "disableRole",
654
+ "name": "createProductSetup",
218
655
  "outputs": [],
219
656
  "stateMutability": "nonpayable",
220
657
  "type": "function"
@@ -222,12 +659,29 @@
222
659
  {
223
660
  "inputs": [
224
661
  {
225
- "internalType": "bytes32",
226
- "name": "role",
227
- "type": "bytes32"
662
+ "internalType": "RiskId",
663
+ "name": "riskId",
664
+ "type": "bytes8"
665
+ },
666
+ {
667
+ "components": [
668
+ {
669
+ "internalType": "NftId",
670
+ "name": "productNftId",
671
+ "type": "uint96"
672
+ },
673
+ {
674
+ "internalType": "bytes",
675
+ "name": "data",
676
+ "type": "bytes"
677
+ }
678
+ ],
679
+ "internalType": "struct IRisk.RiskInfo",
680
+ "name": "risk",
681
+ "type": "tuple"
228
682
  }
229
683
  ],
230
- "name": "enableRole",
684
+ "name": "createRisk",
231
685
  "outputs": [],
232
686
  "stateMutability": "nonpayable",
233
687
  "type": "function"
@@ -235,55 +689,17 @@
235
689
  {
236
690
  "inputs": [
237
691
  {
238
- "internalType": "uint256",
239
- "name": "nftId",
240
- "type": "uint256"
241
- }
242
- ],
243
- "name": "getBundleNftForPolicy",
244
- "outputs": [
245
- {
246
- "internalType": "uint256",
247
- "name": "bundleNft",
248
- "type": "uint256"
249
- }
250
- ],
251
- "stateMutability": "view",
252
- "type": "function"
253
- },
254
- {
255
- "inputs": [
256
- {
257
- "internalType": "address",
258
- "name": "componentAddress",
259
- "type": "address"
260
- }
261
- ],
262
- "name": "getComponentId",
263
- "outputs": [
264
- {
265
- "internalType": "uint256",
266
- "name": "id",
267
- "type": "uint256"
268
- }
269
- ],
270
- "stateMutability": "view",
271
- "type": "function"
272
- },
273
- {
274
- "inputs": [
275
- {
276
- "internalType": "uint256",
277
- "name": "idx",
278
- "type": "uint256"
692
+ "internalType": "Key32",
693
+ "name": "key",
694
+ "type": "bytes32"
279
695
  }
280
696
  ],
281
- "name": "getComponentId",
697
+ "name": "exists",
282
698
  "outputs": [
283
699
  {
284
- "internalType": "uint256",
285
- "name": "id",
286
- "type": "uint256"
700
+ "internalType": "bool",
701
+ "name": "",
702
+ "type": "bool"
287
703
  }
288
704
  ],
289
705
  "stateMutability": "view",
@@ -292,28 +708,55 @@
292
708
  {
293
709
  "inputs": [
294
710
  {
295
- "internalType": "uint256",
296
- "name": "id",
297
- "type": "uint256"
711
+ "internalType": "Key32",
712
+ "name": "key",
713
+ "type": "bytes32"
298
714
  }
299
715
  ],
300
- "name": "getComponentInfo",
716
+ "name": "get",
301
717
  "outputs": [
302
718
  {
303
719
  "components": [
304
720
  {
305
- "internalType": "uint256",
306
- "name": "nftId",
307
- "type": "uint256"
721
+ "components": [
722
+ {
723
+ "internalType": "ObjectType",
724
+ "name": "objectType",
725
+ "type": "uint8"
726
+ },
727
+ {
728
+ "internalType": "StateId",
729
+ "name": "state",
730
+ "type": "uint8"
731
+ },
732
+ {
733
+ "internalType": "address",
734
+ "name": "updatedBy",
735
+ "type": "address"
736
+ },
737
+ {
738
+ "internalType": "Blocknumber",
739
+ "name": "updatedIn",
740
+ "type": "uint32"
741
+ },
742
+ {
743
+ "internalType": "Blocknumber",
744
+ "name": "createdIn",
745
+ "type": "uint32"
746
+ }
747
+ ],
748
+ "internalType": "struct IKeyValueStore.Metadata",
749
+ "name": "metadata",
750
+ "type": "tuple"
308
751
  },
309
752
  {
310
- "internalType": "enum IComponent.CState",
311
- "name": "state",
312
- "type": "uint8"
753
+ "internalType": "bytes",
754
+ "name": "data",
755
+ "type": "bytes"
313
756
  }
314
757
  ],
315
- "internalType": "struct IComponent.ComponentInfo",
316
- "name": "info",
758
+ "internalType": "struct IKeyValueStore.Value",
759
+ "name": "value",
317
760
  "type": "tuple"
318
761
  }
319
762
  ],
@@ -321,18 +764,25 @@
321
764
  "type": "function"
322
765
  },
323
766
  {
324
- "inputs": [
767
+ "inputs": [],
768
+ "name": "getBundleManager",
769
+ "outputs": [
325
770
  {
326
- "internalType": "uint256",
327
- "name": "id",
328
- "type": "uint256"
771
+ "internalType": "contract BundleManager",
772
+ "name": "",
773
+ "type": "address"
329
774
  }
330
775
  ],
331
- "name": "getComponentOwner",
776
+ "stateMutability": "view",
777
+ "type": "function"
778
+ },
779
+ {
780
+ "inputs": [],
781
+ "name": "getBundleService",
332
782
  "outputs": [
333
783
  {
334
- "internalType": "address",
335
- "name": "owner",
784
+ "internalType": "contract IBundleService",
785
+ "name": "",
336
786
  "type": "address"
337
787
  }
338
788
  ],
@@ -353,7 +803,13 @@
353
803
  "type": "function"
354
804
  },
355
805
  {
356
- "inputs": [],
806
+ "inputs": [
807
+ {
808
+ "internalType": "Key32",
809
+ "name": "key",
810
+ "type": "bytes32"
811
+ }
812
+ ],
357
813
  "name": "getData",
358
814
  "outputs": [
359
815
  {
@@ -367,11 +823,11 @@
367
823
  },
368
824
  {
369
825
  "inputs": [],
370
- "name": "getInitialOwner",
826
+ "name": "getDistributionService",
371
827
  "outputs": [
372
828
  {
373
- "internalType": "address",
374
- "name": "initialOwner",
829
+ "internalType": "contract IDistributionService",
830
+ "name": "",
375
831
  "type": "address"
376
832
  }
377
833
  ],
@@ -379,13 +835,19 @@
379
835
  "type": "function"
380
836
  },
381
837
  {
382
- "inputs": [],
383
- "name": "getNftId",
838
+ "inputs": [
839
+ {
840
+ "internalType": "ObjectType",
841
+ "name": "objectType",
842
+ "type": "uint8"
843
+ }
844
+ ],
845
+ "name": "getInitialState",
384
846
  "outputs": [
385
847
  {
386
- "internalType": "uint256",
387
- "name": "nftId",
388
- "type": "uint256"
848
+ "internalType": "StateId",
849
+ "name": "",
850
+ "type": "uint8"
389
851
  }
390
852
  ],
391
853
  "stateMutability": "view",
@@ -393,11 +855,11 @@
393
855
  },
394
856
  {
395
857
  "inputs": [],
396
- "name": "getOwner",
858
+ "name": "getInstanceAccessManager",
397
859
  "outputs": [
398
860
  {
399
- "internalType": "address",
400
- "name": "owner",
861
+ "internalType": "contract InstanceAccessManager",
862
+ "name": "",
401
863
  "type": "address"
402
864
  }
403
865
  ],
@@ -406,12 +868,12 @@
406
868
  },
407
869
  {
408
870
  "inputs": [],
409
- "name": "getParentNftId",
871
+ "name": "getInstanceReader",
410
872
  "outputs": [
411
873
  {
412
- "internalType": "uint256",
413
- "name": "parentNftId",
414
- "type": "uint256"
874
+ "internalType": "contract InstanceReader",
875
+ "name": "",
876
+ "type": "address"
415
877
  }
416
878
  ],
417
879
  "stateMutability": "view",
@@ -420,63 +882,43 @@
420
882
  {
421
883
  "inputs": [
422
884
  {
423
- "internalType": "uint256",
424
- "name": "nftId",
425
- "type": "uint256"
885
+ "internalType": "Key32",
886
+ "name": "key",
887
+ "type": "bytes32"
426
888
  }
427
889
  ],
428
- "name": "getPolicyInfo",
890
+ "name": "getMetadata",
429
891
  "outputs": [
430
892
  {
431
893
  "components": [
432
894
  {
433
- "internalType": "uint256",
434
- "name": "nftId",
435
- "type": "uint256"
895
+ "internalType": "ObjectType",
896
+ "name": "objectType",
897
+ "type": "uint8"
436
898
  },
437
899
  {
438
- "internalType": "enum IPolicy.PolicyState",
900
+ "internalType": "StateId",
439
901
  "name": "state",
440
902
  "type": "uint8"
441
903
  },
442
904
  {
443
- "internalType": "uint256",
444
- "name": "sumInsuredAmount",
445
- "type": "uint256"
446
- },
447
- {
448
- "internalType": "uint256",
449
- "name": "premiumAmount",
450
- "type": "uint256"
451
- },
452
- {
453
- "internalType": "uint256",
454
- "name": "lifetime",
455
- "type": "uint256"
456
- },
457
- {
458
- "internalType": "uint256",
459
- "name": "createdAt",
460
- "type": "uint256"
461
- },
462
- {
463
- "internalType": "uint256",
464
- "name": "activatedAt",
465
- "type": "uint256"
905
+ "internalType": "address",
906
+ "name": "updatedBy",
907
+ "type": "address"
466
908
  },
467
909
  {
468
- "internalType": "uint256",
469
- "name": "expiredAt",
470
- "type": "uint256"
910
+ "internalType": "Blocknumber",
911
+ "name": "updatedIn",
912
+ "type": "uint32"
471
913
  },
472
914
  {
473
- "internalType": "uint256",
474
- "name": "closedAt",
475
- "type": "uint256"
915
+ "internalType": "Blocknumber",
916
+ "name": "createdIn",
917
+ "type": "uint32"
476
918
  }
477
919
  ],
478
- "internalType": "struct IPolicy.PolicyInfo",
479
- "name": "info",
920
+ "internalType": "struct IKeyValueStore.Metadata",
921
+ "name": "metadata",
480
922
  "type": "tuple"
481
923
  }
482
924
  ],
@@ -484,46 +926,39 @@
484
926
  "type": "function"
485
927
  },
486
928
  {
487
- "inputs": [
929
+ "inputs": [],
930
+ "name": "getPolicyService",
931
+ "outputs": [
488
932
  {
489
- "internalType": "uint256",
490
- "name": "nftId",
491
- "type": "uint256"
933
+ "internalType": "contract IPolicyService",
934
+ "name": "",
935
+ "type": "address"
492
936
  }
493
937
  ],
494
- "name": "getPoolInfo",
938
+ "stateMutability": "view",
939
+ "type": "function"
940
+ },
941
+ {
942
+ "inputs": [],
943
+ "name": "getPoolService",
495
944
  "outputs": [
496
945
  {
497
- "components": [
498
- {
499
- "internalType": "uint256",
500
- "name": "nftId",
501
- "type": "uint256"
502
- },
503
- {
504
- "internalType": "address",
505
- "name": "wallet",
506
- "type": "address"
507
- },
508
- {
509
- "internalType": "address",
510
- "name": "token",
511
- "type": "address"
512
- },
513
- {
514
- "internalType": "uint256",
515
- "name": "capital",
516
- "type": "uint256"
517
- },
518
- {
519
- "internalType": "uint256",
520
- "name": "lockedCapital",
521
- "type": "uint256"
522
- }
523
- ],
524
- "internalType": "struct IPool.PoolInfo",
525
- "name": "info",
526
- "type": "tuple"
946
+ "internalType": "contract IPoolService",
947
+ "name": "",
948
+ "type": "address"
949
+ }
950
+ ],
951
+ "stateMutability": "view",
952
+ "type": "function"
953
+ },
954
+ {
955
+ "inputs": [],
956
+ "name": "getProductService",
957
+ "outputs": [
958
+ {
959
+ "internalType": "contract IProductService",
960
+ "name": "",
961
+ "type": "address"
527
962
  }
528
963
  ],
529
964
  "stateMutability": "view",
@@ -532,43 +967,65 @@
532
967
  {
533
968
  "inputs": [
534
969
  {
535
- "internalType": "uint256",
536
- "name": "productNftId",
537
- "type": "uint256"
970
+ "internalType": "Key32",
971
+ "name": "key",
972
+ "type": "bytes32"
538
973
  }
539
974
  ],
540
- "name": "getPoolNftId",
975
+ "name": "getState",
541
976
  "outputs": [
542
977
  {
543
- "internalType": "uint256",
544
- "name": "poolNftId",
545
- "type": "uint256"
978
+ "internalType": "StateId",
979
+ "name": "state",
980
+ "type": "uint8"
546
981
  }
547
982
  ],
548
983
  "stateMutability": "view",
549
984
  "type": "function"
550
985
  },
551
986
  {
552
- "inputs": [],
553
- "name": "getProductService",
987
+ "inputs": [
988
+ {
989
+ "internalType": "ObjectType",
990
+ "name": "objectType",
991
+ "type": "uint8"
992
+ }
993
+ ],
994
+ "name": "hasLifecycle",
554
995
  "outputs": [
555
996
  {
556
- "internalType": "contract IProductService",
997
+ "internalType": "bool",
557
998
  "name": "",
558
- "type": "address"
999
+ "type": "bool"
559
1000
  }
560
1001
  ],
561
1002
  "stateMutability": "view",
562
1003
  "type": "function"
563
1004
  },
564
1005
  {
565
- "inputs": [],
566
- "name": "getRegistry",
1006
+ "inputs": [
1007
+ {
1008
+ "internalType": "ObjectType",
1009
+ "name": "objectType",
1010
+ "type": "uint8"
1011
+ },
1012
+ {
1013
+ "internalType": "StateId",
1014
+ "name": "fromId",
1015
+ "type": "uint8"
1016
+ },
1017
+ {
1018
+ "internalType": "StateId",
1019
+ "name": "toId",
1020
+ "type": "uint8"
1021
+ }
1022
+ ],
1023
+ "name": "isValidTransition",
567
1024
  "outputs": [
568
1025
  {
569
- "internalType": "contract IRegistry",
570
- "name": "registry",
571
- "type": "address"
1026
+ "internalType": "bool",
1027
+ "name": "",
1028
+ "type": "bool"
572
1029
  }
573
1030
  ],
574
1031
  "stateMutability": "view",
@@ -577,160 +1034,345 @@
577
1034
  {
578
1035
  "inputs": [
579
1036
  {
580
- "internalType": "uint256",
581
- "name": "idx",
582
- "type": "uint256"
1037
+ "internalType": "bytes4",
1038
+ "name": "interfaceId",
1039
+ "type": "bytes4"
583
1040
  }
584
1041
  ],
585
- "name": "getRole",
1042
+ "name": "supportsInterface",
586
1043
  "outputs": [
587
1044
  {
588
- "internalType": "bytes32",
589
- "name": "role",
590
- "type": "bytes32"
1045
+ "internalType": "bool",
1046
+ "name": "",
1047
+ "type": "bool"
591
1048
  }
592
1049
  ],
593
1050
  "stateMutability": "view",
594
1051
  "type": "function"
595
1052
  },
596
1053
  {
597
- "inputs": [],
598
- "name": "getRoleCount",
1054
+ "inputs": [
1055
+ {
1056
+ "internalType": "ObjectType",
1057
+ "name": "objectType",
1058
+ "type": "uint8"
1059
+ },
1060
+ {
1061
+ "internalType": "KeyId",
1062
+ "name": "id",
1063
+ "type": "bytes31"
1064
+ }
1065
+ ],
1066
+ "name": "toKey32",
599
1067
  "outputs": [
600
1068
  {
601
- "internalType": "uint256",
602
- "name": "roles",
603
- "type": "uint256"
1069
+ "internalType": "Key32",
1070
+ "name": "",
1071
+ "type": "bytes32"
1072
+ }
1073
+ ],
1074
+ "stateMutability": "pure",
1075
+ "type": "function"
1076
+ },
1077
+ {
1078
+ "inputs": [
1079
+ {
1080
+ "internalType": "NftId",
1081
+ "name": "bundleNftId",
1082
+ "type": "uint96"
1083
+ },
1084
+ {
1085
+ "components": [
1086
+ {
1087
+ "internalType": "NftId",
1088
+ "name": "poolNftId",
1089
+ "type": "uint96"
1090
+ },
1091
+ {
1092
+ "components": [
1093
+ {
1094
+ "internalType": "UFixed",
1095
+ "name": "fractionalFee",
1096
+ "type": "uint256"
1097
+ },
1098
+ {
1099
+ "internalType": "uint256",
1100
+ "name": "fixedFee",
1101
+ "type": "uint256"
1102
+ }
1103
+ ],
1104
+ "internalType": "struct Fee",
1105
+ "name": "fee",
1106
+ "type": "tuple"
1107
+ },
1108
+ {
1109
+ "internalType": "bytes",
1110
+ "name": "filter",
1111
+ "type": "bytes"
1112
+ },
1113
+ {
1114
+ "internalType": "uint256",
1115
+ "name": "capitalAmount",
1116
+ "type": "uint256"
1117
+ },
1118
+ {
1119
+ "internalType": "uint256",
1120
+ "name": "lockedAmount",
1121
+ "type": "uint256"
1122
+ },
1123
+ {
1124
+ "internalType": "uint256",
1125
+ "name": "balanceAmount",
1126
+ "type": "uint256"
1127
+ },
1128
+ {
1129
+ "internalType": "uint256",
1130
+ "name": "lifetime",
1131
+ "type": "uint256"
1132
+ },
1133
+ {
1134
+ "internalType": "Timestamp",
1135
+ "name": "expiredAt",
1136
+ "type": "uint40"
1137
+ },
1138
+ {
1139
+ "internalType": "Timestamp",
1140
+ "name": "closedAt",
1141
+ "type": "uint40"
1142
+ }
1143
+ ],
1144
+ "internalType": "struct IBundle.BundleInfo",
1145
+ "name": "bundle",
1146
+ "type": "tuple"
1147
+ },
1148
+ {
1149
+ "internalType": "StateId",
1150
+ "name": "newState",
1151
+ "type": "uint8"
604
1152
  }
605
1153
  ],
606
- "stateMutability": "view",
1154
+ "name": "updateBundle",
1155
+ "outputs": [],
1156
+ "stateMutability": "nonpayable",
607
1157
  "type": "function"
608
1158
  },
609
1159
  {
610
1160
  "inputs": [
611
1161
  {
612
- "internalType": "string",
613
- "name": "roleName",
614
- "type": "string"
615
- }
616
- ],
617
- "name": "getRoleForName",
618
- "outputs": [
1162
+ "internalType": "NftId",
1163
+ "name": "bundleNftId",
1164
+ "type": "uint96"
1165
+ },
619
1166
  {
620
- "internalType": "bytes32",
621
- "name": "role",
622
- "type": "bytes32"
1167
+ "internalType": "StateId",
1168
+ "name": "newState",
1169
+ "type": "uint8"
623
1170
  }
624
1171
  ],
625
- "stateMutability": "pure",
1172
+ "name": "updateBundleState",
1173
+ "outputs": [],
1174
+ "stateMutability": "nonpayable",
626
1175
  "type": "function"
627
1176
  },
628
1177
  {
629
1178
  "inputs": [
630
1179
  {
631
- "internalType": "bytes32",
632
- "name": "role",
633
- "type": "bytes32"
634
- }
635
- ],
636
- "name": "getRoleInfo",
637
- "outputs": [
1180
+ "internalType": "NftId",
1181
+ "name": "distributionNftId",
1182
+ "type": "uint96"
1183
+ },
638
1184
  {
639
1185
  "components": [
640
1186
  {
641
- "internalType": "bytes32",
642
- "name": "id",
643
- "type": "bytes32"
1187
+ "internalType": "NftId",
1188
+ "name": "productNftId",
1189
+ "type": "uint96"
1190
+ },
1191
+ {
1192
+ "internalType": "contract TokenHandler",
1193
+ "name": "tokenHandler",
1194
+ "type": "address"
644
1195
  },
645
1196
  {
646
- "internalType": "string",
647
- "name": "name",
648
- "type": "string"
1197
+ "components": [
1198
+ {
1199
+ "internalType": "UFixed",
1200
+ "name": "fractionalFee",
1201
+ "type": "uint256"
1202
+ },
1203
+ {
1204
+ "internalType": "uint256",
1205
+ "name": "fixedFee",
1206
+ "type": "uint256"
1207
+ }
1208
+ ],
1209
+ "internalType": "struct Fee",
1210
+ "name": "distributionFee",
1211
+ "type": "tuple"
649
1212
  },
650
1213
  {
651
1214
  "internalType": "bool",
652
- "name": "isActive",
1215
+ "name": "isIntercepting",
653
1216
  "type": "bool"
1217
+ },
1218
+ {
1219
+ "internalType": "address",
1220
+ "name": "wallet",
1221
+ "type": "address"
654
1222
  }
655
1223
  ],
656
- "internalType": "struct IAccess.RoleInfo",
657
- "name": "info",
1224
+ "internalType": "struct ISetup.DistributionSetupInfo",
1225
+ "name": "setup",
658
1226
  "type": "tuple"
1227
+ },
1228
+ {
1229
+ "internalType": "StateId",
1230
+ "name": "newState",
1231
+ "type": "uint8"
659
1232
  }
660
1233
  ],
661
- "stateMutability": "view",
1234
+ "name": "updateDistributionSetup",
1235
+ "outputs": [],
1236
+ "stateMutability": "nonpayable",
662
1237
  "type": "function"
663
1238
  },
664
1239
  {
665
1240
  "inputs": [
666
1241
  {
667
- "internalType": "bytes32",
668
- "name": "role",
669
- "type": "bytes32"
1242
+ "internalType": "NftId",
1243
+ "name": "distributionNftId",
1244
+ "type": "uint96"
670
1245
  },
671
1246
  {
672
- "internalType": "uint256",
673
- "name": "idx",
674
- "type": "uint256"
675
- }
676
- ],
677
- "name": "getRoleMember",
678
- "outputs": [
679
- {
680
- "internalType": "address",
681
- "name": "roleMembers",
682
- "type": "address"
1247
+ "internalType": "StateId",
1248
+ "name": "newState",
1249
+ "type": "uint8"
683
1250
  }
684
1251
  ],
685
- "stateMutability": "view",
1252
+ "name": "updateDistributionSetupState",
1253
+ "outputs": [],
1254
+ "stateMutability": "nonpayable",
686
1255
  "type": "function"
687
1256
  },
688
1257
  {
689
1258
  "inputs": [
690
1259
  {
691
- "internalType": "bytes32",
692
- "name": "role",
693
- "type": "bytes32"
694
- }
695
- ],
696
- "name": "getRoleMemberCount",
697
- "outputs": [
1260
+ "internalType": "NftId",
1261
+ "name": "policyNftId",
1262
+ "type": "uint96"
1263
+ },
698
1264
  {
699
- "internalType": "uint256",
700
- "name": "roleMembers",
701
- "type": "uint256"
702
- }
703
- ],
704
- "stateMutability": "view",
705
- "type": "function"
706
- },
707
- {
708
- "inputs": [],
709
- "name": "getType",
710
- "outputs": [
1265
+ "components": [
1266
+ {
1267
+ "internalType": "NftId",
1268
+ "name": "productNftId",
1269
+ "type": "uint96"
1270
+ },
1271
+ {
1272
+ "internalType": "NftId",
1273
+ "name": "bundleNftId",
1274
+ "type": "uint96"
1275
+ },
1276
+ {
1277
+ "internalType": "ReferralId",
1278
+ "name": "referralId",
1279
+ "type": "bytes8"
1280
+ },
1281
+ {
1282
+ "internalType": "RiskId",
1283
+ "name": "riskId",
1284
+ "type": "bytes8"
1285
+ },
1286
+ {
1287
+ "internalType": "uint256",
1288
+ "name": "sumInsuredAmount",
1289
+ "type": "uint256"
1290
+ },
1291
+ {
1292
+ "internalType": "uint256",
1293
+ "name": "premiumAmount",
1294
+ "type": "uint256"
1295
+ },
1296
+ {
1297
+ "internalType": "uint256",
1298
+ "name": "premiumPaidAmount",
1299
+ "type": "uint256"
1300
+ },
1301
+ {
1302
+ "internalType": "uint256",
1303
+ "name": "lifetime",
1304
+ "type": "uint256"
1305
+ },
1306
+ {
1307
+ "internalType": "bytes",
1308
+ "name": "applicationData",
1309
+ "type": "bytes"
1310
+ },
1311
+ {
1312
+ "internalType": "bytes",
1313
+ "name": "policyData",
1314
+ "type": "bytes"
1315
+ },
1316
+ {
1317
+ "internalType": "uint16",
1318
+ "name": "claimsCount",
1319
+ "type": "uint16"
1320
+ },
1321
+ {
1322
+ "internalType": "uint16",
1323
+ "name": "openClaimsCount",
1324
+ "type": "uint16"
1325
+ },
1326
+ {
1327
+ "internalType": "uint256",
1328
+ "name": "payoutAmount",
1329
+ "type": "uint256"
1330
+ },
1331
+ {
1332
+ "internalType": "Timestamp",
1333
+ "name": "activatedAt",
1334
+ "type": "uint40"
1335
+ },
1336
+ {
1337
+ "internalType": "Timestamp",
1338
+ "name": "expiredAt",
1339
+ "type": "uint40"
1340
+ },
1341
+ {
1342
+ "internalType": "Timestamp",
1343
+ "name": "closedAt",
1344
+ "type": "uint40"
1345
+ }
1346
+ ],
1347
+ "internalType": "struct IPolicy.PolicyInfo",
1348
+ "name": "policy",
1349
+ "type": "tuple"
1350
+ },
711
1351
  {
712
- "internalType": "uint256",
713
- "name": "objectType",
714
- "type": "uint256"
1352
+ "internalType": "StateId",
1353
+ "name": "newState",
1354
+ "type": "uint8"
715
1355
  }
716
1356
  ],
717
- "stateMutability": "view",
1357
+ "name": "updatePolicy",
1358
+ "outputs": [],
1359
+ "stateMutability": "nonpayable",
718
1360
  "type": "function"
719
1361
  },
720
1362
  {
721
1363
  "inputs": [
722
1364
  {
723
- "internalType": "bytes32",
724
- "name": "role",
725
- "type": "bytes32"
1365
+ "internalType": "NftId",
1366
+ "name": "policyNftId",
1367
+ "type": "uint96"
726
1368
  },
727
1369
  {
728
- "internalType": "address",
729
- "name": "member",
730
- "type": "address"
1370
+ "internalType": "StateId",
1371
+ "name": "newState",
1372
+ "type": "uint8"
731
1373
  }
732
1374
  ],
733
- "name": "grantRole",
1375
+ "name": "updatePolicyState",
734
1376
  "outputs": [],
735
1377
  "stateMutability": "nonpayable",
736
1378
  "type": "function"
@@ -738,148 +1380,351 @@
738
1380
  {
739
1381
  "inputs": [
740
1382
  {
741
- "internalType": "bytes32",
742
- "name": "role",
743
- "type": "bytes32"
1383
+ "internalType": "NftId",
1384
+ "name": "poolNftId",
1385
+ "type": "uint96"
744
1386
  },
745
1387
  {
746
- "internalType": "address",
747
- "name": "member",
748
- "type": "address"
749
- }
750
- ],
751
- "name": "hasRole",
752
- "outputs": [
753
- {
754
- "internalType": "bool",
755
- "name": "",
756
- "type": "bool"
757
- }
758
- ],
759
- "stateMutability": "view",
760
- "type": "function"
761
- },
762
- {
763
- "inputs": [],
764
- "name": "isRegisterable",
765
- "outputs": [
1388
+ "components": [
1389
+ {
1390
+ "internalType": "NftId",
1391
+ "name": "productNftId",
1392
+ "type": "uint96"
1393
+ },
1394
+ {
1395
+ "internalType": "contract TokenHandler",
1396
+ "name": "tokenHandler",
1397
+ "type": "address"
1398
+ },
1399
+ {
1400
+ "internalType": "UFixed",
1401
+ "name": "collateralizationLevel",
1402
+ "type": "uint256"
1403
+ },
1404
+ {
1405
+ "components": [
1406
+ {
1407
+ "internalType": "UFixed",
1408
+ "name": "fractionalFee",
1409
+ "type": "uint256"
1410
+ },
1411
+ {
1412
+ "internalType": "uint256",
1413
+ "name": "fixedFee",
1414
+ "type": "uint256"
1415
+ }
1416
+ ],
1417
+ "internalType": "struct Fee",
1418
+ "name": "poolFee",
1419
+ "type": "tuple"
1420
+ },
1421
+ {
1422
+ "components": [
1423
+ {
1424
+ "internalType": "UFixed",
1425
+ "name": "fractionalFee",
1426
+ "type": "uint256"
1427
+ },
1428
+ {
1429
+ "internalType": "uint256",
1430
+ "name": "fixedFee",
1431
+ "type": "uint256"
1432
+ }
1433
+ ],
1434
+ "internalType": "struct Fee",
1435
+ "name": "stakingFee",
1436
+ "type": "tuple"
1437
+ },
1438
+ {
1439
+ "components": [
1440
+ {
1441
+ "internalType": "UFixed",
1442
+ "name": "fractionalFee",
1443
+ "type": "uint256"
1444
+ },
1445
+ {
1446
+ "internalType": "uint256",
1447
+ "name": "fixedFee",
1448
+ "type": "uint256"
1449
+ }
1450
+ ],
1451
+ "internalType": "struct Fee",
1452
+ "name": "performanceFee",
1453
+ "type": "tuple"
1454
+ },
1455
+ {
1456
+ "internalType": "bool",
1457
+ "name": "isIntercepting",
1458
+ "type": "bool"
1459
+ },
1460
+ {
1461
+ "internalType": "bool",
1462
+ "name": "isConfirmingApplication",
1463
+ "type": "bool"
1464
+ },
1465
+ {
1466
+ "internalType": "address",
1467
+ "name": "wallet",
1468
+ "type": "address"
1469
+ }
1470
+ ],
1471
+ "internalType": "struct ISetup.PoolSetupInfo",
1472
+ "name": "setup",
1473
+ "type": "tuple"
1474
+ },
766
1475
  {
767
- "internalType": "bool",
768
- "name": "",
769
- "type": "bool"
1476
+ "internalType": "StateId",
1477
+ "name": "newState",
1478
+ "type": "uint8"
770
1479
  }
771
1480
  ],
772
- "stateMutability": "pure",
1481
+ "name": "updatePoolSetup",
1482
+ "outputs": [],
1483
+ "stateMutability": "nonpayable",
773
1484
  "type": "function"
774
1485
  },
775
1486
  {
776
- "inputs": [],
777
- "name": "isRegistered",
778
- "outputs": [
1487
+ "inputs": [
779
1488
  {
780
- "internalType": "bool",
781
- "name": "",
782
- "type": "bool"
783
- }
784
- ],
785
- "stateMutability": "view",
786
- "type": "function"
787
- },
788
- {
789
- "inputs": [],
790
- "name": "register",
791
- "outputs": [
1489
+ "internalType": "NftId",
1490
+ "name": "poolNftId",
1491
+ "type": "uint96"
1492
+ },
792
1493
  {
793
- "internalType": "uint256",
794
- "name": "nftId",
795
- "type": "uint256"
1494
+ "internalType": "StateId",
1495
+ "name": "newState",
1496
+ "type": "uint8"
796
1497
  }
797
1498
  ],
1499
+ "name": "updatePoolSetupState",
1500
+ "outputs": [],
798
1501
  "stateMutability": "nonpayable",
799
1502
  "type": "function"
800
1503
  },
801
1504
  {
802
1505
  "inputs": [
803
1506
  {
804
- "internalType": "contract IComponentContract",
805
- "name": "component",
806
- "type": "address"
807
- }
808
- ],
809
- "name": "registerComponent",
810
- "outputs": [
1507
+ "internalType": "NftId",
1508
+ "name": "productNftId",
1509
+ "type": "uint96"
1510
+ },
1511
+ {
1512
+ "components": [
1513
+ {
1514
+ "internalType": "contract IERC20Metadata",
1515
+ "name": "token",
1516
+ "type": "address"
1517
+ },
1518
+ {
1519
+ "internalType": "contract TokenHandler",
1520
+ "name": "tokenHandler",
1521
+ "type": "address"
1522
+ },
1523
+ {
1524
+ "internalType": "NftId",
1525
+ "name": "distributionNftId",
1526
+ "type": "uint96"
1527
+ },
1528
+ {
1529
+ "internalType": "NftId",
1530
+ "name": "poolNftId",
1531
+ "type": "uint96"
1532
+ },
1533
+ {
1534
+ "components": [
1535
+ {
1536
+ "internalType": "UFixed",
1537
+ "name": "fractionalFee",
1538
+ "type": "uint256"
1539
+ },
1540
+ {
1541
+ "internalType": "uint256",
1542
+ "name": "fixedFee",
1543
+ "type": "uint256"
1544
+ }
1545
+ ],
1546
+ "internalType": "struct Fee",
1547
+ "name": "distributionFee",
1548
+ "type": "tuple"
1549
+ },
1550
+ {
1551
+ "components": [
1552
+ {
1553
+ "internalType": "UFixed",
1554
+ "name": "fractionalFee",
1555
+ "type": "uint256"
1556
+ },
1557
+ {
1558
+ "internalType": "uint256",
1559
+ "name": "fixedFee",
1560
+ "type": "uint256"
1561
+ }
1562
+ ],
1563
+ "internalType": "struct Fee",
1564
+ "name": "productFee",
1565
+ "type": "tuple"
1566
+ },
1567
+ {
1568
+ "components": [
1569
+ {
1570
+ "internalType": "UFixed",
1571
+ "name": "fractionalFee",
1572
+ "type": "uint256"
1573
+ },
1574
+ {
1575
+ "internalType": "uint256",
1576
+ "name": "fixedFee",
1577
+ "type": "uint256"
1578
+ }
1579
+ ],
1580
+ "internalType": "struct Fee",
1581
+ "name": "processingFee",
1582
+ "type": "tuple"
1583
+ },
1584
+ {
1585
+ "components": [
1586
+ {
1587
+ "internalType": "UFixed",
1588
+ "name": "fractionalFee",
1589
+ "type": "uint256"
1590
+ },
1591
+ {
1592
+ "internalType": "uint256",
1593
+ "name": "fixedFee",
1594
+ "type": "uint256"
1595
+ }
1596
+ ],
1597
+ "internalType": "struct Fee",
1598
+ "name": "poolFee",
1599
+ "type": "tuple"
1600
+ },
1601
+ {
1602
+ "components": [
1603
+ {
1604
+ "internalType": "UFixed",
1605
+ "name": "fractionalFee",
1606
+ "type": "uint256"
1607
+ },
1608
+ {
1609
+ "internalType": "uint256",
1610
+ "name": "fixedFee",
1611
+ "type": "uint256"
1612
+ }
1613
+ ],
1614
+ "internalType": "struct Fee",
1615
+ "name": "stakingFee",
1616
+ "type": "tuple"
1617
+ },
1618
+ {
1619
+ "components": [
1620
+ {
1621
+ "internalType": "UFixed",
1622
+ "name": "fractionalFee",
1623
+ "type": "uint256"
1624
+ },
1625
+ {
1626
+ "internalType": "uint256",
1627
+ "name": "fixedFee",
1628
+ "type": "uint256"
1629
+ }
1630
+ ],
1631
+ "internalType": "struct Fee",
1632
+ "name": "performanceFee",
1633
+ "type": "tuple"
1634
+ },
1635
+ {
1636
+ "internalType": "bool",
1637
+ "name": "isIntercepting",
1638
+ "type": "bool"
1639
+ },
1640
+ {
1641
+ "internalType": "address",
1642
+ "name": "wallet",
1643
+ "type": "address"
1644
+ }
1645
+ ],
1646
+ "internalType": "struct ISetup.ProductSetupInfo",
1647
+ "name": "setup",
1648
+ "type": "tuple"
1649
+ },
811
1650
  {
812
- "internalType": "uint256",
813
- "name": "nftInfo",
814
- "type": "uint256"
1651
+ "internalType": "StateId",
1652
+ "name": "newState",
1653
+ "type": "uint8"
815
1654
  }
816
1655
  ],
1656
+ "name": "updateProductSetup",
1657
+ "outputs": [],
817
1658
  "stateMutability": "nonpayable",
818
1659
  "type": "function"
819
1660
  },
820
1661
  {
821
1662
  "inputs": [
822
1663
  {
823
- "internalType": "bytes32",
824
- "name": "role",
825
- "type": "bytes32"
1664
+ "internalType": "NftId",
1665
+ "name": "productNftId",
1666
+ "type": "uint96"
826
1667
  },
827
1668
  {
828
- "internalType": "address",
829
- "name": "member",
830
- "type": "address"
1669
+ "internalType": "StateId",
1670
+ "name": "newState",
1671
+ "type": "uint8"
831
1672
  }
832
1673
  ],
833
- "name": "revokeRole",
1674
+ "name": "updateProductSetupState",
834
1675
  "outputs": [],
835
1676
  "stateMutability": "nonpayable",
836
1677
  "type": "function"
837
1678
  },
838
1679
  {
839
1680
  "inputs": [
1681
+ {
1682
+ "internalType": "RiskId",
1683
+ "name": "riskId",
1684
+ "type": "bytes8"
1685
+ },
840
1686
  {
841
1687
  "components": [
842
1688
  {
843
- "internalType": "uint256",
844
- "name": "nftId",
845
- "type": "uint256"
1689
+ "internalType": "NftId",
1690
+ "name": "productNftId",
1691
+ "type": "uint96"
846
1692
  },
847
1693
  {
848
- "internalType": "enum IComponent.CState",
849
- "name": "state",
850
- "type": "uint8"
1694
+ "internalType": "bytes",
1695
+ "name": "data",
1696
+ "type": "bytes"
851
1697
  }
852
1698
  ],
853
- "internalType": "struct IComponent.ComponentInfo",
854
- "name": "info",
1699
+ "internalType": "struct IRisk.RiskInfo",
1700
+ "name": "risk",
855
1701
  "type": "tuple"
856
- }
857
- ],
858
- "name": "setComponentInfo",
859
- "outputs": [
1702
+ },
860
1703
  {
861
- "internalType": "uint256",
862
- "name": "componentId",
863
- "type": "uint256"
1704
+ "internalType": "StateId",
1705
+ "name": "newState",
1706
+ "type": "uint8"
864
1707
  }
865
1708
  ],
1709
+ "name": "updateRisk",
1710
+ "outputs": [],
866
1711
  "stateMutability": "nonpayable",
867
1712
  "type": "function"
868
1713
  },
869
1714
  {
870
1715
  "inputs": [
871
1716
  {
872
- "internalType": "uint256",
873
- "name": "poolNftId",
874
- "type": "uint256"
1717
+ "internalType": "RiskId",
1718
+ "name": "riskId",
1719
+ "type": "bytes8"
875
1720
  },
876
1721
  {
877
- "internalType": "uint256",
878
- "name": "policyNftId",
879
- "type": "uint256"
1722
+ "internalType": "StateId",
1723
+ "name": "newState",
1724
+ "type": "uint8"
880
1725
  }
881
1726
  ],
882
- "name": "underwrite",
1727
+ "name": "updateRiskState",
883
1728
  "outputs": [],
884
1729
  "stateMutability": "nonpayable",
885
1730
  "type": "function"