@etherisc/gif-next 0.0.2-e5a2253-213 → 0.0.2-e69072e-892

Sign up to get free protection for your applications and to get access to all the features.
Files changed (337) hide show
  1. package/README.md +73 -1
  2. package/artifacts/contracts/components/Component.sol/Component.dbg.json +4 -0
  3. package/artifacts/contracts/components/{BaseComponent.sol/BaseComponent.json → Component.sol/Component.json} +340 -59
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +804 -211
  6. package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
  7. package/artifacts/contracts/components/{IBaseComponent.sol/IBaseComponent.json → IComponent.sol/IComponent.json} +95 -56
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +699 -22
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +814 -60
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +519 -4
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +896 -298
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +442 -129
  18. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +1 -1
  19. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +38 -62
  20. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +1 -1
  21. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  22. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +910 -289
  23. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  24. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +110 -171
  25. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  26. package/artifacts/contracts/instance/Instance.sol/Instance.json +874 -557
  27. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
  28. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +52 -115
  29. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
  30. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +101 -168
  31. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  32. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +346 -263
  33. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  34. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +319 -86
  35. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +1 -1
  36. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +8 -32
  37. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
  38. package/artifacts/contracts/instance/base/{ComponentServiceBase.sol/ComponentServiceBase.json → ComponentService.sol/ComponentService.json} +119 -189
  39. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  40. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  41. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  42. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +2 -2
  43. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  44. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +2 -2
  45. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
  46. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +13 -13
  47. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
  48. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
  49. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  50. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  51. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +1 -1
  52. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +1 -1
  53. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.dbg.json +4 -0
  54. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +968 -0
  55. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
  56. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +665 -0
  57. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +1 -1
  58. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +258 -283
  59. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +1 -1
  60. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +305 -80
  61. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +4 -0
  62. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +754 -0
  63. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
  64. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +637 -0
  65. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
  66. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +983 -221
  67. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
  68. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +441 -72
  69. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
  70. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +556 -0
  71. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +1 -1
  72. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +130 -217
  73. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +4 -0
  74. package/artifacts/contracts/{shared/RegisterableUpgradable.sol/RegisterableUpgradable.json → instance/service/IClaimService.sol/IClaimService.json} +146 -179
  75. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  76. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +552 -140
  77. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +1 -1
  78. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +40 -292
  79. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  80. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +22 -174
  81. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  82. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +22 -174
  83. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +1 -1
  84. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +161 -407
  85. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +1 -1
  86. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +311 -114
  87. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
  88. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +139 -237
  89. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
  90. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +302 -77
  91. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
  92. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +139 -237
  93. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +1 -1
  94. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +302 -77
  95. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  96. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  97. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +98 -5
  98. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  99. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +112 -198
  100. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  101. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  102. package/artifacts/contracts/registry/Registry.sol/Registry.json +112 -27
  103. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +1 -1
  104. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +18 -18
  105. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  106. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +216 -234
  107. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  108. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +300 -81
  109. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +1 -1
  110. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +70 -53
  111. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
  112. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +151 -50
  113. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +1 -1
  114. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  115. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +41 -3
  116. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  117. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +40 -29
  118. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
  119. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +129 -0
  120. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  121. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +21 -34
  122. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
  123. package/artifacts/contracts/{experiment/inheritance/IB.sol/IB.json → shared/IRegistryLinked.sol/IRegistryLinked.json} +18 -20
  124. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
  125. package/artifacts/contracts/shared/IService.sol/IService.json +22 -174
  126. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  127. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +2 -152
  128. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  129. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +120 -27
  130. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +4 -0
  131. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +248 -0
  132. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  133. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +294 -61
  134. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  135. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +129 -51
  136. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +4 -0
  137. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +84 -0
  138. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
  139. package/artifacts/contracts/shared/Service.sol/Service.json +114 -157
  140. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  141. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  142. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +2 -2
  143. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  144. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +2 -152
  145. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  146. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  147. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +129 -51
  148. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  149. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +2 -2
  150. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  151. package/artifacts/contracts/test/TestService.sol/TestService.json +135 -214
  152. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  153. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  154. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  155. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +8 -190
  156. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  157. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  158. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  159. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  160. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.dbg.json +4 -0
  161. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.json +100 -0
  162. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
  163. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +2 -2
  164. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  165. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  166. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +2 -2
  167. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  168. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +2 -2
  169. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  170. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +2 -2
  171. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +1 -1
  172. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  173. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  174. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.dbg.json +4 -0
  175. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.json +100 -0
  176. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +1 -1
  177. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +2 -2
  178. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
  179. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +2 -2
  180. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  181. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
  182. package/artifacts/contracts/types/Seconds.sol/SecondsLib.dbg.json +4 -0
  183. package/artifacts/contracts/types/Seconds.sol/SecondsLib.json +124 -0
  184. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  185. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  186. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +25 -7
  187. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +1 -1
  188. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +1 -1
  189. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  190. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  191. package/contracts/components/Component.sol +221 -0
  192. package/contracts/components/Distribution.sol +206 -67
  193. package/contracts/components/IComponent.sol +68 -0
  194. package/contracts/components/IDistributionComponent.sol +44 -9
  195. package/contracts/components/IPoolComponent.sol +124 -39
  196. package/contracts/components/IProductComponent.sol +8 -3
  197. package/contracts/components/Pool.sol +284 -164
  198. package/contracts/components/Product.sol +110 -116
  199. package/contracts/instance/BundleManager.sol +8 -12
  200. package/contracts/instance/IInstance.sol +41 -9
  201. package/contracts/instance/IInstanceService.sol +20 -1
  202. package/contracts/instance/Instance.sol +90 -61
  203. package/contracts/instance/InstanceAccessManager.sol +18 -24
  204. package/contracts/instance/InstanceReader.sol +3 -25
  205. package/contracts/instance/InstanceService.sol +195 -50
  206. package/contracts/instance/InstanceServiceManager.sol +1 -1
  207. package/contracts/instance/ObjectManager.sol +7 -24
  208. package/contracts/instance/base/{ComponentServiceBase.sol → ComponentService.sol} +9 -13
  209. package/contracts/instance/module/IAccess.sol +3 -4
  210. package/contracts/instance/module/IBundle.sol +2 -1
  211. package/contracts/instance/module/IDistribution.sol +2 -0
  212. package/contracts/instance/module/IPolicy.sol +30 -3
  213. package/contracts/instance/module/ISetup.sol +10 -10
  214. package/contracts/instance/service/ApplicationService.sol +350 -0
  215. package/contracts/instance/service/ApplicationServiceManager.sol +35 -0
  216. package/contracts/instance/service/BundleService.sol +17 -12
  217. package/contracts/instance/service/BundleServiceManager.sol +1 -1
  218. package/contracts/instance/service/ClaimService.sol +151 -0
  219. package/contracts/instance/service/ClaimServiceManager.sol +35 -0
  220. package/contracts/instance/service/DistributionService.sol +312 -33
  221. package/contracts/instance/service/DistributionServiceManager.sol +1 -1
  222. package/contracts/instance/service/IApplicationService.sol +82 -0
  223. package/contracts/instance/service/IBundleService.sol +14 -3
  224. package/contracts/instance/service/IClaimService.sol +61 -0
  225. package/contracts/instance/service/IDistributionService.sol +74 -0
  226. package/contracts/instance/service/IPolicyService.sol +26 -50
  227. package/contracts/instance/service/PolicyService.sol +127 -262
  228. package/contracts/instance/service/PolicyServiceManager.sol +2 -2
  229. package/contracts/instance/service/PoolService.sol +12 -45
  230. package/contracts/instance/service/PoolServiceManager.sol +1 -1
  231. package/contracts/instance/service/ProductService.sol +50 -26
  232. package/contracts/instance/service/ProductServiceManager.sol +2 -2
  233. package/contracts/registry/IRegistry.sol +16 -8
  234. package/contracts/registry/IRegistryService.sol +19 -10
  235. package/contracts/registry/Registry.sol +120 -52
  236. package/contracts/registry/RegistryAccessManager.sol +31 -25
  237. package/contracts/registry/RegistryService.sol +91 -128
  238. package/contracts/registry/RegistryServiceManager.sol +13 -13
  239. package/contracts/registry/ReleaseManager.sol +86 -106
  240. package/contracts/registry/TokenRegistry.sol +19 -13
  241. package/contracts/shared/ERC165.sol +14 -12
  242. package/contracts/shared/INftOwnable.sol +11 -10
  243. package/contracts/shared/IPolicyHolder.sol +26 -0
  244. package/contracts/shared/IRegisterable.sol +4 -4
  245. package/contracts/shared/IRegistryLinked.sol +12 -0
  246. package/contracts/shared/IService.sol +2 -0
  247. package/contracts/shared/IVersionable.sol +4 -47
  248. package/contracts/shared/NftOwnable.sol +66 -80
  249. package/contracts/shared/PolicyHolder.sol +81 -0
  250. package/contracts/shared/ProxyManager.sol +100 -25
  251. package/contracts/shared/Registerable.sol +16 -32
  252. package/contracts/shared/RegistryLinked.sol +48 -0
  253. package/contracts/shared/Service.sol +19 -19
  254. package/contracts/shared/Versionable.sol +4 -92
  255. package/contracts/test/TestRegisterable.sol +1 -1
  256. package/contracts/test/TestService.sol +1 -1
  257. package/contracts/types/ClaimId.sol +52 -0
  258. package/contracts/types/DistributorType.sol +2 -2
  259. package/contracts/types/ObjectType.sol +9 -5
  260. package/contracts/types/PayoutId.sol +54 -0
  261. package/contracts/types/RoleId.sol +12 -7
  262. package/contracts/types/Seconds.sol +54 -0
  263. package/contracts/types/Timestamp.sol +12 -13
  264. package/package.json +3 -3
  265. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
  266. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
  267. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +0 -4
  268. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.json +0 -66
  269. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +0 -4
  270. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.json +0 -24
  271. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +0 -4
  272. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.json +0 -42
  273. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +0 -4
  274. package/artifacts/contracts/experiment/errors/Require.sol/Require.json +0 -105
  275. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +0 -4
  276. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +0 -105
  277. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +0 -4
  278. package/artifacts/contracts/experiment/inheritance/A.sol/A.json +0 -128
  279. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +0 -4
  280. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +0 -42
  281. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +0 -4
  282. package/artifacts/contracts/experiment/inheritance/B.sol/B.json +0 -76
  283. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +0 -4
  284. package/artifacts/contracts/experiment/inheritance/C.sol/C.json +0 -89
  285. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +0 -4
  286. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.json +0 -128
  287. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +0 -4
  288. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.json +0 -37
  289. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +0 -4
  290. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +0 -4
  291. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.json +0 -63
  292. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +0 -4
  293. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +0 -59
  294. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +0 -4
  295. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +0 -124
  296. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +0 -4
  297. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +0 -74
  298. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +0 -4
  299. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +0 -124
  300. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +0 -4
  301. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +0 -207
  302. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +0 -4
  303. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +0 -10
  304. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +0 -4
  305. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +0 -10
  306. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +0 -4
  307. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +0 -1206
  308. package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
  309. package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.json +0 -448
  310. package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.dbg.json +0 -4
  311. package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.json +0 -763
  312. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
  313. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
  314. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +0 -100
  315. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +0 -4
  316. package/contracts/components/BaseComponent.sol +0 -168
  317. package/contracts/components/IBaseComponent.sol +0 -35
  318. package/contracts/experiment/cloning/Cloner.sol +0 -47
  319. package/contracts/experiment/errors/Require.sol +0 -38
  320. package/contracts/experiment/errors/Revert.sol +0 -44
  321. package/contracts/experiment/inheritance/A.sol +0 -53
  322. package/contracts/experiment/inheritance/B.sol +0 -28
  323. package/contracts/experiment/inheritance/C.sol +0 -34
  324. package/contracts/experiment/inheritance/IA.sol +0 -13
  325. package/contracts/experiment/inheritance/IB.sol +0 -10
  326. package/contracts/experiment/inheritance/IC.sol +0 -12
  327. package/contracts/experiment/statemachine/Dummy.sol +0 -27
  328. package/contracts/experiment/statemachine/ISM.sol +0 -25
  329. package/contracts/experiment/statemachine/SM.sol +0 -57
  330. package/contracts/experiment/statemachine/SimpleStateMachine.sol +0 -31
  331. package/contracts/experiment/types/TypeA.sol +0 -47
  332. package/contracts/experiment/types/TypeB.sol +0 -29
  333. package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +0 -23
  334. package/contracts/instance/IInstanceBase.sol +0 -25
  335. package/contracts/instance/InstanceBase.sol +0 -39
  336. package/contracts/instance/base/IInstanceBase.sol +0 -21
  337. package/contracts/shared/RegisterableUpgradable.sol +0 -16
