@etherisc/gif-next 0.0.2-e875d61-189 → 0.0.2-e8a628e-326

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