@etherisc/gif-next 0.0.2-d408403-475 → 0.0.2-d60aa51-726

Sign up to get free protection for your applications and to get access to all the features.
Files changed (393) hide show
  1. package/README.md +231 -27
  2. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +1 -1
  3. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +302 -23
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +393 -54
  6. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +1 -1
  7. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +217 -23
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +0 -188
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +15 -227
  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 +460 -99
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +491 -80
  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/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +4 -0
  45. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +1206 -0
  46. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
  47. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +775 -0
  48. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
  49. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.json +185 -0
  50. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +4 -0
  51. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +1082 -0
  52. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  53. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +859 -1168
  54. package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.dbg.json +4 -0
  55. package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.json +448 -0
  56. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
  57. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +485 -0
  58. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  59. package/artifacts/contracts/instance/Instance.sol/Instance.json +2411 -1253
  60. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
  61. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +940 -0
  62. package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.dbg.json +4 -0
  63. package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.json +763 -0
  64. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +4 -0
  65. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1422 -0
  66. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
  67. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +970 -0
  68. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
  69. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +512 -0
  70. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
  71. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +272 -0
  72. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +1 -1
  73. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +276 -36
  74. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +1 -1
  75. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +1 -1
  76. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  77. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +27 -158
  78. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  79. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  80. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +37 -245
  81. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  82. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +2 -2
  83. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +4 -0
  84. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +211 -0
  85. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +4 -0
  86. package/artifacts/contracts/instance/module/{bundle/IBundle.sol → IBundle.sol}/IBundle.json +1 -1
  87. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +4 -0
  88. package/artifacts/contracts/instance/module/{distribution/IDistribution.sol → IDistribution.sol}/IDistribution.json +1 -1
  89. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
  90. package/artifacts/contracts/instance/module/{policy/IPolicy.sol → IPolicy.sol}/IPolicy.json +1 -1
  91. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
  92. package/artifacts/contracts/instance/module/{risk/IRisk.sol → IRisk.sol}/IRisk.json +1 -1
  93. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +4 -0
  94. package/artifacts/contracts/instance/{base/ModuleBase.sol/ModuleBase.json → module/ISetup.sol/ISetup.json} +2 -2
  95. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +4 -0
  96. package/artifacts/contracts/instance/module/{treasury/ITreasury.sol → ITreasury.sol}/ITreasury.json +1 -1
  97. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +1 -1
  98. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +375 -79
  99. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
  100. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +349 -53
  101. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  102. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +444 -0
  103. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +1 -1
  104. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +177 -75
  105. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  106. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +174 -53
  107. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  108. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +337 -49
  109. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  110. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +219 -89
  111. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
  112. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +559 -53
  113. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  114. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +464 -0
  115. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
  116. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +409 -120
  117. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  118. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +488 -0
  119. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  120. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +186 -12
  121. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  122. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +377 -37
  123. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
  124. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +947 -0
  125. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +4 -0
  126. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +34 -0
  127. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  128. package/artifacts/contracts/registry/Registry.sol/Registry.json +487 -123
  129. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +4 -0
  130. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +1293 -0
  131. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
  132. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +517 -0
  133. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
  134. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +410 -0
  135. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +4 -0
  136. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +107 -0
  137. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  138. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +2 -2
  139. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
  140. package/artifacts/contracts/{instance/module/component/ComponentModule.sol/ComponentModule.json → shared/INftOwnable.sol/INftOwnable.json} +67 -57
  141. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  142. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +117 -37
  143. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
  144. package/artifacts/contracts/{instance/base/InstanceBase.sol/InstanceBase.json → shared/IService.sol/IService.json} +168 -123
  145. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  146. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +55 -14
  147. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
  148. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +158 -0
  149. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +4 -0
  150. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +349 -0
  151. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  152. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +190 -37
  153. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +4 -0
  154. package/artifacts/contracts/{instance/base/IService.sol/IService.json → shared/RegisterableUpgradable.sol/RegisterableUpgradable.json} +215 -73
  155. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
  156. package/artifacts/contracts/{instance/base/ServiceBase.sol/ServiceBase.json → shared/Service.sol/Service.json} +222 -54
  157. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +4 -0
  158. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +96 -0
  159. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
  160. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +129 -0
  161. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  162. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +78 -14
  163. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  164. package/artifacts/contracts/test/TestFee.sol/TestFee.json +4 -4
  165. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  166. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +204 -36
  167. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  168. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +14 -14
  169. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  170. package/artifacts/contracts/test/TestService.sol/TestService.json +283 -62
  171. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  172. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +91 -53
  173. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  174. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
  175. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  176. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +103 -23
  177. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  178. package/artifacts/contracts/test/Usdc.sol/USDC.json +91 -53
  179. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  180. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  181. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  182. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
  183. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +104 -0
  184. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  185. package/artifacts/contracts/types/Fee.sol/FeeLib.json +4 -4
  186. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  187. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +31 -17
  188. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  189. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +2 -2
  190. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  191. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +26 -3
  192. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +4 -0
  193. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +100 -0
  194. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  195. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  196. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +4 -0
  197. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +123 -0
  198. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
  199. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +2 -2
  200. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  201. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +134 -8
  202. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  203. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  204. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  205. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +15 -2
  206. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +4 -0
  207. package/artifacts/contracts/types/UFixed.sol/MathLib.json +10 -0
  208. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +4 -0
  209. package/artifacts/contracts/types/UFixed.sol/{UFixedMathLib.json → UFixedLib.json} +3 -3
  210. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  211. package/artifacts/contracts/types/Version.sol/VersionLib.json +40 -2
  212. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  213. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +22 -3
  214. package/contracts/components/BaseComponent.sol +75 -37
  215. package/contracts/components/Distribution.sol +49 -18
  216. package/contracts/components/IBaseComponent.sol +15 -3
  217. package/contracts/components/IDistributionComponent.sol +3 -7
  218. package/contracts/components/IPoolComponent.sol +7 -12
  219. package/contracts/components/IProductComponent.sol +4 -7
  220. package/contracts/components/Pool.sol +111 -79
  221. package/contracts/components/Product.sol +110 -48
  222. package/contracts/experiment/cloning/Cloner.sol +47 -0
  223. package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +23 -0
  224. package/contracts/instance/BundleManager.sol +129 -0
  225. package/contracts/instance/Cloneable.sol +46 -0
  226. package/contracts/instance/IAccessManagerSimple.sol +391 -0
  227. package/contracts/instance/IInstance.sol +48 -45
  228. package/contracts/instance/IInstanceBase.sol +26 -0
  229. package/contracts/instance/IInstanceService.sol +32 -0
  230. package/contracts/instance/Instance.sol +436 -57
  231. package/contracts/instance/InstanceAccessManager.sol +288 -0
  232. package/contracts/instance/InstanceBase.sol +41 -0
  233. package/contracts/instance/InstanceReader.sol +315 -0
  234. package/contracts/instance/InstanceService.sol +233 -0
  235. package/contracts/instance/InstanceServiceManager.sol +57 -0
  236. package/contracts/instance/ObjectManager.sol +95 -0
  237. package/contracts/instance/base/ComponentServiceBase.sol +102 -10
  238. package/contracts/instance/base/IInstanceBase.sol +3 -2
  239. package/contracts/instance/base/IKeyValueStore.sol +13 -14
  240. package/contracts/instance/base/ILifecycle.sol +3 -3
  241. package/contracts/instance/base/KeyValueStore.sol +49 -38
  242. package/contracts/instance/base/Lifecycle.sol +1 -1
  243. package/contracts/instance/module/IAccess.sol +38 -0
  244. package/contracts/instance/module/IBundle.sol +20 -0
  245. package/contracts/instance/module/IDistribution.sol +39 -0
  246. package/contracts/instance/module/IPolicy.sol +45 -0
  247. package/contracts/instance/module/IRisk.sol +11 -0
  248. package/contracts/instance/module/ISetup.sol +46 -0
  249. package/contracts/instance/module/ITreasury.sol +23 -0
  250. package/contracts/instance/service/ComponentOwnerService.sol +232 -72
  251. package/contracts/instance/service/DistributionService.sol +49 -20
  252. package/contracts/instance/service/DistributionServiceManager.sol +54 -0
  253. package/contracts/instance/service/IComponentOwnerService.sol +1 -3
  254. package/contracts/instance/service/IDistributionService.sol +1 -1
  255. package/contracts/instance/service/IPoolService.sol +17 -3
  256. package/contracts/instance/service/IProductService.sol +9 -6
  257. package/contracts/instance/service/PoolService.sol +190 -52
  258. package/contracts/instance/service/PoolServiceManager.sol +54 -0
  259. package/contracts/instance/service/ProductService.sol +195 -134
  260. package/contracts/instance/service/ProductServiceManager.sol +54 -0
  261. package/contracts/registry/ChainNft.sol +80 -37
  262. package/contracts/registry/IRegistry.sol +49 -25
  263. package/contracts/registry/IRegistryService.sol +50 -0
  264. package/contracts/registry/ITransferInterceptor.sol +6 -0
  265. package/contracts/registry/Registry.sol +336 -270
  266. package/contracts/registry/RegistryService.sol +358 -0
  267. package/contracts/registry/RegistryServiceManager.sol +80 -0
  268. package/contracts/registry/TokenRegistry.sol +111 -0
  269. package/contracts/shared/ContractDeployerLib.sol +72 -0
  270. package/contracts/shared/ERC165.sol +6 -2
  271. package/contracts/shared/INftOwnable.sol +22 -0
  272. package/contracts/shared/IRegisterable.sol +8 -15
  273. package/contracts/{instance/base → shared}/IService.sol +3 -3
  274. package/contracts/shared/IVersionable.sol +55 -11
  275. package/contracts/shared/NftOwnable.sol +134 -0
  276. package/contracts/shared/ProxyManager.sol +94 -0
  277. package/contracts/shared/Registerable.sol +63 -59
  278. package/contracts/shared/RegisterableUpgradable.sol +16 -0
  279. package/contracts/shared/Service.sol +55 -0
  280. package/contracts/shared/TokenHandler.sol +27 -0
  281. package/contracts/shared/UpgradableProxyWithAdmin.sol +16 -0
  282. package/contracts/shared/Versionable.sol +113 -55
  283. package/contracts/test/TestFee.sol +2 -2
  284. package/contracts/test/TestRegisterable.sol +5 -6
  285. package/contracts/test/TestRoleId.sol +1 -1
  286. package/contracts/test/TestService.sol +5 -13
  287. package/contracts/types/DistributorType.sol +55 -0
  288. package/contracts/types/Fee.sol +3 -3
  289. package/contracts/types/Key32.sol +8 -3
  290. package/contracts/types/NftIdSet.sol +26 -24
  291. package/contracts/types/NumberId.sol +52 -0
  292. package/contracts/types/ObjectType.sol +35 -14
  293. package/contracts/types/Referral.sol +85 -0
  294. package/contracts/types/RoleId.sol +61 -9
  295. package/contracts/types/StateId.sol +5 -1
  296. package/contracts/types/Timestamp.sol +7 -3
  297. package/contracts/types/UFixed.sol +128 -12
  298. package/contracts/types/Version.sol +13 -1
  299. package/package.json +4 -3
  300. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +0 -4
  301. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.json +0 -24
  302. package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +0 -4
  303. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +0 -4
  304. package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +0 -4
  305. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +0 -4
  306. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +0 -4
  307. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.json +0 -333
  308. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +0 -4
  309. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.json +0 -10
  310. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +0 -4
  311. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.json +0 -333
  312. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +0 -4
  313. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +0 -297
  314. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +0 -4
  315. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +0 -4
  316. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +0 -297
  317. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
  318. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +0 -4
  319. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.json +0 -10
  320. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +0 -4
  321. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.json +0 -117
  322. package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.dbg.json +0 -4
  323. package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.json +0 -10
  324. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistribution.dbg.json +0 -4
  325. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.dbg.json +0 -4
  326. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.json +0 -10
  327. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
  328. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
  329. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.json +0 -284
  330. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
  331. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +0 -284
  332. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +0 -4
  333. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.json +0 -10
  334. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
  335. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.json +0 -144
  336. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
  337. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +0 -144
  338. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +0 -4
  339. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +0 -4
  340. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +0 -113
  341. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +0 -4
  342. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +0 -131
  343. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +0 -4
  344. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +0 -4
  345. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +0 -511
  346. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +0 -4
  347. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +0 -76
  348. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +0 -4
  349. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +0 -511
  350. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
  351. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.json +0 -452
  352. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +0 -4
  353. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.json +0 -24
  354. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +0 -4
  355. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.json +0 -24
  356. package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.dbg.json +0 -4
  357. package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.json +0 -405
  358. package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +0 -4
  359. package/artifacts/contracts/test/TestPool.sol/TestPool.json +0 -578
  360. package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +0 -4
  361. package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +0 -575
  362. package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.dbg.json +0 -4
  363. package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.json +0 -99
  364. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
  365. package/contracts/experiment/statemachine/README.md +0 -112
  366. package/contracts/instance/IInstanceLinked.sol +0 -8
  367. package/contracts/instance/base/InstanceBase.sol +0 -91
  368. package/contracts/instance/base/ModuleBase.sol +0 -57
  369. package/contracts/instance/base/ServiceBase.sol +0 -37
  370. package/contracts/instance/module/access/Access.sol +0 -149
  371. package/contracts/instance/module/access/IAccess.sol +0 -53
  372. package/contracts/instance/module/bundle/BundleModule.sol +0 -134
  373. package/contracts/instance/module/bundle/IBundle.sol +0 -53
  374. package/contracts/instance/module/component/ComponentModule.sol +0 -70
  375. package/contracts/instance/module/component/IComponent.sol +0 -28
  376. package/contracts/instance/module/distribution/DistributionModule.sol +0 -17
  377. package/contracts/instance/module/distribution/IDistribution.sol +0 -10
  378. package/contracts/instance/module/policy/IPolicy.sol +0 -63
  379. package/contracts/instance/module/policy/PolicyModule.sol +0 -91
  380. package/contracts/instance/module/pool/IPoolModule.sol +0 -40
  381. package/contracts/instance/module/pool/PoolModule.sol +0 -90
  382. package/contracts/instance/module/risk/IRisk.sol +0 -26
  383. package/contracts/instance/module/risk/RiskModule.sol +0 -62
  384. package/contracts/instance/module/treasury/ITreasury.sol +0 -82
  385. package/contracts/instance/module/treasury/TokenHandler.sol +0 -48
  386. package/contracts/instance/module/treasury/TreasuryModule.sol +0 -138
  387. package/contracts/registry/IChainNft.sol +0 -21
  388. package/contracts/registry/IRegistryLinked.sol +0 -8
  389. package/contracts/shared/IOwnable.sol +0 -6
  390. package/contracts/test/TestDistribution.sol +0 -21
  391. package/contracts/test/TestPool.sol +0 -25
  392. package/contracts/test/TestProduct.sol +0 -72
  393. package/contracts/types/ReferralId.sol +0 -48
