@etherisc/gif-next 0.0.2-e37834a-021 → 0.0.2-e43a6c3-340

Sign up to get free protection for your applications and to get access to all the features.
Files changed (363) hide show
  1. package/README.md +108 -1
  2. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +1 -1
  3. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +116 -2
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +204 -31
  6. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +1 -1
  7. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +106 -3
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +0 -25
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +0 -59
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +0 -50
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +245 -65
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +314 -41
  18. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +4 -0
  19. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.json +66 -0
  20. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +4 -0
  21. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.json +24 -0
  22. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +4 -0
  23. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.json +42 -0
  24. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
  25. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
  26. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
  27. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
  28. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
  29. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
  30. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
  31. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
  32. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
  33. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
  34. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
  35. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +2 -2
  36. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
  37. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
  38. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
  39. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +2 -2
  40. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
  41. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +2 -2
  42. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
  43. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
  44. package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.dbg.json +4 -0
  45. package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.json +101 -0
  46. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.dbg.json +4 -0
  47. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.json +1132 -0
  48. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +4 -0
  49. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +1082 -0
  50. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  51. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +325 -1744
  52. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
  53. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +480 -0
  54. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  55. package/artifacts/contracts/instance/Instance.sol/Instance.json +2300 -1340
  56. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
  57. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +917 -0
  58. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +4 -0
  59. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1388 -0
  60. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
  61. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +891 -0
  62. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
  63. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +488 -0
  64. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +1 -1
  65. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +149 -2
  66. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +1 -1
  67. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  68. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +27 -158
  69. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  70. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  71. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +37 -245
  72. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  73. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +2 -2
  74. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +4 -0
  75. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +211 -0
  76. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +4 -0
  77. package/artifacts/contracts/instance/module/{bundle/IBundle.sol → IBundle.sol}/IBundle.json +1 -1
  78. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +4 -0
  79. package/artifacts/contracts/instance/module/{distribution/IDistribution.sol → IDistribution.sol}/IDistribution.json +1 -1
  80. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
  81. package/artifacts/contracts/instance/module/{policy/IPolicy.sol → IPolicy.sol}/IPolicy.json +1 -1
  82. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
  83. package/artifacts/contracts/instance/module/{risk/IRisk.sol → IRisk.sol}/IRisk.json +1 -1
  84. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +4 -0
  85. package/artifacts/contracts/instance/{base/ModuleBase.sol/ModuleBase.json → module/ISetup.sol/ISetup.json} +2 -2
  86. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +4 -0
  87. package/artifacts/contracts/instance/module/{treasury/ITreasury.sol → ITreasury.sol}/ITreasury.json +1 -1
  88. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +1 -1
  89. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +178 -41
  90. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
  91. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +212 -22
  92. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  93. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +444 -0
  94. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +1 -1
  95. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +81 -4
  96. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  97. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +80 -3
  98. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  99. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +80 -3
  100. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  101. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +80 -3
  102. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
  103. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +230 -24
  104. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  105. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +456 -0
  106. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  107. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +47 -2
  108. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  109. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +294 -99
  110. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  111. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +297 -18
  112. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  113. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  114. package/artifacts/contracts/registry/Registry.sol/Registry.json +249 -137
  115. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  116. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +447 -39
  117. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  118. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +107 -42
  119. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
  120. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +410 -0
  121. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +1 -1
  122. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  123. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +2 -2
  124. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
  125. package/artifacts/contracts/{instance/module/component/ComponentModule.sol/ComponentModule.json → shared/INftOwnable.sol/INftOwnable.json} +67 -57
  126. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  127. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +80 -3
  128. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
  129. package/artifacts/contracts/{instance/base/ServiceBase.sol/ServiceBase.json → shared/IService.sol/IService.json} +76 -35
  130. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  131. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  132. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +32 -6
  133. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  134. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +21 -16
  135. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  136. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +120 -6
  137. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +4 -0
  138. package/artifacts/contracts/{instance/base/IService.sol/IService.json → shared/RegisterableUpgradable.sol/RegisterableUpgradable.json} +137 -39
  139. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
  140. package/artifacts/contracts/{instance/base/InstanceBase.sol/InstanceBase.json → shared/Service.sol/Service.json} +106 -94
  141. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +4 -0
  142. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +96 -0
  143. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  144. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +2 -2
  145. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  146. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  147. package/artifacts/contracts/test/TestFee.sol/TestFee.json +4 -4
  148. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  149. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +120 -6
  150. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  151. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +14 -14
  152. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  153. package/artifacts/contracts/test/TestService.sol/TestService.json +142 -14
  154. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  155. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +91 -53
  156. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  157. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
  158. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  159. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +18 -2
  160. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  161. package/artifacts/contracts/test/Usdc.sol/USDC.json +91 -53
  162. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  163. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  164. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  165. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
  166. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +104 -0
  167. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  168. package/artifacts/contracts/types/Fee.sol/FeeLib.json +4 -4
  169. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  170. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +31 -17
  171. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  172. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +2 -2
  173. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  174. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +2 -2
  175. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +4 -0
  176. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +100 -0
  177. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  178. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  179. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +4 -0
  180. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +123 -0
  181. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
  182. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +2 -2
  183. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  184. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +134 -8
  185. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  186. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  187. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  188. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +15 -2
  189. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +4 -0
  190. package/artifacts/contracts/types/UFixed.sol/MathLib.json +10 -0
  191. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +4 -0
  192. package/artifacts/contracts/types/UFixed.sol/{UFixedMathLib.json → UFixedLib.json} +3 -3
  193. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  194. package/artifacts/contracts/types/Version.sol/VersionLib.json +2 -2
  195. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  196. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +22 -3
  197. package/contracts/components/BaseComponent.sol +16 -4
  198. package/contracts/components/Distribution.sol +21 -16
  199. package/contracts/components/IBaseComponent.sol +9 -3
  200. package/contracts/components/IDistributionComponent.sol +2 -4
  201. package/contracts/components/IPoolComponent.sol +0 -2
  202. package/contracts/components/IProductComponent.sol +2 -4
  203. package/contracts/components/Pool.sol +24 -27
  204. package/contracts/components/Product.sol +41 -43
  205. package/contracts/experiment/cloning/Cloner.sol +47 -0
  206. package/contracts/instance/AccessManagedSimple.sol +115 -0
  207. package/contracts/instance/AccessManagerSimple.sol +692 -0
  208. package/contracts/instance/IAccessManagerSimple.sol +391 -0
  209. package/contracts/instance/IInstance.sol +32 -47
  210. package/contracts/instance/IInstanceService.sol +30 -0
  211. package/contracts/instance/Instance.sol +423 -65
  212. package/contracts/instance/InstanceAccessManager.sol +288 -0
  213. package/contracts/instance/InstanceReader.sol +306 -0
  214. package/contracts/instance/InstanceService.sol +183 -0
  215. package/contracts/instance/InstanceServiceManager.sol +57 -0
  216. package/contracts/instance/base/ComponentServiceBase.sol +83 -8
  217. package/contracts/instance/base/IKeyValueStore.sol +13 -14
  218. package/contracts/instance/base/ILifecycle.sol +3 -3
  219. package/contracts/instance/base/KeyValueStore.sol +49 -38
  220. package/contracts/instance/base/Lifecycle.sol +1 -1
  221. package/contracts/instance/module/IAccess.sol +38 -0
  222. package/contracts/instance/module/IBundle.sol +20 -0
  223. package/contracts/instance/module/IDistribution.sol +39 -0
  224. package/contracts/instance/module/IPolicy.sol +45 -0
  225. package/contracts/instance/module/IRisk.sol +11 -0
  226. package/contracts/instance/module/ISetup.sol +44 -0
  227. package/contracts/instance/module/ITreasury.sol +23 -0
  228. package/contracts/instance/service/ComponentOwnerService.sol +145 -100
  229. package/contracts/instance/service/DistributionService.sol +49 -15
  230. package/contracts/instance/service/DistributionServiceManager.sol +54 -0
  231. package/contracts/instance/service/IComponentOwnerService.sol +1 -1
  232. package/contracts/instance/service/IDistributionService.sol +1 -1
  233. package/contracts/instance/service/IPoolService.sol +1 -1
  234. package/contracts/instance/service/IProductService.sol +3 -3
  235. package/contracts/instance/service/PoolService.sol +97 -52
  236. package/contracts/instance/service/PoolServiceManager.sol +54 -0
  237. package/contracts/registry/ChainNft.sol +40 -25
  238. package/contracts/registry/IRegistry.sol +48 -27
  239. package/contracts/registry/IRegistryService.sol +36 -15
  240. package/contracts/registry/Registry.sol +167 -168
  241. package/contracts/registry/RegistryService.sol +149 -166
  242. package/contracts/registry/RegistryServiceManager.sol +38 -10
  243. package/contracts/registry/TokenRegistry.sol +111 -0
  244. package/contracts/shared/ERC165.sol +7 -3
  245. package/contracts/shared/INftOwnable.sol +22 -0
  246. package/contracts/shared/IRegisterable.sol +3 -8
  247. package/contracts/{instance/base → shared}/IService.sol +3 -3
  248. package/contracts/shared/NftOwnable.sol +83 -34
  249. package/contracts/shared/ProxyManager.sol +3 -12
  250. package/contracts/shared/Registerable.sol +15 -42
  251. package/contracts/shared/RegisterableUpgradable.sol +16 -0
  252. package/contracts/shared/Service.sol +55 -0
  253. package/contracts/shared/TokenHandler.sol +27 -0
  254. package/contracts/shared/UpgradableProxyWithAdmin.sol +2 -2
  255. package/contracts/shared/Versionable.sol +3 -3
  256. package/contracts/test/TestFee.sol +2 -2
  257. package/contracts/test/TestRoleId.sol +1 -1
  258. package/contracts/test/TestService.sol +3 -5
  259. package/contracts/types/DistributorType.sol +55 -0
  260. package/contracts/types/Fee.sol +3 -3
  261. package/contracts/types/Key32.sol +8 -3
  262. package/contracts/types/NumberId.sol +52 -0
  263. package/contracts/types/ObjectType.sol +35 -14
  264. package/contracts/types/Referral.sol +85 -0
  265. package/contracts/types/RoleId.sol +60 -9
  266. package/contracts/types/StateId.sol +5 -1
  267. package/contracts/types/Timestamp.sol +7 -3
  268. package/contracts/types/UFixed.sol +128 -12
  269. package/contracts/types/Version.sol +4 -1
  270. package/package.json +4 -3
  271. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +0 -4
  272. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.json +0 -24
  273. package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +0 -4
  274. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +0 -4
  275. package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +0 -4
  276. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +0 -4
  277. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +0 -4
  278. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.json +0 -333
  279. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +0 -4
  280. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.json +0 -10
  281. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +0 -4
  282. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.json +0 -333
  283. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +0 -4
  284. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +0 -297
  285. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +0 -4
  286. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +0 -4
  287. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +0 -297
  288. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
  289. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +0 -4
  290. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.json +0 -10
  291. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +0 -4
  292. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.json +0 -117
  293. package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.dbg.json +0 -4
  294. package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.json +0 -10
  295. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistribution.dbg.json +0 -4
  296. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.dbg.json +0 -4
  297. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.json +0 -10
  298. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
  299. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
  300. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.json +0 -284
  301. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
  302. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +0 -284
  303. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +0 -4
  304. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.json +0 -10
  305. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
  306. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.json +0 -164
  307. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
  308. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +0 -164
  309. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +0 -4
  310. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +0 -4
  311. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +0 -113
  312. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +0 -4
  313. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +0 -131
  314. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +0 -4
  315. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +0 -4
  316. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +0 -638
  317. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +0 -4
  318. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +0 -76
  319. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +0 -4
  320. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +0 -638
  321. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +0 -4
  322. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +0 -964
  323. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
  324. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.json +0 -457
  325. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +0 -4
  326. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.json +0 -24
  327. package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.dbg.json +0 -4
  328. package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.json +0 -445
  329. package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +0 -4
  330. package/artifacts/contracts/test/TestPool.sol/TestPool.json +0 -602
  331. package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +0 -4
  332. package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +0 -632
  333. package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.dbg.json +0 -4
  334. package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.json +0 -99
  335. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
  336. package/contracts/instance/IInstanceLinked.sol +0 -8
  337. package/contracts/instance/base/InstanceBase.sol +0 -89
  338. package/contracts/instance/base/ModuleBase.sol +0 -57
  339. package/contracts/instance/base/ServiceBase.sol +0 -43
  340. package/contracts/instance/module/access/Access.sol +0 -149
  341. package/contracts/instance/module/access/IAccess.sol +0 -53
  342. package/contracts/instance/module/bundle/BundleModule.sol +0 -134
  343. package/contracts/instance/module/bundle/IBundle.sol +0 -53
  344. package/contracts/instance/module/component/ComponentModule.sol +0 -71
  345. package/contracts/instance/module/component/IComponent.sol +0 -28
  346. package/contracts/instance/module/distribution/DistributionModule.sol +0 -17
  347. package/contracts/instance/module/distribution/IDistribution.sol +0 -10
  348. package/contracts/instance/module/policy/IPolicy.sol +0 -63
  349. package/contracts/instance/module/policy/PolicyModule.sol +0 -91
  350. package/contracts/instance/module/pool/IPoolModule.sol +0 -41
  351. package/contracts/instance/module/pool/PoolModule.sol +0 -95
  352. package/contracts/instance/module/risk/IRisk.sol +0 -26
  353. package/contracts/instance/module/risk/RiskModule.sol +0 -62
  354. package/contracts/instance/module/treasury/ITreasury.sol +0 -84
  355. package/contracts/instance/module/treasury/TokenHandler.sol +0 -48
  356. package/contracts/instance/module/treasury/TreasuryModule.sol +0 -131
  357. package/contracts/instance/service/ProductService.sol +0 -510
  358. package/contracts/registry/IChainNft.sol +0 -22
  359. package/contracts/shared/IOwnable.sol +0 -6
  360. package/contracts/test/TestDistribution.sol +0 -22
  361. package/contracts/test/TestPool.sol +0 -27
  362. package/contracts/test/TestProduct.sol +0 -74
  363. package/contracts/types/ReferralId.sol +0 -48
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../build-info/d94c4e7447a44611140b51c5d1894429.json"
4
+ }
@@ -0,0 +1,410 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "TokenRegistry",
4
+ "sourceName": "contracts/registry/TokenRegistry.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [],
8
+ "stateMutability": "nonpayable",
9
+ "type": "constructor"
10
+ },
11
+ {
12
+ "inputs": [
13
+ {
14
+ "internalType": "address",
15
+ "name": "registry",
16
+ "type": "address"
17
+ },
18
+ {
19
+ "internalType": "NftId",
20
+ "name": "nftId",
21
+ "type": "uint96"
22
+ }
23
+ ],
24
+ "name": "ErrorAlreadyLinked",
25
+ "type": "error"
26
+ },
27
+ {
28
+ "inputs": [
29
+ {
30
+ "internalType": "address",
31
+ "name": "contractAddress",
32
+ "type": "address"
33
+ }
34
+ ],
35
+ "name": "ErrorContractNotRegistered",
36
+ "type": "error"
37
+ },
38
+ {
39
+ "inputs": [
40
+ {
41
+ "internalType": "address",
42
+ "name": "account",
43
+ "type": "address"
44
+ }
45
+ ],
46
+ "name": "ErrorNotOwner",
47
+ "type": "error"
48
+ },
49
+ {
50
+ "inputs": [
51
+ {
52
+ "internalType": "address",
53
+ "name": "registryAddress",
54
+ "type": "address"
55
+ }
56
+ ],
57
+ "name": "ErrorNotRegistry",
58
+ "type": "error"
59
+ },
60
+ {
61
+ "inputs": [],
62
+ "name": "ErrorRegistryAddressZero",
63
+ "type": "error"
64
+ },
65
+ {
66
+ "inputs": [
67
+ {
68
+ "internalType": "address",
69
+ "name": "registry",
70
+ "type": "address"
71
+ }
72
+ ],
73
+ "name": "ErrorRegistryAlreadyInitialized",
74
+ "type": "error"
75
+ },
76
+ {
77
+ "inputs": [],
78
+ "name": "ErrorRegistryNotInitialized",
79
+ "type": "error"
80
+ },
81
+ {
82
+ "inputs": [
83
+ {
84
+ "internalType": "address",
85
+ "name": "account",
86
+ "type": "address"
87
+ }
88
+ ],
89
+ "name": "NotContract",
90
+ "type": "error"
91
+ },
92
+ {
93
+ "inputs": [
94
+ {
95
+ "internalType": "address",
96
+ "name": "account",
97
+ "type": "address"
98
+ }
99
+ ],
100
+ "name": "NotToken",
101
+ "type": "error"
102
+ },
103
+ {
104
+ "inputs": [],
105
+ "name": "TokenDecimalsZero",
106
+ "type": "error"
107
+ },
108
+ {
109
+ "inputs": [
110
+ {
111
+ "internalType": "VersionPart",
112
+ "name": "majorVersion",
113
+ "type": "uint8"
114
+ }
115
+ ],
116
+ "name": "TokenMajorVersionInvalid",
117
+ "type": "error"
118
+ },
119
+ {
120
+ "anonymous": false,
121
+ "inputs": [
122
+ {
123
+ "indexed": false,
124
+ "internalType": "address",
125
+ "name": "token",
126
+ "type": "address"
127
+ },
128
+ {
129
+ "indexed": false,
130
+ "internalType": "string",
131
+ "name": "symbol",
132
+ "type": "string"
133
+ },
134
+ {
135
+ "indexed": false,
136
+ "internalType": "uint256",
137
+ "name": "decimals",
138
+ "type": "uint256"
139
+ }
140
+ ],
141
+ "name": "LogRegistered",
142
+ "type": "event"
143
+ },
144
+ {
145
+ "anonymous": false,
146
+ "inputs": [
147
+ {
148
+ "indexed": false,
149
+ "internalType": "address",
150
+ "name": "token",
151
+ "type": "address"
152
+ },
153
+ {
154
+ "indexed": false,
155
+ "internalType": "VersionPart",
156
+ "name": "majorVersion",
157
+ "type": "uint8"
158
+ },
159
+ {
160
+ "indexed": false,
161
+ "internalType": "bool",
162
+ "name": "active",
163
+ "type": "bool"
164
+ }
165
+ ],
166
+ "name": "LogTokenStateSet",
167
+ "type": "event"
168
+ },
169
+ {
170
+ "inputs": [],
171
+ "name": "REGISTRY_SERVICE_NAME",
172
+ "outputs": [
173
+ {
174
+ "internalType": "string",
175
+ "name": "",
176
+ "type": "string"
177
+ }
178
+ ],
179
+ "stateMutability": "view",
180
+ "type": "function"
181
+ },
182
+ {
183
+ "inputs": [],
184
+ "name": "getNftId",
185
+ "outputs": [
186
+ {
187
+ "internalType": "NftId",
188
+ "name": "",
189
+ "type": "uint96"
190
+ }
191
+ ],
192
+ "stateMutability": "view",
193
+ "type": "function"
194
+ },
195
+ {
196
+ "inputs": [],
197
+ "name": "getOwner",
198
+ "outputs": [
199
+ {
200
+ "internalType": "address",
201
+ "name": "",
202
+ "type": "address"
203
+ }
204
+ ],
205
+ "stateMutability": "view",
206
+ "type": "function"
207
+ },
208
+ {
209
+ "inputs": [],
210
+ "name": "getRegistry",
211
+ "outputs": [
212
+ {
213
+ "internalType": "contract IRegistry",
214
+ "name": "",
215
+ "type": "address"
216
+ }
217
+ ],
218
+ "stateMutability": "view",
219
+ "type": "function"
220
+ },
221
+ {
222
+ "inputs": [
223
+ {
224
+ "internalType": "uint256",
225
+ "name": "idx",
226
+ "type": "uint256"
227
+ }
228
+ ],
229
+ "name": "getToken",
230
+ "outputs": [
231
+ {
232
+ "internalType": "contract IERC20Metadata",
233
+ "name": "token",
234
+ "type": "address"
235
+ }
236
+ ],
237
+ "stateMutability": "view",
238
+ "type": "function"
239
+ },
240
+ {
241
+ "inputs": [
242
+ {
243
+ "internalType": "address",
244
+ "name": "token",
245
+ "type": "address"
246
+ },
247
+ {
248
+ "internalType": "VersionPart",
249
+ "name": "majorVersion",
250
+ "type": "uint8"
251
+ }
252
+ ],
253
+ "name": "isActive",
254
+ "outputs": [
255
+ {
256
+ "internalType": "bool",
257
+ "name": "",
258
+ "type": "bool"
259
+ }
260
+ ],
261
+ "stateMutability": "view",
262
+ "type": "function"
263
+ },
264
+ {
265
+ "inputs": [
266
+ {
267
+ "internalType": "address",
268
+ "name": "token",
269
+ "type": "address"
270
+ }
271
+ ],
272
+ "name": "isRegistered",
273
+ "outputs": [
274
+ {
275
+ "internalType": "bool",
276
+ "name": "",
277
+ "type": "bool"
278
+ }
279
+ ],
280
+ "stateMutability": "view",
281
+ "type": "function"
282
+ },
283
+ {
284
+ "inputs": [
285
+ {
286
+ "internalType": "address",
287
+ "name": "registryAddress",
288
+ "type": "address"
289
+ }
290
+ ],
291
+ "name": "linkToNftOwnable",
292
+ "outputs": [],
293
+ "stateMutability": "nonpayable",
294
+ "type": "function"
295
+ },
296
+ {
297
+ "inputs": [],
298
+ "name": "linkToRegisteredNftId",
299
+ "outputs": [],
300
+ "stateMutability": "nonpayable",
301
+ "type": "function"
302
+ },
303
+ {
304
+ "inputs": [
305
+ {
306
+ "internalType": "address",
307
+ "name": "token",
308
+ "type": "address"
309
+ },
310
+ {
311
+ "internalType": "VersionPart",
312
+ "name": "majorVersion",
313
+ "type": "uint8"
314
+ },
315
+ {
316
+ "internalType": "bool",
317
+ "name": "active",
318
+ "type": "bool"
319
+ }
320
+ ],
321
+ "name": "setActive",
322
+ "outputs": [],
323
+ "stateMutability": "nonpayable",
324
+ "type": "function"
325
+ },
326
+ {
327
+ "inputs": [],
328
+ "name": "tokens",
329
+ "outputs": [
330
+ {
331
+ "internalType": "uint256",
332
+ "name": "",
333
+ "type": "uint256"
334
+ }
335
+ ],
336
+ "stateMutability": "view",
337
+ "type": "function"
338
+ }
339
+ ],
340
+ "bytecode": "0x608060405234801561001057600080fd5b50600180546001600160a01b03191633179055611495806100326000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c8063644c45e011610071578063644c45e014610154578063893d20e81461017f5780639d63848a14610187578063c3c5a54714610198578063cf3ecc1b146101c4578063e4b50cb8146101ff57600080fd5b8063138461e0146100ae57806340be2376146100b85780634390ea70146100cb5780635ab1bd531461011c5780636141740f14610141575b600080fd5b6100b6610212565b005b6100b66100c6366004611162565b610434565b6101076100d936600461118e565b6001600160a01b0391909116600090815260046020908152604080832060ff94851684529091529020541690565b60405190151581526020015b60405180910390f35b6000546001600160a01b03165b6040516001600160a01b039091168152602001610113565b6100b661014f3660046111d5565b610592565b600054600160a01b90046001600160601b03166040516001600160601b039091168152602001610113565b610129610905565b600254604051908152602001610113565b6101076101a6366004611162565b6001600160a01b031660009081526003602052604090205460ff1690565b6101f26040518060400160405280600f81526020016e52656769737472795365727669636560881b81525081565b6040516101139190611270565b61012961020d366004611283565b610a21565b6000546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610274573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610298919061129c565b156102df576000546040516316322c0f60e31b81526001600160a01b0382166004820152600160a01b9091046001600160601b031660248201526044015b60405180910390fd5b6000546001600160a01b03166103085760405163cf29926160e01b815260040160405180910390fd5b60005460405163c3c5a54760e01b81523060048201819052916001600160a01b03169063c3c5a54790602401602060405180830381865afa158015610351573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610375919061129c565b61039d576040516372657a5160e01b81526001600160a01b03821660048201526024016102d6565b600054604051636939560f60e11b81526001600160a01b0383811660048301529091169063d272ac1e90602401602060405180830381865afa1580156103e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061040b91906112b9565b600060146101000a8154816001600160601b0302191690836001600160601b0316021790555050565b600061043e610905565b90506001600160a01b038116158015906104615750336001600160a01b03821614155b156104815760405163700dd81160e01b81523360048201526024016102d6565b60008290506000816001600160a01b031663a3bcd81d6040518060400160405280600f81526020016e52656769737472795365727669636560881b815250846001600160a01b031663cde749f46040518163ffffffff1660e01b8152600401602060405180830381865afa1580156104fd573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061052191906112e2565b6040518363ffffffff1660e01b815260040161053e9291906112ff565b602060405180830381865afa15801561055b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061057f9190611324565b905061058b8482610a51565b5050505050565b600061059c610905565b90506001600160a01b038116158015906105bf5750336001600160a01b03821614155b156105df5760405163700dd81160e01b81523360048201526024016102d6565b6001600160a01b03841660009081526003602052604090205460ff166106085761060884610ca6565b604051632b10f60d60e21b815260ff8416600482015260009073__$9dab98ad7ae1a426029e5739f922230a41$__9063ac43d83490602401602060405180830381865af415801561065d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106819190611341565b905060008054906101000a90046001600160a01b03166001600160a01b03166338e19a756040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106f891906112e2565b604051632b10f60d60e21b815260ff909116600482015273__$9dab98ad7ae1a426029e5739f922230a41$__9063ac43d83490602401602060405180830381865af415801561074b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076f9190611341565b811080610866575060008054906101000a90046001600160a01b03166001600160a01b0316637374162b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156107c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ec91906112e2565b604051632b10f60d60e21b815260ff909116600482015273__$9dab98ad7ae1a426029e5739f922230a41$__9063ac43d83490602401602060405180830381865af415801561083f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108639190611341565b81115b156108895760405163374a659160e21b815260ff851660048201526024016102d6565b6001600160a01b038516600081815260046020908152604080832060ff891680855290835292819020805460ff1916881515908117909155815194855291840192909252908201527f330dde7b71e0842a092329aeedc8f261bfaa3210e3743b743d0a147ab085e87f9060600160405180910390a15050505050565b600080546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610968573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061098c919061129c565b15610a1157600054604051631c5da14d60e11b8152600160a01b82046001600160601b031660048201526001600160a01b03909116906338bb429a90602401602060405180830381865afa1580156109e8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a0c9190611324565b905090565b506001546001600160a01b031690565b600060028281548110610a3657610a3661135a565b6000918252602090912001546001600160a01b031692915050565b600080610a5c610905565b90506001600160a01b03811615801590610a7f5750336001600160a01b03821614155b15610a9f5760405163700dd81160e01b81523360048201526024016102d6565b6000546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610b01573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b25919061129c565b15610b67576000546040516316322c0f60e31b81526001600160a01b0382166004820152600160a01b9091046001600160601b031660248201526044016102d6565b610b7084610f06565b60005460405163c3c5a54760e01b81526001600160a01b0385811660048301529091169063c3c5a54790602401602060405180830381865afa158015610bba573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bde919061129c565b610c06576040516372657a5160e01b81526001600160a01b03841660048201526024016102d6565b600054604051636939560f60e11b81526001600160a01b0385811660048301529091169063d272ac1e90602401602060405180830381865afa158015610c50573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c7491906112b9565b600080546001600160a01b0316600160a01b6001600160601b0393841681029190911791829055900416949350505050565b806001600160a01b03163b600003610cdc5760405163b5cf5b8f60e01b81526001600160a01b03821660048201526024016102d6565b610ced816303fb044760e21b61106c565b15610d1557604051629fd8a560e11b81526001600160a01b03821660048201526024016102d6565b6000819050806001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d7c91906112e2565b60ff16600003610d9f5760405163925af66160e01b815260040160405180910390fd5b6001600160a01b03808316600081815260036020526040808220805460ff1916600190811790915560028054918201815583527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b03191690931790925581516395d89b4160e01b815291517f651192eeb68d28f238bbf7aa9dfa996bf9159fd79ca109531d6b72d909b1bbff938693908616926395d89b41926004808401938290030181865afa158015610e61573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610e899190810190611386565b836001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ec7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eeb91906112e2565b604051610efa93929190611428565b60405180910390a15050565b6000546001600160a01b031615610f3f5760005460405163fcdbf2d960e01b81526001600160a01b0390911660048201526024016102d6565b6001600160a01b038116610f665760405163f5c4d07d60e01b815260040160405180910390fd5b806001600160a01b03163b600003610f9c5760405163fdeac91f60e01b81526001600160a01b03821660048201526024016102d6565b600080546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b815263e14a543960e01b60048201526301ffc9a790602401602060405180830381865afa925050508015611016575060408051601f3d908101601f191682019092526110139181019061129c565b60015b61103e5760405163fdeac91f60e01b81526001600160a01b03821660048201526024016102d6565b806110675760405163fdeac91f60e01b81526001600160a01b03831660048201526024016102d6565b505b50565b60006110778361108f565b8015611088575061108883836110c3565b9392505050565b60006110a2826301ffc9a760e01b6110c3565b80156110bd57506110bb826001600160e01b03196110c3565b155b92915050565b6040516001600160e01b031982166024820152600090819060440160408051601f19818403018152919052602080820180516001600160e01b03166301ffc9a760e01b178152825192935060009283928392909183918a617530fa92503d91506000519050828015611136575060208210155b80156111425750600081115b979650505050505050565b6001600160a01b038116811461106957600080fd5b60006020828403121561117457600080fd5b81356110888161114d565b60ff8116811461106957600080fd5b600080604083850312156111a157600080fd5b82356111ac8161114d565b915060208301356111bc8161117f565b809150509250929050565b801515811461106957600080fd5b6000806000606084860312156111ea57600080fd5b83356111f58161114d565b925060208401356112058161117f565b91506040840135611215816111c7565b809150509250925092565b60005b8381101561123b578181015183820152602001611223565b50506000910152565b6000815180845261125c816020860160208601611220565b601f01601f19169290920160200192915050565b6020815260006110886020830184611244565b60006020828403121561129557600080fd5b5035919050565b6000602082840312156112ae57600080fd5b8151611088816111c7565b6000602082840312156112cb57600080fd5b81516001600160601b038116811461108857600080fd5b6000602082840312156112f457600080fd5b81516110888161117f565b6040815260006113126040830185611244565b905060ff831660208301529392505050565b60006020828403121561133657600080fd5b81516110888161114d565b60006020828403121561135357600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b60006020828403121561139857600080fd5b815167ffffffffffffffff808211156113b057600080fd5b818401915084601f8301126113c457600080fd5b8151818111156113d6576113d6611370565b604051601f8201601f19908116603f011681019083821181831017156113fe576113fe611370565b8160405282815287602084870101111561141757600080fd5b611142836020830160208801611220565b6001600160a01b038416815260606020820181905260009061144c90830185611244565b905060ff8316604083015294935050505056fea26469706673582212205ec6dcbe3beac2494c8077cd3e562891e89871ea5ca5c76e2b499e410b7cf23164736f6c63430008140033",
341
+ "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100a95760003560e01c8063644c45e011610071578063644c45e014610154578063893d20e81461017f5780639d63848a14610187578063c3c5a54714610198578063cf3ecc1b146101c4578063e4b50cb8146101ff57600080fd5b8063138461e0146100ae57806340be2376146100b85780634390ea70146100cb5780635ab1bd531461011c5780636141740f14610141575b600080fd5b6100b6610212565b005b6100b66100c6366004611162565b610434565b6101076100d936600461118e565b6001600160a01b0391909116600090815260046020908152604080832060ff94851684529091529020541690565b60405190151581526020015b60405180910390f35b6000546001600160a01b03165b6040516001600160a01b039091168152602001610113565b6100b661014f3660046111d5565b610592565b600054600160a01b90046001600160601b03166040516001600160601b039091168152602001610113565b610129610905565b600254604051908152602001610113565b6101076101a6366004611162565b6001600160a01b031660009081526003602052604090205460ff1690565b6101f26040518060400160405280600f81526020016e52656769737472795365727669636560881b81525081565b6040516101139190611270565b61012961020d366004611283565b610a21565b6000546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610274573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610298919061129c565b156102df576000546040516316322c0f60e31b81526001600160a01b0382166004820152600160a01b9091046001600160601b031660248201526044015b60405180910390fd5b6000546001600160a01b03166103085760405163cf29926160e01b815260040160405180910390fd5b60005460405163c3c5a54760e01b81523060048201819052916001600160a01b03169063c3c5a54790602401602060405180830381865afa158015610351573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610375919061129c565b61039d576040516372657a5160e01b81526001600160a01b03821660048201526024016102d6565b600054604051636939560f60e11b81526001600160a01b0383811660048301529091169063d272ac1e90602401602060405180830381865afa1580156103e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061040b91906112b9565b600060146101000a8154816001600160601b0302191690836001600160601b0316021790555050565b600061043e610905565b90506001600160a01b038116158015906104615750336001600160a01b03821614155b156104815760405163700dd81160e01b81523360048201526024016102d6565b60008290506000816001600160a01b031663a3bcd81d6040518060400160405280600f81526020016e52656769737472795365727669636560881b815250846001600160a01b031663cde749f46040518163ffffffff1660e01b8152600401602060405180830381865afa1580156104fd573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061052191906112e2565b6040518363ffffffff1660e01b815260040161053e9291906112ff565b602060405180830381865afa15801561055b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061057f9190611324565b905061058b8482610a51565b5050505050565b600061059c610905565b90506001600160a01b038116158015906105bf5750336001600160a01b03821614155b156105df5760405163700dd81160e01b81523360048201526024016102d6565b6001600160a01b03841660009081526003602052604090205460ff166106085761060884610ca6565b604051632b10f60d60e21b815260ff8416600482015260009073__$9dab98ad7ae1a426029e5739f922230a41$__9063ac43d83490602401602060405180830381865af415801561065d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106819190611341565b905060008054906101000a90046001600160a01b03166001600160a01b03166338e19a756040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106f891906112e2565b604051632b10f60d60e21b815260ff909116600482015273__$9dab98ad7ae1a426029e5739f922230a41$__9063ac43d83490602401602060405180830381865af415801561074b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076f9190611341565b811080610866575060008054906101000a90046001600160a01b03166001600160a01b0316637374162b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156107c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ec91906112e2565b604051632b10f60d60e21b815260ff909116600482015273__$9dab98ad7ae1a426029e5739f922230a41$__9063ac43d83490602401602060405180830381865af415801561083f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108639190611341565b81115b156108895760405163374a659160e21b815260ff851660048201526024016102d6565b6001600160a01b038516600081815260046020908152604080832060ff891680855290835292819020805460ff1916881515908117909155815194855291840192909252908201527f330dde7b71e0842a092329aeedc8f261bfaa3210e3743b743d0a147ab085e87f9060600160405180910390a15050505050565b600080546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610968573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061098c919061129c565b15610a1157600054604051631c5da14d60e11b8152600160a01b82046001600160601b031660048201526001600160a01b03909116906338bb429a90602401602060405180830381865afa1580156109e8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a0c9190611324565b905090565b506001546001600160a01b031690565b600060028281548110610a3657610a3661135a565b6000918252602090912001546001600160a01b031692915050565b600080610a5c610905565b90506001600160a01b03811615801590610a7f5750336001600160a01b03821614155b15610a9f5760405163700dd81160e01b81523360048201526024016102d6565b6000546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610b01573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b25919061129c565b15610b67576000546040516316322c0f60e31b81526001600160a01b0382166004820152600160a01b9091046001600160601b031660248201526044016102d6565b610b7084610f06565b60005460405163c3c5a54760e01b81526001600160a01b0385811660048301529091169063c3c5a54790602401602060405180830381865afa158015610bba573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bde919061129c565b610c06576040516372657a5160e01b81526001600160a01b03841660048201526024016102d6565b600054604051636939560f60e11b81526001600160a01b0385811660048301529091169063d272ac1e90602401602060405180830381865afa158015610c50573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c7491906112b9565b600080546001600160a01b0316600160a01b6001600160601b0393841681029190911791829055900416949350505050565b806001600160a01b03163b600003610cdc5760405163b5cf5b8f60e01b81526001600160a01b03821660048201526024016102d6565b610ced816303fb044760e21b61106c565b15610d1557604051629fd8a560e11b81526001600160a01b03821660048201526024016102d6565b6000819050806001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d7c91906112e2565b60ff16600003610d9f5760405163925af66160e01b815260040160405180910390fd5b6001600160a01b03808316600081815260036020526040808220805460ff1916600190811790915560028054918201815583527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b03191690931790925581516395d89b4160e01b815291517f651192eeb68d28f238bbf7aa9dfa996bf9159fd79ca109531d6b72d909b1bbff938693908616926395d89b41926004808401938290030181865afa158015610e61573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610e899190810190611386565b836001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ec7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eeb91906112e2565b604051610efa93929190611428565b60405180910390a15050565b6000546001600160a01b031615610f3f5760005460405163fcdbf2d960e01b81526001600160a01b0390911660048201526024016102d6565b6001600160a01b038116610f665760405163f5c4d07d60e01b815260040160405180910390fd5b806001600160a01b03163b600003610f9c5760405163fdeac91f60e01b81526001600160a01b03821660048201526024016102d6565b600080546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b815263e14a543960e01b60048201526301ffc9a790602401602060405180830381865afa925050508015611016575060408051601f3d908101601f191682019092526110139181019061129c565b60015b61103e5760405163fdeac91f60e01b81526001600160a01b03821660048201526024016102d6565b806110675760405163fdeac91f60e01b81526001600160a01b03831660048201526024016102d6565b505b50565b60006110778361108f565b8015611088575061108883836110c3565b9392505050565b60006110a2826301ffc9a760e01b6110c3565b80156110bd57506110bb826001600160e01b03196110c3565b155b92915050565b6040516001600160e01b031982166024820152600090819060440160408051601f19818403018152919052602080820180516001600160e01b03166301ffc9a760e01b178152825192935060009283928392909183918a617530fa92503d91506000519050828015611136575060208210155b80156111425750600081115b979650505050505050565b6001600160a01b038116811461106957600080fd5b60006020828403121561117457600080fd5b81356110888161114d565b60ff8116811461106957600080fd5b600080604083850312156111a157600080fd5b82356111ac8161114d565b915060208301356111bc8161117f565b809150509250929050565b801515811461106957600080fd5b6000806000606084860312156111ea57600080fd5b83356111f58161114d565b925060208401356112058161117f565b91506040840135611215816111c7565b809150509250925092565b60005b8381101561123b578181015183820152602001611223565b50506000910152565b6000815180845261125c816020860160208601611220565b601f01601f19169290920160200192915050565b6020815260006110886020830184611244565b60006020828403121561129557600080fd5b5035919050565b6000602082840312156112ae57600080fd5b8151611088816111c7565b6000602082840312156112cb57600080fd5b81516001600160601b038116811461108857600080fd5b6000602082840312156112f457600080fd5b81516110888161117f565b6040815260006113126040830185611244565b905060ff831660208301529392505050565b60006020828403121561133657600080fd5b81516110888161114d565b60006020828403121561135357600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b60006020828403121561139857600080fd5b815167ffffffffffffffff808211156113b057600080fd5b818401915084601f8301126113c457600080fd5b8151818111156113d6576113d6611370565b604051601f8201601f19908116603f011681019083821181831017156113fe576113fe611370565b8160405282815287602084870101111561141757600080fd5b611142836020830160208801611220565b6001600160a01b038416815260606020820181905260009061144c90830185611244565b905060ff8316604083015294935050505056fea26469706673582212205ec6dcbe3beac2494c8077cd3e562891e89871ea5ca5c76e2b499e410b7cf23164736f6c63430008140033",
342
+ "linkReferences": {
343
+ "contracts/types/NftId.sol": {
344
+ "NftIdLib": [
345
+ {
346
+ "length": 20,
347
+ "start": 620
348
+ },
349
+ {
350
+ "length": 20,
351
+ "start": 2400
352
+ },
353
+ {
354
+ "length": 20,
355
+ "start": 2809
356
+ }
357
+ ]
358
+ },
359
+ "contracts/types/Version.sol": {
360
+ "VersionPartLib": [
361
+ {
362
+ "length": 20,
363
+ "start": 1621
364
+ },
365
+ {
366
+ "length": 20,
367
+ "start": 1859
368
+ },
369
+ {
370
+ "length": 20,
371
+ "start": 2103
372
+ }
373
+ ]
374
+ }
375
+ },
376
+ "deployedLinkReferences": {
377
+ "contracts/types/NftId.sol": {
378
+ "NftIdLib": [
379
+ {
380
+ "length": 20,
381
+ "start": 570
382
+ },
383
+ {
384
+ "length": 20,
385
+ "start": 2350
386
+ },
387
+ {
388
+ "length": 20,
389
+ "start": 2759
390
+ }
391
+ ]
392
+ },
393
+ "contracts/types/Version.sol": {
394
+ "VersionPartLib": [
395
+ {
396
+ "length": 20,
397
+ "start": 1571
398
+ },
399
+ {
400
+ "length": 20,
401
+ "start": 1809
402
+ },
403
+ {
404
+ "length": 20,
405
+ "start": 2053
406
+ }
407
+ ]
408
+ }
409
+ }
410
+ }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/23d9cb949ebaded2db536c461b622e36.json"
3
+ "buildInfo": "../../../build-info/d94c4e7447a44611140b51c5d1894429.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/23d9cb949ebaded2db536c461b622e36.json"
3
+ "buildInfo": "../../../build-info/d94c4e7447a44611140b51c5d1894429.json"
4
4
  }
