@etherisc/gif-next 0.0.2-8d47fa1-080 → 0.0.2-8e4a894-109

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (566) hide show
  1. package/README.md +178 -14
  2. package/artifacts/contracts/distribution/Distribution.sol/Distribution.dbg.json +4 -0
  3. package/artifacts/contracts/distribution/Distribution.sol/Distribution.json +1376 -0
  4. package/artifacts/contracts/distribution/DistributionService.sol/DistributionService.dbg.json +4 -0
  5. package/artifacts/contracts/distribution/DistributionService.sol/DistributionService.json +1556 -0
  6. package/artifacts/contracts/distribution/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  7. package/artifacts/contracts/distribution/DistributionServiceManager.sol/DistributionServiceManager.json +780 -0
  8. package/artifacts/contracts/distribution/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
  9. package/artifacts/contracts/distribution/IDistributionComponent.sol/IDistributionComponent.json +1000 -0
  10. package/artifacts/contracts/distribution/IDistributionService.sol/IDistributionService.dbg.json +4 -0
  11. package/artifacts/contracts/distribution/IDistributionService.sol/IDistributionService.json +840 -0
  12. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
  13. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +778 -0
  14. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  15. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +334 -1853
  16. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
  17. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +616 -0
  18. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  19. package/artifacts/contracts/instance/Instance.sol/Instance.json +480 -2122
  20. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
  21. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +1348 -0
  22. package/artifacts/contracts/instance/InstanceAuthorizationsLib.sol/InstanceAuthorizationsLib.dbg.json +4 -0
  23. package/artifacts/contracts/instance/InstanceAuthorizationsLib.sol/InstanceAuthorizationsLib.json +124 -0
  24. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +4 -0
  25. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1569 -0
  26. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
  27. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +979 -0
  28. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
  29. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +656 -0
  30. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.dbg.json +4 -0
  31. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.json +2837 -0
  32. package/artifacts/contracts/instance/base/Cloneable.sol/Cloneable.dbg.json +4 -0
  33. package/artifacts/contracts/instance/base/Cloneable.sol/Cloneable.json +190 -0
  34. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  35. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +76 -158
  36. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  37. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  38. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +120 -249
  39. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  40. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +38 -13
  41. package/artifacts/contracts/instance/base/ObjectManager.sol/ObjectManager.dbg.json +4 -0
  42. package/artifacts/contracts/instance/base/ObjectManager.sol/ObjectManager.json +256 -0
  43. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +4 -0
  44. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +237 -0
  45. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +4 -0
  46. package/artifacts/contracts/instance/module/{bundle/IBundle.sol → IBundle.sol}/IBundle.json +1 -1
  47. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +4 -0
  48. package/artifacts/contracts/instance/module/{access/IAccess.sol/IAccess.json → IComponents.sol/IComponents.json} +2 -2
  49. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +4 -0
  50. package/artifacts/contracts/instance/module/{distribution/IDistribution.sol → IDistribution.sol}/IDistribution.json +1 -1
  51. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
  52. package/artifacts/contracts/instance/module/{policy/IPolicy.sol → IPolicy.sol}/IPolicy.json +1 -1
  53. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
  54. package/artifacts/contracts/instance/module/{risk/IRisk.sol → IRisk.sol}/IRisk.json +1 -1
  55. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +4 -0
  56. package/artifacts/contracts/instance/{base/ModuleBase.sol/ModuleBase.json → module/ISetup.sol/ISetup.json} +2 -2
  57. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +4 -0
  58. package/artifacts/contracts/instance/module/{treasury/ITreasury.sol → ITreasury.sol}/ITreasury.json +1 -1
  59. package/artifacts/contracts/pool/BundleService.sol/BundleService.dbg.json +4 -0
  60. package/artifacts/contracts/pool/BundleService.sol/BundleService.json +1288 -0
  61. package/artifacts/contracts/pool/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  62. package/artifacts/contracts/pool/BundleServiceManager.sol/BundleServiceManager.json +696 -0
  63. package/artifacts/contracts/pool/IBundleService.sol/IBundleService.dbg.json +4 -0
  64. package/artifacts/contracts/{instance/service/IProductService.sol/IProductService.json → pool/IBundleService.sol/IBundleService.json} +371 -310
  65. package/artifacts/contracts/pool/IPoolComponent.sol/IPoolComponent.dbg.json +4 -0
  66. package/artifacts/contracts/pool/IPoolComponent.sol/IPoolComponent.json +1095 -0
  67. package/artifacts/contracts/pool/IPoolService.sol/IPoolService.dbg.json +4 -0
  68. package/artifacts/contracts/pool/IPoolService.sol/IPoolService.json +1077 -0
  69. package/artifacts/contracts/pool/Pool.sol/Pool.dbg.json +4 -0
  70. package/artifacts/contracts/pool/Pool.sol/Pool.json +1407 -0
  71. package/artifacts/contracts/pool/PoolService.sol/PoolService.dbg.json +4 -0
  72. package/artifacts/contracts/pool/PoolService.sol/PoolService.json +1622 -0
  73. package/artifacts/contracts/pool/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  74. package/artifacts/contracts/pool/PoolServiceManager.sol/PoolServiceManager.json +708 -0
  75. package/artifacts/contracts/product/ApplicationService.sol/ApplicationService.dbg.json +4 -0
  76. package/artifacts/contracts/product/ApplicationService.sol/ApplicationService.json +918 -0
  77. package/artifacts/contracts/product/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
  78. package/artifacts/contracts/product/ApplicationServiceManager.sol/ApplicationServiceManager.json +648 -0
  79. package/artifacts/contracts/product/ClaimService.sol/ClaimService.dbg.json +4 -0
  80. package/artifacts/contracts/product/ClaimService.sol/ClaimService.json +1376 -0
  81. package/artifacts/contracts/product/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
  82. package/artifacts/contracts/product/ClaimServiceManager.sol/ClaimServiceManager.json +748 -0
  83. package/artifacts/contracts/product/IApplicationService.sol/IApplicationService.dbg.json +4 -0
  84. package/artifacts/contracts/product/IApplicationService.sol/IApplicationService.json +493 -0
  85. package/artifacts/contracts/product/IClaimService.sol/IClaimService.dbg.json +4 -0
  86. package/artifacts/contracts/product/IClaimService.sol/IClaimService.json +743 -0
  87. package/artifacts/contracts/product/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  88. package/artifacts/contracts/product/IPolicyService.sol/IPolicyService.json +651 -0
  89. package/artifacts/contracts/product/IPricingService.sol/IPricingService.dbg.json +4 -0
  90. package/artifacts/contracts/{instance/service/IPoolService.sol/IPoolService.json → product/IPricingService.sol/IPricingService.json} +291 -265
  91. package/artifacts/contracts/product/IProductComponent.sol/IProductComponent.dbg.json +4 -0
  92. package/artifacts/contracts/product/IProductComponent.sol/IProductComponent.json +861 -0
  93. package/artifacts/contracts/product/IProductService.sol/IProductService.dbg.json +4 -0
  94. package/artifacts/contracts/{instance/service/IComponentOwnerService.sol/IComponentOwnerService.json → product/IProductService.sol/IProductService.json} +227 -174
  95. package/artifacts/contracts/product/PolicyService.sol/PolicyService.dbg.json +4 -0
  96. package/artifacts/contracts/product/PolicyService.sol/PolicyService.json +1281 -0
  97. package/artifacts/contracts/product/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  98. package/artifacts/contracts/product/PolicyServiceManager.sol/PolicyServiceManager.json +740 -0
  99. package/artifacts/contracts/product/PricingService.sol/PricingService.dbg.json +4 -0
  100. package/artifacts/contracts/product/PricingService.sol/PricingService.json +1004 -0
  101. package/artifacts/contracts/product/PricingServiceManager.sol/PricingServiceManager.dbg.json +4 -0
  102. package/artifacts/contracts/product/PricingServiceManager.sol/PricingServiceManager.json +688 -0
  103. package/artifacts/contracts/product/Product.sol/Product.dbg.json +4 -0
  104. package/artifacts/contracts/product/Product.sol/Product.json +1198 -0
  105. package/artifacts/contracts/product/ProductService.sol/ProductService.dbg.json +4 -0
  106. package/artifacts/contracts/product/ProductService.sol/ProductService.json +864 -0
  107. package/artifacts/contracts/product/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  108. package/artifacts/contracts/product/ProductServiceManager.sol/ProductServiceManager.json +640 -0
  109. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  110. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +60 -2
  111. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  112. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +250 -65
  113. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  114. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +373 -183
  115. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  116. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +18 -0
  117. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  118. package/artifacts/contracts/registry/Registry.sol/Registry.json +233 -210
  119. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
  120. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +285 -0
  121. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  122. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +503 -214
  123. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
  124. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +657 -0
  125. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
  126. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +559 -0
  127. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
  128. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +485 -0
  129. package/artifacts/contracts/shared/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +4 -0
  130. package/artifacts/contracts/shared/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +1206 -0
  131. package/artifacts/contracts/shared/Component.sol/Component.dbg.json +4 -0
  132. package/artifacts/contracts/shared/Component.sol/Component.json +873 -0
  133. package/artifacts/contracts/shared/ComponentService.sol/ComponentService.dbg.json +4 -0
  134. package/artifacts/contracts/shared/ComponentService.sol/ComponentService.json +631 -0
  135. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  136. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +41 -3
  137. package/artifacts/contracts/shared/IComponent.sol/IComponent.dbg.json +4 -0
  138. package/artifacts/contracts/shared/IComponent.sol/IComponent.json +636 -0
  139. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
  140. package/artifacts/contracts/{instance/module/component/IComponent.sol/IComponentModule.json → shared/INftOwnable.sol/INftOwnable.json} +64 -56
  141. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
  142. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +189 -0
  143. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  144. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +59 -8
  145. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
  146. package/artifacts/contracts/{registry → shared}/IRegistryLinked.sol/IRegistryLinked.json +13 -2
  147. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
  148. package/artifacts/contracts/{instance/base → shared}/IService.sol/IService.json +141 -158
  149. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  150. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +2 -152
  151. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
  152. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +238 -0
  153. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +4 -0
  154. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +302 -0
  155. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  156. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +344 -85
  157. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  158. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +191 -12
  159. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +4 -0
  160. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +71 -0
  161. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
  162. package/artifacts/contracts/{instance/base/InstanceBase.sol/InstanceBase.json → shared/Service.sol/Service.json} +231 -199
  163. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +4 -0
  164. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +114 -0
  165. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  166. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +2 -2
  167. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  168. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +2 -152
  169. package/artifacts/contracts/staking/IStakingService.sol/IStakingService.dbg.json +4 -0
  170. package/artifacts/contracts/staking/IStakingService.sol/IStakingService.json +523 -0
  171. package/artifacts/contracts/staking/StakeingServiceManager.sol/StakingServiceManager.dbg.json +4 -0
  172. package/artifacts/contracts/staking/StakeingServiceManager.sol/StakingServiceManager.json +628 -0
  173. package/artifacts/contracts/staking/StakingService.sol/StakingService.dbg.json +4 -0
  174. package/artifacts/contracts/staking/StakingService.sol/StakingService.json +767 -0
  175. package/artifacts/contracts/type/AddressSet.sol/LibAddressSet.dbg.json +4 -0
  176. package/artifacts/contracts/{types → type}/AddressSet.sol/LibAddressSet.json +3 -3
  177. package/artifacts/contracts/type/Amount.sol/AmountLib.dbg.json +4 -0
  178. package/artifacts/contracts/type/Amount.sol/AmountLib.json +281 -0
  179. package/artifacts/contracts/type/Blocknumber.sol/BlocknumberLib.dbg.json +4 -0
  180. package/artifacts/contracts/{types → type}/Blocknumber.sol/BlocknumberLib.json +3 -3
  181. package/artifacts/contracts/type/ClaimId.sol/ClaimIdLib.dbg.json +4 -0
  182. package/artifacts/contracts/type/ClaimId.sol/ClaimIdLib.json +179 -0
  183. package/artifacts/contracts/type/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
  184. package/artifacts/contracts/type/DistributorType.sol/DistributorTypeLib.json +104 -0
  185. package/artifacts/contracts/type/Fee.sol/FeeLib.dbg.json +4 -0
  186. package/artifacts/contracts/type/Fee.sol/FeeLib.json +312 -0
  187. package/artifacts/contracts/type/Key32.sol/Key32Lib.dbg.json +4 -0
  188. package/artifacts/contracts/type/Key32.sol/Key32Lib.json +125 -0
  189. package/artifacts/contracts/type/NftId.sol/NftIdLib.dbg.json +4 -0
  190. package/artifacts/contracts/type/NftId.sol/NftIdLib.json +166 -0
  191. package/artifacts/contracts/type/NftIdSet.sol/LibNftIdSet.dbg.json +4 -0
  192. package/artifacts/contracts/type/NftIdSet.sol/LibNftIdSet.json +33 -0
  193. package/artifacts/contracts/type/ObjectType.sol/ObjectTypeLib.dbg.json +4 -0
  194. package/artifacts/contracts/{types → type}/ObjectType.sol/ObjectTypeLib.json +3 -3
  195. package/artifacts/contracts/type/PayoutId.sol/PayoutIdLib.dbg.json +4 -0
  196. package/artifacts/contracts/type/PayoutId.sol/PayoutIdLib.json +209 -0
  197. package/artifacts/contracts/type/Referral.sol/ReferralLib.dbg.json +4 -0
  198. package/artifacts/contracts/type/Referral.sol/ReferralLib.json +142 -0
  199. package/artifacts/contracts/type/RiskId.sol/RiskIdLib.dbg.json +4 -0
  200. package/artifacts/contracts/{types → type}/RiskId.sol/RiskIdLib.json +5 -5
  201. package/artifacts/contracts/type/RoleId.sol/RoleIdLib.dbg.json +4 -0
  202. package/artifacts/contracts/type/RoleId.sol/RoleIdLib.json +156 -0
  203. package/artifacts/contracts/type/Seconds.sol/SecondsLib.dbg.json +4 -0
  204. package/artifacts/contracts/type/Seconds.sol/SecondsLib.json +124 -0
  205. package/artifacts/contracts/type/StateId.sol/StateIdLib.dbg.json +4 -0
  206. package/artifacts/contracts/{types → type}/StateId.sol/StateIdLib.json +3 -3
  207. package/artifacts/contracts/type/Timestamp.sol/TimestampLib.dbg.json +4 -0
  208. package/artifacts/contracts/type/Timestamp.sol/TimestampLib.json +280 -0
  209. package/artifacts/contracts/type/UFixed.sol/MathLib.dbg.json +4 -0
  210. package/artifacts/contracts/{types/ChainId.sol/ChainIdLib.json → type/UFixed.sol/MathLib.json} +4 -4
  211. package/artifacts/contracts/type/UFixed.sol/UFixedLib.dbg.json +4 -0
  212. package/artifacts/contracts/{types/UFixed.sol/UFixedMathLib.json → type/UFixed.sol/UFixedLib.json} +4 -4
  213. package/artifacts/contracts/type/Version.sol/VersionLib.dbg.json +4 -0
  214. package/artifacts/contracts/{types → type}/Version.sol/VersionLib.json +3 -3
  215. package/artifacts/contracts/type/Version.sol/VersionPartLib.dbg.json +4 -0
  216. package/artifacts/contracts/type/Version.sol/VersionPartLib.json +49 -0
  217. package/contracts/distribution/Distribution.sol +285 -0
  218. package/contracts/distribution/DistributionService.sol +348 -0
  219. package/contracts/distribution/DistributionServiceManager.sol +51 -0
  220. package/contracts/distribution/IDistributionComponent.sol +71 -0
  221. package/contracts/distribution/IDistributionService.sol +87 -0
  222. package/contracts/instance/BundleManager.sol +126 -0
  223. package/contracts/instance/IInstance.sol +67 -44
  224. package/contracts/instance/IInstanceService.sol +73 -0
  225. package/contracts/instance/Instance.sol +213 -69
  226. package/contracts/instance/InstanceAccessManager.sol +541 -0
  227. package/contracts/instance/InstanceAuthorizationsLib.sol +308 -0
  228. package/contracts/instance/InstanceReader.sol +368 -0
  229. package/contracts/instance/InstanceService.sol +308 -0
  230. package/contracts/instance/InstanceServiceManager.sol +54 -0
  231. package/contracts/instance/InstanceStore.sol +211 -0
  232. package/contracts/instance/base/Cloneable.sol +51 -0
  233. package/contracts/instance/base/IKeyValueStore.sol +22 -19
  234. package/contracts/instance/base/ILifecycle.sol +4 -4
  235. package/contracts/instance/base/KeyValueStore.sol +61 -54
  236. package/contracts/instance/base/Lifecycle.sol +28 -8
  237. package/contracts/instance/base/ObjectManager.sol +82 -0
  238. package/contracts/instance/module/IAccess.sol +54 -0
  239. package/contracts/instance/module/IBundle.sol +23 -0
  240. package/contracts/instance/module/IComponents.sol +41 -0
  241. package/contracts/instance/module/IDistribution.sol +42 -0
  242. package/contracts/instance/module/IPolicy.sol +77 -0
  243. package/contracts/instance/module/IRisk.sol +11 -0
  244. package/contracts/instance/module/ISetup.sol +33 -0
  245. package/contracts/instance/module/ITreasury.sol +23 -0
  246. package/contracts/pool/BundleService.sol +382 -0
  247. package/contracts/pool/BundleServiceManager.sol +51 -0
  248. package/contracts/pool/IBundleService.sol +118 -0
  249. package/contracts/pool/IPoolComponent.sol +114 -0
  250. package/contracts/pool/IPoolService.sol +114 -0
  251. package/contracts/pool/Pool.sol +302 -0
  252. package/contracts/pool/PoolService.sol +403 -0
  253. package/contracts/pool/PoolServiceManager.sol +51 -0
  254. package/contracts/product/ApplicationService.sol +186 -0
  255. package/contracts/product/ApplicationServiceManager.sol +35 -0
  256. package/contracts/product/ClaimService.sol +437 -0
  257. package/contracts/product/ClaimServiceManager.sol +35 -0
  258. package/contracts/product/IApplicationService.sol +62 -0
  259. package/contracts/product/IClaimService.sol +90 -0
  260. package/contracts/product/IPolicyService.sol +80 -0
  261. package/contracts/product/IPricingService.sol +37 -0
  262. package/contracts/product/IProductComponent.sol +41 -0
  263. package/contracts/product/IProductService.sol +40 -0
  264. package/contracts/product/PolicyService.sol +376 -0
  265. package/contracts/product/PolicyServiceManager.sol +54 -0
  266. package/contracts/product/PricingService.sol +275 -0
  267. package/contracts/product/PricingServiceManager.sol +51 -0
  268. package/contracts/product/Product.sol +375 -0
  269. package/contracts/product/ProductService.sol +210 -0
  270. package/contracts/product/ProductServiceManager.sol +54 -0
  271. package/contracts/registry/ChainNft.sol +49 -26
  272. package/contracts/registry/IRegistry.sol +60 -34
  273. package/contracts/registry/IRegistryService.sol +53 -16
  274. package/contracts/registry/ITransferInterceptor.sol +1 -0
  275. package/contracts/registry/Registry.sol +286 -324
  276. package/contracts/registry/RegistryAccessManager.sol +216 -0
  277. package/contracts/registry/RegistryService.sol +170 -268
  278. package/contracts/registry/RegistryServiceManager.sol +60 -0
  279. package/contracts/registry/ReleaseManager.sol +324 -0
  280. package/contracts/registry/TokenRegistry.sol +116 -0
  281. package/contracts/shared/AccessManagerUpgradeableInitializeable.sol +13 -0
  282. package/contracts/shared/Component.sol +271 -0
  283. package/contracts/shared/ComponentService.sol +150 -0
  284. package/contracts/shared/ERC165.sol +15 -9
  285. package/contracts/shared/IComponent.sol +90 -0
  286. package/contracts/shared/INftOwnable.sol +23 -0
  287. package/contracts/shared/IPolicyHolder.sol +40 -0
  288. package/contracts/shared/IRegisterable.sol +5 -12
  289. package/contracts/shared/IRegistryLinked.sol +11 -0
  290. package/contracts/shared/IService.sol +18 -0
  291. package/contracts/shared/IVersionable.sol +5 -48
  292. package/contracts/shared/NftOwnable.sol +118 -0
  293. package/contracts/shared/PolicyHolder.sol +94 -0
  294. package/contracts/shared/ProxyManager.sol +112 -58
  295. package/contracts/shared/Registerable.sol +33 -75
  296. package/contracts/shared/RegistryLinked.sol +43 -0
  297. package/contracts/shared/Service.sol +72 -0
  298. package/contracts/shared/TokenHandler.sol +35 -0
  299. package/contracts/shared/UpgradableProxyWithAdmin.sol +2 -2
  300. package/contracts/shared/Versionable.sol +5 -93
  301. package/contracts/staking/IStakingService.sol +102 -0
  302. package/contracts/staking/StakeingServiceManager.sol +37 -0
  303. package/contracts/staking/StakingService.sol +166 -0
  304. package/contracts/type/Amount.sol +109 -0
  305. package/contracts/{types → type}/Blocknumber.sol +1 -0
  306. package/contracts/type/ClaimId.sol +75 -0
  307. package/contracts/type/DistributorType.sol +55 -0
  308. package/contracts/{types → type}/Fee.sol +19 -10
  309. package/contracts/{types → type}/Key32.sol +8 -3
  310. package/contracts/{types → type}/NftId.sol +8 -0
  311. package/contracts/type/NftIdSet.sol +62 -0
  312. package/contracts/{types → type}/ObjectType.sol +45 -14
  313. package/contracts/type/PayoutId.sol +82 -0
  314. package/contracts/type/Referral.sol +89 -0
  315. package/contracts/type/RoleId.sol +97 -0
  316. package/contracts/type/Seconds.sol +54 -0
  317. package/contracts/{types → type}/StateId.sol +12 -3
  318. package/contracts/{types → type}/Timestamp.sol +22 -13
  319. package/contracts/{types → type}/UFixed.sol +129 -12
  320. package/contracts/{types → type}/Version.sol +5 -1
  321. package/package.json +6 -5
  322. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
  323. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +0 -213
  324. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +0 -4
  325. package/artifacts/contracts/components/Distribution.sol/Distribution.json +0 -445
  326. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
  327. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +0 -177
  328. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +0 -4
  329. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +0 -343
  330. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +0 -4
  331. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +0 -474
  332. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +0 -4
  333. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +0 -373
  334. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +0 -4
  335. package/artifacts/contracts/components/Pool.sol/Pool.json +0 -602
  336. package/artifacts/contracts/components/Product.sol/Product.dbg.json +0 -4
  337. package/artifacts/contracts/components/Product.sol/Product.json +0 -502
  338. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +0 -4
  339. package/artifacts/contracts/experiment/errors/Require.sol/Require.json +0 -105
  340. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +0 -4
  341. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +0 -105
  342. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +0 -4
  343. package/artifacts/contracts/experiment/inheritance/A.sol/A.json +0 -128
  344. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +0 -4
  345. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +0 -42
  346. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +0 -4
  347. package/artifacts/contracts/experiment/inheritance/B.sol/B.json +0 -76
  348. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +0 -4
  349. package/artifacts/contracts/experiment/inheritance/C.sol/C.json +0 -89
  350. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +0 -4
  351. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.json +0 -128
  352. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +0 -4
  353. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.json +0 -37
  354. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +0 -4
  355. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.json +0 -50
  356. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +0 -4
  357. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.json +0 -63
  358. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +0 -4
  359. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +0 -59
  360. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +0 -4
  361. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +0 -124
  362. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +0 -4
  363. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +0 -74
  364. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +0 -4
  365. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +0 -124
  366. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +0 -4
  367. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +0 -207
  368. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +0 -4
  369. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +0 -10
  370. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +0 -4
  371. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +0 -10
  372. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +0 -4
  373. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.json +0 -24
  374. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
  375. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +0 -393
  376. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
  377. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +0 -113
  378. package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +0 -4
  379. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +0 -4
  380. package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +0 -4
  381. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +0 -4
  382. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.json +0 -380
  383. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +0 -4
  384. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.json +0 -333
  385. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +0 -4
  386. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +0 -4
  387. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.json +0 -333
  388. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +0 -4
  389. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +0 -297
  390. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +0 -4
  391. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +0 -4
  392. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +0 -297
  393. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
  394. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +0 -117
  395. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +0 -4
  396. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.json +0 -10
  397. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +0 -4
  398. package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.dbg.json +0 -4
  399. package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.json +0 -10
  400. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistribution.dbg.json +0 -4
  401. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.dbg.json +0 -4
  402. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.json +0 -10
  403. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
  404. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
  405. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.json +0 -284
  406. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
  407. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +0 -284
  408. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +0 -4
  409. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.json +0 -10
  410. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
  411. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.json +0 -164
  412. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
  413. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +0 -164
  414. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +0 -4
  415. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +0 -4
  416. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +0 -113
  417. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +0 -4
  418. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +0 -131
  419. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +0 -4
  420. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +0 -4
  421. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +0 -638
  422. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +0 -4
  423. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +0 -76
  424. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +0 -4
  425. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +0 -638
  426. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
  427. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -690
  428. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +0 -4
  429. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +0 -526
  430. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
  431. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +0 -4
  432. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +0 -369
  433. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +0 -4
  434. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +0 -4
  435. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +0 -4
  436. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +0 -649
  437. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +0 -4
  438. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +0 -964
  439. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
  440. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.json +0 -457
  441. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +0 -4
  442. package/artifacts/contracts/registry/RegistryInstaller.sol/RegistryInstaller.dbg.json +0 -4
  443. package/artifacts/contracts/registry/RegistryInstaller.sol/RegistryInstaller.json +0 -344
  444. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +0 -4
  445. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.json +0 -24
  446. package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.dbg.json +0 -4
  447. package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.json +0 -445
  448. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +0 -4
  449. package/artifacts/contracts/test/TestFee.sol/TestFee.json +0 -119
  450. package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +0 -4
  451. package/artifacts/contracts/test/TestPool.sol/TestPool.json +0 -602
  452. package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +0 -4
  453. package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +0 -632
  454. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +0 -4
  455. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +0 -191
  456. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +0 -4
  457. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +0 -116
  458. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +0 -4
  459. package/artifacts/contracts/test/TestService.sol/TestService.json +0 -472
  460. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +0 -4
  461. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +0 -338
  462. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +0 -4
  463. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +0 -218
  464. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +0 -4
  465. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +0 -270
  466. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +0 -4
  467. package/artifacts/contracts/test/Usdc.sol/USDC.json +0 -338
  468. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +0 -4
  469. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +0 -4
  470. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +0 -4
  471. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +0 -4
  472. package/artifacts/contracts/types/Fee.sol/FeeLib.json +0 -257
  473. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +0 -4
  474. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +0 -111
  475. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +0 -4
  476. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +0 -153
  477. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +0 -4
  478. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +0 -10
  479. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +0 -4
  480. package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.dbg.json +0 -4
  481. package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.json +0 -99
  482. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +0 -4
  483. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +0 -4
  484. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +0 -30
  485. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +0 -4
  486. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +0 -4
  487. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +0 -236
  488. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
  489. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +0 -4
  490. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +0 -4
  491. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +0 -30
  492. package/contracts/components/BaseComponent.sol +0 -79
  493. package/contracts/components/Distribution.sol +0 -155
  494. package/contracts/components/IBaseComponent.sol +0 -19
  495. package/contracts/components/IDistributionComponent.sol +0 -47
  496. package/contracts/components/IPoolComponent.sol +0 -65
  497. package/contracts/components/IProductComponent.sol +0 -39
  498. package/contracts/components/Pool.sol +0 -246
  499. package/contracts/components/Product.sol +0 -299
  500. package/contracts/experiment/errors/Require.sol +0 -38
  501. package/contracts/experiment/errors/Revert.sol +0 -44
  502. package/contracts/experiment/inheritance/A.sol +0 -53
  503. package/contracts/experiment/inheritance/B.sol +0 -28
  504. package/contracts/experiment/inheritance/C.sol +0 -34
  505. package/contracts/experiment/inheritance/IA.sol +0 -13
  506. package/contracts/experiment/inheritance/IB.sol +0 -10
  507. package/contracts/experiment/inheritance/IC.sol +0 -12
  508. package/contracts/experiment/statemachine/Dummy.sol +0 -27
  509. package/contracts/experiment/statemachine/ISM.sol +0 -25
  510. package/contracts/experiment/statemachine/SM.sol +0 -57
  511. package/contracts/experiment/statemachine/SimpleStateMachine.sol +0 -31
  512. package/contracts/experiment/types/TypeA.sol +0 -47
  513. package/contracts/experiment/types/TypeB.sol +0 -29
  514. package/contracts/instance/IInstanceLinked.sol +0 -8
  515. package/contracts/instance/base/ComponentServiceBase.sol +0 -49
  516. package/contracts/instance/base/IInstanceBase.sol +0 -23
  517. package/contracts/instance/base/IService.sol +0 -15
  518. package/contracts/instance/base/InstanceBase.sol +0 -89
  519. package/contracts/instance/base/ModuleBase.sol +0 -57
  520. package/contracts/instance/base/ServiceBase.sol +0 -43
  521. package/contracts/instance/module/access/Access.sol +0 -149
  522. package/contracts/instance/module/access/IAccess.sol +0 -53
  523. package/contracts/instance/module/bundle/BundleModule.sol +0 -134
  524. package/contracts/instance/module/bundle/IBundle.sol +0 -53
  525. package/contracts/instance/module/component/ComponentModule.sol +0 -71
  526. package/contracts/instance/module/component/IComponent.sol +0 -28
  527. package/contracts/instance/module/distribution/DistributionModule.sol +0 -17
  528. package/contracts/instance/module/distribution/IDistribution.sol +0 -10
  529. package/contracts/instance/module/policy/IPolicy.sol +0 -63
  530. package/contracts/instance/module/policy/PolicyModule.sol +0 -91
  531. package/contracts/instance/module/pool/IPoolModule.sol +0 -41
  532. package/contracts/instance/module/pool/PoolModule.sol +0 -95
  533. package/contracts/instance/module/risk/IRisk.sol +0 -26
  534. package/contracts/instance/module/risk/RiskModule.sol +0 -62
  535. package/contracts/instance/module/treasury/ITreasury.sol +0 -84
  536. package/contracts/instance/module/treasury/TokenHandler.sol +0 -48
  537. package/contracts/instance/module/treasury/TreasuryModule.sol +0 -131
  538. package/contracts/instance/service/ComponentOwnerService.sol +0 -272
  539. package/contracts/instance/service/DistributionService.sol +0 -54
  540. package/contracts/instance/service/IComponentOwnerService.sol +0 -20
  541. package/contracts/instance/service/IDistributionService.sol +0 -12
  542. package/contracts/instance/service/IPoolService.sol +0 -37
  543. package/contracts/instance/service/IProductService.sol +0 -107
  544. package/contracts/instance/service/PoolService.sol +0 -149
  545. package/contracts/instance/service/ProductService.sol +0 -509
  546. package/contracts/registry/IChainNft.sol +0 -22
  547. package/contracts/registry/IRegistryLinked.sol +0 -8
  548. package/contracts/registry/RegistryInstaller.sol +0 -100
  549. package/contracts/shared/IOwnable.sol +0 -6
  550. package/contracts/test/TestDistribution.sol +0 -22
  551. package/contracts/test/TestFee.sol +0 -25
  552. package/contracts/test/TestPool.sol +0 -27
  553. package/contracts/test/TestProduct.sol +0 -74
  554. package/contracts/test/TestRegisterable.sol +0 -18
  555. package/contracts/test/TestRoleId.sol +0 -14
  556. package/contracts/test/TestService.sol +0 -26
  557. package/contracts/test/TestToken.sol +0 -26
  558. package/contracts/test/TestVersion.sol +0 -44
  559. package/contracts/test/TestVersionable.sol +0 -17
  560. package/contracts/test/Usdc.sol +0 -26
  561. package/contracts/types/ChainId.sol +0 -38
  562. package/contracts/types/NftIdSet.sol +0 -60
  563. package/contracts/types/ReferralId.sol +0 -48
  564. package/contracts/types/RoleId.sol +0 -38
  565. /package/contracts/{types → type}/AddressSet.sol +0 -0
  566. /package/contracts/{types → type}/RiskId.sol +0 -0
