@etherisc/gif-next 0.0.2-de0a1d3-009 → 0.0.2-def25d4-556

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (384) hide show
  1. package/README.md +148 -26
  2. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +1 -1
  3. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +176 -23
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +308 -43
  6. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +1 -1
  7. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +129 -23
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +36 -172
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +0 -238
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +0 -213
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +308 -96
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +409 -78
  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 +180 -1784
  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 +2243 -1199
  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 +1283 -0
  60. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
  61. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +851 -0
  62. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
  63. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +472 -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 -50
  66. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +1 -1
  67. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +1 -1
  68. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  69. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +27 -158
  70. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  71. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  72. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +37 -245
  73. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  74. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +2 -2
  75. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +4 -0
  76. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +211 -0
  77. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +4 -0
  78. package/artifacts/contracts/instance/module/{bundle/IBundle.sol → IBundle.sol}/IBundle.json +1 -1
  79. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +4 -0
  80. package/artifacts/contracts/instance/module/{distribution/IDistribution.sol → IDistribution.sol}/IDistribution.json +1 -1
  81. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
  82. package/artifacts/contracts/instance/module/{policy/IPolicy.sol → IPolicy.sol}/IPolicy.json +1 -1
  83. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
  84. package/artifacts/contracts/instance/module/{risk/IRisk.sol → IRisk.sol}/IRisk.json +1 -1
  85. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +4 -0
  86. package/artifacts/contracts/instance/{base/ModuleBase.sol/ModuleBase.json → module/ISetup.sol/ISetup.json} +2 -2
  87. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +4 -0
  88. package/artifacts/contracts/instance/module/{treasury/ITreasury.sol → ITreasury.sol}/ITreasury.json +1 -1
  89. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +1 -1
  90. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +295 -86
  91. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
  92. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +210 -60
  93. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  94. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +436 -0
  95. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +1 -1
  96. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +123 -62
  97. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  98. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +120 -40
  99. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  100. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +120 -40
  101. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  102. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +120 -40
  103. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  104. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +186 -12
  105. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  106. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +485 -37
  107. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
  108. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +853 -0
  109. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +4 -0
  110. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +34 -0
  111. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  112. package/artifacts/contracts/registry/Registry.sol/Registry.json +597 -122
  113. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +4 -0
  114. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +1237 -0
  115. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
  116. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +525 -0
  117. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
  118. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +410 -0
  119. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +4 -0
  120. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +107 -0
  121. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  122. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +2 -2
  123. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
  124. package/artifacts/contracts/{instance/module/component/ComponentModule.sol/ComponentModule.json → shared/INftOwnable.sol/INftOwnable.json} +67 -57
  125. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  126. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +117 -37
  127. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
  128. package/artifacts/contracts/{instance/base/ServiceBase.sol/ServiceBase.json → shared/IService.sol/IService.json} +116 -82
  129. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  130. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +2 -2
  131. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
  132. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +158 -0
  133. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +4 -0
  134. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +349 -0
  135. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  136. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +190 -37
  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} +174 -73
  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} +151 -146
  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 +4 -0
  144. package/artifacts/contracts/shared/{Proxy.sol/ProxyWithProxyAdminGetter.json → UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json} +4 -4
  145. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  146. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +4 -27
  147. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  148. package/artifacts/contracts/test/TestFee.sol/TestFee.json +4 -4
  149. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  150. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +204 -36
  151. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  152. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +14 -14
  153. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  154. package/artifacts/contracts/test/TestService.sol/TestService.json +203 -69
  155. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  156. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +91 -53
  157. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  158. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
  159. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  160. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +29 -36
  161. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  162. package/artifacts/contracts/test/Usdc.sol/USDC.json +91 -53
  163. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  164. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  165. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  166. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
  167. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +104 -0
  168. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  169. package/artifacts/contracts/types/Fee.sol/FeeLib.json +4 -4
  170. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  171. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +31 -17
  172. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  173. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +2 -2
  174. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  175. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +2 -2
  176. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +4 -0
  177. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +100 -0
  178. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  179. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  180. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +4 -0
  181. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +123 -0
  182. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
  183. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +2 -2
  184. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  185. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +134 -8
  186. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  187. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  188. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  189. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +15 -2
  190. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +4 -0
  191. package/artifacts/contracts/types/UFixed.sol/MathLib.json +10 -0
  192. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +4 -0
  193. package/artifacts/contracts/types/UFixed.sol/{UFixedMathLib.json → UFixedLib.json} +3 -3
  194. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  195. package/artifacts/contracts/types/Version.sol/VersionLib.json +2 -2
  196. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  197. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +22 -3
  198. package/contracts/components/BaseComponent.sol +26 -29
  199. package/contracts/components/Distribution.sol +52 -18
  200. package/contracts/components/IBaseComponent.sol +9 -3
  201. package/contracts/components/IDistributionComponent.sol +5 -6
  202. package/contracts/components/IPoolComponent.sol +2 -11
  203. package/contracts/components/IProductComponent.sol +4 -7
  204. package/contracts/components/Pool.sol +99 -76
  205. package/contracts/components/Product.sol +111 -41
  206. package/contracts/experiment/cloning/Cloner.sol +47 -0
  207. package/contracts/instance/AccessManagedSimple.sol +115 -0
  208. package/contracts/instance/AccessManagerSimple.sol +692 -0
  209. package/contracts/instance/IAccessManagerSimple.sol +391 -0
  210. package/contracts/instance/IInstance.sol +24 -45
  211. package/contracts/instance/IInstanceService.sol +30 -0
  212. package/contracts/instance/Instance.sol +427 -58
  213. package/contracts/instance/InstanceAccessManager.sol +288 -0
  214. package/contracts/instance/InstanceReader.sol +290 -0
  215. package/contracts/instance/InstanceService.sol +170 -0
  216. package/contracts/instance/InstanceServiceManager.sol +56 -0
  217. package/contracts/instance/base/ComponentServiceBase.sol +12 -13
  218. package/contracts/instance/base/IInstanceBase.sol +3 -2
  219. package/contracts/instance/base/IKeyValueStore.sol +13 -14
  220. package/contracts/instance/base/ILifecycle.sol +3 -3
  221. package/contracts/instance/base/KeyValueStore.sol +49 -38
  222. package/contracts/instance/base/Lifecycle.sol +1 -1
  223. package/contracts/instance/module/IAccess.sol +38 -0
  224. package/contracts/instance/module/IBundle.sol +19 -0
  225. package/contracts/instance/module/IDistribution.sol +39 -0
  226. package/contracts/instance/module/IPolicy.sol +45 -0
  227. package/contracts/instance/module/IRisk.sol +11 -0
  228. package/contracts/instance/module/ISetup.sol +43 -0
  229. package/contracts/instance/module/ITreasury.sol +23 -0
  230. package/contracts/instance/service/ComponentOwnerService.sol +232 -72
  231. package/contracts/instance/service/DistributionService.sol +66 -20
  232. package/contracts/instance/service/DistributionServiceManager.sol +53 -0
  233. package/contracts/instance/service/IComponentOwnerService.sol +1 -3
  234. package/contracts/instance/service/IDistributionService.sol +1 -1
  235. package/contracts/instance/service/IPoolService.sol +1 -1
  236. package/contracts/instance/service/IProductService.sol +3 -3
  237. package/contracts/registry/ChainNft.sol +80 -37
  238. package/contracts/registry/IRegistry.sol +62 -25
  239. package/contracts/registry/IRegistryService.sol +33 -0
  240. package/contracts/registry/ITransferInterceptor.sol +6 -0
  241. package/contracts/registry/Registry.sol +374 -266
  242. package/contracts/registry/RegistryService.sol +399 -0
  243. package/contracts/registry/RegistryServiceManager.sol +80 -0
  244. package/contracts/registry/TokenRegistry.sol +111 -0
  245. package/contracts/shared/ContractDeployerLib.sol +72 -0
  246. package/contracts/shared/ERC165.sol +6 -2
  247. package/contracts/shared/INftOwnable.sol +22 -0
  248. package/contracts/shared/IRegisterable.sol +8 -15
  249. package/contracts/{instance/base → shared}/IService.sol +3 -3
  250. package/contracts/shared/IVersionable.sol +40 -9
  251. package/contracts/shared/NftOwnable.sol +136 -0
  252. package/contracts/shared/ProxyManager.sol +94 -0
  253. package/contracts/shared/Registerable.sol +63 -59
  254. package/contracts/shared/RegisterableUpgradable.sol +16 -0
  255. package/contracts/shared/Service.sol +54 -0
  256. package/contracts/shared/TokenHandler.sol +27 -0
  257. package/contracts/shared/UpgradableProxyWithAdmin.sol +16 -0
  258. package/contracts/shared/Versionable.sol +110 -62
  259. package/contracts/test/TestFee.sol +2 -2
  260. package/contracts/test/TestRegisterable.sol +5 -6
  261. package/contracts/test/TestRoleId.sol +1 -1
  262. package/contracts/test/TestService.sol +5 -13
  263. package/contracts/types/DistributorType.sol +55 -0
  264. package/contracts/types/Fee.sol +3 -3
  265. package/contracts/types/Key32.sol +8 -3
  266. package/contracts/types/NumberId.sol +52 -0
  267. package/contracts/types/ObjectType.sol +35 -14
  268. package/contracts/types/Referral.sol +85 -0
  269. package/contracts/types/RoleId.sol +59 -9
  270. package/contracts/types/StateId.sol +5 -1
  271. package/contracts/types/Timestamp.sol +7 -3
  272. package/contracts/types/UFixed.sol +128 -12
  273. package/contracts/types/Version.sol +5 -1
  274. package/package.json +4 -3
  275. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +0 -4
  276. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.json +0 -24
  277. package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +0 -4
  278. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +0 -4
  279. package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +0 -4
  280. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +0 -4
  281. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +0 -4
  282. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.json +0 -333
  283. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +0 -4
  284. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.json +0 -10
  285. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +0 -4
  286. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.json +0 -333
  287. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +0 -4
  288. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +0 -297
  289. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +0 -4
  290. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +0 -4
  291. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +0 -297
  292. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
  293. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +0 -4
  294. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.json +0 -10
  295. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +0 -4
  296. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.json +0 -117
  297. package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.dbg.json +0 -4
  298. package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.json +0 -10
  299. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistribution.dbg.json +0 -4
  300. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.dbg.json +0 -4
  301. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.json +0 -10
  302. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
  303. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
  304. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.json +0 -284
  305. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
  306. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +0 -284
  307. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +0 -4
  308. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.json +0 -10
  309. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
  310. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.json +0 -144
  311. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
  312. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +0 -144
  313. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +0 -4
  314. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +0 -4
  315. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +0 -113
  316. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +0 -4
  317. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +0 -131
  318. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +0 -4
  319. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +0 -4
  320. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +0 -511
  321. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +0 -4
  322. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +0 -76
  323. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +0 -4
  324. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +0 -511
  325. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +0 -4
  326. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +0 -630
  327. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +0 -4
  328. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +0 -945
  329. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
  330. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.json +0 -452
  331. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +0 -4
  332. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.json +0 -24
  333. package/artifacts/contracts/registry/RegistryUpgradeable.sol/RegistryUpgradeable.dbg.json +0 -4
  334. package/artifacts/contracts/registry/RegistryUpgradeable.sol/RegistryUpgradeable.json +0 -724
  335. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +0 -4
  336. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.json +0 -24
  337. package/artifacts/contracts/shared/Proxy.sol/ProxyDeployer.dbg.json +0 -4
  338. package/artifacts/contracts/shared/Proxy.sol/ProxyDeployer.json +0 -248
  339. package/artifacts/contracts/shared/Proxy.sol/ProxyWithProxyAdminGetter.dbg.json +0 -4
  340. package/artifacts/contracts/shared/VersionableUpgradeable.sol/VersionableUpgradeable.dbg.json +0 -4
  341. package/artifacts/contracts/shared/VersionableUpgradeable.sol/VersionableUpgradeable.json +0 -228
  342. package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.dbg.json +0 -4
  343. package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.json +0 -405
  344. package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +0 -4
  345. package/artifacts/contracts/test/TestPool.sol/TestPool.json +0 -578
  346. package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +0 -4
  347. package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +0 -575
  348. package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.dbg.json +0 -4
  349. package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.json +0 -99
  350. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
  351. package/contracts/experiment/statemachine/README.md +0 -112
  352. package/contracts/instance/IInstanceLinked.sol +0 -8
  353. package/contracts/instance/base/InstanceBase.sol +0 -91
  354. package/contracts/instance/base/ModuleBase.sol +0 -57
  355. package/contracts/instance/base/ServiceBase.sol +0 -37
  356. package/contracts/instance/module/access/Access.sol +0 -149
  357. package/contracts/instance/module/access/IAccess.sol +0 -53
  358. package/contracts/instance/module/bundle/BundleModule.sol +0 -134
  359. package/contracts/instance/module/bundle/IBundle.sol +0 -53
  360. package/contracts/instance/module/component/ComponentModule.sol +0 -70
  361. package/contracts/instance/module/component/IComponent.sol +0 -28
  362. package/contracts/instance/module/distribution/DistributionModule.sol +0 -17
  363. package/contracts/instance/module/distribution/IDistribution.sol +0 -10
  364. package/contracts/instance/module/policy/IPolicy.sol +0 -63
  365. package/contracts/instance/module/policy/PolicyModule.sol +0 -91
  366. package/contracts/instance/module/pool/IPoolModule.sol +0 -40
  367. package/contracts/instance/module/pool/PoolModule.sol +0 -90
  368. package/contracts/instance/module/risk/IRisk.sol +0 -26
  369. package/contracts/instance/module/risk/RiskModule.sol +0 -62
  370. package/contracts/instance/module/treasury/ITreasury.sol +0 -82
  371. package/contracts/instance/module/treasury/TokenHandler.sol +0 -48
  372. package/contracts/instance/module/treasury/TreasuryModule.sol +0 -138
  373. package/contracts/instance/service/PoolService.sol +0 -149
  374. package/contracts/instance/service/ProductService.sol +0 -509
  375. package/contracts/registry/IChainNft.sol +0 -21
  376. package/contracts/registry/IRegistryLinked.sol +0 -8
  377. package/contracts/registry/RegistryUpgradeable.sol +0 -473
  378. package/contracts/shared/IOwnable.sol +0 -6
  379. package/contracts/shared/Proxy.sol +0 -94
  380. package/contracts/shared/VersionableUpgradeable.sol +0 -133
  381. package/contracts/test/TestDistribution.sol +0 -21
  382. package/contracts/test/TestPool.sol +0 -25
  383. package/contracts/test/TestProduct.sol +0 -72
  384. package/contracts/types/ReferralId.sol +0 -48
