@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,724 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "RegistryUpgradeable",
4
+ "sourceName": "contracts/registry/RegistryUpgradeable.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [],
8
+ "name": "InvalidInitialization",
9
+ "type": "error"
10
+ },
11
+ {
12
+ "inputs": [],
13
+ "name": "NotInitializing",
14
+ "type": "error"
15
+ },
16
+ {
17
+ "anonymous": false,
18
+ "inputs": [
19
+ {
20
+ "indexed": false,
21
+ "internalType": "uint64",
22
+ "name": "version",
23
+ "type": "uint64"
24
+ }
25
+ ],
26
+ "name": "Initialized",
27
+ "type": "event"
28
+ },
29
+ {
30
+ "anonymous": false,
31
+ "inputs": [
32
+ {
33
+ "indexed": false,
34
+ "internalType": "Version",
35
+ "name": "version",
36
+ "type": "uint24"
37
+ },
38
+ {
39
+ "indexed": false,
40
+ "internalType": "address",
41
+ "name": "implementation",
42
+ "type": "address"
43
+ },
44
+ {
45
+ "indexed": false,
46
+ "internalType": "address",
47
+ "name": "activatedBy",
48
+ "type": "address"
49
+ }
50
+ ],
51
+ "name": "LogVersionableActivated",
52
+ "type": "event"
53
+ },
54
+ {
55
+ "inputs": [],
56
+ "name": "EMPTY_URI",
57
+ "outputs": [
58
+ {
59
+ "internalType": "string",
60
+ "name": "",
61
+ "type": "string"
62
+ }
63
+ ],
64
+ "stateMutability": "view",
65
+ "type": "function"
66
+ },
67
+ {
68
+ "inputs": [],
69
+ "name": "getChainNft",
70
+ "outputs": [
71
+ {
72
+ "internalType": "contract IChainNft",
73
+ "name": "",
74
+ "type": "address"
75
+ }
76
+ ],
77
+ "stateMutability": "view",
78
+ "type": "function"
79
+ },
80
+ {
81
+ "inputs": [],
82
+ "name": "getData",
83
+ "outputs": [
84
+ {
85
+ "internalType": "bytes",
86
+ "name": "data",
87
+ "type": "bytes"
88
+ }
89
+ ],
90
+ "stateMutability": "pure",
91
+ "type": "function"
92
+ },
93
+ {
94
+ "inputs": [],
95
+ "name": "getInitializedVersion",
96
+ "outputs": [
97
+ {
98
+ "internalType": "uint64",
99
+ "name": "",
100
+ "type": "uint64"
101
+ }
102
+ ],
103
+ "stateMutability": "view",
104
+ "type": "function"
105
+ },
106
+ {
107
+ "inputs": [
108
+ {
109
+ "internalType": "NftId",
110
+ "name": "nftId",
111
+ "type": "uint96"
112
+ }
113
+ ],
114
+ "name": "getName",
115
+ "outputs": [
116
+ {
117
+ "internalType": "string",
118
+ "name": "name",
119
+ "type": "string"
120
+ }
121
+ ],
122
+ "stateMutability": "view",
123
+ "type": "function"
124
+ },
125
+ {
126
+ "inputs": [],
127
+ "name": "getNftId",
128
+ "outputs": [
129
+ {
130
+ "internalType": "NftId",
131
+ "name": "nftId",
132
+ "type": "uint96"
133
+ }
134
+ ],
135
+ "stateMutability": "view",
136
+ "type": "function"
137
+ },
138
+ {
139
+ "inputs": [
140
+ {
141
+ "internalType": "address",
142
+ "name": "object",
143
+ "type": "address"
144
+ }
145
+ ],
146
+ "name": "getNftId",
147
+ "outputs": [
148
+ {
149
+ "internalType": "NftId",
150
+ "name": "id",
151
+ "type": "uint96"
152
+ }
153
+ ],
154
+ "stateMutability": "view",
155
+ "type": "function"
156
+ },
157
+ {
158
+ "inputs": [],
159
+ "name": "getObjectCount",
160
+ "outputs": [
161
+ {
162
+ "internalType": "uint256",
163
+ "name": "",
164
+ "type": "uint256"
165
+ }
166
+ ],
167
+ "stateMutability": "view",
168
+ "type": "function"
169
+ },
170
+ {
171
+ "inputs": [
172
+ {
173
+ "internalType": "NftId",
174
+ "name": "nftId",
175
+ "type": "uint96"
176
+ }
177
+ ],
178
+ "name": "getObjectInfo",
179
+ "outputs": [
180
+ {
181
+ "components": [
182
+ {
183
+ "internalType": "NftId",
184
+ "name": "nftId",
185
+ "type": "uint96"
186
+ },
187
+ {
188
+ "internalType": "NftId",
189
+ "name": "parentNftId",
190
+ "type": "uint96"
191
+ },
192
+ {
193
+ "internalType": "ObjectType",
194
+ "name": "objectType",
195
+ "type": "uint8"
196
+ },
197
+ {
198
+ "internalType": "address",
199
+ "name": "objectAddress",
200
+ "type": "address"
201
+ },
202
+ {
203
+ "internalType": "address",
204
+ "name": "initialOwner",
205
+ "type": "address"
206
+ },
207
+ {
208
+ "internalType": "bytes",
209
+ "name": "data",
210
+ "type": "bytes"
211
+ }
212
+ ],
213
+ "internalType": "struct IRegistry.ObjectInfo",
214
+ "name": "info",
215
+ "type": "tuple"
216
+ }
217
+ ],
218
+ "stateMutability": "view",
219
+ "type": "function"
220
+ },
221
+ {
222
+ "inputs": [],
223
+ "name": "getOwner",
224
+ "outputs": [
225
+ {
226
+ "internalType": "address",
227
+ "name": "owner",
228
+ "type": "address"
229
+ }
230
+ ],
231
+ "stateMutability": "view",
232
+ "type": "function"
233
+ },
234
+ {
235
+ "inputs": [
236
+ {
237
+ "internalType": "NftId",
238
+ "name": "nftId",
239
+ "type": "uint96"
240
+ }
241
+ ],
242
+ "name": "getOwner",
243
+ "outputs": [
244
+ {
245
+ "internalType": "address",
246
+ "name": "",
247
+ "type": "address"
248
+ }
249
+ ],
250
+ "stateMutability": "view",
251
+ "type": "function"
252
+ },
253
+ {
254
+ "inputs": [],
255
+ "name": "getParentNftId",
256
+ "outputs": [
257
+ {
258
+ "internalType": "NftId",
259
+ "name": "nftId",
260
+ "type": "uint96"
261
+ }
262
+ ],
263
+ "stateMutability": "view",
264
+ "type": "function"
265
+ },
266
+ {
267
+ "inputs": [],
268
+ "name": "getProtocolOwner",
269
+ "outputs": [
270
+ {
271
+ "internalType": "address",
272
+ "name": "",
273
+ "type": "address"
274
+ }
275
+ ],
276
+ "stateMutability": "view",
277
+ "type": "function"
278
+ },
279
+ {
280
+ "inputs": [],
281
+ "name": "getRegistry",
282
+ "outputs": [
283
+ {
284
+ "internalType": "contract IRegistry",
285
+ "name": "registry",
286
+ "type": "address"
287
+ }
288
+ ],
289
+ "stateMutability": "view",
290
+ "type": "function"
291
+ },
292
+ {
293
+ "inputs": [
294
+ {
295
+ "internalType": "string",
296
+ "name": "serviceName",
297
+ "type": "string"
298
+ },
299
+ {
300
+ "internalType": "VersionPart",
301
+ "name": "majorVersion",
302
+ "type": "uint8"
303
+ }
304
+ ],
305
+ "name": "getServiceAddress",
306
+ "outputs": [
307
+ {
308
+ "internalType": "address",
309
+ "name": "serviceAddress",
310
+ "type": "address"
311
+ }
312
+ ],
313
+ "stateMutability": "view",
314
+ "type": "function"
315
+ },
316
+ {
317
+ "inputs": [],
318
+ "name": "getType",
319
+ "outputs": [
320
+ {
321
+ "internalType": "ObjectType",
322
+ "name": "objectType",
323
+ "type": "uint8"
324
+ }
325
+ ],
326
+ "stateMutability": "pure",
327
+ "type": "function"
328
+ },
329
+ {
330
+ "inputs": [],
331
+ "name": "getVersion",
332
+ "outputs": [
333
+ {
334
+ "internalType": "Version",
335
+ "name": "",
336
+ "type": "uint24"
337
+ }
338
+ ],
339
+ "stateMutability": "pure",
340
+ "type": "function"
341
+ },
342
+ {
343
+ "inputs": [
344
+ {
345
+ "internalType": "uint256",
346
+ "name": "idx",
347
+ "type": "uint256"
348
+ }
349
+ ],
350
+ "name": "getVersion",
351
+ "outputs": [
352
+ {
353
+ "internalType": "Version",
354
+ "name": "",
355
+ "type": "uint24"
356
+ }
357
+ ],
358
+ "stateMutability": "view",
359
+ "type": "function"
360
+ },
361
+ {
362
+ "inputs": [],
363
+ "name": "getVersionCount",
364
+ "outputs": [
365
+ {
366
+ "internalType": "uint256",
367
+ "name": "",
368
+ "type": "uint256"
369
+ }
370
+ ],
371
+ "stateMutability": "view",
372
+ "type": "function"
373
+ },
374
+ {
375
+ "inputs": [
376
+ {
377
+ "internalType": "Version",
378
+ "name": "_version",
379
+ "type": "uint24"
380
+ }
381
+ ],
382
+ "name": "getVersionInfo",
383
+ "outputs": [
384
+ {
385
+ "components": [
386
+ {
387
+ "internalType": "Version",
388
+ "name": "version",
389
+ "type": "uint24"
390
+ },
391
+ {
392
+ "internalType": "address",
393
+ "name": "implementation",
394
+ "type": "address"
395
+ },
396
+ {
397
+ "internalType": "address",
398
+ "name": "activatedBy",
399
+ "type": "address"
400
+ },
401
+ {
402
+ "internalType": "Timestamp",
403
+ "name": "activatedAt",
404
+ "type": "uint40"
405
+ },
406
+ {
407
+ "internalType": "Blocknumber",
408
+ "name": "activatedIn",
409
+ "type": "uint32"
410
+ }
411
+ ],
412
+ "internalType": "struct IVersionable.VersionInfo",
413
+ "name": "",
414
+ "type": "tuple"
415
+ }
416
+ ],
417
+ "stateMutability": "view",
418
+ "type": "function"
419
+ },
420
+ {
421
+ "inputs": [
422
+ {
423
+ "internalType": "address",
424
+ "name": "implementation",
425
+ "type": "address"
426
+ },
427
+ {
428
+ "internalType": "address",
429
+ "name": "activatedBy",
430
+ "type": "address"
431
+ },
432
+ {
433
+ "internalType": "bytes",
434
+ "name": "data",
435
+ "type": "bytes"
436
+ }
437
+ ],
438
+ "name": "initialize",
439
+ "outputs": [],
440
+ "stateMutability": "nonpayable",
441
+ "type": "function"
442
+ },
443
+ {
444
+ "inputs": [
445
+ {
446
+ "internalType": "Version",
447
+ "name": "_version",
448
+ "type": "uint24"
449
+ }
450
+ ],
451
+ "name": "isActivated",
452
+ "outputs": [
453
+ {
454
+ "internalType": "bool",
455
+ "name": "",
456
+ "type": "bool"
457
+ }
458
+ ],
459
+ "stateMutability": "view",
460
+ "type": "function"
461
+ },
462
+ {
463
+ "inputs": [
464
+ {
465
+ "internalType": "address",
466
+ "name": "object",
467
+ "type": "address"
468
+ }
469
+ ],
470
+ "name": "isRegistered",
471
+ "outputs": [
472
+ {
473
+ "internalType": "bool",
474
+ "name": "",
475
+ "type": "bool"
476
+ }
477
+ ],
478
+ "stateMutability": "view",
479
+ "type": "function"
480
+ },
481
+ {
482
+ "inputs": [
483
+ {
484
+ "internalType": "NftId",
485
+ "name": "nftId",
486
+ "type": "uint96"
487
+ }
488
+ ],
489
+ "name": "isRegistered",
490
+ "outputs": [
491
+ {
492
+ "internalType": "bool",
493
+ "name": "",
494
+ "type": "bool"
495
+ }
496
+ ],
497
+ "stateMutability": "view",
498
+ "type": "function"
499
+ },
500
+ {
501
+ "inputs": [],
502
+ "name": "locationV1",
503
+ "outputs": [
504
+ {
505
+ "internalType": "bytes32",
506
+ "name": "",
507
+ "type": "bytes32"
508
+ }
509
+ ],
510
+ "stateMutability": "view",
511
+ "type": "function"
512
+ },
513
+ {
514
+ "inputs": [],
515
+ "name": "register",
516
+ "outputs": [
517
+ {
518
+ "internalType": "NftId",
519
+ "name": "nftId",
520
+ "type": "uint96"
521
+ }
522
+ ],
523
+ "stateMutability": "pure",
524
+ "type": "function"
525
+ },
526
+ {
527
+ "inputs": [
528
+ {
529
+ "internalType": "address",
530
+ "name": "objectAddress",
531
+ "type": "address"
532
+ }
533
+ ],
534
+ "name": "register",
535
+ "outputs": [
536
+ {
537
+ "internalType": "NftId",
538
+ "name": "nftId",
539
+ "type": "uint96"
540
+ }
541
+ ],
542
+ "stateMutability": "nonpayable",
543
+ "type": "function"
544
+ },
545
+ {
546
+ "inputs": [
547
+ {
548
+ "internalType": "NftId",
549
+ "name": "parentNftId",
550
+ "type": "uint96"
551
+ },
552
+ {
553
+ "internalType": "ObjectType",
554
+ "name": "objectType",
555
+ "type": "uint8"
556
+ },
557
+ {
558
+ "internalType": "address",
559
+ "name": "initialOwner",
560
+ "type": "address"
561
+ },
562
+ {
563
+ "internalType": "bytes",
564
+ "name": "data",
565
+ "type": "bytes"
566
+ }
567
+ ],
568
+ "name": "registerObjectForInstance",
569
+ "outputs": [
570
+ {
571
+ "internalType": "NftId",
572
+ "name": "nftId",
573
+ "type": "uint96"
574
+ }
575
+ ],
576
+ "stateMutability": "nonpayable",
577
+ "type": "function"
578
+ },
579
+ {
580
+ "inputs": [
581
+ {
582
+ "internalType": "bytes4",
583
+ "name": "interfaceId",
584
+ "type": "bytes4"
585
+ }
586
+ ],
587
+ "name": "supportsInterface",
588
+ "outputs": [
589
+ {
590
+ "internalType": "bool",
591
+ "name": "",
592
+ "type": "bool"
593
+ }
594
+ ],
595
+ "stateMutability": "pure",
596
+ "type": "function"
597
+ },
598
+ {
599
+ "inputs": [
600
+ {
601
+ "internalType": "address",
602
+ "name": "implementation",
603
+ "type": "address"
604
+ },
605
+ {
606
+ "internalType": "address",
607
+ "name": "activatedBy",
608
+ "type": "address"
609
+ },
610
+ {
611
+ "internalType": "bytes",
612
+ "name": "data",
613
+ "type": "bytes"
614
+ }
615
+ ],
616
+ "name": "upgrade",
617
+ "outputs": [],
618
+ "stateMutability": "nonpayable",
619
+ "type": "function"
620
+ }
621
+ ],
622
+ "bytecode": "0x60806040523480156200001157600080fd5b506200001c62000022565b620000d6565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff1615620000735760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b0390811614620000d35780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b61561280620000e66000396000f3fe60806040523480156200001157600080fd5b5060043610620002015760003560e01c806379a4f1ae1162000119578063b88da75911620000af578063d272ac1e116200007a578063d272ac1e146200059f578063df33330b14620005b6578063e74d052f14620005cd578063f16f93c214620005e457600080fd5b8063b88da7591462000550578063bc36dc911462000567578063c3c5a5471462000571578063cf7a1d77146200058857600080fd5b8063a3bcd81d11620000f0578063a3bcd81d14620004d7578063a48f42e014620004ee578063a745e3df1462000514578063b3c65015146200052d57600080fd5b806379a4f1ae146200047d578063893d20e814620004a5578063946dfcfe14620004af57600080fd5b806331b62a3b116200019b5780634d459c9011620001665780634d459c9014620003375780635ab1bd5314620004555780635ef14b5e146200045c578063644c45e0146200047357600080fd5b806331b62a3b14620002e05780633bc5de3014620002ea5780633fe9300e14620003095780634420e486146200032057600080fd5b80630d8e6e2c11620001dc5780630d8e6e2c146200027c57806315dae03e146200029b5780631a848cfb14620002ab5780631aa3a00814620002c457600080fd5b8063015654ff146200020657806301ffc9a7146200022d5780630abd84341462000265575b600080fd5b62000210620005fb565b6040516001600160a01b0390911681526020015b60405180910390f35b620002546200023e36600462002c6d565b6001600160e01b0319166306ecd8ef60e01b1490565b604051901515815260200162000224565b620002546200027636600462002cb5565b62000619565b62000286620006d0565b60405162ffffff909116815260200162000224565b6040516014815260200162000224565b620002b56200075d565b60405190815260200162000224565b60005b6040516001600160601b03909116815260200162000224565b620002c7620007e4565b6040805160208101909152600081525b60405162000224919062002d29565b620002fa6040518060200160405280600081525081565b620002c76200033136600462002d54565b62000820565b620003f76200034836600462002cb5565b6040805160a081018252600080825260208201819052918101829052606081018290526080810191909152600080516020620055bd83398151915262ffffff92831660009081526020918252604090819020815160a0810183528154958616815263010000009095046001600160a01b03908116938601939093526001015491821690840152600160a01b810464ffffffffff166060840152600160c81b900463ffffffff1660808301525090565b60408051825162ffffff1681526020808401516001600160a01b039081169183019190915283830151169181019190915260608083015164ffffffffff169082015260809182015163ffffffff169181019190915260a00162000224565b3062000210565b620002c76200046d36600462002e73565b6200104b565b620002c7620012da565b620002b57f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b62000210620012f8565b7f4f61291a8ac3d020d0a7d919a76b8592aa88385744dee3f8b4f3873b969ed90154620002b5565b62000210620004e836600462002ef1565b6200141d565b62000505620004ff36600462002f5d565b62001484565b60405162000224919062002f7d565b6200052b6200052536600462002ff2565b620015d2565b005b6200053762001736565b6040516001600160401b03909116815260200162000224565b62000286620005613660046200305b565b62001759565b62000210620017ae565b620002546200058236600462002d54565b620017d3565b6200052b6200059936600462002ff2565b62001884565b620002c7620005b036600462002d54565b62001997565b62000210620005c736600462002f5d565b620019ce565b62000254620005de36600462002f5d565b62001ae0565b620002fa620005f536600462002f5d565b62001b49565b60006200060762001c09565b600901546001600160a01b0316919050565b600080600080516020620055bd83398151915262ffffff84166000908152602091909152604090819020600101549051631bbffab160e21b8152600160c81b90910463ffffffff16600482015273__$5f476116ae21c5294e0c0761c07efa7e1c$__90636effeac490602401602060405180830381865af4158015620006a3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620006c9919062003075565b1192915050565b604051632efe011360e01b815260016004820152600060248201819052604482018190529073__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90632efe011390606401602060405180830381865af415801562000732573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200075891906200308f565b905090565b60006200076962001c09565b600601600c9054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015620007be573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000758919062003075565b600080620007f162001c09565b60068101546001600160601b039081166000908152602092909252604090912054600160601b90041692915050565b6000806200082d62001c09565b6001600160a01b038416600090815260018201602052604090819020549051630a4d29dd60e31b81526001600160601b03909116600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906352694ee890602401602060405180830381865af4158015620008a6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620008cc9190620030af565b6200091e5760405162461bcd60e51b815260206004820181905260248201527f4552524f523a5245472d3030323a414c52454144595f5245474953544552454460448201526064015b60405180910390fd5b6040516301ffc9a760e01b8152631dfba64760e11b600482015283906001600160a01b038216906301ffc9a790602401602060405180830381865afa1580156200096c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620009929190620030af565b620009e05760405162461bcd60e51b815260206004820152601e60248201527f4552524f523a5245472d3030333a4e4f545f524547495354455241424c450000604482015260640162000915565b6000816001600160a01b03166315dae03e6040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000a21573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000a479190620030d3565b60ff80821660009081526002860160205260409020549192501662000aaf5760405162461bcd60e51b815260206004820152601a60248201527f4552524f523a5245472d3030343a545950455f494e56414c4944000000000000604482015260640162000915565b6000826001600160a01b03166331b62a3b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000af0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000b169190620030f3565b905062000b238162001ae0565b62000b7d5760405162461bcd60e51b815260206004820152602360248201527f4552524f523a5245472d3030353a504152454e545f4e4f545f5245474953544560448201526214915160ea1b606482015260840162000915565b60ff808316600090815260038601602090815260408083206001600160601b038616845288835281842054600160c01b9004851684529091529020541662000c125760405162461bcd60e51b815260206004820152602160248201527f4552524f523a5245472d3030363a504152454e545f545950455f494e56414c496044820152601160fa1b606482015260840162000915565b600084600601600c9054906101000a90046001600160a01b03166001600160a01b031663d0def521856001600160a01b031663893d20e86040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000c79573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000c9f919062003113565b604051806020016040528060008152506040518363ffffffff1660e01b815260040162000cce92919062003133565b6020604051808303816000875af115801562000cee573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000d14919062003075565b905080955062000d90846001600160a01b03166315dae03e6040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000d5c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000d829190620030d3565b60285b60ff90811691161490565b1562001035576040516301ffc9a760e01b8152631b4612f160e31b600482015287906001600160a01b038216906301ffc9a790602401602060405180830381865afa15801562000de4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000e0a9190620030af565b62000e585760405162461bcd60e51b815260206004820152601960248201527f4552524f523a5245472d3030373a4e4f545f5345525649434500000000000000604482015260640162000915565b6000816001600160a01b03166317d7de7c6040518163ffffffff1660e01b8152600401600060405180830381865afa15801562000e99573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405262000ec391908101906200318f565b90506000826001600160a01b031663cde749f46040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000f06573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000f2c9190620030d3565b905060008260405160200162000f43919062002d29565b60408051601f1981840301815291815281516020928301206001600160601b038d16600090815260048d01909352912090915062000f8284826200326a565b50600081815260058a016020908152604080832060ff861684529091529020546001600160a01b03161562000ffa5760405162461bcd60e51b815260206004820181905260248201527f4552524f523a5245472d3030383a414c52454144595f52454749535445524544604482015260640162000915565b6000908152600589016020908152604080832060ff9490941683529290522080546001600160a01b0319166001600160a01b038b1617905550505b62001041848762001c2d565b5050505050919050565b6000806200105862001c09565b9050620010678560d262000d85565b806200107b57506200107b8560dc62000d85565b620010c95760405162461bcd60e51b815260206004820152601a60248201527f4552524f523a5245472d3031303a545950455f494e56414c4944000000000000604482015260640162000915565b6006810154604080516020810182526000808252915163d0def52160e01b81529192600160601b90046001600160a01b03169163d0def52191620011139189919060040162003133565b6020604051808303816000875af115801562001133573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001159919062003075565b905080925060006040518060c00160405280856001600160601b03168152602001896001600160601b031681526020018860ff16815260200160006001600160a01b03168152602001876001600160a01b0316815260200186815250905080836000016000866001600160601b03166001600160601b0316815260200190815260200160002060008201518160000160006101000a8154816001600160601b0302191690836001600160601b03160217905550602082015181600001600c6101000a8154816001600160601b0302191690836001600160601b0316021790555060408201518160000160186101000a81548160ff021916908360ff16021790555060608201518160010160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060808201518160020160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060a0820151816003019081620012cb91906200326a565b50905050505050949350505050565b6000620012e662001c09565b600601546001600160601b0316919050565b6000806200130562001c09565b60068101546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af415801562001367573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200138d9190620030af565b620013a65760088101546001600160a01b031662001417565b600681015460405163df33330b60e01b81526001600160601b039091166004820152309063df33330b90602401602060405180830381865afa158015620013f1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001417919062003113565b91505090565b6000808360405160200162001433919062002d29565b6040516020818303038152906040528051906020012090506200145562001c09565b60009182526005016020908152604080832060ff861684529091529020546001600160a01b0316905092915050565b6040805160c0810182526000808252602082018190529181018290526060808201839052608082019290925260a0810191909152620014c262001c09565b6001600160601b0383811660009081526020928352604090819020815160c08101835281548085168252600160601b810490941694810194909452600160c01b90920460ff169083015260018101546001600160a01b039081166060840152600282015416608083015260038101805460a0840191906200154390620031dc565b80601f01602080910402602001604051908101604052809291908181526020018280546200157190620031dc565b8015620015c25780601f106200159657610100808354040283529160200191620015c2565b820191906000526020600020905b815481529060010190602001808311620015a457829003601f168201915b5050505050815250509050919050565b73__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__63a123b37c620015f6620006d0565b6040516001600160e01b031960e084901b16815262ffffff9091166004820152602401602060405180830381865af415801562001637573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200165d919062003336565b6000805160206200559d8339815191528054600160401b900460ff168062001692575080546001600160401b03808416911610155b15620016b15760405163f92ee8a960e01b815260040160405180910390fd5b805468ffffffffffffffffff19166001600160401b03831617600160401b178155620016de858562001f1e565b620016e7600080fd5b805460ff60401b191681556040516001600160401b03831681527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2906020015b60405180910390a15050505050565b6000620007586000805160206200559d833981519152546001600160401b031690565b6000600080516020620055bd833981519152600101828154811062001782576200178262003361565b90600052602060002090600a91828204019190066003029054906101000a900462ffffff169050919050565b6000620017ba62001c09565b60060154600160601b90046001600160a01b0316919050565b6000620017df62001c09565b6001600160a01b03831660009081526001919091016020526040908190205490516330b8415f60e01b81526001600160601b03909116600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f906024015b602060405180830381865af415801562001858573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200187e9190620030af565b92915050565b6000805160206200559d8339815191528054600160401b810460ff1615906001600160401b0316600081158015620018b95750825b90506000826001600160401b03166001148015620018d65750303b155b905081158015620018e5575080155b15620019045760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff1916600117855583156200192f57845460ff60401b1916600160401b1785555b6200193b888862001f1e565b62001946866200214e565b83156200198d57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b5050505050505050565b6000620019a362001c09565b6001600160a01b0390921660009081526001929092016020525060409020546001600160601b031690565b6000620019da62001c09565b6006015460405163046e44af60e11b81526001600160601b0384166004820152600160601b9091046001600160a01b031690636352211e9073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906308dc895e90602401602060405180830381865af415801562001a4f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001a759190620030f3565b6040516001600160e01b031960e084901b1681526001600160601b039091166004820152602401602060405180830381865afa15801562001aba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200187e919062003113565b600062001aec62001c09565b6001600160601b038316600090815260209190915260409081902054905163b2466acf60e01b8152600160c01b90910460ff16600482015273__$fb4566b39bd2075cb32f600f6f40bfaef2$__9063b2466acf906024016200183a565b606062001b5562001c09565b6001600160601b038316600090815260049190910160205260409020805462001b7e90620031dc565b80601f016020809104026020016040519081016040528092919081815260200182805462001bac90620031dc565b801562001bfd5780601f1062001bd15761010080835404028352916020019162001bfd565b820191906000526020600020905b81548152906001019060200180831162001bdf57829003601f168201915b50505050509050919050565b7f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30090565b600082905060006040518060c00160405280846001600160601b03168152602001856001600160a01b03166331b62a3b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801562001c8d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001cb39190620030f3565b6001600160601b03168152602001856001600160a01b03166315dae03e6040518163ffffffff1660e01b8152600401602060405180830381865afa15801562001d00573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001d269190620030d3565b60ff168152602001836001600160a01b03168152602001856001600160a01b031663893d20e86040518163ffffffff1660e01b8152600401602060405180830381865afa15801562001d7c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001da2919062003113565b6001600160a01b03168152602001856001600160a01b0316633bc5de306040518163ffffffff1660e01b8152600401600060405180830381865afa15801562001def573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405262001e1991908101906200318f565b90529050600062001e2962001c09565b6001600160601b038086166000908152602083815260409182902086518154928801519388015160ff16600160c01b0260ff60c01b19948616600160601b026001600160c01b03199094169190951617919091179190911691909117815560608401516001820180546001600160a01b039283166001600160a01b031991821617909155608086015160028401805491909316911617905560a08401519192508391600382019062001edc90826200326a565b5050506001600160a01b0390921660009081526001909201602052506040902080546001600160601b039092166001600160601b031990921691909117905550565b62001f2862002279565b600080516020620055bd833981519152600062001f5b6000805160206200559d833981519152546001600160401b031690565b9050600062001f69620006d0565b9050816001600160401b031660010362001f985760028301805462ffffff191662ffffff831617905562001fd0565b600283015462ffffff9081169082161162001fd05760405162461bcd60e51b8152602060048201526000602482015260440162000915565b6001808401805491820181556000908152602090819020600a808404909101805462ffffff808716600394909606939093026101000a858102930219169190911790556040805160a0810182529283526001600160a01b03808916928401929092529086169082015260608101620020454290565b64ffffffffff1681526020014363ffffffff90811690915262ffffff8084166000908152602087815260409182902085518154928701516001600160a01b039081166301000000026001600160b81b0319909416919095161791909117815584820151600190910180546060870151608090970151909516600160c81b0263ffffffff60c81b1964ffffffffff909716600160a01b026001600160c81b031990961692909416919091179390931793909316179055517f68e7327fca0057a787cde34ababb9ef9844ba8065ee03e8781d8122fc15d441990620017279083908890889062ffffff9390931683526001600160a01b03918216602084015216604082015260600190565b6200215862002279565b60008180602001905181019062002170919062003113565b905060006200217e62001c09565b600881018054336001600160a01b0319918216179091556009820180549091166001600160a01b0385161790556040519091503090620021be9062002c5f565b6001600160a01b039091168152602001604051809103906000f080158015620021eb573d6000803e3d6000fd5b506007820180546001600160a01b0319166001600160a01b039290921691821790556006820180546001600160601b0316600160601b90920291909117905562002234620022b4565b6200223e620024e5565b6006820180546001600160601b0319166001600160601b03929092169190911790556200226a620028a0565b620022746200298f565b505050565b6000805160206200559d83398151915254600160401b900460ff16620022b257604051631afcd79f60e31b815260040160405180910390fd5b565b620022be62002279565b6000620022ca62001c09565b905060008160070160009054906101000a90046001600160a01b03166001600160a01b031663598e28926040518163ffffffff1660e01b8152600401602060405180830381865afa15801562002324573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200234a919062003075565b600783015460098401546040516340c10f1960e01b81526001600160a01b0391821660048201526024810184905292935016906340c10f1990604401600060405180830381600087803b158015620023a157600080fd5b505af1158015620023b6573d6000803e3d6000fd5b505050506000620023c48290565b905060006040518060c00160405280836001600160601b03168152602001620023eb600090565b6001600160601b03168152602001600a5b60ff90811682526000602080840182905260098901546001600160a01b03908116604080870191909152805180840182528481526060968701526001600160601b03808a1685528b845293819020875181549489015192890151909616600160c01b0260ff60c01b19928616600160601b026001600160c01b031990951696909516959095179290921791909116919091178255918301516001820180549184166001600160a01b031992831617905560808401516002830180549190941691161790915560a082015191925082916003820190620024dc90826200326a565b50505050505050565b6000620024f162002279565b6000620024fd62001c09565b6007810154604051630559ea4760e01b8152600260048201529192506000916001600160a01b0390911690630559ea4790602401602060405180830381865afa1580156200254f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062002575919062003075565b90508092508160070160009054906101000a90046001600160a01b03166001600160a01b0316632e85b1f36040518163ffffffff1660e01b8152600401602060405180830381865afa158015620025d0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620025f6919062003075565b811462002607576200260762002ac1565b600782015460098301546040516340c10f1960e01b81526001600160a01b039182166004820152602481018490529116906340c10f1990604401600060405180830381600087803b1580156200265c57600080fd5b505af115801562002671573d6000803e3d6000fd5b505050506000466001036200270057600783015460408051632cc7144960e11b81529051620026f8926001600160a01b03169163598e28929160048083019260209291908290030181865afa158015620026cf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620026f5919062003075565b90565b905062002752565b600783015460408051632e85b1f360e01b815290516200274f926001600160a01b031691632e85b1f39160048083019260209291908290030181865afa158015620026cf573d6000803e3d6000fd5b90505b60006040518060c00160405280866001600160601b03168152602001836001600160601b0316815260200162002786601490565b60ff90811682523060208084019190915260098801546001600160a01b039081166040808601919091528051808401825260008082526060968701919091526001600160601b03808d1682528b855290829020875181549589015193890151909616600160c01b0260ff60c01b19938316600160601b026001600160c01b031990961696909216959095179390931716919091178255918301516001820180549184166001600160a01b031992831617905560808401516002830180549190941691161790915560a0820151919250829160038201906200286890826200326a565b50503060009081526001959095016020525050604090922080546001600160601b0319166001600160601b0385161790555090919050565b620028aa62002279565b6000620028b662001c09565b6014600090815260028201602081905260408083208054600160ff199182168117909255601e85528285208054821683179055602885528285208054821683179055603285528285208054821683179055603c85528285208054821683179055606e85528285208054821683179055608285528285208054821683179055608c8552828520805482168317905560788552828520805482168317905560d28552918420805490921681179091559293509060dc5b60ff1681526020810191909152604001600020805460ff191691151591909117905550565b6200299962002279565b6000620029a562001c09565b601e6000908152600382016020818152604080842060148086529083528185208054600160ff199182168117909255602887528585528387208388528552838720805482168317905560328088528686528488209388529285528387208054821683179055606e8088528686528488208489528652848820805483168417905560788852868652848820848952865284882080548316841790556082885286865284882084895286528488208054831684179055608c808952878752858920948952938652848820805483168417905560d288528686528488209088528552838720805482168317905560dc87528585528387208388528552838720805490911682179055603c8652939092528320939450909291906200296a565b62002acb62002279565b600062002ad762001c09565b905060008160070160009054906101000a90046001600160a01b03166001600160a01b0316632e85b1f36040518163ffffffff1660e01b8152600401602060405180830381865afa15801562002b31573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062002b57919062003075565b600783015460098401546040516340c10f1960e01b81526001600160a01b0391821660048201526024810184905292935016906340c10f1990604401600060405180830381600087803b15801562002bae57600080fd5b505af115801562002bc3573d6000803e3d6000fd5b50505050600062002bd18290565b905060006040518060c00160405280836001600160601b0316815260200162002c498660070160009054906101000a90046001600160a01b03166001600160a01b031663598e28926040518163ffffffff1660e01b8152600401602060405180830381865afa158015620026cf573d6000803e3d6000fd5b6001600160601b031681526020016014620023fc565b612225806200337883390190565b60006020828403121562002c8057600080fd5b81356001600160e01b03198116811462002c9957600080fd5b9392505050565b62ffffff8116811462002cb257600080fd5b50565b60006020828403121562002cc857600080fd5b813562002c998162002ca0565b60005b8381101562002cf257818101518382015260200162002cd8565b50506000910152565b6000815180845262002d1581602086016020860162002cd5565b601f01601f19169290920160200192915050565b60208152600062002c99602083018462002cfb565b6001600160a01b038116811462002cb257600080fd5b60006020828403121562002d6757600080fd5b813562002c998162002d3e565b6001600160601b038116811462002cb257600080fd5b60ff8116811462002cb257600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171562002ddb5762002ddb62002d9a565b604052919050565b60006001600160401b0382111562002dff5762002dff62002d9a565b50601f01601f191660200190565b600062002e2462002e1e8462002de3565b62002db0565b905082815283838301111562002e3957600080fd5b828260208301376000602084830101529392505050565b600082601f83011262002e6257600080fd5b62002c998383356020850162002e0d565b6000806000806080858703121562002e8a57600080fd5b843562002e978162002d74565b9350602085013562002ea98162002d8a565b9250604085013562002ebb8162002d3e565b915060608501356001600160401b0381111562002ed757600080fd5b62002ee58782880162002e50565b91505092959194509250565b6000806040838503121562002f0557600080fd5b82356001600160401b0381111562002f1c57600080fd5b8301601f8101851362002f2e57600080fd5b62002f3f8582356020840162002e0d565b925050602083013562002f528162002d8a565b809150509250929050565b60006020828403121562002f7057600080fd5b813562002c998162002d74565b6020815260006001600160601b038084511660208401528060208501511660408401525060ff6040840151166060830152606083015160018060a01b0380821660808501528060808601511660a0850152505060a083015160c08084015262002fea60e084018262002cfb565b949350505050565b6000806000606084860312156200300857600080fd5b8335620030158162002d3e565b92506020840135620030278162002d3e565b915060408401356001600160401b038111156200304357600080fd5b620030518682870162002e50565b9150509250925092565b6000602082840312156200306e57600080fd5b5035919050565b6000602082840312156200308857600080fd5b5051919050565b600060208284031215620030a257600080fd5b815162002c998162002ca0565b600060208284031215620030c257600080fd5b8151801515811462002c9957600080fd5b600060208284031215620030e657600080fd5b815162002c998162002d8a565b6000602082840312156200310657600080fd5b815162002c998162002d74565b6000602082840312156200312657600080fd5b815162002c998162002d3e565b6001600160a01b038316815260406020820181905260009062002fea9083018462002cfb565b60006200316a62002e1e8462002de3565b90508281528383830111156200317f57600080fd5b62002c9983602083018462002cd5565b600060208284031215620031a257600080fd5b81516001600160401b03811115620031b957600080fd5b8201601f81018413620031cb57600080fd5b62002fea8482516020840162003159565b600181811c90821680620031f157607f821691505b6020821081036200321257634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200227457600081815260208120601f850160051c81016020861015620032415750805b601f850160051c820191505b8181101562003262578281556001016200324d565b505050505050565b81516001600160401b0381111562003286576200328662002d9a565b6200329e81620032978454620031dc565b8462003218565b602080601f831160018114620032d65760008415620032bd5750858301515b600019600386901b1c1916600185901b17855562003262565b600085815260208120601f198616915b828110156200330757888601518255948401946001909101908401620032e6565b5085821015620033265787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000602082840312156200334957600080fd5b81516001600160401b038116811462002c9957600080fd5b634e487b7160e01b600052603260045260246000fdfe60806040523480156200001157600080fd5b506040516200222538038062002225833981016040819052620000349162000165565b604051806060016040528060298152602001620021fc602991396040805180820190915260048152632224a82960e11b602082015260006200007783826200023c565b5060016200008682826200023c565b5050506001600160a01b038116620000e45760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a4e46542d3031303a52454749535452595f5a45524f0000000000604482015260640160405180910390fd5b600b80546001600160a01b0319166001600160a01b03831617905546600c819055620001109062000131565b600d8190556200012290600a6200041d565b600e55506003600f556200046a565b60005b811562000160578062000147816200042b565b9150620001589050600a8362000447565b915062000134565b919050565b6000602082840312156200017857600080fd5b81516001600160a01b03811681146200019057600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620001c257607f821691505b602082108103620001e357634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200023757600081815260208120601f850160051c81016020861015620002125750805b601f850160051c820191505b8181101562000233578281556001016200021e565b5050505b505050565b81516001600160401b0381111562000258576200025862000197565b6200027081620002698454620001ad565b84620001e9565b602080601f831160018114620002a857600084156200028f5750858301515b600019600386901b1c1916600185901b17855562000233565b600085815260208120601f198616915b82811015620002d957888601518255948401946001909101908401620002b8565b5085821015620002f85787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b600181815b808511156200035f57816000190482111562000343576200034362000308565b808516156200035157918102915b93841c939080029062000323565b509250929050565b600082620003785750600162000417565b81620003875750600062000417565b8160018114620003a05760028114620003ab57620003cb565b600191505062000417565b60ff841115620003bf57620003bf62000308565b50506001821b62000417565b5060208310610133831016604e8410600b8410161715620003f0575081810a62000417565b620003fc83836200031e565b806000190482111562000413576200041362000308565b0290505b92915050565b600062000190838362000367565b60006001820162000440576200044062000308565b5060010190565b6000826200046557634e487b7160e01b600052601260045260246000fd5b500490565b611d82806200047a6000396000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c8063598e2892116100f9578063a3f4df7e11610097578063d0def52111610071578063d0def52114610390578063e985e9c5146103a3578063f21de1e8146103df578063f76f8d78146103f057600080fd5b8063a3f4df7e14610362578063b88d4fde1461036a578063c87b56dd1461037d57600080fd5b8063862440e2116100d3578063862440e21461032c57806395d89b411461033f578063a22cb46514610347578063a2309ff81461035a57600080fd5b8063598e2892146102fd5780636352211e1461030657806370a082311461031957600080fd5b80632e85b1f31161016657806342842e0e1161014057806342842e0e146102b157806342966c68146102c45780634f558e79146102d75780634f6ccce7146102ea57600080fd5b80632e85b1f3146102825780632f745c591461028b57806340c10f191461029e57600080fd5b8063081812fc116101a2578063081812fc14610227578063095ea7b31461025257806318160ddd1461026757806323b872dd1461026f57600080fd5b806301ffc9a7146101c95780630559ea47146101f157806306fdde0314610212575b600080fd5b6101dc6101d736600461167b565b610413565b60405190151581526020015b60405180910390f35b6102046101ff36600461169f565b61043e565b6040519081526020016101e8565b61021a610473565b6040516101e891906116fe565b61023a61023536600461169f565b610505565b6040516001600160a01b0390911681526020016101e8565b61026561026036600461172d565b61052c565b005b600854610204565b61026561027d366004611757565b610646565b61020461083581565b61020461029936600461172d565b610677565b6102656102ac36600461172d565b61070d565b6102656102bf366004611757565b61075a565b6102656102d236600461169f565b610775565b6101dc6102e536600461169f565b6107cb565b6102046102f836600461169f565b6107ea565b61020461044d81565b61023a61031436600461169f565b61087d565b610204610327366004611793565b6108dd565b61026561033a36600461185a565b610963565b61021a6109ff565b6102656103553660046118a1565b610a0e565b601054610204565b61021a610a19565b6102656103783660046118dd565b610a35565b61021a61038b36600461169f565b610a6d565b61020461039e366004611959565b610b16565b6101dc6103b1366004611991565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b600b546001600160a01b031661023a565b61021a604051806040016040528060048152602001632224a82960e11b81525081565b60006001600160e01b0319821663780e9d6360e01b1480610438575061043882610b94565b92915050565b6000600d54600c54600e548461045491906119da565b61045e91906119f1565b6104699060646119da565b61043891906119f1565b60606000805461048290611a04565b80601f01602080910402602001604051908101604052809291908181526020018280546104ae90611a04565b80156104fb5780601f106104d0576101008083540402835291602001916104fb565b820191906000526020600020905b8154815290600101906020018083116104de57829003601f168201915b5050505050905090565b600061051082610be4565b506000908152600460205260409020546001600160a01b031690565b60006105378261087d565b9050806001600160a01b0316836001600160a01b0316036105a95760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806105c557506105c581336103b1565b6106375760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016105a0565b6106418383610c43565b505050565b6106503382610cb1565b61066c5760405162461bcd60e51b81526004016105a090611a3e565b610641838383610d30565b6000610682836108dd565b82106106e45760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016105a0565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600b546001600160a01b031633146107375760405162461bcd60e51b81526004016105a090611a8b565b6010805490600061074783611acc565b91905055506107568282610ea1565b5050565b61064183838360405180602001604052806000815250610a35565b600b546001600160a01b0316331461079f5760405162461bcd60e51b81526004016105a090611a8b565b6107a881610be4565b6107b181610ebb565b6000818152600a602052604081206107c891611617565b50565b6000818152600260205260408120546001600160a01b03161515610438565b60006107f560085490565b82106108585760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016105a0565b6008828154811061086b5761086b611ae5565b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806104385760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016105a0565b60006001600160a01b0382166109475760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016105a0565b506001600160a01b031660009081526003602052604090205490565b600b546001600160a01b0316331461098d5760405162461bcd60e51b81526004016105a090611a8b565b60008151116109de5760405162461bcd60e51b815260206004820152601760248201527f4552524f523a4352472d3031313a5552495f454d50545900000000000000000060448201526064016105a0565b6109e782610be4565b6000828152600a602052604090206106418282611b49565b60606001805461048290611a04565b610756338383610f5e565b604051806060016040528060298152602001611d246029913981565b610a3f3383610cb1565b610a5b5760405162461bcd60e51b81526004016105a090611a3e565b610a678484848461102c565b50505050565b6060610a7882610be4565b6000828152600a602052604090208054610a9190611a04565b80601f0160208091040260200160405190810160405280929190818152602001828054610abd90611a04565b8015610b0a5780601f10610adf57610100808354040283529160200191610b0a565b820191906000526020600020905b815481529060010190602001808311610aed57829003601f168201915b50505050509050919050565b600b546000906001600160a01b03163314610b435760405162461bcd60e51b81526004016105a090611a8b565b610b4b61105f565b825190915015610b6f576000818152600a60205260409020610b6d8382611b49565b505b610b798382610ea1565b60108054906000610b8983611acc565b919050555092915050565b60006001600160e01b031982166380ac58cd60e01b1480610bc557506001600160e01b03198216635b5e139f60e01b145b8061043857506301ffc9a760e01b6001600160e01b0319831614610438565b6000818152600260205260409020546001600160a01b03166107c85760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016105a0565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610c788261087d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080610cbd8361087d565b9050806001600160a01b0316846001600160a01b03161480610d0457506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80610d285750836001600160a01b0316610d1d84610505565b6001600160a01b0316145b949350505050565b826001600160a01b0316610d438261087d565b6001600160a01b031614610d695760405162461bcd60e51b81526004016105a090611c09565b6001600160a01b038216610dcb5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016105a0565b610dd88383836001611086565b826001600160a01b0316610deb8261087d565b6001600160a01b031614610e115760405162461bcd60e51b81526004016105a090611c09565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6107568282604051806020016040528060008152506111ba565b6000610ec68261087d565b9050610ed6816000846001611086565b610edf8261087d565b600083815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0385168085526003845282852080546000190190558785526002909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b816001600160a01b0316836001600160a01b031603610fbf5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016105a0565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611037848484610d30565b611043848484846111ed565b610a675760405162461bcd60e51b81526004016105a090611c4e565b600061106c600f5461043e565b600f8054919250600061107e83611acc565b919050555090565b60018111156110f55760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e7365637574697665207472604482015274185b9cd9995c9cc81b9bdd081cdd5c1c1bdc9d1959605a1b60648201526084016105a0565b816001600160a01b0385166111515761114c81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611174565b836001600160a01b0316856001600160a01b0316146111745761117485826112ee565b6001600160a01b0384166111905761118b8161138b565b6111b3565b846001600160a01b0316846001600160a01b0316146111b3576111b3848261143a565b5050505050565b6111c4838361147e565b6111d160008484846111ed565b6106415760405162461bcd60e51b81526004016105a090611c4e565b60006001600160a01b0384163b156112e357604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611231903390899088908890600401611ca0565b6020604051808303816000875af192505050801561126c575060408051601f3d908101601f1916820190925261126991810190611cdd565b60015b6112c9573d80801561129a576040519150601f19603f3d011682016040523d82523d6000602084013e61129f565b606091505b5080516000036112c15760405162461bcd60e51b81526004016105a090611c4e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610d28565b506001949350505050565b600060016112fb846108dd565b6113059190611cfa565b600083815260076020526040902054909150808214611358576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061139d90600190611cfa565b600083815260096020526040812054600880549394509092849081106113c5576113c5611ae5565b9060005260206000200154905080600883815481106113e6576113e6611ae5565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061141e5761141e611d0d565b6001900381819060005260206000200160009055905550505050565b6000611445836108dd565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166114d45760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016105a0565b6000818152600260205260409020546001600160a01b0316156115395760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016105a0565b611547600083836001611086565b6000818152600260205260409020546001600160a01b0316156115ac5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016105a0565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b50805461162390611a04565b6000825580601f10611633575050565b601f0160209004906000526020600020908101906107c891905b80821115611661576000815560010161164d565b5090565b6001600160e01b0319811681146107c857600080fd5b60006020828403121561168d57600080fd5b813561169881611665565b9392505050565b6000602082840312156116b157600080fd5b5035919050565b6000815180845260005b818110156116de576020818501810151868301820152016116c2565b506000602082860101526020601f19601f83011685010191505092915050565b60208152600061169860208301846116b8565b80356001600160a01b038116811461172857600080fd5b919050565b6000806040838503121561174057600080fd5b61174983611711565b946020939093013593505050565b60008060006060848603121561176c57600080fd5b61177584611711565b925061178360208501611711565b9150604084013590509250925092565b6000602082840312156117a557600080fd5b61169882611711565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156117df576117df6117ae565b604051601f8501601f19908116603f01168101908282118183101715611807576118076117ae565b8160405280935085815286868601111561182057600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261184b57600080fd5b611698838335602085016117c4565b6000806040838503121561186d57600080fd5b82359150602083013567ffffffffffffffff81111561188b57600080fd5b6118978582860161183a565b9150509250929050565b600080604083850312156118b457600080fd5b6118bd83611711565b9150602083013580151581146118d257600080fd5b809150509250929050565b600080600080608085870312156118f357600080fd5b6118fc85611711565b935061190a60208601611711565b925060408501359150606085013567ffffffffffffffff81111561192d57600080fd5b8501601f8101871361193e57600080fd5b61194d878235602084016117c4565b91505092959194509250565b6000806040838503121561196c57600080fd5b61197583611711565b9150602083013567ffffffffffffffff81111561188b57600080fd5b600080604083850312156119a457600080fd5b6119ad83611711565b91506119bb60208401611711565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610438576104386119c4565b80820180821115610438576104386119c4565b600181811c90821680611a1857607f821691505b602082108103611a3857634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b60208082526021908201527f4552524f523a4e46542d3030313a43414c4c45525f4e4f545f524547495354526040820152605960f81b606082015260800190565b600060018201611ade57611ade6119c4565b5060010190565b634e487b7160e01b600052603260045260246000fd5b601f82111561064157600081815260208120601f850160051c81016020861015611b225750805b601f850160051c820191505b81811015611b4157828155600101611b2e565b505050505050565b815167ffffffffffffffff811115611b6357611b636117ae565b611b7781611b718454611a04565b84611afb565b602080601f831160018114611bac5760008415611b945750858301515b600019600386901b1c1916600185901b178555611b41565b600085815260208120601f198616915b82811015611bdb57888601518255948401946001909101908401611bbc565b5085821015611bf95787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611cd3908301846116b8565b9695505050505050565b600060208284031215611cef57600080fd5b815161169881611665565b81810381811115610438576104386119c4565b634e487b7160e01b600052603160045260246000fdfe44657a656e7472616c697a656420496e737572616e63652050726f746f636f6c205265676973747279a2646970667358221220bfafc16bdaf37d7e7f030e76f63504310b1b0873a8baeb39dcc08423f8b1c99e64736f6c6343000814003344657a656e7472616c697a656420496e737572616e63652050726f746f636f6c205265676973747279f0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a004f61291a8ac3d020d0a7d919a76b8592aa88385744dee3f8b4f3873b969ed900a26469706673582212200177578e71d273c8435c3634a50c5496ffa13f647bf8a11b5bca188cb25c876664736f6c63430008140033",
623
+ "deployedBytecode": "0x60806040523480156200001157600080fd5b5060043610620002015760003560e01c806379a4f1ae1162000119578063b88da75911620000af578063d272ac1e116200007a578063d272ac1e146200059f578063df33330b14620005b6578063e74d052f14620005cd578063f16f93c214620005e457600080fd5b8063b88da7591462000550578063bc36dc911462000567578063c3c5a5471462000571578063cf7a1d77146200058857600080fd5b8063a3bcd81d11620000f0578063a3bcd81d14620004d7578063a48f42e014620004ee578063a745e3df1462000514578063b3c65015146200052d57600080fd5b806379a4f1ae146200047d578063893d20e814620004a5578063946dfcfe14620004af57600080fd5b806331b62a3b116200019b5780634d459c9011620001665780634d459c9014620003375780635ab1bd5314620004555780635ef14b5e146200045c578063644c45e0146200047357600080fd5b806331b62a3b14620002e05780633bc5de3014620002ea5780633fe9300e14620003095780634420e486146200032057600080fd5b80630d8e6e2c11620001dc5780630d8e6e2c146200027c57806315dae03e146200029b5780631a848cfb14620002ab5780631aa3a00814620002c457600080fd5b8063015654ff146200020657806301ffc9a7146200022d5780630abd84341462000265575b600080fd5b62000210620005fb565b6040516001600160a01b0390911681526020015b60405180910390f35b620002546200023e36600462002c6d565b6001600160e01b0319166306ecd8ef60e01b1490565b604051901515815260200162000224565b620002546200027636600462002cb5565b62000619565b62000286620006d0565b60405162ffffff909116815260200162000224565b6040516014815260200162000224565b620002b56200075d565b60405190815260200162000224565b60005b6040516001600160601b03909116815260200162000224565b620002c7620007e4565b6040805160208101909152600081525b60405162000224919062002d29565b620002fa6040518060200160405280600081525081565b620002c76200033136600462002d54565b62000820565b620003f76200034836600462002cb5565b6040805160a081018252600080825260208201819052918101829052606081018290526080810191909152600080516020620055bd83398151915262ffffff92831660009081526020918252604090819020815160a0810183528154958616815263010000009095046001600160a01b03908116938601939093526001015491821690840152600160a01b810464ffffffffff166060840152600160c81b900463ffffffff1660808301525090565b60408051825162ffffff1681526020808401516001600160a01b039081169183019190915283830151169181019190915260608083015164ffffffffff169082015260809182015163ffffffff169181019190915260a00162000224565b3062000210565b620002c76200046d36600462002e73565b6200104b565b620002c7620012da565b620002b57f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b62000210620012f8565b7f4f61291a8ac3d020d0a7d919a76b8592aa88385744dee3f8b4f3873b969ed90154620002b5565b62000210620004e836600462002ef1565b6200141d565b62000505620004ff36600462002f5d565b62001484565b60405162000224919062002f7d565b6200052b6200052536600462002ff2565b620015d2565b005b6200053762001736565b6040516001600160401b03909116815260200162000224565b62000286620005613660046200305b565b62001759565b62000210620017ae565b620002546200058236600462002d54565b620017d3565b6200052b6200059936600462002ff2565b62001884565b620002c7620005b036600462002d54565b62001997565b62000210620005c736600462002f5d565b620019ce565b62000254620005de36600462002f5d565b62001ae0565b620002fa620005f536600462002f5d565b62001b49565b60006200060762001c09565b600901546001600160a01b0316919050565b600080600080516020620055bd83398151915262ffffff84166000908152602091909152604090819020600101549051631bbffab160e21b8152600160c81b90910463ffffffff16600482015273__$5f476116ae21c5294e0c0761c07efa7e1c$__90636effeac490602401602060405180830381865af4158015620006a3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620006c9919062003075565b1192915050565b604051632efe011360e01b815260016004820152600060248201819052604482018190529073__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90632efe011390606401602060405180830381865af415801562000732573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200075891906200308f565b905090565b60006200076962001c09565b600601600c9054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015620007be573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000758919062003075565b600080620007f162001c09565b60068101546001600160601b039081166000908152602092909252604090912054600160601b90041692915050565b6000806200082d62001c09565b6001600160a01b038416600090815260018201602052604090819020549051630a4d29dd60e31b81526001600160601b03909116600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906352694ee890602401602060405180830381865af4158015620008a6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620008cc9190620030af565b6200091e5760405162461bcd60e51b815260206004820181905260248201527f4552524f523a5245472d3030323a414c52454144595f5245474953544552454460448201526064015b60405180910390fd5b6040516301ffc9a760e01b8152631dfba64760e11b600482015283906001600160a01b038216906301ffc9a790602401602060405180830381865afa1580156200096c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620009929190620030af565b620009e05760405162461bcd60e51b815260206004820152601e60248201527f4552524f523a5245472d3030333a4e4f545f524547495354455241424c450000604482015260640162000915565b6000816001600160a01b03166315dae03e6040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000a21573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000a479190620030d3565b60ff80821660009081526002860160205260409020549192501662000aaf5760405162461bcd60e51b815260206004820152601a60248201527f4552524f523a5245472d3030343a545950455f494e56414c4944000000000000604482015260640162000915565b6000826001600160a01b03166331b62a3b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000af0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000b169190620030f3565b905062000b238162001ae0565b62000b7d5760405162461bcd60e51b815260206004820152602360248201527f4552524f523a5245472d3030353a504152454e545f4e4f545f5245474953544560448201526214915160ea1b606482015260840162000915565b60ff808316600090815260038601602090815260408083206001600160601b038616845288835281842054600160c01b9004851684529091529020541662000c125760405162461bcd60e51b815260206004820152602160248201527f4552524f523a5245472d3030363a504152454e545f545950455f494e56414c496044820152601160fa1b606482015260840162000915565b600084600601600c9054906101000a90046001600160a01b03166001600160a01b031663d0def521856001600160a01b031663893d20e86040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000c79573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000c9f919062003113565b604051806020016040528060008152506040518363ffffffff1660e01b815260040162000cce92919062003133565b6020604051808303816000875af115801562000cee573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000d14919062003075565b905080955062000d90846001600160a01b03166315dae03e6040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000d5c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000d829190620030d3565b60285b60ff90811691161490565b1562001035576040516301ffc9a760e01b8152631b4612f160e31b600482015287906001600160a01b038216906301ffc9a790602401602060405180830381865afa15801562000de4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000e0a9190620030af565b62000e585760405162461bcd60e51b815260206004820152601960248201527f4552524f523a5245472d3030373a4e4f545f5345525649434500000000000000604482015260640162000915565b6000816001600160a01b03166317d7de7c6040518163ffffffff1660e01b8152600401600060405180830381865afa15801562000e99573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405262000ec391908101906200318f565b90506000826001600160a01b031663cde749f46040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000f06573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000f2c9190620030d3565b905060008260405160200162000f43919062002d29565b60408051601f1981840301815291815281516020928301206001600160601b038d16600090815260048d01909352912090915062000f8284826200326a565b50600081815260058a016020908152604080832060ff861684529091529020546001600160a01b03161562000ffa5760405162461bcd60e51b815260206004820181905260248201527f4552524f523a5245472d3030383a414c52454144595f52454749535445524544604482015260640162000915565b6000908152600589016020908152604080832060ff9490941683529290522080546001600160a01b0319166001600160a01b038b1617905550505b62001041848762001c2d565b5050505050919050565b6000806200105862001c09565b9050620010678560d262000d85565b806200107b57506200107b8560dc62000d85565b620010c95760405162461bcd60e51b815260206004820152601a60248201527f4552524f523a5245472d3031303a545950455f494e56414c4944000000000000604482015260640162000915565b6006810154604080516020810182526000808252915163d0def52160e01b81529192600160601b90046001600160a01b03169163d0def52191620011139189919060040162003133565b6020604051808303816000875af115801562001133573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001159919062003075565b905080925060006040518060c00160405280856001600160601b03168152602001896001600160601b031681526020018860ff16815260200160006001600160a01b03168152602001876001600160a01b0316815260200186815250905080836000016000866001600160601b03166001600160601b0316815260200190815260200160002060008201518160000160006101000a8154816001600160601b0302191690836001600160601b03160217905550602082015181600001600c6101000a8154816001600160601b0302191690836001600160601b0316021790555060408201518160000160186101000a81548160ff021916908360ff16021790555060608201518160010160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060808201518160020160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060a0820151816003019081620012cb91906200326a565b50905050505050949350505050565b6000620012e662001c09565b600601546001600160601b0316919050565b6000806200130562001c09565b60068101546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af415801562001367573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200138d9190620030af565b620013a65760088101546001600160a01b031662001417565b600681015460405163df33330b60e01b81526001600160601b039091166004820152309063df33330b90602401602060405180830381865afa158015620013f1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001417919062003113565b91505090565b6000808360405160200162001433919062002d29565b6040516020818303038152906040528051906020012090506200145562001c09565b60009182526005016020908152604080832060ff861684529091529020546001600160a01b0316905092915050565b6040805160c0810182526000808252602082018190529181018290526060808201839052608082019290925260a0810191909152620014c262001c09565b6001600160601b0383811660009081526020928352604090819020815160c08101835281548085168252600160601b810490941694810194909452600160c01b90920460ff169083015260018101546001600160a01b039081166060840152600282015416608083015260038101805460a0840191906200154390620031dc565b80601f01602080910402602001604051908101604052809291908181526020018280546200157190620031dc565b8015620015c25780601f106200159657610100808354040283529160200191620015c2565b820191906000526020600020905b815481529060010190602001808311620015a457829003601f168201915b5050505050815250509050919050565b73__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__63a123b37c620015f6620006d0565b6040516001600160e01b031960e084901b16815262ffffff9091166004820152602401602060405180830381865af415801562001637573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200165d919062003336565b6000805160206200559d8339815191528054600160401b900460ff168062001692575080546001600160401b03808416911610155b15620016b15760405163f92ee8a960e01b815260040160405180910390fd5b805468ffffffffffffffffff19166001600160401b03831617600160401b178155620016de858562001f1e565b620016e7600080fd5b805460ff60401b191681556040516001600160401b03831681527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2906020015b60405180910390a15050505050565b6000620007586000805160206200559d833981519152546001600160401b031690565b6000600080516020620055bd833981519152600101828154811062001782576200178262003361565b90600052602060002090600a91828204019190066003029054906101000a900462ffffff169050919050565b6000620017ba62001c09565b60060154600160601b90046001600160a01b0316919050565b6000620017df62001c09565b6001600160a01b03831660009081526001919091016020526040908190205490516330b8415f60e01b81526001600160601b03909116600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f906024015b602060405180830381865af415801562001858573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200187e9190620030af565b92915050565b6000805160206200559d8339815191528054600160401b810460ff1615906001600160401b0316600081158015620018b95750825b90506000826001600160401b03166001148015620018d65750303b155b905081158015620018e5575080155b15620019045760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff1916600117855583156200192f57845460ff60401b1916600160401b1785555b6200193b888862001f1e565b62001946866200214e565b83156200198d57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b5050505050505050565b6000620019a362001c09565b6001600160a01b0390921660009081526001929092016020525060409020546001600160601b031690565b6000620019da62001c09565b6006015460405163046e44af60e11b81526001600160601b0384166004820152600160601b9091046001600160a01b031690636352211e9073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906308dc895e90602401602060405180830381865af415801562001a4f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001a759190620030f3565b6040516001600160e01b031960e084901b1681526001600160601b039091166004820152602401602060405180830381865afa15801562001aba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200187e919062003113565b600062001aec62001c09565b6001600160601b038316600090815260209190915260409081902054905163b2466acf60e01b8152600160c01b90910460ff16600482015273__$fb4566b39bd2075cb32f600f6f40bfaef2$__9063b2466acf906024016200183a565b606062001b5562001c09565b6001600160601b038316600090815260049190910160205260409020805462001b7e90620031dc565b80601f016020809104026020016040519081016040528092919081815260200182805462001bac90620031dc565b801562001bfd5780601f1062001bd15761010080835404028352916020019162001bfd565b820191906000526020600020905b81548152906001019060200180831162001bdf57829003601f168201915b50505050509050919050565b7f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30090565b600082905060006040518060c00160405280846001600160601b03168152602001856001600160a01b03166331b62a3b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801562001c8d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001cb39190620030f3565b6001600160601b03168152602001856001600160a01b03166315dae03e6040518163ffffffff1660e01b8152600401602060405180830381865afa15801562001d00573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001d269190620030d3565b60ff168152602001836001600160a01b03168152602001856001600160a01b031663893d20e86040518163ffffffff1660e01b8152600401602060405180830381865afa15801562001d7c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001da2919062003113565b6001600160a01b03168152602001856001600160a01b0316633bc5de306040518163ffffffff1660e01b8152600401600060405180830381865afa15801562001def573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405262001e1991908101906200318f565b90529050600062001e2962001c09565b6001600160601b038086166000908152602083815260409182902086518154928801519388015160ff16600160c01b0260ff60c01b19948616600160601b026001600160c01b03199094169190951617919091179190911691909117815560608401516001820180546001600160a01b039283166001600160a01b031991821617909155608086015160028401805491909316911617905560a08401519192508391600382019062001edc90826200326a565b5050506001600160a01b0390921660009081526001909201602052506040902080546001600160601b039092166001600160601b031990921691909117905550565b62001f2862002279565b600080516020620055bd833981519152600062001f5b6000805160206200559d833981519152546001600160401b031690565b9050600062001f69620006d0565b9050816001600160401b031660010362001f985760028301805462ffffff191662ffffff831617905562001fd0565b600283015462ffffff9081169082161162001fd05760405162461bcd60e51b8152602060048201526000602482015260440162000915565b6001808401805491820181556000908152602090819020600a808404909101805462ffffff808716600394909606939093026101000a858102930219169190911790556040805160a0810182529283526001600160a01b03808916928401929092529086169082015260608101620020454290565b64ffffffffff1681526020014363ffffffff90811690915262ffffff8084166000908152602087815260409182902085518154928701516001600160a01b039081166301000000026001600160b81b0319909416919095161791909117815584820151600190910180546060870151608090970151909516600160c81b0263ffffffff60c81b1964ffffffffff909716600160a01b026001600160c81b031990961692909416919091179390931793909316179055517f68e7327fca0057a787cde34ababb9ef9844ba8065ee03e8781d8122fc15d441990620017279083908890889062ffffff9390931683526001600160a01b03918216602084015216604082015260600190565b6200215862002279565b60008180602001905181019062002170919062003113565b905060006200217e62001c09565b600881018054336001600160a01b0319918216179091556009820180549091166001600160a01b0385161790556040519091503090620021be9062002c5f565b6001600160a01b039091168152602001604051809103906000f080158015620021eb573d6000803e3d6000fd5b506007820180546001600160a01b0319166001600160a01b039290921691821790556006820180546001600160601b0316600160601b90920291909117905562002234620022b4565b6200223e620024e5565b6006820180546001600160601b0319166001600160601b03929092169190911790556200226a620028a0565b620022746200298f565b505050565b6000805160206200559d83398151915254600160401b900460ff16620022b257604051631afcd79f60e31b815260040160405180910390fd5b565b620022be62002279565b6000620022ca62001c09565b905060008160070160009054906101000a90046001600160a01b03166001600160a01b031663598e28926040518163ffffffff1660e01b8152600401602060405180830381865afa15801562002324573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200234a919062003075565b600783015460098401546040516340c10f1960e01b81526001600160a01b0391821660048201526024810184905292935016906340c10f1990604401600060405180830381600087803b158015620023a157600080fd5b505af1158015620023b6573d6000803e3d6000fd5b505050506000620023c48290565b905060006040518060c00160405280836001600160601b03168152602001620023eb600090565b6001600160601b03168152602001600a5b60ff90811682526000602080840182905260098901546001600160a01b03908116604080870191909152805180840182528481526060968701526001600160601b03808a1685528b845293819020875181549489015192890151909616600160c01b0260ff60c01b19928616600160601b026001600160c01b031990951696909516959095179290921791909116919091178255918301516001820180549184166001600160a01b031992831617905560808401516002830180549190941691161790915560a082015191925082916003820190620024dc90826200326a565b50505050505050565b6000620024f162002279565b6000620024fd62001c09565b6007810154604051630559ea4760e01b8152600260048201529192506000916001600160a01b0390911690630559ea4790602401602060405180830381865afa1580156200254f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062002575919062003075565b90508092508160070160009054906101000a90046001600160a01b03166001600160a01b0316632e85b1f36040518163ffffffff1660e01b8152600401602060405180830381865afa158015620025d0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620025f6919062003075565b811462002607576200260762002ac1565b600782015460098301546040516340c10f1960e01b81526001600160a01b039182166004820152602481018490529116906340c10f1990604401600060405180830381600087803b1580156200265c57600080fd5b505af115801562002671573d6000803e3d6000fd5b505050506000466001036200270057600783015460408051632cc7144960e11b81529051620026f8926001600160a01b03169163598e28929160048083019260209291908290030181865afa158015620026cf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620026f5919062003075565b90565b905062002752565b600783015460408051632e85b1f360e01b815290516200274f926001600160a01b031691632e85b1f39160048083019260209291908290030181865afa158015620026cf573d6000803e3d6000fd5b90505b60006040518060c00160405280866001600160601b03168152602001836001600160601b0316815260200162002786601490565b60ff90811682523060208084019190915260098801546001600160a01b039081166040808601919091528051808401825260008082526060968701919091526001600160601b03808d1682528b855290829020875181549589015193890151909616600160c01b0260ff60c01b19938316600160601b026001600160c01b031990961696909216959095179390931716919091178255918301516001820180549184166001600160a01b031992831617905560808401516002830180549190941691161790915560a0820151919250829160038201906200286890826200326a565b50503060009081526001959095016020525050604090922080546001600160601b0319166001600160601b0385161790555090919050565b620028aa62002279565b6000620028b662001c09565b6014600090815260028201602081905260408083208054600160ff199182168117909255601e85528285208054821683179055602885528285208054821683179055603285528285208054821683179055603c85528285208054821683179055606e85528285208054821683179055608285528285208054821683179055608c8552828520805482168317905560788552828520805482168317905560d28552918420805490921681179091559293509060dc5b60ff1681526020810191909152604001600020805460ff191691151591909117905550565b6200299962002279565b6000620029a562001c09565b601e6000908152600382016020818152604080842060148086529083528185208054600160ff199182168117909255602887528585528387208388528552838720805482168317905560328088528686528488209388529285528387208054821683179055606e8088528686528488208489528652848820805483168417905560788852868652848820848952865284882080548316841790556082885286865284882084895286528488208054831684179055608c808952878752858920948952938652848820805483168417905560d288528686528488209088528552838720805482168317905560dc87528585528387208388528552838720805490911682179055603c8652939092528320939450909291906200296a565b62002acb62002279565b600062002ad762001c09565b905060008160070160009054906101000a90046001600160a01b03166001600160a01b0316632e85b1f36040518163ffffffff1660e01b8152600401602060405180830381865afa15801562002b31573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062002b57919062003075565b600783015460098401546040516340c10f1960e01b81526001600160a01b0391821660048201526024810184905292935016906340c10f1990604401600060405180830381600087803b15801562002bae57600080fd5b505af115801562002bc3573d6000803e3d6000fd5b50505050600062002bd18290565b905060006040518060c00160405280836001600160601b0316815260200162002c498660070160009054906101000a90046001600160a01b03166001600160a01b031663598e28926040518163ffffffff1660e01b8152600401602060405180830381865afa158015620026cf573d6000803e3d6000fd5b6001600160601b031681526020016014620023fc565b612225806200337883390190565b60006020828403121562002c8057600080fd5b81356001600160e01b03198116811462002c9957600080fd5b9392505050565b62ffffff8116811462002cb257600080fd5b50565b60006020828403121562002cc857600080fd5b813562002c998162002ca0565b60005b8381101562002cf257818101518382015260200162002cd8565b50506000910152565b6000815180845262002d1581602086016020860162002cd5565b601f01601f19169290920160200192915050565b60208152600062002c99602083018462002cfb565b6001600160a01b038116811462002cb257600080fd5b60006020828403121562002d6757600080fd5b813562002c998162002d3e565b6001600160601b038116811462002cb257600080fd5b60ff8116811462002cb257600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171562002ddb5762002ddb62002d9a565b604052919050565b60006001600160401b0382111562002dff5762002dff62002d9a565b50601f01601f191660200190565b600062002e2462002e1e8462002de3565b62002db0565b905082815283838301111562002e3957600080fd5b828260208301376000602084830101529392505050565b600082601f83011262002e6257600080fd5b62002c998383356020850162002e0d565b6000806000806080858703121562002e8a57600080fd5b843562002e978162002d74565b9350602085013562002ea98162002d8a565b9250604085013562002ebb8162002d3e565b915060608501356001600160401b0381111562002ed757600080fd5b62002ee58782880162002e50565b91505092959194509250565b6000806040838503121562002f0557600080fd5b82356001600160401b0381111562002f1c57600080fd5b8301601f8101851362002f2e57600080fd5b62002f3f8582356020840162002e0d565b925050602083013562002f528162002d8a565b809150509250929050565b60006020828403121562002f7057600080fd5b813562002c998162002d74565b6020815260006001600160601b038084511660208401528060208501511660408401525060ff6040840151166060830152606083015160018060a01b0380821660808501528060808601511660a0850152505060a083015160c08084015262002fea60e084018262002cfb565b949350505050565b6000806000606084860312156200300857600080fd5b8335620030158162002d3e565b92506020840135620030278162002d3e565b915060408401356001600160401b038111156200304357600080fd5b620030518682870162002e50565b9150509250925092565b6000602082840312156200306e57600080fd5b5035919050565b6000602082840312156200308857600080fd5b5051919050565b600060208284031215620030a257600080fd5b815162002c998162002ca0565b600060208284031215620030c257600080fd5b8151801515811462002c9957600080fd5b600060208284031215620030e657600080fd5b815162002c998162002d8a565b6000602082840312156200310657600080fd5b815162002c998162002d74565b6000602082840312156200312657600080fd5b815162002c998162002d3e565b6001600160a01b038316815260406020820181905260009062002fea9083018462002cfb565b60006200316a62002e1e8462002de3565b90508281528383830111156200317f57600080fd5b62002c9983602083018462002cd5565b600060208284031215620031a257600080fd5b81516001600160401b03811115620031b957600080fd5b8201601f81018413620031cb57600080fd5b62002fea8482516020840162003159565b600181811c90821680620031f157607f821691505b6020821081036200321257634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200227457600081815260208120601f850160051c81016020861015620032415750805b601f850160051c820191505b8181101562003262578281556001016200324d565b505050505050565b81516001600160401b0381111562003286576200328662002d9a565b6200329e81620032978454620031dc565b8462003218565b602080601f831160018114620032d65760008415620032bd5750858301515b600019600386901b1c1916600185901b17855562003262565b600085815260208120601f198616915b828110156200330757888601518255948401946001909101908401620032e6565b5085821015620033265787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000602082840312156200334957600080fd5b81516001600160401b038116811462002c9957600080fd5b634e487b7160e01b600052603260045260246000fdfe60806040523480156200001157600080fd5b506040516200222538038062002225833981016040819052620000349162000165565b604051806060016040528060298152602001620021fc602991396040805180820190915260048152632224a82960e11b602082015260006200007783826200023c565b5060016200008682826200023c565b5050506001600160a01b038116620000e45760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a4e46542d3031303a52454749535452595f5a45524f0000000000604482015260640160405180910390fd5b600b80546001600160a01b0319166001600160a01b03831617905546600c819055620001109062000131565b600d8190556200012290600a6200041d565b600e55506003600f556200046a565b60005b811562000160578062000147816200042b565b9150620001589050600a8362000447565b915062000134565b919050565b6000602082840312156200017857600080fd5b81516001600160a01b03811681146200019057600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620001c257607f821691505b602082108103620001e357634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200023757600081815260208120601f850160051c81016020861015620002125750805b601f850160051c820191505b8181101562000233578281556001016200021e565b5050505b505050565b81516001600160401b0381111562000258576200025862000197565b6200027081620002698454620001ad565b84620001e9565b602080601f831160018114620002a857600084156200028f5750858301515b600019600386901b1c1916600185901b17855562000233565b600085815260208120601f198616915b82811015620002d957888601518255948401946001909101908401620002b8565b5085821015620002f85787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b600181815b808511156200035f57816000190482111562000343576200034362000308565b808516156200035157918102915b93841c939080029062000323565b509250929050565b600082620003785750600162000417565b81620003875750600062000417565b8160018114620003a05760028114620003ab57620003cb565b600191505062000417565b60ff841115620003bf57620003bf62000308565b50506001821b62000417565b5060208310610133831016604e8410600b8410161715620003f0575081810a62000417565b620003fc83836200031e565b806000190482111562000413576200041362000308565b0290505b92915050565b600062000190838362000367565b60006001820162000440576200044062000308565b5060010190565b6000826200046557634e487b7160e01b600052601260045260246000fd5b500490565b611d82806200047a6000396000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c8063598e2892116100f9578063a3f4df7e11610097578063d0def52111610071578063d0def52114610390578063e985e9c5146103a3578063f21de1e8146103df578063f76f8d78146103f057600080fd5b8063a3f4df7e14610362578063b88d4fde1461036a578063c87b56dd1461037d57600080fd5b8063862440e2116100d3578063862440e21461032c57806395d89b411461033f578063a22cb46514610347578063a2309ff81461035a57600080fd5b8063598e2892146102fd5780636352211e1461030657806370a082311461031957600080fd5b80632e85b1f31161016657806342842e0e1161014057806342842e0e146102b157806342966c68146102c45780634f558e79146102d75780634f6ccce7146102ea57600080fd5b80632e85b1f3146102825780632f745c591461028b57806340c10f191461029e57600080fd5b8063081812fc116101a2578063081812fc14610227578063095ea7b31461025257806318160ddd1461026757806323b872dd1461026f57600080fd5b806301ffc9a7146101c95780630559ea47146101f157806306fdde0314610212575b600080fd5b6101dc6101d736600461167b565b610413565b60405190151581526020015b60405180910390f35b6102046101ff36600461169f565b61043e565b6040519081526020016101e8565b61021a610473565b6040516101e891906116fe565b61023a61023536600461169f565b610505565b6040516001600160a01b0390911681526020016101e8565b61026561026036600461172d565b61052c565b005b600854610204565b61026561027d366004611757565b610646565b61020461083581565b61020461029936600461172d565b610677565b6102656102ac36600461172d565b61070d565b6102656102bf366004611757565b61075a565b6102656102d236600461169f565b610775565b6101dc6102e536600461169f565b6107cb565b6102046102f836600461169f565b6107ea565b61020461044d81565b61023a61031436600461169f565b61087d565b610204610327366004611793565b6108dd565b61026561033a36600461185a565b610963565b61021a6109ff565b6102656103553660046118a1565b610a0e565b601054610204565b61021a610a19565b6102656103783660046118dd565b610a35565b61021a61038b36600461169f565b610a6d565b61020461039e366004611959565b610b16565b6101dc6103b1366004611991565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b600b546001600160a01b031661023a565b61021a604051806040016040528060048152602001632224a82960e11b81525081565b60006001600160e01b0319821663780e9d6360e01b1480610438575061043882610b94565b92915050565b6000600d54600c54600e548461045491906119da565b61045e91906119f1565b6104699060646119da565b61043891906119f1565b60606000805461048290611a04565b80601f01602080910402602001604051908101604052809291908181526020018280546104ae90611a04565b80156104fb5780601f106104d0576101008083540402835291602001916104fb565b820191906000526020600020905b8154815290600101906020018083116104de57829003601f168201915b5050505050905090565b600061051082610be4565b506000908152600460205260409020546001600160a01b031690565b60006105378261087d565b9050806001600160a01b0316836001600160a01b0316036105a95760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806105c557506105c581336103b1565b6106375760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016105a0565b6106418383610c43565b505050565b6106503382610cb1565b61066c5760405162461bcd60e51b81526004016105a090611a3e565b610641838383610d30565b6000610682836108dd565b82106106e45760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016105a0565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600b546001600160a01b031633146107375760405162461bcd60e51b81526004016105a090611a8b565b6010805490600061074783611acc565b91905055506107568282610ea1565b5050565b61064183838360405180602001604052806000815250610a35565b600b546001600160a01b0316331461079f5760405162461bcd60e51b81526004016105a090611a8b565b6107a881610be4565b6107b181610ebb565b6000818152600a602052604081206107c891611617565b50565b6000818152600260205260408120546001600160a01b03161515610438565b60006107f560085490565b82106108585760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016105a0565b6008828154811061086b5761086b611ae5565b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806104385760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016105a0565b60006001600160a01b0382166109475760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016105a0565b506001600160a01b031660009081526003602052604090205490565b600b546001600160a01b0316331461098d5760405162461bcd60e51b81526004016105a090611a8b565b60008151116109de5760405162461bcd60e51b815260206004820152601760248201527f4552524f523a4352472d3031313a5552495f454d50545900000000000000000060448201526064016105a0565b6109e782610be4565b6000828152600a602052604090206106418282611b49565b60606001805461048290611a04565b610756338383610f5e565b604051806060016040528060298152602001611d246029913981565b610a3f3383610cb1565b610a5b5760405162461bcd60e51b81526004016105a090611a3e565b610a678484848461102c565b50505050565b6060610a7882610be4565b6000828152600a602052604090208054610a9190611a04565b80601f0160208091040260200160405190810160405280929190818152602001828054610abd90611a04565b8015610b0a5780601f10610adf57610100808354040283529160200191610b0a565b820191906000526020600020905b815481529060010190602001808311610aed57829003601f168201915b50505050509050919050565b600b546000906001600160a01b03163314610b435760405162461bcd60e51b81526004016105a090611a8b565b610b4b61105f565b825190915015610b6f576000818152600a60205260409020610b6d8382611b49565b505b610b798382610ea1565b60108054906000610b8983611acc565b919050555092915050565b60006001600160e01b031982166380ac58cd60e01b1480610bc557506001600160e01b03198216635b5e139f60e01b145b8061043857506301ffc9a760e01b6001600160e01b0319831614610438565b6000818152600260205260409020546001600160a01b03166107c85760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016105a0565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610c788261087d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080610cbd8361087d565b9050806001600160a01b0316846001600160a01b03161480610d0457506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80610d285750836001600160a01b0316610d1d84610505565b6001600160a01b0316145b949350505050565b826001600160a01b0316610d438261087d565b6001600160a01b031614610d695760405162461bcd60e51b81526004016105a090611c09565b6001600160a01b038216610dcb5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016105a0565b610dd88383836001611086565b826001600160a01b0316610deb8261087d565b6001600160a01b031614610e115760405162461bcd60e51b81526004016105a090611c09565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6107568282604051806020016040528060008152506111ba565b6000610ec68261087d565b9050610ed6816000846001611086565b610edf8261087d565b600083815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0385168085526003845282852080546000190190558785526002909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b816001600160a01b0316836001600160a01b031603610fbf5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016105a0565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611037848484610d30565b611043848484846111ed565b610a675760405162461bcd60e51b81526004016105a090611c4e565b600061106c600f5461043e565b600f8054919250600061107e83611acc565b919050555090565b60018111156110f55760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e7365637574697665207472604482015274185b9cd9995c9cc81b9bdd081cdd5c1c1bdc9d1959605a1b60648201526084016105a0565b816001600160a01b0385166111515761114c81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611174565b836001600160a01b0316856001600160a01b0316146111745761117485826112ee565b6001600160a01b0384166111905761118b8161138b565b6111b3565b846001600160a01b0316846001600160a01b0316146111b3576111b3848261143a565b5050505050565b6111c4838361147e565b6111d160008484846111ed565b6106415760405162461bcd60e51b81526004016105a090611c4e565b60006001600160a01b0384163b156112e357604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611231903390899088908890600401611ca0565b6020604051808303816000875af192505050801561126c575060408051601f3d908101601f1916820190925261126991810190611cdd565b60015b6112c9573d80801561129a576040519150601f19603f3d011682016040523d82523d6000602084013e61129f565b606091505b5080516000036112c15760405162461bcd60e51b81526004016105a090611c4e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610d28565b506001949350505050565b600060016112fb846108dd565b6113059190611cfa565b600083815260076020526040902054909150808214611358576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061139d90600190611cfa565b600083815260096020526040812054600880549394509092849081106113c5576113c5611ae5565b9060005260206000200154905080600883815481106113e6576113e6611ae5565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061141e5761141e611d0d565b6001900381819060005260206000200160009055905550505050565b6000611445836108dd565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166114d45760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016105a0565b6000818152600260205260409020546001600160a01b0316156115395760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016105a0565b611547600083836001611086565b6000818152600260205260409020546001600160a01b0316156115ac5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016105a0565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b50805461162390611a04565b6000825580601f10611633575050565b601f0160209004906000526020600020908101906107c891905b80821115611661576000815560010161164d565b5090565b6001600160e01b0319811681146107c857600080fd5b60006020828403121561168d57600080fd5b813561169881611665565b9392505050565b6000602082840312156116b157600080fd5b5035919050565b6000815180845260005b818110156116de576020818501810151868301820152016116c2565b506000602082860101526020601f19601f83011685010191505092915050565b60208152600061169860208301846116b8565b80356001600160a01b038116811461172857600080fd5b919050565b6000806040838503121561174057600080fd5b61174983611711565b946020939093013593505050565b60008060006060848603121561176c57600080fd5b61177584611711565b925061178360208501611711565b9150604084013590509250925092565b6000602082840312156117a557600080fd5b61169882611711565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156117df576117df6117ae565b604051601f8501601f19908116603f01168101908282118183101715611807576118076117ae565b8160405280935085815286868601111561182057600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261184b57600080fd5b611698838335602085016117c4565b6000806040838503121561186d57600080fd5b82359150602083013567ffffffffffffffff81111561188b57600080fd5b6118978582860161183a565b9150509250929050565b600080604083850312156118b457600080fd5b6118bd83611711565b9150602083013580151581146118d257600080fd5b809150509250929050565b600080600080608085870312156118f357600080fd5b6118fc85611711565b935061190a60208601611711565b925060408501359150606085013567ffffffffffffffff81111561192d57600080fd5b8501601f8101871361193e57600080fd5b61194d878235602084016117c4565b91505092959194509250565b6000806040838503121561196c57600080fd5b61197583611711565b9150602083013567ffffffffffffffff81111561188b57600080fd5b600080604083850312156119a457600080fd5b6119ad83611711565b91506119bb60208401611711565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610438576104386119c4565b80820180821115610438576104386119c4565b600181811c90821680611a1857607f821691505b602082108103611a3857634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b60208082526021908201527f4552524f523a4e46542d3030313a43414c4c45525f4e4f545f524547495354526040820152605960f81b606082015260800190565b600060018201611ade57611ade6119c4565b5060010190565b634e487b7160e01b600052603260045260246000fd5b601f82111561064157600081815260208120601f850160051c81016020861015611b225750805b601f850160051c820191505b81811015611b4157828155600101611b2e565b505050505050565b815167ffffffffffffffff811115611b6357611b636117ae565b611b7781611b718454611a04565b84611afb565b602080601f831160018114611bac5760008415611b945750858301515b600019600386901b1c1916600185901b178555611b41565b600085815260208120601f198616915b82811015611bdb57888601518255948401946001909101908401611bbc565b5085821015611bf95787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611cd3908301846116b8565b9695505050505050565b600060208284031215611cef57600080fd5b815161169881611665565b81810381811115610438576104386119c4565b634e487b7160e01b600052603160045260246000fdfe44657a656e7472616c697a656420496e737572616e63652050726f746f636f6c205265676973747279a2646970667358221220bfafc16bdaf37d7e7f030e76f63504310b1b0873a8baeb39dcc08423f8b1c99e64736f6c6343000814003344657a656e7472616c697a656420496e737572616e63652050726f746f636f6c205265676973747279f0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a004f61291a8ac3d020d0a7d919a76b8592aa88385744dee3f8b4f3873b969ed900a26469706673582212200177578e71d273c8435c3634a50c5496ffa13f647bf8a11b5bca188cb25c876664736f6c63430008140033",
624
+ "linkReferences": {
625
+ "contracts/types/Blocknumber.sol": {
626
+ "BlocknumberLib": [
627
+ {
628
+ "length": 20,
629
+ "start": 1870
630
+ }
631
+ ]
632
+ },
633
+ "contracts/types/NftId.sol": {
634
+ "NftIdLib": [
635
+ {
636
+ "length": 20,
637
+ "start": 2385
638
+ },
639
+ {
640
+ "length": 20,
641
+ "start": 5138
642
+ },
643
+ {
644
+ "length": 20,
645
+ "start": 6402
646
+ },
647
+ {
648
+ "length": 20,
649
+ "start": 6906
650
+ }
651
+ ]
652
+ },
653
+ "contracts/types/ObjectType.sol": {
654
+ "ObjectTypeLib": [
655
+ {
656
+ "length": 20,
657
+ "start": 7180
658
+ }
659
+ ]
660
+ },
661
+ "contracts/types/Version.sol": {
662
+ "VersionLib": [
663
+ {
664
+ "length": 20,
665
+ "start": 2013
666
+ },
667
+ {
668
+ "length": 20,
669
+ "start": 5818
670
+ }
671
+ ]
672
+ }
673
+ },
674
+ "deployedLinkReferences": {
675
+ "contracts/types/Blocknumber.sol": {
676
+ "BlocknumberLib": [
677
+ {
678
+ "length": 20,
679
+ "start": 1640
680
+ }
681
+ ]
682
+ },
683
+ "contracts/types/NftId.sol": {
684
+ "NftIdLib": [
685
+ {
686
+ "length": 20,
687
+ "start": 2155
688
+ },
689
+ {
690
+ "length": 20,
691
+ "start": 4908
692
+ },
693
+ {
694
+ "length": 20,
695
+ "start": 6172
696
+ },
697
+ {
698
+ "length": 20,
699
+ "start": 6676
700
+ }
701
+ ]
702
+ },
703
+ "contracts/types/ObjectType.sol": {
704
+ "ObjectTypeLib": [
705
+ {
706
+ "length": 20,
707
+ "start": 6950
708
+ }
709
+ ]
710
+ },
711
+ "contracts/types/Version.sol": {
712
+ "VersionLib": [
713
+ {
714
+ "length": 20,
715
+ "start": 1783
716
+ },
717
+ {
718
+ "length": 20,
719
+ "start": 5588
720
+ }
721
+ ]
722
+ }
723
+ }
724
+ }