@etherisc/gif-next 0.0.2-f74fcad-685 → 0.0.2-f79a517-071

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