@etherisc/gif-next 0.0.2-8d47fa1-080 → 0.0.2-90f8ffc-398

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (407) hide show
  1. package/README.md +171 -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 +479 -75
  6. package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
  7. package/artifacts/contracts/components/IComponent.sol/IComponent.json +455 -0
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +338 -33
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +372 -103
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +420 -45
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +507 -165
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +554 -107
  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 +997 -1189
  50. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
  51. package/artifacts/contracts/instance/{base/ServiceBase.sol/ServiceBase.json → IInstanceService.sol/IInstanceService.json} +247 -41
  52. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  53. package/artifacts/contracts/instance/Instance.sol/Instance.json +1783 -1303
  54. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
  55. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +1034 -0
  56. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +4 -0
  57. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1381 -0
  58. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
  59. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +1039 -0
  60. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
  61. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +473 -0
  62. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
  63. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +261 -0
  64. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
  65. package/artifacts/contracts/instance/base/{ComponentServiceBase.sol/ComponentServiceBase.json → ComponentService.sol/ComponentService.json} +228 -18
  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 +290 -44
  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 +93 -21
  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 +95 -85
  103. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  104. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +89 -232
  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 +273 -116
  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 +247 -355
  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 +221 -68
  121. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  122. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +365 -52
  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 +200 -209
  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 +423 -84
  130. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
  131. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +464 -0
  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 +4 -0
  137. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +107 -0
  138. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  139. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +2 -2
  140. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
  141. package/artifacts/contracts/{instance/module/component/IComponent.sol/IComponentModule.json → shared/INftOwnable.sol/INftOwnable.json} +67 -57
  142. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  143. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +80 -8
  144. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
  145. package/artifacts/contracts/{instance/service/IComponentOwnerService.sol/IComponentOwnerService.json → shared/IService.sol/IService.json} +90 -63
  146. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  147. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
  148. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +171 -0
  149. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  150. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +132 -80
  151. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  152. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +133 -11
  153. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
  154. package/artifacts/contracts/{instance/base/InstanceBase.sol/InstanceBase.json → shared/Service.sol/Service.json} +113 -93
  155. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +4 -0
  156. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +96 -0
  157. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  158. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +2 -2
  159. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  160. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  161. package/artifacts/contracts/test/TestFee.sol/TestFee.json +4 -4
  162. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  163. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +133 -11
  164. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  165. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +14 -14
  166. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  167. package/artifacts/contracts/test/TestService.sol/TestService.json +168 -32
  168. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  169. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +91 -53
  170. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  171. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
  172. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  173. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +18 -2
  174. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  175. package/artifacts/contracts/test/Usdc.sol/USDC.json +91 -53
  176. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  177. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  178. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  179. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
  180. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +104 -0
  181. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  182. package/artifacts/contracts/types/Fee.sol/FeeLib.json +4 -4
  183. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  184. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +31 -17
  185. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  186. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +2 -2
  187. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  188. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +26 -3
  189. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +4 -0
  190. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +100 -0
  191. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  192. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  193. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +4 -0
  194. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +123 -0
  195. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
  196. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +2 -2
  197. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  198. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +134 -8
  199. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  200. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  201. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  202. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +15 -2
  203. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +4 -0
  204. package/artifacts/contracts/types/UFixed.sol/MathLib.json +10 -0
  205. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +4 -0
  206. package/artifacts/contracts/types/UFixed.sol/{UFixedMathLib.json → UFixedLib.json} +3 -3
  207. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  208. package/artifacts/contracts/types/Version.sol/VersionLib.json +2 -2
  209. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  210. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +22 -3
  211. package/contracts/components/Component.sol +216 -0
  212. package/contracts/components/Distribution.sol +51 -53
  213. package/contracts/components/IComponent.sol +43 -0
  214. package/contracts/components/IDistributionComponent.sol +6 -6
  215. package/contracts/components/IPoolComponent.sol +7 -16
  216. package/contracts/components/IProductComponent.sol +8 -8
  217. package/contracts/components/Pool.sol +67 -98
  218. package/contracts/components/Product.sol +87 -120
  219. package/contracts/experiment/cloning/Cloner.sol +47 -0
  220. package/contracts/instance/BundleManager.sol +125 -0
  221. package/contracts/instance/Cloneable.sol +46 -0
  222. package/contracts/instance/IInstance.sol +64 -46
  223. package/contracts/instance/IInstanceService.sol +41 -0
  224. package/contracts/instance/Instance.sol +251 -67
  225. package/contracts/instance/InstanceAccessManager.sol +298 -0
  226. package/contracts/instance/InstanceReader.sol +293 -0
  227. package/contracts/instance/InstanceService.sol +435 -0
  228. package/contracts/instance/InstanceServiceManager.sol +54 -0
  229. package/contracts/instance/ObjectManager.sol +84 -0
  230. package/contracts/instance/base/ComponentService.sol +134 -0
  231. package/contracts/instance/base/IKeyValueStore.sol +13 -14
  232. package/contracts/instance/base/ILifecycle.sol +3 -3
  233. package/contracts/instance/base/KeyValueStore.sol +49 -38
  234. package/contracts/instance/base/Lifecycle.sol +1 -1
  235. package/contracts/instance/module/IAccess.sol +48 -0
  236. package/contracts/instance/module/IBundle.sol +20 -0
  237. package/contracts/instance/module/IDistribution.sol +39 -0
  238. package/contracts/instance/module/IPolicy.sol +45 -0
  239. package/contracts/instance/module/IRisk.sol +11 -0
  240. package/contracts/instance/module/ISetup.sol +46 -0
  241. package/contracts/instance/module/ITreasury.sol +23 -0
  242. package/contracts/instance/service/BundleService.sol +293 -0
  243. package/contracts/instance/service/BundleServiceManager.sol +51 -0
  244. package/contracts/instance/service/DistributionService.sol +72 -20
  245. package/contracts/instance/service/DistributionServiceManager.sol +51 -0
  246. package/contracts/instance/service/IBundleService.sol +44 -0
  247. package/contracts/instance/service/IDistributionService.sol +1 -1
  248. package/contracts/instance/service/IPolicyService.sol +94 -0
  249. package/contracts/instance/service/IPoolService.sol +7 -24
  250. package/contracts/instance/service/IProductService.sol +9 -76
  251. package/contracts/instance/service/PolicyService.sol +538 -0
  252. package/contracts/instance/service/PolicyServiceManager.sol +54 -0
  253. package/contracts/instance/service/PoolService.sol +77 -116
  254. package/contracts/instance/service/PoolServiceManager.sol +51 -0
  255. package/contracts/instance/service/ProductService.sol +157 -433
  256. package/contracts/instance/service/ProductServiceManager.sol +54 -0
  257. package/contracts/registry/ChainNft.sol +41 -26
  258. package/contracts/registry/IRegistry.sol +54 -31
  259. package/contracts/registry/IRegistryService.sol +52 -16
  260. package/contracts/registry/Registry.sol +264 -317
  261. package/contracts/registry/RegistryAccessManager.sol +216 -0
  262. package/contracts/registry/RegistryService.sol +139 -260
  263. package/contracts/registry/RegistryServiceManager.sol +62 -0
  264. package/contracts/registry/ReleaseManager.sol +332 -0
  265. package/contracts/registry/TokenRegistry.sol +112 -0
  266. package/contracts/shared/ContractDeployerLib.sol +72 -0
  267. package/contracts/shared/ERC165.sol +7 -3
  268. package/contracts/shared/INftOwnable.sol +22 -0
  269. package/contracts/shared/IRegisterable.sol +4 -11
  270. package/contracts/shared/IService.sol +16 -0
  271. package/contracts/shared/NftOwnable.sol +139 -0
  272. package/contracts/shared/ProxyManager.sol +17 -38
  273. package/contracts/shared/Registerable.sol +23 -54
  274. package/contracts/shared/Service.sol +60 -0
  275. package/contracts/shared/TokenHandler.sol +27 -0
  276. package/contracts/shared/UpgradableProxyWithAdmin.sol +2 -2
  277. package/contracts/shared/Versionable.sol +3 -3
  278. package/contracts/test/TestFee.sol +2 -2
  279. package/contracts/test/TestRoleId.sol +1 -1
  280. package/contracts/test/TestService.sol +6 -7
  281. package/contracts/types/DistributorType.sol +55 -0
  282. package/contracts/types/Fee.sol +3 -3
  283. package/contracts/types/Key32.sol +8 -3
  284. package/contracts/types/NftIdSet.sol +26 -24
  285. package/contracts/types/NumberId.sol +52 -0
  286. package/contracts/types/ObjectType.sol +35 -14
  287. package/contracts/types/Referral.sol +85 -0
  288. package/contracts/types/RoleId.sol +61 -9
  289. package/contracts/types/StateId.sol +5 -1
  290. package/contracts/types/Timestamp.sol +7 -3
  291. package/contracts/types/UFixed.sol +128 -12
  292. package/contracts/types/Version.sol +4 -1
  293. package/package.json +4 -3
  294. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
  295. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +0 -213
  296. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
  297. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +0 -177
  298. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +0 -4
  299. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.json +0 -24
  300. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
  301. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
  302. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +0 -113
  303. package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +0 -4
  304. package/artifacts/contracts/instance/base/IService.sol/IService.json +0 -344
  305. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +0 -4
  306. package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +0 -4
  307. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +0 -4
  308. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +0 -4
  309. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.json +0 -333
  310. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +0 -4
  311. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.json +0 -10
  312. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +0 -4
  313. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.json +0 -333
  314. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +0 -4
  315. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +0 -297
  316. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +0 -4
  317. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +0 -4
  318. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +0 -297
  319. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
  320. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +0 -117
  321. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +0 -4
  322. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.json +0 -10
  323. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +0 -4
  324. package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.dbg.json +0 -4
  325. package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.json +0 -10
  326. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistribution.dbg.json +0 -4
  327. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.dbg.json +0 -4
  328. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.json +0 -10
  329. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
  330. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
  331. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.json +0 -284
  332. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
  333. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +0 -284
  334. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +0 -4
  335. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.json +0 -10
  336. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
  337. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.json +0 -164
  338. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
  339. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +0 -164
  340. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +0 -4
  341. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +0 -4
  342. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +0 -113
  343. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +0 -4
  344. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +0 -131
  345. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +0 -4
  346. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +0 -4
  347. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +0 -638
  348. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +0 -4
  349. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +0 -76
  350. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +0 -4
  351. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +0 -638
  352. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
  353. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -690
  354. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
  355. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
  356. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.json +0 -457
  357. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +0 -4
  358. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.json +0 -24
  359. package/artifacts/contracts/registry/RegistryInstaller.sol/RegistryInstaller.dbg.json +0 -4
  360. package/artifacts/contracts/registry/RegistryInstaller.sol/RegistryInstaller.json +0 -344
  361. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +0 -4
  362. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.json +0 -24
  363. package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.dbg.json +0 -4
  364. package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.json +0 -445
  365. package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +0 -4
  366. package/artifacts/contracts/test/TestPool.sol/TestPool.json +0 -602
  367. package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +0 -4
  368. package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +0 -632
  369. package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.dbg.json +0 -4
  370. package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.json +0 -99
  371. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
  372. package/contracts/components/BaseComponent.sol +0 -79
  373. package/contracts/components/IBaseComponent.sol +0 -19
  374. package/contracts/instance/IInstanceLinked.sol +0 -8
  375. package/contracts/instance/base/ComponentServiceBase.sol +0 -49
  376. package/contracts/instance/base/IInstanceBase.sol +0 -23
  377. package/contracts/instance/base/IService.sol +0 -15
  378. package/contracts/instance/base/InstanceBase.sol +0 -89
  379. package/contracts/instance/base/ModuleBase.sol +0 -57
  380. package/contracts/instance/base/ServiceBase.sol +0 -43
  381. package/contracts/instance/module/access/Access.sol +0 -149
  382. package/contracts/instance/module/access/IAccess.sol +0 -53
  383. package/contracts/instance/module/bundle/BundleModule.sol +0 -134
  384. package/contracts/instance/module/bundle/IBundle.sol +0 -53
  385. package/contracts/instance/module/component/ComponentModule.sol +0 -71
  386. package/contracts/instance/module/component/IComponent.sol +0 -28
  387. package/contracts/instance/module/distribution/DistributionModule.sol +0 -17
  388. package/contracts/instance/module/distribution/IDistribution.sol +0 -10
  389. package/contracts/instance/module/policy/IPolicy.sol +0 -63
  390. package/contracts/instance/module/policy/PolicyModule.sol +0 -91
  391. package/contracts/instance/module/pool/IPoolModule.sol +0 -41
  392. package/contracts/instance/module/pool/PoolModule.sol +0 -95
  393. package/contracts/instance/module/risk/IRisk.sol +0 -26
  394. package/contracts/instance/module/risk/RiskModule.sol +0 -62
  395. package/contracts/instance/module/treasury/ITreasury.sol +0 -84
  396. package/contracts/instance/module/treasury/TokenHandler.sol +0 -48
  397. package/contracts/instance/module/treasury/TreasuryModule.sol +0 -131
  398. package/contracts/instance/service/ComponentOwnerService.sol +0 -272
  399. package/contracts/instance/service/IComponentOwnerService.sol +0 -20
  400. package/contracts/registry/IChainNft.sol +0 -22
  401. package/contracts/registry/IRegistryLinked.sol +0 -8
  402. package/contracts/registry/RegistryInstaller.sol +0 -100
  403. package/contracts/shared/IOwnable.sol +0 -6
  404. package/contracts/test/TestDistribution.sol +0 -22
  405. package/contracts/test/TestPool.sol +0 -27
  406. package/contracts/test/TestProduct.sol +0 -74
  407. package/contracts/types/ReferralId.sol +0 -48
