@etherisc/gif-next 0.0.2-e769e2e-077 → 0.0.2-e802d97-713

Sign up to get free protection for your applications and to get access to all the features.
Files changed (378) hide show
  1. package/README.md +2 -1
  2. package/artifacts/contracts/distribution/Distribution.sol/Distribution.dbg.json +1 -1
  3. package/artifacts/contracts/distribution/Distribution.sol/Distribution.json +19 -13
  4. package/artifacts/contracts/distribution/DistributionService.sol/DistributionService.dbg.json +1 -1
  5. package/artifacts/contracts/distribution/DistributionService.sol/DistributionService.json +79 -73
  6. package/artifacts/contracts/distribution/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
  7. package/artifacts/contracts/distribution/DistributionServiceManager.sol/DistributionServiceManager.json +114 -56
  8. package/artifacts/contracts/distribution/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
  9. package/artifacts/contracts/distribution/IDistributionComponent.sol/IDistributionComponent.json +11 -5
  10. package/artifacts/contracts/distribution/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  11. package/artifacts/contracts/distribution/IDistributionService.sol/IDistributionService.json +7 -1
  12. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +1 -1
  13. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +2 -2
  14. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  15. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +25 -6
  16. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  17. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +12 -22
  18. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  19. package/artifacts/contracts/instance/Instance.sol/Instance.json +47 -20
  20. package/artifacts/contracts/instance/InstanceAdmin.sol/InstanceAdmin.dbg.json +4 -0
  21. package/artifacts/contracts/instance/InstanceAdmin.sol/InstanceAdmin.json +708 -0
  22. package/artifacts/contracts/instance/InstanceAuthorizationsLib.sol/InstanceAuthorizationsLib.dbg.json +1 -1
  23. package/artifacts/contracts/instance/InstanceAuthorizationsLib.sol/InstanceAuthorizationsLib.json +126 -30
  24. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
  25. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +195 -64
  26. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  27. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +77 -63
  28. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  29. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +104 -34
  30. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.dbg.json +1 -1
  31. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.json +246 -104
  32. package/artifacts/contracts/instance/base/BalanceStore.sol/BalanceStore.dbg.json +1 -1
  33. package/artifacts/contracts/instance/base/BalanceStore.sol/BalanceStore.json +2 -2
  34. package/artifacts/contracts/instance/base/Cloneable.sol/Cloneable.dbg.json +1 -1
  35. package/artifacts/contracts/instance/base/ObjectCounter.sol/ObjectCounter.dbg.json +4 -0
  36. package/artifacts/contracts/instance/base/ObjectCounter.sol/ObjectCounter.json +10 -0
  37. package/artifacts/contracts/instance/base/ObjectManager.sol/ObjectManager.dbg.json +1 -1
  38. package/artifacts/contracts/instance/base/ObjectManager.sol/ObjectManager.json +2 -2
  39. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
  40. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +8 -116
  41. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
  42. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +1 -1
  43. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
  44. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  45. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  46. package/artifacts/contracts/mock/Dip.sol/Dip.dbg.json +4 -0
  47. package/artifacts/contracts/mock/Dip.sol/Dip.json +376 -0
  48. package/artifacts/contracts/oracle/IOracle.sol/IOracle.dbg.json +4 -0
  49. package/artifacts/contracts/oracle/IOracle.sol/IOracle.json +10 -0
  50. package/artifacts/contracts/oracle/IOracleComponent.sol/IOracleComponent.dbg.json +4 -0
  51. package/artifacts/contracts/oracle/IOracleComponent.sol/IOracleComponent.json +759 -0
  52. package/artifacts/contracts/oracle/IOracleService.sol/IOracleService.dbg.json +4 -0
  53. package/artifacts/contracts/oracle/IOracleService.sol/IOracleService.json +662 -0
  54. package/artifacts/contracts/oracle/Oracle.sol/Oracle.dbg.json +4 -0
  55. package/artifacts/contracts/oracle/Oracle.sol/Oracle.json +1146 -0
  56. package/artifacts/contracts/oracle/OracleService.sol/OracleService.dbg.json +4 -0
  57. package/artifacts/contracts/oracle/OracleService.sol/OracleService.json +997 -0
  58. package/artifacts/contracts/oracle/OracleServiceManager.sol/OracleServiceManager.dbg.json +4 -0
  59. package/artifacts/contracts/oracle/OracleServiceManager.sol/OracleServiceManager.json +718 -0
  60. package/artifacts/contracts/pool/BundleService.sol/BundleService.dbg.json +1 -1
  61. package/artifacts/contracts/pool/BundleService.sol/BundleService.json +55 -41
  62. package/artifacts/contracts/pool/BundleServiceManager.sol/BundleServiceManager.dbg.json +1 -1
  63. package/artifacts/contracts/pool/BundleServiceManager.sol/BundleServiceManager.json +102 -40
  64. package/artifacts/contracts/pool/IBundleService.sol/IBundleService.dbg.json +1 -1
  65. package/artifacts/contracts/pool/IBundleService.sol/IBundleService.json +7 -1
  66. package/artifacts/contracts/pool/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  67. package/artifacts/contracts/pool/IPoolComponent.sol/IPoolComponent.json +11 -5
  68. package/artifacts/contracts/pool/IPoolService.sol/IPoolService.dbg.json +1 -1
  69. package/artifacts/contracts/pool/IPoolService.sol/IPoolService.json +22 -1
  70. package/artifacts/contracts/pool/Pool.sol/Pool.dbg.json +1 -1
  71. package/artifacts/contracts/pool/Pool.sol/Pool.json +18 -12
  72. package/artifacts/contracts/pool/PoolService.sol/PoolService.dbg.json +1 -1
  73. package/artifacts/contracts/pool/PoolService.sol/PoolService.json +56 -35
  74. package/artifacts/contracts/pool/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
  75. package/artifacts/contracts/pool/PoolServiceManager.sol/PoolServiceManager.json +95 -37
  76. package/artifacts/contracts/product/ApplicationService.sol/ApplicationService.dbg.json +1 -1
  77. package/artifacts/contracts/product/ApplicationService.sol/ApplicationService.json +39 -25
  78. package/artifacts/contracts/product/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +1 -1
  79. package/artifacts/contracts/product/ApplicationServiceManager.sol/ApplicationServiceManager.json +96 -34
  80. package/artifacts/contracts/product/ClaimService.sol/ClaimService.dbg.json +1 -1
  81. package/artifacts/contracts/product/ClaimService.sol/ClaimService.json +81 -67
  82. package/artifacts/contracts/product/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +1 -1
  83. package/artifacts/contracts/product/ClaimServiceManager.sol/ClaimServiceManager.json +115 -53
  84. package/artifacts/contracts/product/IApplicationService.sol/IApplicationService.dbg.json +1 -1
  85. package/artifacts/contracts/product/IApplicationService.sol/IApplicationService.json +7 -1
  86. package/artifacts/contracts/product/IClaimService.sol/IClaimService.dbg.json +1 -1
  87. package/artifacts/contracts/product/IClaimService.sol/IClaimService.json +7 -1
  88. package/artifacts/contracts/product/IPolicyService.sol/IPolicyService.dbg.json +1 -1
  89. package/artifacts/contracts/product/IPolicyService.sol/IPolicyService.json +7 -1
  90. package/artifacts/contracts/product/IPricingService.sol/IPricingService.dbg.json +1 -1
  91. package/artifacts/contracts/product/IPricingService.sol/IPricingService.json +7 -1
  92. package/artifacts/contracts/product/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  93. package/artifacts/contracts/product/IProductComponent.sol/IProductComponent.json +11 -5
  94. package/artifacts/contracts/product/IProductService.sol/IProductService.dbg.json +1 -1
  95. package/artifacts/contracts/product/IProductService.sol/IProductService.json +7 -1
  96. package/artifacts/contracts/product/PolicyService.sol/PolicyService.dbg.json +1 -1
  97. package/artifacts/contracts/product/PolicyService.sol/PolicyService.json +59 -45
  98. package/artifacts/contracts/product/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +1 -1
  99. package/artifacts/contracts/product/PolicyServiceManager.sol/PolicyServiceManager.json +104 -42
  100. package/artifacts/contracts/product/PricingService.sol/PricingService.dbg.json +1 -1
  101. package/artifacts/contracts/product/PricingService.sol/PricingService.json +69 -55
  102. package/artifacts/contracts/product/PricingServiceManager.sol/PricingServiceManager.dbg.json +1 -1
  103. package/artifacts/contracts/product/PricingServiceManager.sol/PricingServiceManager.json +109 -47
  104. package/artifacts/contracts/product/Product.sol/Product.dbg.json +1 -1
  105. package/artifacts/contracts/product/Product.sol/Product.json +18 -12
  106. package/artifacts/contracts/product/ProductService.sol/ProductService.dbg.json +1 -1
  107. package/artifacts/contracts/product/ProductService.sol/ProductService.json +25 -19
  108. package/artifacts/contracts/product/ProductServiceManager.sol/ProductServiceManager.dbg.json +1 -1
  109. package/artifacts/contracts/product/ProductServiceManager.sol/ProductServiceManager.json +87 -29
  110. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  111. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +2 -2
  112. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  113. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +150 -53
  114. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  115. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +187 -67
  116. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  117. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  118. package/artifacts/contracts/registry/Registry.sol/Registry.json +328 -103
  119. package/artifacts/contracts/registry/RegistryAdmin.sol/RegistryAdmin.dbg.json +4 -0
  120. package/artifacts/contracts/registry/RegistryAdmin.sol/RegistryAdmin.json +407 -0
  121. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  122. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +197 -72
  123. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  124. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +87 -39
  125. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +1 -1
  126. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +752 -148
  127. package/artifacts/contracts/registry/ServiceAuthorizationsLib.sol/ServiceAuthorizationsLib.dbg.json +1 -1
  128. package/artifacts/contracts/registry/ServiceAuthorizationsLib.sol/ServiceAuthorizationsLib.json +2 -2
  129. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
  130. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +185 -135
  131. package/artifacts/contracts/shared/AccessManagerCustom.sol/AccessManagerCustom.dbg.json +4 -0
  132. package/artifacts/contracts/shared/AccessManagerCustom.sol/AccessManagerCustom.json +1193 -0
  133. package/artifacts/contracts/shared/AccessManagerExtended.sol/AccessManagerExtended.dbg.json +4 -0
  134. package/artifacts/contracts/shared/AccessManagerExtended.sol/AccessManagerExtended.json +1715 -0
  135. package/artifacts/contracts/shared/AccessManagerExtendedInitializeable.sol/AccessManagerExtendedInitializeable.dbg.json +4 -0
  136. package/artifacts/contracts/shared/AccessManagerExtendedInitializeable.sol/AccessManagerExtendedInitializeable.json +1728 -0
  137. package/artifacts/contracts/shared/AccessManagerExtendedWithDisable.sol/AccessManagerExtendedWithDisable.dbg.json +4 -0
  138. package/artifacts/contracts/shared/AccessManagerExtendedWithDisable.sol/AccessManagerExtendedWithDisable.json +1806 -0
  139. package/artifacts/contracts/shared/AccessManagerExtendedWithDisableInitializeable.sol/AccessManagerExtendedWithDisableInitializeable.dbg.json +4 -0
  140. package/artifacts/contracts/shared/AccessManagerExtendedWithDisableInitializeable.sol/AccessManagerExtendedWithDisableInitializeable.json +1824 -0
  141. package/artifacts/contracts/shared/Component.sol/Component.dbg.json +1 -1
  142. package/artifacts/contracts/shared/Component.sol/Component.json +18 -12
  143. package/artifacts/contracts/shared/ComponentService.sol/ComponentService.dbg.json +1 -1
  144. package/artifacts/contracts/shared/ComponentService.sol/ComponentService.json +92 -63
  145. package/artifacts/contracts/shared/ComponentServiceManager.sol/ComponentServiceManager.dbg.json +1 -1
  146. package/artifacts/contracts/shared/ComponentServiceManager.sol/ComponentServiceManager.json +102 -46
  147. package/artifacts/contracts/shared/ComponentVerifyingService.sol/ComponentVerifyingService.dbg.json +1 -1
  148. package/artifacts/contracts/shared/ComponentVerifyingService.sol/ComponentVerifyingService.json +7 -1
  149. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  150. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +2 -2
  151. package/artifacts/contracts/shared/IAccessManagerExtended.sol/IAccessManagerExtended.dbg.json +4 -0
  152. package/artifacts/contracts/shared/IAccessManagerExtended.sol/IAccessManagerExtended.json +1562 -0
  153. package/artifacts/contracts/shared/IAccessManagerExtendedWithDisable.sol/IAccessManagerExtendedWithDisable.dbg.json +4 -0
  154. package/artifacts/contracts/shared/IAccessManagerExtendedWithDisable.sol/IAccessManagerExtendedWithDisable.json +1600 -0
  155. package/artifacts/contracts/shared/IComponent.sol/IComponent.dbg.json +1 -1
  156. package/artifacts/contracts/shared/IComponent.sol/IComponent.json +11 -5
  157. package/artifacts/contracts/shared/IComponentService.sol/IComponentService.dbg.json +1 -1
  158. package/artifacts/contracts/shared/IComponentService.sol/IComponentService.json +14 -1
  159. package/artifacts/contracts/shared/IInstanceLinkedComponent.sol/IInstanceLinkedComponent.dbg.json +1 -1
  160. package/artifacts/contracts/shared/IInstanceLinkedComponent.sol/IInstanceLinkedComponent.json +11 -5
  161. package/artifacts/contracts/shared/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  162. package/artifacts/contracts/shared/IKeyValueStore.sol/IKeyValueStore.json +0 -10
  163. package/artifacts/contracts/shared/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  164. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  165. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +7 -1
  166. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +1 -1
  167. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +21 -3
  168. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  169. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +7 -1
  170. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +1 -1
  171. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
  172. package/artifacts/contracts/shared/IService.sol/IService.json +7 -1
  173. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  174. package/artifacts/contracts/shared/InitializableCustom.sol/InitializableCustom.dbg.json +4 -0
  175. package/artifacts/contracts/shared/InitializableCustom.sol/InitializableCustom.json +39 -0
  176. package/artifacts/contracts/shared/InstanceLinkedComponent.sol/InstanceLinkedComponent.dbg.json +1 -1
  177. package/artifacts/contracts/shared/InstanceLinkedComponent.sol/InstanceLinkedComponent.json +18 -12
  178. package/artifacts/contracts/shared/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  179. package/artifacts/contracts/shared/KeyValueStore.sol/KeyValueStore.json +10 -20
  180. package/artifacts/contracts/shared/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  181. package/artifacts/contracts/shared/Lifecycle.sol/Lifecycle.json +6 -6
  182. package/artifacts/contracts/shared/NftIdSetManager.sol/NftIdSetManager.dbg.json +4 -0
  183. package/artifacts/contracts/shared/NftIdSetManager.sol/NftIdSetManager.json +306 -0
  184. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  185. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +13 -7
  186. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +1 -1
  187. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +31 -13
  188. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  189. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +64 -16
  190. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  191. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +15 -9
  192. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +1 -1
  193. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +2 -2
  194. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
  195. package/artifacts/contracts/shared/Service.sol/Service.json +7 -1
  196. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  197. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +2 -2
  198. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  199. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +2 -2
  200. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  201. package/artifacts/contracts/staking/IStaking.sol/IStaking.dbg.json +1 -1
  202. package/artifacts/contracts/staking/IStaking.sol/IStaking.json +424 -593
  203. package/artifacts/contracts/staking/IStakingService.sol/IStakingService.dbg.json +1 -1
  204. package/artifacts/contracts/staking/IStakingService.sol/IStakingService.json +497 -49
  205. package/artifacts/contracts/staking/StakeManagerLib.sol/StakeManagerLib.dbg.json +4 -0
  206. package/artifacts/contracts/staking/StakeManagerLib.sol/StakeManagerLib.json +444 -0
  207. package/artifacts/contracts/staking/Staking.sol/Staking.dbg.json +1 -1
  208. package/artifacts/contracts/staking/Staking.sol/Staking.json +598 -627
  209. package/artifacts/contracts/staking/StakingManager.sol/StakingManager.dbg.json +1 -1
  210. package/artifacts/contracts/staking/StakingManager.sol/StakingManager.json +149 -48
  211. package/artifacts/contracts/staking/StakingReader.sol/StakingReader.dbg.json +4 -0
  212. package/artifacts/contracts/staking/StakingReader.sol/StakingReader.json +592 -0
  213. package/artifacts/contracts/staking/StakingService.sol/StakingService.dbg.json +1 -1
  214. package/artifacts/contracts/staking/StakingService.sol/StakingService.json +593 -74
  215. package/artifacts/contracts/staking/StakingServiceManager.sol/StakingServiceManager.dbg.json +1 -1
  216. package/artifacts/contracts/staking/StakingServiceManager.sol/StakingServiceManager.json +119 -29
  217. package/artifacts/contracts/staking/StakingStore.sol/StakingStore.dbg.json +4 -0
  218. package/artifacts/contracts/staking/StakingStore.sol/StakingStore.json +2189 -0
  219. package/artifacts/contracts/staking/TargetManagerLib.sol/TargetManagerLib.dbg.json +4 -0
  220. package/artifacts/contracts/staking/TargetManagerLib.sol/TargetManagerLib.json +571 -0
  221. package/artifacts/contracts/type/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  222. package/artifacts/contracts/type/AddressSet.sol/LibAddressSet.json +2 -2
  223. package/artifacts/contracts/type/Amount.sol/AmountLib.dbg.json +1 -1
  224. package/artifacts/contracts/type/Amount.sol/AmountLib.json +68 -4
  225. package/artifacts/contracts/type/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  226. package/artifacts/contracts/type/Blocknumber.sol/BlocknumberLib.json +40 -2
  227. package/artifacts/contracts/type/ClaimId.sol/ClaimIdLib.dbg.json +1 -1
  228. package/artifacts/contracts/type/ClaimId.sol/ClaimIdLib.json +2 -2
  229. package/artifacts/contracts/type/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
  230. package/artifacts/contracts/type/DistributorType.sol/DistributorTypeLib.json +2 -2
  231. package/artifacts/contracts/type/Fee.sol/FeeLib.dbg.json +1 -1
  232. package/artifacts/contracts/type/Fee.sol/FeeLib.json +2 -2
  233. package/artifacts/contracts/type/Key32.sol/Key32Lib.dbg.json +1 -1
  234. package/artifacts/contracts/type/Key32.sol/Key32Lib.json +2 -2
  235. package/artifacts/contracts/type/NftId.sol/NftIdLib.dbg.json +1 -1
  236. package/artifacts/contracts/type/NftId.sol/NftIdLib.json +28 -4
  237. package/artifacts/contracts/type/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  238. package/artifacts/contracts/type/NftIdSet.sol/LibNftIdSet.json +2 -2
  239. package/artifacts/contracts/type/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  240. package/artifacts/contracts/type/ObjectType.sol/ObjectTypeLib.json +15 -2
  241. package/artifacts/contracts/type/PayoutId.sol/PayoutIdLib.dbg.json +1 -1
  242. package/artifacts/contracts/type/PayoutId.sol/PayoutIdLib.json +2 -2
  243. package/artifacts/contracts/type/Referral.sol/ReferralLib.dbg.json +1 -1
  244. package/artifacts/contracts/type/Referral.sol/ReferralLib.json +2 -2
  245. package/artifacts/contracts/type/RequestId.sol/RequestIdLib.dbg.json +4 -0
  246. package/artifacts/contracts/type/RequestId.sol/RequestIdLib.json +204 -0
  247. package/artifacts/contracts/type/RiskId.sol/RiskIdLib.dbg.json +1 -1
  248. package/artifacts/contracts/type/RiskId.sol/RiskIdLib.json +2 -2
  249. package/artifacts/contracts/type/RoleId.sol/RoleIdLib.dbg.json +1 -1
  250. package/artifacts/contracts/type/RoleId.sol/RoleIdLib.json +2 -2
  251. package/artifacts/contracts/type/Seconds.sol/SecondsLib.dbg.json +1 -1
  252. package/artifacts/contracts/type/Seconds.sol/SecondsLib.json +76 -2
  253. package/artifacts/contracts/type/StateId.sol/StateIdLib.dbg.json +1 -1
  254. package/artifacts/contracts/type/StateId.sol/StateIdLib.json +2 -2
  255. package/artifacts/contracts/type/Timestamp.sol/TimestampLib.dbg.json +1 -1
  256. package/artifacts/contracts/type/Timestamp.sol/TimestampLib.json +17 -4
  257. package/artifacts/contracts/type/UFixed.sol/MathLib.dbg.json +1 -1
  258. package/artifacts/contracts/type/UFixed.sol/UFixedLib.dbg.json +1 -1
  259. package/artifacts/contracts/type/Version.sol/VersionLib.dbg.json +1 -1
  260. package/artifacts/contracts/type/Version.sol/VersionLib.json +2 -2
  261. package/artifacts/contracts/type/Version.sol/VersionPartLib.dbg.json +1 -1
  262. package/artifacts/contracts/type/Version.sol/VersionPartLib.json +2 -2
  263. package/contracts/distribution/Distribution.sol +2 -4
  264. package/contracts/distribution/DistributionService.sol +3 -2
  265. package/contracts/distribution/DistributionServiceManager.sol +9 -18
  266. package/contracts/distribution/IDistributionComponent.sol +1 -1
  267. package/contracts/distribution/IDistributionService.sol +1 -1
  268. package/contracts/instance/IInstance.sol +11 -6
  269. package/contracts/instance/IInstanceService.sol +3 -5
  270. package/contracts/instance/Instance.sol +29 -21
  271. package/contracts/instance/InstanceAdmin.sol +331 -0
  272. package/contracts/instance/InstanceAuthorizationsLib.sol +192 -151
  273. package/contracts/instance/InstanceReader.sol +30 -6
  274. package/contracts/instance/InstanceService.sol +69 -55
  275. package/contracts/instance/InstanceServiceManager.sol +10 -20
  276. package/contracts/instance/InstanceStore.sol +64 -42
  277. package/contracts/instance/base/BalanceStore.sol +1 -1
  278. package/contracts/instance/base/ObjectCounter.sol +21 -0
  279. package/contracts/instance/module/IAccess.sol +2 -10
  280. package/contracts/mock/Dip.sol +26 -0
  281. package/contracts/oracle/IOracle.sol +20 -0
  282. package/contracts/oracle/IOracleComponent.sol +32 -0
  283. package/contracts/oracle/IOracleService.sol +65 -0
  284. package/contracts/oracle/Oracle.sol +145 -0
  285. package/contracts/oracle/OracleService.sol +277 -0
  286. package/contracts/oracle/OracleServiceManager.sol +42 -0
  287. package/contracts/pool/BundleService.sol +6 -23
  288. package/contracts/pool/BundleServiceManager.sol +9 -18
  289. package/contracts/pool/IBundleService.sol +1 -1
  290. package/contracts/pool/IPoolService.sol +4 -1
  291. package/contracts/pool/PoolService.sol +45 -13
  292. package/contracts/pool/PoolServiceManager.sol +9 -18
  293. package/contracts/product/ApplicationService.sol +6 -5
  294. package/contracts/product/ApplicationServiceManager.sol +9 -6
  295. package/contracts/product/ClaimService.sol +13 -7
  296. package/contracts/product/ClaimServiceManager.sol +9 -6
  297. package/contracts/product/IApplicationService.sol +1 -1
  298. package/contracts/product/IClaimService.sol +7 -1
  299. package/contracts/product/IPolicyService.sol +1 -1
  300. package/contracts/product/IPricingService.sol +1 -1
  301. package/contracts/product/IProductService.sol +1 -1
  302. package/contracts/product/PolicyService.sol +10 -6
  303. package/contracts/product/PolicyServiceManager.sol +9 -21
  304. package/contracts/product/PricingService.sol +10 -9
  305. package/contracts/product/PricingServiceManager.sol +9 -18
  306. package/contracts/product/Product.sol +1 -1
  307. package/contracts/product/ProductService.sol +7 -5
  308. package/contracts/product/ProductServiceManager.sol +9 -21
  309. package/contracts/registry/ChainNft.sol +1 -0
  310. package/contracts/registry/IRegistry.sol +37 -24
  311. package/contracts/registry/IRegistryService.sol +26 -36
  312. package/contracts/registry/Registry.sol +164 -117
  313. package/contracts/registry/RegistryAdmin.sol +237 -0
  314. package/contracts/registry/RegistryService.sol +22 -83
  315. package/contracts/registry/RegistryServiceManager.sol +21 -23
  316. package/contracts/registry/ReleaseManager.sol +448 -223
  317. package/contracts/registry/TokenRegistry.sol +187 -59
  318. package/contracts/shared/AccessManagerCustom.sol +736 -0
  319. package/contracts/shared/AccessManagerExtended.sol +470 -0
  320. package/contracts/shared/AccessManagerExtendedInitializeable.sol +13 -0
  321. package/contracts/shared/AccessManagerExtendedWithDisable.sol +137 -0
  322. package/contracts/shared/AccessManagerExtendedWithDisableInitializeable.sol +14 -0
  323. package/contracts/shared/Component.sol +8 -13
  324. package/contracts/shared/ComponentService.sol +35 -13
  325. package/contracts/shared/ComponentVerifyingService.sol +13 -7
  326. package/contracts/shared/ERC165.sol +1 -1
  327. package/contracts/shared/IAccessManagerExtended.sol +74 -0
  328. package/contracts/shared/IAccessManagerExtendedWithDisable.sol +18 -0
  329. package/contracts/shared/IComponent.sol +3 -7
  330. package/contracts/shared/IComponentService.sol +11 -0
  331. package/contracts/shared/IKeyValueStore.sol +1 -1
  332. package/contracts/shared/INftOwnable.sol +1 -1
  333. package/contracts/shared/IPolicyHolder.sol +6 -1
  334. package/contracts/shared/IService.sol +1 -1
  335. package/contracts/shared/InitializableCustom.sol +177 -0
  336. package/contracts/shared/InstanceLinkedComponent.sol +1 -2
  337. package/contracts/shared/KeyValueStore.sol +24 -66
  338. package/contracts/shared/Lifecycle.sol +11 -2
  339. package/contracts/shared/NftIdSetManager.sol +65 -0
  340. package/contracts/shared/NftOwnable.sol +2 -13
  341. package/contracts/shared/PolicyHolder.sol +21 -13
  342. package/contracts/shared/ProxyManager.sol +31 -1
  343. package/contracts/shared/Service.sol +1 -1
  344. package/contracts/staking/IStaking.sol +127 -36
  345. package/contracts/staking/IStakingService.sol +83 -39
  346. package/contracts/staking/StakeManagerLib.sol +179 -0
  347. package/contracts/staking/Staking.sol +432 -93
  348. package/contracts/staking/StakingManager.sol +22 -14
  349. package/contracts/staking/StakingReader.sol +187 -0
  350. package/contracts/staking/StakingService.sol +245 -39
  351. package/contracts/staking/StakingServiceManager.sol +8 -4
  352. package/contracts/staking/StakingStore.sol +572 -0
  353. package/contracts/staking/TargetManagerLib.sol +207 -0
  354. package/contracts/type/AddressSet.sol +1 -1
  355. package/contracts/type/Amount.sol +15 -1
  356. package/contracts/type/Blocknumber.sol +14 -2
  357. package/contracts/type/Fee.sol +1 -1
  358. package/contracts/type/NftId.sol +9 -4
  359. package/contracts/type/NftIdSet.sol +1 -1
  360. package/contracts/type/ObjectType.sol +12 -9
  361. package/contracts/type/Referral.sol +1 -1
  362. package/contracts/type/RequestId.sol +75 -0
  363. package/contracts/type/RiskId.sol +1 -1
  364. package/contracts/type/RoleId.sol +16 -8
  365. package/contracts/type/Seconds.sol +27 -0
  366. package/contracts/type/StateId.sol +27 -2
  367. package/contracts/type/Timestamp.sol +6 -2
  368. package/contracts/type/Version.sol +1 -1
  369. package/package.json +3 -3
  370. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +0 -4
  371. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +0 -1348
  372. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +0 -4
  373. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +0 -308
  374. package/artifacts/contracts/shared/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +0 -4
  375. package/artifacts/contracts/shared/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +0 -1206
  376. package/contracts/instance/InstanceAccessManager.sol +0 -543
  377. package/contracts/registry/RegistryAccessManager.sol +0 -213
  378. package/contracts/shared/AccessManagerUpgradeableInitializeable.sol +0 -13