@@ -1,98 +1,153 @@
1
1
  {
2
2
  "_format": "hh-sol-artifact-1",
3
- "contractName": "InstanceBase",
4
- "sourceName": "contracts/instance/base/InstanceBase.sol",
3
+ "contractName": "IService",
4
+ "sourceName": "contracts/shared/IService.sol",
5
5
  "abi": [
6
6
  {
7
- "anonymous": false,
8
7
  "inputs": [
9
8
  {
10
- "indexed": false,
11
- "internalType": "Version",
12
- "name": "version",
13
- "type": "uint24"
14
- },
15
- {
16
- "indexed": false,
17
9
  "internalType": "address",
18
- "name": "implementation",
10
+ "name": "registry",
19
11
  "type": "address"
20
12
  },
21
13
  {
22
- "indexed": false,
23
- "internalType": "address",
24
- "name": "activatedBy",
25
- "type": "address"
14
+ "internalType": "NftId",
15
+ "name": "nftId",
16
+ "type": "uint96"
26
17
  }
27
18
  ],
28
- "name": "LogVersionableActivated",
29
- "type": "event"
19
+ "name": "ErrorAlreadyLinked",
20
+ "type": "error"
30
21
  },
31
22
  {
32
23
  "inputs": [
33
24
  {
34
25
  "internalType": "address",
35
- "name": "implementation",
26
+ "name": "contractAddress",
36
27
  "type": "address"
37
- },
28
+ }
29
+ ],
30
+ "name": "ErrorContractNotRegistered",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [
38
35
  {
39
36
  "internalType": "address",
40
- "name": "activatedBy",
37
+ "name": "account",
41
38
  "type": "address"
42
39
  }
43
40
  ],
44
- "name": "activate",
45
- "outputs": [],
46
- "stateMutability": "nonpayable",
47
- "type": "function"
41
+ "name": "ErrorNotOwner",
42
+ "type": "error"
48
43
  },
49
44
  {
50
- "inputs": [],
51
- "name": "getComponentOwnerService",
52
- "outputs": [
45
+ "inputs": [
53
46
  {
54
- "internalType": "contract IComponentOwnerService",
55
- "name": "service",
47
+ "internalType": "address",
48
+ "name": "registryAddress",
56
49
  "type": "address"
57
50
  }
58
51
  ],
59
- "stateMutability": "view",
60
- "type": "function"
52
+ "name": "ErrorNotRegistry",
53
+ "type": "error"
61
54
  },
62
55
  {
63
56
  "inputs": [],
64
- "name": "getData",
65
- "outputs": [
57
+ "name": "ErrorRegistryAddressZero",
58
+ "type": "error"
59
+ },
60
+ {
61
+ "inputs": [
66
62
  {
67
- "internalType": "bytes",
68
- "name": "data",
69
- "type": "bytes"
63
+ "internalType": "address",
64
+ "name": "registry",
65
+ "type": "address"
70
66
  }
71
67
  ],
72
- "stateMutability": "view",
73
- "type": "function"
68
+ "name": "ErrorRegistryAlreadyInitialized",
69
+ "type": "error"
74
70
  },
75
71
  {
76
72
  "inputs": [],
77
- "name": "getDistributionService",
78
- "outputs": [
73
+ "name": "ErrorRegistryNotInitialized",
74
+ "type": "error"
75
+ },
76
+ {
77
+ "anonymous": false,
78
+ "inputs": [
79
79
  {
80
- "internalType": "contract IDistributionService",
81
- "name": "",
80
+ "indexed": false,
81
+ "internalType": "Version",
82
+ "name": "version",
83
+ "type": "uint24"
84
+ },
85
+ {
86
+ "indexed": false,
87
+ "internalType": "address",
88
+ "name": "implementation",
89
+ "type": "address"
90
+ },
91
+ {
92
+ "indexed": false,
93
+ "internalType": "address",
94
+ "name": "activatedBy",
82
95
  "type": "address"
83
96
  }
84
97
  ],
85
- "stateMutability": "view",
86
- "type": "function"
98
+ "name": "LogVersionableInitialized",
99
+ "type": "event"
87
100
  },
88
101
  {
89
102
  "inputs": [],
90
- "name": "getKeyValueStore",
103
+ "name": "getInitialInfo",
91
104
  "outputs": [
92
105
  {
93
- "internalType": "contract IKeyValueStore",
94
- "name": "keyValueStore",
95
- "type": "address"
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
+ },
147
+ {
148
+ "internalType": "bytes",
149
+ "name": "data",
150
+ "type": "bytes"
96
151
  }
97
152
  ],
98
153
  "stateMutability": "view",
@@ -100,12 +155,12 @@
100
155
  },
101
156
  {
102
157
  "inputs": [],
103
- "name": "getNftId",
158
+ "name": "getInitializedVersion",
104
159
  "outputs": [
105
160
  {
106
- "internalType": "NftId",
107
- "name": "nftId",
108
- "type": "uint96"
161
+ "internalType": "uint64",
162
+ "name": "",
163
+ "type": "uint64"
109
164
  }
110
165
  ],
111
166
  "stateMutability": "view",
@@ -113,12 +168,12 @@
113
168
  },
114
169
  {
115
170
  "inputs": [],
116
- "name": "getOwner",
171
+ "name": "getMajorVersion",
117
172
  "outputs": [
118
173
  {
119
- "internalType": "address",
120
- "name": "owner",
121
- "type": "address"
174
+ "internalType": "VersionPart",
175
+ "name": "majorVersion",
176
+ "type": "uint8"
122
177
  }
123
178
  ],
124
179
  "stateMutability": "view",
@@ -126,25 +181,25 @@
126
181
  },
127
182
  {
128
183
  "inputs": [],
129
- "name": "getParentNftId",
184
+ "name": "getName",
130
185
  "outputs": [
131
186
  {
132
- "internalType": "NftId",
133
- "name": "nftId",
134
- "type": "uint96"
187
+ "internalType": "string",
188
+ "name": "name",
189
+ "type": "string"
135
190
  }
136
191
  ],
137
- "stateMutability": "view",
192
+ "stateMutability": "pure",
138
193
  "type": "function"
139
194
  },
140
195
  {
141
196
  "inputs": [],
142
- "name": "getPoolService",
197
+ "name": "getNftId",
143
198
  "outputs": [
144
199
  {
145
- "internalType": "contract IPoolService",
146
- "name": "service",
147
- "type": "address"
200
+ "internalType": "NftId",
201
+ "name": "",
202
+ "type": "uint96"
148
203
  }
149
204
  ],
150
205
  "stateMutability": "view",
@@ -152,11 +207,11 @@
152
207
  },
153
208
  {
154
209
  "inputs": [],
155
- "name": "getProductService",
210
+ "name": "getOwner",
156
211
  "outputs": [
157
212
  {
158
- "internalType": "contract IProductService",
159
- "name": "service",
213
+ "internalType": "address",
214
+ "name": "",
160
215
  "type": "address"
161
216
  }
162
217
  ],
@@ -169,45 +224,13 @@
169
224
  "outputs": [
170
225
  {
171
226
  "internalType": "contract IRegistry",
172
- "name": "registry",
227
+ "name": "",
173
228
  "type": "address"
174
229
  }
175
230
  ],
176
231
  "stateMutability": "view",
177
232
  "type": "function"
178
233
  },
179
- {
180
- "inputs": [
181
- {
182
- "internalType": "Key32",
183
- "name": "key",
184
- "type": "bytes32"
185
- }
186
- ],
187
- "name": "getState",
188
- "outputs": [
189
- {
190
- "internalType": "StateId",
191
- "name": "state",
192
- "type": "uint8"
193
- }
194
- ],
195
- "stateMutability": "view",
196
- "type": "function"
197
- },
198
- {
199
- "inputs": [],
200
- "name": "getType",
201
- "outputs": [
202
- {
203
- "internalType": "ObjectType",
204
- "name": "objectType",
205
- "type": "uint8"
206
- }
207
- ],
208
- "stateMutability": "pure",
209
- "type": "function"
210
- },
211
234
  {
212
235
  "inputs": [],
213
236
  "name": "getVersion",
@@ -225,7 +248,7 @@
225
248
  "inputs": [
226
249
  {
227
250
  "internalType": "uint256",
228
- "name": "idx",
251
+ "name": "index",
229
252
  "type": "uint256"
230
253
  }
231
254
  ],
@@ -233,7 +256,7 @@
233
256
  "outputs": [
234
257
  {
235
258
  "internalType": "Version",
236
- "name": "",
259
+ "name": "version",
237
260
  "type": "uint24"
238
261
  }
239
262
  ],
@@ -246,7 +269,7 @@
246
269
  "outputs": [
247
270
  {
248
271
  "internalType": "uint256",
249
- "name": "",
272
+ "name": "numberOfVersions",
250
273
  "type": "uint256"
251
274
  }
252
275
  ],
@@ -257,7 +280,7 @@
257
280
  "inputs": [
258
281
  {
259
282
  "internalType": "Version",
260
- "name": "_version",
283
+ "name": "version",
261
284
  "type": "uint24"
262
285
  }
263
286
  ],
@@ -292,22 +315,45 @@
292
315
  }
293
316
  ],
294
317
  "internalType": "struct IVersionable.VersionInfo",
295
- "name": "",
318
+ "name": "versionInfo",
296
319
  "type": "tuple"
297
320
  }
298
321
  ],
299
322
  "stateMutability": "view",
300
323
  "type": "function"
301
324
  },
