@etherisc/gif-next 0.0.2-ce8407f-016 → 0.0.2-ceb30b2-601

Sign up to get free protection for your applications and to get access to all the features.
Files changed (374) hide show
  1. package/README.md +178 -14
  2. package/artifacts/contracts/components/Component.sol/Component.dbg.json +4 -0
  3. package/artifacts/contracts/components/Component.sol/Component.json +829 -0
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +1332 -0
  6. package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
  7. package/artifacts/contracts/components/IComponent.sol/IComponent.json +592 -0
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +956 -0
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +4 -0
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +1051 -0
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +4 -0
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +817 -0
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +4 -0
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +1363 -0
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +4 -0
  17. package/artifacts/contracts/components/Product.sol/Product.json +1154 -0
  18. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +4 -0
  19. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +1206 -0
  20. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
  21. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +778 -0
  22. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
  23. package/artifacts/contracts/instance/{AccessManagedSimple.sol/AccessManagedSimple.json → Cloneable.sol/Cloneable.json} +91 -2
  24. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  25. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +2719 -1
  26. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
  27. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +600 -0
  28. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  29. package/artifacts/contracts/instance/Instance.sol/Instance.json +1220 -1347
  30. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
  31. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +593 -180
  32. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
  33. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +586 -56
  34. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  35. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +1014 -32
  36. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
  37. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +724 -0
  38. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
  39. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +256 -0
  40. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
  41. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.json +631 -0
  42. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  43. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +0 -77
  44. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  45. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  46. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +40 -244
  47. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  48. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +36 -11
  49. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
  50. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +71 -45
  51. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
  52. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +4 -0
  53. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.json +10 -0
  54. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
  55. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  56. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  57. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +1 -1
  58. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +1 -1
  59. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.dbg.json +4 -0
  60. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +1092 -0
  61. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
  62. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +672 -0
  63. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
  64. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1313 -0
  65. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  66. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +712 -0
  67. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +4 -0
  68. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +1316 -0
  69. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
  70. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +724 -0
  71. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
  72. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +1798 -0
  73. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  74. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +780 -0
  75. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
  76. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +619 -0
  77. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
  78. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +701 -0
  79. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +4 -0
  80. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.json +731 -0
  81. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
  82. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +1082 -0
  83. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  84. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +651 -0
  85. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +4 -0
  86. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +1077 -0
  87. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +4 -0
  88. package/artifacts/contracts/instance/{base/IService.sol/IService.json → service/IProductService.sol/IProductService.json} +178 -157
  89. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
  90. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1153 -0
  91. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  92. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +676 -0
  93. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
  94. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +1598 -0
  95. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  96. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +696 -0
  97. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
  98. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +864 -0
  99. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  100. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +640 -0
  101. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  102. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +60 -2
  103. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  104. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +255 -63
  105. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  106. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +309 -196
  107. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  108. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +18 -0
  109. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  110. package/artifacts/contracts/registry/Registry.sol/Registry.json +229 -212
  111. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
  112. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +285 -0
  113. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  114. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +421 -284
  115. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  116. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +310 -129
  117. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
  118. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +559 -0
  119. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
  120. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +485 -0
  121. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +1 -1
  122. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  123. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +41 -3
  124. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  125. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +27 -29
  126. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
  127. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +165 -0
  128. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  129. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +8 -34
  130. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
  131. package/artifacts/contracts/{experiment/inheritance/IA.sol/ISharedA.json → shared/IRegistryLinked.sol/IRegistryLinked.json} +15 -17
  132. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
  133. package/artifacts/contracts/{components/IBaseComponent.sol/IBaseComponent.json → shared/IService.sol/IService.json} +115 -29
  134. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  135. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +2 -152
  136. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  137. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +107 -27
  138. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +4 -0
  139. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +271 -0
  140. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  141. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +283 -63
  142. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  143. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +116 -51
  144. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +4 -0
  145. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +71 -0
  146. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
  147. package/artifacts/contracts/{instance/base/ServiceBase.sol/ServiceBase.json → shared/Service.sol/Service.json} +187 -167
  148. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  149. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +2 -2
  150. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  151. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +2 -2
  152. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  153. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +2 -152
  154. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  155. package/artifacts/contracts/test/TestFee.sol/TestFee.json +4 -4
  156. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  157. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +116 -51
  158. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  159. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +111 -5
  160. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  161. package/artifacts/contracts/test/TestService.sol/TestService.json +204 -216
  162. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  163. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +91 -53
  164. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  165. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
  166. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  167. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +8 -190
  168. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  169. package/artifacts/contracts/test/Usdc.sol/USDC.json +91 -53
  170. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  171. package/artifacts/contracts/types/Amount.sol/AmountLib.dbg.json +4 -0
  172. package/artifacts/contracts/types/Amount.sol/AmountLib.json +209 -0
  173. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  174. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +2 -2
  175. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  176. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.dbg.json +4 -0
  177. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.json +179 -0
  178. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
  179. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +2 -2
  180. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  181. package/artifacts/contracts/types/Fee.sol/FeeLib.json +42 -11
  182. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  183. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +2 -2
  184. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  185. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +17 -4
  186. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  187. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +26 -3
  188. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +1 -1
  189. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  190. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  191. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.dbg.json +4 -0
  192. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.json +209 -0
  193. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +1 -1
  194. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +23 -4
  195. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
  196. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +2 -2
  197. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  198. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
  199. package/artifacts/contracts/types/Seconds.sol/SecondsLib.dbg.json +4 -0
  200. package/artifacts/contracts/types/Seconds.sol/SecondsLib.json +124 -0
  201. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  202. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  203. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  204. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +38 -7
  205. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +4 -0
  206. package/artifacts/contracts/{experiment/types/TypeB.sol/TypeBLib.json → types/UFixed.sol/MathLib.json} +4 -4
  207. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +4 -0
  208. package/artifacts/contracts/types/UFixed.sol/{UFixedMathLib.json → UFixedLib.json} +3 -3
  209. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  210. package/artifacts/contracts/types/Version.sol/VersionLib.json +2 -2
  211. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  212. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +22 -3
  213. package/contracts/components/Component.sol +253 -0
  214. package/contracts/components/Distribution.sol +284 -0
  215. package/contracts/components/IComponent.sol +76 -0
  216. package/contracts/components/IDistributionComponent.sol +71 -0
  217. package/contracts/components/IPoolComponent.sol +113 -0
  218. package/contracts/components/IProductComponent.sol +40 -0
  219. package/contracts/components/Pool.sol +302 -0
  220. package/contracts/components/Product.sol +371 -0
  221. package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +13 -0
  222. package/contracts/instance/BundleManager.sol +126 -0
  223. package/contracts/instance/Cloneable.sol +51 -0
  224. package/contracts/instance/IInstance.sol +99 -1
  225. package/contracts/instance/IInstanceService.sol +63 -0
  226. package/contracts/instance/Instance.sol +169 -243
  227. package/contracts/instance/InstanceAccessManager.sol +417 -178
  228. package/contracts/instance/InstanceReader.sol +116 -34
  229. package/contracts/instance/InstanceService.sol +462 -23
  230. package/contracts/instance/InstanceServiceManager.sol +54 -0
  231. package/contracts/instance/ObjectManager.sol +82 -0
  232. package/contracts/instance/base/ComponentService.sol +130 -0
  233. package/contracts/instance/base/IKeyValueStore.sol +5 -4
  234. package/contracts/instance/base/KeyValueStore.sol +13 -52
  235. package/contracts/instance/base/Lifecycle.sol +23 -6
  236. package/contracts/instance/module/IAccess.sol +37 -21
  237. package/contracts/instance/module/IBundle.sol +8 -4
  238. package/contracts/instance/module/IComponents.sol +41 -0
  239. package/contracts/instance/module/IDistribution.sol +2 -0
  240. package/contracts/instance/module/IPolicy.sol +42 -9
  241. package/contracts/instance/module/ISetup.sol +10 -18
  242. package/contracts/instance/module/ITreasury.sol +1 -1
  243. package/contracts/instance/service/ApplicationService.sol +356 -0
  244. package/contracts/instance/service/ApplicationServiceManager.sol +35 -0
  245. package/contracts/instance/service/BundleService.sol +443 -0
  246. package/contracts/instance/service/BundleServiceManager.sol +51 -0
  247. package/contracts/instance/service/ClaimService.sol +361 -0
  248. package/contracts/instance/service/ClaimServiceManager.sol +35 -0
  249. package/contracts/instance/service/DistributionService.sol +431 -0
  250. package/contracts/instance/service/DistributionServiceManager.sol +51 -0
  251. package/contracts/instance/service/IApplicationService.sol +78 -0
  252. package/contracts/instance/service/IBundleService.sol +102 -0
  253. package/contracts/instance/service/IClaimService.sol +90 -0
  254. package/contracts/instance/service/IDistributionService.sol +99 -0
  255. package/contracts/instance/service/IPolicyService.sol +80 -0
  256. package/contracts/instance/service/IPoolService.sol +144 -0
  257. package/contracts/instance/service/IProductService.sol +40 -0
  258. package/contracts/instance/service/PolicyService.sol +358 -0
  259. package/contracts/instance/service/PolicyServiceManager.sol +54 -0
  260. package/contracts/instance/service/PoolService.sol +349 -0
  261. package/contracts/instance/service/PoolServiceManager.sol +51 -0
  262. package/contracts/instance/service/ProductService.sol +210 -0
  263. package/contracts/instance/service/ProductServiceManager.sol +54 -0
  264. package/contracts/registry/ChainNft.sol +49 -26
  265. package/contracts/registry/IRegistry.sol +53 -25
  266. package/contracts/registry/IRegistryService.sol +53 -16
  267. package/contracts/registry/ITransferInterceptor.sol +1 -0
  268. package/contracts/registry/Registry.sol +289 -313
  269. package/contracts/registry/RegistryAccessManager.sol +216 -0
  270. package/contracts/registry/RegistryService.sol +169 -256
  271. package/contracts/registry/RegistryServiceManager.sol +30 -11
  272. package/contracts/registry/ReleaseManager.sol +324 -0
  273. package/contracts/registry/TokenRegistry.sol +116 -0
  274. package/contracts/shared/ERC165.sol +15 -9
  275. package/contracts/shared/INftOwnable.sol +11 -10
  276. package/contracts/shared/IPolicyHolder.sol +38 -0
  277. package/contracts/shared/IRegisterable.sol +4 -6
  278. package/contracts/shared/IRegistryLinked.sol +11 -0
  279. package/contracts/shared/IService.sol +18 -0
  280. package/contracts/shared/IVersionable.sol +4 -47
  281. package/contracts/shared/NftOwnable.sol +65 -83
  282. package/contracts/shared/PolicyHolder.sol +87 -0
  283. package/contracts/shared/ProxyManager.sol +101 -26
  284. package/contracts/shared/Registerable.sol +25 -39
  285. package/contracts/shared/RegistryLinked.sol +43 -0
  286. package/contracts/shared/Service.sol +72 -0
  287. package/contracts/shared/TokenHandler.sol +13 -7
  288. package/contracts/shared/UpgradableProxyWithAdmin.sol +2 -2
  289. package/contracts/shared/Versionable.sol +5 -93
  290. package/contracts/test/TestFee.sol +2 -2
  291. package/contracts/test/TestRegisterable.sol +1 -1
  292. package/contracts/test/TestRoleId.sol +6 -6
  293. package/contracts/test/TestService.sol +6 -7
  294. package/contracts/types/Amount.sol +70 -0
  295. package/contracts/types/Blocknumber.sol +1 -0
  296. package/contracts/types/ClaimId.sol +75 -0
  297. package/contracts/types/DistributorType.sol +2 -2
  298. package/contracts/types/Fee.sol +15 -7
  299. package/contracts/types/NftId.sol +8 -0
  300. package/contracts/types/NftIdSet.sol +26 -24
  301. package/contracts/types/ObjectType.sol +11 -6
  302. package/contracts/types/PayoutId.sol +82 -0
  303. package/contracts/types/Referral.sol +4 -0
  304. package/contracts/types/RoleId.sol +26 -4
  305. package/contracts/types/Seconds.sol +54 -0
  306. package/contracts/types/StateId.sol +11 -2
  307. package/contracts/types/Timestamp.sol +18 -13
  308. package/contracts/types/UFixed.sol +129 -12
  309. package/contracts/types/Version.sol +5 -1
  310. package/package.json +6 -5
  311. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
  312. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +0 -4
  313. package/artifacts/contracts/experiment/errors/Require.sol/Require.json +0 -105
  314. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +0 -4
  315. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +0 -105
  316. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +0 -4
  317. package/artifacts/contracts/experiment/inheritance/A.sol/A.json +0 -128
  318. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +0 -4
  319. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +0 -42
  320. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +0 -4
  321. package/artifacts/contracts/experiment/inheritance/B.sol/B.json +0 -76
  322. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +0 -4
  323. package/artifacts/contracts/experiment/inheritance/C.sol/C.json +0 -89
  324. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +0 -4
  325. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.json +0 -128
  326. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +0 -4
  327. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +0 -4
  328. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.json +0 -50
  329. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +0 -4
  330. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.json +0 -63
  331. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +0 -4
  332. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +0 -59
  333. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +0 -4
  334. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +0 -124
  335. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +0 -4
  336. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +0 -74
  337. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +0 -4
  338. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +0 -124
  339. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +0 -4
  340. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +0 -207
  341. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +0 -4
  342. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +0 -10
  343. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +0 -4
  344. package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.dbg.json +0 -4
  345. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.dbg.json +0 -4
  346. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.json +0 -1119
  347. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +0 -4
  348. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +0 -1082
  349. package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +0 -4
  350. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +0 -4
  351. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
  352. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.json +0 -457
  353. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
  354. package/contracts/components/IBaseComponent.sol +0 -19
  355. package/contracts/experiment/errors/Require.sol +0 -38
  356. package/contracts/experiment/errors/Revert.sol +0 -44
  357. package/contracts/experiment/inheritance/A.sol +0 -53
  358. package/contracts/experiment/inheritance/B.sol +0 -28
  359. package/contracts/experiment/inheritance/C.sol +0 -34
  360. package/contracts/experiment/inheritance/IA.sol +0 -13
  361. package/contracts/experiment/inheritance/IB.sol +0 -10
  362. package/contracts/experiment/inheritance/IC.sol +0 -12
  363. package/contracts/experiment/statemachine/Dummy.sol +0 -27
  364. package/contracts/experiment/statemachine/ISM.sol +0 -25
  365. package/contracts/experiment/statemachine/SM.sol +0 -57
  366. package/contracts/experiment/statemachine/SimpleStateMachine.sol +0 -31
  367. package/contracts/experiment/types/TypeA.sol +0 -47
  368. package/contracts/experiment/types/TypeB.sol +0 -29
  369. package/contracts/instance/AccessManagedSimple.sol +0 -114
  370. package/contracts/instance/AccessManagerSimple.sol +0 -682
  371. package/contracts/instance/IAccessManagerSimple.sol +0 -391
  372. package/contracts/instance/base/IService.sol +0 -15
  373. package/contracts/instance/base/ServiceBase.sol +0 -44
  374. package/contracts/registry/IChainNft.sol +0 -22
@@ -7,81 +7,92 @@
7
7
  "inputs": [
8
8
  {
9
9
  "internalType": "address",
10
- "name": "registry",
10
+ "name": "authority",
11
11
  "type": "address"
12
- },
13
- {
14
- "internalType": "NftId",
15
- "name": "nftId",
16
- "type": "uint96"
17
12
  }
18
13
  ],
19
- "name": "ErrorAlreadyLinked",
14
+ "name": "AccessManagedInvalidAuthority",
20
15
  "type": "error"
21
16
  },
22
17
  {
23
18
  "inputs": [
24
19
  {
25
20
  "internalType": "address",
26
- "name": "contractAddress",
21
+ "name": "caller",
27
22
  "type": "address"
23
+ },
24
+ {
25
+ "internalType": "uint32",
26
+ "name": "delay",
27
+ "type": "uint32"
28
28
  }
29
29
  ],
30
- "name": "ErrorContractNotRegistered",
30
+ "name": "AccessManagedRequiredDelay",
31
31
  "type": "error"
32
32
  },
