@etherisc/gif-next 0.0.2-d2fd9d7-008 → 0.0.2-d30275e-758

Sign up to get free protection for your applications and to get access to all the features.
Files changed (397) hide show
  1. package/README.md +28 -14
  2. package/artifacts/contracts/components/Component.sol/Component.dbg.json +4 -0
  3. package/artifacts/contracts/components/Component.sol/Component.json +842 -0
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +946 -219
  6. package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
  7. package/artifacts/contracts/components/IComponent.sol/IComponent.json +605 -0
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +848 -31
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +846 -57
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +682 -9
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +806 -243
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +632 -194
  18. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +4 -0
  19. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +1206 -0
  20. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +1 -1
  21. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +69 -66
  22. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +1 -1
  23. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.json +5 -0
  24. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  25. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +303 -1340
  26. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  27. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +337 -168
  28. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  29. package/artifacts/contracts/instance/Instance.sol/Instance.json +439 -3102
  30. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
  31. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +609 -178
  32. package/artifacts/contracts/instance/InstanceAuthorizationsLib.sol/InstanceAuthorizationsLib.dbg.json +4 -0
  33. package/artifacts/contracts/instance/InstanceAuthorizationsLib.sol/InstanceAuthorizationsLib.json +124 -0
  34. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
  35. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +251 -270
  36. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  37. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +457 -402
  38. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  39. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +292 -131
  40. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.dbg.json +4 -0
  41. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.json +2663 -0
  42. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +1 -1
  43. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +11 -27
  44. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
  45. package/artifacts/contracts/instance/base/{ComponentServiceBase.sol/ComponentServiceBase.json → ComponentService.sol/ComponentService.json} +277 -178
  46. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  47. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  48. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  49. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +40 -10
  50. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  51. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +36 -11
  52. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
  53. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +71 -45
  54. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
  55. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +4 -0
  56. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.json +10 -0
  57. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
  58. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  59. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  60. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +1 -1
  61. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +1 -1
  62. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.dbg.json +4 -0
  63. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +902 -0
  64. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
  65. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +649 -0
  66. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
  67. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1326 -0
  68. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  69. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +725 -0
  70. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +4 -0
  71. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +1072 -0
  72. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
  73. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +685 -0
  74. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
  75. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +1022 -223
  76. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
  77. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +392 -79
  78. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
  79. package/artifacts/contracts/instance/service/{IComponentOwnerService.sol/IComponentOwnerService.json → IApplicationService.sol/IApplicationService.json} +235 -200
  80. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
  81. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +714 -0
  82. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +4 -0
  83. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.json +602 -0
  84. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  85. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +585 -160
  86. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  87. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +969 -0
  88. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  89. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +536 -304
  90. package/artifacts/contracts/instance/service/IPricingService.sol/IPricingService.dbg.json +4 -0
  91. package/artifacts/contracts/{shared/RegisterableUpgradable.sol/RegisterableUpgradable.json → instance/service/IPricingService.sol/IPricingService.json} +248 -172
  92. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  93. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +78 -388
  94. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
  95. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1575 -0
  96. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  97. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +741 -0
  98. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
  99. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +832 -400
  100. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
  101. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +338 -93
  102. package/artifacts/contracts/instance/service/PricingService.sol/PricingService.dbg.json +4 -0
  103. package/artifacts/contracts/instance/service/PricingService.sol/PricingService.json +988 -0
  104. package/artifacts/contracts/instance/service/PricingServiceManager.sol/PricingServiceManager.dbg.json +4 -0
  105. package/artifacts/contracts/instance/service/PricingServiceManager.sol/PricingServiceManager.json +689 -0
  106. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
  107. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +289 -564
  108. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +1 -1
  109. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +289 -124
  110. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  111. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +15 -2
  112. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  113. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +244 -133
  114. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  115. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +149 -230
  116. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  117. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +18 -0
  118. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  119. package/artifacts/contracts/registry/Registry.sol/Registry.json +257 -235
  120. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
  121. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +285 -0
  122. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  123. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +200 -335
  124. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  125. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +298 -145
  126. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
  127. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +559 -0
  128. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
  129. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +141 -53
  130. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +1 -1
  131. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  132. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +41 -3
  133. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  134. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +40 -29
  135. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
  136. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +129 -0
  137. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  138. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +21 -34
  139. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
  140. package/artifacts/contracts/{experiment/inheritance/IB.sol/IB.json → shared/IRegistryLinked.sol/IRegistryLinked.json} +18 -20
  141. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
  142. package/artifacts/contracts/shared/IService.sol/IService.json +86 -172
  143. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  144. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +2 -152
  145. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  146. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +120 -27
  147. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +4 -0
  148. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +248 -0
  149. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  150. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +294 -61
  151. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  152. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +129 -51
  153. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +4 -0
  154. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +84 -0
  155. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
  156. package/artifacts/contracts/shared/Service.sol/Service.json +191 -163
  157. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  158. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +2 -2
  159. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  160. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +2 -2
  161. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  162. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +2 -152
  163. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  164. package/artifacts/contracts/test/TestFee.sol/TestFee.json +2 -2
  165. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  166. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +129 -51
  167. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  168. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +6 -6
  169. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  170. package/artifacts/contracts/test/TestService.sol/TestService.json +210 -214
  171. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  172. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  173. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
  174. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  175. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +8 -190
  176. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  177. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  178. package/artifacts/contracts/types/Amount.sol/AmountLib.dbg.json +4 -0
  179. package/artifacts/contracts/types/Amount.sol/AmountLib.json +209 -0
  180. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  181. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +2 -2
  182. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  183. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.dbg.json +4 -0
  184. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.json +179 -0
  185. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
  186. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +2 -2
  187. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  188. package/artifacts/contracts/types/Fee.sol/FeeLib.json +40 -9
  189. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  190. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +2 -2
  191. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  192. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +17 -4
  193. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  194. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +2 -2
  195. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +1 -1
  196. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  197. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  198. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.dbg.json +4 -0
  199. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.json +209 -0
  200. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +1 -1
  201. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +23 -4
  202. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
  203. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +2 -2
  204. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  205. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
  206. package/artifacts/contracts/types/Seconds.sol/SecondsLib.dbg.json +4 -0
  207. package/artifacts/contracts/types/Seconds.sol/SecondsLib.json +124 -0
  208. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  209. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  210. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  211. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +38 -7
  212. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +1 -1
  213. package/artifacts/contracts/types/UFixed.sol/MathLib.json +2 -2
  214. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +1 -1
  215. package/artifacts/contracts/types/UFixed.sol/UFixedLib.json +2 -2
  216. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  217. package/artifacts/contracts/types/Version.sol/VersionLib.json +2 -2
  218. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  219. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +2 -2
  220. package/contracts/components/Component.sol +253 -0
  221. package/contracts/components/Distribution.sol +204 -83
  222. package/contracts/components/IComponent.sol +76 -0
  223. package/contracts/components/IDistributionComponent.sol +44 -17
  224. package/contracts/components/IPoolComponent.sol +88 -41
  225. package/contracts/components/IProductComponent.sol +10 -5
  226. package/contracts/components/Pool.sol +217 -182
  227. package/contracts/components/Product.sol +248 -163
  228. package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +13 -0
  229. package/contracts/instance/BundleManager.sol +17 -20
  230. package/contracts/instance/Cloneable.sol +7 -2
  231. package/contracts/instance/IInstance.sol +57 -33
  232. package/contracts/instance/IInstanceService.sol +56 -9
  233. package/contracts/instance/Instance.sol +150 -367
  234. package/contracts/instance/InstanceAccessManager.sol +430 -177
  235. package/contracts/instance/InstanceAuthorizationsLib.sol +300 -0
  236. package/contracts/instance/InstanceReader.sol +44 -39
  237. package/contracts/instance/InstanceService.sol +243 -166
  238. package/contracts/instance/InstanceServiceManager.sol +6 -9
  239. package/contracts/instance/InstanceStore.sol +208 -0
  240. package/contracts/instance/ObjectManager.sol +11 -24
  241. package/contracts/instance/base/ComponentService.sol +148 -0
  242. package/contracts/instance/base/KeyValueStore.sol +13 -5
  243. package/contracts/instance/base/Lifecycle.sol +23 -6
  244. package/contracts/instance/module/IAccess.sol +36 -20
  245. package/contracts/instance/module/IBundle.sol +8 -5
  246. package/contracts/instance/module/IComponents.sol +41 -0
  247. package/contracts/instance/module/IDistribution.sol +2 -0
  248. package/contracts/instance/module/IPolicy.sol +41 -9
  249. package/contracts/instance/module/ISetup.sol +7 -20
  250. package/contracts/instance/service/ApplicationService.sol +185 -0
  251. package/contracts/instance/service/ApplicationServiceManager.sol +35 -0
  252. package/contracts/instance/service/BundleService.sol +440 -0
  253. package/contracts/instance/service/BundleServiceManager.sol +51 -0
  254. package/contracts/instance/service/ClaimService.sol +239 -0
  255. package/contracts/instance/service/ClaimServiceManager.sol +35 -0
  256. package/contracts/instance/service/DistributionService.sol +287 -33
  257. package/contracts/instance/service/DistributionServiceManager.sol +7 -10
  258. package/contracts/instance/service/IApplicationService.sol +61 -0
  259. package/contracts/instance/service/IBundleService.sol +102 -0
  260. package/contracts/instance/service/IClaimService.sol +92 -0
  261. package/contracts/instance/service/IDistributionService.sol +74 -1
  262. package/contracts/instance/service/IPolicyService.sol +139 -0
  263. package/contracts/instance/service/IPoolService.sol +76 -25
  264. package/contracts/instance/service/IPricingService.sol +36 -0
  265. package/contracts/instance/service/IProductService.sol +2 -72
  266. package/contracts/instance/service/PolicyService.sol +577 -0
  267. package/contracts/instance/service/PolicyServiceManager.sol +54 -0
  268. package/contracts/instance/service/PoolService.sol +232 -183
  269. package/contracts/instance/service/PoolServiceManager.sol +6 -9
  270. package/contracts/instance/service/PricingService.sol +275 -0
  271. package/contracts/instance/service/PricingServiceManager.sol +51 -0
  272. package/contracts/instance/service/ProductService.sol +109 -469
  273. package/contracts/instance/service/ProductServiceManager.sol +2 -2
  274. package/contracts/registry/ChainNft.sol +9 -1
  275. package/contracts/registry/IRegistry.sol +39 -19
  276. package/contracts/registry/IRegistryService.sol +31 -13
  277. package/contracts/registry/ITransferInterceptor.sol +1 -0
  278. package/contracts/registry/Registry.sol +243 -224
  279. package/contracts/registry/RegistryAccessManager.sol +216 -0
  280. package/contracts/registry/RegistryService.sol +101 -173
  281. package/contracts/registry/RegistryServiceManager.sol +21 -39
  282. package/contracts/registry/ReleaseManager.sol +324 -0
  283. package/contracts/registry/TokenRegistry.sol +22 -17
  284. package/contracts/shared/ERC165.sol +14 -12
  285. package/contracts/shared/INftOwnable.sol +11 -10
  286. package/contracts/shared/IPolicyHolder.sol +26 -0
  287. package/contracts/shared/IRegisterable.sol +4 -6
  288. package/contracts/shared/IRegistryLinked.sol +12 -0
  289. package/contracts/shared/IService.sol +5 -4
  290. package/contracts/shared/IVersionable.sol +4 -47
  291. package/contracts/shared/NftOwnable.sol +66 -80
  292. package/contracts/shared/PolicyHolder.sol +81 -0
  293. package/contracts/shared/ProxyManager.sol +100 -25
  294. package/contracts/shared/Registerable.sol +16 -32
  295. package/contracts/shared/RegistryLinked.sol +48 -0
  296. package/contracts/shared/Service.sol +41 -24
  297. package/contracts/shared/TokenHandler.sol +11 -5
  298. package/contracts/shared/Versionable.sol +4 -92
  299. package/contracts/test/TestRegisterable.sol +1 -1
  300. package/contracts/test/TestService.sol +4 -3
  301. package/contracts/types/Amount.sol +70 -0
  302. package/contracts/types/Blocknumber.sol +1 -0
  303. package/contracts/types/ClaimId.sol +75 -0
  304. package/contracts/types/DistributorType.sol +2 -2
  305. package/contracts/types/Fee.sol +13 -5
  306. package/contracts/types/NftId.sol +8 -0
  307. package/contracts/types/ObjectType.sol +16 -7
  308. package/contracts/types/PayoutId.sol +82 -0
  309. package/contracts/types/Referral.sol +4 -0
  310. package/contracts/types/RoleId.sol +26 -19
  311. package/contracts/types/Seconds.sol +54 -0
  312. package/contracts/types/StateId.sol +7 -2
  313. package/contracts/types/Timestamp.sol +18 -13
  314. package/contracts/types/UFixed.sol +1 -0
  315. package/contracts/types/Version.sol +1 -0
  316. package/package.json +3 -3
  317. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
  318. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +0 -327
  319. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
  320. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +0 -280
  321. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +0 -4
  322. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.json +0 -66
  323. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +0 -4
  324. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.json +0 -24
  325. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +0 -4
  326. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.json +0 -42
  327. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +0 -4
  328. package/artifacts/contracts/experiment/errors/Require.sol/Require.json +0 -105
  329. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +0 -4
  330. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +0 -105
  331. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +0 -4
  332. package/artifacts/contracts/experiment/inheritance/A.sol/A.json +0 -128
  333. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +0 -4
  334. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +0 -42
  335. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +0 -4
  336. package/artifacts/contracts/experiment/inheritance/B.sol/B.json +0 -76
  337. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +0 -4
  338. package/artifacts/contracts/experiment/inheritance/C.sol/C.json +0 -89
  339. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +0 -4
  340. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.json +0 -128
  341. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +0 -4
  342. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.json +0 -37
  343. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +0 -4
  344. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +0 -4
  345. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.json +0 -63
  346. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +0 -4
  347. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +0 -59
  348. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +0 -4
  349. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +0 -124
  350. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +0 -4
  351. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +0 -74
  352. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +0 -4
  353. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +0 -124
  354. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +0 -4
  355. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +0 -207
  356. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +0 -4
  357. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +0 -10
  358. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +0 -4
  359. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +0 -10
  360. package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.dbg.json +0 -4
  361. package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.json +0 -101
  362. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.dbg.json +0 -4
  363. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.json +0 -1132
  364. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +0 -4
  365. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +0 -1082
  366. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
  367. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
  368. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +0 -113
  369. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
  370. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -827
  371. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
  372. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +0 -4
  373. package/contracts/components/BaseComponent.sol +0 -91
  374. package/contracts/components/IBaseComponent.sol +0 -25
  375. package/contracts/experiment/cloning/Cloner.sol +0 -47
  376. package/contracts/experiment/errors/Require.sol +0 -38
  377. package/contracts/experiment/errors/Revert.sol +0 -44
  378. package/contracts/experiment/inheritance/A.sol +0 -53
  379. package/contracts/experiment/inheritance/B.sol +0 -28
  380. package/contracts/experiment/inheritance/C.sol +0 -34
  381. package/contracts/experiment/inheritance/IA.sol +0 -13
  382. package/contracts/experiment/inheritance/IB.sol +0 -10
  383. package/contracts/experiment/inheritance/IC.sol +0 -12
  384. package/contracts/experiment/statemachine/Dummy.sol +0 -27
  385. package/contracts/experiment/statemachine/ISM.sol +0 -25
  386. package/contracts/experiment/statemachine/SM.sol +0 -57
  387. package/contracts/experiment/statemachine/SimpleStateMachine.sol +0 -31
  388. package/contracts/experiment/types/TypeA.sol +0 -47
  389. package/contracts/experiment/types/TypeB.sol +0 -29
  390. package/contracts/instance/AccessManagedSimple.sol +0 -115
  391. package/contracts/instance/AccessManagerSimple.sol +0 -692
  392. package/contracts/instance/IAccessManagerSimple.sol +0 -391
  393. package/contracts/instance/base/ComponentServiceBase.sol +0 -134
  394. package/contracts/instance/base/IInstanceBase.sol +0 -23
  395. package/contracts/instance/service/ComponentOwnerService.sol +0 -317
  396. package/contracts/instance/service/IComponentOwnerService.sol +0 -20
  397. package/contracts/shared/RegisterableUpgradable.sol +0 -16