@@ -4,349 +4,312 @@
4
4
  "sourceName": "contracts/instance/IInstance.sol",
5
5
  "abi": [
6
6
  {
7
- "anonymous": false,
8
7
  "inputs": [
9
8
  {
10
- "indexed": false,
11
- "internalType": "RoleId",
12
- "name": "role",
13
- "type": "bytes8"
14
- },
15
- {
16
- "indexed": false,
17
- "internalType": "string",
18
- "name": "roleName",
19
- "type": "string"
9
+ "internalType": "address",
10
+ "name": "authority",
11
+ "type": "address"
20
12
  }
21
13
  ],
22
- "name": "LogAccessRoleCreated",
23
- "type": "event"
14
+ "name": "AccessManagedInvalidAuthority",
15
+ "type": "error"
24
16
  },
25
17
  {
26
- "anonymous": false,
27
18
  "inputs": [
28
19
  {
29
- "indexed": false,
30
- "internalType": "RoleId",
31
- "name": "role",
32
- "type": "bytes8"
33
- },
34
- {
35
- "indexed": false,
36
20
  "internalType": "address",
37
- "name": "member",
21
+ "name": "caller",
38
22
  "type": "address"
39
23
  },
40
24
  {
41
- "indexed": false,
42
- "internalType": "bool",
43
- "name": "isMember",
44
- "type": "bool"
25
+ "internalType": "uint32",
26
+ "name": "delay",
27
+ "type": "uint32"
45
28
  }
46
29
  ],
47
- "name": "LogAccessRoleGranted",
48
- "type": "event"
30
+ "name": "AccessManagedRequiredDelay",
31
+ "type": "error"
49
32
  },
50
33
  {
51
- "anonymous": false,
52
34
  "inputs": [
53
35
  {
54
- "indexed": false,
55
- "internalType": "RoleId",
56
- "name": "role",
57
- "type": "bytes8"
58
- },
59
- {
60
- "indexed": false,
61
- "internalType": "bool",
62
- "name": "active",
63
- "type": "bool"
36
+ "internalType": "address",
37
+ "name": "caller",
38
+ "type": "address"
64
39
  }
65
40
  ],
66
- "name": "LogAccessRoleStateSet",
67
- "type": "event"
41
+ "name": "AccessManagedUnauthorized",
42
+ "type": "error"
68
43
  },
69
44
  {
70
- "anonymous": false,
71
45
  "inputs": [
72
46
  {
73
- "indexed": false,
74
- "internalType": "Version",
75
- "name": "version",
76
- "type": "uint24"
77
- },
78
- {
79
- "indexed": false,
80
47
  "internalType": "address",
81
- "name": "implementation",
48
+ "name": "registry",
82
49
  "type": "address"
83
50
  },
84
51
  {
85
- "indexed": false,
52
+ "internalType": "NftId",
53
+ "name": "nftId",
54
+ "type": "uint96"
55
+ }
56
+ ],
57
+ "name": "ErrorAlreadyLinked",
58
+ "type": "error"
59
+ },
60
+ {
61
+ "inputs": [
62
+ {
86
63
  "internalType": "address",
87
- "name": "activatedBy",
64
+ "name": "contractAddress",
88
65
  "type": "address"
89
66
  }
90
67
  ],
91
- "name": "LogVersionableInitialized",
92
- "type": "event"
68
+ "name": "ErrorContractNotRegistered",
69
+ "type": "error"
93
70
  },
94
71
  {
95
72
  "inputs": [
96
73
  {
97
- "internalType": "NftId",
98
- "name": "bundleNftId",
99
- "type": "uint96"
74
+ "internalType": "ObjectType",
75
+ "name": "objectType",
76
+ "type": "uint8"
100
77
  },
101
78
  {
102
- "internalType": "NftId",
103
- "name": "poolNftId",
104
- "type": "uint96"
79
+ "internalType": "StateId",
80
+ "name": "fromStateId",
81
+ "type": "uint8"
105
82
  },
106
83
  {
107
- "internalType": "uint256",
108
- "name": "amount",
109
- "type": "uint256"
84
+ "internalType": "StateId",
85
+ "name": "toStateId",
86
+ "type": "uint8"
110
87
  }
111
88
  ],
112
- "name": "addBundleToPool",
113
- "outputs": [],
114
- "stateMutability": "nonpayable",
115
- "type": "function"
89
+ "name": "ErrorInvalidStateTransition",
90
+ "type": "error"
116
91
  },
117
92
  {
118
93
  "inputs": [
119
94
  {
120
- "internalType": "uint256",
121
- "name": "amount",
122
- "type": "uint256"
95
+ "internalType": "NftId",
96
+ "name": "nftId",
97
+ "type": "uint96"
123
98
  },
124
99
  {
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"
100
+ "internalType": "ObjectType",
101
+ "name": "objectType",
102
+ "type": "uint8"
140
103
  }
141
104
  ],
142
- "name": "calculateFeeAmount",
143
- "outputs": [
144
- {
145
- "internalType": "uint256",
146
- "name": "feeAmount",
147
- "type": "uint256"
148
- },
105
+ "name": "ErrorNoLifecycle",
106
+ "type": "error"
107
+ },
108
+ {
109
+ "inputs": [
149
110
  {
150
- "internalType": "uint256",
151
- "name": "netAmount",
152
- "type": "uint256"
111
+ "internalType": "address",
112
+ "name": "account",
113
+ "type": "address"
153
114
  }
154
115
  ],
155
- "stateMutability": "pure",
156
- "type": "function"
116
+ "name": "ErrorNotOwner",
117
+ "type": "error"
157
118
  },
158
119
  {
159
120
  "inputs": [
160
121
  {
161
- "internalType": "NftId",
162
- "name": "bundleNftId",
163
- "type": "uint96"
164
- },
165
- {
166
- "internalType": "NftId",
167
- "name": "policyNftId",
168
- "type": "uint96"
169
- },
122
+ "internalType": "address",
123
+ "name": "registryAddress",
124
+ "type": "address"
125
+ }
126
+ ],
127
+ "name": "ErrorNotRegistry",
128
+ "type": "error"
129
+ },
130
+ {
131
+ "inputs": [],
132
+ "name": "ErrorRegistryAddressZero",
133
+ "type": "error"
134
+ },
135
+ {
136
+ "inputs": [
170
137
  {
171
- "internalType": "uint256",
172
- "name": "amount",
173
- "type": "uint256"
138
+ "internalType": "address",
139
+ "name": "registry",
140
+ "type": "address"
174
141
  }
175
142
  ],
176
- "name": "collateralizePolicy",
177
- "outputs": [],
178
- "stateMutability": "nonpayable",
179
- "type": "function"
143
+ "name": "ErrorRegistryAlreadyInitialized",
144
+ "type": "error"
145
+ },
146
+ {
147
+ "inputs": [],
148
+ "name": "ErrorRegistryNotInitialized",
149
+ "type": "error"
180
150
  },
181
151
  {
152
+ "anonymous": false,
182
153
  "inputs": [
183
154
  {
184
- "internalType": "NftId",
185
- "name": "bundleNftId",
186
- "type": "uint96"
187
- },
155
+ "indexed": false,
156
+ "internalType": "address",
157
+ "name": "authority",
158
+ "type": "address"
159
+ }
160
+ ],
161
+ "name": "AuthorityUpdated",
162
+ "type": "event"
163
+ },
164
+ {
165
+ "anonymous": false,
166
+ "inputs": [
188
167
  {
189
- "internalType": "NftId",
190
- "name": "poolNftId",
191
- "type": "uint96"
168
+ "indexed": false,
169
+ "internalType": "ObjectType",
170
+ "name": "objectType",
171
+ "type": "uint8"
192
172
  },
193
173
  {
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"
174
+ "indexed": false,
175
+ "internalType": "KeyId",
176
+ "name": "keyId",
177
+ "type": "bytes31"
209
178
  },
210
179
  {
211
- "internalType": "uint256",
212
- "name": "amount",
213
- "type": "uint256"
180
+ "indexed": false,
181
+ "internalType": "StateId",
182
+ "name": "state",
183
+ "type": "uint8"
214
184
  },
215
185
  {
216
- "internalType": "uint256",
217
- "name": "lifetime",
218
- "type": "uint256"
186
+ "indexed": false,
187
+ "internalType": "address",
188
+ "name": "createdBy",
189
+ "type": "address"
219
190
  },
220
191
  {
221
- "internalType": "bytes",
222
- "name": "filter",
223
- "type": "bytes"
192
+ "indexed": false,
193
+ "internalType": "address",
194
+ "name": "txOrigin",
195
+ "type": "address"
224
196
  }
225
197
  ],
226
- "name": "createBundleInfo",
227
- "outputs": [],
228
- "stateMutability": "nonpayable",
229
- "type": "function"
198
+ "name": "LogInfoCreated",
199
+ "type": "event"
230
200
  },
