@etherisc/gif-next 0.0.2-e79d227-681 → 0.0.2-e7a5428-226

Sign up to get free protection for your applications and to get access to all the features.
Files changed (504) hide show
  1. package/README.md +57 -1
  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 +1 -1
  9. package/artifacts/contracts/authorization/AccessAdmin.sol/AccessAdmin.json +640 -269
  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 +1 -1
  13. package/artifacts/contracts/authorization/AccessManagerCloneable.sol/AccessManagerCloneable.json +202 -5
  14. package/artifacts/contracts/authorization/Authorization.sol/Authorization.dbg.json +1 -1
  15. package/artifacts/contracts/authorization/Authorization.sol/Authorization.json +409 -33
  16. package/artifacts/contracts/authorization/IAccess.sol/IAccess.dbg.json +1 -1
  17. package/artifacts/contracts/authorization/IAccessAdmin.sol/IAccessAdmin.dbg.json +1 -1
  18. package/artifacts/contracts/authorization/IAccessAdmin.sol/IAccessAdmin.json +525 -213
  19. package/artifacts/contracts/authorization/IAuthorization.sol/IAuthorization.dbg.json +1 -1
  20. package/artifacts/contracts/authorization/IAuthorization.sol/IAuthorization.json +179 -19
  21. package/artifacts/contracts/authorization/IServiceAuthorization.sol/IServiceAuthorization.dbg.json +1 -1
  22. package/artifacts/contracts/authorization/IServiceAuthorization.sol/IServiceAuthorization.json +246 -16
  23. package/artifacts/contracts/authorization/ServiceAuthorization.sol/ServiceAuthorization.dbg.json +1 -1
  24. package/artifacts/contracts/authorization/ServiceAuthorization.sol/ServiceAuthorization.json +420 -27
  25. package/artifacts/contracts/distribution/BasicDistribution.sol/BasicDistribution.dbg.json +1 -1
  26. package/artifacts/contracts/distribution/BasicDistribution.sol/BasicDistribution.json +105 -185
  27. package/artifacts/contracts/distribution/BasicDistributionAuthorization.sol/BasicDistributionAuthorization.dbg.json +1 -1
  28. package/artifacts/contracts/distribution/BasicDistributionAuthorization.sol/BasicDistributionAuthorization.json +381 -46
  29. package/artifacts/contracts/distribution/Distribution.sol/Distribution.dbg.json +1 -1
  30. package/artifacts/contracts/distribution/Distribution.sol/Distribution.json +58 -127
  31. package/artifacts/contracts/distribution/DistributionService.sol/DistributionService.dbg.json +1 -1
  32. package/artifacts/contracts/distribution/DistributionService.sol/DistributionService.json +533 -218
  33. package/artifacts/contracts/distribution/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
  34. package/artifacts/contracts/distribution/DistributionServiceManager.sol/DistributionServiceManager.json +150 -82
  35. package/artifacts/contracts/distribution/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
  36. package/artifacts/contracts/distribution/IDistributionComponent.sol/IDistributionComponent.json +37 -106
  37. package/artifacts/contracts/distribution/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  38. package/artifacts/contracts/distribution/IDistributionService.sol/IDistributionService.json +379 -79
  39. package/artifacts/contracts/examples/fire/DamageLevel.sol/DamageLevelLib.dbg.json +1 -1
  40. package/artifacts/contracts/examples/fire/FirePool.sol/FirePool.dbg.json +1 -1
  41. package/artifacts/contracts/examples/fire/FirePool.sol/FirePool.json +183 -128
  42. package/artifacts/contracts/examples/fire/FirePoolAuthorization.sol/FirePoolAuthorization.dbg.json +1 -1
  43. package/artifacts/contracts/examples/fire/FirePoolAuthorization.sol/FirePoolAuthorization.json +355 -52
  44. package/artifacts/contracts/examples/fire/FireProduct.sol/FireProduct.dbg.json +1 -1
  45. package/artifacts/contracts/examples/fire/FireProduct.sol/FireProduct.json +324 -250
  46. package/artifacts/contracts/examples/fire/FireProductAuthorization.sol/FireProductAuthorization.dbg.json +1 -1
  47. package/artifacts/contracts/examples/fire/FireProductAuthorization.sol/FireProductAuthorization.json +380 -45
  48. package/artifacts/contracts/examples/fire/FireUSD.sol/FireUSD.dbg.json +1 -1
  49. package/artifacts/contracts/examples/unpermissioned/SimpleDistribution.sol/SimpleDistribution.dbg.json +1 -1
  50. package/artifacts/contracts/examples/unpermissioned/SimpleDistribution.sol/SimpleDistribution.json +191 -182
  51. package/artifacts/contracts/examples/unpermissioned/SimpleDistributionAuthorization.sol/SimpleDistributionAuthorization.dbg.json +4 -0
  52. package/artifacts/contracts/examples/unpermissioned/SimpleDistributionAuthorization.sol/SimpleDistributionAuthorization.json +805 -0
  53. package/artifacts/contracts/examples/unpermissioned/SimpleOracle.sol/SimpleOracle.dbg.json +1 -1
  54. package/artifacts/contracts/examples/unpermissioned/SimpleOracle.sol/SimpleOracle.json +94 -100
  55. package/artifacts/contracts/examples/unpermissioned/SimplePool.sol/SimplePool.dbg.json +1 -1
  56. package/artifacts/contracts/examples/unpermissioned/SimplePool.sol/SimplePool.json +196 -155
  57. package/artifacts/contracts/examples/unpermissioned/SimplePoolAuthorization.sol/SimplePoolAuthorization.dbg.json +4 -0
  58. package/artifacts/contracts/examples/unpermissioned/SimplePoolAuthorization.sol/SimplePoolAuthorization.json +805 -0
  59. package/artifacts/contracts/examples/unpermissioned/SimpleProduct.sol/SimpleProduct.dbg.json +1 -1
  60. package/artifacts/contracts/examples/unpermissioned/SimpleProduct.sol/SimpleProduct.json +600 -296
  61. package/artifacts/contracts/examples/unpermissioned/SimpleProductAuthorization.sol/SimpleProductAuthorization.dbg.json +4 -0
  62. package/artifacts/contracts/examples/unpermissioned/SimpleProductAuthorization.sol/SimpleProductAuthorization.json +805 -0
  63. package/artifacts/contracts/instance/BundleSet.sol/BundleSet.dbg.json +1 -1
  64. package/artifacts/contracts/instance/BundleSet.sol/BundleSet.json +88 -45
  65. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  66. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +482 -50
  67. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  68. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +373 -13
  69. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  70. package/artifacts/contracts/instance/Instance.sol/Instance.json +493 -85
  71. package/artifacts/contracts/instance/InstanceAdmin.sol/InstanceAdmin.dbg.json +1 -1
  72. package/artifacts/contracts/instance/InstanceAdmin.sol/InstanceAdmin.json +1017 -334
  73. package/artifacts/contracts/instance/InstanceAuthorizationV3.sol/InstanceAuthorizationV3.dbg.json +1 -1
  74. package/artifacts/contracts/instance/InstanceAuthorizationV3.sol/InstanceAuthorizationV3.json +380 -52
  75. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
  76. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +914 -554
  77. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  78. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +377 -80
  79. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  80. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +83 -57
  81. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.dbg.json +1 -1
  82. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.json +690 -566
  83. package/artifacts/contracts/instance/RiskSet.sol/RiskSet.dbg.json +1 -1
  84. package/artifacts/contracts/instance/RiskSet.sol/RiskSet.json +141 -85
  85. package/artifacts/contracts/instance/base/BalanceStore.sol/BalanceStore.dbg.json +1 -1
  86. package/artifacts/contracts/instance/base/BalanceStore.sol/BalanceStore.json +8 -8
  87. package/artifacts/contracts/instance/base/Cloneable.sol/Cloneable.dbg.json +1 -1
  88. package/artifacts/contracts/instance/base/ObjectCounter.sol/ObjectCounter.dbg.json +1 -1
  89. package/artifacts/contracts/instance/base/ObjectCounter.sol/ObjectCounter.json +2 -2
  90. package/artifacts/contracts/instance/base/ObjectLifecycle.sol/ObjectLifecycle.dbg.json +1 -1
  91. package/artifacts/contracts/instance/base/ObjectLifecycle.sol/ObjectLifecycle.json +2 -2
  92. package/artifacts/contracts/instance/base/ObjectSet.sol/ObjectSet.dbg.json +1 -1
  93. package/artifacts/contracts/instance/base/ObjectSet.sol/ObjectSet.json +16 -5
  94. package/artifacts/contracts/instance/base/ObjectSetHelperLib.sol/ObjectSetHelperLib.dbg.json +4 -0
  95. package/artifacts/contracts/instance/base/ObjectSetHelperLib.sol/ObjectSetHelperLib.json +168 -0
  96. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
  97. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +1 -1
  98. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
  99. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  100. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  101. package/artifacts/contracts/mock/Dip.sol/Dip.dbg.json +1 -1
  102. package/artifacts/contracts/oracle/BasicOracle.sol/BasicOracle.dbg.json +1 -1
  103. package/artifacts/contracts/oracle/BasicOracle.sol/BasicOracle.json +77 -81
  104. package/artifacts/contracts/oracle/BasicOracleAuthorization.sol/BasicOracleAuthorization.dbg.json +1 -1
  105. package/artifacts/contracts/oracle/BasicOracleAuthorization.sol/BasicOracleAuthorization.json +379 -47
  106. package/artifacts/contracts/oracle/IOracle.sol/IOracle.dbg.json +1 -1
  107. package/artifacts/contracts/oracle/IOracleComponent.sol/IOracleComponent.dbg.json +1 -1
  108. package/artifacts/contracts/oracle/IOracleComponent.sol/IOracleComponent.json +41 -45
  109. package/artifacts/contracts/oracle/IOracleService.sol/IOracleService.dbg.json +1 -1
  110. package/artifacts/contracts/oracle/IOracleService.sol/IOracleService.json +56 -3
  111. package/artifacts/contracts/oracle/Oracle.sol/Oracle.dbg.json +1 -1
  112. package/artifacts/contracts/oracle/Oracle.sol/Oracle.json +61 -65
  113. package/artifacts/contracts/oracle/OracleService.sol/OracleService.dbg.json +1 -1
  114. package/artifacts/contracts/oracle/OracleService.sol/OracleService.json +120 -68
  115. package/artifacts/contracts/oracle/OracleServiceManager.sol/OracleServiceManager.dbg.json +1 -1
  116. package/artifacts/contracts/oracle/OracleServiceManager.sol/OracleServiceManager.json +99 -55
  117. package/artifacts/contracts/pool/BasicPool.sol/BasicPool.dbg.json +1 -1
  118. package/artifacts/contracts/pool/BasicPool.sol/BasicPool.json +102 -114
  119. package/artifacts/contracts/pool/BasicPoolAuthorization.sol/BasicPoolAuthorization.dbg.json +1 -1
  120. package/artifacts/contracts/pool/BasicPoolAuthorization.sol/BasicPoolAuthorization.json +355 -52
  121. package/artifacts/contracts/pool/BundleService.sol/BundleService.dbg.json +1 -1
  122. package/artifacts/contracts/pool/BundleService.sol/BundleService.json +304 -226
  123. package/artifacts/contracts/pool/BundleServiceManager.sol/BundleServiceManager.dbg.json +1 -1
  124. package/artifacts/contracts/pool/BundleServiceManager.sol/BundleServiceManager.json +120 -76
  125. package/artifacts/contracts/pool/IBundleService.sol/IBundleService.dbg.json +1 -1
  126. package/artifacts/contracts/pool/IBundleService.sol/IBundleService.json +200 -89
  127. package/artifacts/contracts/pool/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  128. package/artifacts/contracts/pool/IPoolComponent.sol/IPoolComponent.json +59 -63
  129. package/artifacts/contracts/pool/IPoolService.sol/IPoolService.dbg.json +1 -1
  130. package/artifacts/contracts/pool/IPoolService.sol/IPoolService.json +333 -169
  131. package/artifacts/contracts/pool/Pool.sol/Pool.dbg.json +1 -1
  132. package/artifacts/contracts/pool/Pool.sol/Pool.json +72 -76
  133. package/artifacts/contracts/pool/PoolLib.sol/PoolLib.dbg.json +4 -0
  134. package/artifacts/contracts/pool/PoolLib.sol/PoolLib.json +522 -0
  135. package/artifacts/contracts/pool/PoolService.sol/PoolService.dbg.json +1 -1
  136. package/artifacts/contracts/pool/PoolService.sol/PoolService.json +574 -360
  137. package/artifacts/contracts/pool/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
  138. package/artifacts/contracts/pool/PoolServiceManager.sol/PoolServiceManager.json +146 -74
  139. package/artifacts/contracts/product/ApplicationService.sol/ApplicationService.dbg.json +1 -1
  140. package/artifacts/contracts/product/ApplicationService.sol/ApplicationService.json +293 -63
  141. package/artifacts/contracts/product/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +1 -1
  142. package/artifacts/contracts/product/ApplicationServiceManager.sol/ApplicationServiceManager.json +106 -46
  143. package/artifacts/contracts/product/BasicProduct.sol/BasicProduct.dbg.json +1 -1
  144. package/artifacts/contracts/product/BasicProduct.sol/BasicProduct.json +193 -182
  145. package/artifacts/contracts/product/BasicProductAuthorization.sol/BasicProductAuthorization.dbg.json +1 -1
  146. package/artifacts/contracts/product/BasicProductAuthorization.sol/BasicProductAuthorization.json +380 -45
  147. package/artifacts/contracts/product/ClaimService.sol/ClaimService.dbg.json +1 -1
  148. package/artifacts/contracts/product/ClaimService.sol/ClaimService.json +292 -195
  149. package/artifacts/contracts/product/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +1 -1
  150. package/artifacts/contracts/product/ClaimServiceManager.sol/ClaimServiceManager.json +127 -99
  151. package/artifacts/contracts/product/IApplicationService.sol/IApplicationService.dbg.json +1 -1
  152. package/artifacts/contracts/product/IApplicationService.sol/IApplicationService.json +235 -4
  153. package/artifacts/contracts/product/IClaimService.sol/IClaimService.dbg.json +1 -1
  154. package/artifacts/contracts/product/IClaimService.sol/IClaimService.json +181 -19
  155. package/artifacts/contracts/product/IPolicyService.sol/IPolicyService.dbg.json +1 -1
  156. package/artifacts/contracts/product/IPolicyService.sol/IPolicyService.json +160 -68
  157. package/artifacts/contracts/product/IPricingService.sol/IPricingService.dbg.json +1 -1
  158. package/artifacts/contracts/product/IPricingService.sol/IPricingService.json +77 -3
  159. package/artifacts/contracts/product/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  160. package/artifacts/contracts/product/IProductComponent.sol/IProductComponent.json +168 -157
  161. package/artifacts/contracts/product/IRiskService.sol/IRiskService.dbg.json +1 -1
  162. package/artifacts/contracts/product/IRiskService.sol/IRiskService.json +258 -22
  163. package/artifacts/contracts/product/PolicyService.sol/PolicyService.dbg.json +1 -1
  164. package/artifacts/contracts/product/PolicyService.sol/PolicyService.json +278 -187
  165. package/artifacts/contracts/product/PolicyServiceLib.sol/PolicyServiceLib.dbg.json +4 -0
  166. package/artifacts/contracts/product/PolicyServiceLib.sol/PolicyServiceLib.json +783 -0
  167. package/artifacts/contracts/product/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +1 -1
  168. package/artifacts/contracts/product/PolicyServiceManager.sol/PolicyServiceManager.json +129 -85
  169. package/artifacts/contracts/product/PricingService.sol/PricingService.dbg.json +1 -1
  170. package/artifacts/contracts/product/PricingService.sol/PricingService.json +135 -126
  171. package/artifacts/contracts/product/PricingServiceManager.sol/PricingServiceManager.dbg.json +1 -1
  172. package/artifacts/contracts/product/PricingServiceManager.sol/PricingServiceManager.json +103 -75
  173. package/artifacts/contracts/product/Product.sol/Product.dbg.json +1 -1
  174. package/artifacts/contracts/product/Product.sol/Product.json +187 -176
  175. package/artifacts/contracts/product/RiskService.sol/RiskService.dbg.json +1 -1
  176. package/artifacts/contracts/product/RiskService.sol/RiskService.json +326 -91
  177. package/artifacts/contracts/product/RiskServiceManager.sol/RiskServiceManager.dbg.json +1 -1
  178. package/artifacts/contracts/product/RiskServiceManager.sol/RiskServiceManager.json +103 -47
  179. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  180. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +2 -2
  181. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  182. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +54 -19
  183. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  184. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +56 -3
  185. package/artifacts/contracts/registry/IRelease.sol/IRelease.dbg.json +4 -0
  186. package/artifacts/contracts/{authorization/AccessAdmin.sol/IAccessManagedChecker.json → registry/IRelease.sol/IRelease.json} +6 -6
  187. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  188. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  189. package/artifacts/contracts/registry/Registry.sol/Registry.json +92 -57
  190. package/artifacts/contracts/registry/RegistryAdmin.sol/RegistryAdmin.dbg.json +1 -1
  191. package/artifacts/contracts/registry/RegistryAdmin.sol/RegistryAdmin.json +727 -479
  192. package/artifacts/contracts/registry/RegistryAuthorization.sol/RegistryAuthorization.dbg.json +4 -0
  193. package/artifacts/contracts/registry/RegistryAuthorization.sol/RegistryAuthorization.json +1061 -0
  194. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  195. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +75 -39
  196. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  197. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +79 -43
  198. package/artifacts/contracts/registry/ReleaseAdmin.sol/ReleaseAdmin.dbg.json +4 -0
  199. package/artifacts/contracts/registry/ReleaseAdmin.sol/ReleaseAdmin.json +2152 -0
  200. package/artifacts/contracts/registry/ReleaseLifecycle.sol/ReleaseLifecycle.dbg.json +1 -1
  201. package/artifacts/contracts/registry/ReleaseLifecycle.sol/ReleaseLifecycle.json +2 -2
  202. package/artifacts/contracts/registry/ReleaseRegistry.sol/ReleaseRegistry.dbg.json +1 -1
  203. package/artifacts/contracts/registry/ReleaseRegistry.sol/ReleaseRegistry.json +386 -64
  204. package/artifacts/contracts/registry/ServiceAuthorizationV3.sol/ServiceAuthorizationV3.dbg.json +1 -1
  205. package/artifacts/contracts/registry/ServiceAuthorizationV3.sol/ServiceAuthorizationV3.json +437 -26
  206. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
  207. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +120 -60
  208. package/artifacts/contracts/shared/Component.sol/Component.dbg.json +1 -1
  209. package/artifacts/contracts/shared/Component.sol/Component.json +60 -50
  210. package/artifacts/contracts/shared/ComponentService.sol/ComponentService.dbg.json +1 -1
  211. package/artifacts/contracts/shared/ComponentService.sol/ComponentService.json +247 -531
  212. package/artifacts/contracts/shared/ComponentServiceManager.sol/ComponentServiceManager.dbg.json +1 -1
  213. package/artifacts/contracts/shared/ComponentServiceManager.sol/ComponentServiceManager.json +111 -95
  214. package/artifacts/contracts/shared/ContractLib.sol/ContractLib.dbg.json +1 -1
  215. package/artifacts/contracts/shared/ContractLib.sol/ContractLib.json +178 -34
  216. package/artifacts/contracts/shared/ContractLib.sol/IInstanceAdminHelper.dbg.json +1 -1
  217. package/artifacts/contracts/shared/ContractLib.sol/ITargetHelper.dbg.json +1 -1
  218. package/artifacts/contracts/shared/ContractLib.sol/ITokenRegistryHelper.dbg.json +4 -0
  219. package/artifacts/contracts/shared/ContractLib.sol/ITokenRegistryHelper.json +40 -0
  220. package/artifacts/contracts/shared/IComponent.sol/IComponent.dbg.json +1 -1
  221. package/artifacts/contracts/shared/IComponent.sol/IComponent.json +41 -31
  222. package/artifacts/contracts/shared/IComponentService.sol/IComponentService.dbg.json +1 -1
  223. package/artifacts/contracts/shared/IComponentService.sol/IComponentService.json +155 -382
  224. package/artifacts/contracts/shared/IInstanceLinkedComponent.sol/IInstanceLinkedComponent.dbg.json +1 -1
  225. package/artifacts/contracts/shared/IInstanceLinkedComponent.sol/IInstanceLinkedComponent.json +41 -45
  226. package/artifacts/contracts/shared/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  227. package/artifacts/contracts/shared/IKeyValueStore.sol/IKeyValueStore.json +6 -6
  228. package/artifacts/contracts/shared/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  229. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  230. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +19 -0
  231. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +1 -1
  232. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  233. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +139 -1
  234. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +1 -1
  235. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
  236. package/artifacts/contracts/shared/IService.sol/IService.json +56 -3
  237. package/artifacts/contracts/shared/InitializableERC165.sol/InitializableERC165.dbg.json +1 -1
  238. package/artifacts/contracts/shared/InitializableERC165.sol/InitializableERC165.json +2 -2
  239. package/artifacts/contracts/shared/InstanceLinkedComponent.sol/InstanceLinkedComponent.dbg.json +1 -1
  240. package/artifacts/contracts/shared/InstanceLinkedComponent.sol/InstanceLinkedComponent.json +60 -64
  241. package/artifacts/contracts/shared/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  242. package/artifacts/contracts/shared/KeyValueStore.sol/KeyValueStore.json +6 -6
  243. package/artifacts/contracts/shared/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  244. package/artifacts/contracts/shared/NftIdSet.sol/NftIdSet.dbg.json +1 -1
  245. package/artifacts/contracts/shared/NftIdSet.sol/NftIdSet.json +2 -2
  246. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  247. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +21 -2
  248. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +1 -1
  249. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +2 -2
  250. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  251. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +137 -62
  252. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +1 -1
  253. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +2 -2
  254. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
  255. package/artifacts/contracts/shared/Service.sol/Service.json +51 -11
  256. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  257. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +63 -162
  258. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandlerBase.dbg.json +1 -1
  259. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandlerBase.json +118 -29
  260. package/artifacts/contracts/shared/TokenHandlerDeployerLib.sol/TokenHandlerDeployerLib.dbg.json +1 -1
  261. package/artifacts/contracts/shared/TokenHandlerDeployerLib.sol/TokenHandlerDeployerLib.json +32 -32
  262. package/artifacts/contracts/staking/IStaking.sol/IStaking.dbg.json +1 -1
  263. package/artifacts/contracts/staking/IStaking.sol/IStaking.json +1026 -101
  264. package/artifacts/contracts/staking/IStakingService.sol/IStakingService.dbg.json +1 -1
  265. package/artifacts/contracts/staking/IStakingService.sol/IStakingService.json +214 -110
  266. package/artifacts/contracts/staking/Staking.sol/Staking.dbg.json +1 -1
  267. package/artifacts/contracts/staking/Staking.sol/Staking.json +1218 -214
  268. package/artifacts/contracts/staking/StakingLib.sol/StakingLib.dbg.json +4 -0
  269. package/artifacts/contracts/staking/StakingLib.sol/StakingLib.json +470 -0
  270. package/artifacts/contracts/staking/StakingLifecycle.sol/StakingLifecycle.dbg.json +1 -1
  271. package/artifacts/contracts/staking/StakingLifecycle.sol/StakingLifecycle.json +2 -2
  272. package/artifacts/contracts/staking/StakingManager.sol/StakingManager.dbg.json +1 -1
  273. package/artifacts/contracts/staking/StakingManager.sol/StakingManager.json +139 -61
  274. package/artifacts/contracts/staking/StakingReader.sol/StakingReader.dbg.json +1 -1
  275. package/artifacts/contracts/staking/StakingReader.sol/StakingReader.json +174 -217
  276. package/artifacts/contracts/staking/StakingService.sol/StakingService.dbg.json +1 -1
  277. package/artifacts/contracts/staking/StakingService.sol/StakingService.json +253 -174
  278. package/artifacts/contracts/staking/StakingServiceManager.sol/StakingServiceManager.dbg.json +1 -1
  279. package/artifacts/contracts/staking/StakingServiceManager.sol/StakingServiceManager.json +87 -55
  280. package/artifacts/contracts/staking/StakingStore.sol/StakingStore.dbg.json +1 -1
  281. package/artifacts/contracts/staking/StakingStore.sol/StakingStore.json +957 -603
  282. package/artifacts/contracts/staking/TargetManagerLib.sol/TargetManagerLib.dbg.json +1 -1
  283. package/artifacts/contracts/staking/TargetManagerLib.sol/TargetManagerLib.json +101 -51
  284. package/artifacts/contracts/type/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  285. package/artifacts/contracts/type/Amount.sol/AmountLib.dbg.json +1 -1
  286. package/artifacts/contracts/type/Amount.sol/AmountLib.json +11 -11
  287. package/artifacts/contracts/type/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  288. package/artifacts/contracts/type/Blocknumber.sol/BlocknumberLib.json +45 -19
  289. package/artifacts/contracts/type/ChainId.sol/ChainIdLib.dbg.json +4 -0
  290. package/artifacts/contracts/type/ChainId.sol/ChainIdLib.json +193 -0
  291. package/artifacts/contracts/type/ClaimId.sol/ClaimIdLib.dbg.json +1 -1
  292. package/artifacts/contracts/type/ClaimId.sol/ClaimIdLib.json +2 -2
  293. package/artifacts/contracts/type/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
  294. package/artifacts/contracts/type/DistributorType.sol/DistributorTypeLib.json +2 -2
  295. package/artifacts/contracts/type/Fee.sol/FeeLib.dbg.json +1 -1
  296. package/artifacts/contracts/type/Fee.sol/FeeLib.json +94 -38
  297. package/artifacts/contracts/type/Key32.sol/Key32Lib.dbg.json +1 -1
  298. package/artifacts/contracts/type/Key32.sol/Key32Lib.json +2 -2
  299. package/artifacts/contracts/type/Key32Set.sol/LibKey32Set.dbg.json +1 -1
  300. package/artifacts/contracts/type/Key32Set.sol/LibKey32Set.json +2 -2
  301. package/artifacts/contracts/type/NftId.sol/NftIdLib.dbg.json +1 -1
  302. package/artifacts/contracts/type/NftId.sol/NftIdLib.json +2 -2
  303. package/artifacts/contracts/type/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  304. package/artifacts/contracts/type/NftIdSet.sol/LibNftIdSet.json +2 -2
  305. package/artifacts/contracts/type/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  306. package/artifacts/contracts/type/ObjectType.sol/ObjectTypeLib.json +33 -31
  307. package/artifacts/contracts/type/PayoutId.sol/PayoutIdLib.dbg.json +1 -1
  308. package/artifacts/contracts/type/PayoutId.sol/PayoutIdLib.json +2 -2
  309. package/artifacts/contracts/type/Referral.sol/ReferralLib.dbg.json +1 -1
  310. package/artifacts/contracts/type/Referral.sol/ReferralLib.json +2 -2
  311. package/artifacts/contracts/type/RequestId.sol/RequestIdLib.dbg.json +1 -1
  312. package/artifacts/contracts/type/RequestId.sol/RequestIdLib.json +2 -2
  313. package/artifacts/contracts/type/RiskId.sol/RiskIdLib.dbg.json +1 -1
  314. package/artifacts/contracts/type/RiskId.sol/RiskIdLib.json +30 -6
  315. package/artifacts/contracts/type/RoleId.sol/RoleIdLib.dbg.json +1 -1
  316. package/artifacts/contracts/type/RoleId.sol/RoleIdLib.json +42 -157
  317. package/artifacts/contracts/type/Seconds.sol/SecondsLib.dbg.json +1 -1
  318. package/artifacts/contracts/type/Seconds.sol/SecondsLib.json +45 -2
  319. package/artifacts/contracts/type/Selector.sol/SelectorLib.dbg.json +1 -1
  320. package/artifacts/contracts/type/Selector.sol/SelectorLib.json +21 -2
  321. package/artifacts/contracts/type/Selector.sol/SelectorSetLib.dbg.json +1 -1
  322. package/artifacts/contracts/type/Selector.sol/SelectorSetLib.json +2 -2
  323. package/artifacts/contracts/type/StateId.sol/StateIdLib.dbg.json +1 -1
  324. package/artifacts/contracts/type/String.sol/StrLib.dbg.json +1 -1
  325. package/artifacts/contracts/type/String.sol/StrLib.json +50 -2
  326. package/artifacts/contracts/type/Timestamp.sol/TimestampLib.dbg.json +1 -1
  327. package/artifacts/contracts/type/Timestamp.sol/TimestampLib.json +3 -3
  328. package/artifacts/contracts/type/UFixed.sol/UFixedLib.dbg.json +1 -1
  329. package/artifacts/contracts/type/UFixed.sol/UFixedLib.json +61 -37
  330. package/artifacts/contracts/type/Version.sol/VersionLib.dbg.json +1 -1
  331. package/artifacts/contracts/type/Version.sol/VersionLib.json +2 -21
  332. package/artifacts/contracts/type/Version.sol/VersionPartLib.dbg.json +1 -1
  333. package/artifacts/contracts/type/Version.sol/VersionPartLib.json +101 -2
  334. package/artifacts/contracts/upgradeability/IVersionable.sol/IVersionable.dbg.json +1 -1
  335. package/artifacts/contracts/upgradeability/IVersionable.sol/IVersionable.json +10 -0
  336. package/artifacts/contracts/upgradeability/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  337. package/artifacts/contracts/upgradeability/ProxyManager.sol/ProxyManager.json +65 -27
  338. package/artifacts/contracts/upgradeability/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  339. package/artifacts/contracts/upgradeability/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +15 -2
  340. package/artifacts/contracts/upgradeability/Versionable.sol/Versionable.dbg.json +1 -1
  341. package/artifacts/contracts/upgradeability/Versionable.sol/Versionable.json +10 -0
  342. package/contracts/accounting/AccountingService.sol +274 -0
  343. package/contracts/accounting/AccountingServiceManager.sol +38 -0
  344. package/contracts/accounting/IAccountingService.sol +47 -0
  345. package/contracts/authorization/AccessAdmin.sol +422 -258
  346. package/contracts/authorization/AccessAdminLib.sol +396 -0
  347. package/contracts/authorization/AccessManagerCloneable.sol +146 -4
  348. package/contracts/authorization/Authorization.sol +142 -262
  349. package/contracts/authorization/IAccess.sol +25 -7
  350. package/contracts/authorization/IAccessAdmin.sol +87 -80
  351. package/contracts/authorization/IAuthorization.sol +9 -43
  352. package/contracts/authorization/IServiceAuthorization.sol +55 -17
  353. package/contracts/authorization/ServiceAuthorization.sol +248 -34
  354. package/contracts/distribution/BasicDistribution.sol +16 -14
  355. package/contracts/distribution/BasicDistributionAuthorization.sol +29 -9
  356. package/contracts/distribution/Distribution.sol +38 -75
  357. package/contracts/distribution/DistributionService.sol +181 -87
  358. package/contracts/distribution/DistributionServiceManager.sol +1 -1
  359. package/contracts/distribution/IDistributionComponent.sol +3 -10
  360. package/contracts/distribution/IDistributionService.sol +34 -19
  361. package/contracts/examples/fire/FirePool.sol +6 -6
  362. package/contracts/examples/fire/FirePoolAuthorization.sol +2 -1
  363. package/contracts/examples/fire/FireProduct.sol +15 -13
  364. package/contracts/examples/fire/FireProductAuthorization.sol +2 -1
  365. package/contracts/examples/unpermissioned/SimpleDistribution.sol +34 -11
  366. package/contracts/examples/unpermissioned/SimpleDistributionAuthorization.sol +28 -0
  367. package/contracts/examples/unpermissioned/SimpleOracle.sol +4 -8
  368. package/contracts/examples/unpermissioned/SimplePool.sol +7 -13
  369. package/contracts/examples/unpermissioned/SimplePoolAuthorization.sol +28 -0
  370. package/contracts/examples/unpermissioned/SimpleProduct.sol +119 -27
  371. package/contracts/examples/unpermissioned/SimpleProductAuthorization.sol +28 -0
  372. package/contracts/instance/BundleSet.sol +4 -4
  373. package/contracts/instance/IInstance.sol +92 -19
  374. package/contracts/instance/IInstanceService.sol +52 -9
  375. package/contracts/instance/Instance.sol +163 -57
  376. package/contracts/instance/InstanceAdmin.sol +271 -166
  377. package/contracts/instance/InstanceAuthorizationV3.sol +89 -40
  378. package/contracts/instance/InstanceReader.sol +422 -369
  379. package/contracts/instance/InstanceService.sol +252 -176
  380. package/contracts/instance/InstanceServiceManager.sol +1 -1
  381. package/contracts/instance/InstanceStore.sol +13 -2
  382. package/contracts/instance/RiskSet.sol +21 -14
  383. package/contracts/instance/base/BalanceStore.sol +4 -6
  384. package/contracts/instance/base/ObjectCounter.sol +1 -2
  385. package/contracts/instance/base/ObjectLifecycle.sol +6 -8
  386. package/contracts/instance/base/ObjectSet.sol +7 -8
  387. package/contracts/instance/base/ObjectSetHelperLib.sol +30 -0
  388. package/contracts/instance/module/IBundle.sol +6 -5
  389. package/contracts/instance/module/IComponents.sol +19 -7
  390. package/contracts/instance/module/IDistribution.sol +21 -8
  391. package/contracts/instance/module/IPolicy.sol +28 -8
  392. package/contracts/instance/module/IRisk.sol +4 -0
  393. package/contracts/oracle/BasicOracle.sol +2 -4
  394. package/contracts/oracle/BasicOracleAuthorization.sol +15 -8
  395. package/contracts/oracle/IOracle.sol +9 -4
  396. package/contracts/oracle/Oracle.sol +3 -5
  397. package/contracts/oracle/OracleService.sol +24 -23
  398. package/contracts/oracle/OracleServiceManager.sol +1 -1
  399. package/contracts/pool/BasicPool.sol +3 -16
  400. package/contracts/pool/BasicPoolAuthorization.sol +29 -16
  401. package/contracts/pool/BundleService.sol +67 -104
  402. package/contracts/pool/BundleServiceManager.sol +1 -1
  403. package/contracts/pool/IBundleService.sol +27 -33
  404. package/contracts/pool/IPoolService.sol +57 -40
  405. package/contracts/pool/Pool.sol +13 -25
  406. package/contracts/pool/PoolLib.sol +341 -0
  407. package/contracts/pool/PoolService.sol +203 -201
  408. package/contracts/pool/PoolServiceManager.sol +1 -1
  409. package/contracts/product/ApplicationService.sol +86 -18
  410. package/contracts/product/ApplicationServiceManager.sol +1 -1
  411. package/contracts/product/BasicProduct.sol +3 -3
  412. package/contracts/product/BasicProductAuthorization.sol +32 -11
  413. package/contracts/product/ClaimService.sol +187 -171
  414. package/contracts/product/ClaimServiceManager.sol +1 -1
  415. package/contracts/product/IApplicationService.sol +24 -2
  416. package/contracts/product/IClaimService.sol +18 -5
  417. package/contracts/product/IPolicyService.sol +20 -8
  418. package/contracts/product/IPricingService.sol +1 -0
  419. package/contracts/product/IProductComponent.sol +4 -1
  420. package/contracts/product/IRiskService.sol +25 -10
  421. package/contracts/product/PolicyService.sol +110 -198
  422. package/contracts/product/PolicyServiceLib.sol +139 -0
  423. package/contracts/product/PolicyServiceManager.sol +1 -1
  424. package/contracts/product/PricingService.sol +52 -46
  425. package/contracts/product/PricingServiceManager.sol +3 -3
  426. package/contracts/product/Product.sol +93 -27
  427. package/contracts/product/RiskService.sol +119 -36
  428. package/contracts/product/RiskServiceManager.sol +1 -1
  429. package/contracts/registry/ChainNft.sol +4 -2
  430. package/contracts/registry/IRegistry.sol +23 -24
  431. package/contracts/registry/IRelease.sol +29 -0
  432. package/contracts/registry/Registry.sol +22 -11
  433. package/contracts/registry/RegistryAdmin.sol +100 -363
  434. package/contracts/registry/RegistryAuthorization.sol +309 -0
  435. package/contracts/registry/RegistryService.sol +4 -4
  436. package/contracts/registry/RegistryServiceManager.sol +1 -1
  437. package/contracts/registry/ReleaseAdmin.sol +195 -0
  438. package/contracts/registry/ReleaseLifecycle.sol +2 -0
  439. package/contracts/registry/ReleaseRegistry.sol +157 -117
  440. package/contracts/registry/ServiceAuthorizationV3.sol +194 -27
  441. package/contracts/registry/TokenRegistry.sol +61 -59
  442. package/contracts/shared/Component.sol +34 -37
  443. package/contracts/shared/ComponentService.sol +314 -433
  444. package/contracts/shared/ComponentServiceManager.sol +1 -1
  445. package/contracts/shared/ContractLib.sol +164 -76
  446. package/contracts/shared/IComponent.sol +1 -10
  447. package/contracts/shared/IComponentService.sol +22 -41
  448. package/contracts/shared/IInstanceLinkedComponent.sol +0 -11
  449. package/contracts/shared/IKeyValueStore.sol +1 -1
  450. package/contracts/shared/INftOwnable.sol +2 -0
  451. package/contracts/shared/IRegisterable.sol +15 -5
  452. package/contracts/shared/IService.sol +3 -5
  453. package/contracts/shared/InitializableERC165.sol +9 -1
  454. package/contracts/shared/InstanceLinkedComponent.sol +7 -18
  455. package/contracts/shared/KeyValueStore.sol +3 -3
  456. package/contracts/shared/NftOwnable.sol +8 -6
  457. package/contracts/shared/PolicyHolder.sol +4 -3
  458. package/contracts/shared/Registerable.sol +42 -19
  459. package/contracts/shared/RegistryLinked.sol +1 -1
  460. package/contracts/shared/Service.sol +13 -30
  461. package/contracts/shared/TokenHandler.sol +45 -92
  462. package/contracts/staking/IStaking.sol +155 -64
  463. package/contracts/staking/IStakingService.sol +45 -75
  464. package/contracts/staking/Staking.sol +444 -203
  465. package/contracts/staking/{StakeManagerLib.sol → StakingLib.sol} +55 -84
  466. package/contracts/staking/StakingManager.sol +1 -2
  467. package/contracts/staking/StakingReader.sol +41 -80
  468. package/contracts/staking/StakingService.sol +62 -181
  469. package/contracts/staking/StakingServiceManager.sol +6 -4
  470. package/contracts/staking/StakingStore.sol +697 -329
  471. package/contracts/staking/TargetManagerLib.sol +1 -1
  472. package/contracts/type/Amount.sol +4 -0
  473. package/contracts/type/Blocknumber.sol +15 -15
  474. package/contracts/type/ChainId.sol +101 -0
  475. package/contracts/type/Fee.sol +8 -8
  476. package/contracts/type/NftId.sol +3 -3
  477. package/contracts/type/ObjectType.sol +67 -38
  478. package/contracts/type/RiskId.sol +9 -3
  479. package/contracts/type/RoleId.sol +63 -45
  480. package/contracts/type/Seconds.sol +14 -0
  481. package/contracts/type/Selector.sol +5 -0
  482. package/contracts/type/String.sol +12 -0
  483. package/contracts/type/Timestamp.sol +4 -7
  484. package/contracts/type/UFixed.sol +35 -127
  485. package/contracts/type/Version.sol +54 -5
  486. package/contracts/upgradeability/IVersionable.sol +3 -0
  487. package/contracts/upgradeability/ProxyManager.sol +26 -12
  488. package/contracts/upgradeability/UpgradableProxyWithAdmin.sol +12 -2
  489. package/contracts/upgradeability/Versionable.sol +6 -3
  490. package/package.json +2 -2
  491. package/artifacts/contracts/authorization/AccessAdmin.sol/IAccessManagedChecker.dbg.json +0 -4
  492. package/artifacts/contracts/authorization/ReleaseAccessManager.sol/ReleaseAccessManager.dbg.json +0 -4
  493. package/artifacts/contracts/authorization/ReleaseAccessManager.sol/ReleaseAccessManager.json +0 -1196
  494. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +0 -4
  495. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +0 -129
  496. package/artifacts/contracts/shared/ComponentVerifyingService.sol/ComponentVerifyingService.dbg.json +0 -4
  497. package/artifacts/contracts/shared/ComponentVerifyingService.sol/ComponentVerifyingService.json +0 -474
  498. package/artifacts/contracts/staking/StakeManagerLib.sol/StakeManagerLib.dbg.json +0 -4
  499. package/artifacts/contracts/staking/StakeManagerLib.sol/StakeManagerLib.json +0 -440
  500. package/artifacts/contracts/type/UFixed.sol/MathLib.dbg.json +0 -4
  501. package/artifacts/contracts/type/UFixed.sol/MathLib.json +0 -16
  502. package/contracts/authorization/ReleaseAccessManager.sol +0 -38
  503. package/contracts/instance/module/IAccess.sol +0 -46
  504. package/contracts/shared/ComponentVerifyingService.sol +0 -128
