@etherisc/gif-next 0.0.2-d10d6b3-916 → 0.0.2-d1f0662-893

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 +873 -0
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +1020 -262
  6. package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
  7. package/artifacts/contracts/components/IComponent.sol/IComponent.json +636 -0
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +879 -31
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +879 -59
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +720 -16
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +849 -255
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +720 -251
  18. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +1 -1
  19. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +69 -66
  20. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +1 -1
  21. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.json +5 -0
  22. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  23. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +299 -1344
  24. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  25. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +314 -183
  26. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  27. package/artifacts/contracts/instance/Instance.sol/Instance.json +445 -3116
  28. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
  29. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +609 -178
  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 +1 -1
  33. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +414 -267
  34. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  35. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +422 -413
  36. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  37. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +280 -136
  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 +1 -1
  41. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +11 -27
  42. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
  43. package/artifacts/contracts/instance/base/{ComponentServiceBase.sol/ComponentServiceBase.json → ComponentService.sol/ComponentService.json} +271 -180
  44. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  45. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  46. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  47. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +40 -10
  48. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  49. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +36 -11
  50. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
  51. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +71 -45
  52. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
  53. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +4 -0
  54. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.json +10 -0
  55. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
  56. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  57. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  58. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +1 -1
  59. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +1 -1
  60. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.dbg.json +4 -0
  61. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +918 -0
  62. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
  63. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +648 -0
  64. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
  65. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1288 -0
  66. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  67. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +696 -0
  68. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +4 -0
  69. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +1376 -0
  70. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
  71. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +748 -0
  72. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
  73. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +1055 -215
  74. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
  75. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +417 -81
  76. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
  77. package/artifacts/contracts/instance/service/{IComponentOwnerService.sol/IComponentOwnerService.json → IApplicationService.sol/IApplicationService.json} +231 -204
  78. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
  79. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +735 -0
  80. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +4 -0
  81. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.json +743 -0
  82. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  83. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +540 -146
  84. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  85. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +651 -0
  86. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  87. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +652 -303
  88. package/artifacts/contracts/instance/service/IPricingService.sol/IPricingService.dbg.json +4 -0
  89. package/artifacts/contracts/{shared/RegisterableUpgradable.sol/RegisterableUpgradable.json → instance/service/IPricingService.sol/IPricingService.json} +245 -177
  90. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  91. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +76 -394
  92. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
  93. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1281 -0
  94. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  95. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +740 -0
  96. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
  97. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +972 -399
  98. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
  99. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +336 -92
  100. package/artifacts/contracts/instance/service/PricingService.sol/PricingService.dbg.json +4 -0
  101. package/artifacts/contracts/instance/service/PricingService.sol/PricingService.json +1004 -0
  102. package/artifacts/contracts/instance/service/PricingServiceManager.sol/PricingServiceManager.dbg.json +4 -0
  103. package/artifacts/contracts/instance/service/PricingServiceManager.sol/PricingServiceManager.json +688 -0
  104. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
  105. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +283 -566
  106. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +1 -1
  107. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +278 -126
  108. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  109. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +15 -2
  110. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  111. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +244 -133
  112. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  113. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +147 -236
  114. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  115. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +18 -0
  116. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  117. package/artifacts/contracts/registry/Registry.sol/Registry.json +257 -235
  118. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
  119. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +285 -0
  120. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  121. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +191 -334
  122. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  123. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +285 -145
  124. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
  125. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +559 -0
  126. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
  127. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +128 -53
  128. package/artifacts/contracts/shared/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +4 -0
  129. package/artifacts/contracts/shared/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +1206 -0
  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 +27 -29
  135. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
  136. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +189 -0
  137. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  138. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +8 -34
  139. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
  140. package/artifacts/contracts/{experiment/inheritance/IA.sol/ISharedA.json → shared/IRegistryLinked.sol/IRegistryLinked.json} +15 -17
  141. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
  142. package/artifacts/contracts/shared/IService.sol/IService.json +84 -178
  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 +107 -27
  147. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +4 -0
  148. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +302 -0
  149. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  150. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +283 -63
  151. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  152. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +116 -51
  153. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +4 -0
  154. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +71 -0
  155. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
  156. package/artifacts/contracts/shared/Service.sol/Service.json +185 -165
  157. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  158. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +24 -6
  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 +116 -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 +204 -216
  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 +281 -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 +74 -19
  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 +272 -0
  221. package/contracts/components/Distribution.sol +205 -83
  222. package/contracts/components/IComponent.sol +90 -0
  223. package/contracts/components/IDistributionComponent.sol +44 -17
  224. package/contracts/components/IPoolComponent.sol +90 -42
  225. package/contracts/components/IProductComponent.sol +15 -9
  226. package/contracts/components/Pool.sol +218 -183
  227. package/contracts/components/Product.sol +250 -164
  228. package/contracts/instance/BundleManager.sol +17 -20
  229. package/contracts/instance/Cloneable.sol +7 -2
  230. package/contracts/instance/IInstance.sol +54 -33
  231. package/contracts/instance/IInstanceService.sol +52 -11
  232. package/contracts/instance/Instance.sol +144 -369
  233. package/contracts/instance/InstanceAccessManager.sol +430 -177
  234. package/contracts/instance/InstanceAuthorizationsLib.sol +308 -0
  235. package/contracts/instance/InstanceReader.sol +91 -38
  236. package/contracts/instance/InstanceService.sol +241 -165
  237. package/contracts/instance/InstanceServiceManager.sol +6 -9
  238. package/contracts/instance/InstanceStore.sol +212 -0
  239. package/contracts/instance/ObjectManager.sol +11 -24
  240. package/contracts/instance/base/ComponentService.sol +148 -0
  241. package/contracts/instance/base/KeyValueStore.sol +13 -36
  242. package/contracts/instance/base/Lifecycle.sol +26 -6
  243. package/contracts/instance/module/IAccess.sol +36 -20
  244. package/contracts/instance/module/IBundle.sol +8 -5
  245. package/contracts/instance/module/IComponents.sol +41 -0
  246. package/contracts/instance/module/IDistribution.sol +3 -0
  247. package/contracts/instance/module/IPolicy.sol +43 -11
  248. package/contracts/instance/module/ISetup.sol +7 -20
  249. package/contracts/instance/service/ApplicationService.sol +186 -0
  250. package/contracts/instance/service/ApplicationServiceManager.sol +35 -0
  251. package/contracts/instance/service/BundleService.sol +382 -0
  252. package/contracts/instance/service/BundleServiceManager.sol +51 -0
  253. package/contracts/instance/service/ClaimService.sol +437 -0
  254. package/contracts/instance/service/ClaimServiceManager.sol +35 -0
  255. package/contracts/instance/service/DistributionService.sol +293 -33
  256. package/contracts/instance/service/DistributionServiceManager.sol +7 -10
  257. package/contracts/instance/service/IApplicationService.sol +62 -0
  258. package/contracts/instance/service/IBundleService.sol +118 -0
  259. package/contracts/instance/service/IClaimService.sol +90 -0
  260. package/contracts/instance/service/IDistributionService.sol +76 -1
  261. package/contracts/instance/service/IPolicyService.sol +80 -0
  262. package/contracts/instance/service/IPoolService.sol +88 -25
  263. package/contracts/instance/service/IPricingService.sol +37 -0
  264. package/contracts/instance/service/IProductService.sol +2 -72
  265. package/contracts/instance/service/PolicyService.sol +376 -0
  266. package/contracts/instance/service/PolicyServiceManager.sol +54 -0
  267. package/contracts/instance/service/PoolService.sol +286 -170
  268. package/contracts/instance/service/PoolServiceManager.sol +6 -9
  269. package/contracts/instance/service/PricingService.sol +275 -0
  270. package/contracts/instance/service/PricingServiceManager.sol +51 -0
  271. package/contracts/instance/service/ProductService.sol +109 -469
  272. package/contracts/instance/service/ProductServiceManager.sol +2 -2
  273. package/contracts/registry/ChainNft.sol +9 -1
  274. package/contracts/registry/IRegistry.sol +39 -19
  275. package/contracts/registry/IRegistryService.sol +29 -13
  276. package/contracts/registry/ITransferInterceptor.sol +1 -0
  277. package/contracts/registry/Registry.sol +243 -224
  278. package/contracts/registry/RegistryAccessManager.sol +216 -0
  279. package/contracts/registry/RegistryService.sol +101 -173
  280. package/contracts/registry/RegistryServiceManager.sol +21 -39
  281. package/contracts/registry/ReleaseManager.sol +324 -0
  282. package/contracts/registry/TokenRegistry.sol +22 -17
  283. package/contracts/shared/AccessManagerUpgradeableInitializeable.sol +13 -0
  284. package/contracts/shared/ERC165.sol +14 -12
  285. package/contracts/shared/INftOwnable.sol +11 -10
  286. package/contracts/shared/IPolicyHolder.sol +40 -0
  287. package/contracts/shared/IRegisterable.sol +4 -6
  288. package/contracts/shared/IRegistryLinked.sol +11 -0
  289. package/contracts/shared/IService.sol +7 -4
  290. package/contracts/shared/IVersionable.sol +4 -47
  291. package/contracts/shared/NftOwnable.sol +64 -80
  292. package/contracts/shared/PolicyHolder.sol +94 -0
  293. package/contracts/shared/ProxyManager.sol +100 -25
  294. package/contracts/shared/Registerable.sol +24 -39
  295. package/contracts/shared/RegistryLinked.sol +43 -0
  296. package/contracts/shared/Service.sol +41 -24
  297. package/contracts/shared/TokenHandler.sol +14 -6
  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 +109 -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 +17 -8
  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/IB.sol/IB.dbg.json +0 -4
  343. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.json +0 -50
  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,202 @@
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
61
  }