@@ -106,116 +106,276 @@
106
106
  {
107
107
  "inputs": [
108
108
  {
109
- "internalType": "ObjectType",
110
- "name": "objectType",
111
- "type": "uint8"
109
+ "internalType": "NftId",
110
+ "name": "nftId",
111
+ "type": "uint96"
112
+ }
113
+ ],
114
+ "name": "ErrorNftOwnableAlreadyLinked",
115
+ "type": "error"
116
+ },
117
+ {
118
+ "inputs": [
119
+ {
120
+ "internalType": "address",
121
+ "name": "contractAddress",
122
+ "type": "address"
123
+ }
124
+ ],
125
+ "name": "ErrorNftOwnableContractNotRegistered",
126
+ "type": "error"
127
+ },
128
+ {
129
+ "inputs": [],
130
+ "name": "ErrorNftOwnableInitialOwnerZero",
131
+ "type": "error"
132
+ },
133
+ {
134
+ "inputs": [
135
+ {
136
+ "internalType": "address",
137
+ "name": "account",
138
+ "type": "address"
139
+ }
140
+ ],
141
+ "name": "ErrorNftOwnableNotOwner",
142
+ "type": "error"
143
+ },
144
+ {
145
+ "inputs": [
146
+ {
147
+ "internalType": "address",
148
+ "name": "registryAddress",
149
+ "type": "address"
150
+ }
151
+ ],
152
+ "name": "ErrorNotRegistry",
153
+ "type": "error"
154
+ },
155
+ {
156
+ "inputs": [
157
+ {
158
+ "internalType": "address",
159
+ "name": "owner",
160
+ "type": "address"
112
161
  },
113
162
  {
114
- "internalType": "StateId",
115
- "name": "fromStateId",
116
- "type": "uint8"
163
+ "internalType": "address",
164
+ "name": "tokenHandler",
165
+ "type": "address"
117
166
  },
118
167
  {
119
- "internalType": "StateId",
120
- "name": "toStateId",
121
- "type": "uint8"
168
+ "internalType": "uint256",
169
+ "name": "amount",
170
+ "type": "uint256"
171
+ },
172
+ {
173
+ "internalType": "uint256",
174
+ "name": "dipAllowance",
175
+ "type": "uint256"
122
176
  }
123
177
  ],
124
- "name": "ErrorInvalidStateTransition",
178
+ "name": "ErrorStakingDipAllowanceInsufficient",
125
179
  "type": "error"
126
180
  },
