@etherisc/gif-next 0.0.2-8d47fa1-080 → 0.0.2-8d681eb-812

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