@etherisc/gif-next 0.0.2-de0a1d3-009 → 0.0.2-de7c770-422

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