168
62
  ],
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"
63
+ "name": "ErrorInstanceBundleManagerAuthorityMismatch",
64
+ "type": "error"
248
65
  },
249
66
  {
250
67
  "inputs": [
251
68
  {
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"
69
+ "internalType": "address",
70
+ "name": "instance",
71
+ "type": "address"
299
72
  }
300
73
  ],
301
- "name": "createDistributionSetup",
302
- "outputs": [],
303
- "stateMutability": "nonpayable",
304
- "type": "function"
74
+ "name": "ErrorInstanceBundleManagerInstanceMismatch",
75
+ "type": "error"
305
76
  },
306
77
  {
307
78
  "inputs": [
308
79
  {
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"
80
+ "internalType": "address",
81
+ "name": "instanceAccessManager",
82
+ "type": "address"
399
83
  }
400
84
  ],
401
- "name": "createPolicy",
402
- "outputs": [],
403
- "stateMutability": "nonpayable",
404
- "type": "function"
85
+ "name": "ErrorInstanceInstanceAccessManagerAlreadySet",
86
+ "type": "error"
405
87
  },
406
88
  {
407
89
  "inputs": [
408
90
  {
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"
91
+ "internalType": "address",
92
+ "name": "instanceAuthority",
93
+ "type": "address"
500
94
  }
501
- ],
502
- "name": "createPoolSetup",
503
- "outputs": [],
504
- "stateMutability": "nonpayable",
505
- "type": "function"
506
- },
507
- {
508
- "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"
95
+ ],
96
+ "name": "ErrorInstanceInstanceAccessManagerAuthorityMismatch",
97
+ "type": "error"
98
+ },
99
+ {
100
+ "inputs": [],
101
+ "name": "ErrorInstanceInstanceAccessManagerZero",
102
+ "type": "error"
103
+ },
104
+ {
105
+ "inputs": [
106
+ {
107
+ "internalType": "address",
108
+ "name": "instanceAuthority",
109
+ "type": "address"
652
110
  }
653
111
  ],
654
- "name": "createProductSetup",
655
- "outputs": [],
656
- "stateMutability": "nonpayable",
657
- "type": "function"
112
+ "name": "ErrorInstanceInstanceReaderInstanceMismatch",
113
+ "type": "error"
658
114
  },