231
201
  {
202
+ "anonymous": false,
232
203
  "inputs": [
233
204
  {
234
- "internalType": "NftId",
235
- "name": "policyNftId",
236
- "type": "uint96"
237
- },
238
- {
239
- "internalType": "NftId",
240
- "name": "productNftId",
241
- "type": "uint96"
242
- },
243
- {
244
- "internalType": "ReferralId",
245
- "name": "referralId",
246
- "type": "bytes8"
205
+ "indexed": false,
206
+ "internalType": "ObjectType",
207
+ "name": "objectType",
208
+ "type": "uint8"
247
209
  },
248
210
  {
249
- "internalType": "RiskId",
250
- "name": "riskId",
251
- "type": "bytes8"
211
+ "indexed": false,
212
+ "internalType": "KeyId",
213
+ "name": "keyId",
214
+ "type": "bytes31"
252
215
  },
253
216
  {
254
- "internalType": "uint256",
255
- "name": "sumInsuredAmount",
256
- "type": "uint256"
217
+ "indexed": false,
218
+ "internalType": "StateId",
219
+ "name": "state",
220
+ "type": "uint8"
257
221
  },
258
222
  {
259
- "internalType": "uint256",
260
- "name": "premiumAmount",
261
- "type": "uint256"
223
+ "indexed": false,
224
+ "internalType": "address",
225
+ "name": "updatedBy",
226
+ "type": "address"
262
227
  },
263
228
  {
264
- "internalType": "uint256",
265
- "name": "lifetime",
266
- "type": "uint256"
229
+ "indexed": false,
230
+ "internalType": "address",
231
+ "name": "txOrigin",
232
+ "type": "address"
267
233
  },
268
234
  {
269
- "internalType": "NftId",
270
- "name": "bundleNftId",
271
- "type": "uint96"
235
+ "indexed": false,
236
+ "internalType": "Blocknumber",
237
+ "name": "lastUpdatedIn",
238
+ "type": "uint32"
272
239
  }
273
240
  ],
274
- "name": "createPolicyInfo",
275
- "outputs": [],
276
- "stateMutability": "nonpayable",
277
- "type": "function"
241
+ "name": "LogInfoUpdated",
242
+ "type": "event"
278
243
  },
