@etherisc/gif-next 0.0.2-cd89a0b-062 → 0.0.2-cdd6310-176

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