@etherisc/gif-next 0.0.2-e1e92ab-754 → 0.0.2-e2a57af-971

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