127
181
  {
128
182
  "inputs": [
129
183
  {
130
- "internalType": "Key32",
131
- "name": "key",
132
- "type": "bytes32"
184
+ "internalType": "address",
185
+ "name": "owner",
186
+ "type": "address"
133
187
  },
134
188
  {
135
- "internalType": "ObjectType",
136
- "name": "objectType",
137
- "type": "uint8"
189
+ "internalType": "uint256",
190
+ "name": "amount",
191
+ "type": "uint256"
192
+ },
193
+ {
194
+ "internalType": "uint256",
195
+ "name": "dipBalance",
196
+ "type": "uint256"
138
197
  }
139
198
  ],
140
- "name": "ErrorKeyValueStoreAlreadyCreated",
199
+ "name": "ErrorStakingDipBalanceInsufficient",
141
200
  "type": "error"
142
201
  },
143
202
  {
144
203
  "inputs": [
145
204
  {
146
- "internalType": "Key32",
147
- "name": "key",
148
- "type": "bytes32"
205
+ "internalType": "NftId",
206
+ "name": "targetNftId",
207
+ "type": "uint96"
208
+ },
209
+ {
210
+ "internalType": "Seconds",
211
+ "name": "maxLockingPeriod",
212
+ "type": "uint40"
213
+ },
214
+ {
215
+ "internalType": "Seconds",
216
+ "name": "lockingPeriod",
217
+ "type": "uint40"
149
218
  }
150
219
  ],
151
- "name": "ErrorKeyValueStoreNotExisting",
220
+ "name": "ErrorStakingLockingPeriodTooLong",
152
221
  "type": "error"
153
222
  },