@@ -41,6 +41,17 @@
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
+ },
44
55
  {
45
56
  "inputs": [],
46
57
  "name": "ErrorComponentNameLengthZero",
@@ -67,16 +78,6 @@
67
78
  "name": "ErrorComponentProductNftIdZero",
68
79
  "type": "error"
69
80
  },
70
- {
71
- "inputs": [],
72
- "name": "ErrorComponentTokenAddressNonzero",
73
- "type": "error"
74
- },
75
- {
76
- "inputs": [],
77
- "name": "ErrorComponentTokenAddressZero",
78
- "type": "error"
79
- },
80
81
  {
81
82
  "inputs": [],
82
83
  "name": "ErrorComponentWalletAddressIsSameAsCurrent",
@@ -157,6 +158,11 @@
157
158
  "name": "ErrorNotRegistry",
158
159
  "type": "error"
159
160
  },
161
+ {
162
+ "inputs": [],
163
+ "name": "ErrorRegisterableNotActive",
164
+ "type": "error"
165
+ },
160
166
  {
161
167
  "inputs": [
162
168
  {
@@ -257,6 +263,27 @@
257
263
  "name": "ErrorStakingNotNftOwner",
258
264
  "type": "error"
259
265
  },
266
+ {
267
+ "inputs": [
268
+ {
269
+ "internalType": "NftId",
270
+ "name": "stakeNftId",
271
+ "type": "uint96"
272
+ },
273
+ {
274
+ "internalType": "address",
275
+ "name": "expectedOwner",
276
+ "type": "address"
277
+ },
278
+ {
279
+ "internalType": "address",
280
+ "name": "actualOwner",
281
+ "type": "address"
282
+ }
283
+ ],
284
+ "name": "ErrorStakingNotOwner",
285
+ "type": "error"
286
+ },
260
287
  {
261
288
  "inputs": [
262
289
  {
@@ -295,6 +322,17 @@
295
322
  "name": "ErrorStakingNotTarget",
296
323
  "type": "error"
297
324
  },
325
+ {
326
+ "inputs": [
327
+ {
328
+ "internalType": "VersionPart",
329
+ "name": "release",
330
+ "type": "uint8"
331
+ }
332
+ ],
333
+ "name": "ErrorStakingReleaseNotActive",
334
+ "type": "error"
335
+ },
298
336
  {
299
337
  "inputs": [
300
338
  {
@@ -305,17 +343,28 @@
305
343
  {
306
344
  "internalType": "UFixed",
307
345
  "name": "maxRewardRate",
308
- "type": "uint256"
346
+ "type": "uint160"
309
347
  },
310
348
  {
311
349
  "internalType": "UFixed",
312
350
  "name": "rewardRate",
313
- "type": "uint256"
351
+ "type": "uint160"
314
352
  }
315
353
  ],
316
354
  "name": "ErrorStakingRewardRateTooHigh",
317
355
  "type": "error"
318
356
  },
357
+ {
358
+ "inputs": [
359
+ {
360
+ "internalType": "VersionPart",
361
+ "name": "release",
362
+ "type": "uint8"
363
+ }
364
+ ],
365
+ "name": "ErrorStakingServiceNotFound",
366
+ "type": "error"
367
+ },
319
368
  {
320
369
  "inputs": [
321
370
  {
@@ -365,20 +414,30 @@
365
414
  "name": "ErrorStakingTargetAlreadyRegistered",
366
415
  "type": "error"
367
416
  },
368
- {
369
- "inputs": [],
370
- "name": "ErrorStakingTargetNftIdZero",
371
- "type": "error"
372
- },
373
417
  {
374
418
  "inputs": [
375
419
  {
376
420
  "internalType": "NftId",
377
421
  "name": "targetNftId",
378
422
  "type": "uint96"
423
+ },
424
+ {
425
+ "internalType": "Amount",
426
+ "name": "maxStakedAmount",
427
+ "type": "uint96"
428
+ },
429
+ {
430
+ "internalType": "Amount",
431
+ "name": "stakedAmount",
432
+ "type": "uint96"
379
433
  }
380
434
  ],
381
- "name": "ErrorStakingTargetNotActive",
435
+ "name": "ErrorStakingTargetMaxStakedAmountExceeded",
436
+ "type": "error"
437
+ },
438
+ {
439
+ "inputs": [],
440
+ "name": "ErrorStakingTargetNftIdZero",
382
441
  "type": "error"
383
442
  },
384
443
  {
@@ -400,9 +459,9 @@
400
459
  "type": "uint96"
401
460
  },
402
461
  {
403
- "internalType": "uint256",
462
+ "internalType": "ChainId",
404
463
  "name": "chainId",
405
- "type": "uint256"
464
+ "type": "uint96"
406
465
  },
407
466
  {
408
467
  "internalType": "address",
@@ -453,9 +512,9 @@
453
512
  {
454
513
  "inputs": [
455
514
  {
456
- "internalType": "uint256",
515
+ "internalType": "ChainId",
457
516
  "name": "chainId",
458
- "type": "uint256"
517
+ "type": "uint96"
459
518
  },
460
519
  {
461
520
  "internalType": "address",
@@ -466,6 +525,16 @@
466
525
  "name": "ErrorStakingTokenNotRegistered",
467
526
  "type": "error"
468
527
  },
528
+ {
529
+ "inputs": [],
530
+ "name": "ErrorVersionableInitializeNotImplemented",
531
+ "type": "error"
532
+ },
533
+ {
534
+ "inputs": [],
535
+ "name": "ErrorVersionableUpgradeNotImplemented",
536
+ "type": "error"
537
+ },
469
538
  {
470
539
  "anonymous": false,
471
540
  "inputs": [
@@ -546,12 +615,738 @@
546
615
  },
547
616
  {
548
617
  "indexed": false,
549
- "internalType": "uint256",
550
- "name": "amount",
551
- "type": "uint256"
618
+ "internalType": "uint256",
619
+ "name": "amount",
620
+ "type": "uint256"
621
+ }
622
+ ],
623
+ "name": "LogComponentWalletTokensTransferred",
624
+ "type": "event"
625
+ },
626
+ {
627
+ "anonymous": false,
628
+ "inputs": [
629
+ {
630
+ "indexed": false,
631
+ "internalType": "NftId",
632
+ "name": "nftId",
633
+ "type": "uint96"
634
+ },
635
+ {
636
+ "indexed": false,
637
+ "internalType": "address",
638
+ "name": "owner",
639
+ "type": "address"
640
+ }
641
+ ],
642
+ "name": "LogNftOwnableNftLinkedToAddress",
643
+ "type": "event"
644
+ },
645
+ {
646
+ "anonymous": false,
647
+ "inputs": [
648
+ {
649
+ "indexed": false,
650
+ "internalType": "NftId",
651
+ "name": "targetNftId",
652
+ "type": "uint96"
653
+ },
654
+ {
655
+ "indexed": false,
656
+ "internalType": "Seconds",
657
+ "name": "newLockingPeriod",
658
+ "type": "uint40"
659
+ },
660
+ {
661
+ "indexed": false,
662
+ "internalType": "Seconds",
663
+ "name": "oldLockingPeriod",
664
+ "type": "uint40"
665
+ },
666
+ {
667
+ "indexed": false,
668
+ "internalType": "Blocknumber",
669
+ "name": "lastUpdatedIn",
670
+ "type": "uint40"
671
+ }
672
+ ],
673
+ "name": "LogStakingProtocolLockingPeriodSet",
674
+ "type": "event"
675
+ },
676
+ {
677
+ "anonymous": false,
678
+ "inputs": [
679
+ {
680
+ "indexed": false,
681
+ "internalType": "NftId",
682
+ "name": "targetNftId",
683
+ "type": "uint96"
684
+ },
685
+ {
686
+ "indexed": false,
687
+ "internalType": "UFixed",
688
+ "name": "newRewardRate",
689
+ "type": "uint160"
690
+ },
691
+ {
692
+ "indexed": false,
693
+ "internalType": "UFixed",
694
+ "name": "oldRewardRate",
695
+ "type": "uint160"
696
+ },
697
+ {
698
+ "indexed": false,
699
+ "internalType": "Blocknumber",
700
+ "name": "lastUpdatedIn",
701
+ "type": "uint40"
702
+ }
703
+ ],
704
+ "name": "LogStakingProtocolRewardRateSet",
705
+ "type": "event"
706
+ },
707
+ {
708
+ "anonymous": false,
709
+ "inputs": [
710
+ {
711
+ "indexed": false,
712
+ "internalType": "NftId",
713
+ "name": "targetNftId",
714
+ "type": "uint96"
715
+ },
716
+ {
717
+ "indexed": false,
718
+ "internalType": "Amount",
719
+ "name": "dipAmount",
720
+ "type": "uint96"
721
+ },
722
+ {
723
+ "indexed": false,
724
+ "internalType": "address",
725
+ "name": "targetOwner",
726
+ "type": "address"
727
+ },
728
+ {
729
+ "indexed": false,
730
+ "internalType": "Amount",
731
+ "name": "reserveBalance",
732
+ "type": "uint96"
733
+ },
734
+ {
735
+ "indexed": false,
736
+ "internalType": "Blocknumber",
737
+ "name": "lastUpdateIn",
738
+ "type": "uint40"
739
+ }
740
+ ],
741
+ "name": "LogStakingRewardReservesRefilled",
742
+ "type": "event"
743
+ },
744
+ {
745
+ "anonymous": false,
746
+ "inputs": [
747
+ {
748
+ "indexed": false,
749
+ "internalType": "NftId",
750
+ "name": "targetNftId",
751
+ "type": "uint96"
752
+ },
753
+ {
754
+ "indexed": false,
755
+ "internalType": "Amount",
756
+ "name": "dipAmount",
757
+ "type": "uint96"
758
+ },
759
+ {
760
+ "indexed": false,
761
+ "internalType": "Amount",
762
+ "name": "reserveBalance",
763
+ "type": "uint96"
764
+ },
765
+ {
766
+ "indexed": false,
767
+ "internalType": "Blocknumber",
768
+ "name": "lastUpdateIn",
769
+ "type": "uint40"
770
+ }
771
+ ],
772
+ "name": "LogStakingRewardReservesSpent",
773
+ "type": "event"
774
+ },
775
+ {
776
+ "anonymous": false,
777
+ "inputs": [
778
+ {
779
+ "indexed": false,
780
+ "internalType": "NftId",
781
+ "name": "targetNftId",
782
+ "type": "uint96"
783
+ },
784
+ {
785
+ "indexed": false,
786
+ "internalType": "Amount",
787
+ "name": "dipAmount",
788
+ "type": "uint96"
789
+ },
790
+ {
791
+ "indexed": false,
792
+ "internalType": "address",
793
+ "name": "targetOwner",
794
+ "type": "address"
795
+ },
796
+ {
797
+ "indexed": false,
798
+ "internalType": "Amount",
799
+ "name": "reserveBalance",
800
+ "type": "uint96"
801
+ },
802
+ {
803
+ "indexed": false,
804
+ "internalType": "Blocknumber",
805
+ "name": "lastUpdateIn",
806
+ "type": "uint40"
807
+ }
808
+ ],
809
+ "name": "LogStakingRewardReservesWithdrawn",
810
+ "type": "event"
811
+ },
812
+ {
813
+ "anonymous": false,
814
+ "inputs": [
815
+ {
816
+ "indexed": false,
817
+ "internalType": "NftId",
818
+ "name": "stakeNftId",
819
+ "type": "uint96"
820
+ },
821
+ {
822
+ "indexed": false,
823
+ "internalType": "Amount",
824
+ "name": "claimedAmount",
825
+ "type": "uint96"
826
+ },
827
+ {
828
+ "indexed": false,
829
+ "internalType": "Amount",
830
+ "name": "stakeBalance",
831
+ "type": "uint96"
832
+ },
833
+ {
834
+ "indexed": false,
835
+ "internalType": "Amount",
836
+ "name": "rewardBalance",
837
+ "type": "uint96"
838
+ },
839
+ {
840
+ "indexed": false,
841
+ "internalType": "Timestamp",
842
+ "name": "lockedUntil",
843
+ "type": "uint40"
844
+ }
845
+ ],
846
+ "name": "LogStakingRewardsClaimed",
847
+ "type": "event"
848
+ },
849
+ {
850
+ "anonymous": false,
851
+ "inputs": [
852
+ {
853
+ "indexed": false,
854
+ "internalType": "NftId",
855
+ "name": "stakeNftId",
856
+ "type": "uint96"
857
+ },
858
+ {
859
+ "indexed": false,
860
+ "internalType": "Amount",
861
+ "name": "restakedAmount",
862
+ "type": "uint96"
863
+ },
864
+ {
865
+ "indexed": false,
866
+ "internalType": "Amount",
867
+ "name": "stakeBalance",
868
+ "type": "uint96"
869
+ },
870
+ {
871
+ "indexed": false,
872
+ "internalType": "Amount",
873
+ "name": "rewardBalance",
874
+ "type": "uint96"
875
+ },
876
+ {
877
+ "indexed": false,
878
+ "internalType": "Timestamp",
879
+ "name": "lockedUntil",
880
+ "type": "uint40"
881
+ }
882
+ ],
883
+ "name": "LogStakingRewardsRestaked",
884
+ "type": "event"
885
+ },
886
+ {
887
+ "anonymous": false,
888
+ "inputs": [
889
+ {
890
+ "indexed": false,
891
+ "internalType": "NftId",
892
+ "name": "stakeNftId",
893
+ "type": "uint96"
894
+ },
895
+ {
896
+ "indexed": false,
897
+ "internalType": "NftId",
898
+ "name": "targetNftId",
899
+ "type": "uint96"
900
+ },
901
+ {
902
+ "indexed": false,
903
+ "internalType": "Amount",
904
+ "name": "stakeAmount",
905
+ "type": "uint96"
906
+ },
907
+ {
908
+ "indexed": false,
909
+ "internalType": "Timestamp",
910
+ "name": "lockedUntil",
911
+ "type": "uint40"
912
+ },
913
+ {
914
+ "indexed": false,
915
+ "internalType": "address",
916
+ "name": "stakeOwner",
917
+ "type": "address"
918
+ }
919
+ ],
920
+ "name": "LogStakingStakeCreated",
921
+ "type": "event"
922
+ },
923
+ {
924
+ "anonymous": false,
925
+ "inputs": [
926
+ {
927
+ "indexed": false,
928
+ "internalType": "NftId",
929
+ "name": "stakeNftId",
930
+ "type": "uint96"
931
+ },
932
+ {
933
+ "indexed": false,
934
+ "internalType": "NftId",
935
+ "name": "targetNftId",
936
+ "type": "uint96"
937
+ },
938
+ {
939
+ "indexed": false,
940
+ "internalType": "Amount",
941
+ "name": "stakeAmount",
942
+ "type": "uint96"
943
+ },
944
+ {
945
+ "indexed": false,
946
+ "internalType": "address",
947
+ "name": "owner",
948
+ "type": "address"
949
+ },
950
+ {
951
+ "indexed": false,
952
+ "internalType": "NftId",
953
+ "name": "oldStakeNftId",
954
+ "type": "uint96"
955
+ }
956
+ ],
957
+ "name": "LogStakingStakeRestaked",
958
+ "type": "event"
959
+ },
960
+ {
961
+ "anonymous": false,
962
+ "inputs": [
963
+ {
964
+ "indexed": false,
965
+ "internalType": "NftId",
966
+ "name": "stakeNftId",
967
+ "type": "uint96"
968
+ },
969
+ {
970
+ "indexed": false,
971
+ "internalType": "Amount",
972
+ "name": "rewardIncrementAmount",
973
+ "type": "uint96"
974
+ },
975
+ {
976
+ "indexed": false,
977
+ "internalType": "Amount",
978
+ "name": "stakeBalance",
979
+ "type": "uint96"
980
+ },
981
+ {
982
+ "indexed": false,
983
+ "internalType": "Amount",
984
+ "name": "rewardBalance",
985
+ "type": "uint96"
986
+ },
987
+ {
988
+ "indexed": false,
989
+ "internalType": "Timestamp",
990
+ "name": "lockedUntil",
991
+ "type": "uint40"
992
+ }
993
+ ],
994
+ "name": "LogStakingStakeRewardsUpdated",
995
+ "type": "event"
996
+ },
997
+ {
998
+ "anonymous": false,
999
+ "inputs": [
1000
+ {
1001
+ "indexed": false,
1002
+ "internalType": "NftId",
1003
+ "name": "stakeNftId",
1004
+ "type": "uint96"
1005
+ },
1006
+ {
1007
+ "indexed": false,
1008
+ "internalType": "Amount",
1009
+ "name": "stakedAmount",
1010
+ "type": "uint96"
1011
+ },
1012
+ {
1013
+ "indexed": false,
1014
+ "internalType": "Amount",
1015
+ "name": "stakeBalance",
1016
+ "type": "uint96"
1017
+ },
1018
+ {
1019
+ "indexed": false,
1020
+ "internalType": "Amount",
1021
+ "name": "rewardBalance",
1022
+ "type": "uint96"
1023
+ },
1024
+ {
1025
+ "indexed": false,
1026
+ "internalType": "Timestamp",
1027
+ "name": "lockedUntil",
1028
+ "type": "uint40"
1029
+ }
1030
+ ],
1031
+ "name": "LogStakingStaked",
1032
+ "type": "event"
1033
+ },
1034
+ {
1035
+ "anonymous": false,
1036
+ "inputs": [
1037
+ {
1038
+ "indexed": false,
1039
+ "internalType": "ChainId",
1040
+ "name": "chainId",
1041
+ "type": "uint96"
1042
+ },
1043
+ {
1044
+ "indexed": false,
1045
+ "internalType": "address",
1046
+ "name": "token",
1047
+ "type": "address"
1048
+ },
1049
+ {
1050
+ "indexed": false,
1051
+ "internalType": "UFixed",
1052
+ "name": "newStakingRate",
1053
+ "type": "uint160"
1054
+ },
1055
+ {
1056
+ "indexed": false,
1057
+ "internalType": "UFixed",
1058
+ "name": "oldStakingRate",
1059
+ "type": "uint160"
1060
+ },
1061
+ {
1062
+ "indexed": false,
1063
+ "internalType": "Blocknumber",
1064
+ "name": "lastUpdatedIn",
1065
+ "type": "uint40"
1066
+ }
1067
+ ],
1068
+ "name": "LogStakingStakingRateSet",
1069
+ "type": "event"
1070
+ },
1071
+ {
1072
+ "anonymous": false,
1073
+ "inputs": [
1074
+ {
1075
+ "indexed": false,
1076
+ "internalType": "address",
1077
+ "name": "stakingReader",
1078
+ "type": "address"
1079
+ },
1080
+ {
1081
+ "indexed": false,
1082
+ "internalType": "address",
1083
+ "name": "oldStakingReader",
1084
+ "type": "address"
1085
+ }
1086
+ ],
1087
+ "name": "LogStakingStakingReaderSet",
1088
+ "type": "event"
1089
+ },
1090
+ {
1091
+ "anonymous": false,
1092
+ "inputs": [
1093
+ {
1094
+ "indexed": false,
1095
+ "internalType": "address",
1096
+ "name": "stakingService",
1097
+ "type": "address"
1098
+ },
1099
+ {
1100
+ "indexed": false,
1101
+ "internalType": "VersionPart",
1102
+ "name": "release",
1103
+ "type": "uint8"
1104
+ },
1105
+ {
1106
+ "indexed": false,
1107
+ "internalType": "address",
1108
+ "name": "oldStakingService",
1109
+ "type": "address"
1110
+ }
1111
+ ],
1112
+ "name": "LogStakingStakingServiceSet",
1113
+ "type": "event"
1114
+ },
1115
+ {
1116
+ "anonymous": false,
1117
+ "inputs": [
1118
+ {
1119
+ "indexed": false,
1120
+ "internalType": "NftId",
1121
+ "name": "targetNftId",
1122
+ "type": "uint96"
1123
+ },
1124
+ {
1125
+ "indexed": false,
1126
+ "internalType": "ObjectType",
1127
+ "name": "objectType",
1128
+ "type": "uint8"
1129
+ },
1130
+ {
1131
+ "indexed": false,
1132
+ "internalType": "Seconds",
1133
+ "name": "lockingPeriod",
1134
+ "type": "uint40"
1135
+ },
1136
+ {
1137
+ "indexed": false,
1138
+ "internalType": "UFixed",
1139
+ "name": "rewardRate",
1140
+ "type": "uint160"
1141
+ },
1142
+ {
1143
+ "indexed": false,
1144
+ "internalType": "Amount",
1145
+ "name": "maxStakedAmount",
1146
+ "type": "uint96"
1147
+ }
1148
+ ],
1149
+ "name": "LogStakingTargetCreated",
1150
+ "type": "event"
1151
+ },
1152
+ {
1153
+ "anonymous": false,
1154
+ "inputs": [
1155
+ {
1156
+ "indexed": false,
1157
+ "internalType": "NftId",
1158
+ "name": "targetNftId",
1159
+ "type": "uint96"
1160
+ },
1161
+ {
1162
+ "indexed": false,
1163
+ "internalType": "Seconds",
1164
+ "name": "oldLockingPeriod",
1165
+ "type": "uint40"
1166
+ },
1167
+ {
1168
+ "indexed": false,
1169
+ "internalType": "Seconds",
1170
+ "name": "lockingPeriod",
1171
+ "type": "uint40"
1172
+ }
1173
+ ],
1174
+ "name": "LogStakingTargetLockingPeriodSet",
1175
+ "type": "event"
1176
+ },
1177
+ {
1178
+ "anonymous": false,
1179
+ "inputs": [
1180
+ {
1181
+ "indexed": false,
1182
+ "internalType": "NftId",
1183
+ "name": "targetNftId",
1184
+ "type": "uint96"
1185
+ },
1186
+ {
1187
+ "indexed": false,
1188
+ "internalType": "Amount",
1189
+ "name": "maxStakedAmount",
1190
+ "type": "uint96"
1191
+ }
1192
+ ],
1193
+ "name": "LogStakingTargetMaxStakedAmountSet",
1194
+ "type": "event"
1195
+ },
1196
+ {
1197
+ "anonymous": false,
1198
+ "inputs": [
1199
+ {
1200
+ "indexed": false,
1201
+ "internalType": "NftId",
1202
+ "name": "targetNftId",
1203
+ "type": "uint96"
1204
+ },
1205
+ {
1206
+ "indexed": false,
1207
+ "internalType": "UFixed",
1208
+ "name": "rewardRate",
1209
+ "type": "uint160"
1210
+ },
1211
+ {
1212
+ "indexed": false,
1213
+ "internalType": "UFixed",
1214
+ "name": "oldRewardRate",
1215
+ "type": "uint160"
1216
+ }
1217
+ ],
1218
+ "name": "LogStakingTargetRewardRateSet",
1219
+ "type": "event"
1220
+ },
1221
+ {
1222
+ "anonymous": false,
1223
+ "inputs": [
1224
+ {
1225
+ "indexed": false,
1226
+ "internalType": "NftId",
1227
+ "name": "targetNftId",
1228
+ "type": "uint96"
1229
+ },
1230
+ {
1231
+ "indexed": false,
1232
+ "internalType": "ChainId",
1233
+ "name": "chainId",
1234
+ "type": "uint96"
1235
+ },
1236
+ {
1237
+ "indexed": false,
1238
+ "internalType": "address",
1239
+ "name": "token",
1240
+ "type": "address"
1241
+ }
1242
+ ],
1243
+ "name": "LogStakingTargetTokenAdded",
1244
+ "type": "event"
1245
+ },
1246
+ {
1247
+ "anonymous": false,
1248
+ "inputs": [
1249
+ {
1250
+ "indexed": false,
1251
+ "internalType": "ChainId",
1252
+ "name": "chainId",
1253
+ "type": "uint96"
1254
+ },
1255
+ {
1256
+ "indexed": false,
1257
+ "internalType": "address",
1258
+ "name": "token",
1259
+ "type": "address"
1260
+ }
1261
+ ],
1262
+ "name": "LogStakingTokenAdded",
1263
+ "type": "event"
1264
+ },
1265
+ {
1266
+ "anonymous": false,
1267
+ "inputs": [
1268
+ {
1269
+ "indexed": false,
1270
+ "internalType": "address",
1271
+ "name": "token",
1272
+ "type": "address"
1273
+ },
1274
+ {
1275
+ "indexed": false,
1276
+ "internalType": "Amount",
1277
+ "name": "approvalAmount",
1278
+ "type": "uint96"
1279
+ },
1280
+ {
1281
+ "indexed": false,
1282
+ "internalType": "Amount",
1283
+ "name": "oldApprovalAmount",
1284
+ "type": "uint96"
1285
+ }
1286
+ ],
1287
+ "name": "LogStakingTokenHandlerApproved",
1288
+ "type": "event"
1289
+ },
1290
+ {
1291
+ "anonymous": false,
1292
+ "inputs": [
1293
+ {
1294
+ "indexed": false,
1295
+ "internalType": "NftId",
1296
+ "name": "targetNftId",
1297
+ "type": "uint96"
1298
+ },
1299
+ {
1300
+ "indexed": false,
1301
+ "internalType": "address",
1302
+ "name": "token",
1303
+ "type": "address"
1304
+ },
1305
+ {
1306
+ "indexed": false,
1307
+ "internalType": "Amount",
1308
+ "name": "amount",
1309
+ "type": "uint96"
1310
+ },
1311
+ {
1312
+ "indexed": false,
1313
+ "internalType": "Amount",
1314
+ "name": "newBalance",
1315
+ "type": "uint96"
1316
+ }
1317
+ ],
1318
+ "name": "LogStakingTotalValueLockedDecreased",
1319
+ "type": "event"
1320
+ },
1321
+ {
1322
+ "anonymous": false,
1323
+ "inputs": [
1324
+ {
1325
+ "indexed": false,
1326
+ "internalType": "NftId",
1327
+ "name": "targetNftId",
1328
+ "type": "uint96"
1329
+ },
1330
+ {
1331
+ "indexed": false,
1332
+ "internalType": "address",
1333
+ "name": "token",
1334
+ "type": "address"
1335
+ },
1336
+ {
1337
+ "indexed": false,
1338
+ "internalType": "Amount",
1339
+ "name": "amount",
1340
+ "type": "uint96"
1341
+ },
1342
+ {
1343
+ "indexed": false,
1344
+ "internalType": "Amount",
1345
+ "name": "newBalance",
1346
+ "type": "uint96"
552
1347
  }
553
1348
  ],
554
- "name": "LogComponentWalletTokensTransferred",
1349
+ "name": "LogStakingTotalValueLockedIncreased",
555
1350
  "type": "event"
556
1351
  },
557
1352
  {
@@ -560,80 +1355,72 @@
560
1355
  {
561
1356
  "indexed": false,
562
1357
  "internalType": "NftId",
563
- "name": "targetNftId",
1358
+ "name": "stakeNftId",
564
1359
  "type": "uint96"
565
1360
  },
566
1361
  {
567
1362
  "indexed": false,
568
- "internalType": "Seconds",
569
- "name": "oldLockingPeriod",
570
- "type": "uint40"
1363
+ "internalType": "Amount",
1364
+ "name": "unstakedAmount",
1365
+ "type": "uint96"
571
1366
  },
572
1367
  {
573
1368
  "indexed": false,
574
- "internalType": "Seconds",
575
- "name": "lockingPeriod",
1369
+ "internalType": "Amount",
1370
+ "name": "stakeBalance",
1371
+ "type": "uint96"
1372
+ },
1373
+ {
1374
+ "indexed": false,
1375
+ "internalType": "Amount",
1376
+ "name": "rewardBalance",
1377
+ "type": "uint96"
1378
+ },
1379
+ {
1380
+ "indexed": false,
1381
+ "internalType": "Timestamp",
1382
+ "name": "lockedUntil",
576
1383
  "type": "uint40"
577
1384
  }
578
1385
  ],
579
- "name": "LogStakingLockingPeriodSet",
1386
+ "name": "LogStakingUnstaked",
580
1387
  "type": "event"
581
1388
  },
582
1389
  {
583
- "anonymous": false,
584
1390
  "inputs": [
585
1391
  {
586
- "indexed": false,
587
1392
  "internalType": "NftId",
588
1393
  "name": "targetNftId",
589
1394
  "type": "uint96"
590
1395
  },
591
1396
  {
592
- "indexed": false,
593
- "internalType": "UFixed",
594
- "name": "oldRewardRate",
595
- "type": "uint256"
596
- },
597
- {
598
- "indexed": false,
599
- "internalType": "UFixed",
600
- "name": "rewardRate",
601
- "type": "uint256"
1397
+ "internalType": "address",
1398
+ "name": "token",
1399
+ "type": "address"
602
1400
  }
603
1401
  ],
604
- "name": "LogStakingRewardRateSet",
605
- "type": "event"
1402
+ "name": "addTargetToken",
1403
+ "outputs": [],
1404
+ "stateMutability": "nonpayable",
1405
+ "type": "function"
606
1406
  },
607
1407
  {
608
- "anonymous": false,
609
1408
  "inputs": [
610
1409
  {
611
- "indexed": false,
612
- "internalType": "uint256",
1410
+ "internalType": "ChainId",
613
1411
  "name": "chainId",
614
- "type": "uint256"
1412
+ "type": "uint96"
615
1413
  },
616
1414
  {
617
- "indexed": false,
618
1415
  "internalType": "address",
619
1416
  "name": "token",
620
1417
  "type": "address"
621
- },
622
- {
623
- "indexed": false,
624
- "internalType": "UFixed",
625
- "name": "oldStakingRate",
626
- "type": "uint256"
627
- },
628
- {
629
- "indexed": false,
630
- "internalType": "UFixed",
631
- "name": "newStakingRate",
632
- "type": "uint256"
633
1418
  }
634
1419
  ],
635
- "name": "LogStakingStakingRateSet",
636
- "type": "event"
1420
+ "name": "addToken",
1421
+ "outputs": [],
1422
+ "stateMutability": "nonpayable",
1423
+ "type": "function"
637
1424
  },
638
1425
  {
639
1426
  "inputs": [
@@ -644,7 +1431,7 @@
644
1431
  },
645
1432
  {
646
1433
  "internalType": "Amount",
647
- "name": "spendingLimitAmount",
1434
+ "name": "amount",
648
1435
  "type": "uint96"
649
1436
  }
650
1437
  ],
@@ -687,11 +1474,6 @@
687
1474
  },
688
1475
  {
689
1476
  "inputs": [
690
- {
691
- "internalType": "NftId",
692
- "name": "stakeNftId",
693
- "type": "uint96"
694
- },
695
1477
  {
696
1478
  "internalType": "NftId",
697
1479
  "name": "targetNftId",
@@ -701,10 +1483,21 @@
701
1483
  "internalType": "Amount",
702
1484
  "name": "dipAmount",
703
1485
  "type": "uint96"
1486
+ },
1487
+ {
1488
+ "internalType": "address",
1489
+ "name": "stakeOwner",
1490
+ "type": "address"
704
1491
  }
705
1492
  ],
706
1493
  "name": "createStake",
707
- "outputs": [],
1494
+ "outputs": [
1495
+ {
1496
+ "internalType": "NftId",
1497
+ "name": "stakeNftId",
1498
+ "type": "uint96"
1499
+ }
1500
+ ],
708
1501
  "stateMutability": "nonpayable",
709
1502
  "type": "function"
710
1503
  },
@@ -748,11 +1541,6 @@
748
1541
  "name": "name",
749
1542
  "type": "string"
750
1543
  },
751
- {
752
- "internalType": "contract IERC20Metadata",
753
- "name": "token",
754
- "type": "address"
755
- },
756
1544
  {
757
1545
  "internalType": "contract TokenHandler",
758
1546
  "name": "tokenHandler",
@@ -783,11 +1571,6 @@
783
1571
  "name": "name",
784
1572
  "type": "string"
785
1573
  },
786
- {
787
- "internalType": "contract IERC20Metadata",
788
- "name": "token",
789
- "type": "address"
790
- },
791
1574
  {
792
1575
  "internalType": "contract TokenHandler",
793
1576
  "name": "tokenHandler",
@@ -919,7 +1702,7 @@
919
1702
  "type": "uint8"
920
1703
  }
921
1704
  ],
922
- "stateMutability": "pure",
1705
+ "stateMutability": "view",
923
1706
  "type": "function"
924
1707
  },
925
1708
  {
@@ -1054,6 +1837,19 @@
1054
1837
  "stateMutability": "nonpayable",
1055
1838
  "type": "function"
1056
1839
  },
1840
+ {
1841
+ "inputs": [],
1842
+ "name": "isActive",
1843
+ "outputs": [
1844
+ {
1845
+ "internalType": "bool",
1846
+ "name": "active",
1847
+ "type": "bool"
1848
+ }
1849
+ ],
1850
+ "stateMutability": "view",
1851
+ "type": "function"
1852
+ },
1057
1853
  {
1058
1854
  "inputs": [],
1059
1855
  "name": "isConsumingScheduledOp",
@@ -1158,6 +1954,35 @@
1158
1954
  "stateMutability": "nonpayable",
1159
1955
  "type": "function"
1160
1956
  },
1957
+ {
1958
+ "inputs": [
1959
+ {
1960
+ "internalType": "NftId",
1961
+ "name": "targetNftId",
1962
+ "type": "uint96"
1963
+ },
1964
+ {
1965
+ "internalType": "Amount",
1966
+ "name": "dipAmount",
1967
+ "type": "uint96"
1968
+ },
1969
+ {
1970
+ "internalType": "address",
1971
+ "name": "transferFrom",
1972
+ "type": "address"
1973
+ }
1974
+ ],
1975
+ "name": "refillRewardReservesByService",
1976
+ "outputs": [
1977
+ {
1978
+ "internalType": "Amount",
1979
+ "name": "newBalance",
1980
+ "type": "uint96"
1981
+ }
1982
+ ],
1983
+ "stateMutability": "nonpayable",
1984
+ "type": "function"
1985
+ },
1161
1986
  {
1162
1987
  "inputs": [
1163
1988
  {
@@ -1170,11 +1995,6 @@
1170
1995
  "name": "expectedObjectType",
1171
1996
  "type": "uint8"
1172
1997
  },
1173
- {
1174
- "internalType": "uint256",
1175
- "name": "chainId",
1176
- "type": "uint256"
1177
- },
1178
1998
  {
1179
1999
  "internalType": "Seconds",
1180
2000
  "name": "initialLockingPeriod",
@@ -1183,7 +2003,7 @@
1183
2003
  {
1184
2004
  "internalType": "UFixed",
1185
2005
  "name": "initialRewardRate",
1186
- "type": "uint256"
2006
+ "type": "uint160"
1187
2007
  }
1188
2008
  ],
1189
2009
  "name": "registerTarget",
@@ -1210,6 +2030,11 @@
1210
2030
  "internalType": "NftId",
1211
2031
  "name": "newStakeNftId",
1212
2032
  "type": "uint96"
2033
+ },
2034
+ {
2035
+ "internalType": "Amount",
2036
+ "name": "newStakeBalance",
2037
+ "type": "uint96"
1213
2038
  }
1214
2039
  ],
1215
2040
  "stateMutability": "nonpayable",
@@ -1246,6 +2071,50 @@
1246
2071
  "stateMutability": "nonpayable",
1247
2072
  "type": "function"
1248
2073
  },
2074
+ {
2075
+ "inputs": [
2076
+ {
2077
+ "internalType": "NftId",
2078
+ "name": "targetNftId",
2079
+ "type": "uint96"
2080
+ },
2081
+ {
2082
+ "internalType": "Amount",
2083
+ "name": "maxStakedAmount",
2084
+ "type": "uint96"
2085
+ }
2086
+ ],
2087
+ "name": "setMaxStakedAmount",
2088
+ "outputs": [],
2089
+ "stateMutability": "nonpayable",
2090
+ "type": "function"
2091
+ },
2092
+ {
2093
+ "inputs": [
2094
+ {
2095
+ "internalType": "Seconds",
2096
+ "name": "lockingPeriod",
2097
+ "type": "uint40"
2098
+ }
2099
+ ],
2100
+ "name": "setProtocolLockingPeriod",
2101
+ "outputs": [],
2102
+ "stateMutability": "nonpayable",
2103
+ "type": "function"
2104
+ },
2105
+ {
2106
+ "inputs": [
2107
+ {
2108
+ "internalType": "UFixed",
2109
+ "name": "rewardRate",
2110
+ "type": "uint160"
2111
+ }
2112
+ ],
2113
+ "name": "setProtocolRewardRate",
2114
+ "outputs": [],
2115
+ "stateMutability": "nonpayable",
2116
+ "type": "function"
2117
+ },
1249
2118
  {
1250
2119
  "inputs": [
1251
2120
  {
@@ -1256,7 +2125,7 @@
1256
2125
  {
1257
2126
  "internalType": "UFixed",
1258
2127
  "name": "rewardRate",
1259
- "type": "uint256"
2128
+ "type": "uint160"
1260
2129
  }
1261
2130
  ],
1262
2131
  "name": "setRewardRate",
@@ -1267,9 +2136,9 @@
1267
2136
  {
1268
2137
  "inputs": [
1269
2138
  {
1270
- "internalType": "uint256",
2139
+ "internalType": "ChainId",
1271
2140
  "name": "chainId",
1272
- "type": "uint256"
2141
+ "type": "uint96"
1273
2142
  },
1274
2143
  {
1275
2144
  "internalType": "address",
@@ -1279,7 +2148,7 @@
1279
2148
  {
1280
2149
  "internalType": "UFixed",
1281
2150
  "name": "stakingRate",
1282
- "type": "uint256"
2151
+ "type": "uint160"
1283
2152
  }
1284
2153
  ],
1285
2154
  "name": "setStakingRate",
@@ -1287,6 +2156,32 @@
1287
2156
  "stateMutability": "nonpayable",
1288
2157
  "type": "function"
1289
2158
  },
2159
+ {
2160
+ "inputs": [
2161
+ {
2162
+ "internalType": "contract StakingReader",
2163
+ "name": "stakingReader",
2164
+ "type": "address"
2165
+ }
2166
+ ],
2167
+ "name": "setStakingReader",
2168
+ "outputs": [],
2169
+ "stateMutability": "nonpayable",
2170
+ "type": "function"
2171
+ },
2172
+ {
2173
+ "inputs": [
2174
+ {
2175
+ "internalType": "VersionPart",
2176
+ "name": "release",
2177
+ "type": "uint8"
2178
+ }
2179
+ ],
2180
+ "name": "setStakingService",
2181
+ "outputs": [],
2182
+ "stateMutability": "nonpayable",
2183
+ "type": "function"
2184
+ },
1290
2185
  {
1291
2186
  "inputs": [
1292
2187
  {
@@ -1304,7 +2199,7 @@
1304
2199
  "outputs": [
1305
2200
  {
1306
2201
  "internalType": "Amount",
1307
- "name": "stakeBalance",
2202
+ "name": "newStakeBalance",
1308
2203
  "type": "uint96"
1309
2204
  }
1310
2205
  ],
@@ -1344,11 +2239,6 @@
1344
2239
  "internalType": "Amount",
1345
2240
  "name": "unstakedAmount",
1346
2241
  "type": "uint96"
1347
- },
1348
- {
1349
- "internalType": "Amount",
1350
- "name": "rewardsClaimedAmount",
1351
- "type": "uint96"
1352
2242
  }
1353
2243
  ],
1354
2244
  "stateMutability": "nonpayable",
@@ -1386,7 +2276,13 @@
1386
2276
  }
1387
2277
  ],
1388
2278
  "name": "updateRewards",
1389
- "outputs": [],
2279
+ "outputs": [
2280
+ {
2281
+ "internalType": "Amount",
2282
+ "name": "newRewardAmount",
2283
+ "type": "uint96"
2284
+ }
2285
+ ],
1390
2286
  "stateMutability": "nonpayable",
1391
2287
  "type": "function"
1392
2288
  },
@@ -1426,6 +2322,35 @@
1426
2322
  ],
1427
2323
  "stateMutability": "nonpayable",
1428
2324
  "type": "function"
2325
+ },
2326
+ {
2327
+ "inputs": [
2328
+ {
2329
+ "internalType": "NftId",
2330
+ "name": "targetNftId",
2331
+ "type": "uint96"
2332
+ },
2333
+ {
2334
+ "internalType": "Amount",
2335
+ "name": "dipAmount",
2336
+ "type": "uint96"
2337
+ },
2338
+ {
2339
+ "internalType": "address",
2340
+ "name": "transferTo",
2341
+ "type": "address"
2342
+ }
2343
+ ],
2344
+ "name": "withdrawRewardReservesByService",
2345
+ "outputs": [
2346
+ {
2347
+ "internalType": "Amount",
2348
+ "name": "newBalance",
2349
+ "type": "uint96"
2350
+ }
2351
+ ],
2352
+ "stateMutability": "nonpayable",
2353
+ "type": "function"
1429
2354
  }
1430
2355
  ],
1431
2356
  "bytecode": "0x",