@@ -28,8 +28,8 @@
28
28
  "type": "function"
29
29
  }
30
30
  ],
31
- "bytecode": "0x608060405234801561001057600080fd5b506301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff1916600117905560d08061005b6000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806301ffc9a714602d575b600080fd5b60576038366004606b565b6001600160e01b03191660009081526020819052604090205460ff1690565b604051901515815260200160405180910390f35b600060208284031215607c57600080fd5b81356001600160e01b031981168114609357600080fd5b939250505056fea264697066735822122023ee35f792ee28e415d8c266d3e7f6ccc67345523136556248043f055529386c64736f6c63430008140033",
32
- "deployedBytecode": "0x6080604052348015600f57600080fd5b506004361060285760003560e01c806301ffc9a714602d575b600080fd5b60576038366004606b565b6001600160e01b03191660009081526020819052604090205460ff1690565b604051901515815260200160405180910390f35b600060208284031215607c57600080fd5b81356001600160e01b031981168114609357600080fd5b939250505056fea264697066735822122023ee35f792ee28e415d8c266d3e7f6ccc67345523136556248043f055529386c64736f6c63430008140033",
31
+ "bytecode": "0x608060405234801561001057600080fd5b506100526301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b60d0806100606000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806301ffc9a714602d575b600080fd5b60576038366004606b565b6001600160e01b03191660009081526020819052604090205460ff1690565b604051901515815260200160405180910390f35b600060208284031215607c57600080fd5b81356001600160e01b031981168114609357600080fd5b939250505056fea2646970667358221220ddf10c535265fa0148782915dfe17f1cb24928ccbbf1f4209b9ad4198816a80f64736f6c63430008140033",
32
+ "deployedBytecode": "0x6080604052348015600f57600080fd5b506004361060285760003560e01c806301ffc9a714602d575b600080fd5b60576038366004606b565b6001600160e01b03191660009081526020819052604090205460ff1690565b604051901515815260200160405180910390f35b600060208284031215607c57600080fd5b81356001600160e01b031981168114609357600080fd5b939250505056fea2646970667358221220ddf10c535265fa0148782915dfe17f1cb24928ccbbf1f4209b9ad4198816a80f64736f6c63430008140033",
33
33
  "linkReferences": {},