154
223
  {
155
224
  "inputs": [
156
225
  {
157
- "internalType": "Key32",
158
- "name": "key",
159
- "type": "bytes32"
226
+ "internalType": "NftId",
227
+ "name": "targetNftId",
228
+ "type": "uint96"
160
229
  }
161
230
  ],
162
- "name": "ErrorKeyValueStoreStateZero",
231
+ "name": "ErrorStakingLockingPeriodZero",
163
232
  "type": "error"
164
233
  },
165
234
  {
166
235
  "inputs": [
167
236
  {
168
- "internalType": "ObjectType",
169
- "name": "objectType",
170
- "type": "uint8"
237
+ "internalType": "NftId",
238
+ "name": "nftId",
239
+ "type": "uint96"
171
240
  }
172
241
  ],
173
- "name": "ErrorKeyValueStoreTypeUndefined",
242
+ "name": "ErrorStakingNotNftOwner",
174
243
  "type": "error"
175
244
  },
176
245
  {
177
246
  "inputs": [
178
247
  {
179
248
  "internalType": "NftId",
180
- "name": "nftId",
249
+ "name": "stakeNftId",
181
250
  "type": "uint96"
182
251
  }
183
252
  ],
184
- "name": "ErrorNftOwnableAlreadyLinked",
253
+ "name": "ErrorStakingNotStake",
254
+ "type": "error"
255
+ },
256
+ {
257
+ "inputs": [],
258
+ "name": "ErrorStakingNotStakingOwner",
259
+ "type": "error"
260
+ },
261
+ {
262
+ "inputs": [
263
+ {
264
+ "internalType": "NftId",
265
+ "name": "targetNftId",
266
+ "type": "uint96"
267
+ }
268
+ ],
269
+ "name": "ErrorStakingNotTarget",
270
+ "type": "error"
271
+ },
272
+ {
273
+ "inputs": [
274
+ {
275
+ "internalType": "NftId",
276
+ "name": "targetNftId",
277
+ "type": "uint96"
278
+ },
279
+ {
280
+ "internalType": "UFixed",
281
+ "name": "maxRewardRate",
282
+ "type": "uint256"
283
+ },
284
+ {
285
+ "internalType": "UFixed",
286
+ "name": "rewardRate",
287
+ "type": "uint256"
288
+ }
289
+ ],
290
+ "name": "ErrorStakingRewardRateTooHigh",
291
+ "type": "error"
292
+ },
293
+ {
294
+ "inputs": [
295
+ {
296
+ "internalType": "NftId",
297
+ "name": "targetNftId",
298
+ "type": "uint96"
299
+ }
300
+ ],
301
+ "name": "ErrorStakingStakeAmountZero",
185
302
  "type": "error"
186
303
  },