325
+ {
326
+ "inputs": [
327
+ {
328
+ "internalType": "address",
329
+ "name": "implementation",
330
+ "type": "address"
331
+ },
332
+ {
333
+ "internalType": "address",
334
+ "name": "activatedBy",
335
+ "type": "address"
336
+ },
337
+ {
338
+ "internalType": "bytes",
339
+ "name": "activationData",
340
+ "type": "bytes"
341
+ }
342
+ ],
343
+ "name": "initialize",
344
+ "outputs": [],
345
+ "stateMutability": "nonpayable",
346
+ "type": "function"
347
+ },
302
348
  {
303
349
  "inputs": [
304
350
  {
305
351
  "internalType": "Version",
306
- "name": "_version",
352
+ "name": "version",
307
353
  "type": "uint24"
308
354
  }
309
355
  ],
310
- "name": "isActivated",
356
+ "name": "isInitialized",
311
357
  "outputs": [
312
358
  {
313
359
  "internalType": "bool",
@@ -320,14 +366,8 @@
320
366
  },
321
367
  {
322
368
  "inputs": [],
323
- "name": "register",
324
- "outputs": [
325
- {
326
- "internalType": "NftId",
327
- "name": "nftId",
328
- "type": "uint96"
329
- }
330
- ],
369
+ "name": "linkToRegisteredNftId",
370
+ "outputs": [],
331
371
  "stateMutability": "nonpayable",
332
372
  "type": "function"
333
373
  },
@@ -353,17 +393,22 @@
353
393
  {
354
394
  "inputs": [
355
395
  {
356
- "internalType": "Key32",
357
- "name": "key",
358
- "type": "bytes32"
396
+ "internalType": "address",
397
+ "name": "implementation",
398
+ "type": "address"
359
399
  },
360
400
  {
361
- "internalType": "StateId",
362
- "name": "state",
363
- "type": "uint8"
401
+ "internalType": "address",
402
+ "name": "activatedBy",
403
+ "type": "address"
404
+ },
405
+ {
406
+ "internalType": "bytes",
407
+ "name": "upgradeData",
408
+ "type": "bytes"
364
409
  }
365
410
  ],
366
- "name": "updateState",
411
+ "name": "upgrade",
367
412
  "outputs": [],
368
413
  "stateMutability": "nonpayable",
369
414
  "type": "function"
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/f93a8e80452dc32f10ebad6b13365e96.json"
3
+ "buildInfo": "../../../build-info/1ecb24600495a144208862f75000fc22.json"
4
4
  }
@@ -25,25 +25,20 @@
25
25
  "type": "address"
26
26
  }
27
27
  ],