@@ -4,1388 +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
23
  },
149
24
  {
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"
25
+ "internalType": "uint32",
26
+ "name": "delay",
27
+ "type": "uint32"
174
28
  }
175
29
  ],
176
- "name": "collateralizePolicy",
177
- "outputs": [],
178
- "stateMutability": "nonpayable",
179
- "type": "function"
30
+ "name": "AccessManagedRequiredDelay",
31
+ "type": "error"
180
32
  },
181
33
  {
182
34
  "inputs": [
183
35
  {
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"
36
+ "internalType": "address",
37
+ "name": "caller",
38
+ "type": "address"
224
39
  }
225
40
  ],
226
- "name": "createBundleInfo",
227
- "outputs": [],
228
- "stateMutability": "nonpayable",
229
- "type": "function"
41
+ "name": "AccessManagedUnauthorized",
42
+ "type": "error"
230
43
  },
231
44
  {
232
45
  "inputs": [
233
46
  {
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"
47
+ "internalType": "address",
48
+ "name": "instanceBundleManager",
49
+ "type": "address"
272
50
  }
273
51
  ],
274
- "name": "createPolicyInfo",
275
- "outputs": [],
276
- "stateMutability": "nonpayable",
277
- "type": "function"
52
+ "name": "ErrorInstanceBundleManagerAlreadySet",
53
+ "type": "error"
278
54
  },