@@ -6,782 +6,197 @@
6
6
  {
7
7
  "inputs": [
8
8
  {
9
- "internalType": "ObjectType",
10
- "name": "objectType",
11
- "type": "uint8"
12
- },
13
- {
14
- "internalType": "StateId",
15
- "name": "fromStateId",
16
- "type": "uint8"
17
- },
18
- {
19
- "internalType": "StateId",
20
- "name": "toStateId",
21
- "type": "uint8"
9
+ "internalType": "address",
10
+ "name": "authority",
11
+ "type": "address"
22
12
  }
23
13
  ],
24
- "name": "ErrorInvalidStateTransition",
14
+ "name": "AccessManagedInvalidAuthority",
25
15
  "type": "error"
26
16
  },
27
17
  {
28
18
  "inputs": [
29
19
  {
30
- "internalType": "NftId",
31
- "name": "nftId",
32
- "type": "uint96"
20
+ "internalType": "address",
21
+ "name": "caller",
22
+ "type": "address"
33
23
  },
34
24
  {
35
- "internalType": "ObjectType",
36
- "name": "objectType",
37
- "type": "uint8"
25
+ "internalType": "uint32",
26
+ "name": "delay",
27
+ "type": "uint32"
38
28
  }
39
29
  ],
40
- "name": "ErrorNoLifecycle",
30
+ "name": "AccessManagedRequiredDelay",
41
31
  "type": "error"
42
32
  },