28
- "name": "LogVersionableActivated",
28
+ "name": "LogVersionableInitialized",
29
29
  "type": "event"
30
30
  },
31
31
  {
32
- "inputs": [
33
- {
34
- "internalType": "address",
35
- "name": "implementation",
36
- "type": "address"
37
- },
32
+ "inputs": [],
33
+ "name": "getInitializedVersion",
34
+ "outputs": [
38
35
  {
39
- "internalType": "address",
40
- "name": "activatedBy",
41
- "type": "address"
36
+ "internalType": "uint64",
37
+ "name": "",
38
+ "type": "uint64"
42
39
  }
43
40
  ],
44
- "name": "activate",
45
- "outputs": [],
46
- "stateMutability": "nonpayable",
41
+ "stateMutability": "view",
47
42
  "type": "function"
48
43
  },
49
44
  {
@@ -137,6 +132,29 @@
137
132
  "stateMutability": "view",
138
133
  "type": "function"
139
134
  },
135
+ {
136
+ "inputs": [
137
+ {
138
+ "internalType": "address",
139
+ "name": "implementation",
140
+ "type": "address"
141
+ },
142
+ {
143
+ "internalType": "address",
144
+ "name": "activatedBy",
145
+ "type": "address"
146
+ },
147
+ {
148
+ "internalType": "bytes",
149
+ "name": "activationData",
150
+ "type": "bytes"
151
+ }
152
+ ],
153
+ "name": "initialize",
154
+ "outputs": [],
155
+ "stateMutability": "nonpayable",
156
+ "type": "function"
157
+ },
140
158
  {
141
159
  "inputs": [
142
160
  {
@@ -145,7 +163,7 @@
145
163
  "type": "uint24"
146
164
  }
147
165
  ],
148
- "name": "isActivated",
166
+ "name": "isInitialized",
149
167
  "outputs": [
150
168
  {
151
169
  "internalType": "bool",
@@ -155,6 +173,29 @@
155
173
  ],
156
174
  "stateMutability": "view",
157
175
  "type": "function"
176
+ },
177
+ {
178
+ "inputs": [
179
+ {
180
+ "internalType": "address",
181
+ "name": "implementation",
182
+ "type": "address"
183
+ },
184
+ {
185
+ "internalType": "address",
186
+ "name": "activatedBy",
187
+ "type": "address"
188
+ },
189
+ {
190
+ "internalType": "bytes",
191
+ "name": "upgradeData",
192
+ "type": "bytes"
193
+ }
194
+ ],
195
+ "name": "upgrade",
196
+ "outputs": [],
197
+ "stateMutability": "nonpayable",
198
+ "type": "function"
158
199
  }
159
200
  ],
160
201
  "bytecode": "0x",
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../build-info/1ecb24600495a144208862f75000fc22.json"
4
+ }