@etherisc/gif-next 0.0.2-f7b8c9f-518 → 0.0.2-f7bec40-735

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