279
244
  {
245
+ "anonymous": false,
280
246
  "inputs": [
281
247
  {
282
- "internalType": "RiskId",
283
- "name": "riskId",
284
- "type": "bytes8"
248
+ "indexed": false,
249
+ "internalType": "ObjectType",
250
+ "name": "objectType",
251
+ "type": "uint8"
285
252
  },
286
253
  {
287
- "internalType": "NftId",
288
- "name": "productNftId",
289
- "type": "uint96"
254
+ "indexed": false,
255
+ "internalType": "KeyId",
256
+ "name": "keyId",
257
+ "type": "bytes31"
290
258
  },
291
259
  {
292
- "internalType": "bytes",
293
- "name": "data",
294
- "type": "bytes"
260
+ "indexed": false,
261
+ "internalType": "StateId",
262
+ "name": "stateOld",
263
+ "type": "uint8"
264
+ },
265
+ {
266
+ "indexed": false,
267
+ "internalType": "StateId",
268
+ "name": "stateNew",
269
+ "type": "uint8"
270
+ },
271
+ {
272
+ "indexed": false,
273
+ "internalType": "address",
274
+ "name": "updatedBy",
275
+ "type": "address"
276
+ },
277
+ {
278
+ "indexed": false,
279
+ "internalType": "address",
280
+ "name": "txOrigin",
281
+ "type": "address"
282
+ },
283
+ {
284
+ "indexed": false,
285
+ "internalType": "Blocknumber",
286
+ "name": "lastUpdatedIn",
287
+ "type": "uint32"
295
288
  }
296
289
  ],
297
- "name": "createRisk",
298
- "outputs": [],
299
- "stateMutability": "nonpayable",
300
- "type": "function"
290
+ "name": "LogStateUpdated",
291
+ "type": "event"
301
292
  },
302
293
  {
303
- "inputs": [
304
- {
305
- "internalType": "string",
306
- "name": "roleName",
307
- "type": "string"
308
- }
309
- ],
310
- "name": "createRole",
294
+ "inputs": [],
295
+ "name": "authority",
311
296
  "outputs": [
312
297
  {
313
- "internalType": "RoleId",
314
- "name": "role",
315
- "type": "bytes8"
298
+ "internalType": "address",
299
+ "name": "",
300
+ "type": "address"
316
301
  }
317
302
  ],
318
- "stateMutability": "nonpayable",
303
+ "stateMutability": "view",
319
304
  "type": "function"
320
305
  },
321
306
  {
322
307
  "inputs": [
323
308
  {
324
309
  "internalType": "NftId",
325
- "name": "poolNftId",
310
+ "name": "bundleNftId",
326
311
  "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": [
312
+ },
350
313
  {
351
314
  "components": [
352
315
  {
@@ -391,6 +354,11 @@
391
354
  "name": "balanceAmount",
392
355
  "type": "uint256"
393
356
  },
357
+ {
358
+ "internalType": "uint256",
359
+ "name": "lifetime",
360
+ "type": "uint256"
361
+ },
394
362
  {
395
363
  "internalType": "Timestamp",
396
364
  "name": "expiredAt",
@@ -403,286 +371,79 @@
403
371
  }
404
372
  ],
405
373
  "internalType": "struct IBundle.BundleInfo",
406
- "name": "bundleInfo",
374
+ "name": "bundle",
407
375
  "type": "tuple"
408
376
  }
409
377
  ],
410
- "stateMutability": "view",
378
+ "name": "createBundle",
379
+ "outputs": [],
380
+ "stateMutability": "nonpayable",
411
381
  "type": "function"
412
382
  },
413
383
  {
414
384
  "inputs": [
415
385
  {
416
386
  "internalType": "NftId",
417
- "name": "poolNftId",
387
+ "name": "distributionNftId",
418
388
  "type": "uint96"
419
389
  },
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
390
  {
574
391
  "components": [
575
392
  {
576
393
  "internalType": "NftId",
577
- "name": "nftId",
394
+ "name": "productNftId",
578
395
  "type": "uint96"
579
396
  },
580
397
  {
581
- "internalType": "NftId",
582
- "name": "parentNftId",
583
- "type": "uint96"
398
+ "internalType": "contract TokenHandler",
399
+ "name": "tokenHandler",
400
+ "type": "address"
584
401
  },
585
402
  {
586
- "internalType": "ObjectType",
587
- "name": "objectType",
588
- "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"
589
418
  },
590
419
  {
591
420
  "internalType": "bool",
592
- "name": "isInterceptor",
421
+ "name": "isIntercepting",
593
422
  "type": "bool"
594
423
  },
595
424
  {
596
425
  "internalType": "address",
597
- "name": "objectAddress",
598
- "type": "address"
599
- },
600
- {
601
- "internalType": "address",
602
- "name": "initialOwner",
426
+ "name": "wallet",
603
427
  "type": "address"
604
- },
605
- {
606
- "internalType": "bytes",
607
- "name": "data",
608
- "type": "bytes"
609
428
  }
610
429
  ],
611
- "internalType": "struct IRegistry.ObjectInfo",
612
- "name": "",
430
+ "internalType": "struct ISetup.DistributionSetupInfo",
431
+ "name": "setup",
613
432
  "type": "tuple"
614
- },
615
- {
616
- "internalType": "bytes",
617
- "name": "data",
618
- "type": "bytes"
619
433
  }
620
434
  ],
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",
435
+ "name": "createDistributionSetup",
436
+ "outputs": [],
437
+ "stateMutability": "nonpayable",
674
438
  "type": "function"
675
439
  },
676
440
  {
677
441
  "inputs": [
678
442
  {
679
443
  "internalType": "NftId",
680
- "name": "nftId",
444
+ "name": "policyNftId",
681
445
  "type": "uint96"
682
- }
683
- ],
684
- "name": "getPolicyInfo",
685
- "outputs": [
446
+ },
686
447
  {
687
448
  "components": [
688
449
  {
@@ -700,11 +461,6 @@
700
461
  "name": "referralId",
701
462
  "type": "bytes8"
702
463
  },
703
- {
704
- "internalType": "address",
705
- "name": "beneficiary",
706
- "type": "address"
707
- },
708
464
  {
709
465
  "internalType": "RiskId",
710
466
  "name": "riskId",
@@ -740,6 +496,21 @@
740
496
  "name": "policyData",
741
497
  "type": "bytes"
742
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
+ },
743
514
  {
744
515
  "internalType": "Timestamp",
745
516
  "name": "activatedAt",
@@ -754,302 +525,117 @@
754
525
  "internalType": "Timestamp",
755
526
  "name": "closedAt",
756
527
  "type": "uint40"
757
- }
758
- ],
759
- "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",
792
- "type": "tuple"
793
- }
794
- ],
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",
809
- "type": "function"
810
- },
811
- {
812
- "inputs": [
813
- {
814
- "internalType": "NftId",
815
- "name": "componentNftId",
816
- "type": "uint96"
817
- }
818
- ],
819
- "name": "getProductNftId",
820
- "outputs": [
821
- {
822
- "internalType": "NftId",
823
- "name": "productNftId",
824
- "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": [
866
- {
867
- "components": [
868
- {
869
- "internalType": "NftId",
870
- "name": "productNftId",
871
- "type": "uint96"
872
- },
873
- {
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"
528
+ }
529
+ ],
530
+ "internalType": "struct IPolicy.PolicyInfo",
531
+ "name": "policy",
532
+ "type": "tuple"
933
533
  }
934
534
  ],
935
- "stateMutability": "pure",
535
+ "name": "createPolicy",
536
+ "outputs": [],
537
+ "stateMutability": "nonpayable",
936
538
  "type": "function"
937
539
  },
938
540
  {
939
541
  "inputs": [
940
542
  {
941
- "internalType": "RoleId",
942
- "name": "role",
943
- "type": "bytes8"
944
- }
945
- ],
946
- "name": "getRoleInfo",
947
- "outputs": [
543
+ "internalType": "NftId",
544
+ "name": "poolNftId",
545
+ "type": "uint96"
546
+ },
948
547
  {
949
548
  "components": [
950
549
  {
951
- "internalType": "RoleId",
952
- "name": "id",
953
- "type": "bytes8"
550
+ "internalType": "NftId",
551
+ "name": "productNftId",
552
+ "type": "uint96"
553
+ },
554
+ {
555
+ "internalType": "contract TokenHandler",
556
+ "name": "tokenHandler",
557
+ "type": "address"
558
+ },
559
+ {
560
+ "internalType": "UFixed",
561
+ "name": "collateralizationLevel",
562
+ "type": "uint256"
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"
954
614
  },
955
615
  {
956
- "internalType": "string",
957
- "name": "name",
958
- "type": "string"
616
+ "internalType": "bool",
617
+ "name": "isIntercepting",
618
+ "type": "bool"
959
619
  },
960
620
  {
961
621
  "internalType": "bool",
962
- "name": "isActive",
622
+ "name": "isConfirmingApplication",
963
623
  "type": "bool"
624
+ },
625
+ {
626
+ "internalType": "address",
627
+ "name": "wallet",
628
+ "type": "address"
964
629
  }
965
630
  ],
966
- "internalType": "struct IAccess.RoleInfo",
967
- "name": "info",
631
+ "internalType": "struct ISetup.PoolSetupInfo",
632
+ "name": "setup",
968
633
  "type": "tuple"
969
634
  }
970
635
  ],
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"
1050
- }
1051
- ],
1052
- "stateMutability": "view",
636
+ "name": "createPoolSetup",
637
+ "outputs": [],
638
+ "stateMutability": "nonpayable",
1053
639
  "type": "function"
