@etherisc/gif-next 0.0.2-bdd64e2-180 → 0.0.2-be8b3db-650

Sign up to get free protection for your applications and to get access to all the features.
Files changed (374) hide show
  1. package/README.md +136 -2
  2. package/artifacts/contracts/components/Component.sol/Component.dbg.json +4 -0
  3. package/artifacts/contracts/components/Component.sol/Component.json +814 -0
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +871 -240
  6. package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
  7. package/artifacts/contracts/{instance/base/ComponentServiceBase.sol/ComponentServiceBase.json → components/IComponent.sol/IComponent.json} +177 -176
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +684 -37
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +745 -58
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +564 -9
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +774 -309
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +601 -237
  18. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
  19. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +783 -0
  20. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
  21. package/artifacts/contracts/instance/{AccessManagedSimple.sol/AccessManagedSimple.json → Cloneable.sol/Cloneable.json} +86 -2
  22. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  23. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1769 -242
  24. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  25. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +194 -165
  26. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  27. package/artifacts/contracts/instance/Instance.sol/Instance.json +892 -1240
  28. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
  29. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +211 -144
  30. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
  31. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +133 -237
  32. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  33. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +428 -273
  34. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  35. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +302 -101
  36. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
  37. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +261 -0
  38. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
  39. package/artifacts/contracts/{shared/RegisterableUpgradable.sol/RegisterableUpgradable.json → instance/base/ComponentService.sol/ComponentService.json} +236 -126
  40. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  41. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  42. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  43. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +40 -10
  44. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  45. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +36 -11
  46. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
  47. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +59 -16
  48. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
  49. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +4 -0
  50. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.json +10 -0
  51. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
  52. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  53. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  54. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +1 -1
  55. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +1 -1
  56. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.dbg.json +4 -0
  57. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +968 -0
  58. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
  59. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +665 -0
  60. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
  61. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1093 -0
  62. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  63. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +661 -0
  64. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +4 -0
  65. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +754 -0
  66. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
  67. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +637 -0
  68. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
  69. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +1251 -184
  70. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
  71. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +440 -75
  72. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
  73. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +556 -0
  74. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
  75. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +630 -0
  76. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +4 -0
  77. package/artifacts/contracts/instance/service/{IComponentOwnerService.sol/IComponentOwnerService.json → IClaimService.sol/IClaimService.json} +150 -207
  78. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  79. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +727 -160
  80. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  81. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +540 -0
  82. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  83. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +84 -217
  84. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  85. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +47 -414
  86. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
  87. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1021 -0
  88. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  89. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +689 -0
  90. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
  91. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +294 -274
  92. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
  93. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +300 -95
  94. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
  95. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +777 -0
  96. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  97. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +649 -0
  98. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  99. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +15 -2
  100. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  101. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +208 -224
  102. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  103. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +243 -206
  104. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  105. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  106. package/artifacts/contracts/registry/Registry.sol/Registry.json +222 -330
  107. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
  108. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +285 -0
  109. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  110. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +235 -295
  111. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  112. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +295 -150
  113. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
  114. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +547 -0
  115. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
  116. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +141 -53
  117. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +1 -1
  118. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  119. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +41 -3
  120. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  121. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +40 -29
  122. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
  123. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +129 -0
  124. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  125. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +21 -34
  126. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
  127. package/artifacts/contracts/{experiment/inheritance/IB.sol/IB.json → shared/IRegistryLinked.sol/IRegistryLinked.json} +18 -20
  128. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
  129. package/artifacts/contracts/shared/IService.sol/IService.json +31 -183
  130. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  131. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +2 -152
  132. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  133. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +120 -27
  134. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +4 -0
  135. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +248 -0
  136. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  137. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +294 -61
  138. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  139. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +129 -51
  140. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +4 -0
  141. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +84 -0
  142. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
  143. package/artifacts/contracts/shared/Service.sol/Service.json +127 -170
  144. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  145. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +2 -2
  146. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  147. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +2 -2
  148. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  149. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +2 -152
  150. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  151. package/artifacts/contracts/test/TestFee.sol/TestFee.json +2 -2
  152. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  153. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +129 -51
  154. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  155. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +2 -2
  156. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  157. package/artifacts/contracts/test/TestService.sol/TestService.json +148 -227
  158. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  159. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  160. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
  161. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  162. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +8 -190
  163. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  164. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  165. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  166. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +2 -2
  167. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  168. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.dbg.json +4 -0
  169. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.json +100 -0
  170. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
  171. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +2 -2
  172. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  173. package/artifacts/contracts/types/Fee.sol/FeeLib.json +2 -2
  174. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  175. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +2 -2
  176. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  177. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +17 -4
  178. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  179. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +26 -3
  180. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +1 -1
  181. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  182. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  183. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.dbg.json +4 -0
  184. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.json +100 -0
  185. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +1 -1
  186. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +23 -4
  187. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
  188. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +2 -2
  189. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  190. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
  191. package/artifacts/contracts/types/Seconds.sol/SecondsLib.dbg.json +4 -0
  192. package/artifacts/contracts/types/Seconds.sol/SecondsLib.json +124 -0
  193. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  194. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  195. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  196. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +25 -7
  197. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +1 -1
  198. package/artifacts/contracts/types/UFixed.sol/MathLib.json +2 -2
  199. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +1 -1
  200. package/artifacts/contracts/types/UFixed.sol/UFixedLib.json +2 -2
  201. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  202. package/artifacts/contracts/types/Version.sol/VersionLib.json +2 -2
  203. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  204. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +2 -2
  205. package/contracts/components/Component.sol +241 -0
  206. package/contracts/components/Distribution.sol +197 -83
  207. package/contracts/components/IComponent.sol +74 -0
  208. package/contracts/components/IDistributionComponent.sol +43 -18
  209. package/contracts/components/IPoolComponent.sol +88 -37
  210. package/contracts/components/IProductComponent.sol +10 -5
  211. package/contracts/components/Pool.sol +214 -162
  212. package/contracts/components/Product.sol +130 -134
  213. package/contracts/instance/BundleManager.sol +127 -0
  214. package/contracts/instance/Cloneable.sol +46 -0
  215. package/contracts/instance/IInstance.sol +64 -10
  216. package/contracts/instance/IInstanceService.sol +34 -4
  217. package/contracts/instance/Instance.sol +119 -267
  218. package/contracts/instance/InstanceAccessManager.sol +87 -78
  219. package/contracts/instance/InstanceReader.sol +16 -28
  220. package/contracts/instance/InstanceService.sol +404 -97
  221. package/contracts/instance/InstanceServiceManager.sol +11 -13
  222. package/contracts/instance/ObjectManager.sol +84 -0
  223. package/contracts/instance/base/ComponentService.sol +134 -0
  224. package/contracts/instance/base/KeyValueStore.sol +5 -2
  225. package/contracts/instance/base/Lifecycle.sol +11 -2
  226. package/contracts/instance/module/IAccess.sol +27 -18
  227. package/contracts/instance/module/IBundle.sol +2 -1
  228. package/contracts/instance/module/IComponents.sol +35 -0
  229. package/contracts/instance/module/IDistribution.sol +2 -0
  230. package/contracts/instance/module/IPolicy.sol +30 -3
  231. package/contracts/instance/module/ISetup.sol +9 -20
  232. package/contracts/instance/service/ApplicationService.sol +350 -0
  233. package/contracts/instance/service/ApplicationServiceManager.sol +35 -0
  234. package/contracts/instance/service/BundleService.sol +336 -0
  235. package/contracts/instance/service/BundleServiceManager.sol +51 -0
  236. package/contracts/instance/service/ClaimService.sol +151 -0
  237. package/contracts/instance/service/ClaimServiceManager.sol +35 -0
  238. package/contracts/instance/service/DistributionService.sol +391 -46
  239. package/contracts/instance/service/DistributionServiceManager.sol +11 -13
  240. package/contracts/instance/service/IApplicationService.sol +82 -0
  241. package/contracts/instance/service/IBundleService.sol +62 -0
  242. package/contracts/instance/service/IClaimService.sol +61 -0
  243. package/contracts/instance/service/IDistributionService.sol +86 -0
  244. package/contracts/instance/service/IPolicyService.sol +72 -0
  245. package/contracts/instance/service/IPoolService.sol +21 -23
  246. package/contracts/instance/service/IProductService.sol +6 -73
  247. package/contracts/instance/service/PolicyService.sol +403 -0
  248. package/contracts/instance/service/PolicyServiceManager.sol +54 -0
  249. package/contracts/instance/service/PoolService.sol +96 -144
  250. package/contracts/instance/service/PoolServiceManager.sol +11 -13
  251. package/contracts/instance/service/ProductService.sol +233 -0
  252. package/contracts/instance/service/ProductServiceManager.sol +54 -0
  253. package/contracts/registry/ChainNft.sol +5 -1
  254. package/contracts/registry/IRegistry.sol +38 -33
  255. package/contracts/registry/IRegistryService.sol +47 -13
  256. package/contracts/registry/Registry.sol +222 -249
  257. package/contracts/registry/RegistryAccessManager.sol +216 -0
  258. package/contracts/registry/RegistryService.sol +113 -229
  259. package/contracts/registry/RegistryServiceManager.sol +21 -39
  260. package/contracts/registry/ReleaseManager.sol +322 -0
  261. package/contracts/registry/TokenRegistry.sol +22 -17
  262. package/contracts/shared/ERC165.sol +14 -12
  263. package/contracts/shared/INftOwnable.sol +11 -10
  264. package/contracts/shared/IPolicyHolder.sol +26 -0
  265. package/contracts/shared/IRegisterable.sol +4 -6
  266. package/contracts/shared/IRegistryLinked.sol +12 -0
  267. package/contracts/shared/IService.sol +4 -1
  268. package/contracts/shared/IVersionable.sol +4 -47
  269. package/contracts/shared/NftOwnable.sol +67 -83
  270. package/contracts/shared/PolicyHolder.sol +81 -0
  271. package/contracts/shared/ProxyManager.sol +100 -25
  272. package/contracts/shared/Registerable.sol +16 -32
  273. package/contracts/shared/RegistryLinked.sol +48 -0
  274. package/contracts/shared/Service.sol +26 -22
  275. package/contracts/shared/TokenHandler.sol +11 -5
  276. package/contracts/shared/Versionable.sol +4 -92
  277. package/contracts/test/TestRegisterable.sol +1 -1
  278. package/contracts/test/TestService.sol +4 -3
  279. package/contracts/types/Blocknumber.sol +1 -0
  280. package/contracts/types/ClaimId.sol +52 -0
  281. package/contracts/types/DistributorType.sol +2 -2
  282. package/contracts/types/Fee.sol +1 -0
  283. package/contracts/types/NftId.sol +8 -0
  284. package/contracts/types/NftIdSet.sol +26 -24
  285. package/contracts/types/ObjectType.sol +10 -5
  286. package/contracts/types/PayoutId.sol +54 -0
  287. package/contracts/types/Referral.sol +4 -0
  288. package/contracts/types/RoleId.sol +19 -13
  289. package/contracts/types/Seconds.sol +54 -0
  290. package/contracts/types/StateId.sol +1 -0
  291. package/contracts/types/Timestamp.sol +13 -13
  292. package/contracts/types/UFixed.sol +1 -0
  293. package/contracts/types/Version.sol +1 -0
  294. package/package.json +3 -3
  295. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
  296. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +0 -327
  297. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
  298. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +0 -280
  299. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +0 -4
  300. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.json +0 -66
  301. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +0 -4
  302. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.json +0 -24
  303. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +0 -4
  304. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.json +0 -42
  305. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +0 -4
  306. package/artifacts/contracts/experiment/errors/Require.sol/Require.json +0 -105
  307. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +0 -4
  308. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +0 -105
  309. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +0 -4
  310. package/artifacts/contracts/experiment/inheritance/A.sol/A.json +0 -128
  311. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +0 -4
  312. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +0 -42
  313. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +0 -4
  314. package/artifacts/contracts/experiment/inheritance/B.sol/B.json +0 -76
  315. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +0 -4
  316. package/artifacts/contracts/experiment/inheritance/C.sol/C.json +0 -89
  317. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +0 -4
  318. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.json +0 -128
  319. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +0 -4
  320. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.json +0 -37
  321. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +0 -4
  322. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +0 -4
  323. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.json +0 -63
  324. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +0 -4
  325. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +0 -59
  326. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +0 -4
  327. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +0 -124
  328. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +0 -4
  329. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +0 -74
  330. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +0 -4
  331. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +0 -124
  332. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +0 -4
  333. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +0 -207
  334. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +0 -4
  335. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +0 -10
  336. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +0 -4
  337. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +0 -10
  338. package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.dbg.json +0 -4
  339. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.dbg.json +0 -4
  340. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.json +0 -1132
  341. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +0 -4
  342. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +0 -1082
  343. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
  344. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
  345. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +0 -113
  346. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
  347. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -827
  348. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
  349. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +0 -4
  350. package/contracts/components/BaseComponent.sol +0 -91
  351. package/contracts/components/IBaseComponent.sol +0 -25
  352. package/contracts/experiment/cloning/Cloner.sol +0 -47
  353. package/contracts/experiment/errors/Require.sol +0 -38
  354. package/contracts/experiment/errors/Revert.sol +0 -44
  355. package/contracts/experiment/inheritance/A.sol +0 -53
  356. package/contracts/experiment/inheritance/B.sol +0 -28
  357. package/contracts/experiment/inheritance/C.sol +0 -34
  358. package/contracts/experiment/inheritance/IA.sol +0 -13
  359. package/contracts/experiment/inheritance/IB.sol +0 -10
  360. package/contracts/experiment/inheritance/IC.sol +0 -12
  361. package/contracts/experiment/statemachine/Dummy.sol +0 -27
  362. package/contracts/experiment/statemachine/ISM.sol +0 -25
  363. package/contracts/experiment/statemachine/SM.sol +0 -57
  364. package/contracts/experiment/statemachine/SimpleStateMachine.sol +0 -31
  365. package/contracts/experiment/types/TypeA.sol +0 -47
  366. package/contracts/experiment/types/TypeB.sol +0 -29
  367. package/contracts/instance/AccessManagedSimple.sol +0 -115
  368. package/contracts/instance/AccessManagerSimple.sol +0 -692
  369. package/contracts/instance/IAccessManagerSimple.sol +0 -391
  370. package/contracts/instance/base/ComponentServiceBase.sol +0 -41
  371. package/contracts/instance/base/IInstanceBase.sol +0 -23
  372. package/contracts/instance/service/ComponentOwnerService.sol +0 -317
  373. package/contracts/instance/service/IComponentOwnerService.sol +0 -20
  374. package/contracts/shared/RegisterableUpgradable.sol +0 -16