187
304
  {
188
305
  "inputs": [
189
306
  {
190
307
  "internalType": "address",
191
- "name": "contractAddress",
308
+ "name": "stakingByStakingReader",
192
309
  "type": "address"
193
310
  }
194
311
  ],
195
- "name": "ErrorNftOwnableContractNotRegistered",
312
+ "name": "ErrorStakingStakingReaderStakingMismatch",
313
+ "type": "error"
314
+ },
315
+ {
316
+ "inputs": [
317
+ {
318
+ "internalType": "NftId",
319
+ "name": "targetNftId",
320
+ "type": "uint96"
321
+ }
322
+ ],
323
+ "name": "ErrorStakingTargetAlreadyRegistered",
196
324
  "type": "error"
197
325
  },
198
326
  {
199
327
  "inputs": [],
200
- "name": "ErrorNftOwnableInitialOwnerZero",
328
+ "name": "ErrorStakingTargetNftIdZero",
329
+ "type": "error"
330
+ },
331
+ {
332
+ "inputs": [
333
+ {
334
+ "internalType": "NftId",
335
+ "name": "targetNftId",
336
+ "type": "uint96"
337
+ }
338
+ ],
339
+ "name": "ErrorStakingTargetNotActive",
340
+ "type": "error"
341
+ },
342
+ {
343
+ "inputs": [
344
+ {
345
+ "internalType": "NftId",
346
+ "name": "targetNftId",
347
+ "type": "uint96"
348
+ }
349
+ ],
350
+ "name": "ErrorStakingTargetNotFound",
201
351
  "type": "error"
202
352
  },
203
353
  {
204
354
  "inputs": [
355
+ {
356
+ "internalType": "NftId",
357
+ "name": "targetNftId",
358
+ "type": "uint96"
359
+ },
360
+ {
361
+ "internalType": "uint256",
362
+ "name": "chainId",
363
+ "type": "uint256"
364
+ },
205
365
  {
206
366
  "internalType": "address",
207
- "name": "account",
367
+ "name": "token",
208
368
  "type": "address"
209
369
  }
210
370
  ],
211
- "name": "ErrorNftOwnableNotOwner",
371
+ "name": "ErrorStakingTargetTokenNotFound",
212
372
  "type": "error"
213
373
  },
214
374
  {
215
375
  "inputs": [
216
376
  {
217
377
  "internalType": "NftId",
218
- "name": "nftId",
378
+ "name": "targetNftId",
219
379
  "type": "uint96"
220
380
  },
221
381
  {
@@ -224,18 +384,44 @@
224
384
  "type": "uint8"
225
385
  }
226
386
  ],
227
- "name": "ErrorNoLifecycle",
387
+ "name": "ErrorStakingTargetTypeNotSupported",
228
388
  "type": "error"
229
389
  },
230
390
  {
231
391
  "inputs": [
392
+ {
393
+ "internalType": "NftId",
394
+ "name": "targetNftId",
395
+ "type": "uint96"
396
+ },
397
+ {
398
+ "internalType": "ObjectType",
399
+ "name": "expectedObjectType",
400
+ "type": "uint8"
401
+ },
402
+ {
403
+ "internalType": "ObjectType",
404
+ "name": "actualObjectType",
405
+ "type": "uint8"
406
+ }
407
+ ],
408
+ "name": "ErrorStakingTargetUnexpectedObjectType",
409
+ "type": "error"
410
+ },
411
+ {
412
+ "inputs": [
413
+ {
414
+ "internalType": "uint256",
415
+ "name": "chainId",
416
+ "type": "uint256"
417
+ },
232
418
  {
233
419
  "internalType": "address",
234
- "name": "registryAddress",
420
+ "name": "token",
235
421
  "type": "address"
236
422
  }
237
423
  ],
238
- "name": "ErrorNotRegistry",
424
+ "name": "ErrorStakingTokenNotRegistered",
239
425
  "type": "error"
240
426
  },
241
427
  {
@@ -262,9 +448,9 @@
262
448
  },
263
449
  {
264
450
  "indexed": false,
265
- "internalType": "uint256",
451
+ "internalType": "Amount",
266
452
  "name": "limit",
267
- "type": "uint256"
453
+ "type": "uint96"
268
454
  }
269
455
  ],
270
456
  "name": "LogComponentTokenHandlerApproved",
@@ -319,79 +505,24 @@
319
505
  "inputs": [
320
506
  {
321
507
  "indexed": false,
322
- "internalType": "ObjectType",
323
- "name": "objectType",
324
- "type": "uint8"
325
- },
326
- {
327
- "indexed": false,
328
- "internalType": "KeyId",
329
- "name": "keyId",
330
- "type": "bytes31"
331
- },
332
- {
333
- "indexed": false,
334
- "internalType": "StateId",
335
- "name": "state",
336
- "type": "uint8"
337
- },
338
- {
339
- "indexed": false,
340
- "internalType": "address",
341
- "name": "createdBy",
342
- "type": "address"
343
- },
344
- {
345
- "indexed": false,
346
- "internalType": "address",
347
- "name": "txOrigin",
348
- "type": "address"
349
- }
350
- ],
351
- "name": "LogInfoCreated",
352
- "type": "event"
353
- },
354
- {
355
- "anonymous": false,
356
- "inputs": [
357
- {
358
- "indexed": false,
359
- "internalType": "ObjectType",
360
- "name": "objectType",
361
- "type": "uint8"
362
- },
363
- {
364
- "indexed": false,
365
- "internalType": "KeyId",
366
- "name": "keyId",
367
- "type": "bytes31"
368
- },
369
- {
370
- "indexed": false,
371
- "internalType": "StateId",
372
- "name": "state",
373
- "type": "uint8"
374
- },
375
- {
376
- "indexed": false,
377
- "internalType": "address",
378
- "name": "updatedBy",
379
- "type": "address"
508
+ "internalType": "NftId",
509
+ "name": "targetNftId",
510
+ "type": "uint96"
380
511
  },
381
512
  {
382
513
  "indexed": false,
383
- "internalType": "address",
384
- "name": "txOrigin",
385
- "type": "address"
514
+ "internalType": "Seconds",
515
+ "name": "oldLockingPeriod",
516
+ "type": "uint40"
386
517
  },
387
518
  {
388
519
  "indexed": false,
389
- "internalType": "Blocknumber",
390
- "name": "lastUpdatedIn",
391
- "type": "uint32"
520
+ "internalType": "Seconds",
521
+ "name": "lockingPeriod",
522
+ "type": "uint40"
392
523
  }
393
524
  ],
394
- "name": "LogInfoUpdated",
525
+ "name": "LogStakingLockingPeriodSet",
395
526
  "type": "event"
396
527
  },
