@etherisc/gif-next 0.0.2-ff282a4-523 → 0.0.2-ff795d8-141

Sign up to get free protection for your applications and to get access to all the features.
Files changed (582) hide show
  1. package/README.md +130 -10
  2. package/artifacts/contracts/accounting/AccountingService.sol/AccountingService.dbg.json +4 -0
  3. package/artifacts/contracts/accounting/AccountingService.sol/AccountingService.json +1023 -0
  4. package/artifacts/contracts/accounting/AccountingServiceManager.sol/AccountingServiceManager.dbg.json +4 -0
  5. package/artifacts/contracts/accounting/AccountingServiceManager.sol/AccountingServiceManager.json +752 -0
  6. package/artifacts/contracts/accounting/IAccountingService.sol/IAccountingService.dbg.json +4 -0
  7. package/artifacts/contracts/accounting/IAccountingService.sol/IAccountingService.json +791 -0
  8. package/artifacts/contracts/authorization/AccessAdmin.sol/AccessAdmin.dbg.json +4 -0
  9. package/artifacts/contracts/authorization/AccessAdmin.sol/AccessAdmin.json +1652 -0
  10. package/artifacts/contracts/authorization/AccessAdminLib.sol/AccessAdminLib.dbg.json +4 -0
  11. package/artifacts/contracts/authorization/AccessAdminLib.sol/AccessAdminLib.json +1279 -0
  12. package/artifacts/contracts/authorization/AccessManagerCloneable.sol/AccessManagerCloneable.dbg.json +4 -0
  13. package/artifacts/contracts/authorization/AccessManagerCloneable.sol/AccessManagerCloneable.json +1403 -0
  14. package/artifacts/contracts/authorization/Authorization.sol/Authorization.dbg.json +4 -0
  15. package/artifacts/contracts/authorization/Authorization.sol/Authorization.json +790 -0
  16. package/artifacts/contracts/authorization/IAccess.sol/IAccess.dbg.json +4 -0
  17. package/artifacts/contracts/{instance/module/ISetup.sol/ISetup.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 +1333 -0
  20. package/artifacts/contracts/authorization/IAuthorization.sol/IAuthorization.dbg.json +4 -0
  21. package/artifacts/contracts/authorization/IAuthorization.sol/IAuthorization.json +455 -0
  22. package/artifacts/contracts/authorization/IServiceAuthorization.sol/IServiceAuthorization.dbg.json +4 -0
  23. package/artifacts/contracts/authorization/IServiceAuthorization.sol/IServiceAuthorization.json +397 -0
  24. package/artifacts/contracts/authorization/ServiceAuthorization.sol/ServiceAuthorization.dbg.json +4 -0
  25. package/artifacts/contracts/authorization/ServiceAuthorization.sol/ServiceAuthorization.json +646 -0
  26. package/artifacts/contracts/distribution/BasicDistribution.sol/BasicDistribution.dbg.json +4 -0
  27. package/artifacts/contracts/distribution/BasicDistribution.sol/BasicDistribution.json +1225 -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 +1 -1
  31. package/artifacts/contracts/distribution/Distribution.sol/Distribution.json +154 -600
  32. package/artifacts/contracts/distribution/DistributionService.sol/DistributionService.dbg.json +1 -1
  33. package/artifacts/contracts/distribution/DistributionService.sol/DistributionService.json +564 -471
  34. package/artifacts/contracts/distribution/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
  35. package/artifacts/contracts/distribution/DistributionServiceManager.sol/DistributionServiceManager.json +240 -116
  36. package/artifacts/contracts/distribution/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
  37. package/artifacts/contracts/distribution/IDistributionComponent.sol/IDistributionComponent.json +165 -336
  38. package/artifacts/contracts/distribution/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  39. package/artifacts/contracts/distribution/IDistributionService.sol/IDistributionService.json +373 -113
  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 +1461 -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 +2018 -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 +1404 -0
  54. package/artifacts/contracts/examples/unpermissioned/SimpleDistributionAuthorization.sol/SimpleDistributionAuthorization.dbg.json +4 -0
  55. package/artifacts/contracts/examples/unpermissioned/SimpleDistributionAuthorization.sol/SimpleDistributionAuthorization.json +805 -0
  56. package/artifacts/contracts/examples/unpermissioned/SimpleOracle.sol/SimpleOracle.dbg.json +4 -0
  57. package/artifacts/contracts/examples/unpermissioned/SimpleOracle.sol/SimpleOracle.json +1152 -0
  58. package/artifacts/contracts/examples/unpermissioned/SimplePool.sol/SimplePool.dbg.json +4 -0
  59. package/artifacts/contracts/examples/unpermissioned/SimplePool.sol/SimplePool.json +1628 -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 +2405 -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 +526 -87
  70. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  71. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +413 -74
  72. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  73. package/artifacts/contracts/instance/Instance.sol/Instance.json +533 -218
  74. package/artifacts/contracts/instance/InstanceAdmin.sol/InstanceAdmin.dbg.json +4 -0
  75. package/artifacts/contracts/instance/InstanceAdmin.sol/InstanceAdmin.json +2302 -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 +1 -1
  79. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1843 -719
  80. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  81. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +433 -211
  82. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  83. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +171 -93
  84. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.dbg.json +1 -1
  85. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.json +1651 -770
  86. package/artifacts/contracts/instance/RiskSet.sol/RiskSet.dbg.json +4 -0
  87. package/artifacts/contracts/instance/RiskSet.sol/RiskSet.json +853 -0
  88. package/artifacts/contracts/instance/base/BalanceStore.sol/BalanceStore.dbg.json +4 -0
  89. package/artifacts/contracts/instance/base/BalanceStore.sol/BalanceStore.json +318 -0
  90. package/artifacts/contracts/instance/base/Cloneable.sol/Cloneable.dbg.json +1 -1
  91. package/artifacts/contracts/instance/base/Cloneable.sol/Cloneable.json +0 -53
  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 +1 -1
  101. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +1 -1
  102. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
  103. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  104. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  105. package/artifacts/contracts/mock/Dip.sol/Dip.dbg.json +4 -0
  106. package/artifacts/contracts/mock/Dip.sol/Dip.json +376 -0
  107. package/artifacts/contracts/oracle/BasicOracle.sol/BasicOracle.dbg.json +4 -0
  108. package/artifacts/contracts/oracle/BasicOracle.sol/BasicOracle.json +938 -0
  109. package/artifacts/contracts/oracle/BasicOracleAuthorization.sol/BasicOracleAuthorization.dbg.json +4 -0
  110. package/artifacts/contracts/oracle/BasicOracleAuthorization.sol/BasicOracleAuthorization.json +810 -0
  111. package/artifacts/contracts/oracle/IOracle.sol/IOracle.dbg.json +4 -0
  112. package/artifacts/contracts/oracle/IOracle.sol/IOracle.json +52 -0
  113. package/artifacts/contracts/oracle/IOracleComponent.sol/IOracleComponent.dbg.json +4 -0
  114. package/artifacts/contracts/oracle/IOracleComponent.sol/IOracleComponent.json +753 -0
  115. package/artifacts/contracts/oracle/IOracleService.sol/IOracleService.dbg.json +4 -0
  116. package/artifacts/contracts/oracle/IOracleService.sol/IOracleService.json +733 -0
  117. package/artifacts/contracts/oracle/Oracle.sol/Oracle.dbg.json +4 -0
  118. package/artifacts/contracts/oracle/Oracle.sol/Oracle.json +854 -0
  119. package/artifacts/contracts/oracle/OracleService.sol/OracleService.dbg.json +4 -0
  120. package/artifacts/contracts/oracle/OracleService.sol/OracleService.json +1013 -0
  121. package/artifacts/contracts/oracle/OracleServiceManager.sol/OracleServiceManager.dbg.json +4 -0
  122. package/artifacts/contracts/oracle/OracleServiceManager.sol/OracleServiceManager.json +772 -0
  123. package/artifacts/contracts/pool/BasicPool.sol/BasicPool.dbg.json +4 -0
  124. package/artifacts/contracts/pool/BasicPool.sol/BasicPool.json +1231 -0
  125. package/artifacts/contracts/pool/BasicPoolAuthorization.sol/BasicPoolAuthorization.dbg.json +4 -0
  126. package/artifacts/contracts/pool/BasicPoolAuthorization.sol/BasicPoolAuthorization.json +805 -0
  127. package/artifacts/contracts/pool/BundleService.sol/BundleService.dbg.json +1 -1
  128. package/artifacts/contracts/pool/BundleService.sol/BundleService.json +355 -366
  129. package/artifacts/contracts/pool/BundleServiceManager.sol/BundleServiceManager.dbg.json +1 -1
  130. package/artifacts/contracts/pool/BundleServiceManager.sol/BundleServiceManager.json +214 -102
  131. package/artifacts/contracts/pool/IBundleService.sol/IBundleService.dbg.json +1 -1
  132. package/artifacts/contracts/pool/IBundleService.sol/IBundleService.json +221 -76
  133. package/artifacts/contracts/pool/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  134. package/artifacts/contracts/pool/IPoolComponent.sol/IPoolComponent.json +214 -423
  135. package/artifacts/contracts/pool/IPoolService.sol/IPoolService.dbg.json +1 -1
  136. package/artifacts/contracts/pool/IPoolService.sol/IPoolService.json +554 -401
  137. package/artifacts/contracts/pool/Pool.sol/Pool.dbg.json +1 -1
  138. package/artifacts/contracts/pool/Pool.sol/Pool.json +223 -624
  139. package/artifacts/contracts/pool/PoolLib.sol/PoolLib.dbg.json +4 -0
  140. package/artifacts/contracts/pool/PoolLib.sol/PoolLib.json +538 -0
  141. package/artifacts/contracts/pool/PoolService.sol/PoolService.dbg.json +1 -1
  142. package/artifacts/contracts/pool/PoolService.sol/PoolService.json +694 -710
  143. package/artifacts/contracts/pool/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
  144. package/artifacts/contracts/pool/PoolServiceManager.sol/PoolServiceManager.json +228 -112
  145. package/artifacts/contracts/product/ApplicationService.sol/ApplicationService.dbg.json +1 -1
  146. package/artifacts/contracts/product/ApplicationService.sol/ApplicationService.json +219 -242
  147. package/artifacts/contracts/product/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +1 -1
  148. package/artifacts/contracts/product/ApplicationServiceManager.sol/ApplicationServiceManager.json +188 -88
  149. package/artifacts/contracts/product/BasicProduct.sol/BasicProduct.dbg.json +4 -0
  150. package/artifacts/contracts/product/BasicProduct.sol/BasicProduct.json +1140 -0
  151. package/artifacts/contracts/product/BasicProductAuthorization.sol/BasicProductAuthorization.dbg.json +4 -0
  152. package/artifacts/contracts/product/BasicProductAuthorization.sol/BasicProductAuthorization.json +805 -0
  153. package/artifacts/contracts/product/ClaimService.sol/ClaimService.dbg.json +1 -1
  154. package/artifacts/contracts/product/ClaimService.sol/ClaimService.json +458 -332
  155. package/artifacts/contracts/product/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +1 -1
  156. package/artifacts/contracts/product/ClaimServiceManager.sol/ClaimServiceManager.json +222 -114
  157. package/artifacts/contracts/product/IApplicationService.sol/IApplicationService.dbg.json +1 -1
  158. package/artifacts/contracts/product/IApplicationService.sol/IApplicationService.json +155 -9
  159. package/artifacts/contracts/product/IClaimService.sol/IClaimService.dbg.json +1 -1
  160. package/artifacts/contracts/product/IClaimService.sol/IClaimService.json +327 -16
  161. package/artifacts/contracts/product/IPolicyService.sol/IPolicyService.dbg.json +1 -1
  162. package/artifacts/contracts/product/IPolicyService.sol/IPolicyService.json +399 -69
  163. package/artifacts/contracts/product/IPricingService.sol/IPricingService.dbg.json +1 -1
  164. package/artifacts/contracts/product/IPricingService.sol/IPricingService.json +195 -82
  165. package/artifacts/contracts/product/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  166. package/artifacts/contracts/product/IProductComponent.sol/IProductComponent.json +367 -231
  167. package/artifacts/contracts/product/IRiskService.sol/IRiskService.dbg.json +4 -0
  168. package/artifacts/contracts/product/{IProductService.sol/IProductService.json → IRiskService.sol/IRiskService.json} +100 -62
  169. package/artifacts/contracts/product/PolicyService.sol/PolicyService.dbg.json +1 -1
  170. package/artifacts/contracts/product/PolicyService.sol/PolicyService.json +440 -380
  171. package/artifacts/contracts/product/PolicyServiceLib.sol/PolicyServiceLib.dbg.json +4 -0
  172. package/artifacts/contracts/product/PolicyServiceLib.sol/PolicyServiceLib.json +783 -0
  173. package/artifacts/contracts/product/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +1 -1
  174. package/artifacts/contracts/product/PolicyServiceManager.sol/PolicyServiceManager.json +196 -124
  175. package/artifacts/contracts/product/PricingService.sol/PricingService.dbg.json +1 -1
  176. package/artifacts/contracts/product/PricingService.sol/PricingService.json +247 -324
  177. package/artifacts/contracts/product/PricingServiceManager.sol/PricingServiceManager.dbg.json +1 -1
  178. package/artifacts/contracts/product/PricingServiceManager.sol/PricingServiceManager.json +192 -108
  179. package/artifacts/contracts/product/Product.sol/Product.dbg.json +1 -1
  180. package/artifacts/contracts/product/Product.sol/Product.json +409 -509
  181. package/artifacts/contracts/product/RiskService.sol/RiskService.dbg.json +4 -0
  182. package/artifacts/contracts/product/RiskService.sol/RiskService.json +688 -0
  183. package/artifacts/contracts/product/RiskServiceManager.sol/RiskServiceManager.dbg.json +4 -0
  184. package/artifacts/contracts/product/RiskServiceManager.sol/RiskServiceManager.json +736 -0
  185. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  186. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +59 -16
  187. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  188. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +462 -56
  189. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  190. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +251 -127
  191. package/artifacts/contracts/registry/IRelease.sol/IRelease.dbg.json +4 -0
  192. package/artifacts/contracts/registry/IRelease.sol/IRelease.json +24 -0
  193. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  194. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +5 -18
  195. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  196. package/artifacts/contracts/registry/Registry.sol/Registry.json +905 -121
  197. package/artifacts/contracts/registry/RegistryAdmin.sol/RegistryAdmin.dbg.json +4 -0
  198. package/artifacts/contracts/registry/RegistryAdmin.sol/RegistryAdmin.json +2127 -0
  199. package/artifacts/contracts/registry/RegistryAuthorization.sol/RegistryAuthorization.dbg.json +4 -0
  200. package/artifacts/contracts/registry/RegistryAuthorization.sol/RegistryAuthorization.json +1053 -0
  201. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  202. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +303 -245
  203. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  204. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +169 -91
  205. package/artifacts/contracts/registry/ReleaseAdmin.sol/ReleaseAdmin.dbg.json +4 -0
  206. package/artifacts/contracts/registry/ReleaseAdmin.sol/ReleaseAdmin.json +2140 -0
  207. package/artifacts/contracts/registry/ReleaseLifecycle.sol/ReleaseLifecycle.dbg.json +4 -0
  208. package/artifacts/contracts/registry/ReleaseLifecycle.sol/ReleaseLifecycle.json +205 -0
  209. package/artifacts/contracts/registry/ReleaseRegistry.sol/ReleaseRegistry.dbg.json +4 -0
  210. package/artifacts/contracts/registry/ReleaseRegistry.sol/ReleaseRegistry.json +1393 -0
  211. package/artifacts/contracts/registry/ServiceAuthorizationV3.sol/ServiceAuthorizationV3.dbg.json +4 -0
  212. package/artifacts/contracts/registry/ServiceAuthorizationV3.sol/ServiceAuthorizationV3.json +683 -0
  213. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
  214. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +315 -139
  215. package/artifacts/contracts/shared/Component.sol/Component.dbg.json +1 -1
  216. package/artifacts/contracts/shared/Component.sol/Component.json +109 -296
  217. package/artifacts/contracts/shared/ComponentService.sol/ComponentService.dbg.json +1 -1
  218. package/artifacts/contracts/shared/ComponentService.sol/ComponentService.json +1021 -165
  219. package/artifacts/contracts/shared/ComponentServiceManager.sol/ComponentServiceManager.dbg.json +4 -0
  220. package/artifacts/contracts/shared/ComponentServiceManager.sol/ComponentServiceManager.json +816 -0
  221. package/artifacts/contracts/shared/ComponentVerifyingService.sol/ComponentVerifyingService.dbg.json +4 -0
  222. package/artifacts/contracts/shared/ComponentVerifyingService.sol/ComponentVerifyingService.json +485 -0
  223. package/artifacts/contracts/shared/ContractLib.sol/ContractLib.dbg.json +4 -0
  224. package/artifacts/contracts/shared/ContractLib.sol/ContractLib.json +680 -0
  225. package/artifacts/contracts/shared/ContractLib.sol/IInstanceAdminHelper.dbg.json +4 -0
  226. package/artifacts/contracts/shared/ContractLib.sol/IInstanceAdminHelper.json +24 -0
  227. package/artifacts/contracts/shared/ContractLib.sol/ITargetHelper.dbg.json +4 -0
  228. package/artifacts/contracts/shared/ContractLib.sol/ITargetHelper.json +30 -0
  229. package/artifacts/contracts/shared/ContractLib.sol/ITokenRegistryHelper.dbg.json +4 -0
  230. package/artifacts/contracts/shared/ContractLib.sol/ITokenRegistryHelper.json +40 -0
  231. package/artifacts/contracts/shared/IComponent.sol/IComponent.dbg.json +1 -1
  232. package/artifacts/contracts/shared/IComponent.sol/IComponent.json +116 -141
  233. package/artifacts/contracts/shared/IComponentService.sol/IComponentService.dbg.json +4 -0
  234. package/artifacts/contracts/shared/IComponentService.sol/IComponentService.json +1127 -0
  235. package/artifacts/contracts/shared/IInstanceLinkedComponent.sol/IInstanceLinkedComponent.dbg.json +4 -0
  236. package/artifacts/contracts/shared/IInstanceLinkedComponent.sol/IInstanceLinkedComponent.json +688 -0
  237. package/artifacts/contracts/shared/IKeyValueStore.sol/IKeyValueStore.dbg.json +4 -0
  238. package/artifacts/contracts/{instance/base → shared}/IKeyValueStore.sol/IKeyValueStore.json +46 -14
  239. package/artifacts/contracts/shared/ILifecycle.sol/ILifecycle.dbg.json +4 -0
  240. package/artifacts/contracts/{instance/base → shared}/ILifecycle.sol/ILifecycle.json +35 -4
  241. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  242. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +23 -1
  243. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +1 -1
  244. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +16 -30
  245. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  246. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +154 -0
  247. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +1 -1
  248. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
  249. package/artifacts/contracts/shared/IService.sol/IService.json +74 -2
  250. package/artifacts/contracts/shared/InitializableERC165.sol/InitializableERC165.dbg.json +4 -0
  251. package/artifacts/contracts/shared/InitializableERC165.sol/InitializableERC165.json +53 -0
  252. package/artifacts/contracts/shared/InstanceLinkedComponent.sol/InstanceLinkedComponent.dbg.json +4 -0
  253. package/artifacts/contracts/shared/InstanceLinkedComponent.sol/InstanceLinkedComponent.json +776 -0
  254. package/artifacts/contracts/shared/KeyValueStore.sol/KeyValueStore.dbg.json +4 -0
  255. package/artifacts/contracts/shared/KeyValueStore.sol/KeyValueStore.json +538 -0
  256. package/artifacts/contracts/shared/Lifecycle.sol/Lifecycle.dbg.json +4 -0
  257. package/artifacts/contracts/shared/Lifecycle.sol/Lifecycle.json +174 -0
  258. package/artifacts/contracts/shared/NftIdSet.sol/NftIdSet.dbg.json +4 -0
  259. package/artifacts/contracts/shared/NftIdSet.sol/NftIdSet.json +306 -0
  260. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  261. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +26 -55
  262. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +1 -1
  263. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +20 -124
  264. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  265. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +129 -90
  266. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +1 -1
  267. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +2 -15
  268. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
  269. package/artifacts/contracts/shared/Service.sol/Service.json +67 -102
  270. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  271. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +615 -6
  272. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandlerBase.dbg.json +4 -0
  273. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandlerBase.json +484 -0
  274. package/artifacts/contracts/shared/TokenHandlerDeployerLib.sol/TokenHandlerDeployerLib.dbg.json +4 -0
  275. package/artifacts/contracts/shared/TokenHandlerDeployerLib.sol/TokenHandlerDeployerLib.json +172 -0
  276. package/artifacts/contracts/staking/IStaking.sol/IStaking.dbg.json +1 -1
  277. package/artifacts/contracts/staking/IStaking.sol/IStaking.json +1301 -119
  278. package/artifacts/contracts/staking/IStakingService.sol/IStakingService.dbg.json +1 -1
  279. package/artifacts/contracts/staking/IStakingService.sol/IStakingService.json +685 -63
  280. package/artifacts/contracts/staking/Staking.sol/Staking.dbg.json +1 -1
  281. package/artifacts/contracts/staking/Staking.sol/Staking.json +1579 -172
  282. package/artifacts/contracts/staking/StakingLib.sol/StakingLib.dbg.json +4 -0
  283. package/artifacts/contracts/staking/StakingLib.sol/StakingLib.json +469 -0
  284. package/artifacts/contracts/staking/StakingLifecycle.sol/StakingLifecycle.dbg.json +4 -0
  285. package/artifacts/contracts/staking/StakingLifecycle.sol/StakingLifecycle.json +205 -0
  286. package/artifacts/contracts/staking/StakingManager.sol/StakingManager.dbg.json +1 -1
  287. package/artifacts/contracts/staking/StakingManager.sol/StakingManager.json +250 -73
  288. package/artifacts/contracts/staking/StakingReader.sol/StakingReader.dbg.json +4 -0
  289. package/artifacts/contracts/staking/StakingReader.sol/StakingReader.json +560 -0
  290. package/artifacts/contracts/staking/StakingService.sol/StakingService.dbg.json +1 -1
  291. package/artifacts/contracts/staking/StakingService.sol/StakingService.json +775 -176
  292. package/artifacts/contracts/staking/StakingServiceManager.sol/StakingServiceManager.dbg.json +1 -1
  293. package/artifacts/contracts/staking/StakingServiceManager.sol/StakingServiceManager.json +195 -83
  294. package/artifacts/contracts/staking/StakingStore.sol/StakingStore.dbg.json +4 -0
  295. package/artifacts/contracts/staking/StakingStore.sol/StakingStore.json +2297 -0
  296. package/artifacts/contracts/staking/TargetManagerLib.sol/TargetManagerLib.dbg.json +4 -0
  297. package/artifacts/contracts/staking/TargetManagerLib.sol/TargetManagerLib.json +617 -0
  298. package/artifacts/contracts/type/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  299. package/artifacts/contracts/type/AddressSet.sol/LibAddressSet.json +2 -2
  300. package/artifacts/contracts/type/Amount.sol/AmountLib.dbg.json +1 -1
  301. package/artifacts/contracts/type/Amount.sol/AmountLib.json +122 -5
  302. package/artifacts/contracts/type/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  303. package/artifacts/contracts/type/Blocknumber.sol/BlocknumberLib.json +53 -2
  304. package/artifacts/contracts/type/ClaimId.sol/ClaimIdLib.dbg.json +1 -1
  305. package/artifacts/contracts/type/ClaimId.sol/ClaimIdLib.json +28 -4
  306. package/artifacts/contracts/type/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
  307. package/artifacts/contracts/type/DistributorType.sol/DistributorTypeLib.json +4 -4
  308. package/artifacts/contracts/type/Fee.sol/FeeLib.dbg.json +1 -1
  309. package/artifacts/contracts/type/Fee.sol/FeeLib.json +119 -58
  310. package/artifacts/contracts/type/Key32.sol/Key32Lib.dbg.json +1 -1
  311. package/artifacts/contracts/type/Key32.sol/Key32Lib.json +2 -2
  312. package/artifacts/contracts/type/Key32Set.sol/LibKey32Set.dbg.json +4 -0
  313. package/artifacts/contracts/type/Key32Set.sol/LibKey32Set.json +33 -0
  314. package/artifacts/contracts/type/NftId.sol/NftIdLib.dbg.json +1 -1
  315. package/artifacts/contracts/type/NftId.sol/NftIdLib.json +66 -4
  316. package/artifacts/contracts/type/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  317. package/artifacts/contracts/type/NftIdSet.sol/LibNftIdSet.json +2 -2
  318. package/artifacts/contracts/type/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  319. package/artifacts/contracts/type/ObjectType.sol/ObjectTypeLib.json +153 -4
  320. package/artifacts/contracts/type/PayoutId.sol/PayoutIdLib.dbg.json +1 -1
  321. package/artifacts/contracts/type/PayoutId.sol/PayoutIdLib.json +19 -19
  322. package/artifacts/contracts/type/Referral.sol/ReferralLib.dbg.json +1 -1
  323. package/artifacts/contracts/type/Referral.sol/ReferralLib.json +4 -4
  324. package/artifacts/contracts/type/RequestId.sol/RequestIdLib.dbg.json +4 -0
  325. package/artifacts/contracts/type/RequestId.sol/RequestIdLib.json +204 -0
  326. package/artifacts/contracts/type/RiskId.sol/RiskIdLib.dbg.json +1 -1
  327. package/artifacts/contracts/type/RiskId.sol/RiskIdLib.json +125 -7
  328. package/artifacts/contracts/type/RoleId.sol/RoleIdLib.dbg.json +1 -1
  329. package/artifacts/contracts/type/RoleId.sol/RoleIdLib.json +121 -23
  330. package/artifacts/contracts/type/Seconds.sol/SecondsLib.dbg.json +1 -1
  331. package/artifacts/contracts/type/Seconds.sol/SecondsLib.json +124 -2
  332. package/artifacts/contracts/type/Selector.sol/SelectorLib.dbg.json +4 -0
  333. package/artifacts/contracts/type/Selector.sol/SelectorLib.json +148 -0
  334. package/artifacts/contracts/type/Selector.sol/SelectorSetLib.dbg.json +4 -0
  335. package/artifacts/contracts/type/Selector.sol/SelectorSetLib.json +10 -0
  336. package/artifacts/contracts/type/StateId.sol/StateIdLib.dbg.json +1 -1
  337. package/artifacts/contracts/type/StateId.sol/StateIdLib.json +15 -2
  338. package/artifacts/contracts/type/String.sol/StrLib.dbg.json +4 -0
  339. package/artifacts/contracts/type/String.sol/StrLib.json +132 -0
  340. package/artifacts/contracts/type/Timestamp.sol/TimestampLib.dbg.json +1 -1
  341. package/artifacts/contracts/type/Timestamp.sol/TimestampLib.json +36 -4
  342. package/artifacts/contracts/type/UFixed.sol/UFixedLib.dbg.json +1 -1
  343. package/artifacts/contracts/type/UFixed.sol/UFixedLib.json +126 -33
  344. package/artifacts/contracts/type/Version.sol/VersionLib.dbg.json +1 -1
  345. package/artifacts/contracts/type/Version.sol/VersionLib.json +2 -21
  346. package/artifacts/contracts/type/Version.sol/VersionPartLib.dbg.json +1 -1
  347. package/artifacts/contracts/type/Version.sol/VersionPartLib.json +120 -2
  348. package/artifacts/contracts/upgradeability/IVersionable.sol/IVersionable.dbg.json +4 -0
  349. package/artifacts/contracts/{shared → upgradeability}/IVersionable.sol/IVersionable.json +1 -1
  350. package/artifacts/contracts/upgradeability/ProxyManager.sol/ProxyManager.dbg.json +4 -0
  351. package/artifacts/contracts/upgradeability/ProxyManager.sol/ProxyManager.json +618 -0
  352. package/artifacts/contracts/upgradeability/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
  353. package/artifacts/contracts/upgradeability/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +142 -0
  354. package/artifacts/contracts/upgradeability/Versionable.sol/Versionable.dbg.json +4 -0
  355. package/artifacts/contracts/{shared → upgradeability}/Versionable.sol/Versionable.json +1 -1
  356. package/contracts/accounting/AccountingService.sol +261 -0
  357. package/contracts/accounting/AccountingServiceManager.sol +38 -0
  358. package/contracts/accounting/IAccountingService.sol +45 -0
  359. package/contracts/authorization/AccessAdmin.sol +789 -0
  360. package/contracts/authorization/AccessAdminLib.sol +387 -0
  361. package/contracts/authorization/AccessManagerCloneable.sol +158 -0
  362. package/contracts/authorization/Authorization.sol +174 -0
  363. package/contracts/authorization/IAccess.sol +67 -0
  364. package/contracts/authorization/IAccessAdmin.sol +137 -0
  365. package/contracts/authorization/IAuthorization.sol +27 -0
  366. package/contracts/authorization/IServiceAuthorization.sol +78 -0
  367. package/contracts/authorization/ServiceAuthorization.sol +320 -0
  368. package/contracts/distribution/BasicDistribution.sol +141 -0
  369. package/contracts/distribution/BasicDistributionAuthorization.sol +67 -0
  370. package/contracts/distribution/Distribution.sol +135 -175
  371. package/contracts/distribution/DistributionService.sol +306 -213
  372. package/contracts/distribution/DistributionServiceManager.sol +13 -25
  373. package/contracts/distribution/IDistributionComponent.sol +23 -49
  374. package/contracts/distribution/IDistributionService.sol +55 -33
  375. package/contracts/examples/fire/DamageLevel.sol +59 -0
  376. package/contracts/examples/fire/FirePool.sol +86 -0
  377. package/contracts/examples/fire/FirePoolAuthorization.sol +35 -0
  378. package/contracts/examples/fire/FireProduct.sol +433 -0
  379. package/contracts/examples/fire/FireProductAuthorization.sol +45 -0
  380. package/contracts/examples/fire/FireUSD.sol +26 -0
  381. package/contracts/examples/unpermissioned/SimpleDistribution.sol +81 -0
  382. package/contracts/examples/unpermissioned/SimpleDistributionAuthorization.sol +28 -0
  383. package/contracts/examples/unpermissioned/SimpleOracle.sol +133 -0
  384. package/contracts/examples/unpermissioned/SimplePool.sol +102 -0
  385. package/contracts/examples/unpermissioned/SimplePoolAuthorization.sol +28 -0
  386. package/contracts/examples/unpermissioned/SimpleProduct.sol +373 -0
  387. package/contracts/examples/unpermissioned/SimpleProductAuthorization.sol +28 -0
  388. package/contracts/instance/BundleSet.sol +130 -0
  389. package/contracts/instance/IInstance.sol +114 -49
  390. package/contracts/instance/IInstanceService.sol +74 -37
  391. package/contracts/instance/Instance.sol +245 -133
  392. package/contracts/instance/InstanceAdmin.sol +380 -0
  393. package/contracts/instance/InstanceAuthorizationV3.sol +263 -0
  394. package/contracts/instance/InstanceReader.sol +437 -100
  395. package/contracts/instance/InstanceService.sol +402 -180
  396. package/contracts/instance/InstanceServiceManager.sol +14 -29
  397. package/contracts/instance/InstanceStore.sol +151 -64
  398. package/contracts/instance/RiskSet.sol +118 -0
  399. package/contracts/instance/base/BalanceStore.sol +123 -0
  400. package/contracts/instance/base/Cloneable.sol +2 -25
  401. package/contracts/instance/base/ObjectCounter.sol +20 -0
  402. package/contracts/instance/base/ObjectLifecycle.sol +113 -0
  403. package/contracts/instance/base/ObjectSet.sol +77 -0
  404. package/contracts/instance/base/ObjectSetHelperLib.sol +30 -0
  405. package/contracts/instance/module/IBundle.sol +6 -8
  406. package/contracts/instance/module/IComponents.sol +40 -19
  407. package/contracts/instance/module/IDistribution.sol +21 -9
  408. package/contracts/instance/module/IPolicy.sol +57 -30
  409. package/contracts/instance/module/IRisk.sol +5 -0
  410. package/contracts/mock/Dip.sol +26 -0
  411. package/contracts/oracle/BasicOracle.sol +45 -0
  412. package/contracts/oracle/BasicOracleAuthorization.sol +53 -0
  413. package/contracts/oracle/IOracle.sol +41 -0
  414. package/contracts/oracle/IOracleComponent.sol +33 -0
  415. package/contracts/oracle/IOracleService.sol +66 -0
  416. package/contracts/oracle/Oracle.sol +154 -0
  417. package/contracts/oracle/OracleService.sol +310 -0
  418. package/contracts/oracle/OracleServiceManager.sol +39 -0
  419. package/contracts/pool/BasicPool.sol +173 -0
  420. package/contracts/pool/BasicPoolAuthorization.sol +82 -0
  421. package/contracts/pool/BundleService.sol +237 -224
  422. package/contracts/pool/BundleServiceManager.sol +13 -25
  423. package/contracts/pool/IBundleService.sol +35 -38
  424. package/contracts/pool/IPoolComponent.sol +23 -75
  425. package/contracts/pool/IPoolService.sol +107 -56
  426. package/contracts/pool/Pool.sol +209 -168
  427. package/contracts/pool/PoolLib.sol +353 -0
  428. package/contracts/pool/PoolService.sol +446 -262
  429. package/contracts/pool/PoolServiceManager.sol +12 -24
  430. package/contracts/product/ApplicationService.sol +177 -85
  431. package/contracts/product/ApplicationServiceManager.sol +12 -9
  432. package/contracts/product/BasicProduct.sol +49 -0
  433. package/contracts/product/BasicProductAuthorization.sol +61 -0
  434. package/contracts/product/ClaimService.sol +380 -184
  435. package/contracts/product/ClaimServiceManager.sol +12 -9
  436. package/contracts/product/IApplicationService.sol +10 -3
  437. package/contracts/product/IClaimService.sol +48 -6
  438. package/contracts/product/IPolicyService.sol +54 -39
  439. package/contracts/product/IPricingService.sol +14 -11
  440. package/contracts/product/IProductComponent.sol +31 -10
  441. package/contracts/product/IRiskService.sol +33 -0
  442. package/contracts/product/PolicyService.sol +498 -234
  443. package/contracts/product/PolicyServiceLib.sol +139 -0
  444. package/contracts/product/PolicyServiceManager.sol +12 -27
  445. package/contracts/product/PricingService.sol +116 -82
  446. package/contracts/product/PricingServiceManager.sol +12 -24
  447. package/contracts/product/Product.sol +236 -148
  448. package/contracts/product/RiskService.sol +154 -0
  449. package/contracts/product/RiskServiceManager.sol +39 -0
  450. package/contracts/registry/ChainNft.sol +72 -39
  451. package/contracts/registry/IRegistry.sol +94 -34
  452. package/contracts/registry/IRegistryService.sol +28 -35
  453. package/contracts/registry/IRelease.sol +29 -0
  454. package/contracts/registry/ITransferInterceptor.sol +1 -2
  455. package/contracts/registry/Registry.sol +444 -219
  456. package/contracts/registry/RegistryAdmin.sol +188 -0
  457. package/contracts/registry/RegistryAuthorization.sol +277 -0
  458. package/contracts/registry/RegistryService.sol +74 -137
  459. package/contracts/registry/RegistryServiceManager.sol +23 -30
  460. package/contracts/registry/ReleaseAdmin.sol +195 -0
  461. package/contracts/registry/ReleaseLifecycle.sol +32 -0
  462. package/contracts/registry/ReleaseRegistry.sol +520 -0
  463. package/contracts/registry/ServiceAuthorizationV3.sol +343 -0
  464. package/contracts/registry/TokenRegistry.sol +262 -64
  465. package/contracts/shared/Component.sol +122 -183
  466. package/contracts/shared/ComponentService.sol +610 -99
  467. package/contracts/shared/ComponentServiceManager.sol +38 -0
  468. package/contracts/shared/ComponentVerifyingService.sol +128 -0
  469. package/contracts/shared/ContractLib.sol +357 -0
  470. package/contracts/shared/IComponent.sol +17 -49
  471. package/contracts/shared/IComponentService.sol +110 -0
  472. package/contracts/shared/IInstanceLinkedComponent.sol +30 -0
  473. package/contracts/{instance/base → shared}/IKeyValueStore.sol +7 -6
  474. package/contracts/{instance/base → shared}/ILifecycle.sol +5 -4
  475. package/contracts/shared/INftOwnable.sol +3 -1
  476. package/contracts/shared/IPolicyHolder.sol +12 -17
  477. package/contracts/shared/IRegisterable.sol +23 -1
  478. package/contracts/shared/IService.sol +11 -6
  479. package/contracts/shared/{ERC165.sol → InitializableERC165.sol} +12 -4
  480. package/contracts/shared/InstanceLinkedComponent.sol +194 -0
  481. package/contracts/{instance/base → shared}/KeyValueStore.sol +36 -74
  482. package/contracts/shared/Lifecycle.sol +88 -0
  483. package/contracts/shared/NftIdSet.sol +65 -0
  484. package/contracts/shared/NftOwnable.sol +33 -24
  485. package/contracts/shared/PolicyHolder.sol +18 -50
  486. package/contracts/shared/Registerable.sol +54 -23
  487. package/contracts/shared/RegistryLinked.sol +9 -14
  488. package/contracts/shared/Service.sol +36 -41
  489. package/contracts/shared/TokenHandler.sol +320 -13
  490. package/contracts/shared/TokenHandlerDeployerLib.sol +20 -0
  491. package/contracts/staking/IStaking.sol +170 -6
  492. package/contracts/staking/IStakingService.sol +110 -40
  493. package/contracts/staking/Staking.sol +509 -27
  494. package/contracts/staking/StakingLib.sol +281 -0
  495. package/contracts/staking/StakingLifecycle.sol +23 -0
  496. package/contracts/staking/StakingManager.sol +24 -16
  497. package/contracts/staking/StakingReader.sol +180 -0
  498. package/contracts/staking/StakingService.sol +311 -48
  499. package/contracts/staking/StakingServiceManager.sol +12 -8
  500. package/contracts/staking/StakingStore.sol +606 -0
  501. package/contracts/staking/TargetManagerLib.sol +211 -0
  502. package/contracts/type/AddressSet.sol +1 -1
  503. package/contracts/type/Amount.sol +44 -3
  504. package/contracts/type/Blocknumber.sol +26 -3
  505. package/contracts/type/ClaimId.sol +6 -1
  506. package/contracts/type/Fee.sol +22 -21
  507. package/contracts/type/Key32.sol +2 -2
  508. package/contracts/type/Key32Set.sol +62 -0
  509. package/contracts/type/NftId.sol +21 -16
  510. package/contracts/type/NftIdSet.sol +1 -1
  511. package/contracts/type/ObjectType.sol +204 -63
  512. package/contracts/type/PayoutId.sol +10 -10
  513. package/contracts/type/Referral.sol +2 -1
  514. package/contracts/type/RequestId.sol +75 -0
  515. package/contracts/type/RiskId.sol +39 -7
  516. package/contracts/type/RoleId.sol +122 -74
  517. package/contracts/type/Seconds.sol +48 -1
  518. package/contracts/type/Selector.sol +107 -0
  519. package/contracts/type/StateId.sol +41 -2
  520. package/contracts/type/String.sol +53 -0
  521. package/contracts/type/Timestamp.sol +16 -7
  522. package/contracts/type/UFixed.sol +61 -125
  523. package/contracts/type/Version.sol +58 -7
  524. package/contracts/{shared → upgradeability}/ProxyManager.sol +101 -36
  525. package/contracts/{shared → upgradeability}/UpgradableProxyWithAdmin.sol +8 -4
  526. package/contracts/{shared → upgradeability}/Versionable.sol +6 -3
  527. package/package.json +12 -8
  528. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +0 -4
  529. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +0 -778
  530. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +0 -4
  531. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +0 -1348
  532. package/artifacts/contracts/instance/InstanceAuthorizationsLib.sol/InstanceAuthorizationsLib.dbg.json +0 -4
  533. package/artifacts/contracts/instance/InstanceAuthorizationsLib.sol/InstanceAuthorizationsLib.json +0 -124
  534. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +0 -4
  535. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +0 -4
  536. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +0 -4
  537. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +0 -581
  538. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +0 -4
  539. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +0 -194
  540. package/artifacts/contracts/instance/base/ObjectManager.sol/ObjectManager.dbg.json +0 -4
  541. package/artifacts/contracts/instance/base/ObjectManager.sol/ObjectManager.json +0 -256
  542. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +0 -4
  543. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +0 -237
  544. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +0 -4
  545. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +0 -4
  546. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.json +0 -10
  547. package/artifacts/contracts/product/IProductService.sol/IProductService.dbg.json +0 -4
  548. package/artifacts/contracts/product/ProductService.sol/ProductService.dbg.json +0 -4
  549. package/artifacts/contracts/product/ProductService.sol/ProductService.json +0 -864
  550. package/artifacts/contracts/product/ProductServiceManager.sol/ProductServiceManager.dbg.json +0 -4
  551. package/artifacts/contracts/product/ProductServiceManager.sol/ProductServiceManager.json +0 -640
  552. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +0 -4
  553. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +0 -285
  554. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +0 -4
  555. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +0 -620
  556. package/artifacts/contracts/shared/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +0 -4
  557. package/artifacts/contracts/shared/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +0 -1206
  558. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +0 -4
  559. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +0 -73
  560. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +0 -4
  561. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +0 -4
  562. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +0 -569
  563. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +0 -4
  564. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +0 -129
  565. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +0 -4
  566. package/artifacts/contracts/type/UFixed.sol/MathLib.dbg.json +0 -4
  567. package/artifacts/contracts/type/UFixed.sol/MathLib.json +0 -10
  568. package/contracts/instance/BundleManager.sol +0 -126
  569. package/contracts/instance/InstanceAccessManager.sol +0 -543
  570. package/contracts/instance/InstanceAuthorizationsLib.sol +0 -308
  571. package/contracts/instance/base/Lifecycle.sol +0 -121
  572. package/contracts/instance/base/ObjectManager.sol +0 -82
  573. package/contracts/instance/module/IAccess.sol +0 -54
  574. package/contracts/instance/module/ISetup.sol +0 -33
  575. package/contracts/instance/module/ITreasury.sol +0 -23
  576. package/contracts/product/IProductService.sol +0 -40
  577. package/contracts/product/ProductService.sol +0 -210
  578. package/contracts/product/ProductServiceManager.sol +0 -54
  579. package/contracts/registry/RegistryAccessManager.sol +0 -207
  580. package/contracts/registry/ReleaseManager.sol +0 -360
  581. package/contracts/shared/AccessManagerUpgradeableInitializeable.sol +0 -13
  582. /package/contracts/{shared → upgradeability}/IVersionable.sol +0 -0
@@ -41,6 +41,58 @@
41
41
  "name": "AccessManagedUnauthorized",
42
42
  "type": "error"
43
43
  },
