@etherisc/gif-next 0.0.2-e46206a-486 → 0.0.2-e4d7e1c-013

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