@etherisc/gif-next 0.0.2-b9b3e89 → 0.0.2-b9e43cf-870

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