@etherisc/gif-next 0.0.2-e37834a-021 → 0.0.2-e3f4f82-063

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