@etherisc/gif-next 0.0.2-efef0ea-320 → 0.0.2-f00a368-815

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