@@ -3,85 +3,575 @@
3
3
  "contractName": "IPoolComponent",
4
4
  "sourceName": "contracts/components/IPoolComponent.sol",
5
5
  "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "address",
10
+ "name": "caller",
11
+ "type": "address"
12
+ }
13
+ ],
14
+ "name": "ErrorComponentNotChainNft",
15
+ "type": "error"
16
+ },
17
+ {
18
+ "inputs": [
19
+ {
20
+ "internalType": "NftId",
21
+ "name": "instanceNftId",
22
+ "type": "uint96"
23
+ }
24
+ ],
25
+ "name": "ErrorComponentNotInstance",
26
+ "type": "error"
27
+ },
28
+ {
29
+ "inputs": [
30
+ {
31
+ "internalType": "address",
32
+ "name": "caller",
33
+ "type": "address"
34
+ }
35
+ ],
36
+ "name": "ErrorComponentNotProductService",
37
+ "type": "error"
38
+ },
39
+ {
40
+ "inputs": [],
41
+ "name": "ErrorComponentProductNftAlreadySet",
42
+ "type": "error"
43
+ },
44
+ {
45
+ "inputs": [],
46
+ "name": "ErrorComponentWalletAddressIsSameAsCurrent",
47
+ "type": "error"
48
+ },
49
+ {
50
+ "inputs": [],
51
+ "name": "ErrorComponentWalletAddressZero",
52
+ "type": "error"
53
+ },
54
+ {
55
+ "inputs": [
56
+ {
57
+ "internalType": "address",
58
+ "name": "oldWallet",
59
+ "type": "address"
60
+ },
61
+ {
62
+ "internalType": "address",
63
+ "name": "newWallet",
64
+ "type": "address"
65
+ },
66
+ {
67
+ "internalType": "uint256",
68
+ "name": "allowance",
69
+ "type": "uint256"
70
+ },
71
+ {
72
+ "internalType": "uint256",
73
+ "name": "balance",
74
+ "type": "uint256"
75
+ }
76
+ ],
77
+ "name": "ErrorComponentWalletAllowanceTooSmall",
78
+ "type": "error"
79
+ },
80
+ {
81
+ "inputs": [
82
+ {
83
+ "internalType": "NftId",
84
+ "name": "nftId",
85
+ "type": "uint96"
86
+ }
87
+ ],
88
+ "name": "ErrorNftOwnableAlreadyLinked",
89
+ "type": "error"
90
+ },
91
+ {
92
+ "inputs": [
93
+ {
94
+ "internalType": "address",
95
+ "name": "contractAddress",
96
+ "type": "address"
97
+ }
98
+ ],
99
+ "name": "ErrorNftOwnableContractNotRegistered",
100
+ "type": "error"
101
+ },
102
+ {
103
+ "inputs": [],
104
+ "name": "ErrorNftOwnableInitialOwnerZero",
105
+ "type": "error"
106
+ },
107
+ {
108
+ "inputs": [
109
+ {
110
+ "internalType": "address",
111
+ "name": "account",
112
+ "type": "address"
113
+ }
114
+ ],
115
+ "name": "ErrorNftOwnableNotOwner",
116
+ "type": "error"
117
+ },
118
+ {
119
+ "inputs": [
120
+ {
121
+ "internalType": "address",
122
+ "name": "registryAddress",
123
+ "type": "address"
124
+ }
125
+ ],
126
+ "name": "ErrorNotRegistry",
127
+ "type": "error"
128
+ },
129
+ {
130
+ "inputs": [
131
+ {
132
+ "internalType": "NftId",
133
+ "name": "applicationNftId",
134
+ "type": "uint96"
135
+ }
136
+ ],
137
+ "name": "ErrorPoolApplicationBundleMismatch",
138
+ "type": "error"
139
+ },
140
+ {
141
+ "inputs": [
142
+ {
143
+ "internalType": "NftId",
144
+ "name": "bundleNftId",
145
+ "type": "uint96"
146
+ },
147
+ {
148
+ "internalType": "address",
149
+ "name": "caller",
150
+ "type": "address"
151
+ }
152
+ ],
153
+ "name": "ErrorPoolNotBundleOwner",
154
+ "type": "error"
155
+ },
156
+ {
157
+ "inputs": [
158
+ {
159
+ "internalType": "address",
160
+ "name": "caller",
161
+ "type": "address"
162
+ }
163
+ ],
164
+ "name": "ErrorPoolNotPoolService",
165
+ "type": "error"
166
+ },
6
167
  {
7
168
  "anonymous": false,
8
169
  "inputs": [
9
170
  {
10
171
  "indexed": false,
172
+ "internalType": "address",
173
+ "name": "oldWallet",
174
+ "type": "address"
175
+ },
176
+ {
177
+ "indexed": false,
178
+ "internalType": "address",
179
+ "name": "newWallet",
180
+ "type": "address"
181
+ }
182
+ ],
183
+ "name": "LogComponentWalletAddressChanged",
184
+ "type": "event"
185
+ },
186
+ {
187
+ "anonymous": false,
188
+ "inputs": [
189
+ {
190
+ "indexed": false,
191
+ "internalType": "address",
192
+ "name": "from",
193
+ "type": "address"
194
+ },
195
+ {
196
+ "indexed": false,
197
+ "internalType": "address",
198
+ "name": "to",
199
+ "type": "address"
200
+ },
201
+ {
202
+ "indexed": false,
203
+ "internalType": "uint256",
204
+ "name": "amount",
205
+ "type": "uint256"
206
+ }
207
+ ],
208
+ "name": "LogComponentWalletTokensTransferred",
209
+ "type": "event"
210
+ },
211
+ {
212
+ "anonymous": false,
213
+ "inputs": [
214
+ {
215
+ "indexed": false,
216
+ "internalType": "address",
217
+ "name": "pool",
218
+ "type": "address"
219
+ },
220
+ {
221
+ "indexed": false,
222
+ "internalType": "NftId",
223
+ "name": "applicationNftId",
224
+ "type": "uint96"
225
+ },
226
+ {
227
+ "indexed": false,
228
+ "internalType": "uint256",
229
+ "name": "collateralizationAmount",
230
+ "type": "uint256"
231
+ }
232
+ ],
233
+ "name": "LogPoolVerifiedByPool",
234
+ "type": "event"
235
+ },
236
+ {
237
+ "inputs": [
238
+ {
239
+ "internalType": "NftId",
240
+ "name": "applicationNftId",
241
+ "type": "uint96"
242
+ },
243
+ {
244
+ "internalType": "bytes",
245
+ "name": "applicationData",
246
+ "type": "bytes"
247
+ },
248
+ {
249
+ "internalType": "NftId",
250
+ "name": "bundleNftId",
251
+ "type": "uint96"
252
+ },
253
+ {
254
+ "internalType": "bytes",
255
+ "name": "bundleFilter",
256
+ "type": "bytes"
257
+ },
258
+ {
259
+ "internalType": "uint256",
260
+ "name": "collateralizationAmount",
261
+ "type": "uint256"
262
+ }
263
+ ],
264
+ "name": "applicationMatchesBundle",
265
+ "outputs": [
266
+ {
267
+ "internalType": "bool",
268
+ "name": "isMatching",
269
+ "type": "bool"
270
+ }
271
+ ],
272
+ "stateMutability": "view",
273
+ "type": "function"
274
+ },
275
+ {
276
+ "inputs": [
277
+ {
278
+ "internalType": "NftId",
279
+ "name": "bundleNftId",
280
+ "type": "uint96"
281
+ }
282
+ ],
283
+ "name": "close",
284
+ "outputs": [],
285
+ "stateMutability": "nonpayable",
286
+ "type": "function"
287
+ },
288
+ {
289
+ "inputs": [
290
+ {
291
+ "internalType": "NftId",
292
+ "name": "bundleNftId",
293
+ "type": "uint96"
294
+ },
295
+ {
296
+ "internalType": "Seconds",
297
+ "name": "lifetimeExtension",
298
+ "type": "uint40"
299
+ }
300
+ ],
301
+ "name": "extend",
302
+ "outputs": [],
303
+ "stateMutability": "nonpayable",
304
+ "type": "function"
305
+ },
306
+ {
307
+ "inputs": [],
308
+ "name": "getComponentInfo",
309
+ "outputs": [
310
+ {
311
+ "components": [
312
+ {
313
+ "internalType": "string",
314
+ "name": "name",
315
+ "type": "string"
316
+ },
317
+ {
318
+ "internalType": "contract IERC20Metadata",
319
+ "name": "token",
320
+ "type": "address"
321
+ },
322
+ {
323
+ "internalType": "contract TokenHandler",
324
+ "name": "tokenHandler",
325
+ "type": "address"
326
+ },
327
+ {
328
+ "internalType": "address",
329
+ "name": "wallet",
330
+ "type": "address"
331
+ },
332
+ {
333
+ "internalType": "bytes",
334
+ "name": "data",
335
+ "type": "bytes"
336
+ }
337
+ ],
338
+ "internalType": "struct IComponents.ComponentInfo",
339
+ "name": "info",
340
+ "type": "tuple"
341
+ }
342
+ ],
343
+ "stateMutability": "view",
344
+ "type": "function"
345
+ },
346
+ {
347
+ "inputs": [],
348
+ "name": "getInitialInfo",
349
+ "outputs": [
350
+ {
351
+ "components": [
352
+ {
353
+ "internalType": "NftId",
354
+ "name": "nftId",
355
+ "type": "uint96"
356
+ },
357
+ {
358
+ "internalType": "NftId",
359
+ "name": "parentNftId",
360
+ "type": "uint96"
361
+ },
362
+ {
363
+ "internalType": "ObjectType",
364
+ "name": "objectType",
365
+ "type": "uint8"
366
+ },
367
+ {
368
+ "internalType": "bool",
369
+ "name": "isInterceptor",
370
+ "type": "bool"
371
+ },
372
+ {
373
+ "internalType": "address",
374
+ "name": "objectAddress",
375
+ "type": "address"
376
+ },
377
+ {
378
+ "internalType": "address",
379
+ "name": "initialOwner",
380
+ "type": "address"
381
+ },
382
+ {
383
+ "internalType": "bytes",
384
+ "name": "data",
385
+ "type": "bytes"
386
+ }
387
+ ],
388
+ "internalType": "struct IRegistry.ObjectInfo",
389
+ "name": "",
390
+ "type": "tuple"
391
+ }
392
+ ],
393
+ "stateMutability": "view",
394
+ "type": "function"
395
+ },
396
+ {
397
+ "inputs": [],
398
+ "name": "getInstance",
399
+ "outputs": [
400
+ {
401
+ "internalType": "contract IInstance",
402
+ "name": "instance",
403
+ "type": "address"
404
+ }
405
+ ],
406
+ "stateMutability": "view",
407
+ "type": "function"
408
+ },
409
+ {
410
+ "inputs": [],
411
+ "name": "getName",
412
+ "outputs": [
413
+ {
414
+ "internalType": "string",
415
+ "name": "name",
416
+ "type": "string"
417
+ }
418
+ ],
419
+ "stateMutability": "view",
420
+ "type": "function"
421
+ },
422
+ {
423
+ "inputs": [],
424
+ "name": "getNftId",
425
+ "outputs": [
426
+ {
11
427
  "internalType": "NftId",
12
- "name": "policyNftId",
428
+ "name": "",
13
429
  "type": "uint96"
14
- },
15
- {
16
- "indexed": false,
17
- "internalType": "uint256",
18
- "name": "collateralizationAmount",
19
- "type": "uint256"
20
- },
430
+ }
431
+ ],
432
+ "stateMutability": "view",
433
+ "type": "function"
434
+ },
435
+ {
436
+ "inputs": [],
437
+ "name": "getOwner",
438
+ "outputs": [
21
439
  {
22
- "indexed": false,
23
440
  "internalType": "address",
24
- "name": "pool",
441
+ "name": "",
25
442
  "type": "address"
26
443
  }
27
444
  ],
28
- "name": "LogUnderwrittenByPool",
29
- "type": "event"
445
+ "stateMutability": "view",
446
+ "type": "function"
30
447
  },