@@ -1,83 +1,149 @@
1
1
  {
2
2
  "_format": "hh-sol-artifact-1",
3
- "contractName": "ServiceBase",
4
- "sourceName": "contracts/instance/base/ServiceBase.sol",
3
+ "contractName": "IService",
4
+ "sourceName": "contracts/shared/IService.sol",
5
5
  "abi": [
6
6
  {
7
- "inputs": [],
8
- "name": "InvalidInitialization",
7
+ "inputs": [
8
+ {
9
+ "internalType": "address",
10
+ "name": "registry",
11
+ "type": "address"
12
+ },
13
+ {
14
+ "internalType": "NftId",
15
+ "name": "nftId",
16
+ "type": "uint96"
17
+ }
18
+ ],
19
+ "name": "ErrorAlreadyLinked",
9
20
  "type": "error"
10
21
  },
11
22
  {
12
- "inputs": [],
13
- "name": "NotInitializing",
23
+ "inputs": [
24
+ {
25
+ "internalType": "address",
26
+ "name": "contractAddress",
27
+ "type": "address"
28
+ }
29
+ ],
30
+ "name": "ErrorContractNotRegistered",
14
31
  "type": "error"
15
32
  },
16
33
  {
17
- "anonymous": false,
18
34
  "inputs": [
19
35
  {
20
- "indexed": false,
21
- "internalType": "uint64",
22
- "name": "version",
23
- "type": "uint64"
36
+ "internalType": "address",
37
+ "name": "account",
38
+ "type": "address"
24
39
  }
25
40
  ],
26
- "name": "Initialized",
27
- "type": "event"
41
+ "name": "ErrorNotOwner",
42
+ "type": "error"
28
43
  },
29
44
  {
30
- "anonymous": false,
31
45
  "inputs": [
32
46
  {
33
- "indexed": false,
34
- "internalType": "Version",
35
- "name": "version",
36
- "type": "uint24"
37
- },
38
- {
39
- "indexed": false,
40
47
  "internalType": "address",
41
- "name": "implementation",
48
+ "name": "registryAddress",
42
49
  "type": "address"
43
- },
50
+ }
51
+ ],
52
+ "name": "ErrorNotRegistry",
53
+ "type": "error"
54
+ },
55
+ {
56
+ "inputs": [],
57
+ "name": "ErrorRegistryAddressZero",
58
+ "type": "error"
59
+ },
60
+ {
61
+ "inputs": [
44
62
  {
45
- "indexed": false,
46
63
  "internalType": "address",
47
- "name": "activatedBy",
64
+ "name": "registry",
48
65
  "type": "address"
49
66
  }
50
67
  ],
51
- "name": "LogVersionableActivated",
52
- "type": "event"
68
+ "name": "ErrorRegistryAlreadyInitialized",
69
+ "type": "error"
53
70
  },
54
71
  {
72
+ "inputs": [],
73
+ "name": "ErrorRegistryNotInitialized",
74
+ "type": "error"
75
+ },
76
+ {
77
+ "anonymous": false,
55
78
  "inputs": [
56
79
  {
80
+ "indexed": false,
81
+ "internalType": "Version",
82
+ "name": "version",
83
+ "type": "uint24"
84
+ },
85
+ {
86
+ "indexed": false,
57
87
  "internalType": "address",
58
88
  "name": "implementation",
59
89
  "type": "address"
60
90
  },
61
91
  {
92
+ "indexed": false,
62
93
  "internalType": "address",
63
94
  "name": "activatedBy",
64
95
  "type": "address"
65
- },
66
- {
67
- "internalType": "bytes",
68
- "name": "activatinData",
69
- "type": "bytes"
70
96
  }
71
97
  ],
72
- "name": "activate",
73
- "outputs": [],
74
- "stateMutability": "nonpayable",
75
- "type": "function"
98
+ "name": "LogVersionableInitialized",
99
+ "type": "event"
76
100
  },
77
101
  {
78
102
  "inputs": [],
79
- "name": "getData",
103
+ "name": "getInitialInfo",
80
104
  "outputs": [
105
+ {
106
+ "components": [
107
+ {
108
+ "internalType": "NftId",
109
+ "name": "nftId",
110
+ "type": "uint96"
111
+ },
112
+ {
113
+ "internalType": "NftId",
114
+ "name": "parentNftId",
115
+ "type": "uint96"
116
+ },
117
+ {
118
+ "internalType": "ObjectType",
119
+ "name": "objectType",
120
+ "type": "uint8"
121
+ },
122
+ {
123
+ "internalType": "bool",
124
+ "name": "isInterceptor",
125
+ "type": "bool"
126
+ },
127
+ {
128
+ "internalType": "address",
129
+ "name": "objectAddress",
130
+ "type": "address"
131
+ },
132
+ {
133
+ "internalType": "address",
134
+ "name": "initialOwner",
135
+ "type": "address"
136
+ },
137
+ {
138
+ "internalType": "bytes",
139
+ "name": "data",
140
+ "type": "bytes"
141
+ }
142
+ ],
143
+ "internalType": "struct IRegistry.ObjectInfo",
144
+ "name": "",
145
+ "type": "tuple"
146
+ },
81
147
  {
82
148
  "internalType": "bytes",
83
149
  "name": "data",
@@ -132,7 +198,7 @@
132
198
  "outputs": [
133
199
  {
134
200
  "internalType": "NftId",
135
- "name": "nftId",
201
+ "name": "",
136
202
  "type": "uint96"
137
203
  }
138
204
  ],
@@ -145,52 +211,26 @@
145
211
  "outputs": [
146
212
  {
147
213
  "internalType": "address",
148
- "name": "owner",
214
+ "name": "",
149
215
  "type": "address"
150
216
  }
151
217
  ],
152
218
  "stateMutability": "view",
153
219
  "type": "function"
154
220
  },
155
- {
156
- "inputs": [],
157
- "name": "getParentNftId",
158
- "outputs": [
159
- {
160
- "internalType": "NftId",
161
- "name": "nftId",
162
- "type": "uint96"
163
- }
164
- ],
165
- "stateMutability": "view",
166
- "type": "function"
167
- },
168
221
  {
169
222
  "inputs": [],
170
223
  "name": "getRegistry",
171
224
  "outputs": [
172
225
  {
173
226
  "internalType": "contract IRegistry",
174
- "name": "registry",
227
+ "name": "",
175
228
  "type": "address"
176
229
  }
177
230
  ],
178
231
  "stateMutability": "view",
179
232
  "type": "function"
180
233
  },
181
- {
182
- "inputs": [],
183
- "name": "getType",
184
- "outputs": [
185
- {
186
- "internalType": "ObjectType",
187
- "name": "",
188
- "type": "uint8"
189
- }
190
- ],
191
- "stateMutability": "pure",
192
- "type": "function"
193
- },
194
234
  {
195
235
  "inputs": [],
196
236
  "name": "getVersion",
@@ -208,7 +248,7 @@
208
248
  "inputs": [
209
249
  {
210
250
  "internalType": "uint256",
211
- "name": "idx",
251
+ "name": "index",
212
252
  "type": "uint256"
213
253
  }
214
254
  ],
@@ -216,7 +256,7 @@
216
256
  "outputs": [
217
257
  {
218
258
  "internalType": "Version",
219
- "name": "",
259
+ "name": "version",
220
260
  "type": "uint24"
221
261
  }
222
262
  ],
@@ -229,7 +269,7 @@
229
269
  "outputs": [
230
270
  {
231
271
  "internalType": "uint256",
232
- "name": "",
272
+ "name": "numberOfVersions",
233
273
  "type": "uint256"
234
274
  }
235
275
  ],
@@ -240,7 +280,7 @@
240
280
  "inputs": [
241
281
  {
242
282
  "internalType": "Version",
243
- "name": "_version",
283
+ "name": "version",
244
284
  "type": "uint24"
245
285
  }
246
286
  ],
@@ -275,7 +315,7 @@
275
315
  }
276
316
  ],
277
317
  "internalType": "struct IVersionable.VersionInfo",
278
- "name": "",
318
+ "name": "versionInfo",
279
319
  "type": "tuple"
280
320
  }
281
321
  ],
