@etherisc/gif-next 0.0.2-e6ad61d-739 → 0.0.2-eb13b47-989

Sign up to get free protection for your applications and to get access to all the features.
Files changed (365) hide show
  1. package/README.md +268 -7
  2. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +4 -0
  3. package/artifacts/contracts/{instance/component/ComponentModule.sol/ComponentModule.json → components/BaseComponent.sol/BaseComponent.json} +162 -147
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +610 -0
  6. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +4 -0
  7. package/artifacts/contracts/components/{IPool.sol/IPoolComponent.json → IBaseComponent.sol/IBaseComponent.json} +125 -113
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +152 -0
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +4 -0
  11. package/artifacts/contracts/{instance/policy/IPolicy.sol/IPolicyModule.json → components/IPoolComponent.sol/IPoolComponent.json} +124 -129
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +4 -0
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +157 -0
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +523 -77
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +505 -97
  18. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +4 -0
  19. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.json +66 -0
  20. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +4 -0
  21. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.json +24 -0
  22. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +4 -0
  23. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.json +42 -0
  24. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
  25. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
  26. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
  27. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
  28. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
  29. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
  30. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
  31. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
  32. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
  33. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
  34. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
  35. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +2 -2
  36. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
  37. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
  38. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
  39. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +2 -2
  40. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
  41. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +2 -2
  42. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
  43. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
  44. package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.dbg.json +4 -0
  45. package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.json +114 -0
  46. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.dbg.json +4 -0
  47. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.json +1132 -0
  48. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +4 -0
  49. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +1082 -0
  50. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  51. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +244 -1372
  52. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
  53. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +480 -0
  54. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  55. package/artifacts/contracts/instance/Instance.sol/Instance.json +2740 -949
  56. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
  57. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +930 -0
  58. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +4 -0
  59. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1283 -0
  60. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
  61. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +755 -0
  62. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
  63. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +432 -0
  64. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +4 -0
  65. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +481 -0
  66. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +4 -0
  67. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +113 -0
  68. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +4 -0
  69. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +429 -0
  70. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +4 -0
  71. package/artifacts/contracts/instance/{lifecycle/ILifecycle.sol/ILifecycleModule.json → base/ILifecycle.sol/ILifecycle.json} +10 -77
  72. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +4 -0
  73. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +502 -0
  74. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +4 -0
  75. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +169 -0
  76. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +4 -0
  77. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +211 -0
  78. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +4 -0
  79. package/artifacts/contracts/instance/{access/IAccess.sol/IAccess.json → module/IBundle.sol/IBundle.json} +2 -2
  80. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +4 -0
  81. package/artifacts/contracts/instance/{component/IComponent.sol/IComponent.json → module/IDistribution.sol/IDistribution.json} +2 -2
  82. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
  83. package/artifacts/contracts/instance/{policy → module}/IPolicy.sol/IPolicy.json +1 -1
  84. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
  85. package/artifacts/contracts/instance/{pool/IPoolModule.sol/IPool.json → module/IRisk.sol/IRisk.json} +2 -2
  86. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +4 -0
  87. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.json +10 -0
  88. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +4 -0
  89. package/artifacts/contracts/instance/{treasury → module}/ITreasury.sol/ITreasury.json +1 -1
  90. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +4 -0
  91. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +827 -0
  92. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +4 -0
  93. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +466 -0
  94. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
  95. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +446 -0
  96. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +4 -0
  97. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +561 -0
  98. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +4 -0
  99. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +751 -0
  100. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  101. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +239 -2
  102. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  103. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +563 -24
  104. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
  105. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +872 -0
  106. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +4 -0
  107. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +34 -0
  108. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  109. package/artifacts/contracts/registry/Registry.sol/Registry.json +705 -50
  110. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +4 -0
  111. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +1261 -0
  112. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
  113. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +508 -0
  114. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +4 -0
  115. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +107 -0
  116. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +4 -0
  117. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +35 -0
  118. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
  119. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +127 -0
  120. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +4 -0
  121. package/artifacts/contracts/{components/Component.sol/Component.json → shared/IRegisterable.sol/IRegisterable.json} +98 -102
  122. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
  123. package/artifacts/contracts/shared/IService.sol/IService.json +421 -0
  124. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +4 -0
  125. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +205 -0
  126. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
  127. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +158 -0
  128. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +4 -0
  129. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +349 -0
  130. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +4 -0
  131. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +274 -0
  132. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +4 -0
  133. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.json +442 -0
  134. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
  135. package/artifacts/contracts/shared/Service.sol/Service.json +468 -0
  136. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +4 -0
  137. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +96 -0
  138. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
  139. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +129 -0
  140. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +4 -0
  141. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +228 -0
  142. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +4 -0
  143. package/artifacts/contracts/test/TestFee.sol/TestFee.json +119 -0
  144. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +4 -0
  145. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +305 -0
  146. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +4 -0
  147. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +116 -0
  148. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +4 -0
  149. package/artifacts/contracts/test/TestService.sol/TestService.json +600 -0
  150. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +4 -0
  151. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +376 -0
  152. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +4 -0
  153. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +218 -0
  154. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +4 -0
  155. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +286 -0
  156. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +4 -0
  157. package/artifacts/contracts/test/Usdc.sol/USDC.json +376 -0
  158. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +4 -0
  159. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.json +10 -0
  160. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  161. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  162. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
  163. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +104 -0
  164. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +4 -0
  165. package/artifacts/contracts/types/Fee.sol/FeeLib.json +257 -0
  166. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +4 -0
  167. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +125 -0
  168. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  169. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +65 -4
  170. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +4 -0
  171. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +10 -0
  172. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +4 -0
  173. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +100 -0
  174. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  175. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  176. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +4 -0
  177. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +123 -0
  178. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +4 -0
  179. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +86 -0
  180. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +4 -0
  181. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +156 -0
  182. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  183. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  184. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  185. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +77 -2
  186. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +4 -0
  187. package/artifacts/contracts/types/UFixed.sol/MathLib.json +10 -0
  188. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +4 -0
  189. package/artifacts/contracts/types/UFixed.sol/UFixedLib.json +479 -0
  190. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +4 -0
  191. package/artifacts/contracts/types/Version.sol/VersionLib.json +177 -0
  192. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +4 -0
  193. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +49 -0
  194. package/contracts/components/BaseComponent.sol +86 -0
  195. package/contracts/components/Distribution.sol +166 -0
  196. package/contracts/components/IBaseComponent.sol +24 -0
  197. package/contracts/components/IDistributionComponent.sol +43 -0
  198. package/contracts/components/IPoolComponent.sol +62 -0
  199. package/contracts/components/IProductComponent.sol +35 -0
  200. package/contracts/components/Pool.sol +232 -25
  201. package/contracts/components/Product.sol +254 -46
  202. package/contracts/experiment/cloning/Cloner.sol +47 -0
  203. package/contracts/instance/AccessManagedSimple.sol +122 -0
  204. package/contracts/instance/AccessManagerSimple.sol +692 -0
  205. package/contracts/instance/IAccessManagerSimple.sol +391 -0
  206. package/contracts/instance/IInstance.sol +24 -21
  207. package/contracts/instance/IInstanceService.sol +30 -0
  208. package/contracts/instance/Instance.sol +422 -52
  209. package/contracts/instance/InstanceAccessManager.sol +288 -0
  210. package/contracts/instance/InstanceReader.sol +290 -0
  211. package/contracts/instance/InstanceService.sol +138 -0
  212. package/contracts/instance/InstanceServiceManager.sol +56 -0
  213. package/contracts/instance/base/ComponentServiceBase.sol +49 -0
  214. package/contracts/instance/base/IInstanceBase.sol +23 -0
  215. package/contracts/instance/base/IKeyValueStore.sol +49 -0
  216. package/contracts/instance/base/ILifecycle.sol +30 -0
  217. package/contracts/instance/base/KeyValueStore.sol +172 -0
  218. package/contracts/instance/base/Lifecycle.sol +100 -0
  219. package/contracts/instance/module/IAccess.sol +38 -0
  220. package/contracts/instance/module/IBundle.sol +19 -0
  221. package/contracts/instance/module/IDistribution.sol +39 -0
  222. package/contracts/instance/module/IPolicy.sol +45 -0
  223. package/contracts/instance/module/IRisk.sol +11 -0
  224. package/contracts/instance/module/ISetup.sol +43 -0
  225. package/contracts/instance/module/ITreasury.sol +23 -0
  226. package/contracts/instance/service/ComponentOwnerService.sol +317 -0
  227. package/contracts/instance/service/IComponentOwnerService.sol +20 -0
  228. package/contracts/instance/service/IDistributionService.sol +12 -0
  229. package/contracts/instance/service/IPoolService.sol +37 -0
  230. package/contracts/instance/service/IProductService.sol +107 -0
  231. package/contracts/registry/ChainNft.sol +129 -62
  232. package/contracts/registry/IRegistry.sol +68 -45
  233. package/contracts/registry/IRegistryService.sol +35 -0
  234. package/contracts/registry/ITransferInterceptor.sol +6 -0
  235. package/contracts/registry/Registry.sol +411 -125
  236. package/contracts/registry/RegistryService.sol +444 -0
  237. package/contracts/registry/RegistryServiceManager.sol +64 -0
  238. package/contracts/shared/ContractDeployerLib.sol +72 -0
  239. package/contracts/shared/ERC165.sol +21 -0
  240. package/contracts/shared/INftOwnable.sol +22 -0
  241. package/contracts/shared/IRegisterable.sol +17 -0
  242. package/contracts/shared/IService.sol +15 -0
  243. package/contracts/shared/IVersionable.sol +96 -0
  244. package/contracts/shared/NftOwnable.sol +136 -0
  245. package/contracts/shared/ProxyManager.sol +94 -0
  246. package/contracts/shared/Registerable.sol +89 -0
  247. package/contracts/shared/RegisterableUpgradable.sol +16 -0
  248. package/contracts/shared/Service.sol +54 -0
  249. package/contracts/shared/TokenHandler.sol +27 -0
  250. package/contracts/shared/UpgradableProxyWithAdmin.sol +16 -0
  251. package/contracts/shared/Versionable.sol +147 -0
  252. package/contracts/test/TestFee.sol +25 -0
  253. package/contracts/test/TestRegisterable.sol +18 -0
  254. package/contracts/test/TestRoleId.sol +14 -0
  255. package/contracts/test/TestService.sol +24 -0
  256. package/contracts/test/TestToken.sol +26 -0
  257. package/contracts/test/TestVersion.sol +44 -0
  258. package/contracts/test/TestVersionable.sol +17 -0
  259. package/contracts/test/Usdc.sol +26 -0
  260. package/contracts/types/AddressSet.sol +58 -0
  261. package/contracts/types/DistributorType.sol +55 -0
  262. package/contracts/types/Fee.sol +44 -20
  263. package/contracts/types/Key32.sol +50 -0
  264. package/contracts/types/NftId.sol +22 -1
  265. package/contracts/types/NftIdSet.sol +60 -0
  266. package/contracts/types/NumberId.sol +52 -0
  267. package/contracts/types/ObjectType.sol +60 -15
  268. package/contracts/types/Referral.sol +85 -0
  269. package/contracts/types/RiskId.sol +43 -0
  270. package/contracts/types/RoleId.sol +82 -0
  271. package/contracts/types/StateId.sol +14 -4
  272. package/contracts/types/Timestamp.sol +29 -4
  273. package/contracts/types/UFixed.sol +138 -23
  274. package/contracts/types/Version.sol +107 -0
  275. package/package.json +12 -5
  276. package/artifacts/contracts/components/Component.sol/Component.dbg.json +0 -4
  277. package/artifacts/contracts/components/Component.sol/InstanceLinked.dbg.json +0 -4
  278. package/artifacts/contracts/components/Component.sol/InstanceLinked.json +0 -35
  279. package/artifacts/contracts/components/IPool.sol/IPoolComponent.dbg.json +0 -4
  280. package/artifacts/contracts/components/IProduct.sol/IProductComponent.dbg.json +0 -4
  281. package/artifacts/contracts/components/IProduct.sol/IProductComponent.json +0 -74
  282. package/artifacts/contracts/instance/access/Access.sol/AccessModule.dbg.json +0 -4
  283. package/artifacts/contracts/instance/access/Access.sol/AccessModule.json +0 -400
  284. package/artifacts/contracts/instance/access/IAccess.sol/IAccess.dbg.json +0 -4
  285. package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.dbg.json +0 -4
  286. package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.json +0 -35
  287. package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.dbg.json +0 -4
  288. package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.json +0 -50
  289. package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.dbg.json +0 -4
  290. package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.json +0 -336
  291. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
  292. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.dbg.json +0 -4
  293. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.json +0 -202
  294. package/artifacts/contracts/instance/component/IComponent.sol/IComponent.dbg.json +0 -4
  295. package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.dbg.json +0 -4
  296. package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.json +0 -205
  297. package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.dbg.json +0 -4
  298. package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.json +0 -217
  299. package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.dbg.json +0 -4
  300. package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.json +0 -141
  301. package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.dbg.json +0 -4
  302. package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.json +0 -24
  303. package/artifacts/contracts/instance/lifecycle/ILifecycle.sol/ILifecycle.dbg.json +0 -4
  304. package/artifacts/contracts/instance/lifecycle/ILifecycle.sol/ILifecycle.json +0 -134
  305. package/artifacts/contracts/instance/lifecycle/ILifecycle.sol/ILifecycleModule.dbg.json +0 -4
  306. package/artifacts/contracts/instance/lifecycle/LifecycleModule.sol/LifecycleModule.dbg.json +0 -4
  307. package/artifacts/contracts/instance/lifecycle/LifecycleModule.sol/LifecycleModule.json +0 -221
  308. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
  309. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
  310. package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
  311. package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.json +0 -254
  312. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPool.dbg.json +0 -4
  313. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
  314. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.json +0 -129
  315. package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
  316. package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.json +0 -155
  317. package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.dbg.json +0 -4
  318. package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.json +0 -75
  319. package/artifacts/contracts/instance/product/IProductService.sol/IProductService.dbg.json +0 -4
  320. package/artifacts/contracts/instance/product/IProductService.sol/IProductService.json +0 -127
  321. package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.dbg.json +0 -4
  322. package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.json +0 -75
  323. package/artifacts/contracts/instance/product/ProductService.sol/ProductService.dbg.json +0 -4
  324. package/artifacts/contracts/instance/product/ProductService.sol/ProductService.json +0 -196
  325. package/artifacts/contracts/instance/treasury/ITreasury.sol/ITreasury.dbg.json +0 -4
  326. package/artifacts/contracts/instance/treasury/ITreasury.sol/ITreasuryModule.dbg.json +0 -4
  327. package/artifacts/contracts/instance/treasury/ITreasury.sol/ITreasuryModule.json +0 -490
  328. package/artifacts/contracts/instance/treasury/TokenHandler.sol/TokenHandler.dbg.json +0 -4
  329. package/artifacts/contracts/instance/treasury/TokenHandler.sol/TokenHandler.json +0 -45
  330. package/artifacts/contracts/instance/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +0 -4
  331. package/artifacts/contracts/instance/treasury/TreasuryModule.sol/TreasuryModule.json +0 -490
  332. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
  333. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.json +0 -452
  334. package/artifacts/contracts/registry/IRegistry.sol/IOwnable.dbg.json +0 -4
  335. package/artifacts/contracts/registry/IRegistry.sol/IOwnable.json +0 -24
  336. package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.dbg.json +0 -4
  337. package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.json +0 -166
  338. package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.dbg.json +0 -4
  339. package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.json +0 -49
  340. package/artifacts/contracts/registry/Registry.sol/Registerable.dbg.json +0 -4
  341. package/artifacts/contracts/registry/Registry.sol/Registerable.json +0 -166
  342. package/artifacts/contracts/registry/Registry.sol/RegistryLinked.dbg.json +0 -4
  343. package/artifacts/contracts/registry/Registry.sol/RegistryLinked.json +0 -60
  344. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
  345. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.json +0 -479
  346. package/contracts/components/Component.sol +0 -77
  347. package/contracts/components/IPool.sol +0 -15
  348. package/contracts/components/IProduct.sol +0 -16
  349. package/contracts/experiment/statemachine/README.md +0 -112
  350. package/contracts/instance/access/Access.sol +0 -165
  351. package/contracts/instance/access/IAccess.sol +0 -63
  352. package/contracts/instance/component/ComponentModule.sol +0 -274
  353. package/contracts/instance/component/IComponent.sol +0 -74
  354. package/contracts/instance/lifecycle/ILifecycle.sol +0 -47
  355. package/contracts/instance/lifecycle/LifecycleModule.sol +0 -88
  356. package/contracts/instance/policy/IPolicy.sol +0 -50
  357. package/contracts/instance/policy/PolicyModule.sol +0 -114
  358. package/contracts/instance/pool/IPoolModule.sol +0 -23
  359. package/contracts/instance/pool/PoolModule.sol +0 -81
  360. package/contracts/instance/product/IProductService.sol +0 -36
  361. package/contracts/instance/product/ProductService.sol +0 -136
  362. package/contracts/instance/treasury/ITreasury.sol +0 -91
  363. package/contracts/instance/treasury/TokenHandler.sol +0 -24
  364. package/contracts/instance/treasury/TreasuryModule.sol +0 -168
  365. package/contracts/registry/IChainNft.sol +0 -21
