@etherisc/gif-next 0.0.2-8210648-816 → 0.0.2-82c6d88-499

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