@@ -7,49 +7,60 @@
7
7
  "inputs": [
8
8
  {
9
9
  "internalType": "address",
10
- "name": "target",
10
+ "name": "authority",
11
11
  "type": "address"
12
12
  }
13
13
  ],
14
- "name": "AddressEmptyCode",
14
+ "name": "AccessManagedInvalidAuthority",
15
15
  "type": "error"
16
16
  },
17
17
  {
18
18
  "inputs": [
19
19
  {
20
20
  "internalType": "address",
21
- "name": "account",
21
+ "name": "caller",
22
22
  "type": "address"
23
+ },
24
+ {
25
+ "internalType": "uint32",
26
+ "name": "delay",
27
+ "type": "uint32"
23
28
  }
24
29
  ],
25
- "name": "AddressInsufficientBalance",
30
+ "name": "AccessManagedRequiredDelay",
26
31
  "type": "error"
27
32
  },
28
33
  {
29
34
  "inputs": [
30
35
  {
31
36
  "internalType": "address",
32
- "name": "registry",
37
+ "name": "caller",
33
38
  "type": "address"
34
- },
39
+ }
40
+ ],
41
+ "name": "AccessManagedUnauthorized",
42
+ "type": "error"
43
+ },
44
+ {
45
+ "inputs": [
35
46
  {
36
- "internalType": "NftId",
37
- "name": "nftId",
38
- "type": "uint96"
47
+ "internalType": "address",
48
+ "name": "target",
49
+ "type": "address"
39
50
  }
40
51
  ],
41
- "name": "ErrorAlreadyLinked",
52
+ "name": "AddressEmptyCode",
42
53
  "type": "error"
43
54
  },