1054
640
  },
1055
641
  {
@@ -1058,26 +644,45 @@
1058
644
  "internalType": "NftId",
1059
645
  "name": "productNftId",
1060
646
  "type": "uint96"
1061
- }
1062
- ],
1063
- "name": "getTreasuryInfo",
1064
- "outputs": [
647
+ },
1065
648
  {
1066
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
+ },
1067
660
  {
1068
661
  "internalType": "NftId",
1069
- "name": "poolNftId",
662
+ "name": "distributionNftId",
1070
663
  "type": "uint96"
1071
664
  },
1072
665
  {
1073
666
  "internalType": "NftId",
1074
- "name": "distributionNftId",
667
+ "name": "poolNftId",
1075
668
  "type": "uint96"
1076
669
  },
1077
670
  {
1078
- "internalType": "contract IERC20Metadata",
1079
- "name": "token",
1080
- "type": "address"
671
+ "components": [
672
+ {
673
+ "internalType": "UFixed",
674
+ "name": "fractionalFee",
675
+ "type": "uint256"
676
+ },
677
+ {
678
+ "internalType": "uint256",
679
+ "name": "fixedFee",
680
+ "type": "uint256"
681
+ }
682
+ ],
683
+ "internalType": "struct Fee",
684
+ "name": "distributionFee",
685
+ "type": "tuple"
1081
686
  },