659
115
  {
660
116
  "inputs": [
661
117
  {
662
- "internalType": "RiskId",
663
- "name": "riskId",
664
- "type": "bytes8"
665
- },
118
+ "internalType": "address",
119
+ "name": "instanceStore",
120
+ "type": "address"
121
+ }
122
+ ],
123
+ "name": "ErrorInstanceInstanceStoreAlreadySet",
124
+ "type": "error"
125
+ },
126
+ {
127
+ "inputs": [
666
128
  {
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"
129
+ "internalType": "address",
130
+ "name": "instanceAuthority",
131
+ "type": "address"
682
132
  }
683
133
  ],
684
- "name": "createRisk",
685
- "outputs": [],
686
- "stateMutability": "nonpayable",
687
- "type": "function"
134
+ "name": "ErrorInstanceInstanceStoreAuthorityMismatch",
135
+ "type": "error"
688
136
  },
689
137
  {
690
138
  "inputs": [
691
139
  {
692
- "internalType": "Key32",
693
- "name": "key",
694
- "type": "bytes32"
140
+ "internalType": "NftId",
141
+ "name": "nftId",
142
+ "type": "uint96"
695
143
  }
696
144
  ],
697
- "name": "exists",
698
- "outputs": [
145
+ "name": "ErrorNftOwnableAlreadyLinked",
146
+ "type": "error"
147
+ },
148
+ {
149
+ "inputs": [
699
150
  {
700
- "internalType": "bool",
701
- "name": "",
702
- "type": "bool"
151
+ "internalType": "address",
152
+ "name": "contractAddress",
153
+ "type": "address"
703
154
  }
704
155
  ],
705
- "stateMutability": "view",
706
- "type": "function"
156
+ "name": "ErrorNftOwnableContractNotRegistered",
157
+ "type": "error"
158
+ },
159
+ {
160
+ "inputs": [],
161
+ "name": "ErrorNftOwnableInitialOwnerZero",
162
+ "type": "error"
707
163
  },
708
164
  {
709
165
  "inputs": [
710
166
  {
711
- "internalType": "Key32",
712
- "name": "key",
713
- "type": "bytes32"
167
+ "internalType": "address",
168
+ "name": "account",
169
+ "type": "address"
714
170
  }
715
171
  ],
716
- "name": "get",
717
- "outputs": [
172
+ "name": "ErrorNftOwnableNotOwner",
173
+ "type": "error"
174
+ },
175
+ {
176
+ "inputs": [
718
177
  {
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"
178
+ "internalType": "address",
179
+ "name": "registryAddress",
180
+ "type": "address"
761
181
  }
762
182
  ],
763
- "stateMutability": "view",
764
- "type": "function"
183
+ "name": "ErrorNotRegistry",
184
+ "type": "error"
765
185
  },
766
186
  {
767
- "inputs": [],
768
- "name": "getBundleManager",
769
- "outputs": [
187
+ "anonymous": false,
188
+ "inputs": [
770
189
  {
771
- "internalType": "contract BundleManager",
772
- "name": "",
190
+ "indexed": false,
191
+ "internalType": "address",
192
+ "name": "authority",
773
193
  "type": "address"
774
194
  }
775
195
  ],
776
- "stateMutability": "view",
777
- "type": "function"
196
+ "name": "AuthorityUpdated",
197
+ "type": "event"
778
198
  },
779
199
  {
780
200
  "inputs": [],
781
- "name": "getComponentOwnerService",
201
+ "name": "authority",
782
202
  "outputs": [
783
203
  {
784
- "internalType": "contract IComponentOwnerService",
204
+ "internalType": "address",
785
205
  "name": "",
786
206
  "type": "address"
787
207
  }
@@ -792,28 +212,56 @@
792
212
  {
793
213
  "inputs": [
794
214
  {
795
- "internalType": "Key32",
796
- "name": "key",
797
- "type": "bytes32"
215
+ "internalType": "string",
216
+ "name": "roleName",
217
+ "type": "string"
218
+ },
219
+ {
220
+ "internalType": "string",
221
+ "name": "adminName",
222
+ "type": "string"
798
223
  }
799
224
  ],
800
- "name": "getData",
225
+ "name": "createRole",
801
226
  "outputs": [
802
227
  {
803
- "internalType": "bytes",
804
- "name": "data",
805
- "type": "bytes"
228
+ "internalType": "RoleId",
229
+ "name": "roleId",
230
+ "type": "uint64"
231
+ },
232
+ {
233
+ "internalType": "RoleId",
234
+ "name": "admin",
235
+ "type": "uint64"
806
236
  }
807
237
  ],
808
- "stateMutability": "view",
238
+ "stateMutability": "nonpayable",
239
+ "type": "function"
240
+ },
241
+ {
242
+ "inputs": [
243
+ {
244
+ "internalType": "address",
245
+ "name": "target",
246
+ "type": "address"
247
+ },
248
+ {
249
+ "internalType": "string",
250
+ "name": "name",
251
+ "type": "string"
252
+ }
253
+ ],
254
+ "name": "createTarget",
255
+ "outputs": [],
256
+ "stateMutability": "nonpayable",
809
257
  "type": "function"
810
258
  },
811
259
  {
812
260
  "inputs": [],
813
- "name": "getDistributionService",
261
+ "name": "getBundleManager",
814
262
  "outputs": [
815
263
  {
816
- "internalType": "contract IDistributionService",
264
+ "internalType": "contract BundleManager",
817
265
  "name": "",
818
266
  "type": "address"
819
267
  }
@@ -822,19 +270,13 @@
822
270
  "type": "function"
823
271
  },
824
272
  {
825
- "inputs": [
826
- {
827
- "internalType": "ObjectType",
828
- "name": "objectType",
829
- "type": "uint8"
830
- }
831
- ],
832
- "name": "getInitialState",
273
+ "inputs": [],
274
+ "name": "getBundleService",
833
275
  "outputs": [
834
276
  {
835
- "internalType": "StateId",
277
+ "internalType": "contract IBundleService",
836
278
  "name": "",
837
- "type": "uint8"
279
+ "type": "address"
838
280
  }
839
281
  ],
840
282
  "stateMutability": "view",
@@ -842,10 +284,10 @@
842
284
  },
843
285
  {
844
286
  "inputs": [],
845
- "name": "getInstanceReader",
287
+ "name": "getDistributionService",
846
288
  "outputs": [
847
289
  {
848
- "internalType": "contract InstanceReader",
290
+ "internalType": "contract IDistributionService",
849
291
  "name": "",
850
292
  "type": "address"
851
293
  }
@@ -854,45 +296,49 @@
854
296
  "type": "function"
855
297
  },
856
298
  {
857
- "inputs": [
858
- {
859
- "internalType": "Key32",
860
- "name": "key",
861
- "type": "bytes32"
862
- }
863
- ],
864
- "name": "getMetadata",
299
+ "inputs": [],
300
+ "name": "getInitialInfo",
865
301
  "outputs": [
866
302
  {
867
303
  "components": [
304
+ {
305
+ "internalType": "NftId",
306
+ "name": "nftId",
307
+ "type": "uint96"
308
+ },
309
+ {
310
+ "internalType": "NftId",
311
+ "name": "parentNftId",
312
+ "type": "uint96"
313
+ },
868
314
  {
869
315
  "internalType": "ObjectType",
870
316
  "name": "objectType",
871
317
  "type": "uint8"
872
318
  },
873
319
  {
874
- "internalType": "StateId",
875
- "name": "state",
876
- "type": "uint8"
320
+ "internalType": "bool",
321
+ "name": "isInterceptor",
322
+ "type": "bool"
877
323
  },
878
324
  {
879
325
  "internalType": "address",
880
- "name": "updatedBy",
326
+ "name": "objectAddress",
881
327
  "type": "address"
882
328
  },
883
329
  {
884
- "internalType": "Blocknumber",
885
- "name": "updatedIn",
886
- "type": "uint32"
330
+ "internalType": "address",
331
+ "name": "initialOwner",
332
+ "type": "address"
887
333
  },
888
334
  {
889
- "internalType": "Blocknumber",
890
- "name": "createdIn",
891
- "type": "uint32"
335
+ "internalType": "bytes",
336
+ "name": "data",
337
+ "type": "bytes"
892
338
  }
893
339
  ],
894
- "internalType": "struct IKeyValueStore.Metadata",
895
- "name": "metadata",
340
+ "internalType": "struct IRegistry.ObjectInfo",
341
+ "name": "",
896
342
  "type": "tuple"
897
343
  }
898
344
  ],
@@ -901,10 +347,10 @@
901
347
  },
902
348
  {
903
349
  "inputs": [],
904
- "name": "getPoolService",
350
+ "name": "getInstanceAccessManager",
905
351
  "outputs": [
906
352
  {
907
- "internalType": "contract IPoolService",
353
+ "internalType": "contract InstanceAccessManager",
908
354
  "name": "",
909
355
  "type": "address"
910
356
  }
@@ -914,10 +360,10 @@
914
360
  },
915
361
  {
916
362
  "inputs": [],
917
- "name": "getProductService",
363
+ "name": "getInstanceReader",
918
364
  "outputs": [
919
365
  {
920
- "internalType": "contract IProductService",
366
+ "internalType": "contract InstanceReader",
921
367
  "name": "",
922
368
  "type": "address"
923
369
  }
@@ -926,396 +372,143 @@
926
372
  "type": "function"
927
373
  },
928
374
  {
929
- "inputs": [
930
- {
931
- "internalType": "Key32",
932
- "name": "key",
933
- "type": "bytes32"
934
- }
935
- ],
936
- "name": "getState",
375
+ "inputs": [],
376
+ "name": "getInstanceStore",
937
377
  "outputs": [
938
378
  {
939
- "internalType": "StateId",
940
- "name": "state",
941
- "type": "uint8"
379
+ "internalType": "contract InstanceStore",
380
+ "name": "",
381
+ "type": "address"
942
382
  }
943
383
  ],
944
384
  "stateMutability": "view",
945
385
  "type": "function"
946
386
  },
947
387
  {
948
- "inputs": [
949
- {
950
- "internalType": "ObjectType",
951
- "name": "objectType",
952
- "type": "uint8"
953
- }
954
- ],
955
- "name": "hasLifecycle",
388
+ "inputs": [],
389
+ "name": "getMajorVersion",
956
390
  "outputs": [
957
391
  {
958
- "internalType": "bool",
959
- "name": "",
960
- "type": "bool"
392
+ "internalType": "VersionPart",
393
+ "name": "majorVersion",
394
+ "type": "uint8"
961
395
  }
962
396
  ],
963
- "stateMutability": "view",
397
+ "stateMutability": "pure",
964
398
  "type": "function"
965
399
  },
966
400
  {
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",
401
+ "inputs": [],
402
+ "name": "getNftId",
985
403
  "outputs": [
986
404
  {
987
- "internalType": "bool",
405
+ "internalType": "NftId",
988
406
  "name": "",
989
- "type": "bool"
407
+ "type": "uint96"
990
408
  }
991
409
  ],
992
410
  "stateMutability": "view",
993
411
  "type": "function"
994
412
  },
995
413
  {
996
- "inputs": [
997
- {
998
- "internalType": "bytes4",
999
- "name": "interfaceId",
1000
- "type": "bytes4"
1001
- }
1002
- ],
1003
- "name": "supportsInterface",
414
+ "inputs": [],
415
+ "name": "getOwner",
1004
416
  "outputs": [
1005
417
  {
1006
- "internalType": "bool",
418
+ "internalType": "address",
1007
419
  "name": "",
1008
- "type": "bool"
420
+ "type": "address"
1009
421
  }
1010
422
  ],
1011
423
  "stateMutability": "view",
1012
424
  "type": "function"
1013
425
  },
1014
426
  {
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",
427
+ "inputs": [],
428
+ "name": "getPolicyService",
1028
429
  "outputs": [
1029
430
  {
1030
- "internalType": "Key32",
431
+ "internalType": "contract IPolicyService",
1031
432
  "name": "",
1032
- "type": "bytes32"
433
+ "type": "address"
1033
434
  }
1034
435
  ],
1035
- "stateMutability": "pure",
436
+ "stateMutability": "view",
1036
437
  "type": "function"
1037
438
  },
1038
439
  {
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
- },
440
+ "inputs": [],
441
+ "name": "getPoolService",
442
+ "outputs": [
1109
443
  {
1110
- "internalType": "StateId",
1111
- "name": "newState",
1112
- "type": "uint8"
444
+ "internalType": "contract IPoolService",
445
+ "name": "",
446
+ "type": "address"
1113
447
  }
1114
448
  ],
1115
- "name": "updateBundle",
1116
- "outputs": [],
1117
- "stateMutability": "nonpayable",
449
+ "stateMutability": "view",
1118
450
  "type": "function"
1119
451
  },
1120
452
  {
1121
- "inputs": [
1122
- {
1123
- "internalType": "NftId",
1124
- "name": "bundleNftId",
1125
- "type": "uint96"
1126
- },
453
+ "inputs": [],
454
+ "name": "getProductService",
455
+ "outputs": [
1127
456
  {
1128
- "internalType": "StateId",
1129
- "name": "newState",
1130
- "type": "uint8"
457
+ "internalType": "contract IProductService",
458
+ "name": "",
459
+ "type": "address"
1131
460
  }
1132
461
  ],
1133
- "name": "updateBundleState",
1134
- "outputs": [],
1135
- "stateMutability": "nonpayable",
462
+ "stateMutability": "view",
1136
463
  "type": "function"
1137
464
  },
1138
465
  {
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
- },
466
+ "inputs": [],
467
+ "name": "getRegistry",
468
+ "outputs": [
1189
469
  {
1190
- "internalType": "StateId",
1191
- "name": "newState",
1192
- "type": "uint8"
470
+ "internalType": "contract IRegistry",
471
+ "name": "",
472
+ "type": "address"
1193
473
  }
1194
474
  ],
1195
- "name": "updateDistributionSetup",
1196
- "outputs": [],
1197
- "stateMutability": "nonpayable",
475
+ "stateMutability": "view",
1198
476
  "type": "function"
1199
477
  },
1200
478
  {
1201
479
  "inputs": [
1202
480
  {
1203
- "internalType": "NftId",
1204
- "name": "distributionNftId",
1205
- "type": "uint96"
481
+ "internalType": "RoleId",
482
+ "name": "roleId",
483
+ "type": "uint64"
1206
484
  },
1207
485
  {
1208
- "internalType": "StateId",
1209
- "name": "newState",
1210
- "type": "uint8"
486
+ "internalType": "address",
487
+ "name": "account",
488
+ "type": "address"
1211
489
  }
1212
490
  ],
1213
- "name": "updateDistributionSetupState",
491
+ "name": "grantRole",
1214
492
  "outputs": [],
1215
493
  "stateMutability": "nonpayable",
1216
494
  "type": "function"
1217
495
  },
1218
496
  {
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
- },
497
+ "inputs": [],
498
+ "name": "isConsumingScheduledOp",
499
+ "outputs": [
1312
500
  {
1313
- "internalType": "StateId",
1314
- "name": "newState",
1315
- "type": "uint8"
501
+ "internalType": "bytes4",
502
+ "name": "",
503
+ "type": "bytes4"
1316
504
  }
1317
505
  ],
1318
- "name": "updatePolicy",
506
+ "stateMutability": "view",
507
+ "type": "function"
508
+ },
509
+ {
510
+ "inputs": [],
511
+ "name": "linkToRegisteredNftId",
1319
512
  "outputs": [],
1320
513
  "stateMutability": "nonpayable",
1321
514
  "type": "function"
@@ -1323,17 +516,17 @@
1323
516
  {
1324
517
  "inputs": [
1325
518
  {
1326
- "internalType": "NftId",
1327
- "name": "policyNftId",
1328
- "type": "uint96"
519
+ "internalType": "address",
520
+ "name": "to",
521
+ "type": "address"
1329
522
  },
1330
523
  {
1331
- "internalType": "StateId",
1332
- "name": "newState",
1333
- "type": "uint8"
524
+ "internalType": "uint256",
525
+ "name": "tokenId",
526
+ "type": "uint256"
1334
527
  }
1335
528
  ],
1336
- "name": "updatePolicyState",
529
+ "name": "nftMint",
1337
530
  "outputs": [],
1338
531
  "stateMutability": "nonpayable",
1339
532
  "type": "function"
@@ -1341,105 +534,22 @@
1341
534
  {
1342
535
  "inputs": [
1343
536
  {
1344
- "internalType": "NftId",
1345
- "name": "poolNftId",
1346
- "type": "uint96"
537
+ "internalType": "address",
538
+ "name": "from",
539
+ "type": "address"
1347
540
  },
1348
541
  {
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"
542
+ "internalType": "address",
543
+ "name": "to",
544
+ "type": "address"
1435
545
  },
1436
546
  {
1437
- "internalType": "StateId",
1438
- "name": "newState",
1439
- "type": "uint8"
547
+ "internalType": "uint256",
548
+ "name": "tokenId",
549
+ "type": "uint256"
1440
550
  }
1441
551
  ],
1442
- "name": "updatePoolSetup",
552
+ "name": "nftTransferFrom",
1443
553
  "outputs": [],
1444
554
  "stateMutability": "nonpayable",
1445
555
  "type": "function"
@@ -1447,17 +557,17 @@
1447
557
  {
1448
558
  "inputs": [
1449
559
  {
1450
- "internalType": "NftId",
1451
- "name": "poolNftId",
1452
- "type": "uint96"
560
+ "internalType": "RoleId",
561
+ "name": "roleId",
562
+ "type": "uint64"
1453
563
  },
1454
564
  {
1455
- "internalType": "StateId",
1456
- "name": "newState",
1457
- "type": "uint8"
565
+ "internalType": "address",
566
+ "name": "account",
567
+ "type": "address"
1458
568
  }
1459
569
  ],
1460
- "name": "updatePoolSetupState",
570
+ "name": "revokeRole",
1461
571
  "outputs": [],
1462
572
  "stateMutability": "nonpayable",
1463
573
  "type": "function"
@@ -1465,156 +575,12 @@
1465
575
  {
1466
576
  "inputs": [
1467
577
  {
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"
578
+ "internalType": "address",
579
+ "name": "",
580
+ "type": "address"
1615
581
  }
1616
582
  ],
1617
- "name": "updateProductSetup",
583
+ "name": "setAuthority",
1618
584
  "outputs": [],
1619
585
  "stateMutability": "nonpayable",
1620
586
  "type": "function"
@@ -1622,17 +588,22 @@
1622
588
  {
1623
589
  "inputs": [
1624
590
  {
1625
- "internalType": "NftId",
1626
- "name": "productNftId",
1627
- "type": "uint96"
591
+ "internalType": "string",
592
+ "name": "targetName",
593
+ "type": "string"
1628
594
  },
1629
595
  {
1630
- "internalType": "StateId",
1631
- "name": "newState",
1632
- "type": "uint8"
596
+ "internalType": "bytes4[]",
597
+ "name": "selectors",
598
+ "type": "bytes4[]"
599
+ },
600
+ {
601
+ "internalType": "RoleId",
602
+ "name": "roleId",
603
+ "type": "uint64"
1633
604
  }
1634
605
  ],
1635
- "name": "updateProductSetupState",
606
+ "name": "setTargetFunctionRole",
1636
607
  "outputs": [],
1637
608
  "stateMutability": "nonpayable",
1638
609
  "type": "function"
@@ -1640,34 +611,17 @@
1640
611
  {
1641
612
  "inputs": [
1642
613
  {
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"
614
+ "internalType": "address",
615
+ "name": "target",
616
+ "type": "address"
1663
617
  },
1664
618
  {
1665
- "internalType": "StateId",
1666
- "name": "newState",
1667
- "type": "uint8"
619
+ "internalType": "bool",
620
+ "name": "locked",
621
+ "type": "bool"
1668
622
  }
1669
623
  ],
1670
- "name": "updateRisk",
624
+ "name": "setTargetLocked",
1671
625
  "outputs": [],
1672
626
  "stateMutability": "nonpayable",
1673
627
  "type": "function"
@@ -1675,19 +629,20 @@
1675
629
  {
1676
630
  "inputs": [
1677
631
  {
1678
- "internalType": "RiskId",
1679
- "name": "riskId",
1680
- "type": "bytes8"
1681
- },
632
+ "internalType": "bytes4",
633
+ "name": "interfaceId",
634
+ "type": "bytes4"
635
+ }
636
+ ],
637
+ "name": "supportsInterface",
638
+ "outputs": [
1682
639
  {
1683
- "internalType": "StateId",
1684
- "name": "newState",
1685
- "type": "uint8"
640
+ "internalType": "bool",
641
+ "name": "",
642
+ "type": "bool"
1686
643
  }
1687
644
  ],
1688
- "name": "updateRiskState",
1689
- "outputs": [],
1690
- "stateMutability": "nonpayable",
645
+ "stateMutability": "view",
1691
646
  "type": "function"
1692
647
  }
1693
648
  ],