@etherisc/gif-next 0.0.2-cc253b3 → 0.0.2-cd89a0b-062

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