44
55
  {
45
56
  "inputs": [
46
57
  {
47
58
  "internalType": "address",
48
- "name": "caller",
59
+ "name": "account",
49
60
  "type": "address"
50
61
  }
51
62
  ],
52
- "name": "ErrorBaseComponentNotProductService",
63
+ "name": "AddressInsufficientBalance",
53
64
  "type": "error"
54
65
  },
55
66
  {
@@ -58,25 +69,46 @@
58
69
  "internalType": "address",
59
70
  "name": "caller",
60
71
  "type": "address"
61
- },
72
+ }
73
+ ],
74
+ "name": "ErrorComponentNotChainNft",
75
+ "type": "error"
76
+ },
77
+ {
78
+ "inputs": [
62
79
  {
63
- "internalType": "uint64",
64
- "name": "requiredRoleIdNum",
65
- "type": "uint64"
80
+ "internalType": "NftId",
81
+ "name": "instanceNftId",
82
+ "type": "uint96"
66
83
  }
67
84
  ],
68
- "name": "ErrorBaseComponentUnauthorized",
85
+ "name": "ErrorComponentNotInstance",
69
86
  "type": "error"
70
87
  },
71
88
  {
72
89
  "inputs": [
73
90
  {
74
91
  "internalType": "address",
75
- "name": "newWallet",
92
+ "name": "caller",
76
93
  "type": "address"
77
94
  }
78
95
  ],
79
- "name": "ErrorBaseComponentWalletAddressIsSameAsCurrent",
96
+ "name": "ErrorComponentNotProductService",
97
+ "type": "error"
98
+ },
99
+ {
100
+ "inputs": [],
101
+ "name": "ErrorComponentProductNftAlreadySet",
102
+ "type": "error"
103
+ },
104
+ {
105
+ "inputs": [],
106
+ "name": "ErrorComponentWalletAddressIsSameAsCurrent",
107
+ "type": "error"
108
+ },
109
+ {
110
+ "inputs": [],
111
+ "name": "ErrorComponentWalletAddressZero",
80
112
  "type": "error"
81
113
  },
82
114
  {
@@ -102,7 +134,18 @@
102
134
  "type": "uint256"
103
135
  }
104
136
  ],
105
- "name": "ErrorBaseComponentWalletAllowanceTooSmall",
137
+ "name": "ErrorComponentWalletAllowanceTooSmall",
138
+ "type": "error"
139
+ },
140
+ {
141
+ "inputs": [
142
+ {
143
+ "internalType": "NftId",
144
+ "name": "nftId",
145
+ "type": "uint96"
146
+ }
147
+ ],
148
+ "name": "ErrorNftOwnableAlreadyLinked",
106
149
  "type": "error"
107
150
  },
108
151
  {
@@ -113,7 +156,12 @@
113
156
  "type": "address"
114
157
  }
115
158
  ],
116
- "name": "ErrorContractNotRegistered",
159
+ "name": "ErrorNftOwnableContractNotRegistered",
160
+ "type": "error"
161
+ },
162
+ {
163
+ "inputs": [],
164
+ "name": "ErrorNftOwnableInitialOwnerZero",
117
165
  "type": "error"
118
166
  },
119
167
  {
@@ -124,7 +172,7 @@
124
172
  "type": "address"
125
173
  }
126
174
  ],
127
- "name": "ErrorNotOwner",
175
+ "name": "ErrorNftOwnableNotOwner",
128
176
  "type": "error"
129
177
  },
