@etherisc/gif-next 0.0.2-dc7e4cb-141 → 0.0.2-dd40550-413

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