43
33
  {
44
- "anonymous": false,
45
34
  "inputs": [
46
35
  {
47
- "indexed": false,
48
- "internalType": "ObjectType",
49
- "name": "objectType",
50
- "type": "uint8"
51
- },
52
- {
53
- "indexed": false,
54
- "internalType": "KeyId",
55
- "name": "keyId",
56
- "type": "bytes31"
57
- },
58
- {
59
- "indexed": false,
60
- "internalType": "StateId",
61
- "name": "state",
62
- "type": "uint8"
63
- },
64
- {
65
- "indexed": false,
66
36
  "internalType": "address",
67
- "name": "createdBy",
68
- "type": "address"
69
- },
70
- {
71
- "indexed": false,
72
- "internalType": "address",
73
- "name": "txOrigin",
37
+ "name": "caller",
74
38
  "type": "address"
75
39
  }
76
40
  ],
77
- "name": "LogInfoCreated",
78
- "type": "event"
41
+ "name": "AccessManagedUnauthorized",
42
+ "type": "error"
79
43
  },
80
44
  {
81
- "anonymous": false,
82
45
  "inputs": [
83
46
  {
84
- "indexed": false,
85
- "internalType": "ObjectType",
86
- "name": "objectType",
87
- "type": "uint8"
88
- },
89
- {
90
- "indexed": false,
91
- "internalType": "KeyId",
92
- "name": "keyId",
93
- "type": "bytes31"
94
- },
95
- {
96
- "indexed": false,
97
- "internalType": "StateId",
98
- "name": "state",
99
- "type": "uint8"
100
- },
101
- {
102
- "indexed": false,
103
47
  "internalType": "address",
104
- "name": "updatedBy",
48
+ "name": "instanceBundleManager",
105
49
  "type": "address"
106
- },
107
- {
108
- "indexed": false,
109
- "internalType": "address",
110
- "name": "txOrigin",
111
- "type": "address"
112
- },
113
- {
114
- "indexed": false,
115
- "internalType": "Blocknumber",
116
- "name": "lastUpdatedIn",
117
- "type": "uint32"
118
50
  }
119
51
  ],
120
- "name": "LogInfoUpdated",
121
- "type": "event"
52
+ "name": "ErrorInstanceBundleManagerAlreadySet",
53
+ "type": "error"
122
54
  },
123
55
  {
124
- "anonymous": false,
125
56
  "inputs": [
126
57
  {
127
- "indexed": false,
128
- "internalType": "ObjectType",
129
- "name": "objectType",
130
- "type": "uint8"
131
- },
132
- {
133
- "indexed": false,
134
- "internalType": "KeyId",
135
- "name": "keyId",
136
- "type": "bytes31"
137
- },
138
- {
139
- "indexed": false,
140
- "internalType": "StateId",
141
- "name": "stateOld",
142
- "type": "uint8"
143
- },
144
- {
145
- "indexed": false,
146
- "internalType": "StateId",
147
- "name": "stateNew",
148
- "type": "uint8"
149
- },
150
- {
151
- "indexed": false,
152
- "internalType": "address",
153
- "name": "updatedBy",
154
- "type": "address"
155
- },
156
- {
157
- "indexed": false,
158
58
  "internalType": "address",
159
- "name": "txOrigin",
59
+ "name": "instanceAuthority",
160
60
  "type": "address"
161
- },
162
- {
163
- "indexed": false,
164
- "internalType": "Blocknumber",
165
- "name": "lastUpdatedIn",
166
- "type": "uint32"
167
- }
168
- ],
169
- "name": "LogStateUpdated",
170
- "type": "event"
171
- },
172
- {
173
- "inputs": [
174
- {
175
- "internalType": "NftId",
176
- "name": "bundleNftId",
177
- "type": "uint96"
178
- },
179
- {
180
- "components": [
181
- {
182
- "internalType": "NftId",
183
- "name": "poolNftId",
184
- "type": "uint96"
185
- },
186
- {
187
- "components": [
188
- {
189
- "internalType": "UFixed",
190
- "name": "fractionalFee",
191
- "type": "uint256"
192
- },
193
- {
194
- "internalType": "uint256",
195
- "name": "fixedFee",
196
- "type": "uint256"
197
- }
198
- ],
199
- "internalType": "struct Fee",
200
- "name": "fee",
201
- "type": "tuple"
202
- },
203
- {
204
- "internalType": "bytes",
205
- "name": "filter",
206
- "type": "bytes"
207
- },
208
- {
209
- "internalType": "uint256",
210
- "name": "capitalAmount",
211
- "type": "uint256"
212
- },
213
- {
214
- "internalType": "uint256",
215
- "name": "lockedAmount",
216
- "type": "uint256"
217
- },
218
- {
219
- "internalType": "uint256",
220
- "name": "balanceAmount",
221
- "type": "uint256"
222
- },
223
- {
224
- "internalType": "uint256",
225
- "name": "lifetime",
226
- "type": "uint256"
227
- },
228
- {
229
- "internalType": "Timestamp",
230
- "name": "expiredAt",
231
- "type": "uint40"
232
- },
233
- {
234
- "internalType": "Timestamp",
235
- "name": "closedAt",
236
- "type": "uint40"
237
- }
238
- ],
239
- "internalType": "struct IBundle.BundleInfo",
240
- "name": "bundle",
241
- "type": "tuple"
242
- }
243
- ],
244
- "name": "createBundle",
245
- "outputs": [],
246
- "stateMutability": "nonpayable",
247
- "type": "function"
248
- },
249
- {
250
- "inputs": [
251
- {
252
- "internalType": "NftId",
253
- "name": "distributionNftId",
254
- "type": "uint96"
255
- },
256
- {
257
- "components": [
258
- {
259
- "internalType": "NftId",
260
- "name": "productNftId",
261
- "type": "uint96"
262
- },
263
- {
264
- "internalType": "contract TokenHandler",
265
- "name": "tokenHandler",
266
- "type": "address"
267
- },
268
- {
269
- "components": [
270
- {
271
- "internalType": "UFixed",
272
- "name": "fractionalFee",
273
- "type": "uint256"
274
- },
275
- {
276
- "internalType": "uint256",
277
- "name": "fixedFee",
278
- "type": "uint256"
279
- }
280
- ],
281
- "internalType": "struct Fee",
282
- "name": "distributionFee",
283
- "type": "tuple"
284
- },
285
- {
286
- "internalType": "bool",
287
- "name": "isIntercepting",
288
- "type": "bool"
289
- },
290
- {
291
- "internalType": "address",
292
- "name": "wallet",
293
- "type": "address"
294
- }
295
- ],
296
- "internalType": "struct ISetup.DistributionSetupInfo",
297
- "name": "setup",
298
- "type": "tuple"
299
61
  }
300
62
  ],
301
- "name": "createDistributionSetup",
302
- "outputs": [],
303
- "stateMutability": "nonpayable",
304
- "type": "function"
63
+ "name": "ErrorInstanceBundleManagerAuthorityMismatch",
64
+ "type": "error"
305
65
  },
306
66
  {
307
67
  "inputs": [
308
68
  {
309
- "internalType": "NftId",
310
- "name": "policyNftId",
311
- "type": "uint96"
312
- },
313
- {
314
- "components": [
315
- {
316
- "internalType": "NftId",
317
- "name": "productNftId",
318
- "type": "uint96"
319
- },
320
- {
321
- "internalType": "NftId",
322
- "name": "bundleNftId",
323
- "type": "uint96"
324
- },
325
- {
326
- "internalType": "ReferralId",
327
- "name": "referralId",
328
- "type": "bytes8"
329
- },
330
- {
331
- "internalType": "RiskId",
332
- "name": "riskId",
333
- "type": "bytes8"
334
- },
335
- {
336
- "internalType": "uint256",
337
- "name": "sumInsuredAmount",
338
- "type": "uint256"
339
- },
340
- {
341
- "internalType": "uint256",
342
- "name": "premiumAmount",
343
- "type": "uint256"
344
- },
345
- {
346
- "internalType": "uint256",
347
- "name": "premiumPaidAmount",
348
- "type": "uint256"
349
- },
350
- {
351
- "internalType": "uint256",
352
- "name": "lifetime",
353
- "type": "uint256"
354
- },
355
- {
356
- "internalType": "bytes",
357
- "name": "applicationData",
358
- "type": "bytes"
359
- },
360
- {
361
- "internalType": "bytes",
362
- "name": "policyData",
363
- "type": "bytes"
364
- },
365
- {
366
- "internalType": "uint16",
367
- "name": "claimsCount",
368
- "type": "uint16"
369
- },
370
- {
371
- "internalType": "uint16",
372
- "name": "openClaimsCount",
373
- "type": "uint16"
374
- },
375
- {
376
- "internalType": "uint256",
377
- "name": "payoutAmount",
378
- "type": "uint256"
379
- },
380
- {
381
- "internalType": "Timestamp",
382
- "name": "activatedAt",
383
- "type": "uint40"
384
- },
385
- {
386
- "internalType": "Timestamp",
387
- "name": "expiredAt",
388
- "type": "uint40"
389
- },
390
- {
391
- "internalType": "Timestamp",
392
- "name": "closedAt",
393
- "type": "uint40"
394
- }
395
- ],
396
- "internalType": "struct IPolicy.PolicyInfo",
397
- "name": "policy",
398
- "type": "tuple"
69
+ "internalType": "address",
70
+ "name": "instance",
71
+ "type": "address"
399
72
  }
400
73
  ],
401
- "name": "createPolicy",
402
- "outputs": [],
403
- "stateMutability": "nonpayable",
404
- "type": "function"
74
+ "name": "ErrorInstanceBundleManagerInstanceMismatch",
75
+ "type": "error"
405
76
  },