@@ -296,7 +336,7 @@
296
336
  },
297
337
  {
298
338
  "internalType": "bytes",
299
- "name": "initializationData",
339
+ "name": "activationData",
300
340
  "type": "bytes"
301
341
  }
302
342
  ],
@@ -309,11 +349,11 @@
309
349
  "inputs": [
310
350
  {
311
351
  "internalType": "Version",
312
- "name": "_version",
352
+ "name": "version",
313
353
  "type": "uint24"
314
354
  }
315
355
  ],
316
- "name": "isActivated",
356
+ "name": "isInitialized",
317
357
  "outputs": [
318
358
  {
319
359
  "internalType": "bool",
@@ -326,14 +366,8 @@
326
366
  },
327
367
  {
328
368
  "inputs": [],
329
- "name": "register",
330
- "outputs": [
331
- {
332
- "internalType": "NftId",
333
- "name": "nftId",
334
- "type": "uint96"
335
- }
336
- ],
369
+ "name": "linkToRegisteredNftId",
370
+ "outputs": [],
337
371
  "stateMutability": "nonpayable",
338
372
  "type": "function"
339
373
  },
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/ddc9b0b487d1eff0b437a694ef8bc6d1.json"
3
+ "buildInfo": "../../../build-info/87988637569758c4560bd9f4a1a8375d.json"
4
4
  }