279
55
  {
280
56
  "inputs": [
281
57
  {
282
- "internalType": "RiskId",
283
- "name": "riskId",
284
- "type": "bytes8"
285
- },
286
- {
287
- "internalType": "NftId",
288
- "name": "productNftId",
289
- "type": "uint96"
290
- },
291
- {
292
- "internalType": "bytes",
293
- "name": "data",
294
- "type": "bytes"
58
+ "internalType": "address",
59
+ "name": "instanceAuthority",
60
+ "type": "address"
295
61
  }
296
62
  ],
297
- "name": "createRisk",
298
- "outputs": [],
299
- "stateMutability": "nonpayable",
300
- "type": "function"
63
+ "name": "ErrorInstanceBundleManagerAuthorityMismatch",
64
+ "type": "error"
301
65
  },
302
66
  {
303
67
  "inputs": [
304
68
  {
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"
69
+ "internalType": "address",
70
+ "name": "instance",
71
+ "type": "address"
316
72
  }
317
73
  ],
318
- "stateMutability": "nonpayable",
319
- "type": "function"
74
+ "name": "ErrorInstanceBundleManagerInstanceMismatch",
75
+ "type": "error"
320
76
  },
321
77
  {
322
78
  "inputs": [
323
79
  {
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"
80
+ "internalType": "address",
81
+ "name": "instanceAccessManager",
82
+ "type": "address"
335
83
  }
336
84
  ],
337
- "stateMutability": "view",
338
- "type": "function"
85
+ "name": "ErrorInstanceInstanceAccessManagerAlreadySet",
86
+ "type": "error"
339
87
  },