406
77
  {
407
78
  "inputs": [
408
79
  {
409
- "internalType": "NftId",
410
- "name": "poolNftId",
411
- "type": "uint96"
412
- },
413
- {
414
- "components": [
415
- {
416
- "internalType": "NftId",
417
- "name": "productNftId",
418
- "type": "uint96"
419
- },
420
- {
421
- "internalType": "contract TokenHandler",
422
- "name": "tokenHandler",
423
- "type": "address"
424
- },
425
- {
426
- "internalType": "UFixed",
427
- "name": "collateralizationLevel",
428
- "type": "uint256"
429
- },
430
- {
431
- "components": [
432
- {
433
- "internalType": "UFixed",
434
- "name": "fractionalFee",
435
- "type": "uint256"
436
- },
437
- {
438
- "internalType": "uint256",
439
- "name": "fixedFee",
440
- "type": "uint256"
441
- }
442
- ],
443
- "internalType": "struct Fee",
444
- "name": "poolFee",
445
- "type": "tuple"
446
- },
447
- {
448
- "components": [
449
- {
450
- "internalType": "UFixed",
451
- "name": "fractionalFee",
452
- "type": "uint256"
453
- },
454
- {
455
- "internalType": "uint256",
456
- "name": "fixedFee",
457
- "type": "uint256"
458
- }
459
- ],
460
- "internalType": "struct Fee",
461
- "name": "stakingFee",
462
- "type": "tuple"
463
- },
464
- {
465
- "components": [
466
- {
467
- "internalType": "UFixed",
468
- "name": "fractionalFee",
469
- "type": "uint256"
470
- },
471
- {
472
- "internalType": "uint256",
473
- "name": "fixedFee",
474
- "type": "uint256"
475
- }
476
- ],
477
- "internalType": "struct Fee",
478
- "name": "performanceFee",
479
- "type": "tuple"
480
- },
481
- {
482
- "internalType": "bool",
483
- "name": "isIntercepting",
484
- "type": "bool"
485
- },
486
- {
487
- "internalType": "bool",
488
- "name": "isConfirmingApplication",
489
- "type": "bool"
490
- },
491
- {
492
- "internalType": "address",
493
- "name": "wallet",
494
- "type": "address"
495
- }
496
- ],
497
- "internalType": "struct ISetup.PoolSetupInfo",
498
- "name": "setup",
499
- "type": "tuple"
80
+ "internalType": "address",
81
+ "name": "instanceAccessManager",
82
+ "type": "address"
500
83
  }
501
84
  ],
502
- "name": "createPoolSetup",
503
- "outputs": [],
504
- "stateMutability": "nonpayable",
505
- "type": "function"
85
+ "name": "ErrorInstanceInstanceAccessManagerAlreadySet",
86
+ "type": "error"
506
87
  },