397
528
  {
@@ -399,56 +530,63 @@
399
530
  "inputs": [
400
531
  {
401
532
  "indexed": false,
402
- "internalType": "ObjectType",
403
- "name": "objectType",
404
- "type": "uint8"
533
+ "internalType": "NftId",
534
+ "name": "targetNftId",
535
+ "type": "uint96"
405
536
  },
406
537
  {
407
538
  "indexed": false,
408
- "internalType": "KeyId",
409
- "name": "keyId",
410
- "type": "bytes31"
539
+ "internalType": "UFixed",
540
+ "name": "oldRewardRate",
541
+ "type": "uint256"
411
542
  },
412
543
  {
413
544
  "indexed": false,
414
- "internalType": "StateId",
415
- "name": "stateOld",
416
- "type": "uint8"
417
- },
545
+ "internalType": "UFixed",
546
+ "name": "rewardRate",
547
+ "type": "uint256"
548
+ }
549
+ ],
550
+ "name": "LogStakingRewardRateSet",
551
+ "type": "event"
552
+ },
553
+ {
554
+ "anonymous": false,
555
+ "inputs": [
418
556
  {
419
557
  "indexed": false,
420
- "internalType": "StateId",
421
- "name": "stateNew",
422
- "type": "uint8"
558
+ "internalType": "uint256",
559
+ "name": "chainId",
560
+ "type": "uint256"
423
561
  },
424
562
  {
425
563
  "indexed": false,
426
564
  "internalType": "address",
427
- "name": "updatedBy",
565
+ "name": "token",
428
566
  "type": "address"
429
567
  },
430
568
  {
431
569
  "indexed": false,
432
- "internalType": "address",
433
- "name": "txOrigin",
434
- "type": "address"
570
+ "internalType": "UFixed",
571
+ "name": "oldStakingRate",
572
+ "type": "uint256"
435
573
  },
436
574
  {
437
575
  "indexed": false,
438
- "internalType": "Blocknumber",
439
- "name": "lastUpdatedIn",
440
- "type": "uint32"
576
+ "internalType": "UFixed",
577
+ "name": "newStakingRate",
578
+ "type": "uint256"
441
579
  }
442
580
  ],
443
- "name": "LogStateUpdated",
581
+ "name": "LogStakingStakingRateSet",
444
582
  "type": "event"
445
583
  },
446
584
  {
447
585
  "inputs": [
448
586
  {
449
- "internalType": "uint256",
587
+ "internalType": "Amount",
450
588
  "name": "spendingLimitAmount",
451
- "type": "uint256"
589
+ "type": "uint96"
452
590
  }
453
591
  ],
454
592
  "name": "approveTokenHandler",
@@ -473,41 +611,46 @@
473
611
  "inputs": [
474
612
  {
475
613
  "internalType": "NftId",
476
- "name": "targetNftId",
614
+ "name": "stakeNftId",
477
615
  "type": "uint96"
478
- },
479
- {
480
- "internalType": "Timestamp",
481
- "name": "rewardsLastUpdatedAt",
482
- "type": "uint40"
483
616
  }
484
617
  ],
485
- "name": "calculateRewardIncrementAmount",
618
+ "name": "claimRewards",
486
619
  "outputs": [
487
620
  {
488
621
  "internalType": "Amount",
489
- "name": "rewardIncrementAmount",
622
+ "name": "rewardsClaimedAmount",
490
623
  "type": "uint96"
491
624
  }
492
625
  ],
493
- "stateMutability": "view",
626
+ "stateMutability": "nonpayable",
494
627
  "type": "function"
495
628
  },
496
629
  {
497
630
  "inputs": [
498
631
  {
499
- "internalType": "NftId",
500
- "name": "stakeNftId",
632
+ "internalType": "address",
633
+ "name": "from",
634
+ "type": "address"
635
+ },
636
+ {
637
+ "internalType": "Amount",
638
+ "name": "dipAmount",
501
639
  "type": "uint96"
502
640
  }
503
641
  ],
504
- "name": "claimRewards",
642
+ "name": "collectDipAmount",
505
643
  "outputs": [],
506
644
  "stateMutability": "nonpayable",
507
645
  "type": "function"
508
646
  },
509
647
  {
510
648
  "inputs": [
649
+ {
650
+ "internalType": "NftId",
651
+ "name": "stakeNftId",
652
+ "type": "uint96"
653
+ },
511
654
  {
512
655
  "internalType": "NftId",
513
656
  "name": "targetNftId",
@@ -520,13 +663,7 @@
520
663
  }
521
664
  ],
522
665
  "name": "createStake",
523
- "outputs": [
524
- {
525
- "internalType": "NftId",
526
- "name": "stakeNftId",
527
- "type": "uint96"
528
- }
529
- ],
666
+ "outputs": [],
530
667
  "stateMutability": "nonpayable",
531
668
  "type": "function"
532
669
  },
@@ -548,86 +685,15 @@
548
685
  "type": "uint96"
549
686
  }
550
687
  ],
551
- "name": "decreaseTvl",
552
- "outputs": [],
553
- "stateMutability": "nonpayable",
554
- "type": "function"
555
- },
556
- {
557
- "inputs": [
558
- {
559
- "internalType": "Key32",
560
- "name": "key",
561
- "type": "bytes32"
562
- }
563
- ],
564
- "name": "exists",
565
- "outputs": [
566
- {
567
- "internalType": "bool",
568
- "name": "",
569
- "type": "bool"
570
- }
571
- ],
572
- "stateMutability": "view",
573
- "type": "function"
574
- },
575
- {
576
- "inputs": [
577
- {
578
- "internalType": "Key32",
579
- "name": "key",
580
- "type": "bytes32"
581
- }
582
- ],
583
- "name": "get",
688
+ "name": "decreaseTotalValueLocked",
584
689
  "outputs": [
585
690
  {
586
- "components": [
587
- {
588
- "components": [
589
- {
590
- "internalType": "ObjectType",
591
- "name": "objectType",
592
- "type": "uint8"
593
- },
594
- {
595
- "internalType": "StateId",
596
- "name": "state",
597
- "type": "uint8"
598
- },
599
- {
600
- "internalType": "address",
601
- "name": "updatedBy",
602
- "type": "address"
603
- },
604
- {
605
- "internalType": "Blocknumber",
606
- "name": "updatedIn",
607
- "type": "uint32"
608
- },
609
- {
610
- "internalType": "Blocknumber",
611
- "name": "createdIn",
612
- "type": "uint32"
613
- }
614
- ],
615
- "internalType": "struct IKeyValueStore.Metadata",
616
- "name": "metadata",
617
- "type": "tuple"
618
- },
619
- {
620
- "internalType": "bytes",
621
- "name": "data",
622
- "type": "bytes"
623
- }
624
- ],
625
- "internalType": "struct IKeyValueStore.Value",
626
- "name": "value",
627
- "type": "tuple"
691
+ "internalType": "Amount",
692
+ "name": "newBalance",
693
+ "type": "uint96"
628
694
  }
629
695
  ],
630
- "stateMutability": "view",
696
+ "stateMutability": "nonpayable",
631
697
  "type": "function"
632
698
  },
633
699
  {
@@ -675,25 +741,6 @@
675
741
  "stateMutability": "view",
676
742
  "type": "function"
677
743
  },
678
- {
679
- "inputs": [
680
- {
681
- "internalType": "Key32",
682
- "name": "key",
683
- "type": "bytes32"
684
- }
685
- ],
686
- "name": "getData",
687
- "outputs": [
688
- {
689
- "internalType": "bytes",
690
- "name": "data",
691
- "type": "bytes"
692
- }
693
- ],
694
- "stateMutability": "view",
695
- "type": "function"
696
- },
697
744
  {
698
745
  "inputs": [],
699
746
  "name": "getInitialComponentInfo",
@@ -789,71 +836,6 @@
789
836
  "stateMutability": "view",
790
837
  "type": "function"
791
838
  },
792
- {
793
- "inputs": [
794
- {
795
- "internalType": "ObjectType",
796
- "name": "objectType",
797
- "type": "uint8"
798
- }
799
- ],
800
- "name": "getInitialState",
801
- "outputs": [
802
- {
803
- "internalType": "StateId",
804
- "name": "",
805
- "type": "uint8"
806
- }
807
- ],
808
- "stateMutability": "view",
809
- "type": "function"
810
- },
811
- {
812
- "inputs": [
813
- {
814
- "internalType": "Key32",
815
- "name": "key",
816
- "type": "bytes32"
817
- }
818
- ],
819
- "name": "getMetadata",
820
- "outputs": [
821
- {
822
- "components": [
823
- {
824
- "internalType": "ObjectType",
825
- "name": "objectType",
826
- "type": "uint8"
827
- },
828
- {
829
- "internalType": "StateId",
830
- "name": "state",
831
- "type": "uint8"
832
- },
833
- {
834
- "internalType": "address",
835
- "name": "updatedBy",
836
- "type": "address"
837
- },
838
- {
839
- "internalType": "Blocknumber",
840
- "name": "updatedIn",
841
- "type": "uint32"
842
- },
843
- {
844
- "internalType": "Blocknumber",
845
- "name": "createdIn",
846
- "type": "uint32"
847
- }
848
- ],
849
- "internalType": "struct IKeyValueStore.Metadata",
850
- "name": "metadata",
851
- "type": "tuple"
852
- }
853
- ],
854
- "stateMutability": "view",
855
- "type": "function"
856
- },
857
839
  {
858
840
  "inputs": [],
859
841
  "name": "getName",
@@ -864,112 +846,16 @@
864
846
  "type": "string"
865
847
  }