1082
687
  {
1083
688
  "components": [
@@ -1164,26 +769,128 @@
1164
769
  "name": "performanceFee",
1165
770
  "type": "tuple"
1166
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",
832
+ "outputs": [
833
+ {
834
+ "internalType": "bool",
835
+ "name": "",
836
+ "type": "bool"
837
+ }
838
+ ],
839
+ "stateMutability": "view",
840
+ "type": "function"
841
+ },
842
+ {
843
+ "inputs": [
844
+ {
845
+ "internalType": "Key32",
846
+ "name": "key",
847
+ "type": "bytes32"
848
+ }
849
+ ],
850
+ "name": "get",
851
+ "outputs": [
852
+ {
853
+ "components": [
1167
854
  {
1168
855
  "components": [
1169
856
  {
1170
- "internalType": "UFixed",
1171
- "name": "fractionalFee",
1172
- "type": "uint256"
857
+ "internalType": "ObjectType",
858
+ "name": "objectType",
859
+ "type": "uint8"
1173
860
  },
1174
861
  {
1175
- "internalType": "uint256",
1176
- "name": "fixedFee",
1177
- "type": "uint256"
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"
1178
880
  }
1179
881
  ],
1180
- "internalType": "struct Fee",
1181
- "name": "distributionFee",
882
+ "internalType": "struct IKeyValueStore.Metadata",
883
+ "name": "metadata",
1182
884
  "type": "tuple"
885
+ },
886
+ {
887
+ "internalType": "bytes",
888
+ "name": "data",
889
+ "type": "bytes"
1183
890
  }
1184
891
  ],
1185
- "internalType": "struct ITreasury.TreasuryInfo",
1186
- "name": "info",
892
+ "internalType": "struct IKeyValueStore.Value",
893
+ "name": "value",
1187
894
  "type": "tuple"
1188
895
  }
1189
896
  ],
@@ -1191,75 +898,127 @@
1191
898
  "type": "function"
1192
899
  },
1193
900
  {
1194
- "inputs": [
1195
- {
1196
- "internalType": "uint256",
1197
- "name": "a",
1198
- "type": "uint256"
1199
- },
901
+ "inputs": [],
902
+ "name": "getBundleManager",
903
+ "outputs": [
1200
904
  {
1201
- "internalType": "int8",
1202
- "name": "exp",
1203
- "type": "int8"
905
+ "internalType": "contract BundleManager",
906
+ "name": "",
907
+ "type": "address"
1204
908
  }
1205
909
  ],
1206
- "name": "getUFixed",
910
+ "stateMutability": "view",
911
+ "type": "function"
912
+ },
913
+ {
914
+ "inputs": [],
915
+ "name": "getBundleService",
1207
916
  "outputs": [
1208
917
  {
1209
- "internalType": "UFixed",
918
+ "internalType": "contract IBundleService",
1210
919
  "name": "",
1211
- "type": "uint256"
920
+ "type": "address"
1212
921
  }
1213
922
  ],
1214
- "stateMutability": "pure",
923
+ "stateMutability": "view",
1215
924
  "type": "function"
1216
925
  },
1217
926
  {
1218
927
  "inputs": [
1219
928
  {
1220
- "internalType": "uint256",
1221
- "name": "a",
1222
- "type": "uint256"
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"
1223
940
  }
1224
941
  ],
1225
- "name": "getUFixed",
942
+ "stateMutability": "view",
943
+ "type": "function"
944
+ },
945
+ {
946
+ "inputs": [],
947
+ "name": "getDistributionService",
1226
948
  "outputs": [
1227
949
  {
1228
- "internalType": "UFixed",
950
+ "internalType": "contract IDistributionService",
1229
951
  "name": "",
1230
- "type": "uint256"
952
+ "type": "address"
1231
953
  }
1232
954
  ],
1233
- "stateMutability": "pure",
955
+ "stateMutability": "view",
1234
956
  "type": "function"
1235
957
  },
1236
958
  {
1237
959
  "inputs": [],
1238
- "name": "getVersion",
960
+ "name": "getInitialInfo",
1239
961
  "outputs": [
1240
962
  {
1241
- "internalType": "Version",
963
+ "components": [
964
+ {
965
+ "internalType": "NftId",
966
+ "name": "nftId",
967
+ "type": "uint96"
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
+ },
994
+ {
995
+ "internalType": "bytes",
996
+ "name": "data",
997
+ "type": "bytes"
998
+ }
999
+ ],
1000
+ "internalType": "struct IRegistry.ObjectInfo",
1242
1001
  "name": "",
1243
- "type": "uint24"
1002
+ "type": "tuple"
1244
1003
  }
1245
1004
  ],
1246
- "stateMutability": "pure",
1005
+ "stateMutability": "view",
1247
1006
  "type": "function"
1248
1007
  },
1249
1008
  {
1250
1009
  "inputs": [
1251
1010
  {
1252
- "internalType": "uint256",
1253
- "name": "index",
1254
- "type": "uint256"
1011
+ "internalType": "ObjectType",
1012
+ "name": "objectType",
1013
+ "type": "uint8"
1255
1014
  }
1256
1015
  ],
1257
- "name": "getVersion",
1016
+ "name": "getInitialState",
1258
1017
  "outputs": [
1259
1018
  {
1260
- "internalType": "Version",
1261
- "name": "version",
1262
- "type": "uint24"
1019
+ "internalType": "StateId",
1020
+ "name": "",
1021
+ "type": "uint8"
1263
1022
  }
1264
1023
  ],
1265
1024
  "stateMutability": "view",
@@ -1267,57 +1026,70 @@
1267
1026
  },
1268
1027
  {
1269
1028
  "inputs": [],
1270
- "name": "getVersionCount",
1029
+ "name": "getInstanceReader",
1271
1030
  "outputs": [
1272
1031
  {
1273
- "internalType": "uint256",
1274
- "name": "numberOfVersions",
1275
- "type": "uint256"
1032
+ "internalType": "contract InstanceReader",
1033
+ "name": "",
1034
+ "type": "address"
1276
1035
  }
1277
1036
  ],
1278
1037
  "stateMutability": "view",
1279
1038
  "type": "function"
1280
1039
  },
1040
+ {
1041
+ "inputs": [],
1042
+ "name": "getMajorVersion",
1043
+ "outputs": [
1044
+ {
1045
+ "internalType": "VersionPart",
1046
+ "name": "majorVersion",
1047
+ "type": "uint8"
1048
+ }
1049
+ ],
1050
+ "stateMutability": "pure",
1051
+ "type": "function"
1052
+ },
1281
1053
  {
1282
1054
  "inputs": [
1283
1055
  {
1284
- "internalType": "Version",
1285
- "name": "version",
1286
- "type": "uint24"
1056
+ "internalType": "Key32",
1057
+ "name": "key",
1058
+ "type": "bytes32"
1287
1059
  }
1288
1060
  ],
1289
- "name": "getVersionInfo",
1061
+ "name": "getMetadata",
1290
1062
  "outputs": [
1291
1063
  {
1292
1064
  "components": [
1293
1065
  {
1294
- "internalType": "Version",
1295
- "name": "version",
1296
- "type": "uint24"
1066
+ "internalType": "ObjectType",
1067
+ "name": "objectType",
1068
+ "type": "uint8"
1297
1069
  },
1298
1070
  {
1299
- "internalType": "address",
1300
- "name": "implementation",
1301
- "type": "address"
1071
+ "internalType": "StateId",
1072
+ "name": "state",
1073
+ "type": "uint8"
1302
1074
  },
1303
1075
  {
1304
1076
  "internalType": "address",
1305
- "name": "activatedBy",
1077
+ "name": "updatedBy",
1306
1078
  "type": "address"
1307
1079
  },
1308
1080
  {
1309
- "internalType": "Timestamp",
1310
- "name": "activatedAt",
1311
- "type": "uint40"
1081
+ "internalType": "Blocknumber",
1082
+ "name": "updatedIn",
1083
+ "type": "uint32"
1312
1084
  },
1313
1085
  {
1314
1086
  "internalType": "Blocknumber",
1315
- "name": "activatedIn",
1087
+ "name": "createdIn",
1316
1088
  "type": "uint32"
1317
1089
  }
1318
1090
  ],
1319
- "internalType": "struct IVersionable.VersionInfo",
1320
- "name": "versionInfo",
1091
+ "internalType": "struct IKeyValueStore.Metadata",
1092
+ "name": "metadata",
1321
1093
  "type": "tuple"
1322
1094
  }
1323
1095
  ],
@@ -1326,61 +1098,110 @@
1326
1098
  },
1327
1099
  {
1328
1100
  "inputs": [],
1329
- "name": "getZeroFee",
1101
+ "name": "getNftId",
1330
1102
  "outputs": [
1331
1103
  {
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"
1104
+ "internalType": "NftId",
1105
+ "name": "",
1106
+ "type": "uint96"
1347
1107
  }
1348
1108
  ],
1349
1109
  "stateMutability": "view",
1350
1110
  "type": "function"
1351
1111
  },
1352
1112
  {
1353
- "inputs": [
1354
- {
1355
- "internalType": "RoleId",
1356
- "name": "role",
1357
- "type": "bytes8"
1358
- },
1113
+ "inputs": [],
1114
+ "name": "getOwner",
1115
+ "outputs": [
1359
1116
  {
1360
1117
  "internalType": "address",
1361
- "name": "member",
1118
+ "name": "",
1362
1119
  "type": "address"
1363
1120
  }
1364
1121
  ],
1365
- "name": "grantRole",
1366
- "outputs": [],
1367
- "stateMutability": "nonpayable",
1122
+ "stateMutability": "view",
1368
1123
  "type": "function"
1369
1124
  },
1370
1125
  {
1371
- "inputs": [
1126
+ "inputs": [],
1127
+ "name": "getPolicyService",
1128
+ "outputs": [
1372
1129
  {
1373
- "internalType": "RoleId",
1374
- "name": "role",
1375
- "type": "bytes8"
1376
- },
1130
+ "internalType": "contract IPolicyService",
1131
+ "name": "",
1132
+ "type": "address"
1133
+ }
1134
+ ],
1135
+ "stateMutability": "view",
1136
+ "type": "function"
1137
+ },
1138
+ {
1139
+ "inputs": [],
1140
+ "name": "getPoolService",
1141
+ "outputs": [
1377
1142
  {
1378
- "internalType": "address",
1379
- "name": "member",
1143
+ "internalType": "contract IPoolService",
1144
+ "name": "",
1145
+ "type": "address"
1146
+ }
1147
+ ],
1148
+ "stateMutability": "view",
1149
+ "type": "function"
1150
+ },
1151
+ {
1152
+ "inputs": [],
1153
+ "name": "getProductService",
1154
+ "outputs": [
1155
+ {
1156
+ "internalType": "contract IProductService",
1157
+ "name": "",
1158
+ "type": "address"
1159
+ }
1160
+ ],
1161
+ "stateMutability": "view",
1162
+ "type": "function"
1163
+ },
1164
+ {
1165
+ "inputs": [],
1166
+ "name": "getRegistry",
1167
+ "outputs": [
1168
+ {
1169
+ "internalType": "contract IRegistry",
1170
+ "name": "",
1380
1171
  "type": "address"
1381
1172
  }
1382
1173
  ],
1383
- "name": "hasRole",
1174
+ "stateMutability": "view",
1175
+ "type": "function"
1176
+ },
1177
+ {
1178
+ "inputs": [
1179
+ {
1180
+ "internalType": "Key32",
1181
+ "name": "key",
1182
+ "type": "bytes32"
1183
+ }
1184
+ ],
1185
+ "name": "getState",
1186
+ "outputs": [
1187
+ {
1188
+ "internalType": "StateId",
1189
+ "name": "state",
1190
+ "type": "uint8"
1191
+ }
1192
+ ],
1193
+ "stateMutability": "view",
1194
+ "type": "function"
1195
+ },
1196
+ {
1197
+ "inputs": [
1198
+ {
1199
+ "internalType": "ObjectType",
1200
+ "name": "objectType",
1201
+ "type": "uint8"
1202
+ }
1203
+ ],
1204
+ "name": "hasLifecycle",
1384
1205
  "outputs": [
1385
1206
  {
1386
1207
  "internalType": "bool",
@@ -1391,44 +1212,64 @@
1391
1212
  "stateMutability": "view",
1392
1213
  "type": "function"
1393
1214
  },
1215
+ {
1216
+ "inputs": [],
1217
+ "name": "isConsumingScheduledOp",
1218
+ "outputs": [
1219
+ {
1220
+ "internalType": "bytes4",
1221
+ "name": "",
1222
+ "type": "bytes4"
1223
+ }
1224
+ ],
1225
+ "stateMutability": "view",
1226
+ "type": "function"
1227
+ },
1394
1228
  {
1395
1229
  "inputs": [
1396
1230
  {
1397
- "internalType": "NftId",
1398
- "name": "productNftId",
1399
- "type": "uint96"
1231
+ "internalType": "ObjectType",
1232
+ "name": "objectType",
1233
+ "type": "uint8"
1234
+ },
1235
+ {
1236
+ "internalType": "StateId",
1237
+ "name": "fromId",
1238
+ "type": "uint8"
1239
+ },
1240
+ {
1241
+ "internalType": "StateId",
1242
+ "name": "toId",
1243
+ "type": "uint8"
1400
1244
  }
1401
1245
  ],
1402
- "name": "hasTreasuryInfo",
1246
+ "name": "isValidTransition",
1403
1247
  "outputs": [
1404
1248
  {
1405
1249
  "internalType": "bool",
1406
- "name": "hasInfo",
1250
+ "name": "",
1407
1251
  "type": "bool"
1408
1252
  }
1409
1253
  ],
1410
1254
  "stateMutability": "view",
1411
1255
  "type": "function"
1412
1256
  },
1257
+ {
1258
+ "inputs": [],
1259
+ "name": "linkToRegisteredNftId",
1260
+ "outputs": [],
1261
+ "stateMutability": "nonpayable",
1262
+ "type": "function"
1263
+ },
1413
1264
  {
1414
1265
  "inputs": [
1415
1266
  {
1416
1267
  "internalType": "address",
1417
- "name": "implementation",
1418
- "type": "address"
1419
- },
1420
- {
1421
- "internalType": "address",
1422
- "name": "activatedBy",
1268
+ "name": "",
1423
1269
  "type": "address"
1424
- },
1425
- {
1426
- "internalType": "bytes",
1427
- "name": "activationData",
1428
- "type": "bytes"
1429
1270
  }
1430
1271
  ],
1431
- "name": "initialize",
1272
+ "name": "setAuthority",
1432
1273
  "outputs": [],
1433
1274
  "stateMutability": "nonpayable",
1434
1275
  "type": "function"
@@ -1436,12 +1277,12 @@
1436
1277
  {
1437
1278
  "inputs": [
1438
1279
  {
1439
- "internalType": "Version",
1440
- "name": "version",
1441
- "type": "uint24"
1280
+ "internalType": "bytes4",
1281
+ "name": "interfaceId",
1282
+ "type": "bytes4"
1442
1283
  }
1443
1284
  ],
1444
- "name": "isInitialized",
1285
+ "name": "supportsInterface",
1445
1286
  "outputs": [
1446
1287
  {
1447
1288
  "internalType": "bool",
@@ -1455,61 +1296,32 @@
1455
1296
  {
1456
1297
  "inputs": [
1457
1298
  {
1458
- "internalType": "NftId",
1459
- "name": "nftId",
1460
- "type": "uint96"
1461
- },
1462
- {
1463
- "internalType": "contract IERC20Metadata",
1464
- "name": "token",
1465
- "type": "address"
1299
+ "internalType": "ObjectType",
1300
+ "name": "objectType",
1301
+ "type": "uint8"
1466
1302
  },
1467
1303
  {
1468
- "internalType": "address",
1469
- "name": "wallet",
1470
- "type": "address"
1304
+ "internalType": "KeyId",
1305
+ "name": "id",
1306
+ "type": "bytes31"
1471
1307
  }
1472
1308
  ],
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
- },
1309
+ "name": "toKey32",
1310
+ "outputs": [
1485
1311
  {
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"
1312
+ "internalType": "Key32",
1313
+ "name": "",
1314
+ "type": "bytes32"
1501
1315
  }
1502
1316
  ],
1503
- "name": "registerPool",
1504
- "outputs": [],
1505
- "stateMutability": "nonpayable",
1317
+ "stateMutability": "pure",
1506
1318
  "type": "function"
1507
1319
  },
1508
1320
  {
1509
1321
  "inputs": [
1510
1322
  {
1511
1323
  "internalType": "NftId",
1512
- "name": "productNftId",
1324
+ "name": "bundleNftId",
1513
1325
  "type": "uint96"
1514
1326
  },
1515
1327
  {
@@ -1519,16 +1331,6 @@
1519
1331
  "name": "poolNftId",
1520
1332
  "type": "uint96"
1521
1333
  },
1522
- {
1523
- "internalType": "NftId",
1524
- "name": "distributionNftId",
1525
- "type": "uint96"
1526
- },
1527
- {
1528
- "internalType": "contract IERC20Metadata",
1529
- "name": "token",
1530
- "type": "address"
1531
- },
1532
1334
  {
1533
1335
  "components": [
1534
1336
  {
@@ -1543,101 +1345,56 @@
1543
1345
  }
1544
1346
  ],
1545
1347
  "internalType": "struct Fee",
1546
- "name": "productFee",
1348
+ "name": "fee",
1547
1349
  "type": "tuple"
1548
1350
  },
1549
1351
  {
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"
1352
+ "internalType": "bytes",
1353
+ "name": "filter",
1354
+ "type": "bytes"
1565
1355
  },
1566
1356
  {
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"
1357
+ "internalType": "uint256",
1358
+ "name": "capitalAmount",
1359
+ "type": "uint256"
1582
1360
  },
1583
1361
  {
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"
1362
+ "internalType": "uint256",
1363
+ "name": "lockedAmount",
1364
+ "type": "uint256"
1599
1365
  },
1600
1366
  {
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"
1367
+ "internalType": "uint256",
1368
+ "name": "balanceAmount",
1369
+ "type": "uint256"
1616
1370
  },
1617
1371
  {
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"
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"
1633
1385
  }
1634
1386
  ],
1635
- "internalType": "struct ITreasury.TreasuryInfo",
1636
- "name": "info",
1387
+ "internalType": "struct IBundle.BundleInfo",
1388
+ "name": "bundle",
1637
1389
  "type": "tuple"
1390
+ },
1391
+ {
1392
+ "internalType": "StateId",
1393
+ "name": "newState",
1394
+ "type": "uint8"
1638
1395
  }
1639
1396
  ],
1640
- "name": "registerProductSetup",
1397
+ "name": "updateBundle",
1641
1398
  "outputs": [],
1642
1399
  "stateMutability": "nonpayable",
1643
1400
  "type": "function"
@@ -1650,73 +1407,35 @@
1650
1407
  "type": "uint96"
1651
1408
  },
1652
1409
  {
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"
1410
+ "internalType": "StateId",
1411
+ "name": "newState",
1412
+ "type": "uint8"
1680
1413
  }
1681
1414
  ],
1682
- "name": "revokeRole",
1415
+ "name": "updateBundleState",
1683
1416
  "outputs": [],
1684
1417
  "stateMutability": "nonpayable",
1685
1418
  "type": "function"
1686
1419
  },
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
1420
  {
1707
1421
  "inputs": [
1708
1422
  {
1709
1423
  "internalType": "NftId",
1710
- "name": "nftId",
1424
+ "name": "distributionNftId",
1711
1425
  "type": "uint96"
1712
1426
  },
1713
1427
  {
1714
1428
  "components": [
1715
1429
  {
1716
1430
  "internalType": "NftId",
1717
- "name": "poolNftId",
1431
+ "name": "productNftId",
1718
1432
  "type": "uint96"
1719
1433
  },
1434
+ {
1435
+ "internalType": "contract TokenHandler",
1436
+ "name": "tokenHandler",
1437
+ "type": "address"
1438
+ },
1720
1439
  {
1721
1440
  "components": [
1722
1441
  {
@@ -1731,46 +1450,49 @@
1731
1450
  }
1732
1451
  ],
1733
1452
  "internalType": "struct Fee",
1734
- "name": "fee",
1453
+ "name": "distributionFee",
1735
1454
  "type": "tuple"
1736
1455
  },
1737
1456
  {
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"
1457
+ "internalType": "bool",
1458
+ "name": "isIntercepting",
1459
+ "type": "bool"
1761
1460
  },
1762
1461
  {
1763
- "internalType": "Timestamp",
1764
- "name": "closedAt",
1765
- "type": "uint40"
1462
+ "internalType": "address",
1463
+ "name": "wallet",
1464
+ "type": "address"
1766
1465
  }
1767
1466
  ],
1768
- "internalType": "struct IBundle.BundleInfo",
1769
- "name": "bundleInfo",
1467
+ "internalType": "struct ISetup.DistributionSetupInfo",
1468
+ "name": "setup",
1770
1469
  "type": "tuple"
1470
+ },
1471
+ {
1472
+ "internalType": "StateId",
1473
+ "name": "newState",
1474
+ "type": "uint8"
1771
1475
  }
1772
1476
  ],
1773
- "name": "setBundleInfo",
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"
1493
+ }
1494
+ ],
1495
+ "name": "updateDistributionSetupState",
1774
1496
  "outputs": [],
1775
1497
  "stateMutability": "nonpayable",
1776
1498
  "type": "function"
@@ -1799,11 +1521,6 @@
1799
1521
  "name": "referralId",
1800
1522
  "type": "bytes8"
1801
1523
  },
1802
- {
1803
- "internalType": "address",
1804
- "name": "beneficiary",
1805
- "type": "address"
1806
- },
1807
1524
  {
1808
1525
  "internalType": "RiskId",
1809
1526
  "name": "riskId",
@@ -1839,6 +1556,21 @@
1839
1556
  "name": "policyData",
1840
1557
  "type": "bytes"
1841
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
+ },
1842
1574
  {
1843
1575
  "internalType": "Timestamp",
1844
1576
  "name": "activatedAt",
@@ -1856,11 +1588,16 @@
1856
1588
  }
1857
1589
  ],
1858
1590
  "internalType": "struct IPolicy.PolicyInfo",
1859
- "name": "info",
1591
+ "name": "policy",
1860
1592
  "type": "tuple"
1593
+ },
1594
+ {
1595
+ "internalType": "StateId",
1596
+ "name": "newState",
1597
+ "type": "uint8"
1861
1598
  }