@@ -3,14 +3,462 @@
3
3
  "contractName": "Registry",
4
4
  "sourceName": "contracts/registry/Registry.sol",
5
5
  "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "address",
10
+ "name": "registryOwner",
11
+ "type": "address"
12
+ },
13
+ {
14
+ "internalType": "VersionPart",
15
+ "name": "majorVersion",
16
+ "type": "uint8"
17
+ }
18
+ ],
19
+ "stateMutability": "nonpayable",
20
+ "type": "constructor"
21
+ },
22
+ {
23
+ "inputs": [
24
+ {
25
+ "internalType": "address",
26
+ "name": "objectAddress",
27
+ "type": "address"
28
+ }
29
+ ],
30
+ "name": "ContractAlreadyRegistered",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [
35
+ {
36
+ "internalType": "VersionPart",
37
+ "name": "majorVersion",
38
+ "type": "uint8"
39
+ }
40
+ ],
41
+ "name": "InvalidServiceVersion",
42
+ "type": "error"
43
+ },
44
+ {
45
+ "inputs": [
46
+ {
47
+ "internalType": "ObjectType",
48
+ "name": "objectType",
49
+ "type": "uint8"
50
+ },
51
+ {
52
+ "internalType": "ObjectType",
53
+ "name": "parentType",
54
+ "type": "uint8"
55
+ }
56
+ ],
57
+ "name": "InvalidTypesCombination",
58
+ "type": "error"
59
+ },
60
+ {
61
+ "inputs": [
62
+ {
63
+ "internalType": "VersionPart",
64
+ "name": "newMajorVersionMax",
65
+ "type": "uint8"
66
+ },
67
+ {
68
+ "internalType": "VersionPart",
69
+ "name": "existingMaxMajorVersion",
70
+ "type": "uint8"
71
+ }
72
+ ],
73
+ "name": "MajorVersionMaxIncreaseInvalid",
74
+ "type": "error"
75
+ },
76
+ {
77
+ "inputs": [
78
+ {
79
+ "internalType": "address",
80
+ "name": "account",
81
+ "type": "address"
82
+ }
83
+ ],
84
+ "name": "NotOwner",
85
+ "type": "error"
86
+ },
87
+ {
88
+ "inputs": [
89
+ {
90
+ "internalType": "NftId",
91
+ "name": "registrarNftId",
92
+ "type": "uint96"
93
+ }
94
+ ],
95
+ "name": "NotRegisteredContract",
96
+ "type": "error"
97
+ },
98
+ {
99
+ "inputs": [],
100
+ "name": "NotRegistryService",
101
+ "type": "error"
102
+ },
103
+ {
104
+ "inputs": [
105
+ {
106
+ "internalType": "NftId",
107
+ "name": "registrarNftId",
108
+ "type": "uint96"
109
+ }
110
+ ],
111
+ "name": "NotService",
112
+ "type": "error"
113
+ },
114
+ {
115
+ "inputs": [
116
+ {
117
+ "internalType": "address",
118
+ "name": "token",
119
+ "type": "address"
120
+ }
121
+ ],
122
+ "name": "NotToken",
123
+ "type": "error"
124
+ },
125
+ {
126
+ "inputs": [
127
+ {
128
+ "internalType": "string",
129
+ "name": "name",
130
+ "type": "string"
131
+ },
132
+ {
133
+ "internalType": "VersionPart",
134
+ "name": "majorVersion",
135
+ "type": "uint8"
136
+ }
137
+ ],
138
+ "name": "ServiceNameAlreadyRegistered",
139
+ "type": "error"
140
+ },
141
+ {
142
+ "inputs": [
143
+ {
144
+ "internalType": "VersionPart",
145
+ "name": "majorVersion",
146
+ "type": "uint8"
147
+ }
148
+ ],
149
+ "name": "TokenMajorVersionInvalid",
150
+ "type": "error"
151
+ },
152
+ {
153
+ "inputs": [
154
+ {
155
+ "internalType": "address",
156
+ "name": "token",
157
+ "type": "address"
158
+ }
159
+ ],
160
+ "name": "TokenNotRegistered",
161
+ "type": "error"
162
+ },
163
+ {
164
+ "inputs": [],
165
+ "name": "ZeroParentAddress",
166
+ "type": "error"
167
+ },
168
+ {
169
+ "anonymous": false,
170
+ "inputs": [
171
+ {
172
+ "indexed": false,
173
+ "internalType": "VersionPart",
174
+ "name": "majorVersion",
175
+ "type": "uint8"
176
+ }
177
+ ],
178
+ "name": "LogInitialMajorVersionSet",
179
+ "type": "event"
180
+ },
181
+ {
182
+ "anonymous": false,
183
+ "inputs": [
184
+ {
185
+ "indexed": false,
186
+ "internalType": "VersionPart",
187
+ "name": "majorVersionMax",
188
+ "type": "uint8"
189
+ }
190
+ ],
191
+ "name": "LogMajorVersionSet",
192
+ "type": "event"
193
+ },
194
+ {
195
+ "anonymous": false,
196
+ "inputs": [
197
+ {
198
+ "components": [
199
+ {
200
+ "internalType": "NftId",
201
+ "name": "nftId",
202
+ "type": "uint96"
203
+ },
204
+ {
205
+ "internalType": "NftId",
206
+ "name": "parentNftId",
207
+ "type": "uint96"
208
+ },
209
+ {
210
+ "internalType": "ObjectType",
211
+ "name": "objectType",
212
+ "type": "uint8"
213
+ },
214
+ {
215
+ "internalType": "bool",
216
+ "name": "isInterceptor",
217
+ "type": "bool"
218
+ },
219
+ {
220
+ "internalType": "address",
221
+ "name": "objectAddress",
222
+ "type": "address"
223
+ },
224
+ {
225
+ "internalType": "address",
226
+ "name": "initialOwner",
227
+ "type": "address"
228
+ },
229
+ {
230
+ "internalType": "bytes",
231
+ "name": "data",
232
+ "type": "bytes"
233
+ }
234
+ ],
235
+ "indexed": false,
236
+ "internalType": "struct IRegistry.ObjectInfo",
237
+ "name": "info",
238
+ "type": "tuple"
239
+ }
240
+ ],
241
+ "name": "LogRegistration",
242
+ "type": "event"
243
+ },
244
+ {
245
+ "anonymous": false,
246
+ "inputs": [
247
+ {
248
+ "indexed": false,
249
+ "internalType": "string",
250
+ "name": "serviceName",
251
+ "type": "string"
252
+ },
253
+ {
254
+ "indexed": false,
255
+ "internalType": "VersionPart",
256
+ "name": "majorVersion",
257
+ "type": "uint8"
258
+ }
259
+ ],
260
+ "name": "LogServiceNameRegistration",
261
+ "type": "event"
262
+ },
263
+ {
264
+ "anonymous": false,
265
+ "inputs": [
266
+ {
267
+ "indexed": false,
268
+ "internalType": "address",
269
+ "name": "token",
270
+ "type": "address"
271
+ },
272
+ {
273
+ "indexed": false,
274
+ "internalType": "VersionPart",
275
+ "name": "majorVersion",
276
+ "type": "uint8"
277
+ },
278
+ {
279
+ "indexed": false,
280
+ "internalType": "bool",
281
+ "name": "active",
282
+ "type": "bool"
283
+ }
284
+ ],
285
+ "name": "LogTokenStateSet",
286
+ "type": "event"
287
+ },
6
288
  {
7
289
  "inputs": [],
8
290
  "name": "EMPTY_URI",
9
291
  "outputs": [
10
292
  {
11
- "internalType": "string",
293
+ "internalType": "string",
294
+ "name": "",
295
+ "type": "string"
296
+ }
297
+ ],
298
+ "stateMutability": "view",
299
+ "type": "function"
300
+ },
301
+ {
302
+ "inputs": [],
303
+ "name": "GIF_MAJOR_VERSION_AT_DEPLOYMENT",
304
+ "outputs": [
305
+ {
306
+ "internalType": "uint256",
307
+ "name": "",
308
+ "type": "uint256"
309
+ }
310
+ ],
311
+ "stateMutability": "view",
312
+ "type": "function"
313
+ },
314
+ {
315
+ "inputs": [],
316
+ "name": "NFT_LOCK_ADDRESS",
317
+ "outputs": [
318
+ {
319
+ "internalType": "address",
320
+ "name": "",
321
+ "type": "address"
322
+ }
323
+ ],
324
+ "stateMutability": "view",
325
+ "type": "function"
326
+ },
327
+ {
328
+ "inputs": [],
329
+ "name": "REGISTRY_SERVICE_TOKEN_SEQUENCE_ID",
330
+ "outputs": [
331
+ {
332
+ "internalType": "uint256",
333
+ "name": "",
334
+ "type": "uint256"
335
+ }
336
+ ],
337
+ "stateMutability": "view",
338
+ "type": "function"
339
+ },
340
+ {
341
+ "inputs": [],
342
+ "name": "getChainNft",
343
+ "outputs": [
344
+ {
345
+ "internalType": "contract ChainNft",
346
+ "name": "",
347
+ "type": "address"
348
+ }
349
+ ],
350
+ "stateMutability": "view",
351
+ "type": "function"
352
+ },
353
+ {
354
+ "inputs": [],
355
+ "name": "getMajorVersion",
356
+ "outputs": [
357
+ {
358
+ "internalType": "VersionPart",
359
+ "name": "",
360
+ "type": "uint8"
361
+ }
362
+ ],
363
+ "stateMutability": "view",
364
+ "type": "function"
365
+ },
366
+ {
367
+ "inputs": [],
368
+ "name": "getNftId",
369
+ "outputs": [
370
+ {
371
+ "internalType": "NftId",
372
+ "name": "nftId",
373
+ "type": "uint96"
374
+ }
375
+ ],
376
+ "stateMutability": "view",
377
+ "type": "function"
378
+ },
379
+ {
380
+ "inputs": [
381
+ {
382
+ "internalType": "address",
383
+ "name": "object",
384
+ "type": "address"
385
+ }
386
+ ],
387
+ "name": "getNftId",
388
+ "outputs": [
389
+ {
390
+ "internalType": "NftId",
391
+ "name": "id",
392
+ "type": "uint96"
393
+ }
394
+ ],
395
+ "stateMutability": "view",
396
+ "type": "function"
397
+ },
398
+ {
399
+ "inputs": [],
400
+ "name": "getObjectCount",
401
+ "outputs": [
402
+ {
403
+ "internalType": "uint256",
404
+ "name": "",
405
+ "type": "uint256"
406
+ }
407
+ ],
408
+ "stateMutability": "view",
409
+ "type": "function"
410
+ },
411
+ {
412
+ "inputs": [
413
+ {
414
+ "internalType": "address",
415
+ "name": "object",
416
+ "type": "address"
417
+ }
418
+ ],
419
+ "name": "getObjectInfo",
420
+ "outputs": [
421
+ {
422
+ "components": [
423
+ {
424
+ "internalType": "NftId",
425
+ "name": "nftId",
426
+ "type": "uint96"
427
+ },
428
+ {
429
+ "internalType": "NftId",
430
+ "name": "parentNftId",
431
+ "type": "uint96"
432
+ },
433
+ {
434
+ "internalType": "ObjectType",
435
+ "name": "objectType",
436
+ "type": "uint8"
437
+ },
438
+ {
439
+ "internalType": "bool",
440
+ "name": "isInterceptor",
441
+ "type": "bool"
442
+ },
443
+ {
444
+ "internalType": "address",
445
+ "name": "objectAddress",
446
+ "type": "address"
447
+ },
448
+ {
449
+ "internalType": "address",
450
+ "name": "initialOwner",
451
+ "type": "address"
452
+ },
453
+ {
454
+ "internalType": "bytes",
455
+ "name": "data",
456
+ "type": "bytes"
457
+ }
458
+ ],
459
+ "internalType": "struct IRegistry.ObjectInfo",
12
460
  "name": "",
13
- "type": "string"
461
+ "type": "tuple"
14
462
  }
15
463
  ],
16
464
  "stateMutability": "view",
@@ -24,7 +472,7 @@
24
472
  "type": "uint96"
25
473
  }