33
33
  {
34
34
  "inputs": [
35
35
  {
36
36
  "internalType": "address",
37
- "name": "account",
37
+ "name": "caller",
38
38
  "type": "address"
39
39
  }
40
40
  ],
41
- "name": "ErrorNotOwner",
41
+ "name": "AccessManagedUnauthorized",
42
42
  "type": "error"
43
43
  },
44
44
  {
45
45
  "inputs": [
46
46
  {
47
- "internalType": "address",
48
- "name": "registryAddress",
49
- "type": "address"
47
+ "internalType": "NftId",
48
+ "name": "nftId",
49
+ "type": "uint96"
50
50
  }
51
51
  ],
52
- "name": "ErrorNotRegistry",
52
+ "name": "ErrorNftOwnableAlreadyLinked",
53
53
  "type": "error"
54
54
  },
55
55
  {
56
56
  "inputs": [
57
57
  {
58
58
  "internalType": "address",
59
- "name": "registryAddress",
59
+ "name": "contractAddress",
60
60
  "type": "address"
61
61
  }
62
62
  ],
63
- "name": "ErrorRegisterableNotRegistry",
63
+ "name": "ErrorNftOwnableContractNotRegistered",
64
64
  "type": "error"
65
65
  },
66
66
  {
67
67
  "inputs": [],
68
- "name": "ErrorRegistryAddressZero",
68
+ "name": "ErrorNftOwnableInitialOwnerZero",
69
69
  "type": "error"
70
70
  },
71
71
  {
72
72
  "inputs": [
73
73
  {
74
74
  "internalType": "address",
75
- "name": "registry",
75
+ "name": "account",
76
+ "type": "address"
77
+ }
78
+ ],
79
+ "name": "ErrorNftOwnableNotOwner",
80
+ "type": "error"
81
+ },
82
+ {
83
+ "inputs": [
84
+ {
85
+ "internalType": "address",
86
+ "name": "registryAddress",
76
87
  "type": "address"
77
88
  }
78
89
  ],
79
- "name": "ErrorRegistryAlreadyInitialized",
90
+ "name": "ErrorNotRegistry",
80
91
  "type": "error"
81
92
  },
82
93
  {
83
94
  "inputs": [],
84
- "name": "ErrorRegistryNotInitialized",
95
+ "name": "ErrorServiceNotImplemented",
85
96
  "type": "error"
86
97
  },
87
98
  {
@@ -112,34 +123,39 @@
112
123
  "type": "error"
113
124
  },
114
125
  {
115
- "inputs": [
116
- {
117
- "internalType": "ObjectType",
118
- "name": "objectType",
119
- "type": "uint8"
120
- }
121
- ],
122
- "name": "InvalidType",
126
+ "inputs": [],
127
+ "name": "NotDistribution",
123
128
  "type": "error"
124
129
  },
125
130
  {
126
131
  "inputs": [],
127
- "name": "MissingAllowance",
132
+ "name": "NotInitializing",
128
133
  "type": "error"
129
134
  },
130
135
  {
131
136
  "inputs": [],
132
- "name": "NotComponent",
137
+ "name": "NotInstance",
133
138
  "type": "error"
134
139
  },
135
140
  {
136
141
  "inputs": [],
137
- "name": "NotInitializing",
142
+ "name": "NotPool",
138
143
  "type": "error"
139
144
  },
140
145
  {
141
146
  "inputs": [],
142
- "name": "NotInstance",
147
+ "name": "NotProduct",
148
+ "type": "error"
149
+ },
150
+ {
151
+ "inputs": [
152
+ {
153
+ "internalType": "address",
154
+ "name": "expectedOwner",
155
+ "type": "address"
156
+ }
157
+ ],
158
+ "name": "NotRegisterableOwner",
143
159
  "type": "error"
144
160
  },
145
161
  {
@@ -154,7 +170,12 @@
154
170
  },
155
171
  {
156
172
  "inputs": [],
157
- "name": "NotToken",
173
+ "name": "RegisterableOwnerIsRegistered",
174
+ "type": "error"
175
+ },
176
+ {
177
+ "inputs": [],
178
+ "name": "RegisterableOwnerIsZero",
158
179
  "type": "error"
159
180
  },
160
181
  {
@@ -163,51 +184,55 @@
163
184
  "type": "error"
164
185
  },
165
186
  {
166
- "anonymous": false,
167
187
  "inputs": [
168
188
  {
169
- "indexed": false,
170
- "internalType": "uint64",
171
- "name": "version",
172
- "type": "uint64"
189
+ "internalType": "ObjectType",
190
+ "name": "expected",
191
+ "type": "uint8"
192
+ },
193
+ {
194
+ "internalType": "ObjectType",
195
+ "name": "found",
196
+ "type": "uint8"
173
197
  }
174
198
  ],
175
- "name": "Initialized",
176
- "type": "event"
199
+ "name": "UnexpectedRegisterableType",
200
+ "type": "error"
177
201
  },
178
202
  {
179
203
  "anonymous": false,
180
204
  "inputs": [
181
- {
182
- "indexed": false,
183
- "internalType": "Version",
184
- "name": "version",
185
- "type": "uint24"
186
- },
187
205
  {
188
206
  "indexed": false,
189
207
  "internalType": "address",
190
- "name": "implementation",
208
+ "name": "authority",
191
209
  "type": "address"
192
- },
210
+ }
211
+ ],
212
+ "name": "AuthorityUpdated",
213
+ "type": "event"
214
+ },
215
+ {
216
+ "anonymous": false,
217
+ "inputs": [
193
218
  {
194
219
  "indexed": false,
195
- "internalType": "address",
196
- "name": "activatedBy",
197
- "type": "address"
220
+ "internalType": "uint64",
221
+ "name": "version",
222
+ "type": "uint64"
198
223
  }
199
224
  ],
200
- "name": "LogVersionableInitialized",
225
+ "name": "Initialized",
201
226
  "type": "event"
202
227
  },
203
228
  {
204
229
  "inputs": [],
205
- "name": "NAME",
230
+ "name": "NFT_OWNABLE_STORAGE_LOCATION_V1",
206
231
  "outputs": [
207
232
  {
208
- "internalType": "string",
233
+ "internalType": "bytes32",
209
234
  "name": "",
210
- "type": "string"
235
+ "type": "bytes32"
211
236
  }
212
237
  ],
213
238
  "stateMutability": "view",
@@ -215,12 +240,12 @@
215
240
  },
216
241
  {
217
242
  "inputs": [],
218
- "name": "NFT_LOCK_ADDRESS",
243
+ "name": "REGISTERABLE_LOCATION_V1",
219
244
  "outputs": [
220
245
  {
221
- "internalType": "address",
246
+ "internalType": "bytes32",
222
247
  "name": "",
223
- "type": "address"
248
+ "type": "bytes32"
224
249
  }
225
250
  ],
226
251
  "stateMutability": "view",
@@ -228,7 +253,7 @@
228
253
  },
229
254
  {
230
255
  "inputs": [],
231
- "name": "REGISTERABLE_LOCATION_V1",
256
+ "name": "REGISTRY_CREATION_CODE_HASH",
232
257
  "outputs": [
233
258
  {
234
259
  "internalType": "bytes32",
@@ -241,17 +266,55 @@
241
266
  },
242
267
  {
243
268
  "inputs": [],
244
- "name": "REGISTRY_CREATION_CODE_HASH",
269
+ "name": "authority",
245
270
  "outputs": [
246
271
  {
247
- "internalType": "bytes32",
272
+ "internalType": "address",
248
273
  "name": "",
249
- "type": "bytes32"
274
+ "type": "address"
250
275
  }
251
276
  ],
252
277
  "stateMutability": "view",
253
278
  "type": "function"
254
279
  },
280
+ {
281
+ "inputs": [],
282
+ "name": "getDomain",
283
+ "outputs": [
284
+ {
285
+ "internalType": "ObjectType",
286
+ "name": "serviceDomain",
287
+ "type": "uint8"
288
+ }
289
+ ],
290
+ "stateMutability": "pure",
291
+ "type": "function"
292
+ },
293
+ {
294
+ "inputs": [],
295
+ "name": "getFunctionConfigs",
296
+ "outputs": [
297
+ {
298
+ "components": [
299
+ {
300
+ "internalType": "ObjectType",
301
+ "name": "serviceDomain",
302
+ "type": "uint8"
303
+ },
304
+ {
305
+ "internalType": "bytes4[]",
306
+ "name": "selectors",
307
+ "type": "bytes4[]"
308
+ }
309
+ ],
310
+ "internalType": "struct IRegistryService.FunctionConfig[]",
311
+ "name": "config",
312
+ "type": "tuple[]"
313
+ }
314
+ ],
315
+ "stateMutability": "pure",
316
+ "type": "function"
317
+ },
255
318
  {
256
319
  "inputs": [],
257
320
  "name": "getInitialInfo",
@@ -295,57 +358,13 @@
295
358
  }
296
359
  ],
297
360
  "internalType": "struct IRegistry.ObjectInfo",
298
- "name": "",
361
+ "name": "info",
299
362
  "type": "tuple"
300
- },
301
- {
302
- "internalType": "bytes",
303
- "name": "data",
304
- "type": "bytes"
305
- }
306
- ],
307
- "stateMutability": "view",
308
- "type": "function"
309
- },
310
- {
311
- "inputs": [],
312
- "name": "getInitializedVersion",
313
- "outputs": [
314
- {
315
- "internalType": "uint64",
316
- "name": "",
317
- "type": "uint64"
318
- }
319
- ],
320
- "stateMutability": "view",
321
- "type": "function"
322
- },
323
- {
324
- "inputs": [],
325
- "name": "getMajorVersion",
326
- "outputs": [
327
- {
328
- "internalType": "VersionPart",
329
- "name": "majorVersion",
330
- "type": "uint8"
331
363
  }
332
364
  ],
333
365
  "stateMutability": "view",
334
366
  "type": "function"
335
367
  },
336
- {
337
- "inputs": [],
338
- "name": "getName",
339
- "outputs": [
340
- {
341
- "internalType": "string",
342
- "name": "",
343
- "type": "string"
344
- }
345
- ],
346
- "stateMutability": "pure",
347
- "type": "function"
348
- },
349
368
  {
350
369
  "inputs": [],
351
370
  "name": "getNftId",
@@ -398,103 +417,101 @@
398
417
  "stateMutability": "pure",
399
418
  "type": "function"
400
419
  },
420
+ {
421
+ "inputs": [],
422
+ "name": "initializeERC165",
423
+ "outputs": [],
424
+ "stateMutability": "nonpayable",
425
+ "type": "function"
426
+ },
401
427
  {
402
428
  "inputs": [
403
429
  {
404
- "internalType": "uint256",
405
- "name": "idx",
406
- "type": "uint256"
407
- }
408
- ],
409
- "name": "getVersion",
410
- "outputs": [
430
+ "internalType": "address",
431
+ "name": "initialOwner",
432
+ "type": "address"
433
+ },
411
434
  {
412
- "internalType": "Version",
413
- "name": "",
414
- "type": "uint24"
435
+ "internalType": "address",
436
+ "name": "registryAddress",
437
+ "type": "address"
415
438
  }
416
439
  ],
417
- "stateMutability": "view",
440
+ "name": "initializeNftOwnable",
441
+ "outputs": [],
442
+ "stateMutability": "nonpayable",
418
443
  "type": "function"
419
444
  },
420
445
  {
421
- "inputs": [],
422
- "name": "getVersionCount",
423
- "outputs": [
446
+ "inputs": [
424
447
  {
425
- "internalType": "uint256",
426
- "name": "",
427
- "type": "uint256"
448
+ "internalType": "address",
449
+ "name": "registryAddress",
450
+ "type": "address"
451
+ },
452
+ {
453
+ "internalType": "NftId",
454
+ "name": "parentNftId",
455
+ "type": "uint96"
456
+ },
457
+ {
458
+ "internalType": "ObjectType",
459
+ "name": "objectType",
460
+ "type": "uint8"
461
+ },
462
+ {
463
+ "internalType": "bool",
464
+ "name": "isInterceptor",
465
+ "type": "bool"
466
+ },
467
+ {
468
+ "internalType": "address",
469
+ "name": "initialOwner",
470
+ "type": "address"
471
+ },
472
+ {
473
+ "internalType": "bytes",
474
+ "name": "registryData",
475
+ "type": "bytes"
428
476
  }
429
477
  ],
430
- "stateMutability": "view",
478
+ "name": "initializeRegisterable",
479
+ "outputs": [],
480
+ "stateMutability": "nonpayable",
431
481
  "type": "function"
432
482
  },
433
483
  {
434
484
  "inputs": [
435
485
  {
436
- "internalType": "Version",
437
- "name": "_version",
438
- "type": "uint24"
439
- }
440
- ],
441
- "name": "getVersionInfo",
442
- "outputs": [
443
- {
444
- "components": [
445
- {
446
- "internalType": "Version",
447
- "name": "version",
448
- "type": "uint24"
449
- },
450
- {
451
- "internalType": "address",
452
- "name": "implementation",
453
- "type": "address"
454
- },
455
- {
456
- "internalType": "address",
457
- "name": "activatedBy",
458
- "type": "address"
459
- },
460
- {
461
- "internalType": "Timestamp",
462
- "name": "activatedAt",
463
- "type": "uint40"
464
- },
465
- {
466
- "internalType": "Blocknumber",
467
- "name": "activatedIn",
468
- "type": "uint32"
469
- }
470
- ],
471
- "internalType": "struct IVersionable.VersionInfo",
472
- "name": "",
473
- "type": "tuple"
486
+ "internalType": "address",
487
+ "name": "registryAddress",
488
+ "type": "address"
474
489
  }
475
490
  ],
476
- "stateMutability": "view",
491
+ "name": "initializeRegistryLinked",
492
+ "outputs": [],
493
+ "stateMutability": "nonpayable",
477
494
  "type": "function"
478
495
  },
479
496
  {
480
497
  "inputs": [
481
498
  {
482
499
  "internalType": "address",
483
- "name": "implementation",
500
+ "name": "registry",
484
501
  "type": "address"
485
502
  },
486
503
  {
487
504
  "internalType": "address",
488
- "name": "activatedBy",
505
+ "name": "authority",
489
506
  "type": "address"
490
507
  },
491
508
  {
492
- "internalType": "bytes",
493
- "name": "data",
494
- "type": "bytes"
509
+ "internalType": "address",
510
+ "name": "initialOwner",
511
+ "type": "address"
495
512
  }
496
513
  ],
497
- "name": "initialize",
514
+ "name": "initializeService",
498
515
  "outputs": [],
499
516
  "stateMutability": "nonpayable",
500
517
  "type": "function"
@@ -502,17 +519,29 @@
502
519
  {
503
520
  "inputs": [
504
521
  {
505
- "internalType": "Version",
506
- "name": "_version",
507
- "type": "uint24"
522
+ "internalType": "address",
523
+ "name": "activatedBy",
524
+ "type": "address"
525
+ },
526
+ {
527
+ "internalType": "bytes",
528
+ "name": "data",
529
+ "type": "bytes"
508
530
  }
509
531
  ],
510
- "name": "isInitialized",
532
+ "name": "initializeVersionable",
533
+ "outputs": [],
534
+ "stateMutability": "nonpayable",
535
+ "type": "function"
536
+ },
537
+ {
538
+ "inputs": [],
539
+ "name": "isConsumingScheduledOp",
511
540
  "outputs": [
512
541
  {
513
- "internalType": "bool",
542
+ "internalType": "bytes4",
514
543
  "name": "",
515
- "type": "bool"
544
+ "type": "bytes4"
516
545
  }
517
546
  ],
518
547
  "stateMutability": "view",
@@ -584,22 +613,17 @@
584
613
  {
585
614
  "inputs": [
586
615
  {
587
- "internalType": "contract IBaseComponent",
588
- "name": "component",
616
+ "internalType": "contract IComponent",
617
+ "name": "distribution",
589
618
  "type": "address"
590
619
  },
591
- {
592
- "internalType": "ObjectType",
593
- "name": "componentType",
594
- "type": "uint8"
595
- },
596
620
  {
597
621
  "internalType": "address",
598
622
  "name": "owner",
599
623
  "type": "address"
600
624
  }
601
625
  ],
602
- "name": "registerComponent",
626
+ "name": "registerDistribution",
603
627
  "outputs": [
604
628
  {
605
629
  "components": [
@@ -642,11 +666,62 @@
642
666
  "internalType": "struct IRegistry.ObjectInfo",
643
667
  "name": "info",
644
668
  "type": "tuple"
645
- },
669
+ }
670
+ ],
671
+ "stateMutability": "nonpayable",
672
+ "type": "function"
673
+ },
674
+ {
675
+ "inputs": [
646
676
  {
647
- "internalType": "bytes",
648
- "name": "data",
649
- "type": "bytes"
677
+ "components": [
678
+ {
679
+ "internalType": "NftId",
680
+ "name": "nftId",
681
+ "type": "uint96"
682
+ },
683
+ {
684
+ "internalType": "NftId",
685
+ "name": "parentNftId",
686
+ "type": "uint96"
687
+ },
688
+ {
689
+ "internalType": "ObjectType",
690
+ "name": "objectType",
691
+ "type": "uint8"
692
+ },
693
+ {
694
+ "internalType": "bool",
695
+ "name": "isInterceptor",
696
+ "type": "bool"
697
+ },
698
+ {
699
+ "internalType": "address",
700
+ "name": "objectAddress",
701
+ "type": "address"
702
+ },
703
+ {
704
+ "internalType": "address",
705
+ "name": "initialOwner",
706
+ "type": "address"
707
+ },
708
+ {
709
+ "internalType": "bytes",
710
+ "name": "data",
711
+ "type": "bytes"
712
+ }
713
+ ],
714
+ "internalType": "struct IRegistry.ObjectInfo",
715
+ "name": "info",
716
+ "type": "tuple"
717
+ }
718
+ ],
719
+ "name": "registerDistributor",
720
+ "outputs": [
721
+ {
722
+ "internalType": "NftId",
723
+ "name": "nftId",
724
+ "type": "uint96"
650
725
  }
651
726
  ],
652
727
  "stateMutability": "nonpayable",
@@ -658,6 +733,11 @@
658
733
  "internalType": "contract IRegisterable",
659
734
  "name": "instance",
660
735
  "type": "address"
736
+ },
737
+ {
738
+ "internalType": "address",
739
+ "name": "owner",
740
+ "type": "address"
661
741
  }
662
742
  ],
663
743
  "name": "registerInstance",
@@ -703,13 +783,21 @@
703
783
  "internalType": "struct IRegistry.ObjectInfo",
704
784
  "name": "info",
705
785
  "type": "tuple"
706
- },
786
+ }
787
+ ],
788
+ "stateMutability": "nonpayable",
789
+ "type": "function"
790
+ },
791
+ {
792
+ "inputs": [
707
793
  {
708
- "internalType": "bytes",
709
- "name": "data",
710
- "type": "bytes"
794
+ "internalType": "bytes4",
795
+ "name": "interfaceId",
796
+ "type": "bytes4"
711
797
  }
712
798
  ],
799
+ "name": "registerInterface",
800
+ "outputs": [],
713
801
  "stateMutability": "nonpayable",
714
802
  "type": "function"
715
803
  },