866
848
  ],
867
- "stateMutability": "view",
868
- "type": "function"
869
- },
870
- {
871
- "inputs": [],
872
- "name": "getNftId",
873
- "outputs": [
874
- {
875
- "internalType": "NftId",
876
- "name": "",
877
- "type": "uint96"
878
- }
879
- ],
880
- "stateMutability": "view",
881
- "type": "function"
882
- },
883
- {
884
- "inputs": [],
885
- "name": "getOwner",
886
- "outputs": [
887
- {
888
- "internalType": "address",
889
- "name": "",
890
- "type": "address"
891
- }
892
- ],
893
- "stateMutability": "view",
894
- "type": "function"
895
- },
896
- {
897
- "inputs": [],
898
- "name": "getRegistry",
899
- "outputs": [
900
- {
901
- "internalType": "contract IRegistry",
902
- "name": "",
903
- "type": "address"
904
- }
905
- ],
906
- "stateMutability": "view",
907
- "type": "function"
908
- },
909
- {
910
- "inputs": [
911
- {
912
- "internalType": "NftId",
913
- "name": "targetNftId",
914
- "type": "uint96"
915
- }
916
- ],
917
- "name": "getRewardRate",
918
- "outputs": [
919
- {
920
- "internalType": "UFixed",
921
- "name": "rewardRate",
922
- "type": "uint256"
923
- }
924
- ],
925
- "stateMutability": "view",
926
- "type": "function"
927
- },
928
- {
929
- "inputs": [
930
- {
931
- "internalType": "NftId",
932
- "name": "targetNftId",
933
- "type": "uint96"
934
- }
935
- ],
936
- "name": "getRewardReserves",
937
- "outputs": [
938
- {
939
- "internalType": "Amount",
940
- "name": "rewardReserveAmount",
941
- "type": "uint96"
942
- }
943
- ],
944
- "stateMutability": "view",
945
- "type": "function"
946
- },
947
- {
948
- "inputs": [],
949
- "name": "getStakeInfo",
950
- "outputs": [
951
- {
952
- "internalType": "NftId",
953
- "name": "stakeNftId",
954
- "type": "uint96"
955
- }
956
- ],
957
- "stateMutability": "view",
958
- "type": "function"
959
- },
960
- {
961
- "inputs": [
962
- {
963
- "internalType": "NftId",
964
- "name": "targetNftId",
965
- "type": "uint96"
966
- }
967
- ],
968
- "name": "getStakedAmount",
849
+ "stateMutability": "view",
850
+ "type": "function"
851
+ },
852
+ {
853
+ "inputs": [],
854
+ "name": "getNftId",
969
855
  "outputs": [
970
856
  {
971
- "internalType": "Amount",
972
- "name": "stakeAmount",
857
+ "internalType": "NftId",
858
+ "name": "",
973
859
  "type": "uint96"
974
860
  }
975
861
  ],
@@ -977,43 +863,39 @@
977
863
  "type": "function"
978
864
  },
979
865
  {
980
- "inputs": [
981
- {
982
- "internalType": "uint256",
983
- "name": "chainId",
984
- "type": "uint256"
985
- },
866
+ "inputs": [],
867
+ "name": "getOwner",
868
+ "outputs": [
986
869
  {
987
870
  "internalType": "address",
988
- "name": "token",
871
+ "name": "",
989
872
  "type": "address"
990
873
  }
991
874
  ],
992
- "name": "getStakingRate",
875
+ "stateMutability": "view",
876
+ "type": "function"
877
+ },
878
+ {
879
+ "inputs": [],
880
+ "name": "getRegistry",
993
881
  "outputs": [
994
882
  {
995
- "internalType": "UFixed",
996
- "name": "stakingRate",
997
- "type": "uint256"
883
+ "internalType": "contract IRegistry",
884
+ "name": "",
885
+ "type": "address"
998
886
  }
999
887
  ],
1000
888
  "stateMutability": "view",
1001
889
  "type": "function"
1002
890
  },
1003
891
  {
1004
- "inputs": [
1005
- {
1006
- "internalType": "Key32",
1007
- "name": "key",
1008
- "type": "bytes32"
1009
- }
1010
- ],
1011
- "name": "getState",
892
+ "inputs": [],
893
+ "name": "getStakingReader",
1012
894
  "outputs": [
1013
895
  {
1014
- "internalType": "StateId",
1015
- "name": "state",
1016
- "type": "uint8"
896
+ "internalType": "contract StakingReader",
897
+ "name": "reader",
898
+ "type": "address"
1017
899
  }
1018
900
  ],
1019
901
  "stateMutability": "view",
@@ -1021,12 +903,12 @@
1021
903
  },
1022
904
  {
1023
905
  "inputs": [],
1024
- "name": "getTargetInfo",
906
+ "name": "getStakingStore",
1025
907
  "outputs": [
1026
908
  {
1027
- "internalType": "NftId",
1028
- "name": "stakeNftId",
1029
- "type": "uint96"
909
+ "internalType": "contract StakingStore",
910
+ "name": "stakingStore",
911
+ "type": "address"
1030
912
  }
1031
913
  ],
1032
914
  "stateMutability": "view",
@@ -1058,30 +940,6 @@
1058
940
  "stateMutability": "view",
1059
941
  "type": "function"
1060
942
  },
1061
- {
1062
- "inputs": [
1063
- {
1064
- "internalType": "NftId",
1065
- "name": "targetNftId",
1066
- "type": "uint96"
1067
- },
1068
- {
1069
- "internalType": "address",
1070
- "name": "token",
1071
- "type": "address"
1072
- }
1073
- ],
1074
- "name": "getTvlAmount",
1075
- "outputs": [
1076
- {
1077
- "internalType": "Amount",
1078
- "name": "tvlAmount",
1079
- "type": "uint96"
1080
- }
1081
- ],
1082
- "stateMutability": "view",
1083
- "type": "function"
1084
- },
1085
943
  {
1086
944
  "inputs": [],
1087
945
  "name": "getVersion",
@@ -1108,25 +966,6 @@
1108
966
  "stateMutability": "view",
1109
967
  "type": "function"
1110
968
  },
1111
- {
1112
- "inputs": [
1113
- {
1114
- "internalType": "ObjectType",
1115
- "name": "objectType",
1116
- "type": "uint8"
1117
- }
1118
- ],
1119
- "name": "hasLifecycle",
1120
- "outputs": [
1121
- {
1122
- "internalType": "bool",
1123
- "name": "",
1124
- "type": "bool"
1125
- }
1126
- ],
1127
- "stateMutability": "view",
1128
- "type": "function"
1129
- },
1130
969
  {
1131
970
  "inputs": [
1132
971
  {
@@ -1145,8 +984,14 @@
1145
984
  "type": "uint96"
1146
985
  }
1147
986
  ],
1148
- "name": "increaseTvl",
1149
- "outputs": [],
987
+ "name": "increaseTotalValueLocked",
988
+ "outputs": [
989
+ {
990
+ "internalType": "Amount",
991
+ "name": "newBalance",
992
+ "type": "uint96"
993
+ }
994
+ ],
1150
995
  "stateMutability": "nonpayable",
1151
996
  "type": "function"
1152
997
  },
@@ -1208,38 +1053,15 @@
1208
1053
  "type": "function"
1209
1054
  },
