@etherisc/gif-next 0.0.2-6f2f76e-746 → 0.0.2-6f943ea-736

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