@etherisc/gif-next 0.0.2-d911522 → 0.0.2-d96b9e1-825

Sign up to get free protection for your applications and to get access to all the features.
Files changed (339) hide show
  1. package/README.md +109 -0
  2. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +4 -0
  3. package/artifacts/contracts/components/{Component.sol/Component.json → BaseComponent.sol/BaseComponent.json} +48 -53
  4. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +4 -0
  5. package/artifacts/contracts/components/{IPool.sol/IPoolComponent.json → IBaseComponent.sol/IBaseComponent.json} +48 -53
  6. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +4 -0
  7. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +356 -0
  8. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +4 -0
  9. package/artifacts/contracts/components/{IProduct.sol → IProductComponent.sol}/IProductComponent.json +139 -52
  10. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  11. package/artifacts/contracts/components/Pool.sol/Pool.json +218 -44
  12. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  13. package/artifacts/contracts/components/Product.sol/Product.json +144 -70
  14. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
  15. package/artifacts/contracts/experiment/errors/Require.sol/Require.json +2 -2
  16. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
  17. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +2 -2
  18. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
  19. package/artifacts/contracts/experiment/inheritance/A.sol/A.json +2 -2
  20. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
  21. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +2 -2
  22. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
  23. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
  24. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
  25. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
  26. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
  27. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
  28. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +4 -0
  29. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +59 -0
  30. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +4 -0
  31. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +124 -0
  32. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +4 -0
  33. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +74 -0
  34. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +4 -0
  35. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +124 -0
  36. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +4 -0
  37. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +207 -0
  38. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
  39. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +2 -2
  40. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
  41. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +2 -2
  42. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  43. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1194 -220
  44. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +4 -0
  45. package/artifacts/contracts/instance/{component/IComponent.sol → IInstanceLinked.sol}/IInstanceLinked.json +1 -1
  46. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  47. package/artifacts/contracts/instance/Instance.sol/Instance.json +1443 -354
  48. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +4 -0
  49. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +300 -0
  50. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +4 -0
  51. package/artifacts/contracts/instance/{product/ProductService.sol/ProductModule.json → base/IInstanceBase.sol/IInstanceBase.json} +18 -30
  52. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +4 -0
  53. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +511 -0
  54. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +4 -0
  55. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.json +115 -0
  56. package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +4 -0
  57. package/artifacts/contracts/instance/base/IService.sol/IService.json +300 -0
  58. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +4 -0
  59. package/artifacts/contracts/instance/{component/ComponentModule.sol/ComponentModule.json → base/InstanceBase.sol/InstanceBase.json} +137 -138
  60. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +4 -0
  61. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +692 -0
  62. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +4 -0
  63. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +169 -0
  64. package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +4 -0
  65. package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.json +10 -0
  66. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +4 -0
  67. package/artifacts/contracts/instance/{component/IComponent.sol/IComponentContract.json → base/ServiceBase.sol/ServiceBase.json} +148 -27
  68. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +4 -0
  69. package/artifacts/contracts/instance/{access → module/access}/Access.sol/AccessModule.json +85 -152
  70. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +4 -0
  71. package/artifacts/contracts/instance/{access → module/access}/IAccess.sol/IAccess.json +1 -1
  72. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +4 -0
  73. package/artifacts/contracts/instance/{access → module/access}/IAccess.sol/IAccessModule.json +96 -99
  74. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +4 -0
  75. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +296 -0
  76. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +4 -0
  77. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.json +10 -0
  78. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +4 -0
  79. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +296 -0
  80. package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.dbg.json +4 -0
  81. package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.json +10 -0
  82. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.dbg.json +4 -0
  83. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.json +10 -0
  84. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.dbg.json +4 -0
  85. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.json +10 -0
  86. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +4 -0
  87. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +188 -0
  88. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +4 -0
  89. package/artifacts/contracts/instance/{component → module/component}/IComponent.sol/IComponent.json +1 -1
  90. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +4 -0
  91. package/artifacts/contracts/instance/{component → module/component}/IComponent.sol/IComponentModule.json +40 -97
  92. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +4 -0
  93. package/artifacts/contracts/instance/{policy → module/policy}/IPolicy.sol/IPolicy.json +1 -1
  94. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +4 -0
  95. package/artifacts/contracts/instance/{policy → module/policy}/IPolicy.sol/IPolicyModule.json +142 -112
  96. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +4 -0
  97. package/artifacts/contracts/instance/{policy → module/policy}/PolicyModule.sol/PolicyModule.json +142 -112
  98. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +4 -0
  99. package/artifacts/contracts/instance/{pool → module/pool}/IPoolModule.sol/IPool.json +1 -1
  100. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +4 -0
  101. package/artifacts/contracts/instance/{pool → module/pool}/IPoolModule.sol/IPoolModule.json +57 -57
  102. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +4 -0
  103. package/artifacts/contracts/instance/{pool → module/pool}/PoolModule.sol/PoolModule.json +50 -63
  104. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +4 -0
  105. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.json +10 -0
  106. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +4 -0
  107. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +10 -0
  108. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +4 -0
  109. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +10 -0
  110. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +4 -0
  111. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.json +10 -0
  112. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +4 -0
  113. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +533 -0
  114. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +4 -0
  115. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +76 -0
  116. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +4 -0
  117. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +533 -0
  118. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +4 -0
  119. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +491 -0
  120. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +4 -0
  121. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +364 -0
  122. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +4 -0
  123. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +376 -0
  124. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +4 -0
  125. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +477 -0
  126. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
  127. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +471 -0
  128. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
  129. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +673 -0
  130. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  131. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +65 -2
  132. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +1 -1
  133. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  134. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +103 -77
  135. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
  136. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.json +24 -0
  137. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  138. package/artifacts/contracts/registry/Registry.sol/Registry.json +194 -69
  139. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +4 -0
  140. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +35 -0
  141. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +4 -0
  142. package/artifacts/contracts/{registry/IRegistry.sol → shared/IOwnable.sol}/IOwnable.json +1 -1
  143. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +4 -0
  144. package/artifacts/contracts/{registry/IRegistry.sol → shared/IRegisterable.sol}/IRegisterable.json +18 -63
  145. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +4 -0
  146. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +164 -0
  147. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +4 -0
  148. package/artifacts/contracts/{registry/Registry.sol → shared/Registerable.sol}/Registerable.json +18 -63
  149. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +4 -0
  150. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +164 -0
  151. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +4 -0
  152. package/artifacts/contracts/test/TestFee.sol/TestFee.json +119 -0
  153. package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +4 -0
  154. package/artifacts/contracts/test/TestPool.sol/TestPool.json +387 -0
  155. package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +4 -0
  156. package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +393 -0
  157. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +4 -0
  158. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +137 -0
  159. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +4 -0
  160. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +82 -0
  161. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +4 -0
  162. package/artifacts/contracts/test/TestService.sol/TestService.json +379 -0
  163. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +4 -0
  164. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +338 -0
  165. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +4 -0
  166. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +218 -0
  167. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +4 -0
  168. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +206 -0
  169. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +4 -0
  170. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.json +10 -0
  171. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  172. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +2 -2
  173. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  174. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.json +2 -2
  175. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +4 -0
  176. package/artifacts/contracts/types/Fee.sol/FeeLib.json +218 -0
  177. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +4 -0
  178. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +111 -0
  179. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  180. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +65 -4
  181. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +4 -0
  182. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +10 -0
  183. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +4 -0
  184. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +92 -0
  185. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +4 -0
  186. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +92 -0
  187. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  188. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +64 -2
  189. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +1 -1
  190. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.json +68 -55
  191. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +4 -0
  192. package/artifacts/contracts/types/Version.sol/VersionLib.json +139 -0
  193. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +4 -0
  194. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +30 -0
  195. package/contracts/components/BaseComponent.sol +88 -0
  196. package/contracts/components/IBaseComponent.sol +19 -0
  197. package/contracts/components/IPoolComponent.sol +57 -0
  198. package/contracts/components/IProductComponent.sol +19 -0
  199. package/contracts/components/Pool.sol +161 -16
  200. package/contracts/components/Product.sol +77 -26
  201. package/contracts/experiment/errors/Require.sol +10 -5
  202. package/contracts/experiment/errors/Revert.sol +13 -8
  203. package/contracts/experiment/inheritance/A.sol +8 -11
  204. package/contracts/experiment/inheritance/B.sol +10 -5
  205. package/contracts/experiment/inheritance/C.sol +11 -5
  206. package/contracts/experiment/inheritance/IA.sol +2 -7
  207. package/contracts/experiment/inheritance/IB.sol +3 -2
  208. package/contracts/experiment/inheritance/IC.sol +4 -3
  209. package/contracts/experiment/statemachine/Dummy.sol +27 -0
  210. package/contracts/experiment/statemachine/ISM.sol +25 -0
  211. package/contracts/experiment/statemachine/README.md +112 -0
  212. package/contracts/experiment/statemachine/SM.sol +57 -0
  213. package/contracts/experiment/statemachine/SimpleStateMachine.sol +31 -0
  214. package/contracts/experiment/types/TypeA.sol +14 -9
  215. package/contracts/experiment/types/TypeB.sol +14 -9
  216. package/contracts/instance/IInstance.sol +40 -8
  217. package/contracts/instance/IInstanceLinked.sol +8 -0
  218. package/contracts/instance/Instance.sol +47 -43
  219. package/contracts/instance/base/ComponentServiceBase.sol +42 -0
  220. package/contracts/instance/base/IInstanceBase.sol +14 -0
  221. package/contracts/instance/base/IKeyValueStore.sol +49 -0
  222. package/contracts/instance/base/ILifecycle.sol +30 -0
  223. package/contracts/instance/base/IService.sol +15 -0
  224. package/contracts/instance/base/InstanceBase.sol +80 -0
  225. package/contracts/instance/base/KeyValueStore.sol +147 -0
  226. package/contracts/instance/base/Lifecycle.sol +95 -0
  227. package/contracts/instance/base/ModuleBase.sol +52 -0
  228. package/contracts/instance/base/ServiceBase.sol +37 -0
  229. package/contracts/instance/module/access/Access.sol +149 -0
  230. package/contracts/instance/module/access/IAccess.sol +53 -0
  231. package/contracts/instance/module/bundle/BundleModule.sol +136 -0
  232. package/contracts/instance/module/bundle/IBundle.sol +58 -0
  233. package/contracts/instance/module/compensation/CompensationModule.sol +8 -0
  234. package/contracts/instance/module/compensation/ICompensation.sol +10 -0
  235. package/contracts/instance/module/component/ComponentModule.sol +95 -0
  236. package/contracts/instance/module/component/IComponent.sol +53 -0
  237. package/contracts/instance/module/policy/IPolicy.sol +60 -0
  238. package/contracts/instance/module/policy/PolicyModule.sol +76 -0
  239. package/contracts/instance/module/pool/IPoolModule.sol +41 -0
  240. package/contracts/instance/module/pool/PoolModule.sol +87 -0
  241. package/contracts/instance/module/risk/IRisk.sol +10 -0
  242. package/contracts/instance/module/risk/RiskModule.sol +8 -0
  243. package/contracts/instance/module/treasury/ITreasury.sol +103 -0
  244. package/contracts/instance/module/treasury/TokenHandler.sol +48 -0
  245. package/contracts/instance/module/treasury/TreasuryModule.sol +152 -0
  246. package/contracts/instance/service/ComponentOwnerService.sol +170 -0
  247. package/contracts/instance/service/IComponentOwnerService.sol +22 -0
  248. package/contracts/instance/service/IPoolService.sol +30 -0
  249. package/contracts/instance/service/IProductService.sol +58 -0
  250. package/contracts/instance/service/PoolService.sol +123 -0
  251. package/contracts/instance/service/ProductService.sol +354 -0
  252. package/contracts/registry/ChainNft.sol +80 -94
  253. package/contracts/registry/IChainNft.sol +10 -7
  254. package/contracts/registry/IRegistry.sol +38 -51
  255. package/contracts/registry/IRegistryLinked.sol +8 -0
  256. package/contracts/registry/Registry.sol +310 -111
  257. package/contracts/shared/ERC165.sol +21 -0
  258. package/contracts/shared/IOwnable.sol +6 -0
  259. package/contracts/shared/IRegisterable.sol +24 -0
  260. package/contracts/shared/IVersionable.sol +52 -0
  261. package/contracts/shared/Registerable.sol +86 -0
  262. package/contracts/shared/Versionable.sol +89 -0
  263. package/contracts/test/TestFee.sol +25 -0
  264. package/contracts/test/TestPool.sol +22 -0
  265. package/contracts/test/TestProduct.sol +44 -0
  266. package/contracts/test/TestRegisterable.sol +19 -0
  267. package/contracts/test/TestRoleId.sol +14 -0
  268. package/contracts/test/TestService.sol +32 -0
  269. package/contracts/test/TestToken.sol +26 -0
  270. package/contracts/test/TestVersion.sol +44 -0
  271. package/contracts/test/TestVersionable.sol +17 -0
  272. package/contracts/types/AddressSet.sol +58 -0
  273. package/contracts/types/Blocknumber.sol +76 -18
  274. package/contracts/types/ChainId.sol +18 -10
  275. package/contracts/types/Fee.sol +51 -0
  276. package/contracts/types/Key32.sol +45 -0
  277. package/contracts/types/NftId.sol +48 -11
  278. package/contracts/types/NftIdSet.sol +60 -0
  279. package/contracts/types/ObjectType.sol +115 -0
  280. package/contracts/types/RoleId.sol +36 -0
  281. package/contracts/types/StateId.sol +101 -0
  282. package/contracts/types/Timestamp.sol +85 -17
  283. package/contracts/types/UFixed.sol +71 -72
  284. package/contracts/types/Version.sol +95 -0
  285. package/package.json +15 -4
  286. package/artifacts/contracts/components/Component.sol/Component.dbg.json +0 -4
  287. package/artifacts/contracts/components/Component.sol/InstanceLinked.dbg.json +0 -4
  288. package/artifacts/contracts/components/Component.sol/InstanceLinked.json +0 -35
  289. package/artifacts/contracts/components/IPool.sol/IPoolComponent.dbg.json +0 -4
  290. package/artifacts/contracts/components/IProduct.sol/IProductComponent.dbg.json +0 -4
  291. package/artifacts/contracts/instance/access/Access.sol/AccessModule.dbg.json +0 -4
  292. package/artifacts/contracts/instance/access/IAccess.sol/IAccess.dbg.json +0 -4
  293. package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.dbg.json +0 -4
  294. package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.json +0 -35
  295. package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.dbg.json +0 -4
  296. package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.json +0 -50
  297. package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.dbg.json +0 -4
  298. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
  299. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.dbg.json +0 -4
  300. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.json +0 -147
  301. package/artifacts/contracts/instance/component/IComponent.sol/IComponent.dbg.json +0 -4
  302. package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.dbg.json +0 -4
  303. package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.dbg.json +0 -4
  304. package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.dbg.json +0 -4
  305. package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.json +0 -94
  306. package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.dbg.json +0 -4
  307. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
  308. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
  309. package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
  310. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPool.dbg.json +0 -4
  311. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
  312. package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
  313. package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.dbg.json +0 -4
  314. package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.json +0 -75
  315. package/artifacts/contracts/instance/product/IProductService.sol/IProductService.dbg.json +0 -4
  316. package/artifacts/contracts/instance/product/IProductService.sol/IProductService.json +0 -114
  317. package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.dbg.json +0 -4
  318. package/artifacts/contracts/instance/product/ProductService.sol/ProductService.dbg.json +0 -4
  319. package/artifacts/contracts/instance/product/ProductService.sol/ProductService.json +0 -167
  320. package/artifacts/contracts/registry/IRegistry.sol/IOwnable.dbg.json +0 -4
  321. package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.dbg.json +0 -4
  322. package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.dbg.json +0 -4
  323. package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.json +0 -49
  324. package/artifacts/contracts/registry/Registry.sol/Registerable.dbg.json +0 -4
  325. package/artifacts/contracts/registry/Registry.sol/RegistryLinked.dbg.json +0 -4
  326. package/artifacts/contracts/registry/Registry.sol/RegistryLinked.json +0 -60
  327. package/contracts/components/Component.sol +0 -62
  328. package/contracts/components/IPool.sol +0 -9
  329. package/contracts/components/IProduct.sol +0 -12
  330. package/contracts/instance/access/Access.sol +0 -218
  331. package/contracts/instance/access/IAccess.sol +0 -83
  332. package/contracts/instance/component/ComponentModule.sol +0 -248
  333. package/contracts/instance/component/IComponent.sol +0 -95
  334. package/contracts/instance/policy/IPolicy.sol +0 -66
  335. package/contracts/instance/policy/PolicyModule.sol +0 -107
  336. package/contracts/instance/pool/IPoolModule.sol +0 -41
  337. package/contracts/instance/pool/PoolModule.sol +0 -86
  338. package/contracts/instance/product/IProductService.sol +0 -46
  339. package/contracts/instance/product/ProductService.sol +0 -108
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../../build-info/746f2ad7b0d888e05db828a61f6d5e10.json"
4
+ }
@@ -0,0 +1,169 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "Lifecycle",
4
+ "sourceName": "contracts/instance/base/Lifecycle.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [],
8
+ "stateMutability": "nonpayable",
9
+ "type": "constructor"
10
+ },
11
+ {
12
+ "inputs": [
13
+ {
14
+ "internalType": "ObjectType",
15
+ "name": "objectType",
16
+ "type": "uint8"
17
+ },
18
+ {
19
+ "internalType": "StateId",
20
+ "name": "fromStateId",
21
+ "type": "uint8"
22
+ },
23
+ {
24
+ "internalType": "StateId",
25
+ "name": "toStateId",
26
+ "type": "uint8"
27
+ }
28
+ ],
29
+ "name": "ErrorInvalidStateTransition",
30
+ "type": "error"
31
+ },
32
+ {
33
+ "inputs": [
34
+ {
35
+ "internalType": "NftId",
36
+ "name": "nftId",
37
+ "type": "uint96"
38
+ },
39
+ {
40
+ "internalType": "ObjectType",
41
+ "name": "objectType",
42
+ "type": "uint8"
43
+ }
44
+ ],
45
+ "name": "ErrorNoLifecycle",
46
+ "type": "error"
47
+ },
48
+ {
49
+ "inputs": [
50
+ {
51
+ "internalType": "ObjectType",
52
+ "name": "objectType",
53
+ "type": "uint8"
54
+ },
55
+ {
56
+ "internalType": "StateId",
57
+ "name": "fromId",
58
+ "type": "uint8"
59
+ },
60
+ {
61
+ "internalType": "StateId",
62
+ "name": "toId",
63
+ "type": "uint8"
64
+ }
65
+ ],
66
+ "name": "checkTransition",
67
+ "outputs": [],
68
+ "stateMutability": "view",
69
+ "type": "function"
70
+ },
71
+ {
72
+ "inputs": [
73
+ {
74
+ "internalType": "ObjectType",
75
+ "name": "objectType",
76
+ "type": "uint8"
77
+ }
78
+ ],
79
+ "name": "getInitialState",
80
+ "outputs": [
81
+ {
82
+ "internalType": "StateId",
83
+ "name": "",
84
+ "type": "uint8"
85
+ }
86
+ ],
87
+ "stateMutability": "view",
88
+ "type": "function"
89
+ },
90
+ {
91
+ "inputs": [
92
+ {
93
+ "internalType": "ObjectType",
94
+ "name": "objectType",
95
+ "type": "uint8"
96
+ }
97
+ ],
98
+ "name": "hasLifecycle",
99
+ "outputs": [
100
+ {
101
+ "internalType": "bool",
102
+ "name": "",
103
+ "type": "bool"
104
+ }
105
+ ],
106
+ "stateMutability": "view",
107
+ "type": "function"
108
+ },
109
+ {
110
+ "inputs": [
111
+ {
112
+ "internalType": "ObjectType",
113
+ "name": "objectType",
114
+ "type": "uint8"
115
+ },
116
+ {
117
+ "internalType": "StateId",
118
+ "name": "fromId",
119
+ "type": "uint8"
120
+ },
121
+ {
122
+ "internalType": "StateId",
123
+ "name": "toId",
124
+ "type": "uint8"
125
+ }
126
+ ],
127
+ "name": "isValidTransition",
128
+ "outputs": [
129
+ {
130
+ "internalType": "bool",
131
+ "name": "",
132
+ "type": "bool"
133
+ }
134
+ ],
135
+ "stateMutability": "view",
136
+ "type": "function"
137
+ }
138
+ ],
139
+ "bytecode": "0x60806040523480156200001157600080fd5b5062000032620000266200009860201b60201c565b620000b160201b60201c565b62000052620000466200026b60201b60201c565b620000b160201b60201c565b62000072620000666200028460201b60201c565b620000b160201b60201c565b620000826200029d60201b60201c565b620000926200049260201b60201c565b620008ad565b6000620000ac60646200079f60201b60201c565b905090565b620000c1620007a960201b60201c565b6000808360ff1660ff16815260200190815260200160002060006101000a81548160ff021916908360ff16021790555060018060008360ff1660ff16815260200190815260200160002060006200011d620007a960201b60201c565b60ff1660ff168152602001908152602001600020600062000143620007c260201b60201c565b60ff1660ff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060018060008360ff1660ff16815260200190815260200160002060006200019a620007c260201b60201c565b60ff1660ff1681526020019081526020016000206000620001c0620007a960201b60201c565b60ff1660ff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060018060008360ff1660ff168152602001908152602001600020600062000217620007c260201b60201c565b60ff1660ff16815260200190815260200160002060006200023d620007db60201b60201c565b60ff1660ff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b60006200027f60786200079f60201b60201c565b905090565b60006200029860826200079f60201b60201c565b905090565b620002ad620007a960201b60201c565b600080620002c0620007f460201b60201c565b60ff1660ff16815260200190815260200160002060006101000a81548160ff021916908360ff160217905550600180600062000301620007f460201b60201c565b60ff1660ff168152602001908152602001600020600062000327620007a960201b60201c565b60ff1660ff16815260200190815260200160002060006200034d620007c260201b60201c565b60ff1660ff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060018060006200038d620007f460201b60201c565b60ff1660ff1681526020019081526020016000206000620003b3620007c260201b60201c565b60ff1660ff1681526020019081526020016000206000620003d9620007a960201b60201c565b60ff1660ff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600180600062000419620007f460201b60201c565b60ff1660ff16815260200190815260200160002060006200043f620007c260201b60201c565b60ff1660ff1681526020019081526020016000206000620004656200080d60201b60201c565b60ff1660ff16815260200190815260200160002060006101000a81548160ff021916908315150217905550565b620004a26200082660201b60201c565b600080620004b56200083f60201b60201c565b60ff1660ff16815260200190815260200160002060006101000a81548160ff021916908360ff1602179055506001806000620004f66200083f60201b60201c565b60ff1660ff16815260200190815260200160002060006200051c6200082660201b60201c565b60ff1660ff1681526020019081526020016000206000620005426200085860201b60201c565b60ff1660ff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506001806000620005826200083f60201b60201c565b60ff1660ff1681526020019081526020016000206000620005a86200082660201b60201c565b60ff1660ff1681526020019081526020016000206000620005ce6200087160201b60201c565b60ff1660ff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060018060006200060e6200083f60201b60201c565b60ff1660ff1681526020019081526020016000206000620006346200082660201b60201c565b60ff1660ff16815260200190815260200160002060006200065a6200088a60201b60201c565b60ff1660ff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060018060006200069a6200083f60201b60201c565b60ff1660ff1681526020019081526020016000206000620006c06200088a60201b60201c565b60ff1660ff1681526020019081526020016000206000620006e6620007a960201b60201c565b60ff1660ff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506001806000620007266200083f60201b60201c565b60ff1660ff16815260200190815260200160002060006200074c620007a960201b60201c565b60ff1660ff1681526020019081526020016000206000620007726200080d60201b60201c565b60ff1660ff16815260200190815260200160002060006101000a81548160ff021916908315150217905550565b6000819050919050565b6000620007bd6064620008a360201b60201c565b905090565b6000620007d6606e620008a360201b60201c565b905090565b6000620007ef60d2620008a360201b60201c565b905090565b60006200080860d26200079f60201b60201c565b905090565b60006200082160c8620008a360201b60201c565b905090565b60006200083a600a620008a360201b60201c565b905090565b60006200085360c86200079f60201b60201c565b905090565b60006200086c6014620008a360201b60201c565b905090565b600062000885601e620008a360201b60201c565b905090565b60006200089e6028620008a360201b60201c565b905090565b6000819050919050565b6105f280620008bd6000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80630d35818114610051578063a898967514610081578063bf1db3f91461009d578063e9e96c70146100cd575b600080fd5b61006b600480360381019061006691906103bb565b6100fd565b6040516100789190610423565b60405180910390f35b61009b6004803603810190610096919061046a565b61012c565b005b6100b760048036038101906100b291906103bb565b610272565b6040516100c491906104d8565b60405180910390f35b6100e760048036038101906100e2919061046a565b61031d565b6040516100f491906104d8565b60405180910390f35b60008060008360ff1660ff16815260200190815260200160002060009054906101000a900460ff169050919050565b6000808460ff1660ff16815260200190815260200160002060009054906101000a900460ff1660ff1673__$2a12cf1a40369f689f3a67e70f4b31dadc$__636f91962090916040518263ffffffff1660e01b815260040161018d9190610502565b602060405180830381865af41580156101aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101ce9190610549565b61026d57600160008460ff1660ff16815260200190815260200160002060008360ff1660ff16815260200190815260200160002060008260ff1660ff16815260200190815260200160002060009054906101000a900460ff1661026c578282826040517f6bb20ea700000000000000000000000000000000000000000000000000000000815260040161026393929190610585565b60405180910390fd5b5b505050565b60008060008360ff1660ff16815260200190815260200160002060009054906101000a900460ff1660ff1673__$2a12cf1a40369f689f3a67e70f4b31dadc$__63b2466acf90916040518263ffffffff1660e01b81526004016102d59190610502565b602060405180830381865af41580156102f2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103169190610549565b9050919050565b6000600160008560ff1660ff16815260200190815260200160002060008460ff1660ff16815260200190815260200160002060008360ff1660ff16815260200190815260200160002060009054906101000a900460ff1690509392505050565b600080fd5b600060ff82169050919050565b61039881610382565b81146103a357600080fd5b50565b6000813590506103b58161038f565b92915050565b6000602082840312156103d1576103d061037d565b5b60006103df848285016103a6565b91505092915050565b6000819050919050565b600061040d61040861040384610382565b6103e8565b610382565b9050919050565b61041d816103f2565b82525050565b60006020820190506104386000830184610414565b92915050565b61044781610382565b811461045257600080fd5b50565b6000813590506104648161043e565b92915050565b6000806000606084860312156104835761048261037d565b5b6000610491868287016103a6565b93505060206104a286828701610455565b92505060406104b386828701610455565b9150509250925092565b60008115159050919050565b6104d2816104bd565b82525050565b60006020820190506104ed60008301846104c9565b92915050565b6104fc816103f2565b82525050565b600060208201905061051760008301846104f3565b92915050565b610526816104bd565b811461053157600080fd5b50565b6000815190506105438161051d565b92915050565b60006020828403121561055f5761055e61037d565b5b600061056d84828501610534565b91505092915050565b61057f816103f2565b82525050565b600060608201905061059a6000830186610576565b6105a76020830185610414565b6105b46040830184610414565b94935050505056fea26469706673582212208a9e0782cf0e3d07a3e99c0c8cceeffa3a30502a293a292036f5b6762a1d966364736f6c63430008140033",
140
+ "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061004c5760003560e01c80630d35818114610051578063a898967514610081578063bf1db3f91461009d578063e9e96c70146100cd575b600080fd5b61006b600480360381019061006691906103bb565b6100fd565b6040516100789190610423565b60405180910390f35b61009b6004803603810190610096919061046a565b61012c565b005b6100b760048036038101906100b291906103bb565b610272565b6040516100c491906104d8565b60405180910390f35b6100e760048036038101906100e2919061046a565b61031d565b6040516100f491906104d8565b60405180910390f35b60008060008360ff1660ff16815260200190815260200160002060009054906101000a900460ff169050919050565b6000808460ff1660ff16815260200190815260200160002060009054906101000a900460ff1660ff1673__$2a12cf1a40369f689f3a67e70f4b31dadc$__636f91962090916040518263ffffffff1660e01b815260040161018d9190610502565b602060405180830381865af41580156101aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101ce9190610549565b61026d57600160008460ff1660ff16815260200190815260200160002060008360ff1660ff16815260200190815260200160002060008260ff1660ff16815260200190815260200160002060009054906101000a900460ff1661026c578282826040517f6bb20ea700000000000000000000000000000000000000000000000000000000815260040161026393929190610585565b60405180910390fd5b5b505050565b60008060008360ff1660ff16815260200190815260200160002060009054906101000a900460ff1660ff1673__$2a12cf1a40369f689f3a67e70f4b31dadc$__63b2466acf90916040518263ffffffff1660e01b81526004016102d59190610502565b602060405180830381865af41580156102f2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103169190610549565b9050919050565b6000600160008560ff1660ff16815260200190815260200160002060008460ff1660ff16815260200190815260200160002060008360ff1660ff16815260200190815260200160002060009054906101000a900460ff1690509392505050565b600080fd5b600060ff82169050919050565b61039881610382565b81146103a357600080fd5b50565b6000813590506103b58161038f565b92915050565b6000602082840312156103d1576103d061037d565b5b60006103df848285016103a6565b91505092915050565b6000819050919050565b600061040d61040861040384610382565b6103e8565b610382565b9050919050565b61041d816103f2565b82525050565b60006020820190506104386000830184610414565b92915050565b61044781610382565b811461045257600080fd5b50565b6000813590506104648161043e565b92915050565b6000806000606084860312156104835761048261037d565b5b6000610491868287016103a6565b93505060206104a286828701610455565b92505060406104b386828701610455565b9150509250925092565b60008115159050919050565b6104d2816104bd565b82525050565b60006020820190506104ed60008301846104c9565b92915050565b6104fc816103f2565b82525050565b600060208201905061051760008301846104f3565b92915050565b610526816104bd565b811461053157600080fd5b50565b6000815190506105438161051d565b92915050565b60006020828403121561055f5761055e61037d565b5b600061056d84828501610534565b91505092915050565b61057f816103f2565b82525050565b600060608201905061059a6000830186610576565b6105a76020830185610414565b6105b46040830184610414565b94935050505056fea26469706673582212208a9e0782cf0e3d07a3e99c0c8cceeffa3a30502a293a292036f5b6762a1d966364736f6c63430008140033",
141
+ "linkReferences": {
142
+ "contracts/types/StateId.sol": {
143
+ "StateIdLib": [
144
+ {
145
+ "length": 20,
146
+ "start": 2580
147
+ },
148
+ {
149
+ "length": 20,
150
+ "start": 2908
151
+ }
152
+ ]
153
+ }
154
+ },
155
+ "deployedLinkReferences": {
156
+ "contracts/types/StateId.sol": {
157
+ "StateIdLib": [
158
+ {
159
+ "length": 20,
160
+ "start": 343
161
+ },
162
+ {
163
+ "length": 20,
164
+ "start": 671
165
+ }
166
+ ]
167
+ }
168
+ }
169
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../../build-info/746f2ad7b0d888e05db828a61f6d5e10.json"
4
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "ModuleBase",
4
+ "sourceName": "contracts/instance/base/ModuleBase.sol",
5
+ "abi": [],
6
+ "bytecode": "0x",
7
+ "deployedBytecode": "0x",
8
+ "linkReferences": {},
9
+ "deployedLinkReferences": {}
10
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../../build-info/746f2ad7b0d888e05db828a61f6d5e10.json"
4
+ }
@@ -1,33 +1,51 @@
1
1
  {
2
2
  "_format": "hh-sol-artifact-1",
3
- "contractName": "IComponentContract",
4
- "sourceName": "contracts/instance/component/IComponent.sol",
3
+ "contractName": "ServiceBase",
4
+ "sourceName": "contracts/instance/base/ServiceBase.sol",
5
5
  "abi": [
6
6
  {
7
7
  "anonymous": false,
8
8
  "inputs": [
9
9
  {
10
10
  "indexed": false,
11
- "internalType": "uint256",
12
- "name": "idx",
13
- "type": "uint256"
11
+ "internalType": "Version",
12
+ "name": "version",
13
+ "type": "uint24"
14
14
  },
15
15
  {
16
16
  "indexed": false,
17
17
  "internalType": "address",
18
- "name": "module",
18
+ "name": "implementation",
19
19
  "type": "address"
20
20
  },
21
21
  {
22
22
  "indexed": false,
23
- "internalType": "string",
24
- "name": "comment",
25
- "type": "string"
23
+ "internalType": "address",
24
+ "name": "activatedBy",
25
+ "type": "address"
26
26
  }
27
27
  ],
28
- "name": "LogDebug",
28
+ "name": "LogVersionableActivated",
29
29
  "type": "event"
30
30
  },
31
+ {
32
+ "inputs": [
33
+ {
34
+ "internalType": "address",
35
+ "name": "implementation",
36
+ "type": "address"
37
+ },
38
+ {
39
+ "internalType": "address",
40
+ "name": "activatedBy",
41
+ "type": "address"
42
+ }
43
+ ],
44
+ "name": "activate",
45
+ "outputs": [],
46
+ "stateMutability": "nonpayable",
47
+ "type": "function"
48
+ },
31
49
  {
32
50
  "inputs": [],
33
51
  "name": "getData",
@@ -43,12 +61,12 @@
43
61
  },
44
62
  {
45
63
  "inputs": [],
46
- "name": "getInitialOwner",
64
+ "name": "getMajorVersion",
47
65
  "outputs": [
48
66
  {
49
- "internalType": "address",
50
- "name": "initialOwner",
51
- "type": "address"
67
+ "internalType": "VersionPart",
68
+ "name": "majorVersion",
69
+ "type": "uint8"
52
70
  }
53
71
  ],
54
72
  "stateMutability": "view",
@@ -56,15 +74,15 @@
56
74
  },
57
75
  {
58
76
  "inputs": [],
59
- "name": "getInstance",
77
+ "name": "getName",
60
78
  "outputs": [
61
79
  {
62
- "internalType": "contract IInstance",
63
- "name": "instance",
64
- "type": "address"
80
+ "internalType": "string",
81
+ "name": "name",
82
+ "type": "string"
65
83
  }
66
84
  ],
67
- "stateMutability": "view",
85
+ "stateMutability": "pure",
68
86
  "type": "function"
69
87
  },
70
88
  {
@@ -99,7 +117,7 @@
99
117
  "outputs": [
100
118
  {
101
119
  "internalType": "NftId",
102
- "name": "parentNftId",
120
+ "name": "nftId",
103
121
  "type": "uint96"
104
122
  }
105
123
  ],
@@ -123,31 +141,115 @@
123
141
  "inputs": [],
124
142
  "name": "getType",
125
143
  "outputs": [
144
+ {
145
+ "internalType": "ObjectType",
146
+ "name": "",
147
+ "type": "uint8"
148
+ }
149
+ ],
150
+ "stateMutability": "pure",
151
+ "type": "function"
152
+ },
153
+ {
154
+ "inputs": [],
155
+ "name": "getVersion",
156
+ "outputs": [
157
+ {
158
+ "internalType": "Version",
159
+ "name": "",
160
+ "type": "uint24"
161
+ }
162
+ ],
163
+ "stateMutability": "pure",
164
+ "type": "function"
165
+ },
166
+ {
167
+ "inputs": [
126
168
  {
127
169
  "internalType": "uint256",
128
- "name": "objectType",
170
+ "name": "idx",
129
171
  "type": "uint256"
130
172
  }
131
173
  ],
174
+ "name": "getVersion",
175
+ "outputs": [
176
+ {
177
+ "internalType": "Version",
178
+ "name": "",
179
+ "type": "uint24"
180
+ }
181
+ ],
132
182
  "stateMutability": "view",
133
183
  "type": "function"
134
184
  },
135
185
  {
136
186
  "inputs": [],
137
- "name": "isRegisterable",
187
+ "name": "getVersionCount",
138
188
  "outputs": [
139
189
  {
140
- "internalType": "bool",
190
+ "internalType": "uint256",
141
191
  "name": "",
142
- "type": "bool"
192
+ "type": "uint256"
143
193
  }
144
194
  ],
145
- "stateMutability": "pure",
195
+ "stateMutability": "view",
146
196
  "type": "function"
147
197
  },
148
198
  {
149
- "inputs": [],
150
- "name": "isRegistered",
199
+ "inputs": [
200
+ {
201
+ "internalType": "Version",
202
+ "name": "_version",
203
+ "type": "uint24"
204
+ }
205
+ ],
206
+ "name": "getVersionInfo",
207
+ "outputs": [
208
+ {
209
+ "components": [
210
+ {
211
+ "internalType": "Version",
212
+ "name": "version",
213
+ "type": "uint24"
214
+ },
215
+ {
216
+ "internalType": "address",
217
+ "name": "implementation",
218
+ "type": "address"
219
+ },
220
+ {
221
+ "internalType": "address",
222
+ "name": "activatedBy",
223
+ "type": "address"
224
+ },
225
+ {
226
+ "internalType": "Timestamp",
227
+ "name": "activatedAt",
228
+ "type": "uint40"
229
+ },
230
+ {
231
+ "internalType": "Blocknumber",
232
+ "name": "activatedIn",
233
+ "type": "uint32"
234
+ }
235
+ ],
236
+ "internalType": "struct IVersionable.VersionInfo",
237
+ "name": "",
238
+ "type": "tuple"
239
+ }
240
+ ],
241
+ "stateMutability": "view",
242
+ "type": "function"
243
+ },
244
+ {
245
+ "inputs": [
246
+ {
247
+ "internalType": "Version",
248
+ "name": "_version",
249
+ "type": "uint24"
250
+ }
251
+ ],
252
+ "name": "isActivated",
151
253
  "outputs": [
152
254
  {
153
255
  "internalType": "bool",
@@ -170,6 +272,25 @@
170
272
  ],
171
273
  "stateMutability": "nonpayable",
172
274
  "type": "function"
275
+ },
276
+ {
277
+ "inputs": [
278
+ {
279
+ "internalType": "bytes4",
280
+ "name": "interfaceId",
281
+ "type": "bytes4"
282
+ }
283
+ ],
284
+ "name": "supportsInterface",
285
+ "outputs": [
286
+ {
287
+ "internalType": "bool",
288
+ "name": "",
289
+ "type": "bool"
290
+ }
291
+ ],
292
+ "stateMutability": "view",
293
+ "type": "function"
173
294
  }
174
295
  ],
175
296
  "bytecode": "0x",
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../../../build-info/746f2ad7b0d888e05db828a61f6d5e10.json"
4
+ }