507
88
  {
508
89
  "inputs": [
509
- {
510
- "internalType": "NftId",
511
- "name": "productNftId",
512
- "type": "uint96"
513
- },
514
- {
515
- "components": [
516
- {
517
- "internalType": "contract IERC20Metadata",
518
- "name": "token",
519
- "type": "address"
520
- },
521
- {
522
- "internalType": "contract TokenHandler",
523
- "name": "tokenHandler",
524
- "type": "address"
525
- },
526
- {
527
- "internalType": "NftId",
528
- "name": "distributionNftId",
529
- "type": "uint96"
530
- },
531
- {
532
- "internalType": "NftId",
533
- "name": "poolNftId",
534
- "type": "uint96"
535
- },
536
- {
537
- "components": [
538
- {
539
- "internalType": "UFixed",
540
- "name": "fractionalFee",
541
- "type": "uint256"
542
- },
543
- {
544
- "internalType": "uint256",
545
- "name": "fixedFee",
546
- "type": "uint256"
547
- }
548
- ],
549
- "internalType": "struct Fee",
550
- "name": "distributionFee",
551
- "type": "tuple"
552
- },
553
- {
554
- "components": [
555
- {
556
- "internalType": "UFixed",
557
- "name": "fractionalFee",
558
- "type": "uint256"
559
- },
560
- {
561
- "internalType": "uint256",
562
- "name": "fixedFee",
563
- "type": "uint256"
564
- }
565
- ],
566
- "internalType": "struct Fee",
567
- "name": "productFee",
568
- "type": "tuple"
569
- },
570
- {
571
- "components": [
572
- {
573
- "internalType": "UFixed",
574
- "name": "fractionalFee",
575
- "type": "uint256"
576
- },
577
- {
578
- "internalType": "uint256",
579
- "name": "fixedFee",
580
- "type": "uint256"
581
- }
582
- ],
583
- "internalType": "struct Fee",
584
- "name": "processingFee",
585
- "type": "tuple"
586
- },
587
- {
588
- "components": [
589
- {
590
- "internalType": "UFixed",
591
- "name": "fractionalFee",
592
- "type": "uint256"
593
- },
594
- {
595
- "internalType": "uint256",
596
- "name": "fixedFee",
597
- "type": "uint256"
598
- }
599
- ],
600
- "internalType": "struct Fee",
601
- "name": "poolFee",
602
- "type": "tuple"
603
- },
604
- {
605
- "components": [
606
- {
607
- "internalType": "UFixed",
608
- "name": "fractionalFee",
609
- "type": "uint256"
610
- },
611
- {
612
- "internalType": "uint256",
613
- "name": "fixedFee",
614
- "type": "uint256"
615
- }
616
- ],
617
- "internalType": "struct Fee",
618
- "name": "stakingFee",
619
- "type": "tuple"
620
- },
621
- {
622
- "components": [
623
- {
624
- "internalType": "UFixed",
625
- "name": "fractionalFee",
626
- "type": "uint256"
627
- },
628
- {
629
- "internalType": "uint256",
630
- "name": "fixedFee",
631
- "type": "uint256"
632
- }
633
- ],
634
- "internalType": "struct Fee",
635
- "name": "performanceFee",
636
- "type": "tuple"
637
- },
638
- {
639
- "internalType": "bool",
640
- "name": "isIntercepting",
641
- "type": "bool"
642
- },
643
- {
644
- "internalType": "address",
645
- "name": "wallet",
646
- "type": "address"
647
- }
648
- ],
649
- "internalType": "struct ISetup.ProductSetupInfo",
650
- "name": "setup",
651
- "type": "tuple"
90
+ {
91
+ "internalType": "address",
92
+ "name": "instanceAuthority",
93
+ "type": "address"
652
94
  }
653
95
  ],
654
- "name": "createProductSetup",
655
- "outputs": [],
656
- "stateMutability": "nonpayable",
657
- "type": "function"
96
+ "name": "ErrorInstanceInstanceAccessManagerAuthorityMismatch",
97
+ "type": "error"
658
98
  },
659
99
  {
660
100
  "inputs": [
661
101
  {
662
- "internalType": "RiskId",
663
- "name": "riskId",
664
- "type": "bytes8"
665
- },
666
- {
667
- "components": [
668
- {
669
- "internalType": "NftId",
670
- "name": "productNftId",
671
- "type": "uint96"
672
- },
673
- {
674
- "internalType": "bytes",
675
- "name": "data",
676
- "type": "bytes"
677
- }
678
- ],
679
- "internalType": "struct IRisk.RiskInfo",
680
- "name": "risk",
681
- "type": "tuple"
102
+ "internalType": "address",
103
+ "name": "instanceAuthority",
104
+ "type": "address"
682
105
  }
683
106
  ],
684
- "name": "createRisk",
685
- "outputs": [],
686
- "stateMutability": "nonpayable",
687
- "type": "function"
107
+ "name": "ErrorInstanceInstanceReaderInstanceMismatch",
108
+ "type": "error"
688
109
  },
689
110
  {
690
111
  "inputs": [
691
112
  {
692
- "internalType": "Key32",
693
- "name": "key",
694
- "type": "bytes32"
113
+ "internalType": "address",
114
+ "name": "instanceStore",
115
+ "type": "address"
695
116
  }
696
117
  ],
697
- "name": "exists",
698
- "outputs": [
118
+ "name": "ErrorInstanceInstanceStoreAlreadySet",
119
+ "type": "error"
120
+ },
121
+ {
122
+ "inputs": [
699
123
  {
700
- "internalType": "bool",
701
- "name": "",
702
- "type": "bool"
124
+ "internalType": "address",
125
+ "name": "instanceAuthority",
126
+ "type": "address"
703
127
  }
704
128
  ],
705
- "stateMutability": "view",
706
- "type": "function"
129
+ "name": "ErrorInstanceInstanceStoreAuthorityMismatch",
130
+ "type": "error"
707
131
  },
708
132
  {
709
133
  "inputs": [
710
134
  {
711
- "internalType": "Key32",
712
- "name": "key",
713
- "type": "bytes32"
135
+ "internalType": "NftId",
136
+ "name": "nftId",
137
+ "type": "uint96"
714
138
  }
715
139
  ],
716
- "name": "get",
717
- "outputs": [
140
+ "name": "ErrorNftOwnableAlreadyLinked",
141
+ "type": "error"
142
+ },
143
+ {
144
+ "inputs": [
718
145
  {
719
- "components": [
720
- {
721
- "components": [
722
- {
723
- "internalType": "ObjectType",
724
- "name": "objectType",
725
- "type": "uint8"
726
- },
727
- {
728
- "internalType": "StateId",
729
- "name": "state",
730
- "type": "uint8"
731
- },
732
- {
733
- "internalType": "address",
734
- "name": "updatedBy",
735
- "type": "address"
736
- },
737
- {
738
- "internalType": "Blocknumber",
739
- "name": "updatedIn",
740
- "type": "uint32"
741
- },
742
- {
743
- "internalType": "Blocknumber",
744
- "name": "createdIn",
745
- "type": "uint32"
746
- }
747
- ],
748
- "internalType": "struct IKeyValueStore.Metadata",
749
- "name": "metadata",
750
- "type": "tuple"
751
- },
752
- {
753
- "internalType": "bytes",
754
- "name": "data",
755
- "type": "bytes"
756
- }
757
- ],
758
- "internalType": "struct IKeyValueStore.Value",
759
- "name": "value",
760
- "type": "tuple"
146
+ "internalType": "address",
147
+ "name": "contractAddress",
148
+ "type": "address"
761
149
  }
762
150
  ],
763
- "stateMutability": "view",
764
- "type": "function"
151
+ "name": "ErrorNftOwnableContractNotRegistered",
152
+ "type": "error"
765
153
  },
766
154
  {
767
155
  "inputs": [],
768
- "name": "getBundleManager",
769
- "outputs": [
156
+ "name": "ErrorNftOwnableInitialOwnerZero",
157
+ "type": "error"
158
+ },
159
+ {
160
+ "inputs": [
770
161
  {
771
- "internalType": "contract BundleManager",
772
- "name": "",
162
+ "internalType": "address",
163
+ "name": "account",
773
164
  "type": "address"
774
165
  }
775
166
  ],
776
- "stateMutability": "view",
777
- "type": "function"
167
+ "name": "ErrorNftOwnableNotOwner",
168
+ "type": "error"
169
+ },
170
+ {
171
+ "inputs": [
172
+ {
173
+ "internalType": "address",
174
+ "name": "registryAddress",
175
+ "type": "address"
176
+ }
177
+ ],
178
+ "name": "ErrorNotRegistry",
179
+ "type": "error"
180
+ },
181
+ {
182
+ "anonymous": false,
183
+ "inputs": [
184
+ {
185
+ "indexed": false,
186
+ "internalType": "address",
187
+ "name": "authority",
188
+ "type": "address"
189
+ }
190
+ ],
191
+ "name": "AuthorityUpdated",
192
+ "type": "event"
778
193
  },
779
194
  {
780
195
  "inputs": [],
781
- "name": "getComponentOwnerService",
196
+ "name": "authority",
782
197
  "outputs": [
783
198
  {
784
- "internalType": "contract IComponentOwnerService",
199
+ "internalType": "address",
785
200
  "name": "",
786
201
  "type": "address"
787
202
  }
@@ -792,28 +207,56 @@
792
207
  {
793
208
  "inputs": [
794
209
  {
795
- "internalType": "Key32",
796
- "name": "key",
797
- "type": "bytes32"
210
+ "internalType": "string",
211
+ "name": "roleName",
212
+ "type": "string"
213
+ },
214
+ {
215
+ "internalType": "string",
216
+ "name": "adminName",
217
+ "type": "string"
798
218
  }
799
219
  ],
800
- "name": "getData",
220
+ "name": "createRole",
801
221
  "outputs": [
802
222
  {
803
- "internalType": "bytes",
804
- "name": "data",
805
- "type": "bytes"
223
+ "internalType": "RoleId",
224
+ "name": "roleId",
225
+ "type": "uint64"
226
+ },
227
+ {
228
+ "internalType": "RoleId",
229
+ "name": "admin",
230
+ "type": "uint64"
806
231
  }
807
232
  ],
808
- "stateMutability": "view",
233
+ "stateMutability": "nonpayable",
234
+ "type": "function"
235
+ },
236
+ {
237
+ "inputs": [
238
+ {
239
+ "internalType": "address",
240
+ "name": "target",
241
+ "type": "address"
242
+ },
243
+ {
244
+ "internalType": "string",
245
+ "name": "name",
246
+ "type": "string"
247
+ }
248
+ ],
249
+ "name": "createTarget",
250
+ "outputs": [],
251
+ "stateMutability": "nonpayable",
809
252
  "type": "function"
810
253
  },
811
254
  {
812
255
  "inputs": [],
813
- "name": "getDistributionService",
256
+ "name": "getBundleManager",
814
257
  "outputs": [
815
258
  {
816
- "internalType": "contract IDistributionService",
259
+ "internalType": "contract BundleManager",
817
260
  "name": "",
818
261
  "type": "address"
819
262
  }
@@ -822,19 +265,13 @@
822
265
  "type": "function"
823
266
  },
824
267
  {
825
- "inputs": [
826
- {
827
- "internalType": "ObjectType",
828
- "name": "objectType",
829
- "type": "uint8"
830
- }
831
- ],
832
- "name": "getInitialState",
268
+ "inputs": [],
269
+ "name": "getBundleService",
833
270
  "outputs": [
834
271
  {
835
- "internalType": "StateId",
272
+ "internalType": "contract IBundleService",
836
273
  "name": "",
837
- "type": "uint8"
274
+ "type": "address"
838
275
  }
839
276
  ],
840
277
  "stateMutability": "view",
@@ -842,10 +279,10 @@
842
279
  },
843
280
  {
844
281
  "inputs": [],
845
- "name": "getInstanceReader",
282
+ "name": "getDistributionService",
846
283
  "outputs": [
847
284
  {
848
- "internalType": "contract InstanceReader",
285
+ "internalType": "contract IDistributionService",
849
286
  "name": "",
850
287
  "type": "address"
851
288
  }
@@ -854,45 +291,49 @@
854
291
  "type": "function"
855
292
  },
856
293
  {
857
- "inputs": [
858
- {
859
- "internalType": "Key32",
860
- "name": "key",
861
- "type": "bytes32"
862
- }
863
- ],
864
- "name": "getMetadata",
294
+ "inputs": [],
295
+ "name": "getInitialInfo",
865
296
  "outputs": [
866
297
  {
867
298
  "components": [
299
+ {
300
+ "internalType": "NftId",
301
+ "name": "nftId",
302
+ "type": "uint96"
303
+ },
304
+ {
305
+ "internalType": "NftId",
306
+ "name": "parentNftId",
307
+ "type": "uint96"
308
+ },
868
309
  {
869
310
  "internalType": "ObjectType",
870
311
  "name": "objectType",
871
312
  "type": "uint8"
872
313
  },
873
314
  {
874
- "internalType": "StateId",
875
- "name": "state",
876
- "type": "uint8"
315
+ "internalType": "bool",
316
+ "name": "isInterceptor",
317
+ "type": "bool"
877
318
  },
878
319
  {
879
320
  "internalType": "address",
880
- "name": "updatedBy",
321
+ "name": "objectAddress",
881
322
  "type": "address"
882
323
  },
883
324
  {
884
- "internalType": "Blocknumber",
885
- "name": "updatedIn",
886
- "type": "uint32"
325
+ "internalType": "address",
326
+ "name": "initialOwner",
327
+ "type": "address"
887
328
  },
888
329
  {
889
- "internalType": "Blocknumber",
890
- "name": "createdIn",
891
- "type": "uint32"
330
+ "internalType": "bytes",
331
+ "name": "data",
332
+ "type": "bytes"
892
333
  }
893
334
  ],
894
- "internalType": "struct IKeyValueStore.Metadata",
895
- "name": "metadata",
335
+ "internalType": "struct IRegistry.ObjectInfo",
336
+ "name": "",
896
337
  "type": "tuple"
897
338
  }
898
339
  ],
@@ -901,10 +342,10 @@
901
342
  },
902
343
  {
903
344
  "inputs": [],
904
- "name": "getPoolService",
345
+ "name": "getInstanceAccessManager",
905
346
  "outputs": [
906
347
  {
907
- "internalType": "contract IPoolService",
348
+ "internalType": "contract InstanceAccessManager",
908
349
  "name": "",
909
350
  "type": "address"
910
351
  }
@@ -914,10 +355,10 @@
914
355
  },
915
356
  {
916
357
  "inputs": [],
917
- "name": "getProductService",
358
+ "name": "getInstanceReader",
918
359
  "outputs": [
919
360
  {
920
- "internalType": "contract IProductService",
361
+ "internalType": "contract InstanceReader",
921
362
  "name": "",
922
363
  "type": "address"
923
364
  }
@@ -926,396 +367,156 @@
926
367
  "type": "function"
927
368
  },
928
369
  {
929
- "inputs": [
930
- {
931
- "internalType": "Key32",
932
- "name": "key",
933
- "type": "bytes32"
934
- }
935
- ],
936
- "name": "getState",
370
+ "inputs": [],
371
+ "name": "getInstanceStore",
937
372
  "outputs": [
938
373
  {
939
- "internalType": "StateId",
940
- "name": "state",
941
- "type": "uint8"
374
+ "internalType": "contract InstanceStore",
375
+ "name": "",
376
+ "type": "address"
942
377
  }
943
378
  ],
944
379
  "stateMutability": "view",
945
380
  "type": "function"
946
381
  },
947
382
  {
948
- "inputs": [
383
+ "inputs": [],
384
+ "name": "getMajorVersion",
385
+ "outputs": [
949
386
  {
950
- "internalType": "ObjectType",
951
- "name": "objectType",
387
+ "internalType": "VersionPart",
388
+ "name": "majorVersion",
952
389
  "type": "uint8"
953
390
  }
954
391
  ],
955
- "name": "hasLifecycle",
392
+ "stateMutability": "pure",
393
+ "type": "function"
394
+ },
395
+ {
396
+ "inputs": [],
397
+ "name": "getNftId",
956
398
  "outputs": [
957
399
  {
958
- "internalType": "bool",
400
+ "internalType": "NftId",
959
401
  "name": "",
960
- "type": "bool"
402
+ "type": "uint96"
961
403
  }
962
404
  ],
963
405
  "stateMutability": "view",
964
406
  "type": "function"
965
407
  },
966
408
  {
967
- "inputs": [
968
- {
969
- "internalType": "ObjectType",
970
- "name": "objectType",
971
- "type": "uint8"
972
- },
973
- {
974
- "internalType": "StateId",
975
- "name": "fromId",
976
- "type": "uint8"
977
- },
978
- {
979
- "internalType": "StateId",
980
- "name": "toId",
981
- "type": "uint8"
982
- }
983
- ],
984
- "name": "isValidTransition",
409
+ "inputs": [],
410
+ "name": "getOwner",
985
411
  "outputs": [
986
412
  {
987
- "internalType": "bool",
413
+ "internalType": "address",
988
414
  "name": "",
989
- "type": "bool"
415
+ "type": "address"
990
416
  }
991
417
  ],
992
418
  "stateMutability": "view",
993
419
  "type": "function"
994
420
  },
995
421
  {
996
- "inputs": [
997
- {
998
- "internalType": "bytes4",
999
- "name": "interfaceId",
1000
- "type": "bytes4"
1001
- }
1002
- ],
1003
- "name": "supportsInterface",
422
+ "inputs": [],
423
+ "name": "getPolicyService",
1004
424
  "outputs": [
1005
425
  {
1006
- "internalType": "bool",
426
+ "internalType": "contract IPolicyService",
1007
427
  "name": "",
1008
- "type": "bool"
428
+ "type": "address"
1009
429
  }
1010
430
  ],
1011
431
  "stateMutability": "view",
1012
432
  "type": "function"
1013
433
  },
1014
434
  {
1015
- "inputs": [
1016
- {
1017
- "internalType": "ObjectType",
1018
- "name": "objectType",
1019
- "type": "uint8"
1020
- },
1021
- {
1022
- "internalType": "KeyId",
1023
- "name": "id",
1024
- "type": "bytes31"
1025
- }
1026
- ],
1027
- "name": "toKey32",
435
+ "inputs": [],
436
+ "name": "getPoolService",
1028
437
  "outputs": [
1029
438
  {
1030
- "internalType": "Key32",
439
+ "internalType": "contract IPoolService",
1031
440
  "name": "",
1032
- "type": "bytes32"
441
+ "type": "address"
1033
442
  }
1034
443
  ],
1035
- "stateMutability": "pure",
444
+ "stateMutability": "view",
1036
445
  "type": "function"
1037
446
  },
1038
447
  {
1039
- "inputs": [
1040
- {
1041
- "internalType": "NftId",
1042
- "name": "bundleNftId",
1043
- "type": "uint96"
1044
- },
1045
- {
1046
- "components": [
1047
- {
1048
- "internalType": "NftId",
1049
- "name": "poolNftId",
1050
- "type": "uint96"
1051
- },
1052
- {
1053
- "components": [
1054
- {
1055
- "internalType": "UFixed",
1056
- "name": "fractionalFee",
1057
- "type": "uint256"
1058
- },
1059
- {
1060
- "internalType": "uint256",
1061
- "name": "fixedFee",
1062
- "type": "uint256"
1063
- }
1064
- ],
1065
- "internalType": "struct Fee",
1066
- "name": "fee",
1067
- "type": "tuple"
1068
- },
1069
- {
1070
- "internalType": "bytes",
1071
- "name": "filter",
1072
- "type": "bytes"
1073
- },
1074
- {
1075
- "internalType": "uint256",
1076
- "name": "capitalAmount",
1077
- "type": "uint256"
1078
- },
1079
- {
1080
- "internalType": "uint256",
1081
- "name": "lockedAmount",
1082
- "type": "uint256"
1083
- },
1084
- {
1085
- "internalType": "uint256",
1086
- "name": "balanceAmount",
1087
- "type": "uint256"
1088
- },
1089
- {
1090
- "internalType": "uint256",
1091
- "name": "lifetime",
1092
- "type": "uint256"
1093
- },
1094
- {
1095
- "internalType": "Timestamp",
1096
- "name": "expiredAt",
1097
- "type": "uint40"
1098
- },
1099
- {
1100
- "internalType": "Timestamp",
1101
- "name": "closedAt",
1102
- "type": "uint40"
1103
- }
1104
- ],
1105
- "internalType": "struct IBundle.BundleInfo",
1106
- "name": "bundle",
1107
- "type": "tuple"
1108
- },
448
+ "inputs": [],
449
+ "name": "getProductService",
450
+ "outputs": [
1109
451
  {
1110
- "internalType": "StateId",
1111
- "name": "newState",
1112
- "type": "uint8"
452
+ "internalType": "contract IProductService",
453
+ "name": "",
454
+ "type": "address"
1113
455
  }
1114
456
  ],
1115
- "name": "updateBundle",
1116
- "outputs": [],
1117
- "stateMutability": "nonpayable",
457
+ "stateMutability": "view",
1118
458
  "type": "function"
1119
459
  },
1120
460
  {
1121
- "inputs": [
1122
- {
1123
- "internalType": "NftId",
1124
- "name": "bundleNftId",
1125
- "type": "uint96"
1126
- },
461
+ "inputs": [],
462
+ "name": "getRegistry",
463
+ "outputs": [
1127
464
  {
1128
- "internalType": "StateId",
1129
- "name": "newState",
1130
- "type": "uint8"
465
+ "internalType": "contract IRegistry",
466
+ "name": "",
467
+ "type": "address"
1131
468
  }
1132
469
  ],
1133
- "name": "updateBundleState",
1134
- "outputs": [],
1135
- "stateMutability": "nonpayable",
470
+ "stateMutability": "view",
1136
471
  "type": "function"
1137
472
  },
1138
473
  {
1139
- "inputs": [
1140
- {
1141
- "internalType": "NftId",
1142
- "name": "distributionNftId",
1143
- "type": "uint96"
1144
- },
1145
- {
1146
- "components": [
1147
- {
1148
- "internalType": "NftId",
1149
- "name": "productNftId",
1150
- "type": "uint96"
1151
- },
1152
- {
1153
- "internalType": "contract TokenHandler",
1154
- "name": "tokenHandler",
1155
- "type": "address"
1156
- },
1157
- {
1158
- "components": [
1159
- {
1160
- "internalType": "UFixed",
1161
- "name": "fractionalFee",
1162
- "type": "uint256"
1163
- },
1164
- {
1165
- "internalType": "uint256",
1166
- "name": "fixedFee",
1167
- "type": "uint256"
1168
- }
1169
- ],
1170
- "internalType": "struct Fee",
1171
- "name": "distributionFee",
1172
- "type": "tuple"
1173
- },
1174
- {
1175
- "internalType": "bool",
1176
- "name": "isIntercepting",
1177
- "type": "bool"
1178
- },
1179
- {
1180
- "internalType": "address",
1181
- "name": "wallet",
1182
- "type": "address"
1183
- }
1184
- ],
1185
- "internalType": "struct ISetup.DistributionSetupInfo",
1186
- "name": "setup",
1187
- "type": "tuple"
1188
- },
474
+ "inputs": [],
475
+ "name": "getRegistryAddress",
476
+ "outputs": [
1189
477
  {
1190
- "internalType": "StateId",
1191
- "name": "newState",
1192
- "type": "uint8"
478
+ "internalType": "address",
479
+ "name": "",
480
+ "type": "address"
1193
481
  }
1194
482
  ],
1195
- "name": "updateDistributionSetup",
1196
- "outputs": [],
1197
- "stateMutability": "nonpayable",
483
+ "stateMutability": "view",
1198
484
  "type": "function"
1199
485
  },
1200
486
  {
1201
487
  "inputs": [
1202
488
  {
1203
- "internalType": "NftId",
1204
- "name": "distributionNftId",
1205
- "type": "uint96"
489
+ "internalType": "RoleId",
490
+ "name": "roleId",
491
+ "type": "uint64"
1206
492
  },
1207
493
  {
1208
- "internalType": "StateId",
1209
- "name": "newState",
1210
- "type": "uint8"
494
+ "internalType": "address",
495
+ "name": "account",
496
+ "type": "address"
1211
497
  }
1212
498
  ],
1213
- "name": "updateDistributionSetupState",
499
+ "name": "grantRole",
1214
500
  "outputs": [],
1215
501
  "stateMutability": "nonpayable",
1216
502
  "type": "function"
1217
503
  },
1218
504
  {
1219
- "inputs": [
1220
- {
1221
- "internalType": "NftId",
1222
- "name": "policyNftId",
1223
- "type": "uint96"
1224
- },
1225
- {
1226
- "components": [
1227
- {
1228
- "internalType": "NftId",
1229
- "name": "productNftId",
1230
- "type": "uint96"
1231
- },
1232
- {
1233
- "internalType": "NftId",
1234
- "name": "bundleNftId",
1235
- "type": "uint96"
1236
- },
1237
- {
1238
- "internalType": "ReferralId",
1239
- "name": "referralId",
1240
- "type": "bytes8"
1241
- },
1242
- {
1243
- "internalType": "RiskId",
1244
- "name": "riskId",
1245
- "type": "bytes8"
1246
- },
1247
- {
1248
- "internalType": "uint256",
1249
- "name": "sumInsuredAmount",
1250
- "type": "uint256"
1251
- },
1252
- {
1253
- "internalType": "uint256",
1254
- "name": "premiumAmount",
1255
- "type": "uint256"
1256
- },
1257
- {
1258
- "internalType": "uint256",
1259
- "name": "premiumPaidAmount",
1260
- "type": "uint256"
1261
- },
1262
- {
1263
- "internalType": "uint256",
1264
- "name": "lifetime",
1265
- "type": "uint256"
1266
- },
1267
- {
1268
- "internalType": "bytes",
1269
- "name": "applicationData",
1270
- "type": "bytes"
1271
- },
1272
- {
1273
- "internalType": "bytes",
1274
- "name": "policyData",
1275
- "type": "bytes"
1276
- },
1277
- {
1278
- "internalType": "uint16",
1279
- "name": "claimsCount",
1280
- "type": "uint16"
1281
- },
1282
- {
1283
- "internalType": "uint16",
1284
- "name": "openClaimsCount",
1285
- "type": "uint16"
1286
- },
1287
- {
1288
- "internalType": "uint256",
1289
- "name": "payoutAmount",
1290
- "type": "uint256"
1291
- },
1292
- {
1293
- "internalType": "Timestamp",
1294
- "name": "activatedAt",
1295
- "type": "uint40"
1296
- },
1297
- {
1298
- "internalType": "Timestamp",
1299
- "name": "expiredAt",
1300
- "type": "uint40"
1301
- },
1302
- {
1303
- "internalType": "Timestamp",
1304
- "name": "closedAt",
1305
- "type": "uint40"
1306
- }
1307
- ],
1308
- "internalType": "struct IPolicy.PolicyInfo",
1309
- "name": "policy",
1310
- "type": "tuple"
1311
- },
505
+ "inputs": [],
506
+ "name": "isConsumingScheduledOp",
507
+ "outputs": [
1312
508
  {
1313
- "internalType": "StateId",
1314
- "name": "newState",
1315
- "type": "uint8"
509
+ "internalType": "bytes4",
510
+ "name": "",
511
+ "type": "bytes4"
1316
512
  }
1317
513
  ],
1318
- "name": "updatePolicy",
514
+ "stateMutability": "view",
515
+ "type": "function"
516
+ },
517
+ {
518
+ "inputs": [],
519
+ "name": "linkToRegisteredNftId",
1319
520
  "outputs": [],
1320
521
  "stateMutability": "nonpayable",
1321
522
  "type": "function"
@@ -1323,17 +524,17 @@
1323
524
  {
1324
525
  "inputs": [
1325
526
  {
1326
- "internalType": "NftId",
1327
- "name": "policyNftId",
1328
- "type": "uint96"
527
+ "internalType": "address",
528
+ "name": "to",
529
+ "type": "address"
1329
530
  },
1330
531
  {
1331
- "internalType": "StateId",
1332
- "name": "newState",
1333
- "type": "uint8"
532
+ "internalType": "uint256",
533
+ "name": "tokenId",
534
+ "type": "uint256"
1334
535
  }
1335
536
  ],
1336
- "name": "updatePolicyState",
537
+ "name": "nftMint",
1337
538
  "outputs": [],
1338
539
  "stateMutability": "nonpayable",
1339
540
  "type": "function"
@@ -1341,105 +542,22 @@
1341
542
  {
1342
543
  "inputs": [
1343
544
  {
1344
- "internalType": "NftId",
1345
- "name": "poolNftId",
1346
- "type": "uint96"
545
+ "internalType": "address",
546
+ "name": "from",
547
+ "type": "address"
1347
548
  },
1348
549
  {
1349
- "components": [
1350
- {
1351
- "internalType": "NftId",
1352
- "name": "productNftId",
1353
- "type": "uint96"
1354
- },
1355
- {
1356
- "internalType": "contract TokenHandler",
1357
- "name": "tokenHandler",
1358
- "type": "address"
1359
- },
1360
- {
1361
- "internalType": "UFixed",
1362
- "name": "collateralizationLevel",
1363
- "type": "uint256"
1364
- },
1365
- {
1366
- "components": [
1367
- {
1368
- "internalType": "UFixed",
1369
- "name": "fractionalFee",
1370
- "type": "uint256"
1371
- },
1372
- {
1373
- "internalType": "uint256",
1374
- "name": "fixedFee",
1375
- "type": "uint256"
1376
- }
1377
- ],
1378
- "internalType": "struct Fee",
1379
- "name": "poolFee",
1380
- "type": "tuple"
1381
- },
1382
- {
1383
- "components": [
1384
- {
1385
- "internalType": "UFixed",
1386
- "name": "fractionalFee",
1387
- "type": "uint256"
1388
- },
1389
- {
1390
- "internalType": "uint256",
1391
- "name": "fixedFee",
1392
- "type": "uint256"
1393
- }
1394
- ],
1395
- "internalType": "struct Fee",
1396
- "name": "stakingFee",
1397
- "type": "tuple"
1398
- },
1399
- {
1400
- "components": [
1401
- {
1402
- "internalType": "UFixed",
1403
- "name": "fractionalFee",
1404
- "type": "uint256"
1405
- },
1406
- {
1407
- "internalType": "uint256",
1408
- "name": "fixedFee",
1409
- "type": "uint256"
1410
- }
1411
- ],
1412
- "internalType": "struct Fee",
1413
- "name": "performanceFee",
1414
- "type": "tuple"
1415
- },
1416
- {
1417
- "internalType": "bool",
1418
- "name": "isIntercepting",
1419
- "type": "bool"
1420
- },
1421
- {
1422
- "internalType": "bool",
1423
- "name": "isConfirmingApplication",
1424
- "type": "bool"
1425
- },
1426
- {
1427
- "internalType": "address",
1428
- "name": "wallet",
1429
- "type": "address"
1430
- }
1431
- ],
1432
- "internalType": "struct ISetup.PoolSetupInfo",
1433
- "name": "setup",
1434
- "type": "tuple"
550
+ "internalType": "address",
551
+ "name": "to",
552
+ "type": "address"
1435
553
  },
1436
554
  {
1437
- "internalType": "StateId",
1438
- "name": "newState",
1439
- "type": "uint8"
555
+ "internalType": "uint256",
556
+ "name": "tokenId",
557
+ "type": "uint256"
1440
558
  }
1441
559
  ],
1442
- "name": "updatePoolSetup",
560
+ "name": "nftTransferFrom",
1443
561
  "outputs": [],
1444
562
  "stateMutability": "nonpayable",
1445
563
  "type": "function"
@@ -1447,17 +565,17 @@
1447
565
  {
1448
566
  "inputs": [
1449
567
  {
1450
- "internalType": "NftId",
1451
- "name": "poolNftId",
1452
- "type": "uint96"
568
+ "internalType": "RoleId",
569
+ "name": "roleId",
570
+ "type": "uint64"
1453
571
  },
1454
572
  {
1455
- "internalType": "StateId",
1456
- "name": "newState",
1457
- "type": "uint8"
573
+ "internalType": "address",
574
+ "name": "account",
575
+ "type": "address"
1458
576
  }
1459
577
  ],
1460
- "name": "updatePoolSetupState",
578
+ "name": "revokeRole",
1461
579
  "outputs": [],
1462
580
  "stateMutability": "nonpayable",
1463
581
  "type": "function"
@@ -1465,156 +583,12 @@
1465
583
  {
1466
584
  "inputs": [
1467
585
  {
1468
- "internalType": "NftId",
1469
- "name": "productNftId",
1470
- "type": "uint96"
1471
- },
1472
- {
1473
- "components": [
1474
- {
1475
- "internalType": "contract IERC20Metadata",
1476
- "name": "token",
1477
- "type": "address"
1478
- },
1479
- {
1480
- "internalType": "contract TokenHandler",
1481
- "name": "tokenHandler",
1482
- "type": "address"
1483
- },
1484
- {
1485
- "internalType": "NftId",
1486
- "name": "distributionNftId",
1487
- "type": "uint96"
1488
- },
1489
- {
1490
- "internalType": "NftId",
1491
- "name": "poolNftId",
1492
- "type": "uint96"
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": "distributionFee",
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": "productFee",
1526
- "type": "tuple"
1527
- },
1528
- {
1529
- "components": [
1530
- {
1531
- "internalType": "UFixed",
1532
- "name": "fractionalFee",
1533
- "type": "uint256"
1534
- },
1535
- {
1536
- "internalType": "uint256",
1537
- "name": "fixedFee",
1538
- "type": "uint256"
1539
- }
1540
- ],
1541
- "internalType": "struct Fee",
1542
- "name": "processingFee",
1543
- "type": "tuple"
1544
- },
1545
- {
1546
- "components": [
1547
- {
1548
- "internalType": "UFixed",
1549
- "name": "fractionalFee",
1550
- "type": "uint256"
1551
- },
1552
- {
1553
- "internalType": "uint256",
1554
- "name": "fixedFee",
1555
- "type": "uint256"
1556
- }
1557
- ],
1558
- "internalType": "struct Fee",
1559
- "name": "poolFee",
1560
- "type": "tuple"
1561
- },
1562
- {
1563
- "components": [
1564
- {
1565
- "internalType": "UFixed",
1566
- "name": "fractionalFee",
1567
- "type": "uint256"
1568
- },
1569
- {
1570
- "internalType": "uint256",
1571
- "name": "fixedFee",
1572
- "type": "uint256"
1573
- }
1574
- ],
1575
- "internalType": "struct Fee",
1576
- "name": "stakingFee",
1577
- "type": "tuple"
1578
- },
1579
- {
1580
- "components": [
1581
- {
1582
- "internalType": "UFixed",
1583
- "name": "fractionalFee",
1584
- "type": "uint256"
1585
- },
1586
- {
1587
- "internalType": "uint256",
1588
- "name": "fixedFee",
1589
- "type": "uint256"
1590
- }
1591
- ],
1592
- "internalType": "struct Fee",
1593
- "name": "performanceFee",
1594
- "type": "tuple"
1595
- },
1596
- {
1597
- "internalType": "bool",
1598
- "name": "isIntercepting",
1599
- "type": "bool"
1600
- },
1601
- {
1602
- "internalType": "address",
1603
- "name": "wallet",
1604
- "type": "address"
1605
- }
1606
- ],
1607
- "internalType": "struct ISetup.ProductSetupInfo",
1608
- "name": "setup",
1609
- "type": "tuple"
1610
- },
1611
- {
1612
- "internalType": "StateId",
1613
- "name": "newState",
1614
- "type": "uint8"
586
+ "internalType": "address",
587
+ "name": "",
588
+ "type": "address"
1615
589
  }
1616
590
  ],
1617
- "name": "updateProductSetup",
591
+ "name": "setAuthority",
1618
592
  "outputs": [],
1619
593
  "stateMutability": "nonpayable",
1620
594
  "type": "function"
@@ -1622,17 +596,22 @@
1622
596
  {
1623
597
  "inputs": [
1624
598
  {
1625
- "internalType": "NftId",
1626
- "name": "productNftId",
1627
- "type": "uint96"
599
+ "internalType": "string",
600
+ "name": "targetName",
601
+ "type": "string"
1628
602
  },
1629
603
  {
1630
- "internalType": "StateId",
1631
- "name": "newState",
1632
- "type": "uint8"
604
+ "internalType": "bytes4[]",
605
+ "name": "selectors",
606
+ "type": "bytes4[]"
607
+ },
608
+ {
609
+ "internalType": "RoleId",
610
+ "name": "roleId",
611
+ "type": "uint64"
1633
612
  }
1634
613
  ],
1635
- "name": "updateProductSetupState",
614
+ "name": "setTargetFunctionRole",
1636
615
  "outputs": [],
1637
616
  "stateMutability": "nonpayable",
1638
617
  "type": "function"
@@ -1640,34 +619,17 @@
1640
619
  {
1641
620
  "inputs": [
1642
621
  {
1643
- "internalType": "RiskId",
1644
- "name": "riskId",
1645
- "type": "bytes8"
1646
- },
1647
- {
1648
- "components": [
1649
- {
1650
- "internalType": "NftId",
1651
- "name": "productNftId",
1652
- "type": "uint96"
1653
- },
1654
- {
1655
- "internalType": "bytes",
1656
- "name": "data",
1657
- "type": "bytes"
1658
- }
1659
- ],
1660
- "internalType": "struct IRisk.RiskInfo",
1661
- "name": "risk",
1662
- "type": "tuple"
622
+ "internalType": "address",
623
+ "name": "target",
624
+ "type": "address"
1663
625
  },
1664
626
  {
1665
- "internalType": "StateId",
1666
- "name": "newState",
1667
- "type": "uint8"
627
+ "internalType": "bool",
628
+ "name": "locked",
629
+ "type": "bool"
1668
630
  }
1669
631
  ],
1670
- "name": "updateRisk",
632
+ "name": "setTargetLocked",
1671
633
  "outputs": [],
1672
634
  "stateMutability": "nonpayable",
1673
635
  "type": "function"
@@ -1675,19 +637,20 @@
1675
637
  {
1676
638
  "inputs": [
1677
639
  {
1678
- "internalType": "RiskId",
1679
- "name": "riskId",
1680
- "type": "bytes8"
1681
- },
640
+ "internalType": "bytes4",
641
+ "name": "interfaceId",
642
+ "type": "bytes4"
643
+ }
644
+ ],
645
+ "name": "supportsInterface",
646
+ "outputs": [
1682
647
  {
1683
- "internalType": "StateId",
1684
- "name": "newState",
1685
- "type": "uint8"
648
+ "internalType": "bool",
649
+ "name": "",
650
+ "type": "bool"
1686
651
  }
1687
652
  ],
1688
- "name": "updateRiskState",
1689
- "outputs": [],
1690
- "stateMutability": "nonpayable",
653
+ "stateMutability": "view",
1691
654
  "type": "function"
1692
655
  }
1693
656
  ],