34
34
  "deployedLinkReferences": {}
35
35
  }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../build-info/d94c4e7447a44611140b51c5d1894429.json"
4
+ }
@@ -1,85 +1,98 @@
1
1
  {
2
2
  "_format": "hh-sol-artifact-1",
3
- "contractName": "ComponentModule",
4
- "sourceName": "contracts/instance/module/component/ComponentModule.sol",
3
+ "contractName": "INftOwnable",
4
+ "sourceName": "contracts/shared/INftOwnable.sol",
5
5
  "abi": [
6
6
  {
7
- "inputs": [],
8
- "name": "getComponentCount",
9
- "outputs": [
7
+ "inputs": [
8
+ {
9
+ "internalType": "address",
10
+ "name": "registry",
11
+ "type": "address"
12
+ },
10
13
  {
11
- "internalType": "uint256",
12
- "name": "numberOfCompnents",
13
- "type": "uint256"
14
+ "internalType": "NftId",
15
+ "name": "nftId",
16
+ "type": "uint96"
14
17
  }
15
18
  ],
16
- "stateMutability": "view",
17
- "type": "function"
19
+ "name": "ErrorAlreadyLinked",
20
+ "type": "error"
18
21
  },
19
22
  {
20
23
  "inputs": [
21
24
  {
22
- "internalType": "uint256",
23
- "name": "idx",
24
- "type": "uint256"
25
- }
26
- ],
27
- "name": "getComponentId",
28
- "outputs": [
29
- {
30
- "internalType": "NftId",
31
- "name": "componentNftId",
32
- "type": "uint96"
25
+ "internalType": "address",
26
+ "name": "contractAddress",
27
+ "type": "address"
33
28
  }
34
29
  ],
35
- "stateMutability": "view",
36
- "type": "function"
30
+ "name": "ErrorContractNotRegistered",
31
+ "type": "error"
37
32
  },
38
33
  {
39
- "inputs": [],
40
- "name": "getComponentOwnerService",
41
- "outputs": [
34
+ "inputs": [
42
35
  {
43
- "internalType": "contract IComponentOwnerService",
44
- "name": "",
36
+ "internalType": "address",
37
+ "name": "account",
45
38
  "type": "address"
46
39
  }
47
40
  ],
48
- "stateMutability": "view",
49
- "type": "function"
41
+ "name": "ErrorNotOwner",
42
+ "type": "error"
50
43
  },
51
44
  {
52
45
  "inputs": [
53
46
  {
54
- "internalType": "NftId",
55
- "name": "nftId",
56
- "type": "uint96"
47
+ "internalType": "address",
48
+ "name": "registryAddress",
49
+ "type": "address"
57
50
  }
58
51
  ],
59
- "name": "getComponentToken",
60
- "outputs": [
52
+ "name": "ErrorNotRegistry",
53
+ "type": "error"
54
+ },
55
+ {
56
+ "inputs": [],
57
+ "name": "ErrorRegistryAddressZero",
58
+ "type": "error"
59
+ },
60
+ {
61
+ "inputs": [
61
62
  {
62
- "internalType": "contract IERC20Metadata",
63
- "name": "token",
63
+ "internalType": "address",
64
+ "name": "registry",
64
65
  "type": "address"
65
66
  }
66
67
  ],
67
- "stateMutability": "view",
68
- "type": "function"
68
+ "name": "ErrorRegistryAlreadyInitialized",
69
+ "type": "error"
69
70
  },
70
71
  {
71
- "inputs": [
72
+ "inputs": [],
73
+ "name": "ErrorRegistryNotInitialized",
74
+ "type": "error"
75
+ },
76
+ {
77
+ "inputs": [],
78
+ "name": "getNftId",
79
+ "outputs": [
72
80
  {
73
81
  "internalType": "NftId",
74
- "name": "nftId",
82
+ "name": "",
75
83
  "type": "uint96"
76
84
  }
77
85
  ],
78
- "name": "getComponentWallet",
86
+ "stateMutability": "view",
87
+ "type": "function"
88
+ },
89
+ {
90
+ "inputs": [],
91
+ "name": "getOwner",
79
92
  "outputs": [
80
93
  {
81
94
  "internalType": "address",
82
- "name": "wallet",
95
+ "name": "",
83
96
  "type": "address"
84
97
  }
85
98
  ],
@@ -87,24 +100,21 @@
87
100
  "type": "function"
88
101
  },
89
102
  {
90
- "inputs": [
91
- {
92
- "internalType": "NftId",
93
- "name": "nftId",
94
- "type": "uint96"
95
- },
96
- {
97
- "internalType": "contract IERC20Metadata",
98
- "name": "token",
99
- "type": "address"
100
- },
103
+ "inputs": [],
104
+ "name": "getRegistry",
105
+ "outputs": [
101
106
  {
102
- "internalType": "address",
103
- "name": "wallet",
107
+ "internalType": "contract IRegistry",
108
+ "name": "",
104
109
  "type": "address"
105
110
  }
106
111
  ],
107
- "name": "registerComponent",
112
+ "stateMutability": "view",
113
+ "type": "function"
114
+ },
115
+ {
116
+ "inputs": [],
117
+ "name": "linkToRegisteredNftId",
108
118
  "outputs": [],
109
119
  "stateMutability": "nonpayable",
110
120
  "type": "function"
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/23d9cb949ebaded2db536c461b622e36.json"
3
+ "buildInfo": "../../../build-info/d94c4e7447a44611140b51c5d1894429.json"
4
4
  }