@etherisc/gif-next 0.0.2-e1e92ab-754 → 0.0.2-e2d8c7d-942

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