1862
1599
  ],
1863
- "name": "setPolicyInfo",
1600
+ "name": "updatePolicy",
1864
1601
  "outputs": [],
1865
1602
  "stateMutability": "nonpayable",
1866
1603
  "type": "function"
@@ -1868,9 +1605,27 @@
1868
1605
  {
1869
1606
  "inputs": [
1870
1607
  {
1871
- "internalType": "RiskId",
1872
- "name": "riskId",
1873
- "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"
1874
1629
  },
1875
1630
  {
1876
1631
  "components": [
@@ -1880,17 +1635,93 @@
1880
1635
  "type": "uint96"
1881
1636
  },
1882
1637
  {
1883
- "internalType": "bytes",
1884
- "name": "data",
1885
- "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"
1886
1712
  }
1887
1713
  ],
1888
- "internalType": "struct IRisk.RiskInfo",
1889
- "name": "info",
1714
+ "internalType": "struct ISetup.PoolSetupInfo",
1715
+ "name": "setup",
1890
1716
  "type": "tuple"
1717
+ },
1718
+ {
1719
+ "internalType": "StateId",
1720
+ "name": "newState",
1721
+ "type": "uint8"
1891
1722
  }
1892
1723
  ],
1893
- "name": "setRiskInfo",
1724
+ "name": "updatePoolSetup",
1894
1725
  "outputs": [],
