@etherisc/gif-next 0.0.2-ed4dd55 → 0.0.2-efef0ea-320

Sign up to get free protection for your applications and to get access to all the features.
Files changed (384) hide show
  1. package/README.md +178 -6
  2. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +4 -0
  3. package/artifacts/contracts/components/{IPool.sol/IPoolComponent.json → BaseComponent.sol/BaseComponent.json} +55 -60
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +405 -0
  6. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +4 -0
  7. package/artifacts/contracts/{instance/component/IComponent.sol/IComponentContract.json → components/IBaseComponent.sol/IBaseComponent.json} +54 -59
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
  9. package/artifacts/contracts/{instance/component/ComponentModule.sol/ComponentModule.json → components/IDistributionComponent.sol/IDistributionComponent.json} +164 -151
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +4 -0
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +487 -0
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +4 -0
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +370 -0
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +417 -34
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +273 -42
  18. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +4 -0
  19. package/artifacts/contracts/experiment/errors/Require.sol/Require.json +105 -0
  20. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +4 -0
  21. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +105 -0
  22. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
  23. package/artifacts/contracts/experiment/inheritance/A.sol/A.json +2 -2
  24. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
  25. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +2 -2
  26. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
  27. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
  28. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
  29. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
  30. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
  31. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
  32. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +4 -0
  33. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +59 -0
  34. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +4 -0
  35. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +124 -0
  36. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +4 -0
  37. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +74 -0
  38. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +4 -0
  39. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +124 -0
  40. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +4 -0
  41. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +207 -0
  42. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
  43. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +2 -2
  44. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
  45. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +2 -2
  46. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  47. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1427 -271
  48. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +4 -0
  49. package/artifacts/contracts/instance/{component/IComponent.sol → IInstanceLinked.sol}/IInstanceLinked.json +1 -1
  50. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  51. package/artifacts/contracts/instance/Instance.sol/Instance.json +1827 -364
  52. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +4 -0
  53. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +387 -0
  54. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +4 -0
  55. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +113 -0
  56. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +4 -0
  57. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +560 -0
  58. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +4 -0
  59. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.json +115 -0
  60. package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +4 -0
  61. package/artifacts/contracts/instance/base/IService.sol/IService.json +341 -0
  62. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +4 -0
  63. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.json +463 -0
  64. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +4 -0
  65. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +710 -0
  66. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +4 -0
  67. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +169 -0
  68. package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +4 -0
  69. package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.json +10 -0
  70. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +4 -0
  71. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.json +387 -0
  72. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +4 -0
  73. package/artifacts/contracts/instance/{access → module/access}/Access.sol/AccessModule.json +85 -152
  74. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +4 -0
  75. package/artifacts/contracts/instance/{access → module/access}/IAccess.sol/IAccess.json +1 -1
  76. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +4 -0
  77. package/artifacts/contracts/instance/{access → module/access}/IAccess.sol/IAccessModule.json +96 -99
  78. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +4 -0
  79. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +297 -0
  80. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +4 -0
  81. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.json +10 -0
  82. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +4 -0
  83. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +297 -0
  84. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +4 -0
  85. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +117 -0
  86. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +4 -0
  87. package/artifacts/contracts/instance/{component → module/component}/IComponent.sol/IComponent.json +1 -1
  88. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +4 -0
  89. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.json +117 -0
  90. package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.dbg.json +4 -0
  91. package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.json +10 -0
  92. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistribution.dbg.json +4 -0
  93. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistribution.json +10 -0
  94. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.dbg.json +4 -0
  95. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.json +10 -0
  96. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +4 -0
  97. package/artifacts/contracts/instance/{policy → module/policy}/IPolicy.sol/IPolicy.json +1 -1
  98. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +4 -0
  99. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.json +284 -0
  100. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +4 -0
  101. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +284 -0
  102. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +4 -0
  103. package/artifacts/contracts/instance/{pool → module/pool}/IPoolModule.sol/IPool.json +1 -1
  104. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +4 -0
  105. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.json +144 -0
  106. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +4 -0
  107. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +144 -0
  108. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +4 -0
  109. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.json +10 -0
  110. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +4 -0
  111. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +113 -0
  112. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +4 -0
  113. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +131 -0
  114. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +4 -0
  115. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.json +10 -0
  116. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +4 -0
  117. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +511 -0
  118. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +4 -0
  119. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +76 -0
  120. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +4 -0
  121. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +511 -0
  122. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +4 -0
  123. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +618 -0
  124. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
  125. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +507 -0
  126. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +4 -0
  127. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +405 -0
  128. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
  129. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +366 -0
  130. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +4 -0
  131. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +481 -0
  132. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +4 -0
  133. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +671 -0
  134. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
  135. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +630 -0
  136. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
  137. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +945 -0
  138. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  139. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +65 -2
  140. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +1 -1
  141. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  142. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +115 -89
  143. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
  144. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.json +24 -0
  145. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  146. package/artifacts/contracts/registry/Registry.sol/Registry.json +244 -77
  147. package/artifacts/contracts/registry/RegistryUpgradeable.sol/RegistryUpgradeable.dbg.json +4 -0
  148. package/artifacts/contracts/registry/RegistryUpgradeable.sol/RegistryUpgradeable.json +724 -0
  149. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +4 -0
  150. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +35 -0
  151. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +4 -0
  152. package/artifacts/contracts/{registry/IRegistry.sol → shared/IOwnable.sol}/IOwnable.json +1 -1
  153. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +4 -0
  154. package/artifacts/contracts/{registry/IRegistry.sol → shared/IRegisterable.sol}/IRegisterable.json +22 -67
  155. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +4 -0
  156. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +205 -0
  157. package/artifacts/contracts/shared/Proxy.sol/ProxyDeployer.dbg.json +4 -0
  158. package/artifacts/contracts/shared/Proxy.sol/ProxyDeployer.json +248 -0
  159. package/artifacts/contracts/shared/Proxy.sol/ProxyWithProxyAdminGetter.dbg.json +4 -0
  160. package/artifacts/contracts/shared/Proxy.sol/ProxyWithProxyAdminGetter.json +129 -0
  161. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +4 -0
  162. package/artifacts/contracts/{registry/Registry.sol → shared/Registerable.sol}/Registerable.json +23 -68
  163. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +4 -0
  164. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +251 -0
  165. package/artifacts/contracts/shared/VersionableUpgradeable.sol/VersionableUpgradeable.dbg.json +4 -0
  166. package/artifacts/contracts/shared/VersionableUpgradeable.sol/VersionableUpgradeable.json +228 -0
  167. package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.dbg.json +4 -0
  168. package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.json +405 -0
  169. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +4 -0
  170. package/artifacts/contracts/test/TestFee.sol/TestFee.json +119 -0
  171. package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +4 -0
  172. package/artifacts/contracts/test/TestPool.sol/TestPool.json +578 -0
  173. package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +4 -0
  174. package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +575 -0
  175. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +4 -0
  176. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +137 -0
  177. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +4 -0
  178. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +116 -0
  179. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +4 -0
  180. package/artifacts/contracts/test/TestService.sol/TestService.json +466 -0
  181. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +4 -0
  182. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +338 -0
  183. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +4 -0
  184. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +218 -0
  185. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +4 -0
  186. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +293 -0
  187. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +4 -0
  188. package/artifacts/contracts/test/Usdc.sol/USDC.json +338 -0
  189. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +4 -0
  190. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.json +10 -0
  191. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +4 -0
  192. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +174 -0
  193. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  194. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.json +2 -2
  195. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +4 -0
  196. package/artifacts/contracts/types/Fee.sol/FeeLib.json +257 -0
  197. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +4 -0
  198. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +111 -0
  199. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  200. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +148 -5
  201. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +4 -0
  202. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +10 -0
  203. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +4 -0
  204. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +92 -0
  205. package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.dbg.json +4 -0
  206. package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.json +99 -0
  207. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +4 -0
  208. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +86 -0
  209. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +4 -0
  210. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +30 -0
  211. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +4 -0
  212. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +92 -0
  213. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +4 -0
  214. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +236 -0
  215. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +4 -0
  216. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.json +479 -0
  217. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +4 -0
  218. package/artifacts/contracts/types/Version.sol/VersionLib.json +177 -0
  219. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +4 -0
  220. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +30 -0
  221. package/contracts/components/BaseComponent.sol +94 -0
  222. package/contracts/components/Distribution.sol +132 -0
  223. package/contracts/components/IBaseComponent.sol +19 -0
  224. package/contracts/components/IDistributionComponent.sol +47 -0
  225. package/contracts/components/IPoolComponent.sol +71 -0
  226. package/contracts/components/IProductComponent.sol +38 -0
  227. package/contracts/components/Pool.sol +222 -16
  228. package/contracts/components/Product.sol +195 -33
  229. package/contracts/experiment/errors/Require.sol +38 -0
  230. package/contracts/experiment/errors/Revert.sol +44 -0
  231. package/contracts/experiment/inheritance/A.sol +8 -11
  232. package/contracts/experiment/inheritance/B.sol +10 -5
  233. package/contracts/experiment/inheritance/C.sol +11 -5
  234. package/contracts/experiment/inheritance/IA.sol +2 -7
  235. package/contracts/experiment/inheritance/IB.sol +3 -2
  236. package/contracts/experiment/inheritance/IC.sol +4 -3
  237. package/contracts/experiment/statemachine/Dummy.sol +27 -0
  238. package/contracts/experiment/statemachine/ISM.sol +25 -0
  239. package/contracts/experiment/statemachine/README.md +112 -0
  240. package/contracts/experiment/statemachine/SM.sol +57 -0
  241. package/contracts/experiment/statemachine/SimpleStateMachine.sol +31 -0
  242. package/contracts/experiment/types/TypeA.sol +14 -9
  243. package/contracts/experiment/types/TypeB.sol +14 -9
  244. package/contracts/instance/IInstance.sol +41 -8
  245. package/contracts/instance/IInstanceLinked.sol +8 -0
  246. package/contracts/instance/Instance.sol +54 -43
  247. package/contracts/instance/base/ComponentServiceBase.sol +42 -0
  248. package/contracts/instance/base/IInstanceBase.sol +22 -0
  249. package/contracts/instance/base/IKeyValueStore.sol +50 -0
  250. package/contracts/instance/base/ILifecycle.sol +30 -0
  251. package/contracts/instance/base/IService.sol +15 -0
  252. package/contracts/instance/base/InstanceBase.sol +91 -0
  253. package/contracts/instance/base/KeyValueStore.sol +161 -0
  254. package/contracts/instance/base/Lifecycle.sol +100 -0
  255. package/contracts/instance/base/ModuleBase.sol +57 -0
  256. package/contracts/instance/base/ServiceBase.sol +37 -0
  257. package/contracts/instance/module/access/Access.sol +149 -0
  258. package/contracts/instance/module/access/IAccess.sol +53 -0
  259. package/contracts/instance/module/bundle/BundleModule.sol +134 -0
  260. package/contracts/instance/module/bundle/IBundle.sol +53 -0
  261. package/contracts/instance/module/component/ComponentModule.sol +70 -0
  262. package/contracts/instance/module/component/IComponent.sol +28 -0
  263. package/contracts/instance/module/distribution/DistributionModule.sol +17 -0
  264. package/contracts/instance/module/distribution/IDistribution.sol +10 -0
  265. package/contracts/instance/module/policy/IPolicy.sol +63 -0
  266. package/contracts/instance/module/policy/PolicyModule.sol +91 -0
  267. package/contracts/instance/module/pool/IPoolModule.sol +40 -0
  268. package/contracts/instance/module/pool/PoolModule.sol +90 -0
  269. package/contracts/instance/module/risk/IRisk.sol +26 -0
  270. package/contracts/instance/module/risk/RiskModule.sol +62 -0
  271. package/contracts/instance/module/treasury/ITreasury.sol +82 -0
  272. package/contracts/instance/module/treasury/TokenHandler.sol +48 -0
  273. package/contracts/instance/module/treasury/TreasuryModule.sol +138 -0
  274. package/contracts/instance/service/ComponentOwnerService.sol +157 -0
  275. package/contracts/instance/service/DistributionService.sol +59 -0
  276. package/contracts/instance/service/IComponentOwnerService.sol +22 -0
  277. package/contracts/instance/service/IDistributionService.sol +12 -0
  278. package/contracts/instance/service/IPoolService.sol +37 -0
  279. package/contracts/instance/service/IProductService.sol +107 -0
  280. package/contracts/instance/service/PoolService.sol +149 -0
  281. package/contracts/instance/service/ProductService.sol +509 -0
  282. package/contracts/registry/ChainNft.sol +80 -94
  283. package/contracts/registry/IChainNft.sol +10 -7
  284. package/contracts/registry/IRegistry.sol +40 -51
  285. package/contracts/registry/IRegistryLinked.sol +8 -0
  286. package/contracts/registry/Registry.sol +312 -107
  287. package/contracts/registry/RegistryUpgradeable.sol +488 -0
  288. package/contracts/shared/ERC165.sol +21 -0
  289. package/contracts/shared/IOwnable.sol +6 -0
  290. package/contracts/shared/IRegisterable.sol +24 -0
  291. package/contracts/shared/IVersionable.sol +65 -0
  292. package/contracts/shared/Proxy.sol +94 -0
  293. package/contracts/shared/Registerable.sol +86 -0
  294. package/contracts/shared/Versionable.sol +99 -0
  295. package/contracts/shared/VersionableUpgradeable.sol +136 -0
  296. package/contracts/test/TestDistribution.sol +21 -0
  297. package/contracts/test/TestFee.sol +25 -0
  298. package/contracts/test/TestPool.sol +25 -0
  299. package/contracts/test/TestProduct.sol +72 -0
  300. package/contracts/test/TestRegisterable.sol +19 -0
  301. package/contracts/test/TestRoleId.sol +14 -0
  302. package/contracts/test/TestService.sol +32 -0
  303. package/contracts/test/TestToken.sol +26 -0
  304. package/contracts/test/TestVersion.sol +44 -0
  305. package/contracts/test/TestVersionable.sol +17 -0
  306. package/contracts/test/Usdc.sol +26 -0
  307. package/contracts/types/AddressSet.sol +58 -0
  308. package/contracts/types/Blocknumber.sol +118 -0
  309. package/contracts/types/ChainId.sol +24 -10
  310. package/contracts/types/Fee.sol +56 -0
  311. package/contracts/types/Key32.sol +45 -0
  312. package/contracts/types/NftId.sol +55 -8
  313. package/contracts/types/NftIdSet.sol +60 -0
  314. package/contracts/types/ObjectType.sol +131 -0
  315. package/contracts/types/ReferralId.sol +48 -0
  316. package/contracts/types/RiskId.sol +43 -0
  317. package/contracts/types/RoleId.sol +38 -0
  318. package/contracts/types/StateId.sol +101 -0
  319. package/contracts/types/Timestamp.sol +123 -0
  320. package/contracts/types/UFixed.sol +209 -0
  321. package/contracts/types/Version.sol +103 -0
  322. package/package.json +19 -5
  323. package/artifacts/contracts/components/Component.sol/Component.dbg.json +0 -4
  324. package/artifacts/contracts/components/Component.sol/Component.json +0 -179
  325. package/artifacts/contracts/components/Component.sol/InstanceLinked.dbg.json +0 -4
  326. package/artifacts/contracts/components/Component.sol/InstanceLinked.json +0 -35
  327. package/artifacts/contracts/components/IPool.sol/IPoolComponent.dbg.json +0 -4
  328. package/artifacts/contracts/components/IProduct.sol/IProductComponent.dbg.json +0 -4
  329. package/artifacts/contracts/components/IProduct.sol/IProductComponent.json +0 -192
  330. package/artifacts/contracts/instance/access/Access.sol/AccessModule.dbg.json +0 -4
  331. package/artifacts/contracts/instance/access/IAccess.sol/IAccess.dbg.json +0 -4
  332. package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.dbg.json +0 -4
  333. package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.json +0 -35
  334. package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.dbg.json +0 -4
  335. package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.json +0 -50
  336. package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.dbg.json +0 -4
  337. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
  338. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.dbg.json +0 -4
  339. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.json +0 -105
  340. package/artifacts/contracts/instance/component/IComponent.sol/IComponent.dbg.json +0 -4
  341. package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.dbg.json +0 -4
  342. package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.dbg.json +0 -4
  343. package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.json +0 -245
  344. package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.dbg.json +0 -4
  345. package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.json +0 -94
  346. package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.dbg.json +0 -4
  347. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
  348. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
  349. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.json +0 -231
  350. package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
  351. package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.json +0 -231
  352. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPool.dbg.json +0 -4
  353. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
  354. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.json +0 -149
  355. package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
  356. package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.json +0 -162
  357. package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.dbg.json +0 -4
  358. package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.json +0 -75
  359. package/artifacts/contracts/instance/product/IProductService.sol/IProductService.dbg.json +0 -4
  360. package/artifacts/contracts/instance/product/IProductService.sol/IProductService.json +0 -114
  361. package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.dbg.json +0 -4
  362. package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.json +0 -75
  363. package/artifacts/contracts/instance/product/ProductService.sol/ProductService.dbg.json +0 -4
  364. package/artifacts/contracts/instance/product/ProductService.sol/ProductService.json +0 -125
  365. package/artifacts/contracts/registry/IRegistry.sol/IOwnable.dbg.json +0 -4
  366. package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.dbg.json +0 -4
  367. package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.dbg.json +0 -4
  368. package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.json +0 -49
  369. package/artifacts/contracts/registry/Registry.sol/Registerable.dbg.json +0 -4
  370. package/artifacts/contracts/registry/Registry.sol/RegistryLinked.dbg.json +0 -4
  371. package/artifacts/contracts/registry/Registry.sol/RegistryLinked.json +0 -60
  372. package/contracts/components/Component.sol +0 -62
  373. package/contracts/components/IPool.sol +0 -9
  374. package/contracts/components/IProduct.sol +0 -11
  375. package/contracts/instance/access/Access.sol +0 -218
  376. package/contracts/instance/access/IAccess.sol +0 -83
  377. package/contracts/instance/component/ComponentModule.sol +0 -259
  378. package/contracts/instance/component/IComponent.sol +0 -94
  379. package/contracts/instance/policy/IPolicy.sol +0 -66
  380. package/contracts/instance/policy/PolicyModule.sol +0 -106
  381. package/contracts/instance/pool/IPoolModule.sol +0 -40
  382. package/contracts/instance/pool/PoolModule.sol +0 -83
  383. package/contracts/instance/product/IProductService.sol +0 -45
  384. package/contracts/instance/product/ProductService.sol +0 -105