@@ -772,12 +860,17 @@
772
860
  {
773
861
  "inputs": [
774
862
  {
775
- "internalType": "contract IService",
776
- "name": "service",
863
+ "internalType": "contract IComponent",
864
+ "name": "pool",
865
+ "type": "address"
866
+ },
867
+ {
868
+ "internalType": "address",
869
+ "name": "owner",
777
870
  "type": "address"
778
871
  }
779
872
  ],
780
- "name": "registerService",
873
+ "name": "registerPool",
781
874
  "outputs": [
782
875
  {
783
876
  "components": [
@@ -820,11 +913,6 @@
820
913
  "internalType": "struct IRegistry.ObjectInfo",
821
914
  "name": "info",
822
915
  "type": "tuple"
823
- },
824
- {
825
- "internalType": "bytes",
826
- "name": "data",
827
- "type": "bytes"
828
916
  }
829
917
  ],
830
918
  "stateMutability": "nonpayable",
@@ -832,13 +920,111 @@
832
920
  },
833
921
  {
834
922
  "inputs": [
923
+ {
924
+ "internalType": "contract IComponent",
925
+ "name": "product",
926
+ "type": "address"
927
+ },
835
928
  {
836
929
  "internalType": "address",
837
- "name": "tokenAddress",
930
+ "name": "owner",
838
931
  "type": "address"
839
932
  }
840
933
  ],
841
- "name": "registerToken",
934
+ "name": "registerProduct",
935
+ "outputs": [
936
+ {
937
+ "components": [
938
+ {
939
+ "internalType": "NftId",
940
+ "name": "nftId",
941
+ "type": "uint96"
942
+ },
943
+ {
944
+ "internalType": "NftId",
945
+ "name": "parentNftId",
946
+ "type": "uint96"
947
+ },
948
+ {
949
+ "internalType": "ObjectType",
950
+ "name": "objectType",
951
+ "type": "uint8"
952
+ },
953
+ {
954
+ "internalType": "bool",
955
+ "name": "isInterceptor",
956
+ "type": "bool"
957
+ },
958
+ {
959
+ "internalType": "address",
960
+ "name": "objectAddress",
961
+ "type": "address"
962
+ },
963
+ {
964
+ "internalType": "address",
965
+ "name": "initialOwner",
966
+ "type": "address"
967
+ },
968
+ {
969
+ "internalType": "bytes",
970
+ "name": "data",
971
+ "type": "bytes"
972
+ }
973
+ ],
974
+ "internalType": "struct IRegistry.ObjectInfo",
975
+ "name": "info",
976
+ "type": "tuple"
977
+ }
978
+ ],
979
+ "stateMutability": "nonpayable",
980
+ "type": "function"
981
+ },
982
+ {
983
+ "inputs": [
984
+ {
985
+ "components": [
986
+ {
987
+ "internalType": "NftId",
988
+ "name": "nftId",
989
+ "type": "uint96"
990
+ },
991
+ {
992
+ "internalType": "NftId",
993
+ "name": "parentNftId",
994
+ "type": "uint96"
995
+ },
996
+ {
997
+ "internalType": "ObjectType",
998
+ "name": "objectType",
999
+ "type": "uint8"
1000
+ },
1001
+ {
1002
+ "internalType": "bool",
1003
+ "name": "isInterceptor",
1004
+ "type": "bool"
1005
+ },
1006
+ {
1007
+ "internalType": "address",
1008
+ "name": "objectAddress",
1009
+ "type": "address"
1010
+ },
1011
+ {
1012
+ "internalType": "address",
1013
+ "name": "initialOwner",
1014
+ "type": "address"
1015
+ },
1016
+ {
1017
+ "internalType": "bytes",
1018
+ "name": "data",
1019
+ "type": "bytes"
1020
+ }
1021
+ ],
1022
+ "internalType": "struct IRegistry.ObjectInfo",
1023
+ "name": "info",
1024
+ "type": "tuple"
1025
+ }
1026
+ ],
1027
+ "name": "registerStake",
842
1028
  "outputs": [
843
1029
  {
844
1030
  "internalType": "NftId",
@@ -849,6 +1035,19 @@
849
1035
  "stateMutability": "nonpayable",
850
1036
  "type": "function"
851
1037
  },
1038
+ {
1039
+ "inputs": [
1040
+ {
1041
+ "internalType": "address",
1042
+ "name": "newAuthority",
1043
+ "type": "address"
1044
+ }
1045
+ ],
1046
+ "name": "setAuthority",
1047
+ "outputs": [],
1048
+ "stateMutability": "nonpayable",
1049
+ "type": "function"
1050
+ },
852
1051
  {
853
1052
  "inputs": [
854
1053
  {
@@ -870,68 +1069,30 @@
870
1069
  },
871
1070
  {
872
1071
  "inputs": [
873
- {
874
- "internalType": "address",
875
- "name": "implementation",
876
- "type": "address"
877
- },
878
- {
879
- "internalType": "address",
880
- "name": "activatedBy",
881
- "type": "address"
882
- },
883
1072
  {
884
1073
  "internalType": "bytes",
885
1074
  "name": "data",
886
1075
  "type": "bytes"
887
1076
  }
888
1077
  ],
889
- "name": "upgrade",
1078
+ "name": "upgradeVersionable",
890
1079
  "outputs": [],
891
1080
  "stateMutability": "nonpayable",
892
1081
  "type": "function"
893
1082
  }
894
1083
  ],
895
- "bytecode": "0x60806040523480156200001157600080fd5b506301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055600280546001600160a01b031916331790556200006a62000070565b62000124565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff1615620000c15760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b0390811614620001215780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b612e0d80620001346000396000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c8063893d20e8116100de578063c2bf08c811610097578063d943342d11610071578063d943342d14610517578063e285c9c41461052a578063ed841d0c14610532578063fdd9ec7d1461053a57600080fd5b8063c2bf08c8146104d7578063cde749f4146104ea578063cf7a1d771461050457600080fd5b8063893d20e814610434578063946dfcfe1461043c578063a3f4df7e14610463578063a745e3df14610491578063b3c65015146104a4578063b88da759146104c457600080fd5b80631eff4b221161014b5780635ab1bd53116101255780635ab1bd53146103d15780635c992fed146103f6578063644c45e014610409578063834af1531461042157600080fd5b80631eff4b22146102705780634d459c90146102a55780634f421333146103be57600080fd5b806301ffc9a71461019357806309824a80146101d55780630d8e6e2c146102005780630fec111c1461021c578063138461e01461023257806317d7de7c1461023c575b600080fd5b6101c06101a13660046124bc565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b6101e86101e336600461250b565b61054d565b6040516001600160601b0390911681526020016101cc565b6102086107ec565b60405162ffffff90911681526020016101cc565b610224610876565b6040516101cc9291906125f1565b61023a6109b7565b005b60408051808201909152600f81526e52656769737472795365727669636560881b60208201525b6040516101cc919061261f565b6102977f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b6040519081526020016101cc565b6103616102b3366004612643565b6040805160a081018252600080825260208201819052918101829052606081018290526080810191909152600080516020612db883398151915262ffffff92831660009081526020918252604090819020815160a0810183528154958616815263010000009095046001600160a01b03908116938601939093526001015491821690840152600160a01b810464ffffffffff166060840152600160c81b900463ffffffff1660808301525090565b60408051825162ffffff1681526020808401516001600160a01b039081169183019190915283830151169181019190915260608083015164ffffffffff169082015260809182015163ffffffff169181019190915260a0016101cc565b6101c06103cc366004612643565b610bd9565b6001546001600160a01b03165b6040516001600160a01b0390911681526020016101cc565b6101e861040436600461279e565b610c8c565b600154600160a01b90046001600160601b03166101e8565b61022461042f36600461250b565b610e2b565b6103de610e3a565b7f4f61291a8ac3d020d0a7d919a76b8592aa88385744dee3f8b4f3873b969ed90154610297565b6102636040518060400160405280600f81526020016e52656769737472795365727669636560881b81525081565b61023a61049f366004612870565b610f53565b6104ac6110ad565b6040516001600160401b0390911681526020016101cc565b6102086104d23660046128d1565b6110ce565b6101e86104e536600461279e565b61111f565b6104f2611244565b60405160ff90911681526020016101cc565b61023a610512366004612870565b6112c7565b6102246105253660046128ea565b6113d0565b6103de600181565b610297600081565b61022461054836600461250b565b611663565b6040516301ffc9a760e01b81526303fb044760e21b6004820152600090829082906001600160a01b038316906301ffc9a790602401602060405180830381865afa9250505080156105bb575060408051601f3d908101601f191682019092526105b891810190612940565b60015b6105c7575060006105ca565b90505b80156105e95760405163087cada760e21b815260040160405180910390fd5b600154604051636939560f60e11b81526001600160a01b039091166004820181905260009163d272ac1e90602401602060405180830381865afa158015610634573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106589190612968565b600154604051631c5da14d60e11b81526001600160601b03831660048201529192506001600160a01b0316906338bb429a90602401602060405180830381865afa1580156106aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ce9190612990565b6001600160a01b0316336001600160a01b0316146106ff5760405163778d468d60e11b815260040160405180910390fd5b60006040518060e00160405280610714600090565b6001600160601b03168152602001836001600160601b03168152602001610739603290565b60ff168152600060208083018290526001600160a01b03808b1660408086019190915260016060860181905281519384018252938352608090940191909152905491516352efcf2760e11b8152929350169063a5df9e4e9061079f9084906004016129ad565b6020604051808303816000875af11580156107be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107e29190612968565b9695505050505050565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90632efe011390606401602060405180830381865af415801561084d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061087191906129c0565b905090565b61087e61247e565b606060007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30090506040518060e001604052806108b8600090565b6001600160601b0390811682528354908116602083015260ff600160601b820481166040840152600160681b909104161515606082015230608082015260a001610900610e3a565b6001600160a01b0316815260200182600101805461091d906129dd565b80601f0160208091040260200160405190810160405280929190818152602001828054610949906129dd565b80156109965780601f1061096b57610100808354040283529160200191610996565b820191906000526020600020905b81548152906001019060200180831161097957829003601f168201915b50505050508152506040518060200160405280600081525092509250509091565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610a19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a3d9190612940565b15610a84576001546040516316322c0f60e31b81526001600160a01b0382166004820152600160a01b9091046001600160601b031660248201526044015b60405180910390fd5b6001546001600160a01b0316610aad5760405163cf29926160e01b815260040160405180910390fd5b60015460405163c3c5a54760e01b81523060048201819052916001600160a01b03169063c3c5a54790602401602060405180830381865afa158015610af6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b1a9190612940565b610b42576040516372657a5160e01b81526001600160a01b0382166004820152602401610a7b565b600154604051636939560f60e11b81526001600160a01b0383811660048301529091169063d272ac1e90602401602060405180830381865afa158015610b8c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb09190612968565b600160146101000a8154816001600160601b0302191690836001600160601b0316021790555050565b600080600080516020612db883398151915262ffffff84166000908152602091909152604090819020600101549051631bbffab160e21b8152600160c81b90910463ffffffff16600482015273__$5f476116ae21c5294e0c0761c07efa7e1c$__90636effeac490602401602060405180830381865af4158015610c61573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c859190612a17565b1192915050565b600154604051636939560f60e11b815233600482015260009182916001600160a01b039091169063d272ac1e90602401602060405180830381865afa158015610cd9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cfd9190612968565b6001549091506001600160a01b0316635f1561518260d26040516001600160e01b031960e085901b1681526001600160601b03909216600483015260ff166024820152604401602060405180830381865afa158015610d60573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d849190612940565b1515600003610da657604051632bb46a5f60e01b815260040160405180910390fd5b610db18360d261190b565b6001546040516352efcf2760e11b81526001600160a01b039091169063a5df9e4e90610de19086906004016129ad565b6020604051808303816000875af1158015610e00573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e249190612968565b9392505050565b610e3361247e565b6060915091565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015260009073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610e9f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ec39190612940565b15610f4357600154604051631c5da14d60e11b8152600160a01b82046001600160601b031660048201526001600160a01b03909116906338bb429a90602401602060405180830381865afa158015610f1f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108719190612990565b506002546001600160a01b031690565b73__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__63a123b37c610f756107ec565b6040516001600160e01b031960e084901b16815262ffffff9091166004820152602401602060405180830381865af4158015610fb5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fd99190612a30565b600080516020612d988339815191528054600160401b900460ff168061100c575080546001600160401b03808416911610155b1561102a5760405163f92ee8a960e01b815260040160405180910390fd5b805468ffffffffffffffffff19166001600160401b03831617600160401b1781556110558585611a41565b61105e83611ce0565b805460ff60401b191681556040516001600160401b03831681527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2906020015b60405180910390a15050505050565b6000610871600080516020612d98833981519152546001600160401b031690565b6000600080516020612db883398151915260010182815481106110f3576110f3612a59565b90600052602060002090600a91828204019190066003029054906101000a900462ffffff169050919050565b600154604051636939560f60e11b815233600482015260009182916001600160a01b039091169063d272ac1e90602401602060405180830381865afa15801561116c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111909190612968565b6001549091506001600160a01b0316635f1561518260dc6040516001600160e01b031960e085901b1681526001600160601b03909216600483015260ff166024820152604401602060405180830381865afa1580156111f3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112179190612940565b151560000361123957604051632bb46a5f60e01b815260040160405180910390fd5b610db18360dc61190b565b600061124e6107ec565b60405163c9e66e2960e01b815262ffffff909116600482015273__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__9063c9e66e2990602401602060405180830381865af41580156112a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108719190612a7a565b600080516020612d988339815191528054600160401b810460ff1615906001600160401b03166000811580156112fa5750825b90506000826001600160401b031660011480156113165750303b155b905081158015611324575080155b156113425760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561136c57845460ff60401b1916600160401b1785555b6113768888611a41565b6113808787611ce8565b83156113c657845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b5050505050505050565b6113d861247e565b6040516301ffc9a760e01b8152631b1599eb60e21b60048201526060906001600160a01b038616906301ffc9a790602401602060405180830381865afa158015611426573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061144a9190612940565b61146757604051634138dc2760e11b815260040160405180910390fd5b611472858585611fb2565b600154604051636939560f60e11b81523360048201529294509092506000916001600160a01b039091169063d272ac1e90602401602060405180830381865afa1580156114c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114e79190612968565b600154604051635f15615160e01b81526001600160601b038316600482015260ff881660248201529192506001600160a01b031690635f15615190604401602060405180830381865afa158015611542573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115669190612940565b61158357604051632bb46a5f60e01b815260040160405180910390fd5b6001546040516352efcf2760e11b81526001600160a01b039091169063a5df9e4e906115b39086906004016129ad565b6020604051808303816000875af11580156115d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115f69190612968565b6001600160601b0316835260408051629c230f60e51b815290516001600160a01b0388169163138461e091600480830192600092919082900301818387803b15801561164157600080fd5b505af1158015611655573d6000803e3d6000fd5b50505050505b935093915050565b61166b61247e565b6040516301ffc9a760e01b8152631b4612f160e31b60048201526060906001600160a01b038416906301ffc9a790602401602060405180830381865afa1580156116b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116dd9190612940565b15156000036116ff57604051635458064d60e11b815260040160405180910390fd5b61170b83603c33611fb2565b600154604051636939560f60e11b81526001600160a01b03909116600482018190529294509092506000919063d272ac1e90602401602060405180830381865afa15801561175d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117819190612968565b600154604051631c5da14d60e11b81526001600160601b03831660048201529192506001600160a01b0316906338bb429a90602401602060405180830381865afa1580156117d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117f79190612990565b6001600160a01b0316336001600160a01b0316146118285760405163778d468d60e11b815260040160405180910390fd5b600160a08401819052546040516352efcf2760e11b81526001600160a01b039091169063a5df9e4e9061185f9086906004016129ad565b6020604051808303816000875af115801561187e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118a29190612968565b6001600160601b0316835260408051629c230f60e51b815290516001600160a01b0386169163138461e091600480830192600092919082900301818387803b1580156118ed57600080fd5b505af1158015611901573d6000803e3d6000fd5b5050505050915091565b60808201516001600160a01b031615611948576080820151604051634726455360e11b81526001600160a01b039091166004820152602401610a7b565b6001546001600160a01b031660a083015160405163c3c5a54760e01b81526001600160a01b03918216600482015291169063c3c5a54790602401602060405180830381865afa15801561199f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119c39190612940565b806119d9575060a08201516001600160a01b0316155b15611a085760a082015160405163711c133360e01b81526001600160a01b039091166004820152602401610a7b565b604082015160ff828116911614611a3d57604080830151905163f503452760e01b815260ff9091166004820152602401610a7b565b5050565b611a4961218e565b600080516020612db88339815191526000611a79600080516020612d98833981519152546001600160401b031690565b90506000611a856107ec565b9050816001600160401b0316600103611ab25760028301805462ffffff191662ffffff8316179055611b00565b600283015462ffffff90811690821611611b005760405162461bcd60e51b815260206004820152600f60248201526e24a72b20a624a2102b22a929a4a7a760891b6044820152606401610a7b565b6001808401805491820181556000908152602090819020600a808404909101805462ffffff808716600394909606939093026101000a858102930219169190911790556040805160a0810182529283526001600160a01b038089168484015287168382015280516356db0c1960e11b81529051606084019273__$d53880c81dc91c20799140d711e5ab8718$__9263adb6183292600480830193928290030181865af4158015611bb4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bd89190612a97565b64ffffffffff1681526020014363ffffffff90811690915262ffffff8084166000908152602087815260409182902085518154928701516001600160a01b039081166301000000026001600160b81b0319909416919095161791909117815584820151600190910180546060870151608090970151909516600160c81b0263ffffffff60c81b1964ffffffffff909716600160a01b026001600160c81b031990961692909416919091179390931793909316179055517fad0a0fc10465a8dd9da3ad5f43e1a7fff4b4578551c76f0ae8deb844f0d0bf689061109e9083908890889062ffffff9390931683526001600160a01b03918216602084015216604082015260600190565b61018e61218e565b600080516020612d988339815191528054600160401b810460ff1615906001600160401b0316600081158015611d1b5750825b90506000826001600160401b03166001148015611d375750303b155b905081158015611d45575080155b15611d635760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315611d8d57845460ff60401b1916600160401b1785555b600087611d98611244565b604080516001600160a01b03909316602084015260ff9091169082015260600160408051601f1981840301815290829052631585e94960e21b8252915060009073__$b2e3f5fb9dc49bcf3e057142c7696ab68d$__90635617a52490611e04908b908690600401612abe565b600060405180830381865af4158015611e21573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611e499190810190612b16565b60405163257b1f8160e11b815290915060009073__$b2e3f5fb9dc49bcf3e057142c7696ab68d$__90634af63f0290611e889085908590600401612b4a565b602060405180830381865af4158015611ea5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ec99190612990565b604051636939560f60e11b81526001600160a01b03821660048201819052919250829160009163d272ac1e90602401602060405180830381865afa158015611f15573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f399190612968565b9050611f4683828e6121c7565b611f4e6109b7565b611f5e63183a225360e11b61224b565b50505050508315611fa957845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b611fba61247e565b6060846001600160a01b0316630fec111c6040518163ffffffff1660e01b8152600401600060405180830381865afa158015611ffa573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526120229190810190612b6c565b608082015191935091506001600160a01b03868116911614612068576080820151604051634726455360e11b81526001600160a01b039091166004820152602401610a7b565b6001546001600160a01b031660405163c3c5a54760e01b81526001600160a01b038581166004830152919091169063c3c5a54790602401602060405180830381865afa1580156120bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120e09190612940565b806121015750826001600160a01b03168260a001516001600160a01b031614155b156121305760a082015160405163711c133360e01b81526001600160a01b039091166004820152602401610a7b565b6001600160a01b0385163303612159576040516317faf4db60e11b815260040160405180910390fd5b604082015160ff85811691161461165b57604080830151905163f503452760e01b815260ff9091166004820152602401610a7b565b600080516020612d9883398151915254600160401b900460ff166121c557604051631afcd79f60e31b815260040160405180910390fd5b565b60006121f560408051808201909152600f81526e52656769737472795365727669636560881b602082015290565b6121fd611244565b60405160200161220e929190612c64565b6040516020818303038152906040529050612235848461222c603c90565b60008686612270565b612245631b4612f160e31b61224b565b50505050565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b61227a82876122fb565b60007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0388166cffffffffffffffffffffffffff1990911617600160601b60ff8816021760ff60681b1916600160681b861515021781559050600181016122ea8382612cd8565b50611fa96303fb044760e21b61224b565b600280546001600160a01b0319166001600160a01b038416179055611a3d816001546001600160a01b0316156123535760015460405163fcdbf2d960e01b81526001600160a01b039091166004820152602401610a7b565b6001600160a01b03811661237a5760405163f5c4d07d60e01b815260040160405180910390fd5b806001600160a01b03163b6000036123b05760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610a7b565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b8152632c1c764b60e11b60048201526301ffc9a790602401602060405180830381865afa92505050801561242a575060408051601f3d908101601f1916820190925261242791810190612940565b60015b6124525760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610a7b565b80611a3d5760405163fdeac91f60e01b81526001600160a01b0383166004820152602401610a7b565b50565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c081019190915290565b6000602082840312156124ce57600080fd5b81356001600160e01b031981168114610e2457600080fd5b6001600160a01b038116811461247b57600080fd5b8035612506816124e6565b919050565b60006020828403121561251d57600080fd5b8135610e24816124e6565b60005b8381101561254357818101518382015260200161252b565b50506000910152565b60008151808452612564816020860160208601612528565b601f01601f19169290920160200192915050565b60006001600160601b038083511684528060208401511660208501525060ff6040830151166040840152606082015115156060840152608082015160018060a01b0380821660808601528060a08501511660a0860152505060c082015160e060c08501526125e960e085018261254c565b949350505050565b6040815260006126046040830185612578565b8281036020840152612616818561254c565b95945050505050565b602081526000610e24602083018461254c565b62ffffff8116811461247b57600080fd5b60006020828403121561265557600080fd5b8135610e2481612632565b634e487b7160e01b600052604160045260246000fd5b60405160e081016001600160401b038111828210171561269857612698612660565b60405290565b604051601f8201601f191681016001600160401b03811182821017156126c6576126c6612660565b604052919050565b6001600160601b038116811461247b57600080fd5b8035612506816126ce565b60ff8116811461247b57600080fd5b8035612506816126ee565b801515811461247b57600080fd5b803561250681612708565b60006001600160401b0382111561273a5761273a612660565b50601f01601f191660200190565b600082601f83011261275957600080fd5b813561276c61276782612721565b61269e565b81815284602083860101111561278157600080fd5b816020850160208301376000918101602001919091529392505050565b6000602082840312156127b057600080fd5b81356001600160401b03808211156127c757600080fd5b9083019060e082860312156127db57600080fd5b6127e3612676565b6127ec836126e3565b81526127fa602084016126e3565b602082015261280b604084016126fd565b604082015261281c60608401612716565b606082015261282d608084016124fb565b608082015261283e60a084016124fb565b60a082015260c08301358281111561285557600080fd5b61286187828601612748565b60c08301525095945050505050565b60008060006060848603121561288557600080fd5b8335612890816124e6565b925060208401356128a0816124e6565b915060408401356001600160401b038111156128bb57600080fd5b6128c786828701612748565b9150509250925092565b6000602082840312156128e357600080fd5b5035919050565b6000806000606084860312156128ff57600080fd5b833561290a816124e6565b9250602084013561291a816126ee565b9150604084013561292a816124e6565b809150509250925092565b805161250681612708565b60006020828403121561295257600080fd5b8151610e2481612708565b8051612506816126ce565b60006020828403121561297a57600080fd5b8151610e24816126ce565b8051612506816124e6565b6000602082840312156129a257600080fd5b8151610e24816124e6565b602081526000610e246020830184612578565b6000602082840312156129d257600080fd5b8151610e2481612632565b600181811c908216806129f157607f821691505b602082108103612a1157634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215612a2957600080fd5b5051919050565b600060208284031215612a4257600080fd5b81516001600160401b0381168114610e2457600080fd5b634e487b7160e01b600052603260045260246000fd5b8051612506816126ee565b600060208284031215612a8c57600080fd5b8151610e24816126ee565b600060208284031215612aa957600080fd5b815164ffffffffff81168114610e2457600080fd5b604081526000612604604083018561254c565b600082601f830112612ae257600080fd5b8151612af061276782612721565b818152846020838601011115612b0557600080fd5b6125e9826020830160208701612528565b600060208284031215612b2857600080fd5b81516001600160401b03811115612b3e57600080fd5b6125e984828501612ad1565b604081526000612b5d604083018561254c565b90508260208301529392505050565b60008060408385031215612b7f57600080fd5b82516001600160401b0380821115612b9657600080fd5b9084019060e08287031215612baa57600080fd5b612bb2612676565b612bbb8361295d565b8152612bc96020840161295d565b6020820152612bda60408401612a6f565b6040820152612beb60608401612935565b6060820152612bfc60808401612985565b6080820152612c0d60a08401612985565b60a082015260c083015182811115612c2457600080fd5b612c3088828601612ad1565b60c0830152506020860151909450915080821115612c4d57600080fd5b50612c5a85828601612ad1565b9150509250929050565b604081526000612c77604083018561254c565b905060ff831660208301529392505050565b601f821115612cd357600081815260208120601f850160051c81016020861015612cb05750805b601f850160051c820191505b81811015612ccf57828155600101612cbc565b5050505b505050565b81516001600160401b03811115612cf157612cf1612660565b612d0581612cff84546129dd565b84612c89565b602080601f831160018114612d3a5760008415612d225750858301515b600019600386901b1c1916600185901b178555612ccf565b600085815260208120601f198616915b82811015612d6957888601518255948401946001909101908401612d4a565b5085821015612d875787850151600019600388901b60f8161c191681555b5050505050600190811b0190555056fef0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a004f61291a8ac3d020d0a7d919a76b8592aa88385744dee3f8b4f3873b969ed900a26469706673582212206189342c61b88973da0b2ea625e9c4735d1693a2d6cc4a5b590ef81dab5100ca64736f6c63430008140033",
896
- "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061018e5760003560e01c8063893d20e8116100de578063c2bf08c811610097578063d943342d11610071578063d943342d14610517578063e285c9c41461052a578063ed841d0c14610532578063fdd9ec7d1461053a57600080fd5b8063c2bf08c8146104d7578063cde749f4146104ea578063cf7a1d771461050457600080fd5b8063893d20e814610434578063946dfcfe1461043c578063a3f4df7e14610463578063a745e3df14610491578063b3c65015146104a4578063b88da759146104c457600080fd5b80631eff4b221161014b5780635ab1bd53116101255780635ab1bd53146103d15780635c992fed146103f6578063644c45e014610409578063834af1531461042157600080fd5b80631eff4b22146102705780634d459c90146102a55780634f421333146103be57600080fd5b806301ffc9a71461019357806309824a80146101d55780630d8e6e2c146102005780630fec111c1461021c578063138461e01461023257806317d7de7c1461023c575b600080fd5b6101c06101a13660046124bc565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b6101e86101e336600461250b565b61054d565b6040516001600160601b0390911681526020016101cc565b6102086107ec565b60405162ffffff90911681526020016101cc565b610224610876565b6040516101cc9291906125f1565b61023a6109b7565b005b60408051808201909152600f81526e52656769737472795365727669636560881b60208201525b6040516101cc919061261f565b6102977f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b6040519081526020016101cc565b6103616102b3366004612643565b6040805160a081018252600080825260208201819052918101829052606081018290526080810191909152600080516020612db883398151915262ffffff92831660009081526020918252604090819020815160a0810183528154958616815263010000009095046001600160a01b03908116938601939093526001015491821690840152600160a01b810464ffffffffff166060840152600160c81b900463ffffffff1660808301525090565b60408051825162ffffff1681526020808401516001600160a01b039081169183019190915283830151169181019190915260608083015164ffffffffff169082015260809182015163ffffffff169181019190915260a0016101cc565b6101c06103cc366004612643565b610bd9565b6001546001600160a01b03165b6040516001600160a01b0390911681526020016101cc565b6101e861040436600461279e565b610c8c565b600154600160a01b90046001600160601b03166101e8565b61022461042f36600461250b565b610e2b565b6103de610e3a565b7f4f61291a8ac3d020d0a7d919a76b8592aa88385744dee3f8b4f3873b969ed90154610297565b6102636040518060400160405280600f81526020016e52656769737472795365727669636560881b81525081565b61023a61049f366004612870565b610f53565b6104ac6110ad565b6040516001600160401b0390911681526020016101cc565b6102086104d23660046128d1565b6110ce565b6101e86104e536600461279e565b61111f565b6104f2611244565b60405160ff90911681526020016101cc565b61023a610512366004612870565b6112c7565b6102246105253660046128ea565b6113d0565b6103de600181565b610297600081565b61022461054836600461250b565b611663565b6040516301ffc9a760e01b81526303fb044760e21b6004820152600090829082906001600160a01b038316906301ffc9a790602401602060405180830381865afa9250505080156105bb575060408051601f3d908101601f191682019092526105b891810190612940565b60015b6105c7575060006105ca565b90505b80156105e95760405163087cada760e21b815260040160405180910390fd5b600154604051636939560f60e11b81526001600160a01b039091166004820181905260009163d272ac1e90602401602060405180830381865afa158015610634573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106589190612968565b600154604051631c5da14d60e11b81526001600160601b03831660048201529192506001600160a01b0316906338bb429a90602401602060405180830381865afa1580156106aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ce9190612990565b6001600160a01b0316336001600160a01b0316146106ff5760405163778d468d60e11b815260040160405180910390fd5b60006040518060e00160405280610714600090565b6001600160601b03168152602001836001600160601b03168152602001610739603290565b60ff168152600060208083018290526001600160a01b03808b1660408086019190915260016060860181905281519384018252938352608090940191909152905491516352efcf2760e11b8152929350169063a5df9e4e9061079f9084906004016129ad565b6020604051808303816000875af11580156107be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107e29190612968565b9695505050505050565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90632efe011390606401602060405180830381865af415801561084d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061087191906129c0565b905090565b61087e61247e565b606060007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30090506040518060e001604052806108b8600090565b6001600160601b0390811682528354908116602083015260ff600160601b820481166040840152600160681b909104161515606082015230608082015260a001610900610e3a565b6001600160a01b0316815260200182600101805461091d906129dd565b80601f0160208091040260200160405190810160405280929190818152602001828054610949906129dd565b80156109965780601f1061096b57610100808354040283529160200191610996565b820191906000526020600020905b81548152906001019060200180831161097957829003601f168201915b50505050508152506040518060200160405280600081525092509250509091565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610a19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a3d9190612940565b15610a84576001546040516316322c0f60e31b81526001600160a01b0382166004820152600160a01b9091046001600160601b031660248201526044015b60405180910390fd5b6001546001600160a01b0316610aad5760405163cf29926160e01b815260040160405180910390fd5b60015460405163c3c5a54760e01b81523060048201819052916001600160a01b03169063c3c5a54790602401602060405180830381865afa158015610af6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b1a9190612940565b610b42576040516372657a5160e01b81526001600160a01b0382166004820152602401610a7b565b600154604051636939560f60e11b81526001600160a01b0383811660048301529091169063d272ac1e90602401602060405180830381865afa158015610b8c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb09190612968565b600160146101000a8154816001600160601b0302191690836001600160601b0316021790555050565b600080600080516020612db883398151915262ffffff84166000908152602091909152604090819020600101549051631bbffab160e21b8152600160c81b90910463ffffffff16600482015273__$5f476116ae21c5294e0c0761c07efa7e1c$__90636effeac490602401602060405180830381865af4158015610c61573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c859190612a17565b1192915050565b600154604051636939560f60e11b815233600482015260009182916001600160a01b039091169063d272ac1e90602401602060405180830381865afa158015610cd9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cfd9190612968565b6001549091506001600160a01b0316635f1561518260d26040516001600160e01b031960e085901b1681526001600160601b03909216600483015260ff166024820152604401602060405180830381865afa158015610d60573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d849190612940565b1515600003610da657604051632bb46a5f60e01b815260040160405180910390fd5b610db18360d261190b565b6001546040516352efcf2760e11b81526001600160a01b039091169063a5df9e4e90610de19086906004016129ad565b6020604051808303816000875af1158015610e00573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e249190612968565b9392505050565b610e3361247e565b6060915091565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015260009073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610e9f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ec39190612940565b15610f4357600154604051631c5da14d60e11b8152600160a01b82046001600160601b031660048201526001600160a01b03909116906338bb429a90602401602060405180830381865afa158015610f1f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108719190612990565b506002546001600160a01b031690565b73__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__63a123b37c610f756107ec565b6040516001600160e01b031960e084901b16815262ffffff9091166004820152602401602060405180830381865af4158015610fb5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fd99190612a30565b600080516020612d988339815191528054600160401b900460ff168061100c575080546001600160401b03808416911610155b1561102a5760405163f92ee8a960e01b815260040160405180910390fd5b805468ffffffffffffffffff19166001600160401b03831617600160401b1781556110558585611a41565b61105e83611ce0565b805460ff60401b191681556040516001600160401b03831681527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2906020015b60405180910390a15050505050565b6000610871600080516020612d98833981519152546001600160401b031690565b6000600080516020612db883398151915260010182815481106110f3576110f3612a59565b90600052602060002090600a91828204019190066003029054906101000a900462ffffff169050919050565b600154604051636939560f60e11b815233600482015260009182916001600160a01b039091169063d272ac1e90602401602060405180830381865afa15801561116c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111909190612968565b6001549091506001600160a01b0316635f1561518260dc6040516001600160e01b031960e085901b1681526001600160601b03909216600483015260ff166024820152604401602060405180830381865afa1580156111f3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112179190612940565b151560000361123957604051632bb46a5f60e01b815260040160405180910390fd5b610db18360dc61190b565b600061124e6107ec565b60405163c9e66e2960e01b815262ffffff909116600482015273__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__9063c9e66e2990602401602060405180830381865af41580156112a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108719190612a7a565b600080516020612d988339815191528054600160401b810460ff1615906001600160401b03166000811580156112fa5750825b90506000826001600160401b031660011480156113165750303b155b905081158015611324575080155b156113425760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561136c57845460ff60401b1916600160401b1785555b6113768888611a41565b6113808787611ce8565b83156113c657845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b5050505050505050565b6113d861247e565b6040516301ffc9a760e01b8152631b1599eb60e21b60048201526060906001600160a01b038616906301ffc9a790602401602060405180830381865afa158015611426573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061144a9190612940565b61146757604051634138dc2760e11b815260040160405180910390fd5b611472858585611fb2565b600154604051636939560f60e11b81523360048201529294509092506000916001600160a01b039091169063d272ac1e90602401602060405180830381865afa1580156114c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114e79190612968565b600154604051635f15615160e01b81526001600160601b038316600482015260ff881660248201529192506001600160a01b031690635f15615190604401602060405180830381865afa158015611542573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115669190612940565b61158357604051632bb46a5f60e01b815260040160405180910390fd5b6001546040516352efcf2760e11b81526001600160a01b039091169063a5df9e4e906115b39086906004016129ad565b6020604051808303816000875af11580156115d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115f69190612968565b6001600160601b0316835260408051629c230f60e51b815290516001600160a01b0388169163138461e091600480830192600092919082900301818387803b15801561164157600080fd5b505af1158015611655573d6000803e3d6000fd5b50505050505b935093915050565b61166b61247e565b6040516301ffc9a760e01b8152631b4612f160e31b60048201526060906001600160a01b038416906301ffc9a790602401602060405180830381865afa1580156116b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116dd9190612940565b15156000036116ff57604051635458064d60e11b815260040160405180910390fd5b61170b83603c33611fb2565b600154604051636939560f60e11b81526001600160a01b03909116600482018190529294509092506000919063d272ac1e90602401602060405180830381865afa15801561175d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117819190612968565b600154604051631c5da14d60e11b81526001600160601b03831660048201529192506001600160a01b0316906338bb429a90602401602060405180830381865afa1580156117d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117f79190612990565b6001600160a01b0316336001600160a01b0316146118285760405163778d468d60e11b815260040160405180910390fd5b600160a08401819052546040516352efcf2760e11b81526001600160a01b039091169063a5df9e4e9061185f9086906004016129ad565b6020604051808303816000875af115801561187e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118a29190612968565b6001600160601b0316835260408051629c230f60e51b815290516001600160a01b0386169163138461e091600480830192600092919082900301818387803b1580156118ed57600080fd5b505af1158015611901573d6000803e3d6000fd5b5050505050915091565b60808201516001600160a01b031615611948576080820151604051634726455360e11b81526001600160a01b039091166004820152602401610a7b565b6001546001600160a01b031660a083015160405163c3c5a54760e01b81526001600160a01b03918216600482015291169063c3c5a54790602401602060405180830381865afa15801561199f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119c39190612940565b806119d9575060a08201516001600160a01b0316155b15611a085760a082015160405163711c133360e01b81526001600160a01b039091166004820152602401610a7b565b604082015160ff828116911614611a3d57604080830151905163f503452760e01b815260ff9091166004820152602401610a7b565b5050565b611a4961218e565b600080516020612db88339815191526000611a79600080516020612d98833981519152546001600160401b031690565b90506000611a856107ec565b9050816001600160401b0316600103611ab25760028301805462ffffff191662ffffff8316179055611b00565b600283015462ffffff90811690821611611b005760405162461bcd60e51b815260206004820152600f60248201526e24a72b20a624a2102b22a929a4a7a760891b6044820152606401610a7b565b6001808401805491820181556000908152602090819020600a808404909101805462ffffff808716600394909606939093026101000a858102930219169190911790556040805160a0810182529283526001600160a01b038089168484015287168382015280516356db0c1960e11b81529051606084019273__$d53880c81dc91c20799140d711e5ab8718$__9263adb6183292600480830193928290030181865af4158015611bb4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bd89190612a97565b64ffffffffff1681526020014363ffffffff90811690915262ffffff8084166000908152602087815260409182902085518154928701516001600160a01b039081166301000000026001600160b81b0319909416919095161791909117815584820151600190910180546060870151608090970151909516600160c81b0263ffffffff60c81b1964ffffffffff909716600160a01b026001600160c81b031990961692909416919091179390931793909316179055517fad0a0fc10465a8dd9da3ad5f43e1a7fff4b4578551c76f0ae8deb844f0d0bf689061109e9083908890889062ffffff9390931683526001600160a01b03918216602084015216604082015260600190565b61018e61218e565b600080516020612d988339815191528054600160401b810460ff1615906001600160401b0316600081158015611d1b5750825b90506000826001600160401b03166001148015611d375750303b155b905081158015611d45575080155b15611d635760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315611d8d57845460ff60401b1916600160401b1785555b600087611d98611244565b604080516001600160a01b03909316602084015260ff9091169082015260600160408051601f1981840301815290829052631585e94960e21b8252915060009073__$b2e3f5fb9dc49bcf3e057142c7696ab68d$__90635617a52490611e04908b908690600401612abe565b600060405180830381865af4158015611e21573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611e499190810190612b16565b60405163257b1f8160e11b815290915060009073__$b2e3f5fb9dc49bcf3e057142c7696ab68d$__90634af63f0290611e889085908590600401612b4a565b602060405180830381865af4158015611ea5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ec99190612990565b604051636939560f60e11b81526001600160a01b03821660048201819052919250829160009163d272ac1e90602401602060405180830381865afa158015611f15573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f399190612968565b9050611f4683828e6121c7565b611f4e6109b7565b611f5e63183a225360e11b61224b565b50505050508315611fa957845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b611fba61247e565b6060846001600160a01b0316630fec111c6040518163ffffffff1660e01b8152600401600060405180830381865afa158015611ffa573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526120229190810190612b6c565b608082015191935091506001600160a01b03868116911614612068576080820151604051634726455360e11b81526001600160a01b039091166004820152602401610a7b565b6001546001600160a01b031660405163c3c5a54760e01b81526001600160a01b038581166004830152919091169063c3c5a54790602401602060405180830381865afa1580156120bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120e09190612940565b806121015750826001600160a01b03168260a001516001600160a01b031614155b156121305760a082015160405163711c133360e01b81526001600160a01b039091166004820152602401610a7b565b6001600160a01b0385163303612159576040516317faf4db60e11b815260040160405180910390fd5b604082015160ff85811691161461165b57604080830151905163f503452760e01b815260ff9091166004820152602401610a7b565b600080516020612d9883398151915254600160401b900460ff166121c557604051631afcd79f60e31b815260040160405180910390fd5b565b60006121f560408051808201909152600f81526e52656769737472795365727669636560881b602082015290565b6121fd611244565b60405160200161220e929190612c64565b6040516020818303038152906040529050612235848461222c603c90565b60008686612270565b612245631b4612f160e31b61224b565b50505050565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b61227a82876122fb565b60007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0388166cffffffffffffffffffffffffff1990911617600160601b60ff8816021760ff60681b1916600160681b861515021781559050600181016122ea8382612cd8565b50611fa96303fb044760e21b61224b565b600280546001600160a01b0319166001600160a01b038416179055611a3d816001546001600160a01b0316156123535760015460405163fcdbf2d960e01b81526001600160a01b039091166004820152602401610a7b565b6001600160a01b03811661237a5760405163f5c4d07d60e01b815260040160405180910390fd5b806001600160a01b03163b6000036123b05760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610a7b565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b8152632c1c764b60e11b60048201526301ffc9a790602401602060405180830381865afa92505050801561242a575060408051601f3d908101601f1916820190925261242791810190612940565b60015b6124525760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610a7b565b80611a3d5760405163fdeac91f60e01b81526001600160a01b0383166004820152602401610a7b565b50565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c081019190915290565b6000602082840312156124ce57600080fd5b81356001600160e01b031981168114610e2457600080fd5b6001600160a01b038116811461247b57600080fd5b8035612506816124e6565b919050565b60006020828403121561251d57600080fd5b8135610e24816124e6565b60005b8381101561254357818101518382015260200161252b565b50506000910152565b60008151808452612564816020860160208601612528565b601f01601f19169290920160200192915050565b60006001600160601b038083511684528060208401511660208501525060ff6040830151166040840152606082015115156060840152608082015160018060a01b0380821660808601528060a08501511660a0860152505060c082015160e060c08501526125e960e085018261254c565b949350505050565b6040815260006126046040830185612578565b8281036020840152612616818561254c565b95945050505050565b602081526000610e24602083018461254c565b62ffffff8116811461247b57600080fd5b60006020828403121561265557600080fd5b8135610e2481612632565b634e487b7160e01b600052604160045260246000fd5b60405160e081016001600160401b038111828210171561269857612698612660565b60405290565b604051601f8201601f191681016001600160401b03811182821017156126c6576126c6612660565b604052919050565b6001600160601b038116811461247b57600080fd5b8035612506816126ce565b60ff8116811461247b57600080fd5b8035612506816126ee565b801515811461247b57600080fd5b803561250681612708565b60006001600160401b0382111561273a5761273a612660565b50601f01601f191660200190565b600082601f83011261275957600080fd5b813561276c61276782612721565b61269e565b81815284602083860101111561278157600080fd5b816020850160208301376000918101602001919091529392505050565b6000602082840312156127b057600080fd5b81356001600160401b03808211156127c757600080fd5b9083019060e082860312156127db57600080fd5b6127e3612676565b6127ec836126e3565b81526127fa602084016126e3565b602082015261280b604084016126fd565b604082015261281c60608401612716565b606082015261282d608084016124fb565b608082015261283e60a084016124fb565b60a082015260c08301358281111561285557600080fd5b61286187828601612748565b60c08301525095945050505050565b60008060006060848603121561288557600080fd5b8335612890816124e6565b925060208401356128a0816124e6565b915060408401356001600160401b038111156128bb57600080fd5b6128c786828701612748565b9150509250925092565b6000602082840312156128e357600080fd5b5035919050565b6000806000606084860312156128ff57600080fd5b833561290a816124e6565b9250602084013561291a816126ee565b9150604084013561292a816124e6565b809150509250925092565b805161250681612708565b60006020828403121561295257600080fd5b8151610e2481612708565b8051612506816126ce565b60006020828403121561297a57600080fd5b8151610e24816126ce565b8051612506816124e6565b6000602082840312156129a257600080fd5b8151610e24816124e6565b602081526000610e246020830184612578565b6000602082840312156129d257600080fd5b8151610e2481612632565b600181811c908216806129f157607f821691505b602082108103612a1157634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215612a2957600080fd5b5051919050565b600060208284031215612a4257600080fd5b81516001600160401b0381168114610e2457600080fd5b634e487b7160e01b600052603260045260246000fd5b8051612506816126ee565b600060208284031215612a8c57600080fd5b8151610e24816126ee565b600060208284031215612aa957600080fd5b815164ffffffffff81168114610e2457600080fd5b604081526000612604604083018561254c565b600082601f830112612ae257600080fd5b8151612af061276782612721565b818152846020838601011115612b0557600080fd5b6125e9826020830160208701612528565b600060208284031215612b2857600080fd5b81516001600160401b03811115612b3e57600080fd5b6125e984828501612ad1565b604081526000612b5d604083018561254c565b90508260208301529392505050565b60008060408385031215612b7f57600080fd5b82516001600160401b0380821115612b9657600080fd5b9084019060e08287031215612baa57600080fd5b612bb2612676565b612bbb8361295d565b8152612bc96020840161295d565b6020820152612bda60408401612a6f565b6040820152612beb60608401612935565b6060820152612bfc60808401612985565b6080820152612c0d60a08401612985565b60a082015260c083015182811115612c2457600080fd5b612c3088828601612ad1565b60c0830152506020860151909450915080821115612c4d57600080fd5b50612c5a85828601612ad1565b9150509250929050565b604081526000612c77604083018561254c565b905060ff831660208301529392505050565b601f821115612cd357600081815260208120601f850160051c81016020861015612cb05750805b601f850160051c820191505b81811015612ccf57828155600101612cbc565b5050505b505050565b81516001600160401b03811115612cf157612cf1612660565b612d0581612cff84546129dd565b84612c89565b602080601f831160018114612d3a5760008415612d225750858301515b600019600386901b1c1916600185901b178555612ccf565b600085815260208120601f198616915b82811015612d6957888601518255948401946001909101908401612d4a565b5085821015612d875787850151600019600388901b60f8161c191681555b5050505050600190811b0190555056fef0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a004f61291a8ac3d020d0a7d919a76b8592aa88385744dee3f8b4f3873b969ed900a26469706673582212206189342c61b88973da0b2ea625e9c4735d1693a2d6cc4a5b590ef81dab5100ca64736f6c63430008140033",
1084
+ "bytecode": "0x60806040523480156200001157600080fd5b506200001c62000022565b620000d6565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff1615620000735760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b0390811614620000d35780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b612e5780620000e66000396000f3fe608060405234801561001057600080fd5b50600436106101e55760003560e01c8063644c45e01161010f5780638fbc2d81116100a2578063c13de99711610071578063c13de99714610452578063c2bf08c814610467578063ed841d0c1461047a578063f7c34ee01461048257600080fd5b80638fbc2d8114610413578063ada9652e14610426578063b68d18091461043b578063bf7e214f1461044a57600080fd5b80638105cc7f116100de5780638105cc7f146103d0578063893d20e8146103e35780638e32e979146103eb5780638fb36037146103fe57600080fd5b8063644c45e014610379578063675393bf146103975780637286e5e5146103aa5780637a9e5e4b146103bd57600080fd5b806327bb7a331161018757806357a8fba71161015657806357a8fba7146103035780635ab1bd531461032e5780635c992fed146103535780635d9662891461036657600080fd5b806327bb7a33146102c2578063329d6e74146102d557806336fc697e146102e857806349bb9e4b146102f057600080fd5b80630fec111c116101c35780630fec111c14610268578063138461e0146102705780631eff4b221461027a578063214cdb80146102af57600080fd5b806301ffc9a7146101ea578063026bc43b1461022c5780630d8e6e2c1461024c575b600080fd5b6102176101f836600461239a565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b61023f61023a3660046123f0565b610495565b6040516102239190612479565b610254610633565b60405162ffffff9091168152602001610223565b61023f6106bd565b6102786107de565b005b6102a17f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b604051908152602001610223565b6102786102bd36600461239a565b6109e5565b6102786102d0366004612642565b610a12565b6102786102e33660046126da565b610ab7565b610278610c04565b6102786102fe36600461270e565b610c4a565b61031661031136600461275d565b610d49565b6040516001600160601b039091168152602001610223565b6001546001600160a01b03165b6040516001600160a01b039091168152602001610223565b61031661036136600461275d565b610dd8565b61023f6103743660046123f0565b610dee565b600080516020612dc2833981519152546001600160601b0316610316565b6102786103a536600461282f565b610f2e565b61023f6103b83660046123f0565b611041565b6102786103cb36600461282f565b6110ee565b6103166103de36600461275d565b611171565b61033b611187565b6102786103f936600461284c565b6112be565b6104066114f7565b6040516102239190612897565b61023f6104213660046123f0565b61152f565b6102a1600080516020612dc283398151915281565b60405160288152602001610223565b61033b6115dc565b61045a6115f8565b60405161022391906128ac565b61031661047536600461275d565b611be4565b6102a1600081565b6102786104903660046123f0565b611bfa565b61049d61235c565b6104aa335b600036611c71565b6040516301ffc9a760e01b81526001600160a01b038416906301ffc9a7906104dd90633e1e17f360e11b90600401612897565b602060405180830381865afa1580156104fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061051e9190612964565b61053b57604051636795c76360e01b815260040160405180910390fd5b6105488360465b84611d77565b905061055c6001546001600160a01b031690565b6001600160a01b031663a5df9e4e826040518263ffffffff1660e01b81526004016105879190612479565b6020604051808303816000875af11580156105a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105ca919061298c565b6001600160601b0316815260408051629c230f60e51b815290516001600160a01b0385169163138461e091600480830192600092919082900301818387803b15801561061557600080fd5b505af1158015610629573d6000803e3d6000fd5b5050505092915050565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90632efe011390606401602060405180830381865af4158015610694573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106b891906129a9565b905090565b6106c561235c565b6040805160e081018252600081527f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b038116602084015260ff600160601b8204811694840194909452600160681b90049092161515606082015230608082015260a0810161073a611187565b6001600160a01b03168152602001826001018054610757906129ce565b80601f0160208091040260200160405190810160405280929190818152602001828054610783906129ce565b80156107d05780601f106107a5576101008083540402835291602001916107d0565b820191906000526020600020905b8154815290600101906020018083116107b357829003601f168201915b505050505081525091505090565b6000600080516020612dc283398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af415801561084d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108719190612964565b156108a25780546040516301ab8b6760e21b81526001600160601b0390911660048201526024015b60405180910390fd5b306108b56001546001600160a01b031690565b60405163c3c5a54760e01b81526001600160a01b038381166004830152919091169063c3c5a54790602401602060405180830381865afa1580156108fd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109219190612964565b6109495760405163b9304b0d60e01b81526001600160a01b0382166004820152602401610899565b6001546001600160a01b0316604051636939560f60e11b81526001600160a01b038381166004830152919091169063d272ac1e90602401602060405180830381865afa15801561099d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c1919061298c565b82546bffffffffffffffffffffffff19166001600160601b03919091161790915550565b6109ed611f67565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b610a1a611f67565b610a248287611bfa565b7f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0387166cffffffffffffffffffffffffff1990911617600160601b60ff8716021760ff60681b1916600160681b851515021781557f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa301610aad8382612a4e565b5050505050505050565b73__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__63a123b37c610ad9610633565b6040516001600160e01b031960e084901b16815262ffffff9091166004820152602401602060405180830381865af4158015610b19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b3d9190612b0d565b600080516020612e028339815191528054600160401b900460ff1680610b70575080546001600160401b03808416911610155b15610b8e5760405163f92ee8a960e01b815260040160405180910390fd5b805468ffffffffffffffffff19166001600160401b03831617600160401b178155610bb883611fa0565b805460ff60401b191681556040516001600160401b03831681527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050565b610c0c611f67565b6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b600080516020612e028339815191528054600160401b810460ff1615906001600160401b0316600081158015610c7d5750825b90506000826001600160401b03166001148015610c995750303b155b905081158015610ca7575080155b15610cc55760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610cef57845460ff60401b1916600160401b1785555b610cf98787611fa8565b8315610d4057845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2906020015b60405180910390a15b50505050505050565b6000610d54336104a2565b610d5f82607a6120c7565b6001546040516352efcf2760e11b81526001600160a01b039091169063a5df9e4e90610d8f908590600401612479565b6020604051808303816000875af1158015610dae573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dd2919061298c565b92915050565b6000610de3336104a2565b610d5f8260d36120c7565b610df661235c565b610dff336104a2565b6040516301ffc9a760e01b81526001600160a01b038416906301ffc9a790610e3290631e63cf4560e01b90600401612897565b602060405180830381865afa158015610e4f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e739190612964565b610e9057604051637a71998760e01b815260040160405180910390fd5b610e9b83606e610542565b9050610eaf6001546001600160a01b031690565b6001600160a01b031663a5df9e4e826040518263ffffffff1660e01b8152600401610eda9190612479565b6020604051808303816000875af1158015610ef9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f1d919061298c565b6001600160601b0316815292915050565b610f36611f67565b806001600160a01b03163b600003610f6c5760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610899565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b81526301ffc9a790610fb290630a3888e560e31b90600401612897565b602060405180830381865afa925050508015610feb575060408051601f3d908101601f19168201909252610fe891810190612964565b60015b6110135760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610899565b8061103c5760405163fdeac91f60e01b81526001600160a01b0383166004820152602401610899565b505b50565b61104961235c565b611052336104a2565b6040516301ffc9a760e01b81526001600160a01b038416906301ffc9a7906110859063f20236f360e01b90600401612897565b602060405180830381865afa1580156110a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110c69190612964565b6110e357604051636f61f64160e01b815260040160405180910390fd5b610e9b83608c610542565b336110f76115dc565b6001600160a01b0316816001600160a01b0316146111325760405162d1953b60e31b81526001600160a01b0382166004820152602401610899565b816001600160a01b03163b600003611168576040516361798f2f60e11b81526001600160a01b0383166004820152602401610899565b61103c826121cd565b600061117c336104a2565b610d5f8260506120c7565b600080600080516020612dc283398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af41580156111f7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061121b9190612964565b156112a8576001546001600160a01b03168154604051631c5da14d60e11b81526001600160601b0390911660048201526001600160a01b0391909116906338bb429a90602401602060405180830381865afa15801561127e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112a29190612b41565b91505090565b54600160601b90046001600160a01b0316919050565b6112c6611f67565b61134683846001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa158015611308573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061132c919061298c565b603c60008560405180602001604052806000815250610a12565b6001600160a01b038216156113635761135e8261222e565b6114d2565b60006113776001546001600160a01b031690565b6001600160a01b031663d39e60436028604051632392b61b60e21b81526003600482015273__$9dab98ad7ae1a426029e5739f922230a41$__90638e4ad86c90602401602060405180830381865af41580156113d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113fb9190612b69565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa158015611440573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114649190612b41565b90506114d0816001600160a01b031663bf7e214f6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156114a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114cb9190612b41565b61222e565b505b6114e2634a531f3360e01b6109e5565b6114f263b68d180960e01b6109e5565b505050565b600080516020612de2833981519152805460009190600160a01b900460ff166115215760006112a2565b638fb3603760e01b91505090565b61153761235c565b611540336104a2565b6040516301ffc9a760e01b81526001600160a01b038416906301ffc9a79061157390637895d0ed60e01b90600401612897565b602060405180830381865afa158015611590573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115b49190612964565b6115d1576040516308707e3160e41b815260040160405180910390fd5b610e9b836078610542565b600080516020612de2833981519152546001600160a01b031690565b6040805160088082526101208201909252606091816020015b60408051808201909152600081526060602082015281526020019060019003908161161157905050905061164360d390565b8160008151811061165657611656612b86565b60209081029190910181015160ff9290921690915260408051600080825292810190915290508160008151811061168f5761168f612b86565b6020026020010151602001819052506116a660d290565b816001815181106116b9576116b9612b86565b602090810291909101015160ff9190911690526040805160018082528183019092529081602001602082028036833701905050816001815181106116ff576116ff612b86565b602002602001015160200181905250635c992fed60e01b8160018151811061172957611729612b86565b60200260200101516020015160008151811061174757611747612b86565b6001600160e01b03199092166020928302919091019091015261176860d490565b8160028151811061177b5761177b612b86565b60209081029190910181015160ff92909216909152604080516000815291820190528151829060029081106117b2576117b2612b86565b6020026020010151602001819052506117c9606e90565b816003815181106117dc576117dc612b86565b602090810291909101015160ff91909116905260408051600180825281830190925290816020016020820280368337019050508160038151811061182257611822612b86565b602002602001015160200181905250635d96628960e01b8160038151811061184c5761184c612b86565b60200260200101516020015160008151811061186a5761186a612b86565b6001600160e01b03199092166020928302919091019091015261188b608c90565b8160048151811061189e5761189e612b86565b602090810291909101015160ff9190911690526040805160018082528183019092529081602001602082028036833701905050816004815181106118e4576118e4612b86565b602002602001015160200181905250637286e5e560e01b8160048151811061190e5761190e612b86565b60200260200101516020015160008151811061192c5761192c612b86565b6001600160e01b03199092166020928302919091019091015261194d60dc90565b8160058151811061196057611960612b86565b602090810291909101015160ff9190911690526040805160018082528183019092529081602001602082028036833701905050816005815181106119a6576119a6612b86565b60200260200101516020018190525063c2bf08c860e01b816005815181106119d0576119d0612b86565b6020026020010151602001516000815181106119ee576119ee612b86565b6001600160e01b031990921660209283029190910190910152611a0f607890565b81600681518110611a2257611a22612b86565b602090810291909101015160ff91909116905260408051600280825260608201909252908160200160208202803683370190505081600681518110611a6957611a69612b86565b602002602001015160200181905250638fbc2d8160e01b81600681518110611a9357611a93612b86565b602002602001015160200151600081518110611ab157611ab1612b86565b6001600160e01b03199092166020928302919091019091015280516357a8fba760e01b9082906006908110611ae857611ae8612b86565b602002602001015160200151600181518110611b0657611b06612b86565b6001600160e01b031990921660209283029190910190910152611b27604690565b81600781518110611b3a57611b3a612b86565b602090810291909101015160ff919091169052604080516001808252818301909252908160200160208202803683370190505081600781518110611b8057611b80612b86565b60200260200101516020018190525063026bc43b60e01b81600781518110611baa57611baa612b86565b602002602001015160200151600081518110611bc857611bc8612b86565b6001600160e01b03199092166020928302919091019091015290565b6000611bef336104a2565b610d5f8260dc6120c7565b611c02611f67565b611c0b81610f2e565b611c13610c04565b6001600160a01b038216611c3a5760405163f17ef42d60e01b815260040160405180910390fd5b50600080516020612dc283398151915280546001600160601b0316600160601b6001600160a01b0390931692909202919091179055565b600080516020612de2833981519152600080611cac611c8e6115dc565b8730611c9e600460008a8c612b9c565b611ca791612bc6565b61223f565b9150915081611d6f5763ffffffff811615611d4c57825460ff60a01b1916600160a01b178355611cda6115dc565b6001600160a01b03166394c7d7ee8787876040518463ffffffff1660e01b8152600401611d0993929190612bf6565b600060405180830381600087803b158015611d2357600080fd5b505af1158015611d37573d6000803e3d6000fd5b5050845460ff60a01b1916855550611d6f9050565b60405162d1953b60e31b81526001600160a01b0387166004820152602401610899565b505050505050565b611d7f61235c565b836001600160a01b0316630fec111c6040518163ffffffff1660e01b8152600401600060405180830381865afa158015611dbd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611de59190810190612c7b565b6001600160a01b0385166080820152604081015190915060ff848116911614611e34576040808201519051632208245760e11b815260ff80861660048301529091166024820152604401610899565b60a08101516001600160a01b0380821690841614611e705760405163dfc430cb60e01b81526001600160a01b0384166004820152602401610899565b846001600160a01b0316816001600160a01b031603611ea2576040516317faf4db60e11b815260040160405180910390fd5b6001600160a01b038116611ec957604051630fd187d360e01b815260040160405180910390fd5b6001546001600160a01b031660405163c3c5a54760e01b81526001600160a01b038381166004830152919091169063c3c5a54790602401602060405180830381865afa158015611f1d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f419190612964565b15611f5f57604051637142ceb360e11b815260040160405180910390fd5b509392505050565b600080516020612e0283398151915254600160401b900460ff16611f9e57604051631afcd79f60e31b815260040160405180910390fd5b565b6101e5611f67565b600080516020612e028339815191528054600160401b810460ff1615906001600160401b0316600081158015611fdb5750825b90506000826001600160401b03166001148015611ff75750303b155b905081158015612005575080155b156120235760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561204d57845460ff60401b1916600160401b1785555b600080878060200190518101906120649190612d3e565b9150915061207382828b6112be565b61208363aa745bc360e01b6109e5565b50508315610d4057845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d290602001610d37565b60006080830152604082015160ff82811691161461210b576040808301519051632208245760e11b815260ff80841660048301529091166024820152604401610899565b60a08201516001600160a01b03811661213757604051630fd187d360e01b815260040160405180910390fd5b6001546001600160a01b031660405163c3c5a54760e01b81526001600160a01b038381166004830152919091169063c3c5a54790602401602060405180830381865afa15801561218b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121af9190612964565b156114f257604051637142ceb360e11b815260040160405180910390fd5b600080516020612de283398151915280546001600160a01b0383166001600160a01b03199091168117825560408051918252517f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad9181900360200190a15050565b612236611f67565b61103e8161234b565b6040516001600160a01b03848116602483015283811660448301526001600160e01b03198316606483015260009182918291829189169060840160408051601f198184030181529181526020820180516001600160e01b031663b700961360e01b179052516122ae9190612d6d565b600060405180830381855afa9150503d80600081146122e9576040519150601f19603f3d011682016040523d82523d6000602084013e6122ee565b606091505b5091509150811561234057604081511061232057808060200190518101906123169190612d89565b9094509250612340565b6020815110612340578080602001905181019061233d9190612964565b93505b505094509492505050565b612353611f67565b61103e816121cd565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c081019190915290565b6000602082840312156123ac57600080fd5b81356001600160e01b0319811681146123c457600080fd5b9392505050565b6001600160a01b038116811461103e57600080fd5b80356123eb816123cb565b919050565b6000806040838503121561240357600080fd5b823561240e816123cb565b9150602083013561241e816123cb565b809150509250929050565b60005b8381101561244457818101518382015260200161242c565b50506000910152565b60008151808452612465816020860160208601612429565b601f01601f19169290920160200192915050565b6020815260006001600160601b038084511660208401528060208501511660408401525060ff604084015116606083015260608301511515608083015260018060a01b0360808401511660a083015260a08301516124e260c08401826001600160a01b03169052565b5060c083015160e0808401526124fc61010084018261244d565b949350505050565b6001600160601b038116811461103e57600080fd5b80356123eb81612504565b60ff8116811461103e57600080fd5b80356123eb81612524565b801515811461103e57600080fd5b80356123eb8161253e565b634e487b7160e01b600052604160045260246000fd5b60405160e081016001600160401b038111828210171561258f5761258f612557565b60405290565b604051601f8201601f191681016001600160401b03811182821017156125bd576125bd612557565b604052919050565b60006001600160401b038211156125de576125de612557565b50601f01601f191660200190565b600082601f8301126125fd57600080fd5b813561261061260b826125c5565b612595565b81815284602083860101111561262557600080fd5b816020850160208301376000918101602001919091529392505050565b60008060008060008060c0878903121561265b57600080fd5b8635612666816123cb565b9550602087013561267681612504565b9450604087013561268681612524565b935060608701356126968161253e565b925060808701356126a6816123cb565b915060a08701356001600160401b038111156126c157600080fd5b6126cd89828a016125ec565b9150509295509295509295565b6000602082840312156126ec57600080fd5b81356001600160401b0381111561270257600080fd5b6124fc848285016125ec565b6000806040838503121561272157600080fd5b823561272c816123cb565b915060208301356001600160401b0381111561274757600080fd5b612753858286016125ec565b9150509250929050565b60006020828403121561276f57600080fd5b81356001600160401b038082111561278657600080fd5b9083019060e0828603121561279a57600080fd5b6127a261256d565b6127ab83612519565b81526127b960208401612519565b60208201526127ca60408401612533565b60408201526127db6060840161254c565b60608201526127ec608084016123e0565b60808201526127fd60a084016123e0565b60a082015260c08301358281111561281457600080fd5b612820878286016125ec565b60c08301525095945050505050565b60006020828403121561284157600080fd5b81356123c4816123cb565b60008060006060848603121561286157600080fd5b833561286c816123cb565b9250602084013561287c816123cb565b9150604084013561288c816123cb565b809150509250925092565b6001600160e01b031991909116815260200190565b60006020808301818452808551808352604092508286019150828160051b8701018488016000805b8481101561294a57898403603f190186528251805160ff168552880151888501889052805188860181905290890190839060608701905b808310156129355783516001600160e01b0319168252928b019260019290920191908b019061290b565b50978a019795505050918701916001016128d4565b50919998505050505050505050565b80516123eb8161253e565b60006020828403121561297657600080fd5b81516123c48161253e565b80516123eb81612504565b60006020828403121561299e57600080fd5b81516123c481612504565b6000602082840312156129bb57600080fd5b815162ffffff811681146123c457600080fd5b600181811c908216806129e257607f821691505b602082108103612a0257634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156114f257600081815260208120601f850160051c81016020861015612a2f5750805b601f850160051c820191505b81811015611d6f57828155600101612a3b565b81516001600160401b03811115612a6757612a67612557565b612a7b81612a7584546129ce565b84612a08565b602080601f831160018114612ab05760008415612a985750858301515b600019600386901b1c1916600185901b178555611d6f565b600085815260208120601f198616915b82811015612adf57888601518255948401946001909101908401612ac0565b5085821015612afd5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060208284031215612b1f57600080fd5b81516001600160401b03811681146123c457600080fd5b80516123eb816123cb565b600060208284031215612b5357600080fd5b81516123c4816123cb565b80516123eb81612524565b600060208284031215612b7b57600080fd5b81516123c481612524565b634e487b7160e01b600052603260045260246000fd5b60008085851115612bac57600080fd5b83861115612bb957600080fd5b5050820193919092039150565b6001600160e01b03198135818116916004851015612bee5780818660040360031b1b83161692505b505092915050565b6001600160a01b03841681526040602082018190528101829052818360608301376000818301606090810191909152601f909201601f1916010192915050565b600082601f830112612c4757600080fd5b8151612c5561260b826125c5565b818152846020838601011115612c6a57600080fd5b6124fc826020830160208701612429565b600060208284031215612c8d57600080fd5b81516001600160401b0380821115612ca457600080fd5b9083019060e08286031215612cb857600080fd5b612cc061256d565b612cc983612981565b8152612cd760208401612981565b6020820152612ce860408401612b5e565b6040820152612cf960608401612959565b6060820152612d0a60808401612b36565b6080820152612d1b60a08401612b36565b60a082015260c083015182811115612d3257600080fd5b61282087828601612c36565b60008060408385031215612d5157600080fd5b8251612d5c816123cb565b602084015190925061241e816123cb565b60008251612d7f818460208701612429565b9190910192915050565b60008060408385031215612d9c57600080fd5b8251612da78161253e565b602084015190925063ffffffff8116811461241e57600080fdfe07ebcf49758b6ed3af50fa146bec0abe157c0218fe65dc0874c286e9d5da4f00f3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00f0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00a2646970667358221220a823f75709ee5dfe5f450b756a98ca3e7cc61f991d4d0da2d68a4e03eb7b750264736f6c63430008140033",
1085
+ "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101e55760003560e01c8063644c45e01161010f5780638fbc2d81116100a2578063c13de99711610071578063c13de99714610452578063c2bf08c814610467578063ed841d0c1461047a578063f7c34ee01461048257600080fd5b80638fbc2d8114610413578063ada9652e14610426578063b68d18091461043b578063bf7e214f1461044a57600080fd5b80638105cc7f116100de5780638105cc7f146103d0578063893d20e8146103e35780638e32e979146103eb5780638fb36037146103fe57600080fd5b8063644c45e014610379578063675393bf146103975780637286e5e5146103aa5780637a9e5e4b146103bd57600080fd5b806327bb7a331161018757806357a8fba71161015657806357a8fba7146103035780635ab1bd531461032e5780635c992fed146103535780635d9662891461036657600080fd5b806327bb7a33146102c2578063329d6e74146102d557806336fc697e146102e857806349bb9e4b146102f057600080fd5b80630fec111c116101c35780630fec111c14610268578063138461e0146102705780631eff4b221461027a578063214cdb80146102af57600080fd5b806301ffc9a7146101ea578063026bc43b1461022c5780630d8e6e2c1461024c575b600080fd5b6102176101f836600461239a565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b61023f61023a3660046123f0565b610495565b6040516102239190612479565b610254610633565b60405162ffffff9091168152602001610223565b61023f6106bd565b6102786107de565b005b6102a17f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b604051908152602001610223565b6102786102bd36600461239a565b6109e5565b6102786102d0366004612642565b610a12565b6102786102e33660046126da565b610ab7565b610278610c04565b6102786102fe36600461270e565b610c4a565b61031661031136600461275d565b610d49565b6040516001600160601b039091168152602001610223565b6001546001600160a01b03165b6040516001600160a01b039091168152602001610223565b61031661036136600461275d565b610dd8565b61023f6103743660046123f0565b610dee565b600080516020612dc2833981519152546001600160601b0316610316565b6102786103a536600461282f565b610f2e565b61023f6103b83660046123f0565b611041565b6102786103cb36600461282f565b6110ee565b6103166103de36600461275d565b611171565b61033b611187565b6102786103f936600461284c565b6112be565b6104066114f7565b6040516102239190612897565b61023f6104213660046123f0565b61152f565b6102a1600080516020612dc283398151915281565b60405160288152602001610223565b61033b6115dc565b61045a6115f8565b60405161022391906128ac565b61031661047536600461275d565b611be4565b6102a1600081565b6102786104903660046123f0565b611bfa565b61049d61235c565b6104aa335b600036611c71565b6040516301ffc9a760e01b81526001600160a01b038416906301ffc9a7906104dd90633e1e17f360e11b90600401612897565b602060405180830381865afa1580156104fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061051e9190612964565b61053b57604051636795c76360e01b815260040160405180910390fd5b6105488360465b84611d77565b905061055c6001546001600160a01b031690565b6001600160a01b031663a5df9e4e826040518263ffffffff1660e01b81526004016105879190612479565b6020604051808303816000875af11580156105a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105ca919061298c565b6001600160601b0316815260408051629c230f60e51b815290516001600160a01b0385169163138461e091600480830192600092919082900301818387803b15801561061557600080fd5b505af1158015610629573d6000803e3d6000fd5b5050505092915050565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90632efe011390606401602060405180830381865af4158015610694573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106b891906129a9565b905090565b6106c561235c565b6040805160e081018252600081527f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b038116602084015260ff600160601b8204811694840194909452600160681b90049092161515606082015230608082015260a0810161073a611187565b6001600160a01b03168152602001826001018054610757906129ce565b80601f0160208091040260200160405190810160405280929190818152602001828054610783906129ce565b80156107d05780601f106107a5576101008083540402835291602001916107d0565b820191906000526020600020905b8154815290600101906020018083116107b357829003601f168201915b505050505081525091505090565b6000600080516020612dc283398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af415801561084d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108719190612964565b156108a25780546040516301ab8b6760e21b81526001600160601b0390911660048201526024015b60405180910390fd5b306108b56001546001600160a01b031690565b60405163c3c5a54760e01b81526001600160a01b038381166004830152919091169063c3c5a54790602401602060405180830381865afa1580156108fd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109219190612964565b6109495760405163b9304b0d60e01b81526001600160a01b0382166004820152602401610899565b6001546001600160a01b0316604051636939560f60e11b81526001600160a01b038381166004830152919091169063d272ac1e90602401602060405180830381865afa15801561099d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c1919061298c565b82546bffffffffffffffffffffffff19166001600160601b03919091161790915550565b6109ed611f67565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b610a1a611f67565b610a248287611bfa565b7f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0387166cffffffffffffffffffffffffff1990911617600160601b60ff8716021760ff60681b1916600160681b851515021781557f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa301610aad8382612a4e565b5050505050505050565b73__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__63a123b37c610ad9610633565b6040516001600160e01b031960e084901b16815262ffffff9091166004820152602401602060405180830381865af4158015610b19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b3d9190612b0d565b600080516020612e028339815191528054600160401b900460ff1680610b70575080546001600160401b03808416911610155b15610b8e5760405163f92ee8a960e01b815260040160405180910390fd5b805468ffffffffffffffffff19166001600160401b03831617600160401b178155610bb883611fa0565b805460ff60401b191681556040516001600160401b03831681527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050565b610c0c611f67565b6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b600080516020612e028339815191528054600160401b810460ff1615906001600160401b0316600081158015610c7d5750825b90506000826001600160401b03166001148015610c995750303b155b905081158015610ca7575080155b15610cc55760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610cef57845460ff60401b1916600160401b1785555b610cf98787611fa8565b8315610d4057845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2906020015b60405180910390a15b50505050505050565b6000610d54336104a2565b610d5f82607a6120c7565b6001546040516352efcf2760e11b81526001600160a01b039091169063a5df9e4e90610d8f908590600401612479565b6020604051808303816000875af1158015610dae573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dd2919061298c565b92915050565b6000610de3336104a2565b610d5f8260d36120c7565b610df661235c565b610dff336104a2565b6040516301ffc9a760e01b81526001600160a01b038416906301ffc9a790610e3290631e63cf4560e01b90600401612897565b602060405180830381865afa158015610e4f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e739190612964565b610e9057604051637a71998760e01b815260040160405180910390fd5b610e9b83606e610542565b9050610eaf6001546001600160a01b031690565b6001600160a01b031663a5df9e4e826040518263ffffffff1660e01b8152600401610eda9190612479565b6020604051808303816000875af1158015610ef9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f1d919061298c565b6001600160601b0316815292915050565b610f36611f67565b806001600160a01b03163b600003610f6c5760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610899565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b81526301ffc9a790610fb290630a3888e560e31b90600401612897565b602060405180830381865afa925050508015610feb575060408051601f3d908101601f19168201909252610fe891810190612964565b60015b6110135760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610899565b8061103c5760405163fdeac91f60e01b81526001600160a01b0383166004820152602401610899565b505b50565b61104961235c565b611052336104a2565b6040516301ffc9a760e01b81526001600160a01b038416906301ffc9a7906110859063f20236f360e01b90600401612897565b602060405180830381865afa1580156110a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110c69190612964565b6110e357604051636f61f64160e01b815260040160405180910390fd5b610e9b83608c610542565b336110f76115dc565b6001600160a01b0316816001600160a01b0316146111325760405162d1953b60e31b81526001600160a01b0382166004820152602401610899565b816001600160a01b03163b600003611168576040516361798f2f60e11b81526001600160a01b0383166004820152602401610899565b61103c826121cd565b600061117c336104a2565b610d5f8260506120c7565b600080600080516020612dc283398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af41580156111f7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061121b9190612964565b156112a8576001546001600160a01b03168154604051631c5da14d60e11b81526001600160601b0390911660048201526001600160a01b0391909116906338bb429a90602401602060405180830381865afa15801561127e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112a29190612b41565b91505090565b54600160601b90046001600160a01b0316919050565b6112c6611f67565b61134683846001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa158015611308573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061132c919061298c565b603c60008560405180602001604052806000815250610a12565b6001600160a01b038216156113635761135e8261222e565b6114d2565b60006113776001546001600160a01b031690565b6001600160a01b031663d39e60436028604051632392b61b60e21b81526003600482015273__$9dab98ad7ae1a426029e5739f922230a41$__90638e4ad86c90602401602060405180830381865af41580156113d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113fb9190612b69565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa158015611440573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114649190612b41565b90506114d0816001600160a01b031663bf7e214f6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156114a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114cb9190612b41565b61222e565b505b6114e2634a531f3360e01b6109e5565b6114f263b68d180960e01b6109e5565b505050565b600080516020612de2833981519152805460009190600160a01b900460ff166115215760006112a2565b638fb3603760e01b91505090565b61153761235c565b611540336104a2565b6040516301ffc9a760e01b81526001600160a01b038416906301ffc9a79061157390637895d0ed60e01b90600401612897565b602060405180830381865afa158015611590573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115b49190612964565b6115d1576040516308707e3160e41b815260040160405180910390fd5b610e9b836078610542565b600080516020612de2833981519152546001600160a01b031690565b6040805160088082526101208201909252606091816020015b60408051808201909152600081526060602082015281526020019060019003908161161157905050905061164360d390565b8160008151811061165657611656612b86565b60209081029190910181015160ff9290921690915260408051600080825292810190915290508160008151811061168f5761168f612b86565b6020026020010151602001819052506116a660d290565b816001815181106116b9576116b9612b86565b602090810291909101015160ff9190911690526040805160018082528183019092529081602001602082028036833701905050816001815181106116ff576116ff612b86565b602002602001015160200181905250635c992fed60e01b8160018151811061172957611729612b86565b60200260200101516020015160008151811061174757611747612b86565b6001600160e01b03199092166020928302919091019091015261176860d490565b8160028151811061177b5761177b612b86565b60209081029190910181015160ff92909216909152604080516000815291820190528151829060029081106117b2576117b2612b86565b6020026020010151602001819052506117c9606e90565b816003815181106117dc576117dc612b86565b602090810291909101015160ff91909116905260408051600180825281830190925290816020016020820280368337019050508160038151811061182257611822612b86565b602002602001015160200181905250635d96628960e01b8160038151811061184c5761184c612b86565b60200260200101516020015160008151811061186a5761186a612b86565b6001600160e01b03199092166020928302919091019091015261188b608c90565b8160048151811061189e5761189e612b86565b602090810291909101015160ff9190911690526040805160018082528183019092529081602001602082028036833701905050816004815181106118e4576118e4612b86565b602002602001015160200181905250637286e5e560e01b8160048151811061190e5761190e612b86565b60200260200101516020015160008151811061192c5761192c612b86565b6001600160e01b03199092166020928302919091019091015261194d60dc90565b8160058151811061196057611960612b86565b602090810291909101015160ff9190911690526040805160018082528183019092529081602001602082028036833701905050816005815181106119a6576119a6612b86565b60200260200101516020018190525063c2bf08c860e01b816005815181106119d0576119d0612b86565b6020026020010151602001516000815181106119ee576119ee612b86565b6001600160e01b031990921660209283029190910190910152611a0f607890565b81600681518110611a2257611a22612b86565b602090810291909101015160ff91909116905260408051600280825260608201909252908160200160208202803683370190505081600681518110611a6957611a69612b86565b602002602001015160200181905250638fbc2d8160e01b81600681518110611a9357611a93612b86565b602002602001015160200151600081518110611ab157611ab1612b86565b6001600160e01b03199092166020928302919091019091015280516357a8fba760e01b9082906006908110611ae857611ae8612b86565b602002602001015160200151600181518110611b0657611b06612b86565b6001600160e01b031990921660209283029190910190910152611b27604690565b81600781518110611b3a57611b3a612b86565b602090810291909101015160ff919091169052604080516001808252818301909252908160200160208202803683370190505081600781518110611b8057611b80612b86565b60200260200101516020018190525063026bc43b60e01b81600781518110611baa57611baa612b86565b602002602001015160200151600081518110611bc857611bc8612b86565b6001600160e01b03199092166020928302919091019091015290565b6000611bef336104a2565b610d5f8260dc6120c7565b611c02611f67565b611c0b81610f2e565b611c13610c04565b6001600160a01b038216611c3a5760405163f17ef42d60e01b815260040160405180910390fd5b50600080516020612dc283398151915280546001600160601b0316600160601b6001600160a01b0390931692909202919091179055565b600080516020612de2833981519152600080611cac611c8e6115dc565b8730611c9e600460008a8c612b9c565b611ca791612bc6565b61223f565b9150915081611d6f5763ffffffff811615611d4c57825460ff60a01b1916600160a01b178355611cda6115dc565b6001600160a01b03166394c7d7ee8787876040518463ffffffff1660e01b8152600401611d0993929190612bf6565b600060405180830381600087803b158015611d2357600080fd5b505af1158015611d37573d6000803e3d6000fd5b5050845460ff60a01b1916855550611d6f9050565b60405162d1953b60e31b81526001600160a01b0387166004820152602401610899565b505050505050565b611d7f61235c565b836001600160a01b0316630fec111c6040518163ffffffff1660e01b8152600401600060405180830381865afa158015611dbd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611de59190810190612c7b565b6001600160a01b0385166080820152604081015190915060ff848116911614611e34576040808201519051632208245760e11b815260ff80861660048301529091166024820152604401610899565b60a08101516001600160a01b0380821690841614611e705760405163dfc430cb60e01b81526001600160a01b0384166004820152602401610899565b846001600160a01b0316816001600160a01b031603611ea2576040516317faf4db60e11b815260040160405180910390fd5b6001600160a01b038116611ec957604051630fd187d360e01b815260040160405180910390fd5b6001546001600160a01b031660405163c3c5a54760e01b81526001600160a01b038381166004830152919091169063c3c5a54790602401602060405180830381865afa158015611f1d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f419190612964565b15611f5f57604051637142ceb360e11b815260040160405180910390fd5b509392505050565b600080516020612e0283398151915254600160401b900460ff16611f9e57604051631afcd79f60e31b815260040160405180910390fd5b565b6101e5611f67565b600080516020612e028339815191528054600160401b810460ff1615906001600160401b0316600081158015611fdb5750825b90506000826001600160401b03166001148015611ff75750303b155b905081158015612005575080155b156120235760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561204d57845460ff60401b1916600160401b1785555b600080878060200190518101906120649190612d3e565b9150915061207382828b6112be565b61208363aa745bc360e01b6109e5565b50508315610d4057845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d290602001610d37565b60006080830152604082015160ff82811691161461210b576040808301519051632208245760e11b815260ff80841660048301529091166024820152604401610899565b60a08201516001600160a01b03811661213757604051630fd187d360e01b815260040160405180910390fd5b6001546001600160a01b031660405163c3c5a54760e01b81526001600160a01b038381166004830152919091169063c3c5a54790602401602060405180830381865afa15801561218b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121af9190612964565b156114f257604051637142ceb360e11b815260040160405180910390fd5b600080516020612de283398151915280546001600160a01b0383166001600160a01b03199091168117825560408051918252517f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad9181900360200190a15050565b612236611f67565b61103e8161234b565b6040516001600160a01b03848116602483015283811660448301526001600160e01b03198316606483015260009182918291829189169060840160408051601f198184030181529181526020820180516001600160e01b031663b700961360e01b179052516122ae9190612d6d565b600060405180830381855afa9150503d80600081146122e9576040519150601f19603f3d011682016040523d82523d6000602084013e6122ee565b606091505b5091509150811561234057604081511061232057808060200190518101906123169190612d89565b9094509250612340565b6020815110612340578080602001905181019061233d9190612964565b93505b505094509492505050565b612353611f67565b61103e816121cd565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c081019190915290565b6000602082840312156123ac57600080fd5b81356001600160e01b0319811681146123c457600080fd5b9392505050565b6001600160a01b038116811461103e57600080fd5b80356123eb816123cb565b919050565b6000806040838503121561240357600080fd5b823561240e816123cb565b9150602083013561241e816123cb565b809150509250929050565b60005b8381101561244457818101518382015260200161242c565b50506000910152565b60008151808452612465816020860160208601612429565b601f01601f19169290920160200192915050565b6020815260006001600160601b038084511660208401528060208501511660408401525060ff604084015116606083015260608301511515608083015260018060a01b0360808401511660a083015260a08301516124e260c08401826001600160a01b03169052565b5060c083015160e0808401526124fc61010084018261244d565b949350505050565b6001600160601b038116811461103e57600080fd5b80356123eb81612504565b60ff8116811461103e57600080fd5b80356123eb81612524565b801515811461103e57600080fd5b80356123eb8161253e565b634e487b7160e01b600052604160045260246000fd5b60405160e081016001600160401b038111828210171561258f5761258f612557565b60405290565b604051601f8201601f191681016001600160401b03811182821017156125bd576125bd612557565b604052919050565b60006001600160401b038211156125de576125de612557565b50601f01601f191660200190565b600082601f8301126125fd57600080fd5b813561261061260b826125c5565b612595565b81815284602083860101111561262557600080fd5b816020850160208301376000918101602001919091529392505050565b60008060008060008060c0878903121561265b57600080fd5b8635612666816123cb565b9550602087013561267681612504565b9450604087013561268681612524565b935060608701356126968161253e565b925060808701356126a6816123cb565b915060a08701356001600160401b038111156126c157600080fd5b6126cd89828a016125ec565b9150509295509295509295565b6000602082840312156126ec57600080fd5b81356001600160401b0381111561270257600080fd5b6124fc848285016125ec565b6000806040838503121561272157600080fd5b823561272c816123cb565b915060208301356001600160401b0381111561274757600080fd5b612753858286016125ec565b9150509250929050565b60006020828403121561276f57600080fd5b81356001600160401b038082111561278657600080fd5b9083019060e0828603121561279a57600080fd5b6127a261256d565b6127ab83612519565b81526127b960208401612519565b60208201526127ca60408401612533565b60408201526127db6060840161254c565b60608201526127ec608084016123e0565b60808201526127fd60a084016123e0565b60a082015260c08301358281111561281457600080fd5b612820878286016125ec565b60c08301525095945050505050565b60006020828403121561284157600080fd5b81356123c4816123cb565b60008060006060848603121561286157600080fd5b833561286c816123cb565b9250602084013561287c816123cb565b9150604084013561288c816123cb565b809150509250925092565b6001600160e01b031991909116815260200190565b60006020808301818452808551808352604092508286019150828160051b8701018488016000805b8481101561294a57898403603f190186528251805160ff168552880151888501889052805188860181905290890190839060608701905b808310156129355783516001600160e01b0319168252928b019260019290920191908b019061290b565b50978a019795505050918701916001016128d4565b50919998505050505050505050565b80516123eb8161253e565b60006020828403121561297657600080fd5b81516123c48161253e565b80516123eb81612504565b60006020828403121561299e57600080fd5b81516123c481612504565b6000602082840312156129bb57600080fd5b815162ffffff811681146123c457600080fd5b600181811c908216806129e257607f821691505b602082108103612a0257634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156114f257600081815260208120601f850160051c81016020861015612a2f5750805b601f850160051c820191505b81811015611d6f57828155600101612a3b565b81516001600160401b03811115612a6757612a67612557565b612a7b81612a7584546129ce565b84612a08565b602080601f831160018114612ab05760008415612a985750858301515b600019600386901b1c1916600185901b178555611d6f565b600085815260208120601f198616915b82811015612adf57888601518255948401946001909101908401612ac0565b5085821015612afd5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060208284031215612b1f57600080fd5b81516001600160401b03811681146123c457600080fd5b80516123eb816123cb565b600060208284031215612b5357600080fd5b81516123c4816123cb565b80516123eb81612524565b600060208284031215612b7b57600080fd5b81516123c481612524565b634e487b7160e01b600052603260045260246000fd5b60008085851115612bac57600080fd5b83861115612bb957600080fd5b5050820193919092039150565b6001600160e01b03198135818116916004851015612bee5780818660040360031b1b83161692505b505092915050565b6001600160a01b03841681526040602082018190528101829052818360608301376000818301606090810191909152601f909201601f1916010192915050565b600082601f830112612c4757600080fd5b8151612c5561260b826125c5565b818152846020838601011115612c6a57600080fd5b6124fc826020830160208701612429565b600060208284031215612c8d57600080fd5b81516001600160401b0380821115612ca457600080fd5b9083019060e08286031215612cb857600080fd5b612cc061256d565b612cc983612981565b8152612cd760208401612981565b6020820152612ce860408401612b5e565b6040820152612cf960608401612959565b6060820152612d0a60808401612b36565b6080820152612d1b60a08401612b36565b60a082015260c083015182811115612d3257600080fd5b61282087828601612c36565b60008060408385031215612d5157600080fd5b8251612d5c816123cb565b602084015190925061241e816123cb565b60008251612d7f818460208701612429565b9190910192915050565b60008060408385031215612d9c57600080fd5b8251612da78161253e565b602084015190925063ffffffff8116811461241e57600080fdfe07ebcf49758b6ed3af50fa146bec0abe157c0218fe65dc0874c286e9d5da4f00f3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00f0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00a2646970667358221220a823f75709ee5dfe5f450b756a98ca3e7cc61f991d4d0da2d68a4e03eb7b750264736f6c63430008140033",
897
1086
  "linkReferences": {
898
- "contracts/shared/ContractDeployerLib.sol": {
899
- "ContractDeployerLib": [
900
- {
901
- "length": 20,
902
- "start": 7950
903
- },
904
- {
905
- "length": 20,
906
- "start": 8082
907
- }
908
- ]
909
- },
910
- "contracts/types/Blocknumber.sol": {
911
- "BlocknumberLib": [
912
- {
913
- "length": 20,
914
- "start": 3419
915
- }
916
- ]
917
- },
918
1087
  "contracts/types/NftId.sol": {
919
1088
  "NftIdLib": [
920
1089
  {
921
1090
  "length": 20,
922
- "start": 2835
1091
+ "start": 2297
923
1092
  },
924
1093
  {
925
1094
  "length": 20,
926
- "start": 3993
927
- }
928
- ]
929
- },
930
- "contracts/types/Timestamp.sol": {
931
- "TimestampLib": [
932
- {
933
- "length": 20,
934
- "start": 7342
1095
+ "start": 4771
935
1096
  }
936
1097
  ]
937
1098
  },
@@ -939,57 +1100,31 @@
939
1100
  "VersionLib": [
940
1101
  {
941
1102
  "length": 20,
942
- "start": 2375
1103
+ "start": 1856
943
1104
  },
944
1105
  {
945
1106
  "length": 20,
946
- "start": 4233
947
- },
1107
+ "start": 2975
1108
+ }
1109
+ ],
1110
+ "VersionPartLib": [
948
1111
  {
949
1112
  "length": 20,
950
- "start": 5021
1113
+ "start": 5251
951
1114
  }
952
1115
  ]
953
1116
  }
954
1117
  },
955
1118
  "deployedLinkReferences": {
956
- "contracts/shared/ContractDeployerLib.sol": {
957
- "ContractDeployerLib": [
958
- {
959
- "length": 20,
960
- "start": 7642
961
- },
962
- {
963
- "length": 20,
964
- "start": 7774
965
- }
966
- ]
967
- },
968
- "contracts/types/Blocknumber.sol": {
969
- "BlocknumberLib": [
970
- {
971
- "length": 20,
972
- "start": 3111
973
- }
974
- ]
975
- },
976
1119
  "contracts/types/NftId.sol": {
977
1120
  "NftIdLib": [
978
1121
  {
979
1122
  "length": 20,
980
- "start": 2527
1123
+ "start": 2067
981
1124
  },
982
1125
  {
983
1126
  "length": 20,
984
- "start": 3685
985
- }
986
- ]
987
- },
988
- "contracts/types/Timestamp.sol": {
989
- "TimestampLib": [
990
- {
991
- "length": 20,
992
- "start": 7034
1127
+ "start": 4541
993
1128
  }
994
1129
  ]
995
1130
  },
@@ -997,15 +1132,17 @@
997
1132
  "VersionLib": [
998
1133
  {
999
1134
  "length": 20,
1000
- "start": 2067
1135
+ "start": 1626
1001
1136
  },
1002
1137
  {
1003
1138
  "length": 20,
1004
- "start": 3925
1005
- },
1139
+ "start": 2745
1140
+ }
1141
+ ],
1142
+ "VersionPartLib": [
1006
1143
  {
1007
1144
  "length": 20,
1008
- "start": 4713
1145
+ "start": 5021
1009
1146
  }
1010
1147
  ]
1011
1148
  }