@etherisc/gif-next 0.0.2-f9bc4c7-556 → 0.0.2-fbe22f0-239

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