@@ -0,0 +1,630 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "PoolService",
4
+ "sourceName": "contracts/instance/service/PoolService.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "address",
10
+ "name": "registry",
11
+ "type": "address"
12
+ },
13
+ {
14
+ "internalType": "NftId",
15
+ "name": "registryNftId",
16
+ "type": "uint96"
17
+ }
18
+ ],
19
+ "stateMutability": "nonpayable",
20
+ "type": "constructor"
21
+ },
22
+ {
23
+ "inputs": [],
24
+ "name": "InvalidInitialization",
25
+ "type": "error"
26
+ },
27
+ {
28
+ "inputs": [],
29
+ "name": "NotInitializing",
30
+ "type": "error"
31
+ },
32
+ {
33
+ "anonymous": false,
34
+ "inputs": [
35
+ {
36
+ "indexed": false,
37
+ "internalType": "uint64",
38
+ "name": "version",
39
+ "type": "uint64"
40
+ }
41
+ ],
42
+ "name": "Initialized",
43
+ "type": "event"
44
+ },
45
+ {
46
+ "anonymous": false,
47
+ "inputs": [
48
+ {
49
+ "indexed": false,
50
+ "internalType": "Version",
51
+ "name": "version",
52
+ "type": "uint24"
53
+ },
54
+ {
55
+ "indexed": false,
56
+ "internalType": "address",
57
+ "name": "implementation",
58
+ "type": "address"
59
+ },
60
+ {
61
+ "indexed": false,
62
+ "internalType": "address",
63
+ "name": "activatedBy",
64
+ "type": "address"
65
+ }
66
+ ],
67
+ "name": "LogVersionableActivated",
68
+ "type": "event"
69
+ },
70
+ {
71
+ "inputs": [],
72
+ "name": "NAME",
73
+ "outputs": [
74
+ {
75
+ "internalType": "string",
76
+ "name": "",
77
+ "type": "string"
78
+ }
79
+ ],
80
+ "stateMutability": "view",
81
+ "type": "function"
82
+ },
83
+ {
84
+ "inputs": [
85
+ {
86
+ "internalType": "address",
87
+ "name": "implementation",
88
+ "type": "address"
89
+ },
90
+ {
91
+ "internalType": "address",
92
+ "name": "activatedBy",
93
+ "type": "address"
94
+ },
95
+ {
96
+ "internalType": "bytes",
97
+ "name": "activatinData",
98
+ "type": "bytes"
99
+ }
100
+ ],
101
+ "name": "activate",
102
+ "outputs": [],
103
+ "stateMutability": "nonpayable",
104
+ "type": "function"
105
+ },
106
+ {
107
+ "inputs": [
108
+ {
109
+ "internalType": "address",
110
+ "name": "owner",
111
+ "type": "address"
112
+ },
113
+ {
114
+ "components": [
115
+ {
116
+ "internalType": "UFixed",
117
+ "name": "fractionalFee",
118
+ "type": "uint256"
119
+ },
120
+ {
121
+ "internalType": "uint256",
122
+ "name": "fixedFee",
123
+ "type": "uint256"
124
+ }
125
+ ],
126
+ "internalType": "struct Fee",
127
+ "name": "fee",
128
+ "type": "tuple"
129
+ },
130
+ {
131
+ "internalType": "uint256",
132
+ "name": "stakingAmount",
133
+ "type": "uint256"
134
+ },
135
+ {
136
+ "internalType": "uint256",
137
+ "name": "lifetime",
138
+ "type": "uint256"
139
+ },
140
+ {
141
+ "internalType": "bytes",
142
+ "name": "filter",
143
+ "type": "bytes"
144
+ }
145
+ ],
146
+ "name": "createBundle",
147
+ "outputs": [
148
+ {
149
+ "internalType": "NftId",
150
+ "name": "bundleNftId",
151
+ "type": "uint96"
152
+ }
153
+ ],
154
+ "stateMutability": "nonpayable",
155
+ "type": "function"
156
+ },
157
+ {
158
+ "inputs": [],
159
+ "name": "getData",
160
+ "outputs": [
161
+ {
162
+ "internalType": "bytes",
163
+ "name": "data",
164
+ "type": "bytes"
165
+ }
166
+ ],
167
+ "stateMutability": "view",
168
+ "type": "function"
169
+ },
170
+ {
171
+ "inputs": [],
172
+ "name": "getInitializedVersion",
173
+ "outputs": [
174
+ {
175
+ "internalType": "uint64",
176
+ "name": "",
177
+ "type": "uint64"
178
+ }
179
+ ],
180
+ "stateMutability": "view",
181
+ "type": "function"
182
+ },
183
+ {
184
+ "inputs": [],
185
+ "name": "getMajorVersion",
186
+ "outputs": [
187
+ {
188
+ "internalType": "VersionPart",
189
+ "name": "majorVersion",
190
+ "type": "uint8"
191
+ }
192
+ ],
193
+ "stateMutability": "view",
194
+ "type": "function"
195
+ },
196
+ {
197
+ "inputs": [],
198
+ "name": "getName",
199
+ "outputs": [
200
+ {
201
+ "internalType": "string",
202
+ "name": "name",
203
+ "type": "string"
204
+ }
205
+ ],
206
+ "stateMutability": "pure",
207
+ "type": "function"
208
+ },
209
+ {
210
+ "inputs": [],
211
+ "name": "getNftId",
212
+ "outputs": [
213
+ {
214
+ "internalType": "NftId",
215
+ "name": "nftId",
216
+ "type": "uint96"
217
+ }
218
+ ],
219
+ "stateMutability": "view",
220
+ "type": "function"
221
+ },
222
+ {
223
+ "inputs": [],
224
+ "name": "getOwner",
225
+ "outputs": [
226
+ {
227
+ "internalType": "address",
228
+ "name": "owner",
229
+ "type": "address"
230
+ }
231
+ ],
232
+ "stateMutability": "view",
233
+ "type": "function"
234
+ },
235
+ {
236
+ "inputs": [],
237
+ "name": "getParentNftId",
238
+ "outputs": [
239
+ {
240
+ "internalType": "NftId",
241
+ "name": "nftId",
242
+ "type": "uint96"
243
+ }
244
+ ],
245
+ "stateMutability": "view",
246
+ "type": "function"
247
+ },
248
+ {
249
+ "inputs": [],
250
+ "name": "getRegistry",
251
+ "outputs": [
252
+ {
253
+ "internalType": "contract IRegistry",
254
+ "name": "registry",
255
+ "type": "address"
256
+ }
257
+ ],
258
+ "stateMutability": "view",
259
+ "type": "function"
260
+ },
261
+ {
262
+ "inputs": [],
263
+ "name": "getType",
264
+ "outputs": [
265
+ {
266
+ "internalType": "ObjectType",
267
+ "name": "",
268
+ "type": "uint8"
269
+ }
270
+ ],
271
+ "stateMutability": "pure",
272
+ "type": "function"
273
+ },
274
+ {
275
+ "inputs": [],
276
+ "name": "getVersion",
277
+ "outputs": [
278
+ {
279
+ "internalType": "Version",
280
+ "name": "",
281
+ "type": "uint24"
282
+ }
283
+ ],
284
+ "stateMutability": "pure",
285
+ "type": "function"
286
+ },
287
+ {
288
+ "inputs": [
289
+ {
290
+ "internalType": "uint256",
291
+ "name": "idx",
292
+ "type": "uint256"
293
+ }
294
+ ],
295
+ "name": "getVersion",
296
+ "outputs": [
297
+ {
298
+ "internalType": "Version",
299
+ "name": "",
300
+ "type": "uint24"
301
+ }
302
+ ],
303
+ "stateMutability": "view",
304
+ "type": "function"
305
+ },
306
+ {
307
+ "inputs": [],
308
+ "name": "getVersionCount",
309
+ "outputs": [
310
+ {
311
+ "internalType": "uint256",
312
+ "name": "",
313
+ "type": "uint256"
314
+ }
315
+ ],
316
+ "stateMutability": "view",
317
+ "type": "function"
318
+ },
319
+ {
320
+ "inputs": [
321
+ {
322
+ "internalType": "Version",
323
+ "name": "_version",
324
+ "type": "uint24"
325
+ }
326
+ ],
327
+ "name": "getVersionInfo",
328
+ "outputs": [
329
+ {
330
+ "components": [
331
+ {
332
+ "internalType": "Version",
333
+ "name": "version",
334
+ "type": "uint24"
335
+ },
336
+ {
337
+ "internalType": "address",
338
+ "name": "implementation",
339
+ "type": "address"
340
+ },
341
+ {
342
+ "internalType": "address",
343
+ "name": "activatedBy",
344
+ "type": "address"
345
+ },
346
+ {
347
+ "internalType": "Timestamp",
348
+ "name": "activatedAt",
349
+ "type": "uint40"
350
+ },
351
+ {
352
+ "internalType": "Blocknumber",
353
+ "name": "activatedIn",
354
+ "type": "uint32"
355
+ }
356
+ ],
357
+ "internalType": "struct IVersionable.VersionInfo",
358
+ "name": "",
359
+ "type": "tuple"
360
+ }
361
+ ],
362
+ "stateMutability": "view",
363
+ "type": "function"
364
+ },
365
+ {
366
+ "inputs": [
367
+ {
368
+ "internalType": "address",
369
+ "name": "implementation",
370
+ "type": "address"
371
+ },
372
+ {
373
+ "internalType": "address",
374
+ "name": "activatedBy",
375
+ "type": "address"
376
+ },
377
+ {
378
+ "internalType": "bytes",
379
+ "name": "initializationData",
380
+ "type": "bytes"
381
+ }
382
+ ],
383
+ "name": "initialize",
384
+ "outputs": [],
385
+ "stateMutability": "nonpayable",
386
+ "type": "function"
387
+ },
388
+ {
389
+ "inputs": [
390
+ {
391
+ "internalType": "Version",
392
+ "name": "_version",
393
+ "type": "uint24"
394
+ }
395
+ ],
396
+ "name": "isActivated",
397
+ "outputs": [
398
+ {
399
+ "internalType": "bool",
400
+ "name": "",
401
+ "type": "bool"
402
+ }
403
+ ],
404
+ "stateMutability": "view",
405
+ "type": "function"
406
+ },
407
+ {
408
+ "inputs": [],
409
+ "name": "register",
410
+ "outputs": [
411
+ {
412
+ "internalType": "NftId",
413
+ "name": "nftId",
414
+ "type": "uint96"
415
+ }
416
+ ],
417
+ "stateMutability": "nonpayable",
418
+ "type": "function"
419
+ },
420
+ {
421
+ "inputs": [
422
+ {
423
+ "internalType": "NftId",
424
+ "name": "bundleNftId",
425
+ "type": "uint96"
426
+ },
427
+ {
428
+ "components": [
429
+ {
430
+ "internalType": "UFixed",
431
+ "name": "fractionalFee",
432
+ "type": "uint256"
433
+ },
434
+ {
435
+ "internalType": "uint256",
436
+ "name": "fixedFee",
437
+ "type": "uint256"
438
+ }
439
+ ],
440
+ "internalType": "struct Fee",
441
+ "name": "fee",
442
+ "type": "tuple"
443
+ }
444
+ ],
445
+ "name": "setBundleFee",
446
+ "outputs": [],
447
+ "stateMutability": "nonpayable",
448
+ "type": "function"
449
+ },
450
+ {
451
+ "inputs": [
452
+ {
453
+ "components": [
454
+ {
455
+ "internalType": "UFixed",
456
+ "name": "fractionalFee",
457
+ "type": "uint256"
458
+ },
459
+ {
460
+ "internalType": "uint256",
461
+ "name": "fixedFee",
462
+ "type": "uint256"
463
+ }
464
+ ],
465
+ "internalType": "struct Fee",
466
+ "name": "poolFee",
467
+ "type": "tuple"
468
+ },
469
+ {
470
+ "components": [
471
+ {
472
+ "internalType": "UFixed",
473
+ "name": "fractionalFee",
474
+ "type": "uint256"
475
+ },
476
+ {
477
+ "internalType": "uint256",
478
+ "name": "fixedFee",
479
+ "type": "uint256"
480
+ }
481
+ ],
482
+ "internalType": "struct Fee",
483
+ "name": "stakingFee",
484
+ "type": "tuple"
485
+ },
486
+ {
487
+ "components": [
488
+ {
489
+ "internalType": "UFixed",
490
+ "name": "fractionalFee",
491
+ "type": "uint256"
492
+ },
493
+ {
494
+ "internalType": "uint256",
495
+ "name": "fixedFee",
496
+ "type": "uint256"
497
+ }
498
+ ],
499
+ "internalType": "struct Fee",
500
+ "name": "performanceFee",
501
+ "type": "tuple"
502
+ }
503
+ ],
504
+ "name": "setFees",
505
+ "outputs": [],
506
+ "stateMutability": "nonpayable",
507
+ "type": "function"
508
+ },
509
+ {
510
+ "inputs": [
511
+ {
512
+ "internalType": "bytes4",
513
+ "name": "interfaceId",
514
+ "type": "bytes4"
515
+ }
516
+ ],
517
+ "name": "supportsInterface",
518
+ "outputs": [
519
+ {
520
+ "internalType": "bool",
521
+ "name": "",
522
+ "type": "bool"
523
+ }
524
+ ],
525
+ "stateMutability": "view",
526
+ "type": "function"
527
+ },
528
+ {
529
+ "inputs": [
530
+ {
531
+ "internalType": "address",
532
+ "name": "implementation",
533
+ "type": "address"
534
+ },
535
+ {
536
+ "internalType": "address",
537
+ "name": "activatedBy",
538
+ "type": "address"
539
+ },
540
+ {
541
+ "internalType": "bytes",
542
+ "name": "upgradeData",
543
+ "type": "bytes"
544
+ }
545
+ ],
546
+ "name": "upgrade",
547
+ "outputs": [],
548
+ "stateMutability": "nonpayable",
549
+ "type": "function"
550
+ }
551
+ ],
552
+ "bytecode": "0x60e06040523480156200001157600080fd5b5060405162002ad338038062002ad383398101604081905262000034916200075f565b6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff191660011790558181818181816001600160a01b038216620000d25760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a5247422d3031303a52454749535452595f5a45524f000000000060448201526064015b60405180910390fd5b6001600160a01b03821660808190526040516301ffc9a760e01b81526306ecd8ef60e01b60048201526301ffc9a790602401602060405180830381865afa15801562000122573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001489190620007b4565b620001965760405162461bcd60e51b815260206004820152601a60248201527f4552524f523a5247422d3031313a4e4f545f52454749535452590000000000006044820152606401620000c9565b6001600160601b03811660a081905260805160405163e74d052f60e01b815260048101929092526001600160a01b03169063e74d052f90602401602060405180830381865afa158015620001ee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002149190620007b4565b6200026e5760405162461bcd60e51b815260206004820152602360248201527f4552524f523a5247422d3031323a504152454e545f4e4f545f5245474953544560448201526214915160ea1b6064820152608401620000c9565b3360c052631dfba64760e11b60009081526020527f95e5a2564f7af40498dc043c6da135e06324c5edb1f60c2bf4dcdf2da207fa45805460ff1916600117905550620002be905060003362000342565b631b4612f160e31b60009081526020527ffc58a5a01198e68c5a5d0bcd463f9ab550fc4337b1df271aed6dbb33d25fef25805460ff1916600117905550505050620003156209196b60e61b6200031d60201b60201c565b505062000858565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b60006200034e6200061a565b90506200035b81620006a7565b15620003ba5760405162461bcd60e51b815260206004820152602760248201527f4552524f523a56524e2d3030313a56455253494f4e5f414c52454144595f41436044820152661512559055115160ca1b6064820152608401620000c9565b600254156200047b576002805460009190620003d990600190620007df565b81548110620003ec57620003ec62000801565b90600052602060002090600a91828204019190066003029054906101000a900462ffffff1690506200041f82826200074d565b620004795760405162461bcd60e51b8152602060048201526024808201527f4552524f523a56524e2d3030323a56455253494f4e5f4e4f545f494e4352454160448201526353494e4760e01b6064820152608401620000c9565b505b60028054600181018255600091909152600a8082047f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace01805462ffffff808616600394909506939093026101000a848102930219169190911790556040805160a0810182529182526001600160a01b03808616602084015284169082015260608101620005054290565b64ffffffffff1681526020014363ffffffff90811690915262ffffff80841660009081526001602081815260409283902086518154928801516001600160a01b039081166301000000026001600160b81b0319909416919096161791909117815585830151910180546060870151608090970151909516600160c81b0263ffffffff60c81b1964ffffffffff909716600160a01b026001600160c81b031990961692909416919091179390931793909316179055517f68e7327fca0057a787cde34ababb9ef9844ba8065ee03e8781d8122fc15d4419906200060d9083908690869062ffffff9390931683526001600160a01b03918216602084015216604082015260600190565b60405180910390a1505050565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90632efe011390606401602060405180830381865af41580156200067c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620006a2919062000817565b905090565b62ffffff81166000908152600160208190526040808320909101549051631bbffab160e21b8152600160c81b90910463ffffffff166004820152819073__$5f476116ae21c5294e0c0761c07efa7e1c$__90636effeac490602401602060405180830381865af415801562000720573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200074691906200083e565b1192915050565b62ffffff808216908316115b92915050565b600080604083850312156200077357600080fd5b82516001600160a01b03811681146200078b57600080fd5b60208401519092506001600160601b0381168114620007a957600080fd5b809150509250929050565b600060208284031215620007c757600080fd5b81518015158114620007d857600080fd5b9392505050565b818103818111156200075957634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000602082840312156200082a57600080fd5b815162ffffff81168114620007d857600080fd5b6000602082840312156200085157600080fd5b5051919050565b60805160a05160c05161220c620008c76000396000610b6e0152600061022a01526000818161037301528181610644015281816108fc01528181610aef01528181610bb101528181610d9d01528181610f9c015281816110f8015281816111ee0152611674015261220c6000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c8063636450f5116100c3578063a745e3df1161007c578063a745e3df146103ab578063b3c6501514610431578063b88da75914610452578063cde749f414610465578063cf7a1d771461046d578063e3458d531461048057600080fd5b8063636450f5146103c0578063644c45e0146103d357806382678766146103db578063893d20e8146103ee578063946dfcfe146103f6578063a3f4df7e1461040757600080fd5b80631aa3a008116101155780631aa3a0081461020857806331b62a3b146102285780633bc5de301461024e5780634d459c90146102625780635ab1bd53146103715780635b5b48f5146103ab57600080fd5b806301ffc9a7146101525780630abd8434146101945780630d8e6e2c146101a757806315dae03e146101c357806317d7de7c146101d8575b600080fd5b61017f6101603660046117cf565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b61017f6101a2366004611814565b610493565b6101af610536565b60405162ffffff909116815260200161018b565b60285b60405160ff909116815260200161018b565b60408051808201909152600b81526a506f6f6c5365727669636560a81b60208201525b60405161018b9190611881565b6102106105c0565b6040516001600160601b03909116815260200161018b565b7f0000000000000000000000000000000000000000000000000000000000000000610210565b6040805160208101909152600081526101fb565b610314610270366004611814565b6040805160a0810182526000808252602082018190529181018290526060810182905260808101919091525062ffffff908116600090815260016020818152604092839020835160a0810185528154958616815263010000009095046001600160a01b03908116928601929092529091015490811691830191909152600160a01b810464ffffffffff166060830152600160c81b900463ffffffff16608082015290565b60408051825162ffffff1681526020808401516001600160a01b039081169183019190915283830151169181019190915260608083015164ffffffffff169082015260809182015163ffffffff169181019190915260a00161018b565b7f00000000000000000000000000000000000000000000000000000000000000005b6040516001600160a01b03909116815260200161018b565b6103be6103b93660046119ac565b505050565b005b6103be6103ce366004611a96565b6106b9565b6102106108e4565b6103be6103e9366004611acc565b61094b565b610393610acd565b60025460405190815260200161018b565b6101fb6040518060400160405280600b81526020016a506f6f6c5365727669636560a81b81525081565b610439610c2a565b60405167ffffffffffffffff909116815260200161018b565b6101af610460366004611b12565b610c5e565b6101c6610c9f565b6103be61047b3660046119ac565b610d7c565b61021061048e366004611b2b565b610d86565b62ffffff81166000908152600160208190526040808320909101549051631bbffab160e21b8152600160c81b90910463ffffffff166004820152819073__$5f476116ae21c5294e0c0761c07efa7e1c$__90636effeac490602401602060405180830381865af415801561050b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061052f9190611bd4565b1192915050565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90632efe011390606401602060405180830381865af4158015610597573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105bb9190611bed565b905090565b60006105ca610acd565b6001600160a01b0316336001600160a01b03161461062f5760405162461bcd60e51b815260206004820152601760248201527f4552524f523a5247422d3030313a4e4f545f4f574e455200000000000000000060448201526064015b60405180910390fd5b604051632210724360e11b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690634420e486906024016020604051808303816000875af1158015610695573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105bb9190611c1a565b6000806106c6608c610f53565b604051634793b4ab60e01b81526001600160601b038716600482015291935091506000906001600160a01b03831690634793b4ab90602401600060405180830381865afa15801561071b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526107439190810190611cc9565b80516040516330b8415f60e01b81526001600160601b03909116600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af41580156107a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107c59190611d9b565b6108115760405162461bcd60e51b815260206004820152601c60248201527f4552524f523a504c532d3031303a42554e444c455f554e4b4e4f574e000000006044820152606401610626565b8251815161081f9190611273565b6108765760405162461bcd60e51b815260206004820152602260248201527f4552524f523a504c532d3031313a42554e444c455f504f4f4c5f4d49534d4154604482015261086960f31b6064820152608401610626565b60208101849052604051637e8a1e3b60e11b81526001600160a01b0383169063fd143c76906108ab9088908590600401611dbd565b600060405180830381600087803b1580156108c557600080fd5b505af11580156108d9573d6000803e3d6000fd5b505050505050505050565b604051636939560f60e11b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063d272ac1e90602401602060405180830381865afa158015610695573d6000803e3d6000fd5b600080610958608c610f53565b8151604051639ae31ff560e01b81526001600160601b03909116600482015291935091506000906001600160a01b03831690639ae31ff590602401602060405180830381865afa1580156109b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109d49190611c1a565b60405163f2b246c360e01b81526001600160601b03821660048201529091506000906001600160a01b0384169063f2b246c3906024016101e060405180830381865afa158015610a28573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a4c9190611e77565b60a0810188905260c0810187905260e081018690526040516306a5298b60e01b81529091506001600160a01b038416906306a5298b90610a929085908590600401611f36565b600060405180830381600087803b158015610aac57600080fd5b505af1158015610ac0573d6000803e3d6000fd5b5050505050505050505050565b604051636939560f60e11b815230600482015260009081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d272ac1e90602401602060405180830381865afa158015610b36573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b5a9190611c1a565b9050610b67816000611273565b15610b93577f000000000000000000000000000000000000000000000000000000000000000091505090565b60405163df33330b60e01b81526001600160601b03821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063df33330b90602401602060405180830381865afa158015610c00573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c24919061201d565b91505090565b60006105bb7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005467ffffffffffffffff1690565b600060028281548110610c7357610c7361203a565b90600052602060002090600a91828204019190066003029054906101000a900462ffffff169050919050565b6000306001600160a01b0316630d8e6e2c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610cdf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d039190611bed565b60405163c9e66e2960e01b815262ffffff909116600482015273__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__9063c9e66e2990602401602060405180830381865af4158015610d58573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105bb919061205f565b6103b98383611289565b60008080610d94608c610f53565b815191935091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316635ef14b5e8260dc6040516001600160e01b031960e085901b1681526001600160601b03909216600483015260ff1660248201526001600160a01b038d166044820152608060648201526000608482015260a4016020604051808303816000875af1158015610e38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e5c9190611c1a565b6040516346aea9b760e11b81529094506001600160a01b03831690638d5d536e90610e9790879085908e908e908e908e908e9060040161207c565b600060405180830381600087803b158015610eb157600080fd5b505af1158015610ec5573d6000803e3d6000fd5b5050604051639845743760e01b81526001600160601b03808816600483015284166024820152604481018b90526001600160a01b038516925063984574379150606401600060405180830381600087803b158015610f2257600080fd5b505af1158015610f36573d6000803e3d6000fd5b50505050610f468282868b611557565b5050509695505050505050565b6040805160c08101825260008082526020820181905281830181905260608083018290526080830182905260a08301529151636939560f60e11b815233600482015290919081907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063d272ac1e90602401602060405180830381865afa158015610feb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061100f9190611c1a565b6040516330b8415f60e01b81526001600160601b038216600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af415801561106a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061108e9190611d9b565b6110da5760405162461bcd60e51b815260206004820152601760248201527f4552524f525f434f4d504f4e454e545f554e4b4e4f574e0000000000000000006044820152606401610626565b6040516305247a1760e51b81526001600160601b03821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a48f42e090602401600060405180830381865afa158015611147573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261116f91908101906120ed565b925061118583604001518560ff90811691161490565b6111c75760405162461bcd60e51b815260206004820152601360248201527213d0929150d517d516541157d2539590531251606a1b6044820152606401610626565b60208301516040516305247a1760e51b81526001600160601b0390911660048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a48f42e090602401600060405180830381865afa15801561123d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261126591908101906120ed565b606001519395939450505050565b6001600160601b03828116908216145b92915050565b6000611293610536565b905061129e81610493565b156112fb5760405162461bcd60e51b815260206004820152602760248201527f4552524f523a56524e2d3030313a56455253494f4e5f414c52454144595f41436044820152661512559055115160ca1b6064820152608401610626565b600254156113ba576002805460009190611317906001906121b5565b815481106113275761132761203a565b90600052602060002090600a91828204019190066003029054906101000a900462ffffff169050611360828262ffffff90811691161190565b6113b85760405162461bcd60e51b8152602060048201526024808201527f4552524f523a56524e2d3030323a56455253494f4e5f4e4f545f494e4352454160448201526353494e4760e01b6064820152608401610626565b505b60028054600181018255600091909152600a8082047f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace01805462ffffff808616600394909506939093026101000a848102930219169190911790556040805160a0810182529182526001600160a01b038086166020840152841690820152606081016114434290565b64ffffffffff1681526020014363ffffffff90811690915262ffffff80841660009081526001602081815260409283902086518154928801516001600160a01b039081166301000000026001600160b81b0319909416919096161791909117815585830151910180546060870151608090970151909516600160c81b0263ffffffff60c81b1964ffffffffff909716600160a01b026001600160c81b031990961692909416919091179390931793909316179055517f68e7327fca0057a787cde34ababb9ef9844ba8065ee03e8781d8122fc15d44199061154a9083908690869062ffffff9390931683526001600160a01b03918216602084015216604082015260600190565b60405180910390a1505050565b80156117c957604051639ae31ff560e01b81526001600160601b03841660048201526000906001600160a01b03861690639ae31ff590602401602060405180830381865afa1580156115ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115d19190611c1a565b60405163a310e2a360e01b81526001600160601b03821660048201529091506000906001600160a01b0387169063a310e2a390602401602060405180830381865afa158015611624573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611648919061201d565b60405163df33330b60e01b81526001600160601b03861660048201529091506000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063df33330b90602401602060405180830381865afa1580156116bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116df919061201d565b604051630d48c43b60e11b81526001600160601b03881660048201529091506000906001600160a01b03891690631a91887690602401602060405180830381865afa158015611732573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611756919061201d565b6040516317d5759960e31b81526001600160a01b0384811660048301528083166024830152604482018890529192509084169063beabacc890606401600060405180830381600087803b1580156117ac57600080fd5b505af11580156117c0573d6000803e3d6000fd5b50505050505050505b50505050565b6000602082840312156117e157600080fd5b81356001600160e01b0319811681146117f957600080fd5b9392505050565b62ffffff8116811461181157600080fd5b50565b60006020828403121561182657600080fd5b81356117f981611800565b60005b8381101561184c578181015183820152602001611834565b50506000910152565b6000815180845261186d816020860160208601611831565b601f01601f19169290920160200192915050565b6020815260006117f96020830184611855565b6001600160a01b038116811461181157600080fd5b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff811182821017156118e2576118e26118a9565b60405290565b604051610100810167ffffffffffffffff811182821017156118e2576118e26118a9565b604051610120810167ffffffffffffffff811182821017156118e2576118e26118a9565b60405160c0810167ffffffffffffffff811182821017156118e2576118e26118a9565b604051601f8201601f1916810167ffffffffffffffff8111828210171561197c5761197c6118a9565b604052919050565b600067ffffffffffffffff82111561199e5761199e6118a9565b50601f01601f191660200190565b6000806000606084860312156119c157600080fd5b83356119cc81611894565b925060208401356119dc81611894565b9150604084013567ffffffffffffffff8111156119f857600080fd5b8401601f81018613611a0957600080fd5b8035611a1c611a1782611984565b611953565b818152876020838501011115611a3157600080fd5b816020840160208301376000602083830101528093505050509250925092565b6001600160601b038116811461181157600080fd5b600060408284031215611a7857600080fd5b611a806118bf565b9050813581526020820135602082015292915050565b60008060608385031215611aa957600080fd5b8235611ab481611a51565b9150611ac38460208501611a66565b90509250929050565b600080600060c08486031215611ae157600080fd5b611aeb8585611a66565b9250611afa8560408601611a66565b9150611b098560808601611a66565b90509250925092565b600060208284031215611b2457600080fd5b5035919050565b60008060008060008060c08789031215611b4457600080fd5b8635611b4f81611894565b9550611b5e8860208901611a66565b9450606087013593506080870135925060a087013567ffffffffffffffff80821115611b8957600080fd5b818901915089601f830112611b9d57600080fd5b813581811115611bac57600080fd5b8a6020828501011115611bbe57600080fd5b6020830194508093505050509295509295509295565b600060208284031215611be657600080fd5b5051919050565b600060208284031215611bff57600080fd5b81516117f981611800565b8051611c1581611a51565b919050565b600060208284031215611c2c57600080fd5b81516117f981611a51565b600060408284031215611c4957600080fd5b611c516118bf565b9050815181526020820151602082015292915050565b600082601f830112611c7857600080fd5b8151611c86611a1782611984565b818152846020838601011115611c9b57600080fd5b611cac826020830160208701611831565b949350505050565b805164ffffffffff81168114611c1557600080fd5b600060208284031215611cdb57600080fd5b815167ffffffffffffffff80821115611cf357600080fd5b908301906101208286031215611d0857600080fd5b611d106118e8565b611d1983611c0a565b8152611d288660208501611c37565b6020820152606083015182811115611d3f57600080fd5b611d4b87828601611c67565b6040830152506080830151606082015260a0830151608082015260c083015160a0820152611d7b60e08401611cb4565b60c0820152611d8d6101008401611cb4565b60e082015295945050505050565b600060208284031215611dad57600080fd5b815180151581146117f957600080fd5b60006001600160601b03808516835260406020840152808451166040840152506020830151611df9606084018280518252602090810151910152565b5060408301516101208060a0850152611e16610160850183611855565b9150606085015160c0850152608085015160e085015260a085015161010085015260c0850151611e4e8286018264ffffffffff169052565b505060e084015164ffffffffff811661014085015250949350505050565b8051611c1581611894565b60006101e08284031215611e8a57600080fd5b611e9261190c565b611e9b83611c0a565b8152611ea960208401611c0a565b6020820152611eba60408401611e6c565b6040820152611ecc8460608501611c37565b6060820152611ede8460a08501611c37565b6080820152611ef08460e08501611c37565b60a0820152611f03846101208501611c37565b60c0820152611f16846101608501611c37565b60e0820152611f29846101a08501611c37565b6101008201529392505050565b6001600160601b038381168252825116602080830191909152820151610200820190611f6d60408401826001600160601b03169052565b5060408301516001600160a01b038116606084015250606083015180516080840152602081015160a0840152506080830151805160c0840152602081015160e08401525060a0830151610100611fcf8185018380518252602090810151910152565b60c0850151805161014086015260209081015161016086015260e086015180516101808701528101516101a086015294015180516101c0850152909301516101e09092019190915292915050565b60006020828403121561202f57600080fd5b81516117f981611894565b634e487b7160e01b600052603260045260246000fd5b60ff8116811461181157600080fd5b60006020828403121561207157600080fd5b81516117f981612050565b6001600160601b0388811682528716602082015260006120a9604083018880518252602090810151910152565b8560808301528460a083015260e060c08301528260e08301526101008385828501376000838501820152601f909301601f1916909101909101979650505050505050565b6000602082840312156120ff57600080fd5b815167ffffffffffffffff8082111561211757600080fd5b9083019060c0828603121561212b57600080fd5b612133611930565b825161213e81611a51565b8152602083015161214e81611a51565b6020820152604083015161216181612050565b604082015261217260608401611e6c565b606082015261218360808401611e6c565b608082015260a08301518281111561219a57600080fd5b6121a687828601611c67565b60a08301525095945050505050565b8181038181111561128357634e487b7160e01b600052601160045260246000fdfea26469706673582212206eff8707bbde7bae27c3f55fb47f4c8f68b6592749a63caf1cf83fcddcd2834e64736f6c63430008140033",
553
+ "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061014d5760003560e01c8063636450f5116100c3578063a745e3df1161007c578063a745e3df146103ab578063b3c6501514610431578063b88da75914610452578063cde749f414610465578063cf7a1d771461046d578063e3458d531461048057600080fd5b8063636450f5146103c0578063644c45e0146103d357806382678766146103db578063893d20e8146103ee578063946dfcfe146103f6578063a3f4df7e1461040757600080fd5b80631aa3a008116101155780631aa3a0081461020857806331b62a3b146102285780633bc5de301461024e5780634d459c90146102625780635ab1bd53146103715780635b5b48f5146103ab57600080fd5b806301ffc9a7146101525780630abd8434146101945780630d8e6e2c146101a757806315dae03e146101c357806317d7de7c146101d8575b600080fd5b61017f6101603660046117cf565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b61017f6101a2366004611814565b610493565b6101af610536565b60405162ffffff909116815260200161018b565b60285b60405160ff909116815260200161018b565b60408051808201909152600b81526a506f6f6c5365727669636560a81b60208201525b60405161018b9190611881565b6102106105c0565b6040516001600160601b03909116815260200161018b565b7f0000000000000000000000000000000000000000000000000000000000000000610210565b6040805160208101909152600081526101fb565b610314610270366004611814565b6040805160a0810182526000808252602082018190529181018290526060810182905260808101919091525062ffffff908116600090815260016020818152604092839020835160a0810185528154958616815263010000009095046001600160a01b03908116928601929092529091015490811691830191909152600160a01b810464ffffffffff166060830152600160c81b900463ffffffff16608082015290565b60408051825162ffffff1681526020808401516001600160a01b039081169183019190915283830151169181019190915260608083015164ffffffffff169082015260809182015163ffffffff169181019190915260a00161018b565b7f00000000000000000000000000000000000000000000000000000000000000005b6040516001600160a01b03909116815260200161018b565b6103be6103b93660046119ac565b505050565b005b6103be6103ce366004611a96565b6106b9565b6102106108e4565b6103be6103e9366004611acc565b61094b565b610393610acd565b60025460405190815260200161018b565b6101fb6040518060400160405280600b81526020016a506f6f6c5365727669636560a81b81525081565b610439610c2a565b60405167ffffffffffffffff909116815260200161018b565b6101af610460366004611b12565b610c5e565b6101c6610c9f565b6103be61047b3660046119ac565b610d7c565b61021061048e366004611b2b565b610d86565b62ffffff81166000908152600160208190526040808320909101549051631bbffab160e21b8152600160c81b90910463ffffffff166004820152819073__$5f476116ae21c5294e0c0761c07efa7e1c$__90636effeac490602401602060405180830381865af415801561050b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061052f9190611bd4565b1192915050565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90632efe011390606401602060405180830381865af4158015610597573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105bb9190611bed565b905090565b60006105ca610acd565b6001600160a01b0316336001600160a01b03161461062f5760405162461bcd60e51b815260206004820152601760248201527f4552524f523a5247422d3030313a4e4f545f4f574e455200000000000000000060448201526064015b60405180910390fd5b604051632210724360e11b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690634420e486906024016020604051808303816000875af1158015610695573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105bb9190611c1a565b6000806106c6608c610f53565b604051634793b4ab60e01b81526001600160601b038716600482015291935091506000906001600160a01b03831690634793b4ab90602401600060405180830381865afa15801561071b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526107439190810190611cc9565b80516040516330b8415f60e01b81526001600160601b03909116600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af41580156107a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107c59190611d9b565b6108115760405162461bcd60e51b815260206004820152601c60248201527f4552524f523a504c532d3031303a42554e444c455f554e4b4e4f574e000000006044820152606401610626565b8251815161081f9190611273565b6108765760405162461bcd60e51b815260206004820152602260248201527f4552524f523a504c532d3031313a42554e444c455f504f4f4c5f4d49534d4154604482015261086960f31b6064820152608401610626565b60208101849052604051637e8a1e3b60e11b81526001600160a01b0383169063fd143c76906108ab9088908590600401611dbd565b600060405180830381600087803b1580156108c557600080fd5b505af11580156108d9573d6000803e3d6000fd5b505050505050505050565b604051636939560f60e11b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063d272ac1e90602401602060405180830381865afa158015610695573d6000803e3d6000fd5b600080610958608c610f53565b8151604051639ae31ff560e01b81526001600160601b03909116600482015291935091506000906001600160a01b03831690639ae31ff590602401602060405180830381865afa1580156109b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109d49190611c1a565b60405163f2b246c360e01b81526001600160601b03821660048201529091506000906001600160a01b0384169063f2b246c3906024016101e060405180830381865afa158015610a28573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a4c9190611e77565b60a0810188905260c0810187905260e081018690526040516306a5298b60e01b81529091506001600160a01b038416906306a5298b90610a929085908590600401611f36565b600060405180830381600087803b158015610aac57600080fd5b505af1158015610ac0573d6000803e3d6000fd5b5050505050505050505050565b604051636939560f60e11b815230600482015260009081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d272ac1e90602401602060405180830381865afa158015610b36573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b5a9190611c1a565b9050610b67816000611273565b15610b93577f000000000000000000000000000000000000000000000000000000000000000091505090565b60405163df33330b60e01b81526001600160601b03821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063df33330b90602401602060405180830381865afa158015610c00573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c24919061201d565b91505090565b60006105bb7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005467ffffffffffffffff1690565b600060028281548110610c7357610c7361203a565b90600052602060002090600a91828204019190066003029054906101000a900462ffffff169050919050565b6000306001600160a01b0316630d8e6e2c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610cdf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d039190611bed565b60405163c9e66e2960e01b815262ffffff909116600482015273__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__9063c9e66e2990602401602060405180830381865af4158015610d58573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105bb919061205f565b6103b98383611289565b60008080610d94608c610f53565b815191935091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316635ef14b5e8260dc6040516001600160e01b031960e085901b1681526001600160601b03909216600483015260ff1660248201526001600160a01b038d166044820152608060648201526000608482015260a4016020604051808303816000875af1158015610e38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e5c9190611c1a565b6040516346aea9b760e11b81529094506001600160a01b03831690638d5d536e90610e9790879085908e908e908e908e908e9060040161207c565b600060405180830381600087803b158015610eb157600080fd5b505af1158015610ec5573d6000803e3d6000fd5b5050604051639845743760e01b81526001600160601b03808816600483015284166024820152604481018b90526001600160a01b038516925063984574379150606401600060405180830381600087803b158015610f2257600080fd5b505af1158015610f36573d6000803e3d6000fd5b50505050610f468282868b611557565b5050509695505050505050565b6040805160c08101825260008082526020820181905281830181905260608083018290526080830182905260a08301529151636939560f60e11b815233600482015290919081907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063d272ac1e90602401602060405180830381865afa158015610feb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061100f9190611c1a565b6040516330b8415f60e01b81526001600160601b038216600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af415801561106a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061108e9190611d9b565b6110da5760405162461bcd60e51b815260206004820152601760248201527f4552524f525f434f4d504f4e454e545f554e4b4e4f574e0000000000000000006044820152606401610626565b6040516305247a1760e51b81526001600160601b03821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a48f42e090602401600060405180830381865afa158015611147573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261116f91908101906120ed565b925061118583604001518560ff90811691161490565b6111c75760405162461bcd60e51b815260206004820152601360248201527213d0929150d517d516541157d2539590531251606a1b6044820152606401610626565b60208301516040516305247a1760e51b81526001600160601b0390911660048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a48f42e090602401600060405180830381865afa15801561123d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261126591908101906120ed565b606001519395939450505050565b6001600160601b03828116908216145b92915050565b6000611293610536565b905061129e81610493565b156112fb5760405162461bcd60e51b815260206004820152602760248201527f4552524f523a56524e2d3030313a56455253494f4e5f414c52454144595f41436044820152661512559055115160ca1b6064820152608401610626565b600254156113ba576002805460009190611317906001906121b5565b815481106113275761132761203a565b90600052602060002090600a91828204019190066003029054906101000a900462ffffff169050611360828262ffffff90811691161190565b6113b85760405162461bcd60e51b8152602060048201526024808201527f4552524f523a56524e2d3030323a56455253494f4e5f4e4f545f494e4352454160448201526353494e4760e01b6064820152608401610626565b505b60028054600181018255600091909152600a8082047f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace01805462ffffff808616600394909506939093026101000a848102930219169190911790556040805160a0810182529182526001600160a01b038086166020840152841690820152606081016114434290565b64ffffffffff1681526020014363ffffffff90811690915262ffffff80841660009081526001602081815260409283902086518154928801516001600160a01b039081166301000000026001600160b81b0319909416919096161791909117815585830151910180546060870151608090970151909516600160c81b0263ffffffff60c81b1964ffffffffff909716600160a01b026001600160c81b031990961692909416919091179390931793909316179055517f68e7327fca0057a787cde34ababb9ef9844ba8065ee03e8781d8122fc15d44199061154a9083908690869062ffffff9390931683526001600160a01b03918216602084015216604082015260600190565b60405180910390a1505050565b80156117c957604051639ae31ff560e01b81526001600160601b03841660048201526000906001600160a01b03861690639ae31ff590602401602060405180830381865afa1580156115ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115d19190611c1a565b60405163a310e2a360e01b81526001600160601b03821660048201529091506000906001600160a01b0387169063a310e2a390602401602060405180830381865afa158015611624573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611648919061201d565b60405163df33330b60e01b81526001600160601b03861660048201529091506000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063df33330b90602401602060405180830381865afa1580156116bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116df919061201d565b604051630d48c43b60e11b81526001600160601b03881660048201529091506000906001600160a01b03891690631a91887690602401602060405180830381865afa158015611732573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611756919061201d565b6040516317d5759960e31b81526001600160a01b0384811660048301528083166024830152604482018890529192509084169063beabacc890606401600060405180830381600087803b1580156117ac57600080fd5b505af11580156117c0573d6000803e3d6000fd5b50505050505050505b50505050565b6000602082840312156117e157600080fd5b81356001600160e01b0319811681146117f957600080fd5b9392505050565b62ffffff8116811461181157600080fd5b50565b60006020828403121561182657600080fd5b81356117f981611800565b60005b8381101561184c578181015183820152602001611834565b50506000910152565b6000815180845261186d816020860160208601611831565b601f01601f19169290920160200192915050565b6020815260006117f96020830184611855565b6001600160a01b038116811461181157600080fd5b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff811182821017156118e2576118e26118a9565b60405290565b604051610100810167ffffffffffffffff811182821017156118e2576118e26118a9565b604051610120810167ffffffffffffffff811182821017156118e2576118e26118a9565b60405160c0810167ffffffffffffffff811182821017156118e2576118e26118a9565b604051601f8201601f1916810167ffffffffffffffff8111828210171561197c5761197c6118a9565b604052919050565b600067ffffffffffffffff82111561199e5761199e6118a9565b50601f01601f191660200190565b6000806000606084860312156119c157600080fd5b83356119cc81611894565b925060208401356119dc81611894565b9150604084013567ffffffffffffffff8111156119f857600080fd5b8401601f81018613611a0957600080fd5b8035611a1c611a1782611984565b611953565b818152876020838501011115611a3157600080fd5b816020840160208301376000602083830101528093505050509250925092565b6001600160601b038116811461181157600080fd5b600060408284031215611a7857600080fd5b611a806118bf565b9050813581526020820135602082015292915050565b60008060608385031215611aa957600080fd5b8235611ab481611a51565b9150611ac38460208501611a66565b90509250929050565b600080600060c08486031215611ae157600080fd5b611aeb8585611a66565b9250611afa8560408601611a66565b9150611b098560808601611a66565b90509250925092565b600060208284031215611b2457600080fd5b5035919050565b60008060008060008060c08789031215611b4457600080fd5b8635611b4f81611894565b9550611b5e8860208901611a66565b9450606087013593506080870135925060a087013567ffffffffffffffff80821115611b8957600080fd5b818901915089601f830112611b9d57600080fd5b813581811115611bac57600080fd5b8a6020828501011115611bbe57600080fd5b6020830194508093505050509295509295509295565b600060208284031215611be657600080fd5b5051919050565b600060208284031215611bff57600080fd5b81516117f981611800565b8051611c1581611a51565b919050565b600060208284031215611c2c57600080fd5b81516117f981611a51565b600060408284031215611c4957600080fd5b611c516118bf565b9050815181526020820151602082015292915050565b600082601f830112611c7857600080fd5b8151611c86611a1782611984565b818152846020838601011115611c9b57600080fd5b611cac826020830160208701611831565b949350505050565b805164ffffffffff81168114611c1557600080fd5b600060208284031215611cdb57600080fd5b815167ffffffffffffffff80821115611cf357600080fd5b908301906101208286031215611d0857600080fd5b611d106118e8565b611d1983611c0a565b8152611d288660208501611c37565b6020820152606083015182811115611d3f57600080fd5b611d4b87828601611c67565b6040830152506080830151606082015260a0830151608082015260c083015160a0820152611d7b60e08401611cb4565b60c0820152611d8d6101008401611cb4565b60e082015295945050505050565b600060208284031215611dad57600080fd5b815180151581146117f957600080fd5b60006001600160601b03808516835260406020840152808451166040840152506020830151611df9606084018280518252602090810151910152565b5060408301516101208060a0850152611e16610160850183611855565b9150606085015160c0850152608085015160e085015260a085015161010085015260c0850151611e4e8286018264ffffffffff169052565b505060e084015164ffffffffff811661014085015250949350505050565b8051611c1581611894565b60006101e08284031215611e8a57600080fd5b611e9261190c565b611e9b83611c0a565b8152611ea960208401611c0a565b6020820152611eba60408401611e6c565b6040820152611ecc8460608501611c37565b6060820152611ede8460a08501611c37565b6080820152611ef08460e08501611c37565b60a0820152611f03846101208501611c37565b60c0820152611f16846101608501611c37565b60e0820152611f29846101a08501611c37565b6101008201529392505050565b6001600160601b038381168252825116602080830191909152820151610200820190611f6d60408401826001600160601b03169052565b5060408301516001600160a01b038116606084015250606083015180516080840152602081015160a0840152506080830151805160c0840152602081015160e08401525060a0830151610100611fcf8185018380518252602090810151910152565b60c0850151805161014086015260209081015161016086015260e086015180516101808701528101516101a086015294015180516101c0850152909301516101e09092019190915292915050565b60006020828403121561202f57600080fd5b81516117f981611894565b634e487b7160e01b600052603260045260246000fd5b60ff8116811461181157600080fd5b60006020828403121561207157600080fd5b81516117f981612050565b6001600160601b0388811682528716602082015260006120a9604083018880518252602090810151910152565b8560808301528460a083015260e060c08301528260e08301526101008385828501376000838501820152601f909301601f1916909101909101979650505050505050565b6000602082840312156120ff57600080fd5b815167ffffffffffffffff8082111561211757600080fd5b9083019060c0828603121561212b57600080fd5b612133611930565b825161213e81611a51565b8152602083015161214e81611a51565b6020820152604083015161216181612050565b604082015261217260608401611e6c565b606082015261218360808401611e6c565b608082015260a08301518281111561219a57600080fd5b6121a687828601611c67565b60a08301525095945050505050565b8181038181111561128357634e487b7160e01b600052601160045260246000fdfea26469706673582212206eff8707bbde7bae27c3f55fb47f4c8f68b6592749a63caf1cf83fcddcd2834e64736f6c63430008140033",
554
+ "linkReferences": {
555
+ "contracts/types/Blocknumber.sol": {
556
+ "BlocknumberLib": [
557
+ {
558
+ "length": 20,
559
+ "start": 1765
560
+ },
561
+ {
562
+ "length": 20,
563
+ "start": 3480
564
+ }
565
+ ]
566
+ },
567
+ "contracts/types/NftId.sol": {
568
+ "NftIdLib": [
569
+ {
570
+ "length": 20,
571
+ "start": 4142
572
+ },
573
+ {
574
+ "length": 20,
575
+ "start": 6391
576
+ }
577
+ ]
578
+ },
579
+ "contracts/types/Version.sol": {
580
+ "VersionLib": [
581
+ {
582
+ "length": 20,
583
+ "start": 1601
584
+ },
585
+ {
586
+ "length": 20,
587
+ "start": 3620
588
+ },
589
+ {
590
+ "length": 20,
591
+ "start": 5605
592
+ }
593
+ ]
594
+ }
595
+ },
596
+ "deployedLinkReferences": {
597
+ "contracts/types/Blocknumber.sol": {
598
+ "BlocknumberLib": [
599
+ {
600
+ "length": 20,
601
+ "start": 1233
602
+ }
603
+ ]
604
+ },
605
+ "contracts/types/NftId.sol": {
606
+ "NftIdLib": [
607
+ {
608
+ "length": 20,
609
+ "start": 1895
610
+ },
611
+ {
612
+ "length": 20,
613
+ "start": 4144
614
+ }
615
+ ]
616
+ },
617
+ "contracts/types/Version.sol": {
618
+ "VersionLib": [
619
+ {
620
+ "length": 20,
621
+ "start": 1373
622
+ },
623
+ {
624
+ "length": 20,
625
+ "start": 3358
626
+ }
627
+ ]
628
+ }
629
+ }
630
+ }