340
88
  {
341
89
  "inputs": [
342
90
  {
343
- "internalType": "NftId",
344
- "name": "nftId",
345
- "type": "uint96"
346
- }
347
- ],
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"
91
+ "internalType": "address",
92
+ "name": "instanceAuthority",
93
+ "type": "address"
408
94
  }
409
95
  ],
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"
96
+ "name": "ErrorInstanceInstanceAccessManagerAuthorityMismatch",
97
+ "type": "error"
98
+ },
99
+ {
100
+ "inputs": [],
101
+ "name": "ErrorInstanceInstanceAccessManagerZero",
102
+ "type": "error"
1248
103
  },
1249
104
  {
1250
105
  "inputs": [
1251
106
  {
1252
- "internalType": "uint256",
1253
- "name": "index",
1254
- "type": "uint256"
107
+ "internalType": "address",
108
+ "name": "instanceAuthority",
109
+ "type": "address"
1255
110
  }
1256
111
  ],
1257
- "name": "getVersion",
1258
- "outputs": [
112
+ "name": "ErrorInstanceInstanceReaderInstanceMismatch",
113
+ "type": "error"
114
+ },
115
+ {
116
+ "inputs": [
1259
117
  {
1260
- "internalType": "Version",
1261
- "name": "version",
1262
- "type": "uint24"
118
+ "internalType": "address",
119
+ "name": "instanceStore",
120
+ "type": "address"
1263
121
  }
1264
122
  ],
1265
- "stateMutability": "view",
1266
- "type": "function"
123
+ "name": "ErrorInstanceInstanceStoreAlreadySet",
124
+ "type": "error"
1267
125
  },
1268
126
  {
1269
- "inputs": [],
1270
- "name": "getVersionCount",
1271
- "outputs": [
127
+ "inputs": [
1272
128
  {
1273
- "internalType": "uint256",
1274
- "name": "numberOfVersions",
1275
- "type": "uint256"
129
+ "internalType": "address",
130
+ "name": "instanceAuthority",
131
+ "type": "address"
1276
132
  }
1277
133
  ],
1278
- "stateMutability": "view",
1279
- "type": "function"
134
+ "name": "ErrorInstanceInstanceStoreAuthorityMismatch",
135
+ "type": "error"
1280
136
  },
1281
137
  {
1282
138
  "inputs": [
1283
139
  {
1284
- "internalType": "Version",
1285
- "name": "version",
1286
- "type": "uint24"
140
+ "internalType": "NftId",
141
+ "name": "nftId",
142
+ "type": "uint96"
1287
143
  }
1288
144
  ],
1289
- "name": "getVersionInfo",
1290
- "outputs": [
145
+ "name": "ErrorNftOwnableAlreadyLinked",
146
+ "type": "error"
147
+ },
148
+ {
149
+ "inputs": [
1291
150
  {
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"
151
+ "internalType": "address",
152
+ "name": "contractAddress",
153
+ "type": "address"
1322
154
  }
1323
155
  ],
1324
- "stateMutability": "view",
1325
- "type": "function"
156
+ "name": "ErrorNftOwnableContractNotRegistered",
157
+ "type": "error"
1326
158
  },
1327
159
  {
1328
160
  "inputs": [],
1329
- "name": "getZeroFee",
1330
- "outputs": [
161
+ "name": "ErrorNftOwnableInitialOwnerZero",
162
+ "type": "error"
163
+ },
164
+ {
165
+ "inputs": [
1331
166
  {
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"
167
+ "internalType": "address",
168
+ "name": "account",
169
+ "type": "address"
1347
170
  }
1348
171
  ],
1349
- "stateMutability": "view",
1350
- "type": "function"
172
+ "name": "ErrorNftOwnableNotOwner",
173
+ "type": "error"
1351
174
  },
1352
175
  {
1353
176
  "inputs": [
1354
- {
1355
- "internalType": "RoleId",
1356
- "name": "role",
1357
- "type": "bytes8"
1358
- },
1359
177
  {
1360
178
  "internalType": "address",
1361
- "name": "member",
179
+ "name": "registryAddress",
1362
180
  "type": "address"
1363
181
  }
1364
182
  ],
1365
- "name": "grantRole",
1366
- "outputs": [],
1367
- "stateMutability": "nonpayable",
1368
- "type": "function"
183
+ "name": "ErrorNotRegistry",
184
+ "type": "error"
1369
185
  },
1370
186
  {
187
+ "anonymous": false,
1371
188
  "inputs": [
1372
189
  {
1373
- "internalType": "RoleId",
1374
- "name": "role",
1375
- "type": "bytes8"
1376
- },
1377
- {
190
+ "indexed": false,
1378
191
  "internalType": "address",
1379
- "name": "member",
192
+ "name": "authority",
1380
193
  "type": "address"
1381
194
  }
1382
195
  ],
1383
- "name": "hasRole",
196
+ "name": "AuthorityUpdated",
197
+ "type": "event"
198
+ },
199
+ {
200
+ "inputs": [],
201
+ "name": "authority",
1384
202
  "outputs": [
1385
203
  {
1386
- "internalType": "bool",
204
+ "internalType": "address",
1387
205
  "name": "",
1388
- "type": "bool"
206
+ "type": "address"
1389
207
  }
1390
208
  ],
1391
209
  "stateMutability": "view",
@@ -1394,521 +212,303 @@
1394
212
  {
1395
213
  "inputs": [
1396
214
  {
1397
- "internalType": "NftId",
1398
- "name": "productNftId",
1399
- "type": "uint96"
215
+ "internalType": "string",
216
+ "name": "roleName",
217
+ "type": "string"
218
+ },
219
+ {
220
+ "internalType": "string",
221
+ "name": "adminName",
222
+ "type": "string"
1400
223
  }
1401
224
  ],
1402
- "name": "hasTreasuryInfo",
225
+ "name": "createRole",
1403
226
  "outputs": [
1404
227
  {
1405
- "internalType": "bool",
1406
- "name": "hasInfo",
1407
- "type": "bool"
228
+ "internalType": "RoleId",
229
+ "name": "roleId",
230
+ "type": "uint64"
231
+ },
232
+ {
233
+ "internalType": "RoleId",
234
+ "name": "admin",
235
+ "type": "uint64"
1408
236
  }
1409
237
  ],
1410
- "stateMutability": "view",
238
+ "stateMutability": "nonpayable",
1411
239
  "type": "function"
1412
240
  },
1413
241
  {
1414
242
  "inputs": [
1415
243
  {
1416
244
  "internalType": "address",
1417
- "name": "implementation",
1418
- "type": "address"
1419
- },
1420
- {
1421
- "internalType": "address",
1422
- "name": "activatedBy",
245
+ "name": "target",
1423
246
  "type": "address"
1424
247
  },
1425
248
  {
1426
- "internalType": "bytes",
1427
- "name": "activationData",
1428
- "type": "bytes"
249
+ "internalType": "string",
250
+ "name": "name",
251
+ "type": "string"
1429
252
  }
1430
253
  ],
1431
- "name": "initialize",
254
+ "name": "createTarget",
1432
255
  "outputs": [],
1433
256
  "stateMutability": "nonpayable",
1434
257
  "type": "function"
1435
258
  },
1436
259
  {
1437
- "inputs": [
1438
- {
1439
- "internalType": "Version",
1440
- "name": "version",
1441
- "type": "uint24"
1442
- }
1443
- ],
1444
- "name": "isInitialized",
260
+ "inputs": [],
261
+ "name": "getBundleManager",
1445
262
  "outputs": [
1446
263
  {
1447
- "internalType": "bool",
264
+ "internalType": "contract BundleManager",
1448
265
  "name": "",
1449
- "type": "bool"
266
+ "type": "address"
1450
267
  }
1451
268
  ],
1452
269
  "stateMutability": "view",
1453
270
  "type": "function"
1454
271
  },
1455
272
  {
1456
- "inputs": [
1457
- {
1458
- "internalType": "NftId",
1459
- "name": "nftId",
1460
- "type": "uint96"
1461
- },
1462
- {
1463
- "internalType": "contract IERC20Metadata",
1464
- "name": "token",
1465
- "type": "address"
1466
- },
273
+ "inputs": [],
274
+ "name": "getBundleService",
275
+ "outputs": [
1467
276
  {
1468
- "internalType": "address",
1469
- "name": "wallet",
277
+ "internalType": "contract IBundleService",
278
+ "name": "",
1470
279
  "type": "address"
1471
280
  }
1472
281
  ],
1473
- "name": "registerComponent",
1474
- "outputs": [],
1475
- "stateMutability": "nonpayable",
282
+ "stateMutability": "view",
1476
283
  "type": "function"
1477
284
  },
1478
285
  {
1479
- "inputs": [
1480
- {
1481
- "internalType": "NftId",
1482
- "name": "nftId",
1483
- "type": "uint96"
1484
- },
286
+ "inputs": [],
287
+ "name": "getDistributionService",
288
+ "outputs": [
1485
289
  {
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"
290
+ "internalType": "contract IDistributionService",
291
+ "name": "",
292
+ "type": "address"
1501
293
  }
1502
294
  ],
1503
- "name": "registerPool",
1504
- "outputs": [],
1505
- "stateMutability": "nonpayable",
295
+ "stateMutability": "view",
1506
296
  "type": "function"
1507
297
  },
1508
298
  {
1509
- "inputs": [
1510
- {
1511
- "internalType": "NftId",
1512
- "name": "productNftId",
1513
- "type": "uint96"
1514
- },
299
+ "inputs": [],
300
+ "name": "getInitialInfo",
301
+ "outputs": [
1515
302
  {
1516
303
  "components": [
1517
304
  {
1518
305
  "internalType": "NftId",
1519
- "name": "poolNftId",
306
+ "name": "nftId",
1520
307
  "type": "uint96"
1521
308
  },
1522
309
  {
1523
310
  "internalType": "NftId",
1524
- "name": "distributionNftId",
311
+ "name": "parentNftId",
1525
312
  "type": "uint96"
1526
313
  },
1527
314
  {
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"
315
+ "internalType": "ObjectType",
316
+ "name": "objectType",
317
+ "type": "uint8"
1565
318
  },
1566
319
  {
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"
320
+ "internalType": "bool",
321
+ "name": "isInterceptor",
322
+ "type": "bool"
1582
323
  },
1583
324
  {
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"
325
+ "internalType": "address",
326
+ "name": "objectAddress",
327
+ "type": "address"
1599
328
  },
1600
329
  {
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"
330
+ "internalType": "address",
331
+ "name": "initialOwner",
332
+ "type": "address"
1616
333
  },
1617
334
  {
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"
335
+ "internalType": "bytes",
336
+ "name": "data",
337
+ "type": "bytes"
1633
338
  }
1634
339
  ],
1635
- "internalType": "struct ITreasury.TreasuryInfo",
1636
- "name": "info",
340
+ "internalType": "struct IRegistry.ObjectInfo",
341
+ "name": "",
1637
342
  "type": "tuple"
1638
343
  }
1639
344
  ],
1640
- "name": "registerProductSetup",
1641
- "outputs": [],
1642
- "stateMutability": "nonpayable",
345
+ "stateMutability": "view",
1643
346
  "type": "function"
1644
347
  },
1645
348
  {
1646
- "inputs": [
349
+ "inputs": [],
350
+ "name": "getInstanceAccessManager",
351
+ "outputs": [
1647
352
  {
1648
- "internalType": "NftId",
1649
- "name": "bundleNftId",
1650
- "type": "uint96"
1651
- },
353
+ "internalType": "contract InstanceAccessManager",
354
+ "name": "",
355
+ "type": "address"
356
+ }
357
+ ],
358
+ "stateMutability": "view",
359
+ "type": "function"
360
+ },
361
+ {
362
+ "inputs": [],
363
+ "name": "getInstanceReader",
364
+ "outputs": [
365
+ {
366
+ "internalType": "contract InstanceReader",
367
+ "name": "",
368
+ "type": "address"
369
+ }
370
+ ],
371
+ "stateMutability": "view",
372
+ "type": "function"
373
+ },
374
+ {
375
+ "inputs": [],
376
+ "name": "getInstanceStore",
377
+ "outputs": [
378
+ {
379
+ "internalType": "contract InstanceStore",
380
+ "name": "",
381
+ "type": "address"
382
+ }
383
+ ],
384
+ "stateMutability": "view",
385
+ "type": "function"
386
+ },
387
+ {
388
+ "inputs": [],
389
+ "name": "getMajorVersion",
390
+ "outputs": [
391
+ {
392
+ "internalType": "VersionPart",
393
+ "name": "majorVersion",
394
+ "type": "uint8"
395
+ }
396
+ ],
397
+ "stateMutability": "pure",
398
+ "type": "function"
399
+ },
400
+ {
401
+ "inputs": [],
402
+ "name": "getNftId",
403
+ "outputs": [
1652
404
  {
1653
405
  "internalType": "NftId",
1654
- "name": "policyNftId",
406
+ "name": "",
1655
407
  "type": "uint96"
1656
408
  }
1657
409
  ],
1658
- "name": "releasePolicy",
410
+ "stateMutability": "view",
411
+ "type": "function"
412
+ },
413
+ {
414
+ "inputs": [],
415
+ "name": "getOwner",
1659
416
  "outputs": [
1660
417
  {
1661
- "internalType": "uint256",
1662
- "name": "collateralAmount",
1663
- "type": "uint256"
418
+ "internalType": "address",
419
+ "name": "",
420
+ "type": "address"
1664
421
  }
1665
422
  ],
1666
- "stateMutability": "nonpayable",
423
+ "stateMutability": "view",
1667
424
  "type": "function"
1668
425
  },
1669
426
  {
1670
- "inputs": [
1671
- {
1672
- "internalType": "RoleId",
1673
- "name": "role",
1674
- "type": "bytes8"
1675
- },
427
+ "inputs": [],
428
+ "name": "getPolicyService",
429
+ "outputs": [
1676
430
  {
1677
- "internalType": "address",
1678
- "name": "member",
431
+ "internalType": "contract IPolicyService",
432
+ "name": "",
1679
433
  "type": "address"
1680
434
  }
1681
435
  ],
1682
- "name": "revokeRole",
1683
- "outputs": [],
1684
- "stateMutability": "nonpayable",
436
+ "stateMutability": "view",
1685
437
  "type": "function"
1686
438
  },
1687
439
  {
1688
- "inputs": [
1689
- {
1690
- "internalType": "RoleId",
1691
- "name": "role",
1692
- "type": "bytes8"
1693
- }
1694
- ],
1695
- "name": "roleExists",
440
+ "inputs": [],
441
+ "name": "getPoolService",
1696
442
  "outputs": [
1697
443
  {
1698
- "internalType": "bool",
444
+ "internalType": "contract IPoolService",
1699
445
  "name": "",
1700
- "type": "bool"
446
+ "type": "address"
1701
447
  }
1702
448
  ],
1703
449
  "stateMutability": "view",
1704
450
  "type": "function"
1705
451
  },
1706
452
  {
1707
- "inputs": [
1708
- {
1709
- "internalType": "NftId",
1710
- "name": "nftId",
1711
- "type": "uint96"
1712
- },
453
+ "inputs": [],
454
+ "name": "getProductService",
455
+ "outputs": [
1713
456
  {
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"
457
+ "internalType": "contract IProductService",
458
+ "name": "",
459
+ "type": "address"
1771
460
  }
1772
461
  ],
1773
- "name": "setBundleInfo",
1774
- "outputs": [],
1775
- "stateMutability": "nonpayable",
462
+ "stateMutability": "view",
1776
463
  "type": "function"
1777
464
  },
1778
465
  {
1779
- "inputs": [
1780
- {
1781
- "internalType": "NftId",
1782
- "name": "policyNftId",
1783
- "type": "uint96"
1784
- },
466
+ "inputs": [],
467
+ "name": "getRegistry",
468
+ "outputs": [
1785
469
  {
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"
470
+ "internalType": "contract IRegistry",
471
+ "name": "",
472
+ "type": "address"
1861
473
  }
1862
474
  ],
1863
- "name": "setPolicyInfo",
1864
- "outputs": [],
1865
- "stateMutability": "nonpayable",
475
+ "stateMutability": "view",
1866
476
  "type": "function"
1867
477
  },
1868
478
  {
1869
479
  "inputs": [
1870
480
  {
1871
- "internalType": "RiskId",
1872
- "name": "riskId",
1873
- "type": "bytes8"
481
+ "internalType": "RoleId",
482
+ "name": "roleId",
483
+ "type": "uint64"
1874
484
  },
1875
485
  {
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"
486
+ "internalType": "address",
487
+ "name": "account",
488
+ "type": "address"
1891
489
  }
1892
490
  ],
1893
- "name": "setRiskInfo",
491
+ "name": "grantRole",
1894
492
  "outputs": [],
1895
493
  "stateMutability": "nonpayable",
1896
494
  "type": "function"
1897
495
  },
1898
496
  {
1899
- "inputs": [
1900
- {
1901
- "internalType": "RoleId",
1902
- "name": "role",
1903
- "type": "bytes8"
1904
- },
497
+ "inputs": [],
498
+ "name": "isConsumingScheduledOp",
499
+ "outputs": [
1905
500
  {
1906
- "internalType": "bool",
1907
- "name": "active",
1908
- "type": "bool"
501
+ "internalType": "bytes4",
502
+ "name": "",
503
+ "type": "bytes4"
1909
504
  }
1910
505
  ],
1911
- "name": "setRoleState",
506
+ "stateMutability": "view",
507
+ "type": "function"
508
+ },
509
+ {
510
+ "inputs": [],
511
+ "name": "linkToRegisteredNftId",
1912
512
  "outputs": [],
1913
513
  "stateMutability": "nonpayable",
1914
514
  "type": "function"
@@ -1916,136 +516,17 @@
1916
516
  {
1917
517
  "inputs": [
1918
518
  {
1919
- "internalType": "NftId",
1920
- "name": "productNftId",
1921
- "type": "uint96"
519
+ "internalType": "address",
520
+ "name": "to",
521
+ "type": "address"
1922
522
  },
1923
523
  {
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"
524
+ "internalType": "uint256",
525
+ "name": "tokenId",
526
+ "type": "uint256"
2046
527
  }
2047
528
  ],
2048
- "name": "setTreasuryInfo",
529
+ "name": "nftMint",
2049
530
  "outputs": [],
2050
531
  "stateMutability": "nonpayable",
2051
532
  "type": "function"
@@ -2053,36 +534,40 @@
2053
534
  {
2054
535
  "inputs": [
2055
536
  {
2056
- "internalType": "bytes4",
2057
- "name": "interfaceId",
2058
- "type": "bytes4"
2059
- }
2060
- ],
2061
- "name": "supportsInterface",
2062
- "outputs": [
537
+ "internalType": "address",
538
+ "name": "from",
539
+ "type": "address"
540
+ },
2063
541
  {
2064
- "internalType": "bool",
2065
- "name": "",
2066
- "type": "bool"
542
+ "internalType": "address",
543
+ "name": "to",
544
+ "type": "address"
545
+ },
546
+ {
547
+ "internalType": "uint256",
548
+ "name": "tokenId",
549
+ "type": "uint256"
2067
550
  }
2068
551
  ],
2069
- "stateMutability": "view",
552
+ "name": "nftTransferFrom",
553
+ "outputs": [],
554
+ "stateMutability": "nonpayable",
2070
555
  "type": "function"
2071
556
  },
2072
557
  {
2073
558
  "inputs": [
2074
559
  {
2075
- "internalType": "NftId",
2076
- "name": "nftId",
2077
- "type": "uint96"
560
+ "internalType": "RoleId",
561
+ "name": "roleId",
562
+ "type": "uint64"
2078
563
  },
2079
564
  {
2080
- "internalType": "StateId",
2081
- "name": "state",
2082
- "type": "uint8"
565
+ "internalType": "address",
566
+ "name": "account",
567
+ "type": "address"
2083
568
  }
2084
569
  ],
2085
- "name": "updateBundleState",
570
+ "name": "revokeRole",
2086
571
  "outputs": [],
2087
572
  "stateMutability": "nonpayable",
2088
573
  "type": "function"
@@ -2090,17 +575,12 @@
2090
575
  {
2091
576
  "inputs": [
2092
577
  {
2093
- "internalType": "NftId",
2094
- "name": "nftId",
2095
- "type": "uint96"
2096
- },
2097
- {
2098
- "internalType": "StateId",
2099
- "name": "state",
2100
- "type": "uint8"
578
+ "internalType": "address",
579
+ "name": "",
580
+ "type": "address"
2101
581
  }
2102
582
  ],
2103
- "name": "updatePolicyState",
583
+ "name": "setAuthority",
2104
584
  "outputs": [],
2105
585
  "stateMutability": "nonpayable",
2106
586
  "type": "function"
@@ -2108,17 +588,22 @@
2108
588
  {
2109
589
  "inputs": [
2110
590
  {
2111
- "internalType": "RiskId",
2112
- "name": "riskId",
2113
- "type": "bytes8"
591
+ "internalType": "string",
592
+ "name": "targetName",
593
+ "type": "string"
2114
594
  },
2115
595
  {
2116
- "internalType": "StateId",
2117
- "name": "state",
2118
- "type": "uint8"
596
+ "internalType": "bytes4[]",
597
+ "name": "selectors",
598
+ "type": "bytes4[]"
599
+ },
600
+ {
601
+ "internalType": "RoleId",
602
+ "name": "roleId",
603
+ "type": "uint64"
2119
604
  }
2120
605
  ],
2121
- "name": "updateRiskState",
606
+ "name": "setTargetFunctionRole",
2122
607
  "outputs": [],
2123
608
  "stateMutability": "nonpayable",
2124
609
  "type": "function"
@@ -2126,17 +611,17 @@
2126
611
  {
2127
612
  "inputs": [
2128
613
  {
2129
- "internalType": "Key32",
2130
- "name": "key",
2131
- "type": "bytes32"
614
+ "internalType": "address",
615
+ "name": "target",
616
+ "type": "address"
2132
617
  },
2133
618
  {
2134
- "internalType": "StateId",
2135
- "name": "state",
2136
- "type": "uint8"
619
+ "internalType": "bool",
620
+ "name": "locked",
621
+ "type": "bool"
2137
622
  }
2138
623
  ],
2139
- "name": "updateState",
624
+ "name": "setTargetLocked",
2140
625
  "outputs": [],
2141
626
  "stateMutability": "nonpayable",
2142
627
  "type": "function"
@@ -2144,24 +629,20 @@
2144
629
  {
2145
630
  "inputs": [
2146
631
  {
2147
- "internalType": "address",
2148
- "name": "implementation",
2149
- "type": "address"
2150
- },
2151
- {
2152
- "internalType": "address",
2153
- "name": "activatedBy",
2154
- "type": "address"
2155
- },
632
+ "internalType": "bytes4",
633
+ "name": "interfaceId",
634
+ "type": "bytes4"
635
+ }
636
+ ],
637
+ "name": "supportsInterface",
638
+ "outputs": [
2156
639
  {
2157
- "internalType": "bytes",
2158
- "name": "upgradeData",
2159
- "type": "bytes"
640
+ "internalType": "bool",
641
+ "name": "",
642
+ "type": "bool"
2160
643
  }
2161
644
  ],
2162
- "name": "upgrade",
2163
- "outputs": [],
2164
- "stateMutability": "nonpayable",
645
+ "stateMutability": "view",
2165
646
  "type": "function"
2166
647
  }
2167
648
  ],