31
448
  {
32
- "inputs": [
449
+ "inputs": [],
450
+ "name": "getPoolInfo",
451
+ "outputs": [
33
452
  {
34
453
  "components": [
454
+ {
455
+ "internalType": "NftId",
456
+ "name": "productNftId",
457
+ "type": "uint96"
458
+ },
459
+ {
460
+ "internalType": "RoleId",
461
+ "name": "bundleOwnerRole",
462
+ "type": "uint64"
463
+ },
464
+ {
465
+ "internalType": "uint256",
466
+ "name": "maxCapitalAmount",
467
+ "type": "uint256"
468
+ },
469
+ {
470
+ "internalType": "bool",
471
+ "name": "isInterceptingBundleTransfers",
472
+ "type": "bool"
473
+ },
474
+ {
475
+ "internalType": "bool",
476
+ "name": "isExternallyManaged",
477
+ "type": "bool"
478
+ },
479
+ {
480
+ "internalType": "bool",
481
+ "name": "isVerifyingApplications",
482
+ "type": "bool"
483
+ },
35
484
  {
36
485
  "internalType": "UFixed",
37
- "name": "fractionalFee",
486
+ "name": "collateralizationLevel",
38
487
  "type": "uint256"
39
488
  },
40
489
  {
41
- "internalType": "uint256",
42
- "name": "fixedFee",
490
+ "internalType": "UFixed",
491
+ "name": "retentionLevel",
43
492
  "type": "uint256"
493
+ },
494
+ {
495
+ "components": [
496
+ {
497
+ "internalType": "UFixed",
498
+ "name": "fractionalFee",
499
+ "type": "uint256"
500
+ },
501
+ {
502
+ "internalType": "uint256",
503
+ "name": "fixedFee",
504
+ "type": "uint256"
505
+ }
506
+ ],
507
+ "internalType": "struct Fee",
508
+ "name": "poolFee",
509
+ "type": "tuple"
510
+ },
511
+ {
512
+ "components": [
513
+ {
514
+ "internalType": "UFixed",
515
+ "name": "fractionalFee",
516
+ "type": "uint256"
517
+ },
518
+ {
519
+ "internalType": "uint256",
520
+ "name": "fixedFee",
521
+ "type": "uint256"
522
+ }
523
+ ],
524
+ "internalType": "struct Fee",
525
+ "name": "stakingFee",
526
+ "type": "tuple"
527
+ },
528
+ {
529
+ "components": [
530
+ {
531
+ "internalType": "UFixed",
532
+ "name": "fractionalFee",
533
+ "type": "uint256"
534
+ },
535
+ {
536
+ "internalType": "uint256",
537
+ "name": "fixedFee",
538
+ "type": "uint256"
539
+ }
540
+ ],
541
+ "internalType": "struct Fee",
542
+ "name": "performanceFee",
543
+ "type": "tuple"
44
544
  }
45
545
  ],
46
- "internalType": "struct Fee",
47
- "name": "fee",
546
+ "internalType": "struct IComponents.PoolInfo",
547
+ "name": "info",
48
548
  "type": "tuple"
49
- },
50
- {
51
- "internalType": "uint256",
52
- "name": "initialAmount",
53
- "type": "uint256"
54
- },
55
- {
56
- "internalType": "uint256",
57
- "name": "lifetime",
58
- "type": "uint256"
59
- },
60
- {
61
- "internalType": "bytes",
62
- "name": "filter",
63
- "type": "bytes"
64
549
  }
65
550
  ],
66
- "name": "createBundle",
551
+ "stateMutability": "view",
552
+ "type": "function"
553
+ },
554
+ {
555
+ "inputs": [],
556
+ "name": "getProductNftId",
67
557
  "outputs": [
68
558
  {
69
559
  "internalType": "NftId",
70
- "name": "bundleNftId",
560
+ "name": "productNftId",
71
561
  "type": "uint96"
72
562
  }
73
563
  ],
74
- "stateMutability": "nonpayable",
564
+ "stateMutability": "view",
75
565
  "type": "function"
76
566
  },
77
567
  {
78
568
  "inputs": [],
79
- "name": "getCollateralizationLevel",
569
+ "name": "getRegistry",
80
570
  "outputs": [
81
571
  {
82
- "internalType": "UFixed",
83
- "name": "collateralizationLevel",
84
- "type": "uint256"
572
+ "internalType": "contract IRegistry",
573
+ "name": "",
574
+ "type": "address"
85
575
  }
86
576
  ],
87
577
  "stateMutability": "view",
@@ -89,46 +579,111 @@
89
579
  },
90
580
  {
91
581
  "inputs": [],
92
- "name": "isVerifying",
582
+ "name": "getRegistryAddress",
93
583
  "outputs": [
94
584
  {
95
- "internalType": "bool",
96
- "name": "verifying",
97
- "type": "bool"
585
+ "internalType": "address",
586
+ "name": "",
587
+ "type": "address"
98
588
  }
99
589
  ],
100
590
  "stateMutability": "view",
101
591
  "type": "function"
102
592
  },
103
593
  {
104
- "inputs": [
594
+ "inputs": [],
595
+ "name": "getToken",
596
+ "outputs": [
105
597
  {
106
- "internalType": "bytes",
107
- "name": "policyData",
108
- "type": "bytes"
109
- },
598
+ "internalType": "contract IERC20Metadata",
599
+ "name": "token",
600
+ "type": "address"
601
+ }
602
+ ],
603
+ "stateMutability": "view",
604
+ "type": "function"
605
+ },
606
+ {
607
+ "inputs": [],
608
+ "name": "getWallet",
609
+ "outputs": [
110
610
  {
111
- "internalType": "bytes",
112
- "name": "bundleFilter",
113
- "type": "bytes"
611
+ "internalType": "address",
612
+ "name": "walletAddress",
613
+ "type": "address"
114
614
  }
115
615
  ],
116
- "name": "policyMatchesBundle",
616
+ "stateMutability": "view",
617
+ "type": "function"
618
+ },
619
+ {
620
+ "inputs": [],
621
+ "name": "isNftInterceptor",
117
622
  "outputs": [
118
623
  {
119
624
  "internalType": "bool",
120
- "name": "isMatching",
625
+ "name": "isInterceptor",
121
626
  "type": "bool"
122
627
  }
123
628
  ],
124
629
  "stateMutability": "view",
125
630
  "type": "function"
126
631
  },
632
+ {
633
+ "inputs": [],
634
+ "name": "linkToRegisteredNftId",
635
+ "outputs": [],
636
+ "stateMutability": "nonpayable",
637
+ "type": "function"
638
+ },
639
+ {
640
+ "inputs": [],
641
+ "name": "lock",
642
+ "outputs": [],
643
+ "stateMutability": "nonpayable",
644
+ "type": "function"
645
+ },
646
+ {
647
+ "inputs": [
648
+ {
649
+ "internalType": "NftId",
650
+ "name": "bundleNftId",
651
+ "type": "uint96"
652
+ }
653
+ ],
654
+ "name": "lockBundle",
655
+ "outputs": [],
656
+ "stateMutability": "nonpayable",
657
+ "type": "function"
658
+ },
659
+ {
660
+ "inputs": [
661
+ {
662
+ "internalType": "address",
663
+ "name": "from",
664
+ "type": "address"
665
+ },
666
+ {
667
+ "internalType": "address",
668
+ "name": "to",
669
+ "type": "address"
670
+ },
671
+ {
672
+ "internalType": "uint256",
673
+ "name": "tokenId",
674
+ "type": "uint256"
675
+ }
676
+ ],
677
+ "name": "nftTransferFrom",
678
+ "outputs": [],
679
+ "stateMutability": "nonpayable",
680
+ "type": "function"
681
+ },
127
682
  {
128
683
  "inputs": [
129
684
  {
130
685
  "internalType": "NftId",
131
- "name": "policyNftId",
686
+ "name": "bundleNftId",
132
687
  "type": "uint96"
133
688
  },
134
689
  {
@@ -154,6 +709,19 @@
154
709
  "stateMutability": "nonpayable",
155
710
  "type": "function"
156
711
  },
712
+ {
713
+ "inputs": [
714
+ {
715
+ "internalType": "RoleId",
716
+ "name": "bundleOwnerRole",
717
+ "type": "uint64"
718
+ }
719
+ ],
720
+ "name": "setBundleOwnerRole",
721
+ "outputs": [],
722
+ "stateMutability": "nonpayable",
723
+ "type": "function"
724
+ },
157
725
  {
158
726
  "inputs": [
159
727
  {
@@ -213,18 +781,137 @@
213
781
  "stateMutability": "nonpayable",
214
782
  "type": "function"
215
783
  },
784
+ {
785
+ "inputs": [
786
+ {
787
+ "internalType": "uint256",
788
+ "name": "maxCapitalAmount",
789
+ "type": "uint256"
790
+ }
791
+ ],
792
+ "name": "setMaxCapitalAmount",
793
+ "outputs": [],
794
+ "stateMutability": "nonpayable",
795
+ "type": "function"
796
+ },
797
+ {
798
+ "inputs": [
799
+ {
800
+ "internalType": "NftId",
801
+ "name": "productNftId",
802
+ "type": "uint96"
803
+ }
804
+ ],
805
+ "name": "setProductNftId",
806
+ "outputs": [],
807
+ "stateMutability": "nonpayable",
808
+ "type": "function"
809
+ },
810
+ {
811
+ "inputs": [
812
+ {
813
+ "internalType": "address",
814
+ "name": "walletAddress",
815
+ "type": "address"
816
+ }
817
+ ],
818
+ "name": "setWallet",
819
+ "outputs": [],
820
+ "stateMutability": "nonpayable",
821
+ "type": "function"
822
+ },
823
+ {
824
+ "inputs": [
825
+ {
826
+ "internalType": "NftId",
827
+ "name": "bundleNftId",
828
+ "type": "uint96"
829
+ },
830
+ {
831
+ "internalType": "uint256",
832
+ "name": "amount",
833
+ "type": "uint256"
834
+ }
835
+ ],
836
+ "name": "stake",
837
+ "outputs": [],
838
+ "stateMutability": "nonpayable",
839
+ "type": "function"
840
+ },
841
+ {
842
+ "inputs": [
843
+ {
844
+ "internalType": "bytes4",
845
+ "name": "interfaceId",
846
+ "type": "bytes4"
847
+ }
848
+ ],
849
+ "name": "supportsInterface",
850
+ "outputs": [
851
+ {
852
+ "internalType": "bool",
853
+ "name": "",
854
+ "type": "bool"
855
+ }
856
+ ],
857
+ "stateMutability": "view",
858
+ "type": "function"
859
+ },
860
+ {
861
+ "inputs": [],
862
+ "name": "unlock",
863
+ "outputs": [],
864
+ "stateMutability": "nonpayable",
865
+ "type": "function"
866
+ },
867
+ {
868
+ "inputs": [
869
+ {
870
+ "internalType": "NftId",
871
+ "name": "bundleNftId",
872
+ "type": "uint96"
873
+ }
874
+ ],
875
+ "name": "unlockBundle",
876
+ "outputs": [],
877
+ "stateMutability": "nonpayable",
878
+ "type": "function"
879
+ },
880
+ {
881
+ "inputs": [
882
+ {
883
+ "internalType": "NftId",
884
+ "name": "bundleNftId",
885
+ "type": "uint96"
886
+ },
887
+ {
888
+ "internalType": "uint256",
889
+ "name": "amount",
890
+ "type": "uint256"
891
+ }
892
+ ],
893
+ "name": "unstake",
894
+ "outputs": [],
895
+ "stateMutability": "nonpayable",
896
+ "type": "function"
897
+ },
216
898
  {
217
899
  "inputs": [
218
900
  {
219
901
  "internalType": "NftId",
220
- "name": "policyNftId",
902
+ "name": "applicationNftId",
221
903
  "type": "uint96"
222
904
  },
223
905
  {
224
906
  "internalType": "bytes",
225
- "name": "policyData",
907
+ "name": "applicationData",
226
908
  "type": "bytes"
227
909
  },
910
+ {
911
+ "internalType": "NftId",
912
+ "name": "bundleNftId",
913
+ "type": "uint96"
914
+ },
228
915
  {
229
916
  "internalType": "bytes",
230
917
  "name": "bundleFilter",
@@ -236,7 +923,7 @@
236
923
  "type": "uint256"
237
924
  }
238
925
  ],
239
- "name": "underwrite",
926
+ "name": "verifyApplication",
240
927
  "outputs": [],
241
928
  "stateMutability": "nonpayable",
242
929
  "type": "function"