44
+ {
45
+ "inputs": [
46
+ {
47
+ "internalType": "address",
48
+ "name": "authority",
49
+ "type": "address"
50
+ }
51
+ ],
52
+ "name": "ErrorAuthorityInvalid",
53
+ "type": "error"
54
+ },
55
+ {
56
+ "inputs": [],
57
+ "name": "ErrorComponentNameLengthZero",
58
+ "type": "error"
59
+ },
60
+ {
61
+ "inputs": [
62
+ {
63
+ "internalType": "address",
64
+ "name": "caller",
65
+ "type": "address"
66
+ }
67
+ ],
68
+ "name": "ErrorComponentNotChainNft",
69
+ "type": "error"
70
+ },
71
+ {
72
+ "inputs": [],
73
+ "name": "ErrorComponentProductNftIdNonzero",
74
+ "type": "error"
75
+ },
76
+ {
77
+ "inputs": [],
78
+ "name": "ErrorComponentProductNftIdZero",
79
+ "type": "error"
80
+ },
81
+ {
82
+ "inputs": [],
83
+ "name": "ErrorComponentWalletAddressIsSameAsCurrent",
84
+ "type": "error"
85
+ },
86
+ {
87
+ "inputs": [],
88
+ "name": "ErrorComponentWalletAddressZero",
89
+ "type": "error"
90
+ },
91
+ {
92
+ "inputs": [],
93
+ "name": "ErrorComponentWalletNotComponent",
94
+ "type": "error"
95
+ },
44
96
  {
45
97
  "inputs": [
46
98
  {
@@ -68,6 +120,22 @@
68
120
  "name": "ErrorNftOwnableInitialOwnerZero",
69
121
  "type": "error"
70
122
  },
123
+ {
124
+ "inputs": [
125
+ {
126
+ "internalType": "NftId",
127
+ "name": "nftId",
128
+ "type": "uint96"
129
+ },
130
+ {
131
+ "internalType": "ObjectType",
132
+ "name": "expectedObjectType",
133
+ "type": "uint8"
134
+ }
135
+ ],
136
+ "name": "ErrorNftOwnableInvalidType",
137
+ "type": "error"
138
+ },
71
139
  {
72
140
  "inputs": [
73
141
  {
@@ -91,203 +159,1293 @@
91
159
  "type": "error"
92
160
  },
93
161
  {
94
- "anonymous": false,
162
+ "inputs": [],
163
+ "name": "ErrorRegisterableNotActive",
164
+ "type": "error"
165
+ },
166
+ {
95
167
  "inputs": [
96
168
  {
97
- "indexed": false,
98
169
  "internalType": "address",
99
- "name": "authority",
170
+ "name": "owner",
171
+ "type": "address"
172
+ },
173
+ {
174
+ "internalType": "address",
175
+ "name": "tokenHandler",
100
176
  "type": "address"
177
+ },
178
+ {
179
+ "internalType": "uint256",
180
+ "name": "amount",
181
+ "type": "uint256"
182
+ },
183
+ {
184
+ "internalType": "uint256",
185
+ "name": "dipAllowance",
186
+ "type": "uint256"
101
187
  }
102
188
  ],
103
- "name": "AuthorityUpdated",
104
- "type": "event"
189
+ "name": "ErrorStakingDipAllowanceInsufficient",
190
+ "type": "error"
105
191
  },
106
192
  {
107
- "inputs": [],
108
- "name": "authority",
109
- "outputs": [
193
+ "inputs": [
110
194
  {
111
195
  "internalType": "address",
112
- "name": "",
196
+ "name": "owner",
113
197
  "type": "address"
198
+ },
199
+ {
200
+ "internalType": "uint256",
201
+ "name": "amount",
202
+ "type": "uint256"
203
+ },
204
+ {
205
+ "internalType": "uint256",
206
+ "name": "dipBalance",
207
+ "type": "uint256"
114
208
  }
115
209
  ],
116
- "stateMutability": "view",
117
- "type": "function"
210
+ "name": "ErrorStakingDipBalanceInsufficient",
211
+ "type": "error"
118
212
  },
119
213
  {
120
- "inputs": [],
121
- "name": "getInitialInfo",
122
- "outputs": [
214
+ "inputs": [
123
215
  {
124
- "components": [
125
- {
126
- "internalType": "NftId",
127
- "name": "nftId",
128
- "type": "uint96"
129
- },
130
- {
131
- "internalType": "NftId",
132
- "name": "parentNftId",
133
- "type": "uint96"
134
- },
135
- {
136
- "internalType": "ObjectType",
137
- "name": "objectType",
138
- "type": "uint8"
139
- },
140
- {
141
- "internalType": "bool",
142
- "name": "isInterceptor",
143
- "type": "bool"
144
- },
145
- {
146
- "internalType": "address",
147
- "name": "objectAddress",
148
- "type": "address"
149
- },
150
- {
151
- "internalType": "address",
152
- "name": "initialOwner",
153
- "type": "address"
154
- },
155
- {
156
- "internalType": "bytes",
157
- "name": "data",
158
- "type": "bytes"
159
- }
160
- ],
161
- "internalType": "struct IRegistry.ObjectInfo",
162
- "name": "",
163
- "type": "tuple"
216
+ "internalType": "NftId",
217
+ "name": "targetNftId",
218
+ "type": "uint96"
219
+ },
220
+ {
221
+ "internalType": "Seconds",
222
+ "name": "maxLockingPeriod",
223
+ "type": "uint40"
224
+ },
225
+ {
226
+ "internalType": "Seconds",
227
+ "name": "lockingPeriod",
228
+ "type": "uint40"
164
229
  }
165
230
  ],
166
- "stateMutability": "view",
167
- "type": "function"
231
+ "name": "ErrorStakingLockingPeriodTooLong",
232
+ "type": "error"
168
233
  },
169
234
  {
170
- "inputs": [],
171
- "name": "getNftId",
172
- "outputs": [
235
+ "inputs": [
173
236
  {
174
237
  "internalType": "NftId",
175
- "name": "",
238
+ "name": "targetNftId",
176
239
  "type": "uint96"
240
+ },
241
+ {
242
+ "internalType": "Seconds",
243
+ "name": "minLockingPeriod",
244
+ "type": "uint40"
245
+ },
246
+ {
247
+ "internalType": "Seconds",
248
+ "name": "lockingPeriod",
249
+ "type": "uint40"
177
250
  }
178
251
  ],
179
- "stateMutability": "view",
180
- "type": "function"
252
+ "name": "ErrorStakingLockingPeriodTooShort",
253
+ "type": "error"
181
254
  },
182
255
  {
183
- "inputs": [],
184
- "name": "getOwner",
185
- "outputs": [
256
+ "inputs": [
257
+ {
258
+ "internalType": "NftId",
259
+ "name": "nftId",
260
+ "type": "uint96"
261
+ }
262
+ ],
263
+ "name": "ErrorStakingNotNftOwner",
264
+ "type": "error"
265
+ },
266
+ {
267
+ "inputs": [
186
268
  {
187
269
  "internalType": "address",
188
- "name": "",
270
+ "name": "registry",
189
271
  "type": "address"
190
272
  }
191
273
  ],
192
- "stateMutability": "view",
193
- "type": "function"
274
+ "name": "ErrorStakingNotRegistry",
275
+ "type": "error"
194
276
  },
195
277
  {
196
- "inputs": [],
197
- "name": "getRegistry",
198
- "outputs": [
278
+ "inputs": [
199
279
  {
200
- "internalType": "contract IRegistry",
201
- "name": "",
202
- "type": "address"
280
+ "internalType": "NftId",
281
+ "name": "stakeNftId",
282
+ "type": "uint96"
203
283
  }
204
284
  ],
205
- "stateMutability": "view",
206
- "type": "function"
285
+ "name": "ErrorStakingNotStake",
286
+ "type": "error"
207
287
  },
208
288
  {
209
289
  "inputs": [],
210
- "name": "getVersion",
211
- "outputs": [
290
+ "name": "ErrorStakingNotStakingOwner",
291
+ "type": "error"
292
+ },
293
+ {
294
+ "inputs": [
212
295
  {
213
- "internalType": "Version",
214
- "name": "",
215
- "type": "uint24"
296
+ "internalType": "NftId",
297
+ "name": "targetNftId",
298
+ "type": "uint96"
216
299
  }
217
300
  ],
218
- "stateMutability": "pure",
219
- "type": "function"
301
+ "name": "ErrorStakingNotTarget",
302
+ "type": "error"
220
303
  },
221
304
  {
222
305
  "inputs": [
223
306
  {
224
- "internalType": "address",
225
- "name": "activatedBy",
226
- "type": "address"
307
+ "internalType": "NftId",
308
+ "name": "targetNftId",
309
+ "type": "uint96"
227
310
  },
228
311
  {
229
- "internalType": "bytes",
230
- "name": "activationData",
231
- "type": "bytes"
312
+ "internalType": "UFixed",
313
+ "name": "maxRewardRate",
314
+ "type": "uint160"
315
+ },
316
+ {
317
+ "internalType": "UFixed",
318
+ "name": "rewardRate",
319
+ "type": "uint160"
232
320
  }
233
321
  ],
234
- "name": "initializeVersionable",
235
- "outputs": [],
236
- "stateMutability": "nonpayable",
237
- "type": "function"
322
+ "name": "ErrorStakingRewardRateTooHigh",
323
+ "type": "error"
238
324
  },
239
325
  {
240
- "inputs": [],
241
- "name": "isConsumingScheduledOp",
242
- "outputs": [
326
+ "inputs": [
243
327
  {
244
- "internalType": "bytes4",
245
- "name": "",
246
- "type": "bytes4"
328
+ "internalType": "NftId",
329
+ "name": "targetNftId",
330
+ "type": "uint96"
247
331
  }
248
332
  ],
249
- "stateMutability": "view",
250
- "type": "function"
333
+ "name": "ErrorStakingStakeAmountZero",
334
+ "type": "error"
251
335
  },
252
336
  {
253
- "inputs": [],
254
- "name": "linkToRegisteredNftId",
255
- "outputs": [],
256
- "stateMutability": "nonpayable",
257
- "type": "function"
337
+ "inputs": [
338
+ {
339
+ "internalType": "NftId",
340
+ "name": "stakeNftId",
341
+ "type": "uint96"
342
+ },
343
+ {
344
+ "internalType": "Timestamp",
345
+ "name": "lockedUntil",
346
+ "type": "uint40"
347
+ }
348
+ ],
349
+ "name": "ErrorStakingStakeLocked",
350
+ "type": "error"
258
351
  },
259
352
  {
260
353
  "inputs": [
261
354
  {
262
355
  "internalType": "address",
263
- "name": "",
356
+ "name": "stakingByStakingReader",
264
357
  "type": "address"
265
358
  }
266
359
  ],
267
- "name": "setAuthority",
268
- "outputs": [],
269
- "stateMutability": "nonpayable",
270
- "type": "function"
360
+ "name": "ErrorStakingStakingReaderStakingMismatch",
361
+ "type": "error"
271
362
  },
272
363
  {
273
364
  "inputs": [
274
365
  {
275
- "internalType": "bytes4",
276
- "name": "interfaceId",
277
- "type": "bytes4"
366
+ "internalType": "NftId",
367
+ "name": "targetNftId",
368
+ "type": "uint96"
278
369
  }
279
370
  ],
280
- "name": "supportsInterface",
281
- "outputs": [
371
+ "name": "ErrorStakingTargetAlreadyRegistered",
372
+ "type": "error"
373
+ },
374
+ {
375
+ "inputs": [
282
376
  {
283
- "internalType": "bool",
284
- "name": "",
285
- "type": "bool"
377
+ "internalType": "NftId",
378
+ "name": "targetNftId",
379
+ "type": "uint96"
380
+ },
381
+ {
382
+ "internalType": "Amount",
383
+ "name": "maxStakedAmount",
384
+ "type": "uint96"
385
+ },
386
+ {
387
+ "internalType": "Amount",
388
+ "name": "stakedAmount",
389
+ "type": "uint96"
390
+ }
391
+ ],
392
+ "name": "ErrorStakingTargetMaxStakedAmountExceeded",
393
+ "type": "error"
394
+ },
395
+ {
396
+ "inputs": [],
397
+ "name": "ErrorStakingTargetNftIdZero",
398
+ "type": "error"
399
+ },
400
+ {
401
+ "inputs": [
402
+ {
403
+ "internalType": "NftId",
404
+ "name": "targetNftId",
405
+ "type": "uint96"
406
+ }
407
+ ],
408
+ "name": "ErrorStakingTargetNotFound",
409
+ "type": "error"
410
+ },
411
+ {
412
+ "inputs": [
413
+ {
414
+ "internalType": "NftId",
415
+ "name": "targetNftId",
416
+ "type": "uint96"
417
+ },
418
+ {
419
+ "internalType": "uint256",
420
+ "name": "chainId",
421
+ "type": "uint256"
422
+ },
423
+ {
424
+ "internalType": "address",
425
+ "name": "token",
426
+ "type": "address"
427
+ }
428
+ ],
429
+ "name": "ErrorStakingTargetTokenNotFound",
430
+ "type": "error"
431
+ },
432
+ {
433
+ "inputs": [
434
+ {
435
+ "internalType": "NftId",
436
+ "name": "targetNftId",
437
+ "type": "uint96"
438
+ },
439
+ {
440
+ "internalType": "ObjectType",
441
+ "name": "objectType",
442
+ "type": "uint8"
443
+ }
444
+ ],
445
+ "name": "ErrorStakingTargetTypeNotSupported",
446
+ "type": "error"
447
+ },
448
+ {
449
+ "inputs": [
450
+ {
451
+ "internalType": "NftId",
452
+ "name": "targetNftId",
453
+ "type": "uint96"
454
+ },
455
+ {
456
+ "internalType": "ObjectType",
457
+ "name": "expectedObjectType",
458
+ "type": "uint8"
459
+ },
460
+ {
461
+ "internalType": "ObjectType",
462
+ "name": "actualObjectType",
463
+ "type": "uint8"
464
+ }
465
+ ],
466
+ "name": "ErrorStakingTargetUnexpectedObjectType",
467
+ "type": "error"
468
+ },
469
+ {
470
+ "inputs": [
471
+ {
472
+ "internalType": "uint256",
473
+ "name": "chainId",
474
+ "type": "uint256"
475
+ },
476
+ {
477
+ "internalType": "address",
478
+ "name": "token",
479
+ "type": "address"
480
+ }
481
+ ],
482
+ "name": "ErrorStakingTokenNotRegistered",
483
+ "type": "error"
484
+ },
485
+ {
486
+ "anonymous": false,
487
+ "inputs": [
488
+ {
489
+ "indexed": false,
490
+ "internalType": "address",
491
+ "name": "authority",
492
+ "type": "address"
493
+ }
494
+ ],
495
+ "name": "AuthorityUpdated",
496
+ "type": "event"
497
+ },
498
+ {
499
+ "anonymous": false,
500
+ "inputs": [
501
+ {
502
+ "indexed": false,
503
+ "internalType": "address",
504
+ "name": "tokenHandler",
505
+ "type": "address"
506
+ },
507
+ {
508
+ "indexed": false,
509
+ "internalType": "address",
510
+ "name": "token",
511
+ "type": "address"
512
+ },
513
+ {
514
+ "indexed": false,
515
+ "internalType": "Amount",
516
+ "name": "limit",
517
+ "type": "uint96"
518
+ },
519
+ {
520
+ "indexed": false,
521
+ "internalType": "bool",
522
+ "name": "isMaxAmount",
523
+ "type": "bool"
524
+ }
525
+ ],
526
+ "name": "LogComponentTokenHandlerApproved",
527
+ "type": "event"
528
+ },
529
+ {
530
+ "anonymous": false,
531
+ "inputs": [
532
+ {
533
+ "indexed": false,
534
+ "internalType": "address",
535
+ "name": "oldWallet",
536
+ "type": "address"
537
+ },
538
+ {
539
+ "indexed": false,
540
+ "internalType": "address",
541
+ "name": "newWallet",
542
+ "type": "address"
543
+ }
544
+ ],
545
+ "name": "LogComponentWalletAddressChanged",
546
+ "type": "event"
547
+ },
548
+ {
549
+ "anonymous": false,
550
+ "inputs": [
551
+ {
552
+ "indexed": false,
553
+ "internalType": "address",
554
+ "name": "from",
555
+ "type": "address"
556
+ },
557
+ {
558
+ "indexed": false,
559
+ "internalType": "address",
560
+ "name": "to",
561
+ "type": "address"
562
+ },
563
+ {
564
+ "indexed": false,
565
+ "internalType": "uint256",
566
+ "name": "amount",
567
+ "type": "uint256"
568
+ }
569
+ ],
570
+ "name": "LogComponentWalletTokensTransferred",
571
+ "type": "event"
572
+ },
573
+ {
574
+ "anonymous": false,
575
+ "inputs": [
576
+ {
577
+ "indexed": false,
578
+ "internalType": "NftId",
579
+ "name": "targetNftId",
580
+ "type": "uint96"
581
+ },
582
+ {
583
+ "indexed": false,
584
+ "internalType": "Seconds",
585
+ "name": "oldLockingPeriod",
586
+ "type": "uint40"
587
+ },
588
+ {
589
+ "indexed": false,
590
+ "internalType": "Seconds",
591
+ "name": "lockingPeriod",
592
+ "type": "uint40"
593
+ }
594
+ ],
595
+ "name": "LogStakingLockingPeriodSet",
596
+ "type": "event"
597
+ },
598
+ {
599
+ "anonymous": false,
600
+ "inputs": [
601
+ {
602
+ "indexed": false,
603
+ "internalType": "NftId",
604
+ "name": "targetNftId",
605
+ "type": "uint96"
606
+ },
607
+ {
608
+ "indexed": false,
609
+ "internalType": "Amount",
610
+ "name": "maxStakedAmount",
611
+ "type": "uint96"
612
+ }
613
+ ],
614
+ "name": "LogStakingMaxStakedAmountSet",
615
+ "type": "event"
616
+ },
617
+ {
618
+ "anonymous": false,
619
+ "inputs": [
620
+ {
621
+ "indexed": false,
622
+ "internalType": "NftId",
623
+ "name": "targetNftId",
624
+ "type": "uint96"
625
+ },
626
+ {
627
+ "indexed": false,
628
+ "internalType": "UFixed",
629
+ "name": "oldRewardRate",
630
+ "type": "uint160"
631
+ },
632
+ {
633
+ "indexed": false,
634
+ "internalType": "UFixed",
635
+ "name": "rewardRate",
636
+ "type": "uint160"
637
+ }
638
+ ],
639
+ "name": "LogStakingRewardRateSet",
640
+ "type": "event"
641
+ },
642
+ {
643
+ "anonymous": false,
644
+ "inputs": [
645
+ {
646
+ "indexed": false,
647
+ "internalType": "uint256",
648
+ "name": "chainId",
649
+ "type": "uint256"
650
+ },
651
+ {
652
+ "indexed": false,
653
+ "internalType": "address",
654
+ "name": "token",
655
+ "type": "address"
656
+ },
657
+ {
658
+ "indexed": false,
659
+ "internalType": "UFixed",
660
+ "name": "oldStakingRate",
661
+ "type": "uint160"
662
+ },
663
+ {
664
+ "indexed": false,
665
+ "internalType": "UFixed",
666
+ "name": "newStakingRate",
667
+ "type": "uint160"
668
+ }
669
+ ],
670
+ "name": "LogStakingStakingRateSet",
671
+ "type": "event"
672
+ },
673
+ {
674
+ "inputs": [
675
+ {
676
+ "internalType": "contract IERC20Metadata",
677
+ "name": "token",
678
+ "type": "address"
679
+ },
680
+ {
681
+ "internalType": "Amount",
682
+ "name": "amount",
683
+ "type": "uint96"
684
+ }
685
+ ],
686
+ "name": "approveTokenHandler",
687
+ "outputs": [],
688
+ "stateMutability": "nonpayable",
689
+ "type": "function"
690
+ },
691
+ {
692
+ "inputs": [],
693
+ "name": "authority",
694
+ "outputs": [
695
+ {
696
+ "internalType": "address",
697
+ "name": "",
698
+ "type": "address"
699
+ }
700
+ ],
701
+ "stateMutability": "view",
702
+ "type": "function"
703
+ },
704
+ {
705
+ "inputs": [
706
+ {
707
+ "internalType": "NftId",
708
+ "name": "stakeNftId",
709
+ "type": "uint96"
710
+ }
711
+ ],
712
+ "name": "claimRewards",
713
+ "outputs": [
714
+ {
715
+ "internalType": "Amount",
716
+ "name": "rewardsClaimedAmount",
717
+ "type": "uint96"
718
+ }
719
+ ],
720
+ "stateMutability": "nonpayable",
721
+ "type": "function"
722
+ },
723
+ {
724
+ "inputs": [
725
+ {
726
+ "internalType": "NftId",
727
+ "name": "stakeNftId",
728
+ "type": "uint96"
729
+ },
730
+ {
731
+ "internalType": "NftId",
732
+ "name": "targetNftId",
733
+ "type": "uint96"
734
+ },
735
+ {
736
+ "internalType": "Amount",
737
+ "name": "dipAmount",
738
+ "type": "uint96"
739
+ }
740
+ ],
741
+ "name": "createStake",
742
+ "outputs": [],
743
+ "stateMutability": "nonpayable",
744
+ "type": "function"
745
+ },
746
+ {
747
+ "inputs": [
748
+ {
749
+ "internalType": "NftId",
750
+ "name": "targetNftId",
751
+ "type": "uint96"
752
+ },
753
+ {
754
+ "internalType": "address",
755
+ "name": "token",
756
+ "type": "address"
757
+ },
758
+ {
759
+ "internalType": "Amount",
760
+ "name": "amount",
761
+ "type": "uint96"
762
+ }
763
+ ],
764
+ "name": "decreaseTotalValueLocked",
765
+ "outputs": [
766
+ {
767
+ "internalType": "Amount",
768
+ "name": "newBalance",
769
+ "type": "uint96"
770
+ }
771
+ ],
772
+ "stateMutability": "nonpayable",
773
+ "type": "function"
774
+ },
775
+ {
776
+ "inputs": [],
777
+ "name": "getComponentInfo",
778
+ "outputs": [
779
+ {
780
+ "components": [
781
+ {
782
+ "internalType": "string",
783
+ "name": "name",
784
+ "type": "string"
785
+ },
786
+ {
787
+ "internalType": "contract TokenHandler",
788
+ "name": "tokenHandler",
789
+ "type": "address"
790
+ },
791
+ {
792
+ "internalType": "bytes",
793
+ "name": "data",
794
+ "type": "bytes"
795
+ }
796
+ ],
797
+ "internalType": "struct IComponents.ComponentInfo",
798
+ "name": "info",
799
+ "type": "tuple"
800
+ }
801
+ ],
802
+ "stateMutability": "view",
803
+ "type": "function"
804
+ },
805
+ {
806
+ "inputs": [],
807
+ "name": "getInitialComponentInfo",
808
+ "outputs": [
809
+ {
810
+ "components": [
811
+ {
812
+ "internalType": "string",
813
+ "name": "name",
814
+ "type": "string"
815
+ },
816
+ {
817
+ "internalType": "contract TokenHandler",
818
+ "name": "tokenHandler",
819
+ "type": "address"
820
+ },
821
+ {
822
+ "internalType": "bytes",
823
+ "name": "data",
824
+ "type": "bytes"
825
+ }
826
+ ],
827
+ "internalType": "struct IComponents.ComponentInfo",
828
+ "name": "info",
829
+ "type": "tuple"
830
+ }
831
+ ],
832
+ "stateMutability": "view",
833
+ "type": "function"
834
+ },
835
+ {
836
+ "inputs": [],
837
+ "name": "getInitialInfo",
838
+ "outputs": [
839
+ {
840
+ "components": [
841
+ {
842
+ "internalType": "NftId",
843
+ "name": "nftId",
844
+ "type": "uint96"
845
+ },
846
+ {
847
+ "internalType": "NftId",
848
+ "name": "parentNftId",
849
+ "type": "uint96"
850
+ },
851
+ {
852
+ "internalType": "ObjectType",
853
+ "name": "objectType",
854
+ "type": "uint8"
855
+ },
856
+ {
857
+ "internalType": "bool",
858
+ "name": "isInterceptor",
859
+ "type": "bool"
860
+ },
861
+ {
862
+ "internalType": "address",
863
+ "name": "objectAddress",
864
+ "type": "address"
865
+ },
866
+ {
867
+ "internalType": "address",
868
+ "name": "initialOwner",
869
+ "type": "address"
870
+ },
871
+ {
872
+ "internalType": "bytes",
873
+ "name": "data",
874
+ "type": "bytes"
875
+ }
876
+ ],
877
+ "internalType": "struct IRegistry.ObjectInfo",
878
+ "name": "",
879
+ "type": "tuple"
880
+ }
881
+ ],
882
+ "stateMutability": "view",
883
+ "type": "function"
884
+ },
885
+ {
886
+ "inputs": [],
887
+ "name": "getName",
888
+ "outputs": [
889
+ {
890
+ "internalType": "string",
891
+ "name": "name",
892
+ "type": "string"
893
+ }
894
+ ],
895
+ "stateMutability": "view",
896
+ "type": "function"
897
+ },
898
+ {
899
+ "inputs": [],
900
+ "name": "getNftId",
901
+ "outputs": [
902
+ {
903
+ "internalType": "NftId",
904
+ "name": "",
905
+ "type": "uint96"
906
+ }
907
+ ],
908
+ "stateMutability": "view",
909
+ "type": "function"
910
+ },
911
+ {
912
+ "inputs": [],
913
+ "name": "getOwner",
914
+ "outputs": [
915
+ {
916
+ "internalType": "address",
917
+ "name": "",
918
+ "type": "address"
919
+ }
920
+ ],
921
+ "stateMutability": "view",
922
+ "type": "function"
923
+ },
924
+ {
925
+ "inputs": [],
926
+ "name": "getRegistry",
927
+ "outputs": [
928
+ {
929
+ "internalType": "contract IRegistry",
930
+ "name": "",
931
+ "type": "address"
932
+ }
933
+ ],
934
+ "stateMutability": "view",
935
+ "type": "function"
936
+ },
937
+ {
938
+ "inputs": [],
939
+ "name": "getRelease",
940
+ "outputs": [
941
+ {
942
+ "internalType": "VersionPart",
943
+ "name": "release",
944
+ "type": "uint8"
945
+ }
946
+ ],
947
+ "stateMutability": "view",
948
+ "type": "function"
949
+ },
950
+ {
951
+ "inputs": [],
952
+ "name": "getStakingReader",
953
+ "outputs": [
954
+ {
955
+ "internalType": "contract StakingReader",
956
+ "name": "reader",
957
+ "type": "address"
958
+ }
959
+ ],
960
+ "stateMutability": "view",
961
+ "type": "function"
962
+ },
963
+ {
964
+ "inputs": [],
965
+ "name": "getStakingStore",
966
+ "outputs": [
967
+ {
968
+ "internalType": "contract StakingStore",
969
+ "name": "stakingStore",
970
+ "type": "address"
971
+ }
972
+ ],
973
+ "stateMutability": "view",
974
+ "type": "function"
975
+ },
976
+ {
977
+ "inputs": [],
978
+ "name": "getToken",
979
+ "outputs": [
980
+ {
981
+ "internalType": "contract IERC20Metadata",
982
+ "name": "token",
983
+ "type": "address"
984
+ }
985
+ ],
986
+ "stateMutability": "view",
987
+ "type": "function"
988
+ },
989
+ {
990
+ "inputs": [],
991
+ "name": "getTokenHandler",
992
+ "outputs": [
993
+ {
994
+ "internalType": "contract TokenHandler",
995
+ "name": "tokenHandler",
996
+ "type": "address"
997
+ }
998
+ ],
999
+ "stateMutability": "view",
1000
+ "type": "function"
1001
+ },
1002
+ {
1003
+ "inputs": [],
1004
+ "name": "getVersion",
1005
+ "outputs": [
1006
+ {
1007
+ "internalType": "Version",
1008
+ "name": "",
1009
+ "type": "uint24"
1010
+ }
1011
+ ],
1012
+ "stateMutability": "pure",
1013
+ "type": "function"
1014
+ },
1015
+ {
1016
+ "inputs": [],
1017
+ "name": "getWallet",
1018
+ "outputs": [
1019
+ {
1020
+ "internalType": "address",
1021
+ "name": "walletAddress",
1022
+ "type": "address"
1023
+ }
1024
+ ],
1025
+ "stateMutability": "view",
1026
+ "type": "function"
1027
+ },
1028
+ {
1029
+ "inputs": [
1030
+ {
1031
+ "internalType": "NftId",
1032
+ "name": "targetNftId",
1033
+ "type": "uint96"
1034
+ },
1035
+ {
1036
+ "internalType": "address",
1037
+ "name": "token",
1038
+ "type": "address"
1039
+ },
1040
+ {
1041
+ "internalType": "Amount",
1042
+ "name": "amount",
1043
+ "type": "uint96"
1044
+ }
1045
+ ],
1046
+ "name": "increaseTotalValueLocked",
1047
+ "outputs": [
1048
+ {
1049
+ "internalType": "Amount",
1050
+ "name": "newBalance",
1051
+ "type": "uint96"
1052
+ }
1053
+ ],
1054
+ "stateMutability": "nonpayable",
1055
+ "type": "function"
1056
+ },
1057
+ {
1058
+ "inputs": [],
1059
+ "name": "initializeTokenHandler",
1060
+ "outputs": [],
1061
+ "stateMutability": "nonpayable",
1062
+ "type": "function"
1063
+ },
1064
+ {
1065
+ "inputs": [
1066
+ {
1067
+ "internalType": "address",
1068
+ "name": "activatedBy",
1069
+ "type": "address"
1070
+ },
1071
+ {
1072
+ "internalType": "bytes",
1073
+ "name": "activationData",
1074
+ "type": "bytes"
1075
+ }
1076
+ ],
1077
+ "name": "initializeVersionable",
1078
+ "outputs": [],
1079
+ "stateMutability": "nonpayable",
1080
+ "type": "function"
1081
+ },
1082
+ {
1083
+ "inputs": [],
1084
+ "name": "isActive",
1085
+ "outputs": [
1086
+ {
1087
+ "internalType": "bool",
1088
+ "name": "active",
1089
+ "type": "bool"
1090
+ }
1091
+ ],
1092
+ "stateMutability": "view",
1093
+ "type": "function"
1094
+ },
1095
+ {
1096
+ "inputs": [],
1097
+ "name": "isConsumingScheduledOp",
1098
+ "outputs": [
1099
+ {
1100
+ "internalType": "bytes4",
1101
+ "name": "",
1102
+ "type": "bytes4"
1103
+ }
1104
+ ],
1105
+ "stateMutability": "view",
1106
+ "type": "function"
1107
+ },
1108
+ {
1109
+ "inputs": [],
1110
+ "name": "isNftInterceptor",
1111
+ "outputs": [
1112
+ {
1113
+ "internalType": "bool",
1114
+ "name": "isInterceptor",
1115
+ "type": "bool"
1116
+ }
1117
+ ],
1118
+ "stateMutability": "view",
1119
+ "type": "function"
1120
+ },
1121
+ {
1122
+ "inputs": [],
1123
+ "name": "isRegistered",
1124
+ "outputs": [
1125
+ {
1126
+ "internalType": "bool",
1127
+ "name": "",
1128
+ "type": "bool"
1129
+ }
1130
+ ],
1131
+ "stateMutability": "view",
1132
+ "type": "function"
1133
+ },
1134
+ {
1135
+ "inputs": [],
1136
+ "name": "linkToRegisteredNftId",
1137
+ "outputs": [
1138
+ {
1139
+ "internalType": "NftId",
1140
+ "name": "",
1141
+ "type": "uint96"
1142
+ }
1143
+ ],
1144
+ "stateMutability": "nonpayable",
1145
+ "type": "function"
1146
+ },
1147
+ {
1148
+ "inputs": [
1149
+ {
1150
+ "internalType": "address",
1151
+ "name": "from",
1152
+ "type": "address"
1153
+ },
1154
+ {
1155
+ "internalType": "address",
1156
+ "name": "to",
1157
+ "type": "address"
1158
+ },
1159
+ {
1160
+ "internalType": "uint256",
1161
+ "name": "tokenId",
1162
+ "type": "uint256"
1163
+ },
1164
+ {
1165
+ "internalType": "address",
1166
+ "name": "operator",
1167
+ "type": "address"
1168
+ }
1169
+ ],
1170
+ "name": "nftTransferFrom",
1171
+ "outputs": [],
1172
+ "stateMutability": "nonpayable",
1173
+ "type": "function"
1174
+ },
1175
+ {
1176
+ "inputs": [
1177
+ {
1178
+ "internalType": "NftId",
1179
+ "name": "targetNftId",
1180
+ "type": "uint96"
1181
+ },
1182
+ {
1183
+ "internalType": "Amount",
1184
+ "name": "dipAmount",
1185
+ "type": "uint96"
1186
+ }
1187
+ ],
1188
+ "name": "refillRewardReserves",
1189
+ "outputs": [
1190
+ {
1191
+ "internalType": "Amount",
1192
+ "name": "newBalance",
1193
+ "type": "uint96"
1194
+ }
1195
+ ],
1196
+ "stateMutability": "nonpayable",
1197
+ "type": "function"
1198
+ },
1199
+ {
1200
+ "inputs": [
1201
+ {
1202
+ "internalType": "NftId",
1203
+ "name": "targetNftId",
1204
+ "type": "uint96"
1205
+ },
1206
+ {
1207
+ "internalType": "ObjectType",
1208
+ "name": "expectedObjectType",
1209
+ "type": "uint8"
1210
+ },
1211
+ {
1212
+ "internalType": "uint256",
1213
+ "name": "chainId",
1214
+ "type": "uint256"
1215
+ },
1216
+ {
1217
+ "internalType": "Seconds",
1218
+ "name": "initialLockingPeriod",
1219
+ "type": "uint40"
1220
+ },
1221
+ {
1222
+ "internalType": "UFixed",
1223
+ "name": "initialRewardRate",
1224
+ "type": "uint160"
1225
+ }
1226
+ ],
1227
+ "name": "registerTarget",
1228
+ "outputs": [],
1229
+ "stateMutability": "nonpayable",
1230
+ "type": "function"
1231
+ },
1232
+ {
1233
+ "inputs": [
1234
+ {
1235
+ "internalType": "NftId",
1236
+ "name": "stakeNftId",
1237
+ "type": "uint96"
1238
+ },
1239
+ {
1240
+ "internalType": "NftId",
1241
+ "name": "newStakeNftId",
1242
+ "type": "uint96"
1243
+ }
1244
+ ],
1245
+ "name": "restake",
1246
+ "outputs": [
1247
+ {
1248
+ "internalType": "Amount",
1249
+ "name": "newStakeBalance",
1250
+ "type": "uint96"
1251
+ }
1252
+ ],
1253
+ "stateMutability": "nonpayable",
1254
+ "type": "function"
1255
+ },
1256
+ {
1257
+ "inputs": [
1258
+ {
1259
+ "internalType": "address",
1260
+ "name": "",
1261
+ "type": "address"
1262
+ }
1263
+ ],
1264
+ "name": "setAuthority",
1265
+ "outputs": [],
1266
+ "stateMutability": "nonpayable",
1267
+ "type": "function"
1268
+ },
1269
+ {
1270
+ "inputs": [
1271
+ {
1272
+ "internalType": "NftId",
1273
+ "name": "targetNftId",
1274
+ "type": "uint96"
1275
+ },
1276
+ {
1277
+ "internalType": "Seconds",
1278
+ "name": "lockingPeriod",
1279
+ "type": "uint40"
1280
+ }
1281
+ ],
1282
+ "name": "setLockingPeriod",
1283
+ "outputs": [],
1284
+ "stateMutability": "nonpayable",
1285
+ "type": "function"
1286
+ },
1287
+ {
1288
+ "inputs": [
1289
+ {
1290
+ "internalType": "NftId",
1291
+ "name": "targetNftId",
1292
+ "type": "uint96"
1293
+ },
1294
+ {
1295
+ "internalType": "Amount",
1296
+ "name": "maxStakedAmount",
1297
+ "type": "uint96"
1298
+ }
1299
+ ],
1300
+ "name": "setMaxStakedAmount",
1301
+ "outputs": [],
1302
+ "stateMutability": "nonpayable",
1303
+ "type": "function"
1304
+ },
1305
+ {
1306
+ "inputs": [
1307
+ {
1308
+ "internalType": "NftId",
1309
+ "name": "targetNftId",
1310
+ "type": "uint96"
1311
+ },
1312
+ {
1313
+ "internalType": "UFixed",
1314
+ "name": "rewardRate",
1315
+ "type": "uint160"
1316
+ }
1317
+ ],
1318
+ "name": "setRewardRate",
1319
+ "outputs": [],
1320
+ "stateMutability": "nonpayable",
1321
+ "type": "function"
1322
+ },
1323
+ {
1324
+ "inputs": [
1325
+ {
1326
+ "internalType": "uint256",
1327
+ "name": "chainId",
1328
+ "type": "uint256"
1329
+ },
1330
+ {
1331
+ "internalType": "address",
1332
+ "name": "token",
1333
+ "type": "address"
1334
+ },
1335
+ {
1336
+ "internalType": "UFixed",
1337
+ "name": "stakingRate",
1338
+ "type": "uint160"
1339
+ }
1340
+ ],
1341
+ "name": "setStakingRate",
1342
+ "outputs": [],
1343
+ "stateMutability": "nonpayable",
1344
+ "type": "function"
1345
+ },
1346
+ {
1347
+ "inputs": [
1348
+ {
1349
+ "internalType": "NftId",
1350
+ "name": "stakeNftId",
1351
+ "type": "uint96"
1352
+ },
1353
+ {
1354
+ "internalType": "Amount",
1355
+ "name": "dipAmount",
1356
+ "type": "uint96"
1357
+ }
1358
+ ],
1359
+ "name": "stake",
1360
+ "outputs": [
1361
+ {
1362
+ "internalType": "Amount",
1363
+ "name": "stakeBalance",
1364
+ "type": "uint96"
1365
+ }
1366
+ ],
1367
+ "stateMutability": "nonpayable",
1368
+ "type": "function"
1369
+ },
1370
+ {
1371
+ "inputs": [
1372
+ {
1373
+ "internalType": "bytes4",
1374
+ "name": "interfaceId",
1375
+ "type": "bytes4"
1376
+ }
1377
+ ],
1378
+ "name": "supportsInterface",
1379
+ "outputs": [
1380
+ {
1381
+ "internalType": "bool",
1382
+ "name": "",
1383
+ "type": "bool"
286
1384
  }
287
1385
  ],
288
1386
  "stateMutability": "view",
289
1387
  "type": "function"
290
1388
  },
1389
+ {
1390
+ "inputs": [
1391
+ {
1392
+ "internalType": "NftId",
1393
+ "name": "stakeNftId",
1394
+ "type": "uint96"
1395
+ }
1396
+ ],
1397
+ "name": "unstake",
1398
+ "outputs": [
1399
+ {
1400
+ "internalType": "Amount",
1401
+ "name": "unstakedAmount",
1402
+ "type": "uint96"
1403
+ },
1404
+ {
1405
+ "internalType": "Amount",
1406
+ "name": "rewardsClaimedAmount",
1407
+ "type": "uint96"
1408
+ }
1409
+ ],
1410
+ "stateMutability": "nonpayable",
1411
+ "type": "function"
1412
+ },
1413
+ {
1414
+ "inputs": [
1415
+ {
1416
+ "internalType": "NftId",
1417
+ "name": "targetNftId",
1418
+ "type": "uint96"
1419
+ },
1420
+ {
1421
+ "internalType": "address",
1422
+ "name": "token",
1423
+ "type": "address"
1424
+ },
1425
+ {
1426
+ "internalType": "Amount",
1427
+ "name": "amount",
1428
+ "type": "uint96"
1429
+ }
1430
+ ],
1431
+ "name": "updateRemoteTvl",
1432
+ "outputs": [],
1433
+ "stateMutability": "nonpayable",
1434
+ "type": "function"
1435
+ },
1436
+ {
1437
+ "inputs": [
1438
+ {
1439
+ "internalType": "NftId",
1440
+ "name": "stakeNftId",
1441
+ "type": "uint96"
1442
+ }
1443
+ ],
1444
+ "name": "updateRewards",
1445
+ "outputs": [],
1446
+ "stateMutability": "nonpayable",
1447
+ "type": "function"
1448
+ },
291
1449
  {
292
1450
  "inputs": [
293
1451
  {
@@ -300,6 +1458,30 @@
300
1458
  "outputs": [],
301
1459
  "stateMutability": "nonpayable",
302
1460
  "type": "function"
1461
+ },
1462
+ {
1463
+ "inputs": [
1464
+ {
1465
+ "internalType": "NftId",
1466
+ "name": "targetNftId",
1467
+ "type": "uint96"
1468
+ },
1469
+ {
1470
+ "internalType": "Amount",
1471
+ "name": "dipAmount",
1472
+ "type": "uint96"
1473
+ }
1474
+ ],
1475
+ "name": "withdrawRewardReserves",
1476
+ "outputs": [
1477
+ {
1478
+ "internalType": "Amount",
1479
+ "name": "newBalance",
1480
+ "type": "uint96"
1481
+ }
1482
+ ],
1483
+ "stateMutability": "nonpayable",
1484
+ "type": "function"
303
1485
  }
304
1486
  ],
305
1487
  "bytecode": "0x",