1210
1055
  {
1211
- "inputs": [
1212
- {
1213
- "internalType": "ObjectType",
1214
- "name": "objectType",
1215
- "type": "uint8"
1216
- },
1217
- {
1218
- "internalType": "StateId",
1219
- "name": "fromId",
1220
- "type": "uint8"
1221
- },
1222
- {
1223
- "internalType": "StateId",
1224
- "name": "toId",
1225
- "type": "uint8"
1226
- }
1227
- ],
1228
- "name": "isValidTransition",
1056
+ "inputs": [],
1057
+ "name": "linkToRegisteredNftId",
1229
1058
  "outputs": [
1230
1059
  {
1231
- "internalType": "bool",
1060
+ "internalType": "NftId",
1232
1061
  "name": "",
1233
- "type": "bool"
1062
+ "type": "uint96"
1234
1063
  }
1235
1064
  ],
1236
- "stateMutability": "view",
1237
- "type": "function"
1238
- },
1239
- {
1240
- "inputs": [],
1241
- "name": "linkToRegisteredNftId",
1242
- "outputs": [],
1243
1065
  "stateMutability": "nonpayable",
1244
1066
  "type": "function"
1245
1067
  },
@@ -1298,47 +1120,13 @@
1298
1120
  }
1299
1121
  ],
1300
1122
  "name": "refillRewardReserves",
1301
- "outputs": [],
1302
- "stateMutability": "nonpayable",
1303
- "type": "function"
1304
- },
1305
- {
1306
- "inputs": [
1123
+ "outputs": [
1307
1124
  {
1308
- "internalType": "NftId",
1309
- "name": "targetNftId",
1125
+ "internalType": "Amount",
1126
+ "name": "newBalance",
1310
1127
  "type": "uint96"
1311
- },
1312
- {
1313
- "components": [
1314
- {
1315
- "internalType": "NftId",
1316
- "name": "targetNftid",
1317
- "type": "uint96"
1318
- },
1319
- {
1320
- "internalType": "ObjectType",
1321
- "name": "objectType",
1322
- "type": "uint8"
1323
- },
1324
- {
1325
- "internalType": "uint256",
1326
- "name": "chainId",
1327
- "type": "uint256"
1328
- },
1329
- {
1330
- "internalType": "address",
1331
- "name": "token",
1332
- "type": "address"
1333
- }
1334
- ],
1335
- "internalType": "struct IStaking.TargetInfo",
1336
- "name": "targetInfo",
1337
- "type": "tuple"
1338
1128
  }
1339
1129
  ],
1340
- "name": "registerRemoteTarget",
1341
- "outputs": [],
1342
1130
  "stateMutability": "nonpayable",
1343
1131
  "type": "function"
1344
1132
  },
@@ -1348,6 +1136,26 @@
1348
1136
  "internalType": "NftId",
1349
1137
  "name": "targetNftId",
1350
1138
  "type": "uint96"
1139
+ },
1140
+ {
1141
+ "internalType": "ObjectType",
1142
+ "name": "expectedObjectType",
1143
+ "type": "uint8"
1144
+ },
1145
+ {
1146
+ "internalType": "uint256",
1147
+ "name": "chainId",
1148
+ "type": "uint256"
1149
+ },
1150
+ {
1151
+ "internalType": "Seconds",
1152
+ "name": "initialLockingPeriod",
1153
+ "type": "uint40"
1154
+ },
1155
+ {
1156
+ "internalType": "UFixed",
1157
+ "name": "initialRewardRate",
1158
+ "type": "uint256"
1351
1159
  }
1352
1160
  ],
1353
1161
  "name": "registerTarget",
@@ -1361,28 +1169,21 @@
1361
1169
  "internalType": "NftId",
1362
1170
  "name": "stakeNftId",
1363
1171
  "type": "uint96"
1364
- }
1365
- ],
1366
- "name": "restakeRewards",
1367
- "outputs": [],
1368
- "stateMutability": "nonpayable",
1369
- "type": "function"
1370
- },
1371
- {
1372
- "inputs": [
1172
+ },
1373
1173
  {
1374
1174
  "internalType": "NftId",
1375
- "name": "stakeNftId",
1175
+ "name": "newTargetNftId",
1376
1176
  "type": "uint96"
1377
- },
1177
+ }
1178
+ ],
1179
+ "name": "restake",
1180
+ "outputs": [
1378
1181
  {
1379
1182
  "internalType": "NftId",
1380
- "name": "newTarget",
1183
+ "name": "newStakeNftId",
1381
1184
  "type": "uint96"
1382
1185
  }
1383
1186
  ],
1384
- "name": "restakeToNewTarget",
1385
- "outputs": [],
1386
1187
  "stateMutability": "nonpayable",
1387
1188
  "type": "function"
1388
1189
  },
@@ -1399,6 +1200,24 @@
1399
1200
  "stateMutability": "nonpayable",
1400
1201
  "type": "function"
1401
1202
  },
1203
+ {
1204
+ "inputs": [
1205
+ {
1206
+ "internalType": "NftId",
1207
+ "name": "targetNftId",
1208
+ "type": "uint96"
1209
+ },
1210
+ {
1211
+ "internalType": "Seconds",
1212
+ "name": "lockingPeriod",
1213
+ "type": "uint40"
1214
+ }
1215
+ ],
1216
+ "name": "setLockingPeriod",
1217
+ "outputs": [],
1218
+ "stateMutability": "nonpayable",
1219
+ "type": "function"
1220
+ },
1402
1221
  {
1403
1222
  "inputs": [
1404
1223
  {
@@ -1467,7 +1286,13 @@
1467
1286
  }
1468
1287
  ],
1469
1288
  "name": "stake",
1470
- "outputs": [],
1289
+ "outputs": [
1290
+ {
1291
+ "internalType": "Amount",
1292
+ "name": "stakeBalance",
1293
+ "type": "uint96"
1294
+ }
1295
+ ],
1471
1296
  "stateMutability": "nonpayable",
1472
1297
  "type": "function"
1473
1298
  },
@@ -1493,33 +1318,9 @@
1493
1318
  {
1494
1319
  "inputs": [
1495
1320
  {
1496
- "internalType": "ObjectType",
1497
- "name": "objectType",
1498
- "type": "uint8"
1499
- },
1500
- {
1501
- "internalType": "KeyId",
1502
- "name": "id",
1503
- "type": "bytes31"
1504
- }
1505
- ],
1506
- "name": "toKey32",
1507
- "outputs": [
1508
- {
1509
- "internalType": "Key32",
1510
- "name": "",
1511
- "type": "bytes32"
1512
- }
1513
- ],
1514
- "stateMutability": "pure",
1515
- "type": "function"
1516
- },
1517
- {
1518
- "inputs": [
1519
- {
1520
- "internalType": "NftId",
1521
- "name": "stakeNftId",
1522
- "type": "uint96"
1321
+ "internalType": "address",
1322
+ "name": "to",
1323
+ "type": "address"
1523
1324
  },
1524
1325
  {
1525
1326
  "internalType": "Amount",
@@ -1527,7 +1328,7 @@
1527
1328
  "type": "uint96"
1528
1329
  }
1529
1330
  ],
1530
- "name": "unstake",
1331
+ "name": "transferDipAmount",
1531
1332
  "outputs": [],
1532
1333
  "stateMutability": "nonpayable",
1533
1334
  "type": "function"
@@ -1541,7 +1342,18 @@
1541
1342
  }
1542
1343
  ],
1543
1344
  "name": "unstake",
1544
- "outputs": [],
1345
+ "outputs": [
1346
+ {
1347
+ "internalType": "Amount",
1348
+ "name": "unstakedAmount",
1349
+ "type": "uint96"
1350
+ },
1351
+ {
1352
+ "internalType": "Amount",
1353
+ "name": "rewardsClaimedAmount",
1354
+ "type": "uint96"
1355
+ }
1356
+ ],
1545
1357
  "stateMutability": "nonpayable",
1546
1358
  "type": "function"
1547
1359
  },
@@ -1568,6 +1380,19 @@
1568
1380
  "stateMutability": "nonpayable",
1569
1381
  "type": "function"
1570
1382
  },
1383
+ {
1384
+ "inputs": [
1385
+ {
1386
+ "internalType": "NftId",
1387
+ "name": "stakeNftId",
1388
+ "type": "uint96"
1389
+ }
1390
+ ],
1391
+ "name": "updateRewards",
1392
+ "outputs": [],
1393
+ "stateMutability": "nonpayable",
1394
+ "type": "function"
1395
+ },
1571
1396
  {
1572
1397
  "inputs": [
1573
1398
  {
@@ -1595,7 +1420,13 @@
1595
1420
  }
1596
1421
  ],
1597
1422
  "name": "withdrawRewardReserves",
1598
- "outputs": [],
1423
+ "outputs": [
1424
+ {
1425
+ "internalType": "Amount",
1426
+ "name": "newBalance",
1427
+ "type": "uint96"
1428
+ }
1429
+ ],
1599
1430
  "stateMutability": "nonpayable",
1600
1431
  "type": "function"
1601
1432
  }