130
178
  {
@@ -141,33 +189,44 @@
141
189
  {
142
190
  "inputs": [
143
191
  {
144
- "internalType": "address",
145
- "name": "registryAddress",
146
- "type": "address"
192
+ "internalType": "NftId",
193
+ "name": "applicationNftId",
194
+ "type": "uint96"
147
195
  }
148
196
  ],
149
- "name": "ErrorRegisterableNotRegistry",
197
+ "name": "ErrorPoolApplicationBundleMismatch",
150
198
  "type": "error"
151
199
  },
152
200
  {
153
201
  "inputs": [],
154
- "name": "ErrorRegistryAddressZero",
202
+ "name": "ErrorPoolBundleOwnerRoleAlreadySet",
155
203
  "type": "error"
156
204
  },
157
205
  {
158
206
  "inputs": [
207
+ {
208
+ "internalType": "NftId",
209
+ "name": "bundleNftId",
210
+ "type": "uint96"
211
+ },
159
212
  {
160
213
  "internalType": "address",
161
- "name": "registry",
214
+ "name": "caller",
162
215
  "type": "address"
163
216
  }
164
217
  ],
165
- "name": "ErrorRegistryAlreadyInitialized",
218
+ "name": "ErrorPoolNotBundleOwner",
166
219
  "type": "error"
167
220
  },
168
221
  {
169
- "inputs": [],
170
- "name": "ErrorRegistryNotInitialized",
222
+ "inputs": [
223
+ {
224
+ "internalType": "address",
225
+ "name": "caller",
226
+ "type": "address"
227
+ }
228
+ ],
229
+ "name": "ErrorPoolNotPoolService",
171
230
  "type": "error"
172
231
  },
173
232
  {
@@ -196,6 +255,19 @@
196
255
  "name": "SafeERC20FailedOperation",
197
256
  "type": "error"
198
257
  },
258
+ {
259
+ "anonymous": false,
260
+ "inputs": [
261
+ {
262
+ "indexed": false,
263
+ "internalType": "address",
264
+ "name": "authority",
265
+ "type": "address"
266
+ }
267
+ ],
268
+ "name": "AuthorityUpdated",
269
+ "type": "event"
270
+ },
199
271
  {
200
272
  "anonymous": false,
201
273
  "inputs": [
@@ -212,6 +284,12 @@
212
284
  {
213
285
  "anonymous": false,
214
286
  "inputs": [
287
+ {
288
+ "indexed": false,
289
+ "internalType": "address",
290
+ "name": "oldWallet",
291
+ "type": "address"
292
+ },
215
293
  {
216
294
  "indexed": false,
217
295
  "internalType": "address",
@@ -219,7 +297,7 @@
219
297
  "type": "address"
220
298
  }
221
299
  ],
222
- "name": "LogBaseComponentWalletAddressChanged",
300
+ "name": "LogComponentWalletAddressChanged",
223
301
  "type": "event"
224
302
  },
225
303
  {
@@ -244,101 +322,74 @@
244
322
  "type": "uint256"
245
323
  }
246
324
  ],
247
- "name": "LogBaseComponentWalletTokensTransferred",
325
+ "name": "LogComponentWalletTokensTransferred",
248
326
  "type": "event"
249
327
  },
250
328
  {
251
329
  "anonymous": false,
252
330
  "inputs": [
253
- {
254
- "indexed": false,
255
- "internalType": "NftId",
256
- "name": "policyNftId",
257
- "type": "uint96"
258
- },
259
331
  {
260
332
  "indexed": false,
261
333
  "internalType": "uint256",
262
- "name": "collateralizationAmount",
334
+ "name": "previousMaxCapitalAmount",
263
335
  "type": "uint256"
264
336
  },
265
337
  {
266
338
  "indexed": false,
267
- "internalType": "address",
268
- "name": "pool",
269
- "type": "address"
339
+ "internalType": "uint256",
340
+ "name": "currentMaxCapitalAmount",
341
+ "type": "uint256"
270
342
  }
271
343
  ],
272
- "name": "LogUnderwrittenByPool",
344
+ "name": "LogPoolBundleMaxCapitalAmountUpdated",
273
345
  "type": "event"
274
346
  },
275
347
  {
276
- "inputs": [],
277
- "name": "REGISTERABLE_LOCATION_V1",
278
- "outputs": [
348
+ "anonymous": false,
349
+ "inputs": [
279
350
  {
280
- "internalType": "bytes32",
281
- "name": "",
282
- "type": "bytes32"
351
+ "indexed": false,
352
+ "internalType": "RoleId",
353
+ "name": "bundleOwnerRole",
354
+ "type": "uint64"
283
355
  }
284
356
  ],
285
- "stateMutability": "view",
286
- "type": "function"
357
+ "name": "LogPoolBundleOwnerRoleSet",
358
+ "type": "event"
287
359
  },
288
360
  {
361
+ "anonymous": false,
289
362
  "inputs": [
290
363
  {
291
- "components": [
292
- {
293
- "internalType": "UFixed",
294
- "name": "fractionalFee",
295
- "type": "uint256"
296
- },
297
- {
298
- "internalType": "uint256",
299
- "name": "fixedFee",
300
- "type": "uint256"
301
- }
302
- ],
303
- "internalType": "struct Fee",
304
- "name": "fee",
305
- "type": "tuple"
364
+ "indexed": false,
365
+ "internalType": "address",
366
+ "name": "pool",
367
+ "type": "address"
306
368
  },
307
369
  {
308
- "internalType": "uint256",
309
- "name": "initialAmount",
310
- "type": "uint256"
370
+ "indexed": false,
371
+ "internalType": "NftId",
372
+ "name": "applicationNftId",
373
+ "type": "uint96"
311
374
  },
312
375
  {
376
+ "indexed": false,
313
377
  "internalType": "uint256",
314
- "name": "lifetime",
378
+ "name": "collateralizationAmount",
315
379
  "type": "uint256"
316
- },
317
- {
318
- "internalType": "bytes",
319
- "name": "filter",
320
- "type": "bytes"
321
- }
322
- ],
323
- "name": "createBundle",
324
- "outputs": [
325
- {
326
- "internalType": "NftId",
327
- "name": "bundleNftId",
328
- "type": "uint96"
329
380
  }
330
381
  ],
331
- "stateMutability": "nonpayable",
332
- "type": "function"
382
+ "name": "LogPoolVerifiedByPool",
383
+ "type": "event"
333
384
  },
334
385
  {
335
386
  "inputs": [],
336
- "name": "getCollateralizationLevel",
387
+ "name": "COMPONENT_LOCATION_V1",
337
388
  "outputs": [
338
389
  {
339
- "internalType": "UFixed",
340
- "name": "collateralizationLevel",
341
- "type": "uint256"
390
+ "internalType": "bytes32",
391
+ "name": "",
392
+ "type": "bytes32"
342
393
  }
343
394
  ],
344
395
  "stateMutability": "view",
@@ -346,54 +397,12 @@
346
397
  },
347
398
  {
348
399
  "inputs": [],
349
- "name": "getInitialInfo",
400
+ "name": "NFT_OWNABLE_STORAGE_LOCATION_V1",
350
401
  "outputs": [
351
402
  {
352
- "components": [
353
- {
354
- "internalType": "NftId",
355
- "name": "nftId",
356
- "type": "uint96"
357
- },
358
- {
359
- "internalType": "NftId",
360
- "name": "parentNftId",
361
- "type": "uint96"
362
- },
363
- {
364
- "internalType": "ObjectType",
365
- "name": "objectType",
366
- "type": "uint8"
367
- },
368
- {
369
- "internalType": "bool",
370
- "name": "isInterceptor",
371
- "type": "bool"
372
- },
373
- {
374
- "internalType": "address",
375
- "name": "objectAddress",
376
- "type": "address"
377
- },
378
- {
379
- "internalType": "address",
380
- "name": "initialOwner",
381
- "type": "address"
382
- },
383
- {
384
- "internalType": "bytes",
385
- "name": "data",
386
- "type": "bytes"
387
- }
388
- ],
389
- "internalType": "struct IRegistry.ObjectInfo",
390
- "name": "",
391
- "type": "tuple"
392
- },
393
- {
394
- "internalType": "bytes",
403
+ "internalType": "bytes32",
395
404
  "name": "",
396
- "type": "bytes"
405
+ "type": "bytes32"
397
406
  }
398
407
  ],
399
408
  "stateMutability": "view",
@@ -401,12 +410,12 @@
401
410
  },
402
411
  {
403
412
  "inputs": [],
404
- "name": "getInstance",
413
+ "name": "POOL_STORAGE_LOCATION_V1",
405
414
  "outputs": [
406
415
  {
407
- "internalType": "contract IInstance",
408
- "name": "instance",
409
- "type": "address"
416
+ "internalType": "bytes32",
417
+ "name": "",
418
+ "type": "bytes32"
410
419
  }
411
420
  ],
412
421
  "stateMutability": "view",
@@ -414,64 +423,644 @@
414
423
  },
415
424
  {
416
425
  "inputs": [],
417
- "name": "getName",
426
+ "name": "REGISTERABLE_LOCATION_V1",
418
427
  "outputs": [
419
428
  {
420
- "internalType": "string",
421
- "name": "name",
422
- "type": "string"
429
+ "internalType": "bytes32",
430
+ "name": "",
431
+ "type": "bytes32"
423
432
  }
424
433
  ],
425
- "stateMutability": "pure",
434
+ "stateMutability": "view",
426
435
  "type": "function"
427
436
  },
428
437
  {
429
- "inputs": [],
430
- "name": "getNftId",
431
- "outputs": [
438
+ "inputs": [
432
439
  {
433
440
  "internalType": "NftId",
434
- "name": "",
441
+ "name": "applicationNftId",
435
442
  "type": "uint96"
436
- }
437
- ],
438
- "stateMutability": "view",
439
- "type": "function"
440
- },
441
- {
442
- "inputs": [],
443
- "name": "getOwner",
444
- "outputs": [
443
+ },
445
444
  {
446
- "internalType": "address",
447
- "name": "",
448
- "type": "address"
445
+ "internalType": "bytes",
446
+ "name": "applicationData",
447
+ "type": "bytes"
448
+ },
449
+ {
450
+ "internalType": "NftId",
451
+ "name": "bundleNftId",
452
+ "type": "uint96"
453
+ },
454
+ {
455
+ "internalType": "bytes",
456
+ "name": "bundleFilter",
457
+ "type": "bytes"
458
+ },
459
+ {
460
+ "internalType": "uint256",
461
+ "name": "collateralizationAmount",
462
+ "type": "uint256"
463
+ }
464
+ ],
465
+ "name": "applicationMatchesBundle",
466
+ "outputs": [
467
+ {
468
+ "internalType": "bool",
469
+ "name": "isMatching",
470
+ "type": "bool"
471
+ }
472
+ ],
473
+ "stateMutability": "view",
474
+ "type": "function"
475
+ },
476
+ {
477
+ "inputs": [],
478
+ "name": "authority",
479
+ "outputs": [
480
+ {
481
+ "internalType": "address",
482
+ "name": "",
483
+ "type": "address"
484
+ }
485
+ ],
486
+ "stateMutability": "view",
487
+ "type": "function"
488
+ },
489
+ {
490
+ "inputs": [
491
+ {
492
+ "internalType": "NftId",
493
+ "name": "bundleNftId",
494
+ "type": "uint96"
495
+ }
496
+ ],
497
+ "name": "close",
498
+ "outputs": [],
499
+ "stateMutability": "nonpayable",
500
+ "type": "function"
501
+ },
502
+ {
503
+ "inputs": [
504
+ {
505
+ "internalType": "NftId",
506
+ "name": "bundleNftId",
507
+ "type": "uint96"
508
+ },
509
+ {
510
+ "internalType": "Seconds",
511
+ "name": "lifetimeExtension",
512
+ "type": "uint40"
513
+ }
514
+ ],
515
+ "name": "extend",
516
+ "outputs": [],
517
+ "stateMutability": "nonpayable",
518
+ "type": "function"
519
+ },
520
+ {
521
+ "inputs": [],
522
+ "name": "getBundleOwnerRole",
523
+ "outputs": [
524
+ {
525
+ "internalType": "RoleId",
526
+ "name": "bundleOwnerRole",
527
+ "type": "uint64"
528
+ }
529
+ ],
530
+ "stateMutability": "view",
531
+ "type": "function"
532
+ },
533
+ {
534
+ "inputs": [],
535
+ "name": "getCollateralizationLevel",
536
+ "outputs": [
537
+ {
538
+ "internalType": "UFixed",
539
+ "name": "collateralizationLevel",
540
+ "type": "uint256"
541
+ }
542
+ ],
543
+ "stateMutability": "view",
544
+ "type": "function"
545
+ },
546
+ {
547
+ "inputs": [
548
+ {
549
+ "internalType": "bytes",
550
+ "name": "name",
551
+ "type": "bytes"
552
+ }
553
+ ],
554
+ "name": "getContractLocation",
555
+ "outputs": [
556
+ {
557
+ "internalType": "bytes32",
558
+ "name": "hash",
559
+ "type": "bytes32"
560
+ }
561
+ ],
562
+ "stateMutability": "pure",
563
+ "type": "function"
564
+ },
565
+ {
566
+ "inputs": [],
567
+ "name": "getInitialInfo",
568
+ "outputs": [
569
+ {
570
+ "components": [
571
+ {
572
+ "internalType": "NftId",
573
+ "name": "nftId",
574
+ "type": "uint96"
575
+ },
576
+ {
577
+ "internalType": "NftId",
578
+ "name": "parentNftId",
579
+ "type": "uint96"
580
+ },
581
+ {
582
+ "internalType": "ObjectType",
583
+ "name": "objectType",
584
+ "type": "uint8"
585
+ },
586
+ {
587
+ "internalType": "bool",
588
+ "name": "isInterceptor",
589
+ "type": "bool"
590
+ },
591
+ {
592
+ "internalType": "address",
593
+ "name": "objectAddress",
594
+ "type": "address"
595
+ },
596
+ {
597
+ "internalType": "address",
598
+ "name": "initialOwner",
599
+ "type": "address"
600
+ },
601
+ {
602
+ "internalType": "bytes",
603
+ "name": "data",
604
+ "type": "bytes"
605
+ }
606
+ ],
607
+ "internalType": "struct IRegistry.ObjectInfo",
608
+ "name": "info",
609
+ "type": "tuple"
610
+ }
611
+ ],
612
+ "stateMutability": "view",
613
+ "type": "function"
614
+ },
615
+ {
616
+ "inputs": [],
617
+ "name": "getInstance",
618
+ "outputs": [
619
+ {
620
+ "internalType": "contract IInstance",
621
+ "name": "instance",
622
+ "type": "address"
623
+ }
624
+ ],
625
+ "stateMutability": "view",
626
+ "type": "function"
627
+ },
628
+ {
629
+ "inputs": [],
630
+ "name": "getMaxCapitalAmount",
631
+ "outputs": [
632
+ {
633
+ "internalType": "uint256",
634
+ "name": "maxCapitalAmount",
635
+ "type": "uint256"
636
+ }
637
+ ],
638
+ "stateMutability": "view",
639
+ "type": "function"
640
+ },
641
+ {
642
+ "inputs": [],
643
+ "name": "getName",
644
+ "outputs": [
645
+ {
646
+ "internalType": "string",
647
+ "name": "name",
648
+ "type": "string"
649
+ }
650
+ ],
651
+ "stateMutability": "view",
652
+ "type": "function"
653
+ },
654
+ {
655
+ "inputs": [],
656
+ "name": "getNftId",
657
+ "outputs": [
658
+ {
659
+ "internalType": "NftId",
660
+ "name": "",
661
+ "type": "uint96"
662
+ }
663
+ ],
664
+ "stateMutability": "view",
665
+ "type": "function"
666
+ },
667
+ {
668
+ "inputs": [],
669
+ "name": "getOwner",
670
+ "outputs": [
671
+ {
672
+ "internalType": "address",
673
+ "name": "",
674
+ "type": "address"
675
+ }
676
+ ],
677
+ "stateMutability": "view",
678
+ "type": "function"
679
+ },
680
+ {
681
+ "inputs": [],
682
+ "name": "getProductNftId",
683
+ "outputs": [
684
+ {
685
+ "internalType": "NftId",
686
+ "name": "productNftId",
687
+ "type": "uint96"
688
+ }
689
+ ],
690
+ "stateMutability": "view",
691
+ "type": "function"
692
+ },
693
+ {
694
+ "inputs": [],
695
+ "name": "getRegistry",
696
+ "outputs": [
697
+ {
698
+ "internalType": "contract IRegistry",
699
+ "name": "",
700
+ "type": "address"
701
+ }
702
+ ],
703
+ "stateMutability": "view",
704
+ "type": "function"
705
+ },
706
+ {
707
+ "inputs": [],
708
+ "name": "getRegistryAddress",
709
+ "outputs": [
710
+ {
711
+ "internalType": "address",
712
+ "name": "",
713
+ "type": "address"
714
+ }
715
+ ],
716
+ "stateMutability": "view",
717
+ "type": "function"
718
+ },
719
+ {
720
+ "inputs": [],
721
+ "name": "getRetentionLevel",
722
+ "outputs": [
723
+ {
724
+ "internalType": "UFixed",
725
+ "name": "retentionLevel",
726
+ "type": "uint256"
727
+ }
728
+ ],
729
+ "stateMutability": "view",
730
+ "type": "function"
731
+ },
732
+ {
733
+ "inputs": [],
734
+ "name": "getSetupInfo",
735
+ "outputs": [
736
+ {
737
+ "components": [
738
+ {
739
+ "internalType": "NftId",
740
+ "name": "productNftId",
741
+ "type": "uint96"
742
+ },
743
+ {
744
+ "internalType": "contract TokenHandler",
745
+ "name": "tokenHandler",
746
+ "type": "address"
747
+ },
748
+ {
749
+ "internalType": "uint256",
750
+ "name": "maxCapitalAmount",
751
+ "type": "uint256"
752
+ },
753
+ {
754
+ "internalType": "bool",
755
+ "name": "isInterceptingBundleTransfers",
756
+ "type": "bool"
757
+ },
758
+ {
759
+ "internalType": "bool",
760
+ "name": "isExternallyManaged",
761
+ "type": "bool"
762
+ },
763
+ {
764
+ "internalType": "bool",
765
+ "name": "isVerifyingApplications",
766
+ "type": "bool"
767
+ },
768
+ {
769
+ "internalType": "UFixed",
770
+ "name": "collateralizationLevel",
771
+ "type": "uint256"
772
+ },
773
+ {
774
+ "internalType": "UFixed",
775
+ "name": "retentionLevel",
776
+ "type": "uint256"
777
+ },
778
+ {
779
+ "components": [
780
+ {
781
+ "internalType": "UFixed",
782
+ "name": "fractionalFee",
783
+ "type": "uint256"
784
+ },
785
+ {
786
+ "internalType": "uint256",
787
+ "name": "fixedFee",
788
+ "type": "uint256"
789
+ }
790
+ ],
791
+ "internalType": "struct Fee",
792
+ "name": "poolFee",
793
+ "type": "tuple"
794
+ },
795
+ {
796
+ "components": [
797
+ {
798
+ "internalType": "UFixed",
799
+ "name": "fractionalFee",
800
+ "type": "uint256"
801
+ },
802
+ {
803
+ "internalType": "uint256",
804
+ "name": "fixedFee",
805
+ "type": "uint256"
806
+ }
807
+ ],
808
+ "internalType": "struct Fee",
809
+ "name": "stakingFee",
810
+ "type": "tuple"
811
+ },
812
+ {
813
+ "components": [
814
+ {
815
+ "internalType": "UFixed",
816
+ "name": "fractionalFee",
817
+ "type": "uint256"
818
+ },
819
+ {
820
+ "internalType": "uint256",
821
+ "name": "fixedFee",
822
+ "type": "uint256"
823
+ }
824
+ ],
825
+ "internalType": "struct Fee",
826
+ "name": "performanceFee",
827
+ "type": "tuple"
828
+ },
829
+ {
830
+ "internalType": "address",
831
+ "name": "wallet",
832
+ "type": "address"
833
+ }
834
+ ],
835
+ "internalType": "struct ISetup.PoolSetupInfo",
836
+ "name": "setupInfo",
837
+ "type": "tuple"
838
+ }
839
+ ],
840
+ "stateMutability": "view",
841
+ "type": "function"
842
+ },
843
+ {
844
+ "inputs": [],
845
+ "name": "getToken",
846
+ "outputs": [
847
+ {
848
+ "internalType": "contract IERC20Metadata",
849
+ "name": "token",
850
+ "type": "address"
449
851
  }
450
852
  ],
451
853
  "stateMutability": "view",
452
854
  "type": "function"
453
855
  },
454
856
  {
455
- "inputs": [],
456
- "name": "getProductNftId",
457
- "outputs": [
857
+ "inputs": [],
858
+ "name": "getWallet",
859
+ "outputs": [
860
+ {
861
+ "internalType": "address",
862
+ "name": "walletAddress",
863
+ "type": "address"
864
+ }
865
+ ],
866
+ "stateMutability": "view",
867
+ "type": "function"
868
+ },
869
+ {
870
+ "inputs": [
871
+ {
872
+ "internalType": "address",
873
+ "name": "registry",
874
+ "type": "address"
875
+ },
876
+ {
877
+ "internalType": "NftId",
878
+ "name": "instanceNftId",
879
+ "type": "uint96"
880
+ },
881
+ {
882
+ "internalType": "string",
883
+ "name": "name",
884
+ "type": "string"
885
+ },
886
+ {
887
+ "internalType": "address",
888
+ "name": "token",
889
+ "type": "address"
890
+ },
891
+ {
892
+ "internalType": "ObjectType",
893
+ "name": "componentType",
894
+ "type": "uint8"
895
+ },
896
+ {
897
+ "internalType": "bool",
898
+ "name": "isInterceptor",
899
+ "type": "bool"
900
+ },
901
+ {
902
+ "internalType": "address",
903
+ "name": "initialOwner",
904
+ "type": "address"
905
+ },
906
+ {
907
+ "internalType": "bytes",
908
+ "name": "registryData",
909
+ "type": "bytes"
910
+ }
911
+ ],
912
+ "name": "initializeComponent",
913
+ "outputs": [],
914
+ "stateMutability": "nonpayable",
915
+ "type": "function"
916
+ },
917
+ {
918
+ "inputs": [],
919
+ "name": "initializeERC165",
920
+ "outputs": [],
921
+ "stateMutability": "nonpayable",
922
+ "type": "function"
923
+ },
924
+ {
925
+ "inputs": [
926
+ {
927
+ "internalType": "address",
928
+ "name": "initialOwner",
929
+ "type": "address"
930
+ },
931
+ {
932
+ "internalType": "address",
933
+ "name": "registryAddress",
934
+ "type": "address"
935
+ }
936
+ ],
937
+ "name": "initializeNftOwnable",
938
+ "outputs": [],
939
+ "stateMutability": "nonpayable",
940
+ "type": "function"
941
+ },
942
+ {
943
+ "inputs": [
944
+ {
945
+ "internalType": "address",
946
+ "name": "registry",
947
+ "type": "address"
948
+ },
949
+ {
950
+ "internalType": "NftId",
951
+ "name": "instanceNftId",
952
+ "type": "uint96"
953
+ },
954
+ {
955
+ "internalType": "string",
956
+ "name": "name",
957
+ "type": "string"
958
+ },
959
+ {
960
+ "internalType": "address",
961
+ "name": "token",
962
+ "type": "address"
963
+ },
964
+ {
965
+ "internalType": "bool",
966
+ "name": "isInterceptingNftTransfers",
967
+ "type": "bool"
968
+ },
969
+ {
970
+ "internalType": "bool",
971
+ "name": "isExternallyManaging",
972
+ "type": "bool"
973
+ },
974
+ {
975
+ "internalType": "bool",
976
+ "name": "isVerifying",
977
+ "type": "bool"
978
+ },
979
+ {
980
+ "internalType": "UFixed",
981
+ "name": "collateralizationLevel",
982
+ "type": "uint256"
983
+ },
984
+ {
985
+ "internalType": "UFixed",
986
+ "name": "retentionLevel",
987
+ "type": "uint256"
988
+ },
989
+ {
990
+ "internalType": "address",
991
+ "name": "initialOwner",
992
+ "type": "address"
993
+ },
994
+ {
995
+ "internalType": "bytes",
996
+ "name": "registryData",
997
+ "type": "bytes"
998
+ }
999
+ ],
1000
+ "name": "initializePool",
1001
+ "outputs": [],
1002
+ "stateMutability": "nonpayable",
1003
+ "type": "function"
1004
+ },
1005
+ {
1006
+ "inputs": [
1007
+ {
1008
+ "internalType": "address",
1009
+ "name": "registryAddress",
1010
+ "type": "address"
1011
+ },
1012
+ {
1013
+ "internalType": "NftId",
1014
+ "name": "parentNftId",
1015
+ "type": "uint96"
1016
+ },
1017
+ {
1018
+ "internalType": "ObjectType",
1019
+ "name": "objectType",
1020
+ "type": "uint8"
1021
+ },
1022
+ {
1023
+ "internalType": "bool",
1024
+ "name": "isInterceptor",
1025
+ "type": "bool"
1026
+ },
1027
+ {
1028
+ "internalType": "address",
1029
+ "name": "initialOwner",
1030
+ "type": "address"
1031
+ },
1032
+ {
1033
+ "internalType": "bytes",
1034
+ "name": "registryData",
1035
+ "type": "bytes"
1036
+ }
1037
+ ],
1038
+ "name": "initializeRegisterable",
1039
+ "outputs": [],
1040
+ "stateMutability": "nonpayable",
1041
+ "type": "function"
1042
+ },
1043
+ {
1044
+ "inputs": [
458
1045
  {
459
- "internalType": "NftId",
460
- "name": "productNftId",
461
- "type": "uint96"
1046
+ "internalType": "address",
1047
+ "name": "registryAddress",
1048
+ "type": "address"
462
1049
  }
463
1050
  ],
464
- "stateMutability": "view",
1051
+ "name": "initializeRegistryLinked",
1052
+ "outputs": [],
1053
+ "stateMutability": "nonpayable",
465
1054
  "type": "function"
466
1055
  },
467
1056
  {
468
1057
  "inputs": [],
469
- "name": "getRegistry",
1058
+ "name": "isConsumingScheduledOp",
470
1059
  "outputs": [
471
1060
  {
472
- "internalType": "contract IRegistry",
1061
+ "internalType": "bytes4",
473
1062
  "name": "",
474
- "type": "address"
1063
+ "type": "bytes4"
475
1064
  }
476
1065
  ],
477
1066
  "stateMutability": "view",
@@ -479,95 +1068,12 @@
479
1068
  },
480
1069
  {
481
1070
  "inputs": [],
482
- "name": "getSetupInfo",
1071
+ "name": "isExternallyManaged",
483
1072
  "outputs": [
484
1073
  {
485
- "components": [
486
- {
487
- "internalType": "NftId",
488
- "name": "productNftId",
489
- "type": "uint96"
490
- },
491
- {
492
- "internalType": "contract TokenHandler",
493
- "name": "tokenHandler",
494
- "type": "address"
495
- },
496
- {
497
- "internalType": "UFixed",
498
- "name": "collateralizationLevel",
499
- "type": "uint256"
500
- },
501
- {
502
- "components": [
503
- {
504
- "internalType": "UFixed",
505
- "name": "fractionalFee",
506
- "type": "uint256"
507
- },
508
- {
509
- "internalType": "uint256",
510
- "name": "fixedFee",
511
- "type": "uint256"
512
- }
513
- ],
514
- "internalType": "struct Fee",
515
- "name": "poolFee",
516
- "type": "tuple"
517
- },
518
- {
519
- "components": [
520
- {
521
- "internalType": "UFixed",
522
- "name": "fractionalFee",
523
- "type": "uint256"
524
- },
525
- {
526
- "internalType": "uint256",
527
- "name": "fixedFee",
528
- "type": "uint256"
529
- }
530
- ],
531
- "internalType": "struct Fee",
532
- "name": "stakingFee",
533
- "type": "tuple"
534
- },
535
- {
536
- "components": [
537
- {
538
- "internalType": "UFixed",
539
- "name": "fractionalFee",
540
- "type": "uint256"
541
- },
542
- {
543
- "internalType": "uint256",
544
- "name": "fixedFee",
545
- "type": "uint256"
546
- }
547
- ],
548
- "internalType": "struct Fee",
549
- "name": "performanceFee",
550
- "type": "tuple"
551
- },
552
- {
553
- "internalType": "bool",
554
- "name": "isIntercepting",
555
- "type": "bool"
556
- },
557
- {
558
- "internalType": "bool",
559
- "name": "isConfirmingApplication",
560
- "type": "bool"
561
- },
562
- {
563
- "internalType": "address",
564
- "name": "wallet",
565
- "type": "address"
566
- }
567
- ],
568
- "internalType": "struct ISetup.PoolSetupInfo",
569
- "name": "setupInfo",
570
- "type": "tuple"
1074
+ "internalType": "bool",
1075
+ "name": "",
1076
+ "type": "bool"
571
1077
  }
572
1078
  ],
573
1079
  "stateMutability": "view",
@@ -575,12 +1081,12 @@
575
1081
  },
576
1082
  {
577
1083
  "inputs": [],
578
- "name": "getToken",
1084
+ "name": "isInterceptingBundleTransfers",
579
1085
  "outputs": [
580
1086
  {
581
- "internalType": "contract IERC20Metadata",
582
- "name": "token",
583
- "type": "address"
1087
+ "internalType": "bool",
1088
+ "name": "",
1089
+ "type": "bool"
584
1090
  }
585
1091
  ],
586
1092
  "stateMutability": "view",
@@ -588,12 +1094,12 @@
588
1094
  },
589
1095
  {
590
1096
  "inputs": [],
591
- "name": "getWallet",
1097
+ "name": "isNftInterceptor",
592
1098
  "outputs": [
593
1099
  {
594
- "internalType": "address",
595
- "name": "walletAddress",
596
- "type": "address"
1100
+ "internalType": "bool",
1101
+ "name": "isInterceptor",
1102
+ "type": "bool"
597
1103
  }
598
1104
  ],
599
1105
  "stateMutability": "view",
@@ -601,7 +1107,7 @@
601
1107
  },
602
1108
  {
603
1109
  "inputs": [],
604
- "name": "isConfirmingApplication",
1110
+ "name": "isVerifyingApplications",
605
1111
  "outputs": [
606
1112
  {
607
1113
  "internalType": "bool",
@@ -642,25 +1148,50 @@
642
1148
  {
643
1149
  "inputs": [
644
1150
  {
645
- "internalType": "bytes",
646
- "name": "",
647
- "type": "bytes"
1151
+ "internalType": "address",
1152
+ "name": "from",
1153
+ "type": "address"
648
1154
  },
649
1155
  {
650
- "internalType": "bytes",
651
- "name": "",
652
- "type": "bytes"
1156
+ "internalType": "address",
1157
+ "name": "to",
1158
+ "type": "address"
1159
+ },
1160
+ {
1161
+ "internalType": "uint256",
1162
+ "name": "tokenId",
1163
+ "type": "uint256"
653
1164
  }
654
1165
  ],
655
- "name": "policyMatchesBundle",
656
- "outputs": [
1166
+ "name": "nftTransferFrom",
1167
+ "outputs": [],
1168
+ "stateMutability": "nonpayable",
1169
+ "type": "function"
1170
+ },
1171
+ {
1172
+ "inputs": [
657
1173
  {
658
- "internalType": "bool",
659
- "name": "isMatching",
660
- "type": "bool"
1174
+ "internalType": "bytes4",
1175
+ "name": "interfaceId",
1176
+ "type": "bytes4"
661
1177
  }
662
1178
  ],
663
- "stateMutability": "view",
1179
+ "name": "registerInterface",
1180
+ "outputs": [],
1181
+ "stateMutability": "nonpayable",
1182
+ "type": "function"
1183
+ },
1184
+ {
1185
+ "inputs": [
1186
+ {
1187
+ "internalType": "address",
1188
+ "name": "newAuthority",
1189
+ "type": "address"
1190
+ }
1191
+ ],
1192
+ "name": "setAuthority",
1193
+ "outputs": [],
1194
+ "stateMutability": "nonpayable",
664
1195
  "type": "function"
665
1196
  },
666
1197
  {
@@ -693,6 +1224,19 @@
693
1224
  "stateMutability": "nonpayable",
694
1225
  "type": "function"
695
1226
  },
1227
+ {
1228
+ "inputs": [
1229
+ {
1230
+ "internalType": "RoleId",
1231
+ "name": "bundleOwnerRole",
1232
+ "type": "uint64"
1233
+ }
1234
+ ],
1235
+ "name": "setBundleOwnerRole",
1236
+ "outputs": [],
1237
+ "stateMutability": "nonpayable",
1238
+ "type": "function"
1239
+ },
696
1240
  {
697
1241
  "inputs": [
698
1242
  {
@@ -752,6 +1296,19 @@
752
1296
  "stateMutability": "nonpayable",
753
1297
  "type": "function"
754
1298
  },
1299
+ {
1300
+ "inputs": [
1301
+ {
1302
+ "internalType": "uint256",
1303
+ "name": "maxCapitalAmount",
1304
+ "type": "uint256"
1305
+ }
1306
+ ],
1307
+ "name": "setMaxCapitalAmount",
1308
+ "outputs": [],
1309
+ "stateMutability": "nonpayable",
1310
+ "type": "function"
1311
+ },
755
1312
  {
756
1313
  "inputs": [
757
1314
  {
@@ -778,6 +1335,24 @@
778
1335
  "stateMutability": "nonpayable",
779
1336
  "type": "function"
780
1337
  },
1338
+ {
1339
+ "inputs": [
1340
+ {
1341
+ "internalType": "NftId",
1342
+ "name": "bundleNftId",
1343
+ "type": "uint96"
1344
+ },
1345
+ {
1346
+ "internalType": "uint256",
1347
+ "name": "amount",
1348
+ "type": "uint256"
1349
+ }
1350
+ ],
1351
+ "name": "stake",
1352
+ "outputs": [],
1353
+ "stateMutability": "nonpayable",
1354
+ "type": "function"
1355
+ },
781
1356
  {
782
1357
  "inputs": [
783
1358
  {
@@ -797,50 +1372,73 @@
797
1372
  "stateMutability": "view",
798
1373
  "type": "function"
799
1374
  },
1375
+ {
1376
+ "inputs": [],
1377
+ "name": "unlock",
1378
+ "outputs": [],
1379
+ "stateMutability": "nonpayable",
1380
+ "type": "function"
1381
+ },
800
1382
  {
801
1383
  "inputs": [
802
1384
  {
803
1385
  "internalType": "NftId",
804
- "name": "policyNftId",
1386
+ "name": "bundleNftId",
805
1387
  "type": "uint96"
806
- },
807
- {
808
- "internalType": "bytes",
809
- "name": "policyData",
810
- "type": "bytes"
811
- },
812
- {
813
- "internalType": "bytes",
814
- "name": "bundleFilter",
815
- "type": "bytes"
816
- },
817
- {
818
- "internalType": "uint256",
819
- "name": "collateralizationAmount",
820
- "type": "uint256"
821
1388
  }
822
1389
  ],
823
- "name": "underwrite",
1390
+ "name": "unlockBundle",
824
1391
  "outputs": [],
825
1392
  "stateMutability": "nonpayable",
826
1393
  "type": "function"
827
1394
  },
828
1395
  {
829
- "inputs": [],
830
- "name": "unlock",
1396
+ "inputs": [
1397
+ {
1398
+ "internalType": "NftId",
1399
+ "name": "bundleNftId",
1400
+ "type": "uint96"
1401
+ },
1402
+ {
1403
+ "internalType": "uint256",
1404
+ "name": "amount",
1405
+ "type": "uint256"
1406
+ }
1407
+ ],
1408
+ "name": "unstake",
831
1409
  "outputs": [],
832
1410
  "stateMutability": "nonpayable",
833
1411
  "type": "function"
834
1412
  },
835
1413
  {
836
1414
  "inputs": [
1415
+ {
1416
+ "internalType": "NftId",
1417
+ "name": "applicationNftId",
1418
+ "type": "uint96"
1419
+ },
1420
+ {
1421
+ "internalType": "bytes",
1422
+ "name": "applicationData",
1423
+ "type": "bytes"
1424
+ },
837
1425
  {
838
1426
  "internalType": "NftId",
839
1427
  "name": "bundleNftId",
840
1428
  "type": "uint96"
1429
+ },
1430
+ {
1431
+ "internalType": "bytes",
1432
+ "name": "bundleFilter",
1433
+ "type": "bytes"
1434
+ },
1435
+ {
1436
+ "internalType": "uint256",
1437
+ "name": "collateralizationAmount",
1438
+ "type": "uint256"
841
1439
  }
842
1440
  ],
843
- "name": "unlockBundle",
1441
+ "name": "verifyApplication",
844
1442
  "outputs": [],
845
1443
  "stateMutability": "nonpayable",
846
1444
  "type": "function"