@@ -25,7 +25,7 @@
25
25
  "type": "address"
26
26
  }
27
27
  ],
28
- "name": "LogVersionableActivated",
28
+ "name": "LogVersionableInitialized",
29
29
  "type": "event"
30
30
  },
31
31
  {
@@ -163,7 +163,7 @@
163
163
  "type": "uint24"
164
164
  }
165
165
  ],
166
- "name": "isActivated",
166
+ "name": "isInitialized",
167
167
  "outputs": [
168
168
  {
169
169
  "internalType": "bool",
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../build-info/87988637569758c4560bd9f4a1a8375d.json"
4
+ }
@@ -0,0 +1,158 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "NftOwnable",
4
+ "sourceName": "contracts/shared/NftOwnable.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
+ "name": "getNftId",
84
+ "outputs": [
85
+ {
86
+ "internalType": "NftId",
87
+ "name": "",
88
+ "type": "uint96"
89
+ }
90
+ ],
91
+ "stateMutability": "view",
92
+ "type": "function"
93
+ },
94
+ {
95
+ "inputs": [],
96
+ "name": "getOwner",
97
+ "outputs": [
98
+ {
99
+ "internalType": "address",
100
+ "name": "",
101
+ "type": "address"
102
+ }
103
+ ],
104
+ "stateMutability": "view",
105
+ "type": "function"
106
+ },
107
+ {
108
+ "inputs": [],
109
+ "name": "getRegistry",
110
+ "outputs": [
111
+ {
112
+ "internalType": "contract IRegistry",
113
+ "name": "",
114
+ "type": "address"
115
+ }
116
+ ],
117
+ "stateMutability": "view",
118
+ "type": "function"
119
+ },
120
+ {
121
+ "inputs": [],
122
+ "name": "linkToRegisteredNftId",
123
+ "outputs": [],
124
+ "stateMutability": "nonpayable",
125
+ "type": "function"
126
+ }
127
+ ],
128
+ "bytecode": "0x608060405234801561001057600080fd5b50600180546001600160a01b031916331790556104a7806100326000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c8063138461e0146100515780635ab1bd531461005b578063644c45e014610085578063893d20e8146100b0575b600080fd5b6100596100b8565b005b6000546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b600054600160a01b90046001600160601b03166040516001600160601b03909116815260200161007c565b6100686102da565b6000546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af415801561011a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061013e91906103f6565b15610185576000546040516316322c0f60e31b81526001600160a01b0382166004820152600160a01b9091046001600160601b031660248201526044015b60405180910390fd5b6000546001600160a01b03166101ae5760405163cf29926160e01b815260040160405180910390fd5b60005460405163c3c5a54760e01b81523060048201819052916001600160a01b03169063c3c5a54790602401602060405180830381865afa1580156101f7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061021b91906103f6565b610243576040516372657a5160e01b81526001600160a01b038216600482015260240161017c565b600054604051636939560f60e11b81526001600160a01b0383811660048301529091169063d272ac1e90602401602060405180830381865afa15801561028d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102b1919061041f565b600060146101000a8154816001600160601b0302191690836001600160601b0316021790555050565b600080546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af415801561033d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061036191906103f6565b156103e657600054604051631c5da14d60e11b8152600160a01b82046001600160601b031660048201526001600160a01b03909116906338bb429a90602401602060405180830381865afa1580156103bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103e19190610448565b905090565b506001546001600160a01b031690565b60006020828403121561040857600080fd5b8151801515811461041857600080fd5b9392505050565b60006020828403121561043157600080fd5b81516001600160601b038116811461041857600080fd5b60006020828403121561045a57600080fd5b81516001600160a01b038116811461041857600080fdfea2646970667358221220aafd42e4e4c7c8c25aa6c7b6f2197ded876bdf9e2a5440f715dc1d07d61d108664736f6c63430008140033",
129
+ "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061004c5760003560e01c8063138461e0146100515780635ab1bd531461005b578063644c45e014610085578063893d20e8146100b0575b600080fd5b6100596100b8565b005b6000546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b600054600160a01b90046001600160601b03166040516001600160601b03909116815260200161007c565b6100686102da565b6000546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af415801561011a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061013e91906103f6565b15610185576000546040516316322c0f60e31b81526001600160a01b0382166004820152600160a01b9091046001600160601b031660248201526044015b60405180910390fd5b6000546001600160a01b03166101ae5760405163cf29926160e01b815260040160405180910390fd5b60005460405163c3c5a54760e01b81523060048201819052916001600160a01b03169063c3c5a54790602401602060405180830381865afa1580156101f7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061021b91906103f6565b610243576040516372657a5160e01b81526001600160a01b038216600482015260240161017c565b600054604051636939560f60e11b81526001600160a01b0383811660048301529091169063d272ac1e90602401602060405180830381865afa15801561028d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102b1919061041f565b600060146101000a8154816001600160601b0302191690836001600160601b0316021790555050565b600080546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af415801561033d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061036191906103f6565b156103e657600054604051631c5da14d60e11b8152600160a01b82046001600160601b031660048201526001600160a01b03909116906338bb429a90602401602060405180830381865afa1580156103bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103e19190610448565b905090565b506001546001600160a01b031690565b60006020828403121561040857600080fd5b8151801515811461041857600080fd5b9392505050565b60006020828403121561043157600080fd5b81516001600160601b038116811461041857600080fd5b60006020828403121561045a57600080fd5b81516001600160a01b038116811461041857600080fdfea2646970667358221220aafd42e4e4c7c8c25aa6c7b6f2197ded876bdf9e2a5440f715dc1d07d61d108664736f6c63430008140033",
130
+ "linkReferences": {
131
+ "contracts/types/NftId.sol": {
132
+ "NftIdLib": [
133
+ {
134
+ "length": 20,
135
+ "start": 274
136
+ },
137
+ {
138
+ "length": 20,
139
+ "start": 821
140
+ }
141
+ ]
142
+ }
143
+ },
144
+ "deployedLinkReferences": {
145
+ "contracts/types/NftId.sol": {
146
+ "NftIdLib": [
147
+ {
148
+ "length": 20,
149
+ "start": 224
150
+ },
151
+ {
152
+ "length": 20,
153
+ "start": 771
154
+ }
155
+ ]
156
+ }
157
+ }
158
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../build-info/87988637569758c4560bd9f4a1a8375d.json"
4
+ }