26
474
  ],
27
- "name": "getInfo",
475
+ "name": "getObjectInfo",
28
476
  "outputs": [
29
477
  {
30
478
  "components": [
@@ -43,6 +491,11 @@
43
491
  "name": "objectType",
44
492
  "type": "uint8"
45
493
  },
494
+ {
495
+ "internalType": "bool",
496
+ "name": "isInterceptor",
497
+ "type": "bool"
498
+ },
46
499
  {
47
500
  "internalType": "address",
48
501
  "name": "objectAddress",
@@ -52,10 +505,15 @@
52
505
  "internalType": "address",
53
506
  "name": "initialOwner",
54
507
  "type": "address"
508
+ },
509
+ {
510
+ "internalType": "bytes",
511
+ "name": "data",
512
+ "type": "bytes"
55
513
  }
56
514
  ],
57
- "internalType": "struct IRegistry.RegistryInfo",
58
- "name": "info",
515
+ "internalType": "struct IRegistry.ObjectInfo",
516
+ "name": "",
59
517
  "type": "tuple"
60
518
  }
61
519
  ],
@@ -64,11 +522,11 @@
64
522
  },
65
523
  {
66
524
  "inputs": [],
67
- "name": "getNftAddress",
525
+ "name": "getOwner",
68
526
  "outputs": [
69
527
  {
70
528
  "internalType": "address",
71
- "name": "nft",
529
+ "name": "owner",
72
530
  "type": "address"
73
531
  }
74
532
  ],
@@ -77,31 +535,61 @@
77
535
  },
78
536
  {
79
537
  "inputs": [
538
+ {
539
+ "internalType": "string",
540
+ "name": "serviceName",
541
+ "type": "string"
542
+ },
543
+ {
544
+ "internalType": "VersionPart",
545
+ "name": "majorVersion",
546
+ "type": "uint8"
547
+ }
548
+ ],
549
+ "name": "getServiceAddress",
550
+ "outputs": [
80
551
  {
81
552
  "internalType": "address",
82
- "name": "object",
553
+ "name": "",
83
554
  "type": "address"
84
555
  }
85
556
  ],
86
- "name": "getNftId",
87
- "outputs": [
557
+ "stateMutability": "view",
558
+ "type": "function"
559
+ },
560
+ {
561
+ "inputs": [
88
562
  {
89
563
  "internalType": "NftId",
90
- "name": "id",
564
+ "name": "nftId",
91
565
  "type": "uint96"
92
566
  }
93
567
  ],
568
+ "name": "getServiceName",
569
+ "outputs": [
570
+ {
571
+ "internalType": "string",
572
+ "name": "",
573
+ "type": "string"
574
+ }
575
+ ],
94
576
  "stateMutability": "view",
95
577
  "type": "function"
96
578
  },
97
579
  {
98
- "inputs": [],
99
- "name": "getObjectCount",
580
+ "inputs": [
581
+ {
582
+ "internalType": "address",
583
+ "name": "object",
584
+ "type": "address"
585
+ }
586
+ ],
587
+ "name": "isRegistered",
100
588
  "outputs": [
101
589
  {
102
- "internalType": "uint256",
590
+ "internalType": "bool",
103
591
  "name": "",
104
- "type": "uint256"
592
+ "type": "bool"
105
593
  }
106
594
  ],
107
595
  "stateMutability": "view",
@@ -115,12 +603,12 @@
115
603
  "type": "uint96"
116
604
  }
117
605
  ],
118
- "name": "getOwner",
606
+ "name": "isRegistered",
119
607
  "outputs": [
120
608
  {
121
- "internalType": "address",
609
+ "internalType": "bool",
122
610
  "name": "",
123
- "type": "address"
611
+ "type": "bool"
124
612
  }
125
613
  ],
126
614
  "stateMutability": "view",
@@ -130,29 +618,40 @@
130
618
  "inputs": [
131
619
  {
132
620
  "internalType": "address",
133
- "name": "chainNft",
621
+ "name": "token",
134
622
  "type": "address"
623
+ },
624
+ {
625
+ "internalType": "VersionPart",
626
+ "name": "majorVersion",
627
+ "type": "uint8"
135
628
  }
136
629
  ],
137
- "name": "initialize",
138
- "outputs": [],
139
- "stateMutability": "nonpayable",
630
+ "name": "isTokenActive",
631
+ "outputs": [
632
+ {
633
+ "internalType": "bool",
634
+ "name": "",
635
+ "type": "bool"
636
+ }
637
+ ],
638
+ "stateMutability": "view",
140
639
  "type": "function"
141
640
  },
142
641
  {
143
642
  "inputs": [
144
643
  {
145
644
  "internalType": "address",
146
- "name": "object",
645
+ "name": "contractAddress",
147
646
  "type": "address"
148
647
  }
149
648
  ],
150
- "name": "isRegistered",
649
+ "name": "ownerOf",
151
650
  "outputs": [
152
651
  {
153
- "internalType": "bool",
652
+ "internalType": "address",
154
653
  "name": "",
155
- "type": "bool"
654
+ "type": "address"
156
655
  }
157
656
  ],
158
657
  "stateMutability": "view",
@@ -160,12 +659,68 @@
160
659
  },