1895
1726
  "stateMutability": "nonpayable",
1896
1727
  "type": "function"
@@ -1898,17 +1729,17 @@
1898
1729
  {
1899
1730
  "inputs": [
1900
1731
  {
1901
- "internalType": "RoleId",
1902
- "name": "role",
1903
- "type": "bytes8"
1732
+ "internalType": "NftId",
1733
+ "name": "poolNftId",
1734
+ "type": "uint96"
1904
1735
  },
1905
1736
  {
1906
- "internalType": "bool",
1907
- "name": "active",
1908
- "type": "bool"
1737
+ "internalType": "StateId",
1738
+ "name": "newState",
1739
+ "type": "uint8"
1909
1740
  }
1910
1741
  ],
1911
- "name": "setRoleState",
1742
+ "name": "updatePoolSetupState",
1912
1743
  "outputs": [],
1913
1744
  "stateMutability": "nonpayable",
1914
1745
  "type": "function"
@@ -1923,9 +1754,14 @@
1923
1754
  {
1924
1755
  "components": [
1925
1756
  {
1926
- "internalType": "NftId",
1927
- "name": "poolNftId",
1928
- "type": "uint96"
1757
+ "internalType": "contract IERC20Metadata",
1758
+ "name": "token",
1759
+ "type": "address"
1760
+ },
1761
+ {
1762
+ "internalType": "contract TokenHandler",
1763
+ "name": "tokenHandler",
1764
+ "type": "address"
1929
1765
  },
1930
1766
  {
1931
1767
  "internalType": "NftId",
@@ -1933,9 +1769,9 @@
1933
1769
  "type": "uint96"
1934
1770
  },
1935
1771
  {
1936
- "internalType": "contract IERC20Metadata",
1937
- "name": "token",
1938
- "type": "address"
1772
+ "internalType": "NftId",
1773
+ "name": "poolNftId",
1774
+ "type": "uint96"
1939
1775
  },
1940
1776
  {
1941
1777
  "components": [
@@ -1951,7 +1787,7 @@
1951
1787
  }
1952
1788
  ],
1953
1789
  "internalType": "struct Fee",
1954
- "name": "productFee",
1790
+ "name": "distributionFee",
1955
1791
  "type": "tuple"
1956
1792
  },
1957
1793
  {
@@ -1968,7 +1804,7 @@
1968
1804
  }
1969
1805
  ],
1970
1806
  "internalType": "struct Fee",
1971
- "name": "processingFee",
1807
+ "name": "productFee",
1972
1808
  "type": "tuple"
1973
1809
  },
1974
1810
  {
@@ -1985,7 +1821,7 @@
1985
1821
  }
1986
1822
  ],
1987
1823
  "internalType": "struct Fee",
1988
- "name": "poolFee",
1824
+ "name": "processingFee",
1989
1825
  "type": "tuple"
1990
1826
  },
1991
1827
  {
@@ -2002,7 +1838,7 @@
2002
1838
  }
2003
1839
  ],
2004
1840
  "internalType": "struct Fee",
2005
- "name": "stakingFee",
1841
+ "name": "poolFee",
2006
1842
  "type": "tuple"
2007
1843
  },
2008
1844
  {
@@ -2019,7 +1855,7 @@
2019
1855
  }
2020
1856
  ],
2021
1857
  "internalType": "struct Fee",
2022
- "name": "performanceFee",
1858
+ "name": "stakingFee",
2023
1859
  "type": "tuple"
2024
1860
  },
2025
1861
  {
@@ -2036,53 +1872,31 @@
2036
1872
  }
2037
1873
  ],
2038
1874
  "internalType": "struct Fee",
2039
- "name": "distributionFee",
1875
+ "name": "performanceFee",
2040
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"
2041
1887
  }
2042
1888
  ],
2043
- "internalType": "struct ITreasury.TreasuryInfo",
2044
- "name": "info",
1889
+ "internalType": "struct ISetup.ProductSetupInfo",
1890
+ "name": "setup",
2045
1891
  "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
1892
  },
2079
1893
  {
2080
1894
  "internalType": "StateId",
2081
- "name": "state",
1895
+ "name": "newState",
2082
1896
  "type": "uint8"
2083
1897
  }
2084
1898
  ],
2085
- "name": "updateBundleState",
1899
+ "name": "updateProductSetup",
2086
1900
  "outputs": [],
2087
1901
  "stateMutability": "nonpayable",
2088
1902
  "type": "function"
@@ -2091,16 +1905,16 @@
2091
1905
  "inputs": [
2092
1906
  {
2093
1907
  "internalType": "NftId",
2094
- "name": "nftId",
1908
+ "name": "productNftId",
2095
1909
  "type": "uint96"
2096
1910
  },
2097
1911
  {
2098
1912
  "internalType": "StateId",
2099
- "name": "state",
1913
+ "name": "newState",
2100
1914
  "type": "uint8"
2101
1915
  }
2102
1916
  ],
2103
- "name": "updatePolicyState",
1917
+ "name": "updateProductSetupState",
2104
1918
  "outputs": [],
2105
1919
  "stateMutability": "nonpayable",
2106
1920
  "type": "function"
@@ -2113,30 +1927,29 @@
2113
1927
  "type": "bytes8"
2114
1928
  },
2115
1929
  {
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"
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"
2132
1945
  },
2133
1946
  {
2134
1947
  "internalType": "StateId",
2135
- "name": "state",
1948
+ "name": "newState",
2136
1949
  "type": "uint8"
2137
1950
  }
2138
1951
  ],
2139
- "name": "updateState",
1952
+ "name": "updateRisk",
2140
1953
  "outputs": [],
2141
1954
  "stateMutability": "nonpayable",
2142
1955
  "type": "function"
@@ -2144,22 +1957,17 @@
2144
1957
  {
2145
1958
  "inputs": [
2146
1959
  {
2147
- "internalType": "address",
2148
- "name": "implementation",
2149
- "type": "address"
2150
- },
2151
- {
2152
- "internalType": "address",
2153
- "name": "activatedBy",
2154
- "type": "address"
1960
+ "internalType": "RiskId",
1961
+ "name": "riskId",
1962
+ "type": "bytes8"
2155
1963
  },
2156
1964
  {
2157
- "internalType": "bytes",
2158
- "name": "upgradeData",
2159
- "type": "bytes"
1965
+ "internalType": "StateId",
1966
+ "name": "newState",
1967
+ "type": "uint8"
2160
1968
  }
2161
1969
  ],
2162
- "name": "upgrade",
1970
+ "name": "updateRiskState",
2163
1971
  "outputs": [],
2164
1972
  "stateMutability": "nonpayable",
2165
1973
  "type": "function"