161
660
  {
162
661
  "inputs": [
662
+ {
663
+ "internalType": "NftId",
664
+ "name": "nftId",
665
+ "type": "uint96"
666
+ }
667
+ ],
668
+ "name": "ownerOf",
669
+ "outputs": [
163
670
  {
164
671
  "internalType": "address",
165
- "name": "objectAddress",
672
+ "name": "",
166
673
  "type": "address"
167
674
  }
168
675
  ],
676
+ "stateMutability": "view",
677
+ "type": "function"
678
+ },
679
+ {
680
+ "inputs": [
681
+ {
682
+ "components": [
683
+ {
684
+ "internalType": "NftId",
685
+ "name": "nftId",
686
+ "type": "uint96"
687
+ },
688
+ {
689
+ "internalType": "NftId",
690
+ "name": "parentNftId",
691
+ "type": "uint96"
692
+ },
693
+ {
694
+ "internalType": "ObjectType",
695
+ "name": "objectType",
696
+ "type": "uint8"
697
+ },
698
+ {
699
+ "internalType": "bool",
700
+ "name": "isInterceptor",
701
+ "type": "bool"
702
+ },
703
+ {
704
+ "internalType": "address",
705
+ "name": "objectAddress",
706
+ "type": "address"
707
+ },
708
+ {
709
+ "internalType": "address",
710
+ "name": "initialOwner",
711
+ "type": "address"
712
+ },
713
+ {
714
+ "internalType": "bytes",
715
+ "name": "data",
716
+ "type": "bytes"
717
+ }
718
+ ],
719
+ "internalType": "struct IRegistry.ObjectInfo",
720
+ "name": "info",
721
+ "type": "tuple"
722
+ }
723
+ ],
169
724
  "name": "register",
170
725
  "outputs": [
171
726
  {
@@ -180,53 +735,121 @@
180
735
  {
181
736
  "inputs": [
182
737
  {
183
- "internalType": "NftId",
184
- "name": "parentNftId",
185
- "type": "uint96"
738
+ "internalType": "VersionPart",
739
+ "name": "newMajorVersion",
740
+ "type": "uint8"
741
+ }
742
+ ],
743
+ "name": "setMajorVersion",
744
+ "outputs": [],
745
+ "stateMutability": "nonpayable",
746
+ "type": "function"
747
+ },
748
+ {
749
+ "inputs": [
750
+ {
751
+ "internalType": "address",
752
+ "name": "token",
753
+ "type": "address"
186
754
  },
187
755
  {
188
- "internalType": "ObjectType",
189
- "name": "objectType",
756
+ "internalType": "VersionPart",
757
+ "name": "majorVersion",
190
758
  "type": "uint8"
191
759
  },
192
760
  {
193
- "internalType": "address",
194
- "name": "initialOwner",
195
- "type": "address"
761
+ "internalType": "bool",
762
+ "name": "active",
763
+ "type": "bool"
764
+ }
765
+ ],
766
+ "name": "setTokenActive",
767
+ "outputs": [],
768
+ "stateMutability": "nonpayable",
769
+ "type": "function"
770
+ },
771
+ {
772
+ "inputs": [
773
+ {
774
+ "internalType": "bytes4",
775
+ "name": "interfaceId",
776
+ "type": "bytes4"
196
777
  }
197
778
  ],
198
- "name": "registerObjectForInstance",
779
+ "name": "supportsInterface",
199
780
  "outputs": [
200
781
  {
201
- "internalType": "NftId",
202
- "name": "nftId",
203
- "type": "uint96"
782
+ "internalType": "bool",
783
+ "name": "",
784
+ "type": "bool"
204
785
  }
205
786
  ],
206
- "stateMutability": "nonpayable",
787
+ "stateMutability": "view",
207
788
  "type": "function"
208
789
  }
209
790
  ],
210
- "bytecode": "0x608060405234801561001057600080fd5b50611002806100206000396000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c8063be9a71bd11610066578063be9a71bd14610229578063c3c5a5471461024e578063c4d66de814610271578063d272ac1e14610286578063df33330b146102b857600080fd5b80631a848cfb146100a35780631d1b0cac146100be5780633fe9300e146100e95780634420e4861461010c5780634c3371cd1461011f575b600080fd5b6100ab6102cb565b6040519081526020015b60405180910390f35b6100d16100cc366004610e29565b61033e565b6040516001600160601b0390911681526020016100b5565b6100ff6040518060200160405280600081525081565b6040516100b59190610eba565b6100d161011a366004610ed4565b610505565b6101cc61012d366004610ef1565b6040805160a081018252600080825260208201819052918101829052606081018290526080810191909152506001600160601b0390811660009081526020818152604091829020825160a08101845281548086168252600160601b810490951692810192909252600160c01b90930460ff169181019190915260018201546001600160a01b039081166060830152600290920154909116608082015290565b6040516100b5919081516001600160601b0390811682526020808401519091169082015260408083015160ff16908201526060808301516001600160a01b0390811691830191909152608092830151169181019190915260a00190565b6003546001600160a01b03165b6040516001600160a01b0390911681526020016100b5565b61026161025c366004610ed4565b610bd2565b60405190151581526020016100b5565b61028461027f366004610ed4565b610c6e565b005b6100d1610294366004610ed4565b6001600160a01b03166000908152600260205260409020546001600160601b031690565b6102366102c6366004610ef1565b610cf3565b600354604080516318160ddd60e01b815290516000926001600160a01b0316916318160ddd9160048083019260209291908290030181865afa158015610315573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103399190610f0e565b905090565b600061035283605a5b60ff90811691161490565b806103635750610363836051610347565b6103b45760405162461bcd60e51b815260206004820152601a60248201527f4552524f523a5245472d3030353a545950455f494e56414c494400000000000060448201526064015b60405180910390fd5b600354604080516020810182526000808252915163d0def52160e01b815291926001600160a01b03169163d0def521916103f391879190600401610f27565b6020604051808303816000875af1158015610412573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104369190610f0e565b9050806040805160a0810182526001600160601b03808416808352988116602080840191825260ff998a168486019081526000606086018181526001600160a01b039b8c16608088019081529d825292819052959095209351845492519551909a16600160c01b0260ff60c01b19958416600160601b026001600160c01b03199093169a90931699909917179290921691909117815594516001860180549186166001600160a01b03199283161790559551600290950180549590941694909516939093179091555090919050565b6001600160a01b038116600090815260026020526040808220549051630a4d29dd60e31b81526001600160601b03909116600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906352694ee890602401602060405180830381865af4158015610577573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061059b9190610f53565b6105e75760405162461bcd60e51b815260206004820181905260248201527f4552524f523a5245472d3030323a414c52454144595f5245474953544552454460448201526064016103ab565b6000829050806001600160a01b03166379e829d06040518163ffffffff1660e01b8152600401602060405180830381865afa15801561062a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061064e9190610f53565b61069a5760405162461bcd60e51b815260206004820152601e60248201527f4552524f523a5245472d3030333a4e4f545f524547495354455241424c45000060448201526064016103ab565b610709816001600160a01b03166315dae03e6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ff9190610f75565b60ff166032141590565b156108a9576000806000836001600160a01b03166331b62a3b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610751573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107759190610f92565b6001600160601b0390811682526020808301939093526040918201600020825160a0810184528154808416808352600160601b820490941695820195909552600160c01b90940460ff168484015260018101546001600160a01b03908116606086015260029091015416608084015290516330b8415f60e01b8152600481019190915290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610837573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061085b9190610f53565b6108a75760405162461bcd60e51b815260206004820152601e60248201527f4552524f523a5245472d3030343a504152454e545f4e4f545f464f554e44000060448201526064016103ab565b505b6000600360009054906101000a90046001600160a01b03166001600160a01b031663d0def521836001600160a01b031663fb2cb1016040518163ffffffff1660e01b8152600401602060405180830381865afa15801561090d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109319190610faf565b604051806020016040528060008152506040518363ffffffff1660e01b815260040161095e929190610f27565b6020604051808303816000875af115801561097d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109a19190610f0e565b905080925060006040518060a00160405280856001600160601b03168152602001846001600160a01b03166331b62a3b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a00573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a249190610f92565b6001600160601b03168152602001846001600160a01b03166315dae03e6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a949190610f75565b60ff168152602001866001600160a01b03168152602001846001600160a01b031663fb2cb1016040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ae9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b0d9190610faf565b6001600160a01b039081169091526001600160601b0380871660008181526020818152604080832087518154848a0151848b015160ff16600160c01b0260ff60c01b19918a16600160601b026001600160c01b03199093169390991692909217171695909517855560608701516001860180549188166001600160a01b031992831617905560809097015160029586018054918816919098161790965599909316835297522080546bffffffffffffffffffffffff1916909517909455509092915050565b6001600160a01b0381166000908152600260205260408082205490516330b8415f60e01b81526001600160601b03909116600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610c44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c689190610f53565b92915050565b6003546001600160a01b031615610cd15760405162461bcd60e51b815260206004820152602160248201527f4552524f523a5245472d3030313a414c52454144595f494e495449414c495a456044820152601160fa1b60648201526084016103ab565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b60035460405163046e44af60e11b81526001600160601b03831660048201526000916001600160a01b031690636352211e9073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906308dc895e90602401602060405180830381865af4158015610d61573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d859190610f92565b6040516001600160e01b031960e084901b1681526001600160601b039091166004820152602401602060405180830381865afa158015610dc9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c689190610faf565b6001600160601b0381168114610e0257600080fd5b50565b60ff81168114610e0257600080fd5b6001600160a01b0381168114610e0257600080fd5b600080600060608486031215610e3e57600080fd5b8335610e4981610ded565b92506020840135610e5981610e05565b91506040840135610e6981610e14565b809150509250925092565b6000815180845260005b81811015610e9a57602081850181015186830182015201610e7e565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000610ecd6020830184610e74565b9392505050565b600060208284031215610ee657600080fd5b8135610ecd81610e14565b600060208284031215610f0357600080fd5b8135610ecd81610ded565b600060208284031215610f2057600080fd5b5051919050565b6001600160a01b0383168152604060208201819052600090610f4b90830184610e74565b949350505050565b600060208284031215610f6557600080fd5b81518015158114610ecd57600080fd5b600060208284031215610f8757600080fd5b8151610ecd81610e05565b600060208284031215610fa457600080fd5b8151610ecd81610ded565b600060208284031215610fc157600080fd5b8151610ecd81610e1456fea2646970667358221220f0ef03c7270dd053385ad4000788b7842ce2ba361d0334bb8ebf29059ea7427664736f6c63430008140033",
211
- "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061009e5760003560e01c8063be9a71bd11610066578063be9a71bd14610229578063c3c5a5471461024e578063c4d66de814610271578063d272ac1e14610286578063df33330b146102b857600080fd5b80631a848cfb146100a35780631d1b0cac146100be5780633fe9300e146100e95780634420e4861461010c5780634c3371cd1461011f575b600080fd5b6100ab6102cb565b6040519081526020015b60405180910390f35b6100d16100cc366004610e29565b61033e565b6040516001600160601b0390911681526020016100b5565b6100ff6040518060200160405280600081525081565b6040516100b59190610eba565b6100d161011a366004610ed4565b610505565b6101cc61012d366004610ef1565b6040805160a081018252600080825260208201819052918101829052606081018290526080810191909152506001600160601b0390811660009081526020818152604091829020825160a08101845281548086168252600160601b810490951692810192909252600160c01b90930460ff169181019190915260018201546001600160a01b039081166060830152600290920154909116608082015290565b6040516100b5919081516001600160601b0390811682526020808401519091169082015260408083015160ff16908201526060808301516001600160a01b0390811691830191909152608092830151169181019190915260a00190565b6003546001600160a01b03165b6040516001600160a01b0390911681526020016100b5565b61026161025c366004610ed4565b610bd2565b60405190151581526020016100b5565b61028461027f366004610ed4565b610c6e565b005b6100d1610294366004610ed4565b6001600160a01b03166000908152600260205260409020546001600160601b031690565b6102366102c6366004610ef1565b610cf3565b600354604080516318160ddd60e01b815290516000926001600160a01b0316916318160ddd9160048083019260209291908290030181865afa158015610315573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103399190610f0e565b905090565b600061035283605a5b60ff90811691161490565b806103635750610363836051610347565b6103b45760405162461bcd60e51b815260206004820152601a60248201527f4552524f523a5245472d3030353a545950455f494e56414c494400000000000060448201526064015b60405180910390fd5b600354604080516020810182526000808252915163d0def52160e01b815291926001600160a01b03169163d0def521916103f391879190600401610f27565b6020604051808303816000875af1158015610412573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104369190610f0e565b9050806040805160a0810182526001600160601b03808416808352988116602080840191825260ff998a168486019081526000606086018181526001600160a01b039b8c16608088019081529d825292819052959095209351845492519551909a16600160c01b0260ff60c01b19958416600160601b026001600160c01b03199093169a90931699909917179290921691909117815594516001860180549186166001600160a01b03199283161790559551600290950180549590941694909516939093179091555090919050565b6001600160a01b038116600090815260026020526040808220549051630a4d29dd60e31b81526001600160601b03909116600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906352694ee890602401602060405180830381865af4158015610577573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061059b9190610f53565b6105e75760405162461bcd60e51b815260206004820181905260248201527f4552524f523a5245472d3030323a414c52454144595f5245474953544552454460448201526064016103ab565b6000829050806001600160a01b03166379e829d06040518163ffffffff1660e01b8152600401602060405180830381865afa15801561062a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061064e9190610f53565b61069a5760405162461bcd60e51b815260206004820152601e60248201527f4552524f523a5245472d3030333a4e4f545f524547495354455241424c45000060448201526064016103ab565b610709816001600160a01b03166315dae03e6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ff9190610f75565b60ff166032141590565b156108a9576000806000836001600160a01b03166331b62a3b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610751573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107759190610f92565b6001600160601b0390811682526020808301939093526040918201600020825160a0810184528154808416808352600160601b820490941695820195909552600160c01b90940460ff168484015260018101546001600160a01b03908116606086015260029091015416608084015290516330b8415f60e01b8152600481019190915290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610837573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061085b9190610f53565b6108a75760405162461bcd60e51b815260206004820152601e60248201527f4552524f523a5245472d3030343a504152454e545f4e4f545f464f554e44000060448201526064016103ab565b505b6000600360009054906101000a90046001600160a01b03166001600160a01b031663d0def521836001600160a01b031663fb2cb1016040518163ffffffff1660e01b8152600401602060405180830381865afa15801561090d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109319190610faf565b604051806020016040528060008152506040518363ffffffff1660e01b815260040161095e929190610f27565b6020604051808303816000875af115801561097d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109a19190610f0e565b905080925060006040518060a00160405280856001600160601b03168152602001846001600160a01b03166331b62a3b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a00573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a249190610f92565b6001600160601b03168152602001846001600160a01b03166315dae03e6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a949190610f75565b60ff168152602001866001600160a01b03168152602001846001600160a01b031663fb2cb1016040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ae9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b0d9190610faf565b6001600160a01b039081169091526001600160601b0380871660008181526020818152604080832087518154848a0151848b015160ff16600160c01b0260ff60c01b19918a16600160601b026001600160c01b03199093169390991692909217171695909517855560608701516001860180549188166001600160a01b031992831617905560809097015160029586018054918816919098161790965599909316835297522080546bffffffffffffffffffffffff1916909517909455509092915050565b6001600160a01b0381166000908152600260205260408082205490516330b8415f60e01b81526001600160601b03909116600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610c44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c689190610f53565b92915050565b6003546001600160a01b031615610cd15760405162461bcd60e51b815260206004820152602160248201527f4552524f523a5245472d3030313a414c52454144595f494e495449414c495a456044820152601160fa1b60648201526084016103ab565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b60035460405163046e44af60e11b81526001600160601b03831660048201526000916001600160a01b031690636352211e9073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906308dc895e90602401602060405180830381865af4158015610d61573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d859190610f92565b6040516001600160e01b031960e084901b1681526001600160601b039091166004820152602401602060405180830381865afa158015610dc9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c689190610faf565b6001600160601b0381168114610e0257600080fd5b50565b60ff81168114610e0257600080fd5b6001600160a01b0381168114610e0257600080fd5b600080600060608486031215610e3e57600080fd5b8335610e4981610ded565b92506020840135610e5981610e05565b91506040840135610e6981610e14565b809150509250925092565b6000815180845260005b81811015610e9a57602081850181015186830182015201610e7e565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000610ecd6020830184610e74565b9392505050565b600060208284031215610ee657600080fd5b8135610ecd81610e14565b600060208284031215610f0357600080fd5b8135610ecd81610ded565b600060208284031215610f2057600080fd5b5051919050565b6001600160a01b0383168152604060208201819052600090610f4b90830184610e74565b949350505050565b600060208284031215610f6557600080fd5b81518015158114610ecd57600080fd5b600060208284031215610f8757600080fd5b8151610ecd81610e05565b600060208284031215610fa457600080fd5b8151610ecd81610ded565b600060208284031215610fc157600080fd5b8151610ecd81610e1456fea2646970667358221220f0ef03c7270dd053385ad4000788b7842ce2ba361d0334bb8ebf29059ea7427664736f6c63430008140033",
791
+ "bytecode": "0x60806040523480156200001157600080fd5b5060405162004fa038038062004fa08339810160408190526200003491620010b0565b6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff191660011790556001600160a01b038216620000cb5760405162461bcd60e51b815260206004820152601d60248201527f52656769737472793a207265676973747279206f776e65722069732030000000604482015260640160405180910390fd5b604051632392b61b60e21b81526003600482015273__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90638e4ad86c90602401602060405180830381865af41580156200011c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001429190620010f5565b6001805460ff191660ff9290921691821790556040519081527ff5fb08b0be3b39e7b690d5444a6da718afcc193591667aec8d057e23cbe3f98f9060200160405180910390a13060405162000197906200108b565b6001600160a01b039091168152602001604051809103906000f080158015620001c4573d6000803e3d6000fd5b50600b80546001600160a01b0319166001600160a01b0392909216919091179055620001ef62000253565b620001fa8262000473565b620002058262000820565b6200020f62000ba5565b63aadfd86760e01b60009081526020527f38af1b4c69412a2ba1856d7da6a2ba7f0b7bdf77b5280b47d2fa9f02fa6c2929805460ff191660011790555050620012f5565b600b5460408051632cc7144960e11b815290516000926001600160a01b03169163598e28929160048083019260209291908290030181865afa1580156200029e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002c491906200111a565b9050600081600b546040516340c10f1960e01b815260016004820152602481018590529192506001600160a01b0316906340c10f1990604401600060405180830381600087803b1580156200031857600080fd5b505af11580156200032d573d6000803e3d6000fd5b505050506040518060e00160405280826001600160601b031681526020016200035b62000eff60201b60201c565b6001600160601b03168152602001600a5b60ff908116825260006020808401829052604080850183905260016060808701829052825180850184528581526080978801526001600160601b03898116865260028086529584902089518154968b0151958b0151938b01519083166001600160c01b0319909716969096176c0100000000000000000000000095909216949094021761ffff60c01b1916600160c01b919096160260ff60c81b191694909417600160c81b921515929092029190911781559284015191830180546001600160a01b03199081166001600160a01b039485161790915560a085015191840180549091169190921617905560c082015160038201906200046c9082620011d9565b5050505050565b600b54604051630559ea4760e01b8152600260048201526000916001600160a01b031690630559ea4790602401602060405180830381865afa158015620004be573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620004e491906200111a565b600b5460408051632e85b1f360e01b8152905192935083926000926001600160a01b031691632e85b1f39160048083019260209291908290030181865afa15801562000534573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200055a91906200111a565b8314620005e9576200056b62000f04565b600b5460408051632e85b1f360e01b81529051620005e1926001600160a01b031691632e85b1f39160048083019260209291908290030181865afa158015620005b8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620005de91906200111a565b90565b905062000639565b600b5460408051632cc7144960e11b8152905162000636926001600160a01b03169163598e28929160048083019260209291908290030181865afa158015620005b8573d6000803e3d6000fd5b90505b600b546040516340c10f1960e01b81526001600160a01b03868116600483015260248201869052909116906340c10f1990604401600060405180830381600087803b1580156200068857600080fd5b505af11580156200069d573d6000803e3d6000fd5b505050506040518060e00160405280836001600160601b03168152602001826001600160601b03168152602001620006da6200107760201b60201c565b60ff908116825260006020808401829052306040808601919091526001600160a01b038a8116606080880191909152825180850184528581526080978801526001600160601b03808b16865260028086529584902089518154968b0151958b0151938b01511515600160c81b0260ff60c81b1994909916600160c01b029390931661ffff60c01b199583166c01000000000000000000000000026001600160c01b03199097169390921692909217949094179290921692909217939093178355928401516001830180549185166001600160a01b031992831617905560a085015191830180549290941691161790915560c08201516003820190620007e09082620011d9565b505030600090815260036020526040902080546001600160601b039094166001600160601b03199485168117909155600a80549094161790925550505050565b600b54604051630559ea4760e01b8152600360048201526000916001600160a01b031690630559ea4790602401602060405180830381865afa1580156200086b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200089191906200111a565b9050600081600b546040516340c10f1960e01b81526001600160a01b038681166004830152602482018690529293509116906340c10f1990604401600060405180830381600087803b158015620008e757600080fd5b505af1158015620008fc573d6000803e3d6000fd5b50506040805160e0810182526001600160601b03858116808352600a5482166020808501918252603c85870190815260006060870181815233608089019081526001600160a01b038f811660a08b019081528b518088018d5285815260c08c019081529885526002968790529a909320895181549751955193511515600160c81b0260ff60c81b1960ff909516600160c01b029490941661ffff60c01b19968b166c01000000000000000000000000026001600160c01b031990991691909a1617969096179390931696909617959095178355516001830180549186166001600160a01b0319928316179055955190820180549190941695169490941790915551909350909150600382019062000a149082620011d9565b505033600090815260036020908152604080832080546001600160601b0319166001600160601b03871617905580518082018252600f81526e52656769737472795365727669636560881b81840152905190935062000a7691849101620012a5565b60408051808303601f19018152828252805160209182012060008181526009909252918120632392b61b60e21b845260036004850152919350339273__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90638e4ad86c90602401602060405180830381865af415801562000aee573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000b149190620010f5565b60ff1681526020808201929092526040908101600090812080546001600160a01b0319166001600160a01b0395909516949094179093556001600160601b03861683526008909152902062000b6a8382620011d9565b5050600a80546001600160601b039093166c0100000000000000000000000002600160601b600160c01b031990931692909217909155505050565b7f39c85350cb25aa1fda4cd5e9139db6eb90aeebc6c2b5bffd11d297ac50f9a32b805460ff19166001908117909155603c600090815260056020527f251d9ec284fd981039307083734139a5137ee1b6185374514892855fcbc5bd9d9062000c0b602890565b60ff16815260208101919091526040016000908120805460ff19169215159290921790915560019060059062000c3f604690565b60ff1660ff168152602001908152602001600020600062000c656200107760201b60201c565b60ff16815260208101919091526040016000908120805460ff19169215159290921790915560019060059062000c99606e90565b60ff1660ff168152602001908152602001600020600062000cbf6200107c60201b60201c565b60ff16815260208101919091526040016000908120805460ff19169215159290921790915560019060059062000cf3607890565b60ff1660ff168152602001908152602001600020600062000d196200107c60201b60201c565b60ff16815260208101919091526040016000908120805460ff19169215159290921790915560019060059062000d4d608290565b60ff1660ff168152602001908152602001600020600062000d736200107c60201b60201c565b60ff16815260208101919091526040016000908120805460ff19169215159290921790915560019060059062000da7608c90565b60ff1660ff168152602001908152602001600020600062000dcd6200107c60201b60201c565b60ff16815260208101919091526040016000908120805460ff19169215159290921790915560019060069062000e0160d290565b60ff1660ff168152602001908152602001600020600062000e276200108160201b60201c565b60ff16815260208101919091526040016000908120805460ff19169215159290921790915560019060069062000e5b60dc90565b60ff1660ff168152602001908152602001600020600062000e816200108660201b60201c565b60ff16815260208101919091526040016000908120805460ff19169215159290921790915560019060069062000eb5605090565b60ff1660ff168152602001908152602001600020600062000edb6200108660201b60201c565b60ff1681526020810191909152604001600020805460ff1916911515919091179055565b600090565b600b5460408051632e85b1f360e01b815290516000926001600160a01b031691632e85b1f39160048083019260209291908290030181865afa15801562000f4f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000f7591906200111a565b600b546040516340c10f1960e01b815260016004820152602481018390529192506001600160a01b0316906340c10f1990604401600060405180830381600087803b15801562000fc457600080fd5b505af115801562000fd9573d6000803e3d6000fd5b50505050600062000ff082620005de60201b60201c565b90506040518060e00160405280826001600160601b0316815260200162001064600b60009054906101000a90046001600160a01b03166001600160a01b031663598e28926040518163ffffffff1660e01b8152600401602060405180830381865afa158015620005b8573d6000803e3d6000fd5b6001600160601b031681526020016200036c5b602890565b604690565b606e90565b608c90565b611e3d806200316383390190565b805160ff81168114620010ab57600080fd5b919050565b60008060408385031215620010c457600080fd5b82516001600160a01b0381168114620010dc57600080fd5b9150620010ec6020840162001099565b90509250929050565b6000602082840312156200110857600080fd5b620011138262001099565b9392505050565b6000602082840312156200112d57600080fd5b5051919050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200115f57607f821691505b6020821081036200118057634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620011d457600081815260208120601f850160051c81016020861015620011af5750805b601f850160051c820191505b81811015620011d057828155600101620011bb565b5050505b505050565b81516001600160401b03811115620011f557620011f562001134565b6200120d816200120684546200114a565b8462001186565b602080601f8311600181146200124557600084156200122c5750858301515b600019600386901b1c1916600185901b178555620011d0565b600085815260208120601f198616915b82811015620012765788860151825594840194600190910190840162001255565b5085821015620012955787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060208083528351808285015260005b81811015620012d457858101830151858201604001528201620012b6565b506000604082860101526040601f19601f8301168501019250505092915050565b611e5e80620013056000396000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c8063a48f42e0116100c3578063cde749f41161007c578063cde749f414610321578063d272ac1e14610336578063dd32047b14610194578063e285c9c414610368578063e74d052f14610370578063feef0c9b1461038357600080fd5b8063a48f42e014610288578063a5df9e4e1461029b578063b69b2e11146102ae578063bc36dc91146102c1578063bfcdd736146102d2578063c3c5a5471461030e57600080fd5b806338bb429a1161011557806338bb429a146101f25780633fe9300e14610205578063644c45e014610228578063893d20e81461024d5780638b09a5f014610255578063a3bcd81d1461027557600080fd5b806301ffc9a7146101525780630dab67c51461019457806314afd79e146101aa5780631a848cfb146101d55780632849697c146101dd575b600080fd5b61017f6101603660046116e0565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b61019c600381565b60405190815260200161018b565b6101bd6101b8366004611739565b610396565b6040516001600160a01b03909116815260200161018b565b61019c6104ac565b6101f06101eb366004611789565b61051f565b005b6101bd6102003660046117f4565b610920565b61021b6040518060200160405280600081525081565b60405161018b9190611861565b600a546001600160601b03165b6040516001600160601b03909116815260200161018b565b6101bd610976565b610268610263366004611739565b610981565b60405161018b9190611874565b6101bd6102833660046119cd565b610ae7565b6102686102963660046117f4565b610b3d565b6102356102a9366004611a53565b610c10565b61021b6102bc3660046117f4565b6111d8565b600b546001600160a01b03166101bd565b61017f6102e0366004611b26565b6001600160a01b0391909116600090815260076020908152604080832060ff94851684529091529020541690565b61017f61031c366004611739565b611284565b60015460405160ff909116815260200161018b565b610235610344366004611739565b6001600160a01b03166000908152600360205260409020546001600160601b031690565b6101bd600181565b61017f61037e3660046117f4565b61131b565b6101f0610391366004611b54565b611375565b600b546001600160a01b0382811660009081526003602052604080822054905163046e44af60e11b81526001600160601b03909116600482015290929190911690636352211e9073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906308dc895e906024015b602060405180830381865af415801561041a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061043e9190611b71565b6040516001600160e01b031960e084901b1681526001600160601b039091166004820152602401602060405180830381865afa158015610482573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104a69190611b8e565b92915050565b600b54604080516318160ddd60e01b815290516000926001600160a01b0316916318160ddd9160048083019260209291908290030181865afa1580156104f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061051a9190611bab565b905090565b610527610976565b6001600160a01b0316336001600160a01b03161461055f5760405163245aecd360e01b81523360048201526024015b60405180910390fd5b6001600160a01b038084166000908152600360208181526040808420546001600160601b0390811685526002808452828620835160e08101855281548085168252600160601b81049094169581019590955260ff600160c01b8404811694860194909452600160c81b909204909216151560608401526001810154861660808401529081015490941660a082015290830180549293919260c08401919061060590611bc4565b80601f016020809104026020016040519081016040528092919081815260200182805461063190611bc4565b801561067e5780601f106106535761010080835404028352916020019161067e565b820191906000526020600020905b81548152906001019060200180831161066157829003601f168201915b5050509190925250508151604051630a4d29dd60e31b81526001600160601b03909116600482015291925073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__916352694ee89150602401602060405180830381865af41580156106e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061070a9190611bfe565b156107335760405163ddef98d760e01b81526001600160a01b0385166004820152602401610556565b61074f8160400151610743603290565b60ff9081169116141590565b1561077757604051629fd8a560e11b81526001600160a01b0385166004820152602401610556565b604051632b10f60d60e21b815260ff8416600482015260009073__$9dab98ad7ae1a426029e5739f922230a41$__9063ac43d83490602401602060405180830381865af41580156107cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f09190611bab565b600154604051632b10f60d60e21b815260ff909116600482015290915060009073__$9dab98ad7ae1a426029e5739f922230a41$__9063ac43d83490602401602060405180830381865af415801561084c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108709190611bab565b9050600382108061088057508082115b156108a35760405163374a659160e21b815260ff86166004820152602401610556565b6001600160a01b038616600081815260076020908152604080832060ff8a1680855290835292819020805460ff1916891515908117909155815194855291840192909252908201527f330dde7b71e0842a092329aeedc8f261bfaa3210e3743b743d0a147ab085e87f9060600160405180910390a1505050505050565b600b5460405163046e44af60e11b81526001600160601b03831660048201526000916001600160a01b031690636352211e9073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906308dc895e906024016103fd565b600061051a30610396565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c08101919091526001600160a01b038083166000908152600360208181526040808420546001600160601b039081168552600280845294829020825160e08101845281548084168252600160601b81049093169481019490945260ff600160c01b8304811693850193909352600160c81b909104909116151560608301526001810154851660808301529283015490931660a08401528101805460c084019190610a5e90611bc4565b80601f0160208091040260200160405190810160405280929190818152602001828054610a8a90611bc4565b8015610ad75780601f10610aac57610100808354040283529160200191610ad7565b820191906000526020600020905b815481529060010190602001808311610aba57829003601f168201915b5050505050815250509050919050565b60008083604051602001610afb9190611861565b60408051601f19818403018152918152815160209283012060009081526009835281812060ff871682529092529020546001600160a01b031691505092915050565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c08101919091526001600160601b03808316600090815260026020818152604092839020835160e08101855281548087168252600160601b81049096169281019290925260ff600160c01b8604811694830194909452600160c81b9094049092161515606083015260018301546001600160a01b039081166080840152908301541660a082015260038201805491929160c084019190610a5e90611bc4565b600a54600160601b90046001600160601b03166000908152600260205260408120600101546001600160a01b03163314610c5d576040516395d3b24b60e01b815260040160405180910390fd5b6040808301516020808501516001600160601b0380821660009081526002808552868220875160e08101895281548086168252600160601b81049095169681019690965260ff600160c01b8504811698870198909852600160c81b9093049096161515606085015260018201546001600160a01b0390811660808601529582015490951660a08401526003810180549495929492939260c084019190610d0290611bc4565b80601f0160208091040260200160405190810160405280929190818152602001828054610d2e90611bc4565b8015610d7b5780601f10610d5057610100808354040283529160200191610d7b565b820191906000526020600020905b815481529060010190602001808311610d5e57829003601f168201915b5050509190925250505060408101516080820151919250906001600160a01b038116610dba5760405163b0014c0760e01b815260040160405180910390fd5b6000610dd48860600151896080015186606001518561153d565b600b5460a08a01516040805160208101825260008082529151631109bad360e11b815294955090936001600160a01b039093169263221375a692610e1f929091879190600401611c1b565b6020604051808303816000875af1158015610e3e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e629190611bab565b90508097508789600001906001600160601b031690816001600160601b03168152505088600260008a6001600160601b03166001600160601b0316815260200190815260200160002060008201518160000160006101000a8154816001600160601b0302191690836001600160601b03160217905550602082015181600001600c6101000a8154816001600160601b0302191690836001600160601b0316021790555060408201518160000160186101000a81548160ff021916908360ff16021790555060608201518160000160196101000a81548160ff02191690831515021790555060808201518160010160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060a08201518160020160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060c0820151816003019081610fb59190611c9f565b50505060808901516001600160a01b0316156111435760ff808816600090815260056020908152604080832088851684529091528120549091161515900361101d57604051638880f20760e01b815260ff808916600483015285166024820152604401610556565b60808901516001600160a01b038116600090815260036020526040908190205490516330b8415f60e01b81526001600160601b03909116600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015611095573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110b99190611bfe565b156110e25760405163fdcce17f60e01b81526001600160a01b0382166004820152602401610556565b6001600160a01b038116600090815260036020526040902080546bffffffffffffffffffffffff19166001600160601b038b1617905561112f88611124603c90565b60ff90811691161490565b1561113d5761113d8a61157b565b50611195565b60ff808816600090815260066020908152604080832088851684529091528120549091161515900361119557604051638880f20760e01b815260ff808916600483015285166024820152604401610556565b7fd4d9275b28cfa17c18d3f5e6e1fcb0b668c04b3671eb181fee4cbd5c898a9c83896040516111c49190611874565b60405180910390a150505050505050919050565b6001600160601b03811660009081526008602052604090208054606091906111ff90611bc4565b80601f016020809104026020016040519081016040528092919081815260200182805461122b90611bc4565b80156112785780601f1061124d57610100808354040283529160200191611278565b820191906000526020600020905b81548152906001019060200180831161125b57829003601f168201915b50505050509050919050565b6001600160a01b0381166000908152600360205260408082205490516330b8415f60e01b81526001600160601b03909116600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f906024015b602060405180830381865af41580156112f7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104a69190611bfe565b6001600160601b03811660009081526002602052604080822054905163b2466acf60e01b8152600160c01b90910460ff16600482015273__$fb4566b39bd2075cb32f600f6f40bfaef2$__9063b2466acf906024016112da565b61137d610976565b6001600160a01b0316336001600160a01b0316146113b05760405163245aecd360e01b8152336004820152602401610556565b600154604051632b10f60d60e21b815260ff909116600482015260009073__$9dab98ad7ae1a426029e5739f922230a41$__9063ac43d83490602401602060405180830381865af4158015611409573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061142d9190611bab565b604051632b10f60d60e21b815260ff8416600482015290915060009073__$9dab98ad7ae1a426029e5739f922230a41$__9063ac43d83490602401602060405180830381865af4158015611485573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114a99190611bab565b905081811115806114c457506114bf8282611d5f565b600114155b156114f357600154604051633988b95f60e11b815260ff80861660048301529091166024820152604401610556565b6001805460ff191660ff85169081179091556040519081527fa1ca780f1d8fd7049ee7b71b43f24fd6cf67a1bd3f6144f9f54a14862786ddc19060200160405180910390a1505050565b60006001600160a01b03841661156257821561155a575080611573565b506000611573565b841561156f575082611573565b5060005b949350505050565b6000808260c001518060200190518101906115969190611d80565b915091506000826040516020016115ad9190611861565b60408051808303601f19018152919052805160209091012060015490915060ff8084169116146115f55760405163124574bd60e01b815260ff83166004820152602401610556565b600081815260096020908152604080832060ff861684529091529020546001600160a01b03161561163d5782826040516361b38f9b60e01b8152600401610556929190611e03565b83516001600160601b031660009081526008602052604090206116608482611c9f565b506080840151600082815260096020908152604080832060ff871684529091529081902080546001600160a01b0319166001600160a01b0390931692909217909155517f61a7c276e668b50bec61296f0af36680712490afcfd5df73ff24b8c8a3c33f88906116d29085908590611e03565b60405180910390a150505050565b6000602082840312156116f257600080fd5b81356001600160e01b03198116811461170a57600080fd5b9392505050565b6001600160a01b038116811461172657600080fd5b50565b803561173481611711565b919050565b60006020828403121561174b57600080fd5b813561170a81611711565b60ff8116811461172657600080fd5b803561173481611756565b801515811461172657600080fd5b803561173481611770565b60008060006060848603121561179e57600080fd5b83356117a981611711565b925060208401356117b981611756565b915060408401356117c981611770565b809150509250925092565b6001600160601b038116811461172657600080fd5b8035611734816117d4565b60006020828403121561180657600080fd5b813561170a816117d4565b60005b8381101561182c578181015183820152602001611814565b50506000910152565b6000815180845261184d816020860160208601611811565b601f01601f19169290920160200192915050565b60208152600061170a6020830184611835565b6020815260006001600160601b038084511660208401528060208501511660408401525060ff604084015116606083015260608301511515608083015260018060a01b0360808401511660a083015260a08301516118dd60c08401826001600160a01b03169052565b5060c083015160e080840152611573610100840182611835565b634e487b7160e01b600052604160045260246000fd5b60405160e0810167ffffffffffffffff81118282101715611930576119306118f7565b60405290565b604051601f8201601f1916810167ffffffffffffffff8111828210171561195f5761195f6118f7565b604052919050565b600067ffffffffffffffff821115611981576119816118f7565b50601f01601f191660200190565b60006119a261199d84611967565b611936565b90508281528383830111156119b657600080fd5b828260208301376000602084830101529392505050565b600080604083850312156119e057600080fd5b823567ffffffffffffffff8111156119f757600080fd5b8301601f81018513611a0857600080fd5b611a178582356020840161198f565b9250506020830135611a2881611756565b809150509250929050565b600082601f830112611a4457600080fd5b61170a8383356020850161198f565b600060208284031215611a6557600080fd5b813567ffffffffffffffff80821115611a7d57600080fd5b9083019060e08286031215611a9157600080fd5b611a9961190d565b611aa2836117e9565b8152611ab0602084016117e9565b6020820152611ac160408401611765565b6040820152611ad26060840161177e565b6060820152611ae360808401611729565b6080820152611af460a08401611729565b60a082015260c083013582811115611b0b57600080fd5b611b1787828601611a33565b60c08301525095945050505050565b60008060408385031215611b3957600080fd5b8235611b4481611711565b91506020830135611a2881611756565b600060208284031215611b6657600080fd5b813561170a81611756565b600060208284031215611b8357600080fd5b815161170a816117d4565b600060208284031215611ba057600080fd5b815161170a81611711565b600060208284031215611bbd57600080fd5b5051919050565b600181811c90821680611bd857607f821691505b602082108103611bf857634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215611c1057600080fd5b815161170a81611770565b6001600160a01b03848116825283166020820152606060408201819052600090611c4790830184611835565b95945050505050565b601f821115611c9a57600081815260208120601f850160051c81016020861015611c775750805b601f850160051c820191505b81811015611c9657828155600101611c83565b5050505b505050565b815167ffffffffffffffff811115611cb957611cb96118f7565b611ccd81611cc78454611bc4565b84611c50565b602080601f831160018114611d025760008415611cea5750858301515b600019600386901b1c1916600185901b178555611c96565b600085815260208120601f198616915b82811015611d3157888601518255948401946001909101908401611d12565b5085821015611d4f5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b818103818111156104a657634e487b7160e01b600052601160045260246000fd5b60008060408385031215611d9357600080fd5b825167ffffffffffffffff811115611daa57600080fd5b8301601f81018513611dbb57600080fd5b8051611dc961199d82611967565b818152866020838501011115611dde57600080fd5b611def826020830160208601611811565b8094505050506020830151611a2881611756565b604081526000611e166040830185611835565b905060ff83166020830152939250505056fea264697066735822122070f9ca9862894e9a1c742a56f1a1fe2370fe740caf2642808e7d01b25bbdbe7064736f6c6343000814003360806040523480156200001157600080fd5b5060405162001e3d38038062001e3d83398101604081905262000034916200012e565b60405180606001604052806024815260200162001e196024913960408051808201909152600681526511125413919560d21b6020820152600062000079838262000205565b50600162000088828262000205565b5050506001600160a01b038116620000b357604051630ae1413f60e11b815260040160405180910390fd5b600c80546001600160a01b0319166001600160a01b03831617905546600d8190556000600e555b80156200010e57600e8054906000620000f383620002e7565b90915550620001069050600a8262000303565b9050620000da565b600e546200011e90600a62000425565b600f555050600460105562000433565b6000602082840312156200014157600080fd5b81516001600160a01b03811681146200015957600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200018b57607f821691505b602082108103620001ac57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200020057600081815260208120601f850160051c81016020861015620001db5750805b601f850160051c820191505b81811015620001fc57828155600101620001e7565b5050505b505050565b81516001600160401b0381111562000221576200022162000160565b620002398162000232845462000176565b84620001b2565b602080601f831160018114620002715760008415620002585750858301515b600019600386901b1c1916600185901b178555620001fc565b600085815260208120601f198616915b82811015620002a25788860151825594840194600190910190840162000281565b5085821015620002c15787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b600060018201620002fc57620002fc620002d1565b5060010190565b6000826200032157634e487b7160e01b600052601260045260246000fd5b500490565b600181815b80851115620003675781600019048211156200034b576200034b620002d1565b808516156200035957918102915b93841c93908002906200032b565b509250929050565b60008262000380575060016200041f565b816200038f575060006200041f565b8160018114620003a85760028114620003b357620003d3565b60019150506200041f565b60ff841115620003c757620003c7620002d1565b50506001821b6200041f565b5060208310610133831016604e8410600b8410161715620003f8575081810a6200041f565b62000404838362000326565b80600019048211156200041b576200041b620002d1565b0290505b92915050565b60006200015983836200036f565b6119d680620004436000396000f3fe608060405234801561001057600080fd5b50600436106101cf5760003560e01c80634f558e7911610104578063a22cb465116100a2578063c87b56dd11610071578063c87b56dd146103dc578063e985e9c5146103ef578063f21de1e814610402578063f76f8d781461041357600080fd5b8063a22cb465146103a6578063a2309ff8146103b9578063a3f4df7e146103c1578063b88d4fde146103c957600080fd5b80636352211e116100de5780636352211e1461036557806370a0823114610378578063862440e21461038b57806395d89b411461039e57600080fd5b80634f558e791461031e5780634f6ccce714610349578063598e28921461035c57600080fd5b806323b872dd11610171578063342ec4431161014b578063342ec443146102bc57806340c10f19146102e557806342842e0e146102f857806342966c681461030b57600080fd5b806323b872dd1461028d5780632e85b1f3146102a05780632f745c59146102a957600080fd5b8063081812fc116101ad578063081812fc14610232578063095ea7b31461025d57806318160ddd14610272578063221375a61461027a57600080fd5b806301ffc9a7146101d45780630559ea47146101fc57806306fdde031461021d575b600080fd5b6101e76101e23660046113da565b610438565b60405190151581526020015b60405180910390f35b61020f61020a3660046113f7565b610463565b6040519081526020016101f3565b610225610498565b6040516101f39190611456565b6102456102403660046113f7565b61052a565b6040516001600160a01b0390911681526020016101f3565b61027061026b366004611485565b610553565b005b60085461020f565b61020f61028836600461155b565b610562565b61027061029b3660046115b9565b61061f565b61020f61083581565b61020f6102b7366004611485565b6106c8565b6102456102ca3660046113f7565b6000908152600a60205260409020546001600160a01b031690565b6102706102f3366004611485565b61072d565b6102706103063660046115b9565b610779565b6102706103193660046113f7565b610794565b6101e761032c3660046113f7565b6000908152600260205260409020546001600160a01b0316151590565b61020f6103573660046113f7565b6107ee565b61020f61044d81565b6102456103733660046113f7565b610847565b61020f6103863660046115f5565b610852565b610270610399366004611610565b61089a565b610225610945565b6102706103b4366004611657565b610954565b60115461020f565b61022561095f565b6102706103d7366004611693565b61097b565b6102256103ea3660046113f7565b610998565b6101e76103fd36600461170f565b610a42565b600c546001600160a01b0316610245565b6102256040518060400160405280600681526020016511125413919560d21b81525081565b60006001600160e01b0319821663780e9d6360e01b148061045d575061045d82610a70565b92915050565b6000600e54600d54600f54846104799190611758565b610483919061176f565b61048e906064611758565b61045d919061176f565b6060600080546104a790611782565b80601f01602080910402602001604051908101604052809291908181526020018280546104d390611782565b80156105205780601f106104f557610100808354040283529160200191610520565b820191906000526020600020905b81548152906001019060200180831161050357829003601f168201915b5050505050905090565b600061053582610ac0565b506000828152600460205260409020546001600160a01b031661045d565b61055e828233610af9565b5050565b600c546000906001600160a01b03163314610597576040516399c6cd7160e01b81523360048201526024015b60405180910390fd5b61059f610b06565b90506001600160a01b038316156105d8576000818152600a6020526040902080546001600160a01b0319166001600160a01b0385161790555b8151156105f9576000818152600b602052604090206105f7838261180a565b505b60118054906000610609836118ca565b91905055506106188482610b2d565b9392505050565b61062a838383610b47565b6000818152600a60205260409020546001600160a01b0316156106c3576000818152600a6020526040908190205490516373fbfdc360e11b81526001600160a01b0385811660048301528481166024830152604482018490529091169063e7f7fb8690606401600060405180830381600087803b1580156106aa57600080fd5b505af11580156106be573d6000803e3d6000fd5b505050505b505050565b60006106d383610852565b82106107045760405163295f44f760e21b81526001600160a01b03841660048201526024810183905260440161058e565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600c546001600160a01b0316331461075a576040516399c6cd7160e01b815233600482015260240161058e565b6011805490600061076a836118ca565b919050555061055e8282610b2d565b6106c38383836040518060200160405280600081525061097b565b600c546001600160a01b031633146107c1576040516399c6cd7160e01b815233600482015260240161058e565b6107ca81610ac0565b506107d481610bcc565b6000818152600b602052604081206107eb91611376565b50565b60006107f960085490565b82106108225760405163295f44f760e21b8152600060048201526024810183905260440161058e565b60088281548110610835576108356118e3565b90600052602060002001549050919050565b600061045d82610ac0565b60006001600160a01b03821661087e576040516322718ad960e21b81526000600482015260240161058e565b506001600160a01b031660009081526003602052604090205490565b600c546001600160a01b031633146108c7576040516399c6cd7160e01b815233600482015260240161058e565b80516000036108e957604051638e45096160e01b815260040160405180910390fd5b6000828152600b60205260408120805461090290611782565b905011156109235760405163303822c760e21b815260040160405180910390fd5b61092c82610ac0565b506000828152600b602052604090206106c3828261180a565b6060600180546104a790611782565b61055e338383610c07565b60405180606001604052806024815260200161197d6024913981565b61098684848461061f565b61099284848484610ca6565b50505050565b60606109a382610ac0565b506000828152600b6020526040902080546109bd90611782565b80601f01602080910402602001604051908101604052809291908181526020018280546109e990611782565b8015610a365780601f10610a0b57610100808354040283529160200191610a36565b820191906000526020600020905b815481529060010190602001808311610a1957829003601f168201915b50505050509050919050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60006001600160e01b031982166380ac58cd60e01b1480610aa157506001600160e01b03198216635b5e139f60e01b145b8061045d57506301ffc9a760e01b6001600160e01b031983161461045d565b6000818152600260205260408120546001600160a01b03168061045d57604051637e27328960e01b81526004810184905260240161058e565b6106c38383836001610dcf565b6000610b13601054610463565b601080549192506000610b25836118ca565b919050555090565b61055e828260405180602001604052806000815250610ed5565b6001600160a01b038216610b7157604051633250574960e11b81526000600482015260240161058e565b6000610b7e838333610eec565b9050836001600160a01b0316816001600160a01b031614610992576040516364283d7b60e01b81526001600160a01b038086166004830152602482018490528216604482015260640161058e565b6000610bdb6000836000610eec565b90506001600160a01b03811661055e57604051637e27328960e01b81526004810183905260240161058e565b6001600160a01b038216610c3957604051630b61174360e31b81526001600160a01b038316600482015260240161058e565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0383163b1561099257604051630a85bd0160e11b81526001600160a01b0384169063150b7a0290610ce89033908890879087906004016118f9565b6020604051808303816000875af1925050508015610d23575060408051601f3d908101601f19168201909252610d2091810190611936565b60015b610d8c573d808015610d51576040519150601f19603f3d011682016040523d82523d6000602084013e610d56565b606091505b508051600003610d8457604051633250574960e11b81526001600160a01b038516600482015260240161058e565b805181602001fd5b6001600160e01b03198116630a85bd0160e11b14610dc857604051633250574960e11b81526001600160a01b038516600482015260240161058e565b5050505050565b8080610de357506001600160a01b03821615155b15610ea5576000610df384610ac0565b90506001600160a01b03831615801590610e1f5750826001600160a01b0316816001600160a01b031614155b8015610e325750610e308184610a42565b155b15610e5b5760405163a9fbf51f60e01b81526001600160a01b038416600482015260240161058e565b8115610ea35783856001600160a01b0316826001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b5050600090815260046020526040902080546001600160a01b0319166001600160a01b0392909216919091179055565b610edf8383610fc1565b6106c36000848484610ca6565b600080610efa858585611026565b90506001600160a01b038116610f5757610f5284600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b610f7a565b846001600160a01b0316816001600160a01b031614610f7a57610f7a818561111f565b6001600160a01b038516610f9657610f91846111b0565b610fb9565b846001600160a01b0316816001600160a01b031614610fb957610fb9858561125f565b949350505050565b6001600160a01b038216610feb57604051633250574960e11b81526000600482015260240161058e565b6000610ff983836000610eec565b90506001600160a01b038116156106c3576040516339e3563760e11b81526000600482015260240161058e565b6000828152600260205260408120546001600160a01b0390811690831615611053576110538184866112af565b6001600160a01b0381161561109157611070600085600080610dcf565b6001600160a01b038116600090815260036020526040902080546000190190555b6001600160a01b038516156110c0576001600160a01b0385166000908152600360205260409020805460010190555b60008481526002602052604080822080546001600160a01b0319166001600160a01b0389811691821790925591518793918516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4949350505050565b600061112a83610852565b60008381526007602052604090205490915080821461117d576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906111c290600190611953565b600083815260096020526040812054600880549394509092849081106111ea576111ea6118e3565b90600052602060002001549050806008838154811061120b5761120b6118e3565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061124357611243611966565b6001900381819060005260206000200160009055905550505050565b6000600161126c84610852565b6112769190611953565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6112ba838383611313565b6106c3576001600160a01b0383166112e857604051637e27328960e01b81526004810182905260240161058e565b60405163177e802f60e01b81526001600160a01b03831660048201526024810182905260440161058e565b60006001600160a01b03831615801590610fb95750826001600160a01b0316846001600160a01b0316148061134d575061134d8484610a42565b80610fb95750506000908152600460205260409020546001600160a01b03908116911614919050565b50805461138290611782565b6000825580601f10611392575050565b601f0160209004906000526020600020908101906107eb91905b808211156113c057600081556001016113ac565b5090565b6001600160e01b0319811681146107eb57600080fd5b6000602082840312156113ec57600080fd5b8135610618816113c4565b60006020828403121561140957600080fd5b5035919050565b6000815180845260005b818110156114365760208185018101518683018201520161141a565b506000602082860101526020601f19601f83011685010191505092915050565b6020815260006106186020830184611410565b80356001600160a01b038116811461148057600080fd5b919050565b6000806040838503121561149857600080fd5b6114a183611469565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156114e0576114e06114af565b604051601f8501601f19908116603f01168101908282118183101715611508576115086114af565b8160405280935085815286868601111561152157600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261154c57600080fd5b610618838335602085016114c5565b60008060006060848603121561157057600080fd5b61157984611469565b925061158760208501611469565b9150604084013567ffffffffffffffff8111156115a357600080fd5b6115af8682870161153b565b9150509250925092565b6000806000606084860312156115ce57600080fd5b6115d784611469565b92506115e560208501611469565b9150604084013590509250925092565b60006020828403121561160757600080fd5b61061882611469565b6000806040838503121561162357600080fd5b82359150602083013567ffffffffffffffff81111561164157600080fd5b61164d8582860161153b565b9150509250929050565b6000806040838503121561166a57600080fd5b61167383611469565b91506020830135801515811461168857600080fd5b809150509250929050565b600080600080608085870312156116a957600080fd5b6116b285611469565b93506116c060208601611469565b925060408501359150606085013567ffffffffffffffff8111156116e357600080fd5b8501601f810187136116f457600080fd5b611703878235602084016114c5565b91505092959194509250565b6000806040838503121561172257600080fd5b61172b83611469565b915061173960208401611469565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761045d5761045d611742565b8082018082111561045d5761045d611742565b600181811c9082168061179657607f821691505b6020821081036117b657634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156106c357600081815260208120601f850160051c810160208610156117e35750805b601f850160051c820191505b81811015611802578281556001016117ef565b505050505050565b815167ffffffffffffffff811115611824576118246114af565b611838816118328454611782565b846117bc565b602080601f83116001811461186d57600084156118555750858301515b600019600386901b1c1916600185901b178555611802565b600085815260208120601f198616915b8281101561189c5788860151825594840194600190910190840161187d565b50858210156118ba5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000600182016118dc576118dc611742565b5060010190565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061192c90830184611410565b9695505050505050565b60006020828403121561194857600080fd5b8151610618816113c4565b8181038181111561045d5761045d611742565b634e487b7160e01b600052603160045260246000fdfe44657a656e7472616c697a656420496e737572616e63652050726f746f636f6c204e4654a2646970667358221220c02111bfc1745238d5ed0c2884c130c5bf93d8ad7a5e25aae3575fdca7d43f7564736f6c6343000814003344657a656e7472616c697a656420496e737572616e63652050726f746f636f6c204e4654",
792
+ "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061014d5760003560e01c8063a48f42e0116100c3578063cde749f41161007c578063cde749f414610321578063d272ac1e14610336578063dd32047b14610194578063e285c9c414610368578063e74d052f14610370578063feef0c9b1461038357600080fd5b8063a48f42e014610288578063a5df9e4e1461029b578063b69b2e11146102ae578063bc36dc91146102c1578063bfcdd736146102d2578063c3c5a5471461030e57600080fd5b806338bb429a1161011557806338bb429a146101f25780633fe9300e14610205578063644c45e014610228578063893d20e81461024d5780638b09a5f014610255578063a3bcd81d1461027557600080fd5b806301ffc9a7146101525780630dab67c51461019457806314afd79e146101aa5780631a848cfb146101d55780632849697c146101dd575b600080fd5b61017f6101603660046116e0565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b61019c600381565b60405190815260200161018b565b6101bd6101b8366004611739565b610396565b6040516001600160a01b03909116815260200161018b565b61019c6104ac565b6101f06101eb366004611789565b61051f565b005b6101bd6102003660046117f4565b610920565b61021b6040518060200160405280600081525081565b60405161018b9190611861565b600a546001600160601b03165b6040516001600160601b03909116815260200161018b565b6101bd610976565b610268610263366004611739565b610981565b60405161018b9190611874565b6101bd6102833660046119cd565b610ae7565b6102686102963660046117f4565b610b3d565b6102356102a9366004611a53565b610c10565b61021b6102bc3660046117f4565b6111d8565b600b546001600160a01b03166101bd565b61017f6102e0366004611b26565b6001600160a01b0391909116600090815260076020908152604080832060ff94851684529091529020541690565b61017f61031c366004611739565b611284565b60015460405160ff909116815260200161018b565b610235610344366004611739565b6001600160a01b03166000908152600360205260409020546001600160601b031690565b6101bd600181565b61017f61037e3660046117f4565b61131b565b6101f0610391366004611b54565b611375565b600b546001600160a01b0382811660009081526003602052604080822054905163046e44af60e11b81526001600160601b03909116600482015290929190911690636352211e9073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906308dc895e906024015b602060405180830381865af415801561041a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061043e9190611b71565b6040516001600160e01b031960e084901b1681526001600160601b039091166004820152602401602060405180830381865afa158015610482573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104a69190611b8e565b92915050565b600b54604080516318160ddd60e01b815290516000926001600160a01b0316916318160ddd9160048083019260209291908290030181865afa1580156104f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061051a9190611bab565b905090565b610527610976565b6001600160a01b0316336001600160a01b03161461055f5760405163245aecd360e01b81523360048201526024015b60405180910390fd5b6001600160a01b038084166000908152600360208181526040808420546001600160601b0390811685526002808452828620835160e08101855281548085168252600160601b81049094169581019590955260ff600160c01b8404811694860194909452600160c81b909204909216151560608401526001810154861660808401529081015490941660a082015290830180549293919260c08401919061060590611bc4565b80601f016020809104026020016040519081016040528092919081815260200182805461063190611bc4565b801561067e5780601f106106535761010080835404028352916020019161067e565b820191906000526020600020905b81548152906001019060200180831161066157829003601f168201915b5050509190925250508151604051630a4d29dd60e31b81526001600160601b03909116600482015291925073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__916352694ee89150602401602060405180830381865af41580156106e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061070a9190611bfe565b156107335760405163ddef98d760e01b81526001600160a01b0385166004820152602401610556565b61074f8160400151610743603290565b60ff9081169116141590565b1561077757604051629fd8a560e11b81526001600160a01b0385166004820152602401610556565b604051632b10f60d60e21b815260ff8416600482015260009073__$9dab98ad7ae1a426029e5739f922230a41$__9063ac43d83490602401602060405180830381865af41580156107cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f09190611bab565b600154604051632b10f60d60e21b815260ff909116600482015290915060009073__$9dab98ad7ae1a426029e5739f922230a41$__9063ac43d83490602401602060405180830381865af415801561084c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108709190611bab565b9050600382108061088057508082115b156108a35760405163374a659160e21b815260ff86166004820152602401610556565b6001600160a01b038616600081815260076020908152604080832060ff8a1680855290835292819020805460ff1916891515908117909155815194855291840192909252908201527f330dde7b71e0842a092329aeedc8f261bfaa3210e3743b743d0a147ab085e87f9060600160405180910390a1505050505050565b600b5460405163046e44af60e11b81526001600160601b03831660048201526000916001600160a01b031690636352211e9073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906308dc895e906024016103fd565b600061051a30610396565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c08101919091526001600160a01b038083166000908152600360208181526040808420546001600160601b039081168552600280845294829020825160e08101845281548084168252600160601b81049093169481019490945260ff600160c01b8304811693850193909352600160c81b909104909116151560608301526001810154851660808301529283015490931660a08401528101805460c084019190610a5e90611bc4565b80601f0160208091040260200160405190810160405280929190818152602001828054610a8a90611bc4565b8015610ad75780601f10610aac57610100808354040283529160200191610ad7565b820191906000526020600020905b815481529060010190602001808311610aba57829003601f168201915b5050505050815250509050919050565b60008083604051602001610afb9190611861565b60408051601f19818403018152918152815160209283012060009081526009835281812060ff871682529092529020546001600160a01b031691505092915050565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c08101919091526001600160601b03808316600090815260026020818152604092839020835160e08101855281548087168252600160601b81049096169281019290925260ff600160c01b8604811694830194909452600160c81b9094049092161515606083015260018301546001600160a01b039081166080840152908301541660a082015260038201805491929160c084019190610a5e90611bc4565b600a54600160601b90046001600160601b03166000908152600260205260408120600101546001600160a01b03163314610c5d576040516395d3b24b60e01b815260040160405180910390fd5b6040808301516020808501516001600160601b0380821660009081526002808552868220875160e08101895281548086168252600160601b81049095169681019690965260ff600160c01b8504811698870198909852600160c81b9093049096161515606085015260018201546001600160a01b0390811660808601529582015490951660a08401526003810180549495929492939260c084019190610d0290611bc4565b80601f0160208091040260200160405190810160405280929190818152602001828054610d2e90611bc4565b8015610d7b5780601f10610d5057610100808354040283529160200191610d7b565b820191906000526020600020905b815481529060010190602001808311610d5e57829003601f168201915b5050509190925250505060408101516080820151919250906001600160a01b038116610dba5760405163b0014c0760e01b815260040160405180910390fd5b6000610dd48860600151896080015186606001518561153d565b600b5460a08a01516040805160208101825260008082529151631109bad360e11b815294955090936001600160a01b039093169263221375a692610e1f929091879190600401611c1b565b6020604051808303816000875af1158015610e3e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e629190611bab565b90508097508789600001906001600160601b031690816001600160601b03168152505088600260008a6001600160601b03166001600160601b0316815260200190815260200160002060008201518160000160006101000a8154816001600160601b0302191690836001600160601b03160217905550602082015181600001600c6101000a8154816001600160601b0302191690836001600160601b0316021790555060408201518160000160186101000a81548160ff021916908360ff16021790555060608201518160000160196101000a81548160ff02191690831515021790555060808201518160010160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060a08201518160020160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060c0820151816003019081610fb59190611c9f565b50505060808901516001600160a01b0316156111435760ff808816600090815260056020908152604080832088851684529091528120549091161515900361101d57604051638880f20760e01b815260ff808916600483015285166024820152604401610556565b60808901516001600160a01b038116600090815260036020526040908190205490516330b8415f60e01b81526001600160601b03909116600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015611095573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110b99190611bfe565b156110e25760405163fdcce17f60e01b81526001600160a01b0382166004820152602401610556565b6001600160a01b038116600090815260036020526040902080546bffffffffffffffffffffffff19166001600160601b038b1617905561112f88611124603c90565b60ff90811691161490565b1561113d5761113d8a61157b565b50611195565b60ff808816600090815260066020908152604080832088851684529091528120549091161515900361119557604051638880f20760e01b815260ff808916600483015285166024820152604401610556565b7fd4d9275b28cfa17c18d3f5e6e1fcb0b668c04b3671eb181fee4cbd5c898a9c83896040516111c49190611874565b60405180910390a150505050505050919050565b6001600160601b03811660009081526008602052604090208054606091906111ff90611bc4565b80601f016020809104026020016040519081016040528092919081815260200182805461122b90611bc4565b80156112785780601f1061124d57610100808354040283529160200191611278565b820191906000526020600020905b81548152906001019060200180831161125b57829003601f168201915b50505050509050919050565b6001600160a01b0381166000908152600360205260408082205490516330b8415f60e01b81526001600160601b03909116600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f906024015b602060405180830381865af41580156112f7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104a69190611bfe565b6001600160601b03811660009081526002602052604080822054905163b2466acf60e01b8152600160c01b90910460ff16600482015273__$fb4566b39bd2075cb32f600f6f40bfaef2$__9063b2466acf906024016112da565b61137d610976565b6001600160a01b0316336001600160a01b0316146113b05760405163245aecd360e01b8152336004820152602401610556565b600154604051632b10f60d60e21b815260ff909116600482015260009073__$9dab98ad7ae1a426029e5739f922230a41$__9063ac43d83490602401602060405180830381865af4158015611409573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061142d9190611bab565b604051632b10f60d60e21b815260ff8416600482015290915060009073__$9dab98ad7ae1a426029e5739f922230a41$__9063ac43d83490602401602060405180830381865af4158015611485573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114a99190611bab565b905081811115806114c457506114bf8282611d5f565b600114155b156114f357600154604051633988b95f60e11b815260ff80861660048301529091166024820152604401610556565b6001805460ff191660ff85169081179091556040519081527fa1ca780f1d8fd7049ee7b71b43f24fd6cf67a1bd3f6144f9f54a14862786ddc19060200160405180910390a1505050565b60006001600160a01b03841661156257821561155a575080611573565b506000611573565b841561156f575082611573565b5060005b949350505050565b6000808260c001518060200190518101906115969190611d80565b915091506000826040516020016115ad9190611861565b60408051808303601f19018152919052805160209091012060015490915060ff8084169116146115f55760405163124574bd60e01b815260ff83166004820152602401610556565b600081815260096020908152604080832060ff861684529091529020546001600160a01b03161561163d5782826040516361b38f9b60e01b8152600401610556929190611e03565b83516001600160601b031660009081526008602052604090206116608482611c9f565b506080840151600082815260096020908152604080832060ff871684529091529081902080546001600160a01b0319166001600160a01b0390931692909217909155517f61a7c276e668b50bec61296f0af36680712490afcfd5df73ff24b8c8a3c33f88906116d29085908590611e03565b60405180910390a150505050565b6000602082840312156116f257600080fd5b81356001600160e01b03198116811461170a57600080fd5b9392505050565b6001600160a01b038116811461172657600080fd5b50565b803561173481611711565b919050565b60006020828403121561174b57600080fd5b813561170a81611711565b60ff8116811461172657600080fd5b803561173481611756565b801515811461172657600080fd5b803561173481611770565b60008060006060848603121561179e57600080fd5b83356117a981611711565b925060208401356117b981611756565b915060408401356117c981611770565b809150509250925092565b6001600160601b038116811461172657600080fd5b8035611734816117d4565b60006020828403121561180657600080fd5b813561170a816117d4565b60005b8381101561182c578181015183820152602001611814565b50506000910152565b6000815180845261184d816020860160208601611811565b601f01601f19169290920160200192915050565b60208152600061170a6020830184611835565b6020815260006001600160601b038084511660208401528060208501511660408401525060ff604084015116606083015260608301511515608083015260018060a01b0360808401511660a083015260a08301516118dd60c08401826001600160a01b03169052565b5060c083015160e080840152611573610100840182611835565b634e487b7160e01b600052604160045260246000fd5b60405160e0810167ffffffffffffffff81118282101715611930576119306118f7565b60405290565b604051601f8201601f1916810167ffffffffffffffff8111828210171561195f5761195f6118f7565b604052919050565b600067ffffffffffffffff821115611981576119816118f7565b50601f01601f191660200190565b60006119a261199d84611967565b611936565b90508281528383830111156119b657600080fd5b828260208301376000602084830101529392505050565b600080604083850312156119e057600080fd5b823567ffffffffffffffff8111156119f757600080fd5b8301601f81018513611a0857600080fd5b611a178582356020840161198f565b9250506020830135611a2881611756565b809150509250929050565b600082601f830112611a4457600080fd5b61170a8383356020850161198f565b600060208284031215611a6557600080fd5b813567ffffffffffffffff80821115611a7d57600080fd5b9083019060e08286031215611a9157600080fd5b611a9961190d565b611aa2836117e9565b8152611ab0602084016117e9565b6020820152611ac160408401611765565b6040820152611ad26060840161177e565b6060820152611ae360808401611729565b6080820152611af460a08401611729565b60a082015260c083013582811115611b0b57600080fd5b611b1787828601611a33565b60c08301525095945050505050565b60008060408385031215611b3957600080fd5b8235611b4481611711565b91506020830135611a2881611756565b600060208284031215611b6657600080fd5b813561170a81611756565b600060208284031215611b8357600080fd5b815161170a816117d4565b600060208284031215611ba057600080fd5b815161170a81611711565b600060208284031215611bbd57600080fd5b5051919050565b600181811c90821680611bd857607f821691505b602082108103611bf857634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215611c1057600080fd5b815161170a81611770565b6001600160a01b03848116825283166020820152606060408201819052600090611c4790830184611835565b95945050505050565b601f821115611c9a57600081815260208120601f850160051c81016020861015611c775750805b601f850160051c820191505b81811015611c9657828155600101611c83565b5050505b505050565b815167ffffffffffffffff811115611cb957611cb96118f7565b611ccd81611cc78454611bc4565b84611c50565b602080601f831160018114611d025760008415611cea5750858301515b600019600386901b1c1916600185901b178555611c96565b600085815260208120601f198616915b82811015611d3157888601518255948401946001909101908401611d12565b5085821015611d4f5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b818103818111156104a657634e487b7160e01b600052601160045260246000fd5b60008060408385031215611d9357600080fd5b825167ffffffffffffffff811115611daa57600080fd5b8301601f81018513611dbb57600080fd5b8051611dc961199d82611967565b818152866020838501011115611dde57600080fd5b611def826020830160208601611811565b8094505050506020830151611a2881611756565b604081526000611e166040830185611835565b905060ff83166020830152939250505056fea264697066735822122070f9ca9862894e9a1c742a56f1a1fe2370fe740caf2642808e7d01b25bbdbe7064736f6c63430008140033",
212
793
  "linkReferences": {
213
794
  "contracts/types/NftId.sol": {
214
795
  "NftIdLib": [
215
796
  {
216
797
  "length": 20,
217
- "start": 1373
798
+ "start": 5860
799
+ },
800
+ {
801
+ "length": 20,
802
+ "start": 6576
803
+ },
804
+ {
805
+ "length": 20,
806
+ "start": 7257
807
+ },
808
+ {
809
+ "length": 20,
810
+ "start": 9056
811
+ },
812
+ {
813
+ "length": 20,
814
+ "start": 9665
815
+ }
816
+ ]
817
+ },
818
+ "contracts/types/ObjectType.sol": {
819
+ "ObjectTypeLib": [
820
+ {
821
+ "length": 20,
822
+ "start": 9816
823
+ }
824
+ ]
825
+ },
826
+ "contracts/types/Version.sol": {
827
+ "VersionLib": [
828
+ {
829
+ "length": 20,
830
+ "start": 225
831
+ },
832
+ {
833
+ "length": 20,
834
+ "start": 2739
835
+ }
836
+ ],
837
+ "VersionPartLib": [
838
+ {
839
+ "length": 20,
840
+ "start": 6807
218
841
  },
219
842
  {
220
843
  "length": 20,
221
- "start": 2077
844
+ "start": 6935
222
845
  },
223
846
  {
224
847
  "length": 20,
225
- "start": 3114
848
+ "start": 9940
226
849
  },
227
850
  {
228
851
  "length": 20,
229
- "start": 3399
852
+ "start": 10064
230
853
  }
231
854
  ]
232
855
  }
@@ -236,19 +859,51 @@
236
859
  "NftIdLib": [
237
860
  {
238
861
  "length": 20,
239
- "start": 1341
862
+ "start": 991
863
+ },
864
+ {
865
+ "length": 20,
866
+ "start": 1707
867
+ },
868
+ {
869
+ "length": 20,
870
+ "start": 2388
871
+ },
872
+ {
873
+ "length": 20,
874
+ "start": 4187
875
+ },
876
+ {
877
+ "length": 20,
878
+ "start": 4796
879
+ }
880
+ ]
881
+ },
882
+ "contracts/types/ObjectType.sol": {
883
+ "ObjectTypeLib": [
884
+ {
885
+ "length": 20,
886
+ "start": 4947
887
+ }
888
+ ]
889
+ },
890
+ "contracts/types/Version.sol": {
891
+ "VersionPartLib": [
892
+ {
893
+ "length": 20,
894
+ "start": 1938
240
895
  },
241
896
  {
242
897
  "length": 20,
243
- "start": 2045
898
+ "start": 2066
244
899
  },
245
900
  {
246
901
  "length": 20,
247
- "start": 3082
902
+ "start": 5071
248
903
  },
249
904
  {
250
905
  "length": 20,
251
- "start": 3367
906
+ "start": 5195
252
907
  }
253
908
  ]
254
909
  }