@etherisc/gif-next 0.0.2-f7b8c9f-518 → 0.0.2-f7c17b4-297

Sign up to get free protection for your applications and to get access to all the features.
Files changed (456) hide show
  1. package/README.md +243 -2
  2. package/artifacts/contracts/components/Component.sol/Component.dbg.json +4 -0
  3. package/artifacts/contracts/components/Component.sol/Component.json +774 -0
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +928 -175
  6. package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
  7. package/artifacts/contracts/{instance/base/ServiceBase.sol/ServiceBase.json → components/IComponent.sol/IComponent.json} +153 -174
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +701 -1
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +797 -76
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +567 -34
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +995 -260
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +710 -157
  18. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
  19. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +764 -0
  20. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
  21. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.json +185 -0
  22. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  23. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1451 -1206
  24. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
  25. package/artifacts/contracts/instance/{base/ComponentServiceBase.sol/ComponentServiceBase.json → IInstanceService.sol/IInstanceService.json} +199 -182
  26. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  27. package/artifacts/contracts/instance/Instance.sol/Instance.json +2088 -1373
  28. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
  29. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +984 -0
  30. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +4 -0
  31. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1391 -0
  32. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
  33. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +1035 -0
  34. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
  35. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +693 -0
  36. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
  37. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +261 -0
  38. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
  39. package/artifacts/contracts/instance/base/{InstanceBase.sol/InstanceBase.json → ComponentService.sol/ComponentService.json} +192 -195
  40. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  41. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +27 -158
  42. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  43. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  44. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +37 -245
  45. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  46. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +2 -2
  47. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +4 -0
  48. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +254 -0
  49. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +4 -0
  50. package/artifacts/contracts/instance/module/{bundle/IBundle.sol → IBundle.sol}/IBundle.json +1 -1
  51. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +4 -0
  52. package/artifacts/contracts/instance/module/{distribution/IDistribution.sol → IDistribution.sol}/IDistribution.json +1 -1
  53. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
  54. package/artifacts/contracts/instance/module/{policy/IPolicy.sol → IPolicy.sol}/IPolicy.json +1 -1
  55. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
  56. package/artifacts/contracts/instance/module/{risk/IRisk.sol → IRisk.sol}/IRisk.json +1 -1
  57. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +4 -0
  58. package/artifacts/contracts/instance/{base/ModuleBase.sol/ModuleBase.json → module/ISetup.sol/ISetup.json} +2 -2
  59. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +4 -0
  60. package/artifacts/contracts/instance/module/{treasury/ITreasury.sol → ITreasury.sol}/ITreasury.json +1 -1
  61. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.dbg.json +4 -0
  62. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +858 -0
  63. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
  64. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +657 -0
  65. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
  66. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1085 -0
  67. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  68. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +661 -0
  69. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +4 -0
  70. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +743 -0
  71. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
  72. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +637 -0
  73. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
  74. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +473 -168
  75. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  76. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +677 -0
  77. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
  78. package/artifacts/contracts/instance/service/{IComponentOwnerService.sol/IComponentOwnerService.json → IApplicationService.sol/IApplicationService.json} +200 -204
  79. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
  80. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +622 -0
  81. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +4 -0
  82. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.json +398 -0
  83. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  84. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +197 -163
  85. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  86. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +572 -0
  87. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  88. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +30 -255
  89. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  90. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +41 -419
  91. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
  92. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1109 -0
  93. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  94. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +717 -0
  95. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
  96. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +227 -264
  97. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  98. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +649 -0
  99. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
  100. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +233 -535
  101. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  102. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +649 -0
  103. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  104. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +47 -2
  105. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  106. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +236 -63
  107. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  108. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +312 -178
  109. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  110. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  111. package/artifacts/contracts/registry/Registry.sol/Registry.json +210 -212
  112. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
  113. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +285 -0
  114. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  115. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +424 -255
  116. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  117. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +324 -122
  118. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
  119. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +547 -0
  120. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
  121. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +498 -0
  122. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +1 -1
  123. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  124. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +41 -3
  125. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  126. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +40 -29
  127. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
  128. package/artifacts/contracts/{instance/module/component/IComponent.sol/IComponentModule.json → shared/IPolicyHolder.sol/IPolicyHolder.json} +69 -57
  129. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  130. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +21 -34
  131. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
  132. package/artifacts/contracts/{experiment/inheritance/IB.sol/IB.json → shared/IRegistryLinked.sol/IRegistryLinked.json} +18 -20
  133. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
  134. package/artifacts/contracts/{components/IBaseComponent.sol/IBaseComponent.json → shared/IService.sol/IService.json} +51 -47
  135. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  136. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +2 -152
  137. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  138. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +120 -27
  139. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +4 -0
  140. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +248 -0
  141. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  142. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +294 -61
  143. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  144. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +129 -51
  145. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +4 -0
  146. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +84 -0
  147. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
  148. package/artifacts/contracts/{instance/base/IService.sol/IService.json → shared/Service.sol/Service.json} +147 -154
  149. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +4 -0
  150. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +96 -0
  151. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  152. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +2 -2
  153. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  154. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +2 -152
  155. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  156. package/artifacts/contracts/test/TestFee.sol/TestFee.json +4 -4
  157. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  158. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +129 -51
  159. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  160. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +14 -14
  161. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  162. package/artifacts/contracts/test/TestService.sol/TestService.json +141 -215
  163. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  164. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +91 -53
  165. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  166. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
  167. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  168. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +8 -174
  169. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  170. package/artifacts/contracts/test/Usdc.sol/USDC.json +91 -53
  171. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  172. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  173. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  174. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.dbg.json +4 -0
  175. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.json +100 -0
  176. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
  177. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +104 -0
  178. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  179. package/artifacts/contracts/types/Fee.sol/FeeLib.json +4 -4
  180. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  181. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +31 -17
  182. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  183. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +2 -2
  184. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  185. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +26 -3
  186. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +4 -0
  187. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +100 -0
  188. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  189. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  190. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.dbg.json +4 -0
  191. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.json +100 -0
  192. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +4 -0
  193. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +123 -0
  194. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
  195. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +2 -2
  196. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  197. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +134 -8
  198. package/artifacts/contracts/types/Seconds.sol/SecondsLib.dbg.json +4 -0
  199. package/artifacts/contracts/types/Seconds.sol/SecondsLib.json +124 -0
  200. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  201. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  202. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  203. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +38 -7
  204. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +4 -0
  205. package/artifacts/contracts/{experiment/types/TypeB.sol/TypeBLib.json → types/UFixed.sol/MathLib.json} +4 -4
  206. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +4 -0
  207. package/artifacts/contracts/types/UFixed.sol/{UFixedMathLib.json → UFixedLib.json} +3 -3
  208. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  209. package/artifacts/contracts/types/Version.sol/VersionLib.json +2 -2
  210. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  211. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +22 -3
  212. package/contracts/components/Component.sol +221 -0
  213. package/contracts/components/Distribution.sol +214 -61
  214. package/contracts/components/IComponent.sol +68 -0
  215. package/contracts/components/IDistributionComponent.sol +59 -5
  216. package/contracts/components/IPoolComponent.sol +126 -39
  217. package/contracts/components/IProductComponent.sol +12 -9
  218. package/contracts/components/Pool.sol +290 -158
  219. package/contracts/components/Product.sol +134 -140
  220. package/contracts/instance/BundleManager.sol +125 -0
  221. package/contracts/instance/Cloneable.sol +46 -0
  222. package/contracts/instance/IInstance.sol +84 -46
  223. package/contracts/instance/IInstanceService.sol +59 -0
  224. package/contracts/instance/Instance.sol +273 -69
  225. package/contracts/instance/InstanceAccessManager.sol +297 -0
  226. package/contracts/instance/InstanceReader.sol +293 -0
  227. package/contracts/instance/InstanceService.sol +490 -0
  228. package/contracts/instance/InstanceServiceManager.sol +54 -0
  229. package/contracts/instance/ObjectManager.sol +84 -0
  230. package/contracts/instance/base/ComponentService.sol +134 -0
  231. package/contracts/instance/base/IKeyValueStore.sol +13 -14
  232. package/contracts/instance/base/ILifecycle.sol +3 -3
  233. package/contracts/instance/base/KeyValueStore.sol +49 -38
  234. package/contracts/instance/base/Lifecycle.sol +1 -1
  235. package/contracts/instance/module/IAccess.sol +47 -0
  236. package/contracts/instance/module/IBundle.sol +21 -0
  237. package/contracts/instance/module/IDistribution.sol +39 -0
  238. package/contracts/instance/module/IPolicy.sol +48 -0
  239. package/contracts/instance/module/IRisk.sol +11 -0
  240. package/contracts/instance/module/ISetup.sol +48 -0
  241. package/contracts/instance/module/ITreasury.sol +23 -0
  242. package/contracts/instance/service/ApplicationService.sol +269 -0
  243. package/contracts/instance/service/ApplicationServiceManager.sol +35 -0
  244. package/contracts/instance/service/BundleService.sol +299 -0
  245. package/contracts/instance/service/BundleServiceManager.sol +51 -0
  246. package/contracts/instance/service/ClaimService.sol +151 -0
  247. package/contracts/instance/service/ClaimServiceManager.sol +35 -0
  248. package/contracts/instance/service/DistributionService.sol +244 -21
  249. package/contracts/instance/service/DistributionServiceManager.sol +51 -0
  250. package/contracts/instance/service/IApplicationService.sol +83 -0
  251. package/contracts/instance/service/IBundleService.sol +55 -0
  252. package/contracts/instance/service/IClaimService.sol +61 -0
  253. package/contracts/instance/service/IDistributionService.sol +54 -1
  254. package/contracts/instance/service/IPolicyService.sol +90 -0
  255. package/contracts/instance/service/IPoolService.sol +7 -24
  256. package/contracts/instance/service/IProductService.sol +9 -76
  257. package/contracts/instance/service/PolicyService.sol +476 -0
  258. package/contracts/instance/service/PolicyServiceManager.sol +54 -0
  259. package/contracts/instance/service/PoolService.sol +77 -117
  260. package/contracts/instance/service/PoolServiceManager.sol +51 -0
  261. package/contracts/instance/service/ProductService.sol +156 -433
  262. package/contracts/instance/service/ProductServiceManager.sol +54 -0
  263. package/contracts/registry/ChainNft.sol +41 -26
  264. package/contracts/registry/IRegistry.sol +51 -25
  265. package/contracts/registry/IRegistryService.sol +54 -16
  266. package/contracts/registry/Registry.sol +279 -306
  267. package/contracts/registry/RegistryAccessManager.sol +216 -0
  268. package/contracts/registry/RegistryService.sol +162 -247
  269. package/contracts/registry/RegistryServiceManager.sol +30 -11
  270. package/contracts/registry/ReleaseManager.sol +322 -0
  271. package/contracts/registry/TokenRegistry.sol +116 -0
  272. package/contracts/shared/ERC165.sol +15 -9
  273. package/contracts/shared/INftOwnable.sol +11 -10
  274. package/contracts/shared/IPolicyHolder.sol +26 -0
  275. package/contracts/shared/IRegisterable.sol +4 -6
  276. package/contracts/shared/IRegistryLinked.sol +12 -0
  277. package/contracts/shared/IService.sol +16 -0
  278. package/contracts/shared/IVersionable.sol +4 -47
  279. package/contracts/shared/NftOwnable.sol +67 -83
  280. package/contracts/shared/PolicyHolder.sol +81 -0
  281. package/contracts/shared/ProxyManager.sol +101 -26
  282. package/contracts/shared/Registerable.sol +17 -32
  283. package/contracts/shared/RegistryLinked.sol +48 -0
  284. package/contracts/shared/Service.sol +58 -0
  285. package/contracts/shared/TokenHandler.sol +27 -0
  286. package/contracts/shared/UpgradableProxyWithAdmin.sol +2 -2
  287. package/contracts/shared/Versionable.sol +5 -93
  288. package/contracts/test/TestFee.sol +2 -2
  289. package/contracts/test/TestRegisterable.sol +1 -1
  290. package/contracts/test/TestRoleId.sol +1 -1
  291. package/contracts/test/TestService.sol +6 -7
  292. package/contracts/types/ClaimId.sol +52 -0
  293. package/contracts/types/DistributorType.sol +55 -0
  294. package/contracts/types/Fee.sol +3 -3
  295. package/contracts/types/Key32.sol +8 -3
  296. package/contracts/types/NftIdSet.sol +26 -24
  297. package/contracts/types/NumberId.sol +52 -0
  298. package/contracts/types/ObjectType.sol +39 -14
  299. package/contracts/types/PayoutId.sol +54 -0
  300. package/contracts/types/Referral.sol +85 -0
  301. package/contracts/types/RoleId.sol +66 -9
  302. package/contracts/types/Seconds.sol +54 -0
  303. package/contracts/types/StateId.sol +5 -1
  304. package/contracts/types/Timestamp.sol +16 -13
  305. package/contracts/types/UFixed.sol +128 -12
  306. package/contracts/types/Version.sol +4 -1
  307. package/package.json +6 -5
  308. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
  309. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +0 -301
  310. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
  311. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +0 -4
  312. package/artifacts/contracts/experiment/errors/Require.sol/Require.json +0 -105
  313. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +0 -4
  314. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +0 -105
  315. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +0 -4
  316. package/artifacts/contracts/experiment/inheritance/A.sol/A.json +0 -128
  317. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +0 -4
  318. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +0 -42
  319. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +0 -4
  320. package/artifacts/contracts/experiment/inheritance/B.sol/B.json +0 -76
  321. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +0 -4
  322. package/artifacts/contracts/experiment/inheritance/C.sol/C.json +0 -89
  323. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +0 -4
  324. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.json +0 -128
  325. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +0 -4
  326. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.json +0 -37
  327. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +0 -4
  328. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +0 -4
  329. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.json +0 -63
  330. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +0 -4
  331. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +0 -59
  332. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +0 -4
  333. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +0 -124
  334. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +0 -4
  335. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +0 -74
  336. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +0 -4
  337. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +0 -124
  338. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +0 -4
  339. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +0 -207
  340. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +0 -4
  341. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +0 -10
  342. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +0 -4
  343. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +0 -4
  344. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.json +0 -24
  345. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
  346. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
  347. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +0 -113
  348. package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +0 -4
  349. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +0 -4
  350. package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +0 -4
  351. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +0 -4
  352. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +0 -4
  353. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.json +0 -333
  354. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +0 -4
  355. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.json +0 -10
  356. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +0 -4
  357. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.json +0 -333
  358. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +0 -4
  359. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +0 -297
  360. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +0 -4
  361. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +0 -4
  362. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +0 -297
  363. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
  364. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +0 -117
  365. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +0 -4
  366. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.json +0 -10
  367. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +0 -4
  368. package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.dbg.json +0 -4
  369. package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.json +0 -10
  370. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistribution.dbg.json +0 -4
  371. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.dbg.json +0 -4
  372. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.json +0 -10
  373. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
  374. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
  375. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.json +0 -271
  376. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
  377. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +0 -271
  378. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +0 -4
  379. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.json +0 -10
  380. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
  381. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.json +0 -164
  382. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
  383. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +0 -164
  384. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +0 -4
  385. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +0 -4
  386. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +0 -113
  387. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +0 -4
  388. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +0 -131
  389. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +0 -4
  390. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +0 -4
  391. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +0 -638
  392. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +0 -4
  393. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +0 -76
  394. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +0 -4
  395. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +0 -638
  396. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
  397. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -794
  398. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
  399. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
  400. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.json +0 -457
  401. package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.dbg.json +0 -4
  402. package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.json +0 -557
  403. package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +0 -4
  404. package/artifacts/contracts/test/TestPool.sol/TestPool.json +0 -716
  405. package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +0 -4
  406. package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +0 -744
  407. package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.dbg.json +0 -4
  408. package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.json +0 -99
  409. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
  410. package/contracts/components/BaseComponent.sol +0 -79
  411. package/contracts/components/IBaseComponent.sol +0 -19
  412. package/contracts/experiment/errors/Require.sol +0 -38
  413. package/contracts/experiment/errors/Revert.sol +0 -44
  414. package/contracts/experiment/inheritance/A.sol +0 -53
  415. package/contracts/experiment/inheritance/B.sol +0 -28
  416. package/contracts/experiment/inheritance/C.sol +0 -34
  417. package/contracts/experiment/inheritance/IA.sol +0 -13
  418. package/contracts/experiment/inheritance/IB.sol +0 -10
  419. package/contracts/experiment/inheritance/IC.sol +0 -12
  420. package/contracts/experiment/statemachine/Dummy.sol +0 -27
  421. package/contracts/experiment/statemachine/ISM.sol +0 -25
  422. package/contracts/experiment/statemachine/SM.sol +0 -57
  423. package/contracts/experiment/statemachine/SimpleStateMachine.sol +0 -31
  424. package/contracts/experiment/types/TypeA.sol +0 -47
  425. package/contracts/experiment/types/TypeB.sol +0 -29
  426. package/contracts/instance/IInstanceLinked.sol +0 -8
  427. package/contracts/instance/base/ComponentServiceBase.sol +0 -49
  428. package/contracts/instance/base/IInstanceBase.sol +0 -23
  429. package/contracts/instance/base/IService.sol +0 -15
  430. package/contracts/instance/base/InstanceBase.sol +0 -89
  431. package/contracts/instance/base/ModuleBase.sol +0 -57
  432. package/contracts/instance/base/ServiceBase.sol +0 -44
  433. package/contracts/instance/module/access/Access.sol +0 -149
  434. package/contracts/instance/module/access/IAccess.sol +0 -53
  435. package/contracts/instance/module/bundle/BundleModule.sol +0 -134
  436. package/contracts/instance/module/bundle/IBundle.sol +0 -53
  437. package/contracts/instance/module/component/ComponentModule.sol +0 -71
  438. package/contracts/instance/module/component/IComponent.sol +0 -28
  439. package/contracts/instance/module/distribution/DistributionModule.sol +0 -17
  440. package/contracts/instance/module/distribution/IDistribution.sol +0 -10
  441. package/contracts/instance/module/policy/IPolicy.sol +0 -63
  442. package/contracts/instance/module/policy/PolicyModule.sol +0 -91
  443. package/contracts/instance/module/pool/IPoolModule.sol +0 -41
  444. package/contracts/instance/module/pool/PoolModule.sol +0 -95
  445. package/contracts/instance/module/risk/IRisk.sol +0 -26
  446. package/contracts/instance/module/risk/RiskModule.sol +0 -62
  447. package/contracts/instance/module/treasury/ITreasury.sol +0 -84
  448. package/contracts/instance/module/treasury/TokenHandler.sol +0 -48
  449. package/contracts/instance/module/treasury/TreasuryModule.sol +0 -131
  450. package/contracts/instance/service/ComponentOwnerService.sol +0 -275
  451. package/contracts/instance/service/IComponentOwnerService.sol +0 -20
  452. package/contracts/registry/IChainNft.sol +0 -22
  453. package/contracts/test/TestDistribution.sol +0 -22
  454. package/contracts/test/TestPool.sol +0 -27
  455. package/contracts/test/TestProduct.sol +0 -74
  456. package/contracts/types/ReferralId.sol +0 -48
@@ -7,102 +7,161 @@
7
7
  "inputs": [
8
8
  {
9
9
  "internalType": "address",
10
- "name": "registry",
10
+ "name": "component",
11
11
  "type": "address"
12
12
  },
13
13
  {
14
14
  "internalType": "NftId",
15
- "name": "registryNftId",
15
+ "name": "nftId",
16
+ "type": "uint96"
17
+ }
18
+ ],
19
+ "name": "ErrorComponentServiceAlreadyRegistered",
20
+ "type": "error"
21
+ },
22
+ {
23
+ "inputs": [
24
+ {
25
+ "internalType": "address",
26
+ "name": "component",
27
+ "type": "address"
28
+ }
29
+ ],
30
+ "name": "ErrorComponentServiceComponentLocked",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [
35
+ {
36
+ "internalType": "NftId",
37
+ "name": "instanceNftId",
16
38
  "type": "uint96"
17
39
  },
40
+ {
41
+ "internalType": "RoleId",
42
+ "name": "requiredRole",
43
+ "type": "uint64"
44
+ },
18
45
  {
19
46
  "internalType": "address",
20
- "name": "initialOwner",
47
+ "name": "sender",
21
48
  "type": "address"
22
49
  }
23
50
  ],
24
- "stateMutability": "nonpayable",
25
- "type": "constructor"
51
+ "name": "ErrorComponentServiceExpectedRoleMissing",
52
+ "type": "error"
26
53
  },
27
54
  {
28
55
  "inputs": [
29
56
  {
30
57
  "internalType": "address",
31
- "name": "registry",
58
+ "name": "component",
32
59
  "type": "address"
33
60
  },
34
61
  {
35
- "internalType": "NftId",
36
- "name": "nftId",
37
- "type": "uint96"
62
+ "internalType": "ObjectType",
63
+ "name": "requiredType",
64
+ "type": "uint8"
65
+ },
66
+ {
67
+ "internalType": "ObjectType",
68
+ "name": "componentType",
69
+ "type": "uint8"
38
70
  }
39
71
  ],
40
- "name": "ErrorAlreadyLinked",
72
+ "name": "ErrorComponentServiceInvalidType",
41
73
  "type": "error"
42
74
  },
43
75
  {
44
76
  "inputs": [
45
77
  {
46
78
  "internalType": "address",
47
- "name": "contractAddress",
79
+ "name": "component",
48
80
  "type": "address"
49
81
  }
50
82
  ],
51
- "name": "ErrorContractNotRegistered",
83
+ "name": "ErrorComponentServiceNotComponent",
52
84
  "type": "error"
53
85
  },
54
86
  {
55
87
  "inputs": [
56
88
  {
57
89
  "internalType": "address",
58
- "name": "account",
90
+ "name": "component",
91
+ "type": "address"
92
+ },
93
+ {
94
+ "internalType": "address",
95
+ "name": "initialOwner",
96
+ "type": "address"
97
+ },
98
+ {
99
+ "internalType": "address",
100
+ "name": "sender",
59
101
  "type": "address"
60
102
  }
61
103
  ],
62
- "name": "ErrorNotOwner",
104
+ "name": "ErrorComponentServiceSenderNotOwner",
63
105
  "type": "error"
64
106
  },
65
107
  {
66
108
  "inputs": [
67
109
  {
68
110
  "internalType": "address",
69
- "name": "registryAddress",
111
+ "name": "target",
70
112
  "type": "address"
71
113
  }
72
114
  ],
73
- "name": "ErrorNotRegistry",
115
+ "name": "ErrorIAccessTargetLocked",
116
+ "type": "error"
117
+ },
118
+ {
119
+ "inputs": [
120
+ {
121
+ "internalType": "NftId",
122
+ "name": "nftId",
123
+ "type": "uint96"
124
+ }
125
+ ],
126
+ "name": "ErrorNftOwnableAlreadyLinked",
74
127
  "type": "error"
75
128
  },
76
129
  {
77
130
  "inputs": [
78
131
  {
79
132
  "internalType": "address",
80
- "name": "registryAddress",
133
+ "name": "contractAddress",
81
134
  "type": "address"
82
135
  }
83
136
  ],
84
- "name": "ErrorRegisterableNotRegistry",
137
+ "name": "ErrorNftOwnableContractNotRegistered",
85
138
  "type": "error"
86
139
  },
87
140
  {
88
141
  "inputs": [],
89
- "name": "ErrorRegistryAddressZero",
142
+ "name": "ErrorNftOwnableInitialOwnerZero",
90
143
  "type": "error"
91
144
  },
92
145
  {
93
146
  "inputs": [
94
147
  {
95
148
  "internalType": "address",
96
- "name": "registry",
149
+ "name": "account",
97
150
  "type": "address"
98
151
  }
99
152
  ],
100
- "name": "ErrorRegistryAlreadyInitialized",
153
+ "name": "ErrorNftOwnableNotOwner",
101
154
  "type": "error"
102
155
  },
103
156
  {
104
- "inputs": [],
105
- "name": "ErrorRegistryNotInitialized",
157
+ "inputs": [
158
+ {
159
+ "internalType": "address",
160
+ "name": "registryAddress",
161
+ "type": "address"
162
+ }
163
+ ],
164
+ "name": "ErrorNotRegistry",
106
165
  "type": "error"
107
166
  },
108
167
  {
@@ -129,54 +188,198 @@
129
188
  "type": "event"
130
189
  },
131
190
  {
132
- "anonymous": false,
191
+ "inputs": [],
192
+ "name": "NFT_OWNABLE_STORAGE_LOCATION_V1",
193
+ "outputs": [
194
+ {
195
+ "internalType": "bytes32",
196
+ "name": "",
197
+ "type": "bytes32"
198
+ }
199
+ ],
200
+ "stateMutability": "view",
201
+ "type": "function"
202
+ },
203
+ {
204
+ "inputs": [],
205
+ "name": "REGISTERABLE_LOCATION_V1",
206
+ "outputs": [
207
+ {
208
+ "internalType": "bytes32",
209
+ "name": "",
210
+ "type": "bytes32"
211
+ }
212
+ ],
213
+ "stateMutability": "view",
214
+ "type": "function"
215
+ },
216
+ {
133
217
  "inputs": [
134
218
  {
135
- "indexed": false,
136
- "internalType": "Version",
137
- "name": "version",
138
- "type": "uint24"
219
+ "internalType": "ReferralId",
220
+ "name": "referralId",
221
+ "type": "bytes8"
139
222
  },
140
223
  {
141
- "indexed": false,
224
+ "internalType": "uint256",
225
+ "name": "premiumAmount",
226
+ "type": "uint256"
227
+ }
228
+ ],
229
+ "name": "calculateFeeAmount",
230
+ "outputs": [
231
+ {
232
+ "internalType": "uint256",
233
+ "name": "feeAmount",
234
+ "type": "uint256"
235
+ }
236
+ ],
237
+ "stateMutability": "view",
238
+ "type": "function"
239
+ },
240
+ {
241
+ "inputs": [
242
+ {
142
243
  "internalType": "address",
143
- "name": "implementation",
244
+ "name": "distributor",
144
245
  "type": "address"
145
246
  },
146
247
  {
147
- "indexed": false,
148
- "internalType": "address",
149
- "name": "activatedBy",
150
- "type": "address"
248
+ "internalType": "DistributorType",
249
+ "name": "distributorType",
250
+ "type": "bytes8"
251
+ },
252
+ {
253
+ "internalType": "bytes",
254
+ "name": "data",
255
+ "type": "bytes"
151
256
  }
152
257
  ],
153
- "name": "LogVersionableInitialized",
154
- "type": "event"
258
+ "name": "createDistributor",
259
+ "outputs": [
260
+ {
261
+ "internalType": "NftId",
262
+ "name": "distributorNftId",
263
+ "type": "uint96"
264
+ }
265
+ ],
266
+ "stateMutability": "nonpayable",
267
+ "type": "function"
155
268
  },
156
269
  {
157
- "inputs": [],
158
- "name": "NAME",
270
+ "inputs": [
271
+ {
272
+ "internalType": "string",
273
+ "name": "name",
274
+ "type": "string"
275
+ },
276
+ {
277
+ "internalType": "UFixed",
278
+ "name": "minDiscountPercentage",
279
+ "type": "uint256"
280
+ },
281
+ {
282
+ "internalType": "UFixed",
283
+ "name": "maxDiscountPercentage",
284
+ "type": "uint256"
285
+ },
286
+ {
287
+ "internalType": "UFixed",
288
+ "name": "commissionPercentage",
289
+ "type": "uint256"
290
+ },
291
+ {
292
+ "internalType": "uint32",
293
+ "name": "maxReferralCount",
294
+ "type": "uint32"
295
+ },
296
+ {
297
+ "internalType": "uint32",
298
+ "name": "maxReferralLifetime",
299
+ "type": "uint32"
300
+ },
301
+ {
302
+ "internalType": "bool",
303
+ "name": "allowSelfReferrals",
304
+ "type": "bool"
305
+ },
306
+ {
307
+ "internalType": "bool",
308
+ "name": "allowRenewals",
309
+ "type": "bool"
310
+ },
311
+ {
312
+ "internalType": "bytes",
313
+ "name": "data",
314
+ "type": "bytes"
315
+ }
316
+ ],
317
+ "name": "createDistributorType",
159
318
  "outputs": [
319
+ {
320
+ "internalType": "DistributorType",
321
+ "name": "distributorType",
322
+ "type": "bytes8"
323
+ }
324
+ ],
325
+ "stateMutability": "nonpayable",
326
+ "type": "function"
327
+ },
328
+ {
329
+ "inputs": [
330
+ {
331
+ "internalType": "NftId",
332
+ "name": "distributorNftId",
333
+ "type": "uint96"
334
+ },
160
335
  {
161
336
  "internalType": "string",
162
- "name": "",
337
+ "name": "code",
163
338
  "type": "string"
339
+ },
340
+ {
341
+ "internalType": "UFixed",
342
+ "name": "discountPercentage",
343
+ "type": "uint256"
344
+ },
345
+ {
346
+ "internalType": "uint32",
347
+ "name": "maxReferrals",
348
+ "type": "uint32"
349
+ },
350
+ {
351
+ "internalType": "Timestamp",
352
+ "name": "expiryAt",
353
+ "type": "uint40"
354
+ },
355
+ {
356
+ "internalType": "bytes",
357
+ "name": "data",
358
+ "type": "bytes"
164
359
  }
165
360
  ],
166
- "stateMutability": "view",
361
+ "name": "createReferral",
362
+ "outputs": [
363
+ {
364
+ "internalType": "ReferralId",
365
+ "name": "referralId",
366
+ "type": "bytes8"
367
+ }
368
+ ],
369
+ "stateMutability": "nonpayable",
167
370
  "type": "function"
168
371
  },
169
372
  {
170
373
  "inputs": [],
171
- "name": "REGISTERABLE_LOCATION_V1",
374
+ "name": "getDomain",
172
375
  "outputs": [
173
376
  {
174
- "internalType": "bytes32",
377
+ "internalType": "ObjectType",
175
378
  "name": "",
176
- "type": "bytes32"
379
+ "type": "uint8"
177
380
  }
178
381
  ],
179
- "stateMutability": "view",
382
+ "stateMutability": "pure",
180
383
  "type": "function"
181
384
  },
182
385
  {
@@ -222,13 +425,8 @@
222
425
  }
223
426
  ],
224
427
  "internalType": "struct IRegistry.ObjectInfo",
225
- "name": "",
428
+ "name": "info",
226
429
  "type": "tuple"
227
- },
228
- {
229
- "internalType": "bytes",
230
- "name": "data",
231
- "type": "bytes"
232
430
  }
233
431
  ],
234
432
  "stateMutability": "view",
@@ -236,12 +434,12 @@
236
434
  },
237
435
  {
238
436
  "inputs": [],
239
- "name": "getInitializedVersion",
437
+ "name": "getInstanceService",
240
438
  "outputs": [
241
439
  {
242
- "internalType": "uint64",
440
+ "internalType": "contract InstanceService",
243
441
  "name": "",
244
- "type": "uint64"
442
+ "type": "address"
245
443
  }
246
444
  ],
247
445
  "stateMutability": "view",
@@ -260,19 +458,6 @@
260
458
  "stateMutability": "view",
261
459
  "type": "function"
262
460
  },
263
- {
264
- "inputs": [],
265
- "name": "getName",
266
- "outputs": [
267
- {
268
- "internalType": "string",
269
- "name": "name",
270
- "type": "string"
271
- }
272
- ],
273
- "stateMutability": "pure",
274
- "type": "function"
275
- },
276
461
  {
277
462
  "inputs": [],
278
463
  "name": "getNftId",
@@ -314,10 +499,10 @@
314
499
  },
315
500
  {
316
501
  "inputs": [],
317
- "name": "getRegistryService",
502
+ "name": "getRegistryAddress",
318
503
  "outputs": [
319
504
  {
320
- "internalType": "contract IRegistryService",
505
+ "internalType": "address",
321
506
  "name": "",
322
507
  "type": "address"
323
508
  }
@@ -327,25 +512,19 @@
327
512
  },
328
513
  {
329
514
  "inputs": [],
330
- "name": "getVersion",
515
+ "name": "getRegistryService",
331
516
  "outputs": [
332
517
  {
333
- "internalType": "Version",
518
+ "internalType": "contract IRegistryService",
334
519
  "name": "",
335
- "type": "uint24"
520
+ "type": "address"
336
521
  }
337
522
  ],
338
- "stateMutability": "pure",
523
+ "stateMutability": "view",
339
524
  "type": "function"
340
525
  },
341
526
  {
342
- "inputs": [
343
- {
344
- "internalType": "uint256",
345
- "name": "idx",
346
- "type": "uint256"
347
- }
348
- ],
527
+ "inputs": [],
349
528
  "name": "getVersion",
350
529
  "outputs": [
351
530
  {
@@ -354,75 +533,105 @@
354
533
  "type": "uint24"
355
534
  }
356
535
  ],
357
- "stateMutability": "view",
536
+ "stateMutability": "pure",
358
537
  "type": "function"
359
538
  },
360
539
  {
361
540
  "inputs": [],
362
- "name": "getVersionCount",
363
- "outputs": [
541
+ "name": "initializeERC165",
542
+ "outputs": [],
543
+ "stateMutability": "nonpayable",
544
+ "type": "function"
545
+ },
546
+ {
547
+ "inputs": [
364
548
  {
365
- "internalType": "uint256",
366
- "name": "",
367
- "type": "uint256"
549
+ "internalType": "address",
550
+ "name": "initialOwner",
551
+ "type": "address"
552
+ },
553
+ {
554
+ "internalType": "address",
555
+ "name": "registryAddress",
556
+ "type": "address"
368
557
  }
369
558
  ],
370
- "stateMutability": "view",
559
+ "name": "initializeNftOwnable",
560
+ "outputs": [],
561
+ "stateMutability": "nonpayable",
371
562
  "type": "function"
372
563
  },
373
564
  {
374
565
  "inputs": [
375
566
  {
376
- "internalType": "Version",
377
- "name": "_version",
378
- "type": "uint24"
567
+ "internalType": "address",
568
+ "name": "registryAddress",
569
+ "type": "address"
570
+ },
571
+ {
572
+ "internalType": "NftId",
573
+ "name": "parentNftId",
574
+ "type": "uint96"
575
+ },
576
+ {
577
+ "internalType": "ObjectType",
578
+ "name": "objectType",
579
+ "type": "uint8"
580
+ },
581
+ {
582
+ "internalType": "bool",
583
+ "name": "isInterceptor",
584
+ "type": "bool"
585
+ },
586
+ {
587
+ "internalType": "address",
588
+ "name": "initialOwner",
589
+ "type": "address"
590
+ },
591
+ {
592
+ "internalType": "bytes",
593
+ "name": "registryData",
594
+ "type": "bytes"
379
595
  }
380
596
  ],
381
- "name": "getVersionInfo",
382
- "outputs": [
597
+ "name": "initializeRegisterable",
598
+ "outputs": [],
599
+ "stateMutability": "nonpayable",
600
+ "type": "function"
601
+ },
602
+ {
603
+ "inputs": [
383
604
  {
384
- "components": [
385
- {
386
- "internalType": "Version",
387
- "name": "version",
388
- "type": "uint24"
389
- },
390
- {
391
- "internalType": "address",
392
- "name": "implementation",
393
- "type": "address"
394
- },
395
- {
396
- "internalType": "address",
397
- "name": "activatedBy",
398
- "type": "address"
399
- },
400
- {
401
- "internalType": "Timestamp",
402
- "name": "activatedAt",
403
- "type": "uint40"
404
- },
405
- {
406
- "internalType": "Blocknumber",
407
- "name": "activatedIn",
408
- "type": "uint32"
409
- }
410
- ],
411
- "internalType": "struct IVersionable.VersionInfo",
412
- "name": "",
413
- "type": "tuple"
605
+ "internalType": "address",
606
+ "name": "registryAddress",
607
+ "type": "address"
414
608
  }
415
609
  ],
416
- "stateMutability": "view",
610
+ "name": "initializeRegistryLinked",
611
+ "outputs": [],
612
+ "stateMutability": "nonpayable",
417
613
  "type": "function"
418
614
  },
419
615
  {
420
616
  "inputs": [
421
617
  {
422
618
  "internalType": "address",
423
- "name": "implementation",
619
+ "name": "registry",
424
620
  "type": "address"
425
621
  },
622
+ {
623
+ "internalType": "address",
624
+ "name": "initialOwner",
625
+ "type": "address"
626
+ }
627
+ ],
628
+ "name": "initializeService",
629
+ "outputs": [],
630
+ "stateMutability": "nonpayable",
631
+ "type": "function"
632
+ },
633
+ {
634
+ "inputs": [
426
635
  {
427
636
  "internalType": "address",
428
637
  "name": "activatedBy",
@@ -434,7 +643,14 @@
434
643
  "type": "bytes"
435
644
  }
436
645
  ],
437
- "name": "initialize",
646
+ "name": "initializeVersionable",
647
+ "outputs": [],
648
+ "stateMutability": "nonpayable",
649
+ "type": "function"
650
+ },
651
+ {
652
+ "inputs": [],
653
+ "name": "linkToRegisteredNftId",
438
654
  "outputs": [],
439
655
  "stateMutability": "nonpayable",
440
656
  "type": "function"
@@ -442,25 +658,49 @@
442
658
  {
443
659
  "inputs": [
444
660
  {
445
- "internalType": "Version",
446
- "name": "_version",
447
- "type": "uint24"
661
+ "internalType": "ReferralId",
662
+ "name": "referralId",
663
+ "type": "bytes8"
664
+ },
665
+ {
666
+ "internalType": "uint256",
667
+ "name": "premiumAmount",
668
+ "type": "uint256"
448
669
  }
449
670
  ],
450
- "name": "isInitialized",
671
+ "name": "processSale",
672
+ "outputs": [],
673
+ "stateMutability": "nonpayable",
674
+ "type": "function"
675
+ },
676
+ {
677
+ "inputs": [
678
+ {
679
+ "internalType": "address",
680
+ "name": "distributionAddress",
681
+ "type": "address"
682
+ }
683
+ ],
684
+ "name": "register",
451
685
  "outputs": [
452
686
  {
453
- "internalType": "bool",
454
- "name": "",
455
- "type": "bool"
687
+ "internalType": "NftId",
688
+ "name": "distributionNftId",
689
+ "type": "uint96"
456
690
  }
457
691
  ],
458
- "stateMutability": "view",
692
+ "stateMutability": "nonpayable",
459
693
  "type": "function"
460
694
  },
461
695
  {
462
- "inputs": [],
463
- "name": "linkToRegisteredNftId",
696
+ "inputs": [
697
+ {
698
+ "internalType": "bytes4",
699
+ "name": "interfaceId",
700
+ "type": "bytes4"
701
+ }
702
+ ],
703
+ "name": "registerInterface",
464
704
  "outputs": [],
465
705
  "stateMutability": "nonpayable",
466
706
  "type": "function"
@@ -512,14 +752,14 @@
512
752
  {
513
753
  "inputs": [
514
754
  {
515
- "internalType": "address",
516
- "name": "implementation",
517
- "type": "address"
755
+ "internalType": "NftId",
756
+ "name": "distributorNftId",
757
+ "type": "uint96"
518
758
  },
519
759
  {
520
- "internalType": "address",
521
- "name": "activatedBy",
522
- "type": "address"
760
+ "internalType": "DistributorType",
761
+ "name": "distributorType",
762
+ "type": "bytes8"
523
763
  },
524
764
  {
525
765
  "internalType": "bytes",
@@ -527,20 +767,37 @@
527
767
  "type": "bytes"
528
768
  }
529
769
  ],
530
- "name": "upgrade",
770
+ "name": "updateDistributorType",
771
+ "outputs": [],
772
+ "stateMutability": "nonpayable",
773
+ "type": "function"
774
+ },
775
+ {
776
+ "inputs": [
777
+ {
778
+ "internalType": "bytes",
779
+ "name": "data",
780
+ "type": "bytes"
781
+ }
782
+ ],
783
+ "name": "upgradeVersionable",
531
784
  "outputs": [],
532
785
  "stateMutability": "nonpayable",
533
786
  "type": "function"
534
787
  }
535
788
  ],
536
- "bytecode": "0x60806040523480156200001157600080fd5b506040516200262e3803806200262e8339810160408190526200003491620005f7565b6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055828282600280546001600160a01b031916331790556200008f620000e5565b6200009c83838362000199565b505050620000b7631fa9607b60e11b620000c060201b60201c565b50505062000891565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff1615620001365760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b0390811614620001965780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6000620001d660408051808201909152601381527f446973747269627574696f6e5365727669636500000000000000000000000000602082015290565b620001e062000259565b604051602001620001f39291906200064f565b60408051808303601f190181529190529050620002178484602860008686620002e6565b631b4612f160e31b60009081526020527ffc58a5a01198e68c5a5d0bcd463f9ab550fc4337b1df271aed6dbb33d25fef25805460ff1916600117905550505050565b600062000265620003b7565b60405163c9e66e2960e01b815262ffffff909116600482015273__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__9063c9e66e2990602401602060405180830381865af4158015620002bb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002e19190620006a9565b905090565b620002f282876200043f565b60007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0388166001600160681b0319909116176c0100000000000000000000000060ff8816021760ff60681b19166d0100000000000000000000000000861515021781559050600181016200037183826200077a565b506303fb044760e21b60009081526020527fb43e4f3791bfcdefa3a0fbe2a5555f8d6490b90e01de0ff40c66f18b49b562c5805460ff1916600117905550505050505050565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90632efe011390606401602060405180830381865af415801562000419573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002e1919062000846565b600280546001600160a01b0319166001600160a01b038416179055620004658162000469565b5050565b6001546001600160a01b031615620004a85760015460405163fcdbf2d960e01b81526001600160a01b0390911660048201526024015b60405180910390fd5b6001600160a01b038116620004d05760405163f5c4d07d60e01b815260040160405180910390fd5b806001600160a01b03163b600003620005085760405163fdeac91f60e01b81526001600160a01b03821660048201526024016200049f565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b8152632c1c764b60e11b60048201526301ffc9a790602401602060405180830381865afa92505050801562000585575060408051601f3d908101601f1916820190925262000582918101906200086d565b60015b620005af5760405163fdeac91f60e01b81526001600160a01b03821660048201526024016200049f565b80620004655760405163fdeac91f60e01b81526001600160a01b03831660048201526024016200049f565b80516001600160a01b0381168114620005f257600080fd5b919050565b6000806000606084860312156200060d57600080fd5b6200061884620005da565b60208501519093506001600160601b03811681146200063657600080fd5b91506200064660408501620005da565b90509250925092565b604081526000835180604084015260005b818110156200067f576020818701810151606086840101520162000660565b506000606082850101526060601f19601f83011684010191505060ff831660208301529392505050565b600060208284031215620006bc57600080fd5b815160ff81168114620006ce57600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200070057607f821691505b6020821081036200072157634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200077557600081815260208120601f850160051c81016020861015620007505750805b601f850160051c820191505b8181101562000771578281556001016200075c565b5050505b505050565b81516001600160401b03811115620007965762000796620006d5565b620007ae81620007a78454620006eb565b8462000727565b602080601f831160018114620007e65760008415620007cd5750858301515b600019600386901b1c1916600185901b17855562000771565b600085815260208120601f198616915b828110156200081757888601518255948401946001909101908401620007f6565b5085821015620008365787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000602082840312156200085957600080fd5b815162ffffff81168114620006ce57600080fd5b6000602082840312156200088057600080fd5b81518015158114620006ce57600080fd5b611d8d80620008a16000396000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c8063644c45e0116100ad578063b3c6501511610071578063b3c650151461041f578063b88da7591461043f578063caf4e3d414610452578063cde749f41461045a578063cf7a1d771461047457600080fd5b8063644c45e014610380578063893d20e8146103ab578063946dfcfe146103b3578063a3f4df7e146103da578063a745e3df1461040c57600080fd5b80631eff4b22116100f45780631eff4b22146101e75780633f52c0f61461021c5780634d459c901461022f5780634f421333146103485780635ab1bd531461035b57600080fd5b806301ffc9a7146101315780630d8e6e2c146101735780630fec111c1461018f578063138461e0146101a557806317d7de7c146101af575b600080fd5b61015e61013f366004611568565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b61017b610487565b60405162ffffff909116815260200161016a565b610197610511565b60405161016a9291906115e9565b6101ad610685565b005b604080518082019091526013815272446973747269627574696f6e5365727669636560681b60208201525b60405161016a9190611690565b61020e7f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b60405190815260200161016a565b6101ad61022a366004611756565b6108a7565b6102eb61023d36600461179c565b6040805160a081018252600080825260208201819052918101829052606081018290526080810191909152600080516020611d3883398151915262ffffff92831660009081526020918252604090819020815160a0810183528154958616815263010000009095046001600160a01b03908116938601939093526001015491821690840152600160a01b810464ffffffffff166060840152600160c81b900463ffffffff1660808301525090565b60408051825162ffffff1681526020808401516001600160a01b039081169183019190915283830151169181019190915260608083015164ffffffffff169082015260809182015163ffffffff169181019190915260a00161016a565b61015e61035636600461179c565b610a1a565b6001546001600160a01b03165b6040516001600160a01b03909116815260200161016a565b600154600160a01b90046001600160601b03166040516001600160601b03909116815260200161016a565b610368610acd565b7f4f61291a8ac3d020d0a7d919a76b8592aa88385744dee3f8b4f3873b969ed9015461020e565b6101da60405180604001604052806013815260200172446973747269627574696f6e5365727669636560681b81525081565b6101ad61041a3660046117f5565b610be6565b610427610d40565b6040516001600160401b03909116815260200161016a565b61017b61044d366004611899565b610d61565b610368610db2565b610462610e6d565b60405160ff909116815260200161016a565b6101ad6104823660046117f5565b610ef0565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90632efe011390606401602060405180830381865af41580156104e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061050c91906118b2565b905090565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c0810191909152606060007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30090506040518060e00160405280610586600090565b6001600160601b0390811682528354908116602083015260ff600160601b820481166040840152600160681b909104161515606082015230608082015260a0016105ce610acd565b6001600160a01b031681526020018260010180546105eb906118cf565b80601f0160208091040260200160405190810160405280929190818152602001828054610617906118cf565b80156106645780601f1061063957610100808354040283529160200191610664565b820191906000526020600020905b81548152906001019060200180831161064757829003601f168201915b50505050508152506040518060200160405280600081525092509250509091565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af41580156106e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061070b919061191e565b15610752576001546040516316322c0f60e31b81526001600160a01b0382166004820152600160a01b9091046001600160601b031660248201526044015b60405180910390fd5b6001546001600160a01b031661077b5760405163cf29926160e01b815260040160405180910390fd5b60015460405163c3c5a54760e01b81523060048201819052916001600160a01b03169063c3c5a54790602401602060405180830381865afa1580156107c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107e8919061191e565b610810576040516372657a5160e01b81526001600160a01b0382166004820152602401610749565b600154604051636939560f60e11b81526001600160a01b0383811660048301529091169063d272ac1e90602401602060405180830381865afa15801561085a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061087e9190611950565b600160146101000a8154816001600160601b0302191690836001600160601b0316021790555050565b6000806108b46078610ff9565b8151604051639ae31ff560e01b81526001600160601b03909116600482015291935091506000906001600160a01b03831690639ae31ff590602401602060405180830381865afa15801561090c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109309190611950565b60405163f2b246c360e01b81526001600160601b03821660048201529091506000906001600160a01b0384169063f2b246c3906024016101e060405180830381865afa158015610984573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109a891906119a6565b61010081018690526040516306a5298b60e01b81529091506001600160a01b038416906306a5298b906109e19085908590600401611a65565b600060405180830381600087803b1580156109fb57600080fd5b505af1158015610a0f573d6000803e3d6000fd5b505050505050505050565b600080600080516020611d3883398151915262ffffff84166000908152602091909152604090819020600101549051631bbffab160e21b8152600160c81b90910463ffffffff16600482015273__$5f476116ae21c5294e0c0761c07efa7e1c$__90636effeac490602401602060405180830381865af4158015610aa2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac69190611b4c565b1192915050565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015260009073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610b32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b56919061191e565b15610bd657600154604051631c5da14d60e11b8152600160a01b82046001600160601b031660048201526001600160a01b03909116906338bb429a90602401602060405180830381865afa158015610bb2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061050c9190611b65565b506002546001600160a01b031690565b73__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__63a123b37c610c08610487565b6040516001600160e01b031960e084901b16815262ffffff9091166004820152602401602060405180830381865af4158015610c48573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c6c9190611b82565b600080516020611d188339815191528054600160401b900460ff1680610c9f575080546001600160401b03808416911610155b15610cbd5760405163f92ee8a960e01b815260040160405180910390fd5b805468ffffffffffffffffff19166001600160401b03831617600160401b178155610ce885856112f0565b610cf18361152b565b805460ff60401b191681556040516001600160401b03831681527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2906020015b60405180910390a15050505050565b600061050c600080516020611d18833981519152546001600160401b031690565b6000600080516020611d388339815191526001018281548110610d8657610d86611bab565b90600052602060002090600a91828204019190066003029054906101000a900462ffffff169050919050565b600080610dc76001546001600160a01b031690565b6001600160a01b031663a3bcd81d610ddd610e6d565b604080516001600160e01b031960e085901b1681526004810191909152600f60448201526e52656769737472795365727669636560881b606482015260ff9091166024820152608401602060405180830381865afa158015610e43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e679190611b65565b92915050565b6000610e77610487565b60405163c9e66e2960e01b815262ffffff909116600482015273__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__9063c9e66e2990602401602060405180830381865af4158015610ecc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061050c9190611bdb565b600080516020611d188339815191528054600160401b810460ff1615906001600160401b0316600081158015610f235750825b90506000826001600160401b03166001148015610f3f5750303b155b905081158015610f4d575080155b15610f6b5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610f9557845460ff60401b1916600160401b1785555b610f9f88886112f0565b610fa9878761152b565b8315610fef57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b5050505050505050565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c082015260015490919081906001600160a01b0316604051636939560f60e11b81523360048201526001600160a01b03919091169063d272ac1e90602401602060405180830381865afa158015611087573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ab9190611950565b6040516330b8415f60e01b81526001600160601b038216600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015611106573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061112a919061191e565b6111765760405162461bcd60e51b815260206004820152601760248201527f4552524f525f434f4d504f4e454e545f554e4b4e4f574e0000000000000000006044820152606401610749565b6001546001600160a01b03166040516305247a1760e51b81526001600160601b03831660048201526001600160a01b03919091169063a48f42e090602401600060405180830381865afa1580156111d1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526111f99190810190611c45565b925061120f83604001518560ff90811691161490565b6112515760405162461bcd60e51b815260206004820152601360248201527213d0929150d517d516541157d2539590531251606a1b6044820152606401610749565b60006112656001546001600160a01b031690565b60208501516040516305247a1760e51b81526001600160601b0390911660048201526001600160a01b03919091169063a48f42e090602401600060405180830381865afa1580156112ba573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526112e29190810190611c45565b608001519395939450505050565b6112f861152f565b600080516020611d388339815191526000611328600080516020611d18833981519152546001600160401b031690565b90506000611334610487565b9050816001600160401b03166001036113615760028301805462ffffff191662ffffff83161790556113af565b600283015462ffffff908116908216116113af5760405162461bcd60e51b815260206004820152600f60248201526e24a72b20a624a2102b22a929a4a7a760891b6044820152606401610749565b6001808401805491820181556000908152602090819020600a808404909101805462ffffff808716600394909606939093026101000a858102930219169190911790556040805160a0810182529283526001600160a01b038089169284019290925290861690820152606081016114234290565b64ffffffffff1681526020014363ffffffff90811690915262ffffff8084166000908152602087815260409182902085518154928701516001600160a01b039081166301000000026001600160b81b0319909416919095161791909117815584820151600190910180546060870151608090970151909516600160c81b0263ffffffff60c81b1964ffffffffff909716600160a01b026001600160c81b031990961692909416919091179390931793909316179055517fad0a0fc10465a8dd9da3ad5f43e1a7fff4b4578551c76f0ae8deb844f0d0bf6890610d319083908890889062ffffff9390931683526001600160a01b03918216602084015216604082015260600190565b61012c5b600080516020611d1883398151915254600160401b900460ff1661156657604051631afcd79f60e31b815260040160405180910390fd5b565b60006020828403121561157a57600080fd5b81356001600160e01b03198116811461159257600080fd5b9392505050565b60005b838110156115b457818101518382015260200161159c565b50506000910152565b600081518084526115d5816020860160208601611599565b601f01601f19169290920160200192915050565b6040815260006001600160601b038085511660408401528060208601511660608401525060ff6040850151166080830152606084015161162d60a084018215159052565b5060808401516001600160a01b03811660c08401525060a08401516001600160a01b03811660e08401525060c084015160e06101008401526116736101208401826115bd565b9050828103602084015261168781856115bd565b95945050505050565b60208152600061159260208301846115bd565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b03811182821017156116db576116db6116a3565b60405290565b60405161012081016001600160401b03811182821017156116db576116db6116a3565b60405160e081016001600160401b03811182821017156116db576116db6116a3565b604051601f8201601f191681016001600160401b038111828210171561174e5761174e6116a3565b604052919050565b60006040828403121561176857600080fd5b6117706116b9565b82358152602083013560208201528091505092915050565b62ffffff8116811461179957600080fd5b50565b6000602082840312156117ae57600080fd5b813561159281611788565b6001600160a01b038116811461179957600080fd5b60006001600160401b038211156117e7576117e76116a3565b50601f01601f191660200190565b60008060006060848603121561180a57600080fd5b8335611815816117b9565b92506020840135611825816117b9565b915060408401356001600160401b0381111561184057600080fd5b8401601f8101861361185157600080fd5b803561186461185f826117ce565b611726565b81815287602083850101111561187957600080fd5b816020840160208301376000602083830101528093505050509250925092565b6000602082840312156118ab57600080fd5b5035919050565b6000602082840312156118c457600080fd5b815161159281611788565b600181811c908216806118e357607f821691505b60208210810361190357634e487b7160e01b600052602260045260246000fd5b50919050565b8051801515811461191957600080fd5b919050565b60006020828403121561193057600080fd5b61159282611909565b80516001600160601b038116811461191957600080fd5b60006020828403121561196257600080fd5b61159282611939565b8051611919816117b9565b60006040828403121561198857600080fd5b6119906116b9565b9050815181526020820151602082015292915050565b60006101e082840312156119b957600080fd5b6119c16116e1565b6119ca83611939565b81526119d860208401611939565b60208201526119e96040840161196b565b60408201526119fb8460608501611976565b6060820152611a0d8460a08501611976565b6080820152611a1f8460e08501611976565b60a0820152611a32846101208501611976565b60c0820152611a45846101608501611976565b60e0820152611a58846101a08501611976565b6101008201529392505050565b6001600160601b038381168252825116602080830191909152820151610200820190611a9c60408401826001600160601b03169052565b5060408301516001600160a01b038116606084015250606083015180516080840152602081015160a0840152506080830151805160c0840152602081015160e08401525060a0830151610100611afe8185018380518252602090810151910152565b60c0850151805161014086015260209081015161016086015260e086015180516101808701528101516101a086015294015180516101c0850152909301516101e09092019190915292915050565b600060208284031215611b5e57600080fd5b5051919050565b600060208284031215611b7757600080fd5b8151611592816117b9565b600060208284031215611b9457600080fd5b81516001600160401b038116811461159257600080fd5b634e487b7160e01b600052603260045260246000fd5b60ff8116811461179957600080fd5b805161191981611bc1565b600060208284031215611bed57600080fd5b815161159281611bc1565b600082601f830112611c0957600080fd5b8151611c1761185f826117ce565b818152846020838601011115611c2c57600080fd5b611c3d826020830160208701611599565b949350505050565b600060208284031215611c5757600080fd5b81516001600160401b0380821115611c6e57600080fd5b9083019060e08286031215611c8257600080fd5b611c8a611704565b611c9383611939565b8152611ca160208401611939565b6020820152611cb260408401611bd0565b6040820152611cc360608401611909565b6060820152611cd46080840161196b565b6080820152611ce560a0840161196b565b60a082015260c083015182811115611cfc57600080fd5b611d0887828601611bf8565b60c0830152509594505050505056fef0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a004f61291a8ac3d020d0a7d919a76b8592aa88385744dee3f8b4f3873b969ed900a2646970667358221220c6455a1c27f08321c3fdfa9631fe7c2397447c18650ea9f0831f4138c87f466764736f6c63430008140033",
537
- "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061012c5760003560e01c8063644c45e0116100ad578063b3c6501511610071578063b3c650151461041f578063b88da7591461043f578063caf4e3d414610452578063cde749f41461045a578063cf7a1d771461047457600080fd5b8063644c45e014610380578063893d20e8146103ab578063946dfcfe146103b3578063a3f4df7e146103da578063a745e3df1461040c57600080fd5b80631eff4b22116100f45780631eff4b22146101e75780633f52c0f61461021c5780634d459c901461022f5780634f421333146103485780635ab1bd531461035b57600080fd5b806301ffc9a7146101315780630d8e6e2c146101735780630fec111c1461018f578063138461e0146101a557806317d7de7c146101af575b600080fd5b61015e61013f366004611568565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b61017b610487565b60405162ffffff909116815260200161016a565b610197610511565b60405161016a9291906115e9565b6101ad610685565b005b604080518082019091526013815272446973747269627574696f6e5365727669636560681b60208201525b60405161016a9190611690565b61020e7f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b60405190815260200161016a565b6101ad61022a366004611756565b6108a7565b6102eb61023d36600461179c565b6040805160a081018252600080825260208201819052918101829052606081018290526080810191909152600080516020611d3883398151915262ffffff92831660009081526020918252604090819020815160a0810183528154958616815263010000009095046001600160a01b03908116938601939093526001015491821690840152600160a01b810464ffffffffff166060840152600160c81b900463ffffffff1660808301525090565b60408051825162ffffff1681526020808401516001600160a01b039081169183019190915283830151169181019190915260608083015164ffffffffff169082015260809182015163ffffffff169181019190915260a00161016a565b61015e61035636600461179c565b610a1a565b6001546001600160a01b03165b6040516001600160a01b03909116815260200161016a565b600154600160a01b90046001600160601b03166040516001600160601b03909116815260200161016a565b610368610acd565b7f4f61291a8ac3d020d0a7d919a76b8592aa88385744dee3f8b4f3873b969ed9015461020e565b6101da60405180604001604052806013815260200172446973747269627574696f6e5365727669636560681b81525081565b6101ad61041a3660046117f5565b610be6565b610427610d40565b6040516001600160401b03909116815260200161016a565b61017b61044d366004611899565b610d61565b610368610db2565b610462610e6d565b60405160ff909116815260200161016a565b6101ad6104823660046117f5565b610ef0565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90632efe011390606401602060405180830381865af41580156104e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061050c91906118b2565b905090565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c0810191909152606060007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30090506040518060e00160405280610586600090565b6001600160601b0390811682528354908116602083015260ff600160601b820481166040840152600160681b909104161515606082015230608082015260a0016105ce610acd565b6001600160a01b031681526020018260010180546105eb906118cf565b80601f0160208091040260200160405190810160405280929190818152602001828054610617906118cf565b80156106645780601f1061063957610100808354040283529160200191610664565b820191906000526020600020905b81548152906001019060200180831161064757829003601f168201915b50505050508152506040518060200160405280600081525092509250509091565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af41580156106e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061070b919061191e565b15610752576001546040516316322c0f60e31b81526001600160a01b0382166004820152600160a01b9091046001600160601b031660248201526044015b60405180910390fd5b6001546001600160a01b031661077b5760405163cf29926160e01b815260040160405180910390fd5b60015460405163c3c5a54760e01b81523060048201819052916001600160a01b03169063c3c5a54790602401602060405180830381865afa1580156107c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107e8919061191e565b610810576040516372657a5160e01b81526001600160a01b0382166004820152602401610749565b600154604051636939560f60e11b81526001600160a01b0383811660048301529091169063d272ac1e90602401602060405180830381865afa15801561085a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061087e9190611950565b600160146101000a8154816001600160601b0302191690836001600160601b0316021790555050565b6000806108b46078610ff9565b8151604051639ae31ff560e01b81526001600160601b03909116600482015291935091506000906001600160a01b03831690639ae31ff590602401602060405180830381865afa15801561090c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109309190611950565b60405163f2b246c360e01b81526001600160601b03821660048201529091506000906001600160a01b0384169063f2b246c3906024016101e060405180830381865afa158015610984573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109a891906119a6565b61010081018690526040516306a5298b60e01b81529091506001600160a01b038416906306a5298b906109e19085908590600401611a65565b600060405180830381600087803b1580156109fb57600080fd5b505af1158015610a0f573d6000803e3d6000fd5b505050505050505050565b600080600080516020611d3883398151915262ffffff84166000908152602091909152604090819020600101549051631bbffab160e21b8152600160c81b90910463ffffffff16600482015273__$5f476116ae21c5294e0c0761c07efa7e1c$__90636effeac490602401602060405180830381865af4158015610aa2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac69190611b4c565b1192915050565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015260009073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610b32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b56919061191e565b15610bd657600154604051631c5da14d60e11b8152600160a01b82046001600160601b031660048201526001600160a01b03909116906338bb429a90602401602060405180830381865afa158015610bb2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061050c9190611b65565b506002546001600160a01b031690565b73__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__63a123b37c610c08610487565b6040516001600160e01b031960e084901b16815262ffffff9091166004820152602401602060405180830381865af4158015610c48573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c6c9190611b82565b600080516020611d188339815191528054600160401b900460ff1680610c9f575080546001600160401b03808416911610155b15610cbd5760405163f92ee8a960e01b815260040160405180910390fd5b805468ffffffffffffffffff19166001600160401b03831617600160401b178155610ce885856112f0565b610cf18361152b565b805460ff60401b191681556040516001600160401b03831681527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2906020015b60405180910390a15050505050565b600061050c600080516020611d18833981519152546001600160401b031690565b6000600080516020611d388339815191526001018281548110610d8657610d86611bab565b90600052602060002090600a91828204019190066003029054906101000a900462ffffff169050919050565b600080610dc76001546001600160a01b031690565b6001600160a01b031663a3bcd81d610ddd610e6d565b604080516001600160e01b031960e085901b1681526004810191909152600f60448201526e52656769737472795365727669636560881b606482015260ff9091166024820152608401602060405180830381865afa158015610e43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e679190611b65565b92915050565b6000610e77610487565b60405163c9e66e2960e01b815262ffffff909116600482015273__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__9063c9e66e2990602401602060405180830381865af4158015610ecc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061050c9190611bdb565b600080516020611d188339815191528054600160401b810460ff1615906001600160401b0316600081158015610f235750825b90506000826001600160401b03166001148015610f3f5750303b155b905081158015610f4d575080155b15610f6b5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610f9557845460ff60401b1916600160401b1785555b610f9f88886112f0565b610fa9878761152b565b8315610fef57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b5050505050505050565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c082015260015490919081906001600160a01b0316604051636939560f60e11b81523360048201526001600160a01b03919091169063d272ac1e90602401602060405180830381865afa158015611087573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ab9190611950565b6040516330b8415f60e01b81526001600160601b038216600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015611106573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061112a919061191e565b6111765760405162461bcd60e51b815260206004820152601760248201527f4552524f525f434f4d504f4e454e545f554e4b4e4f574e0000000000000000006044820152606401610749565b6001546001600160a01b03166040516305247a1760e51b81526001600160601b03831660048201526001600160a01b03919091169063a48f42e090602401600060405180830381865afa1580156111d1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526111f99190810190611c45565b925061120f83604001518560ff90811691161490565b6112515760405162461bcd60e51b815260206004820152601360248201527213d0929150d517d516541157d2539590531251606a1b6044820152606401610749565b60006112656001546001600160a01b031690565b60208501516040516305247a1760e51b81526001600160601b0390911660048201526001600160a01b03919091169063a48f42e090602401600060405180830381865afa1580156112ba573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526112e29190810190611c45565b608001519395939450505050565b6112f861152f565b600080516020611d388339815191526000611328600080516020611d18833981519152546001600160401b031690565b90506000611334610487565b9050816001600160401b03166001036113615760028301805462ffffff191662ffffff83161790556113af565b600283015462ffffff908116908216116113af5760405162461bcd60e51b815260206004820152600f60248201526e24a72b20a624a2102b22a929a4a7a760891b6044820152606401610749565b6001808401805491820181556000908152602090819020600a808404909101805462ffffff808716600394909606939093026101000a858102930219169190911790556040805160a0810182529283526001600160a01b038089169284019290925290861690820152606081016114234290565b64ffffffffff1681526020014363ffffffff90811690915262ffffff8084166000908152602087815260409182902085518154928701516001600160a01b039081166301000000026001600160b81b0319909416919095161791909117815584820151600190910180546060870151608090970151909516600160c81b0263ffffffff60c81b1964ffffffffff909716600160a01b026001600160c81b031990961692909416919091179390931793909316179055517fad0a0fc10465a8dd9da3ad5f43e1a7fff4b4578551c76f0ae8deb844f0d0bf6890610d319083908890889062ffffff9390931683526001600160a01b03918216602084015216604082015260600190565b61012c5b600080516020611d1883398151915254600160401b900460ff1661156657604051631afcd79f60e31b815260040160405180910390fd5b565b60006020828403121561157a57600080fd5b81356001600160e01b03198116811461159257600080fd5b9392505050565b60005b838110156115b457818101518382015260200161159c565b50506000910152565b600081518084526115d5816020860160208601611599565b601f01601f19169290920160200192915050565b6040815260006001600160601b038085511660408401528060208601511660608401525060ff6040850151166080830152606084015161162d60a084018215159052565b5060808401516001600160a01b03811660c08401525060a08401516001600160a01b03811660e08401525060c084015160e06101008401526116736101208401826115bd565b9050828103602084015261168781856115bd565b95945050505050565b60208152600061159260208301846115bd565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b03811182821017156116db576116db6116a3565b60405290565b60405161012081016001600160401b03811182821017156116db576116db6116a3565b60405160e081016001600160401b03811182821017156116db576116db6116a3565b604051601f8201601f191681016001600160401b038111828210171561174e5761174e6116a3565b604052919050565b60006040828403121561176857600080fd5b6117706116b9565b82358152602083013560208201528091505092915050565b62ffffff8116811461179957600080fd5b50565b6000602082840312156117ae57600080fd5b813561159281611788565b6001600160a01b038116811461179957600080fd5b60006001600160401b038211156117e7576117e76116a3565b50601f01601f191660200190565b60008060006060848603121561180a57600080fd5b8335611815816117b9565b92506020840135611825816117b9565b915060408401356001600160401b0381111561184057600080fd5b8401601f8101861361185157600080fd5b803561186461185f826117ce565b611726565b81815287602083850101111561187957600080fd5b816020840160208301376000602083830101528093505050509250925092565b6000602082840312156118ab57600080fd5b5035919050565b6000602082840312156118c457600080fd5b815161159281611788565b600181811c908216806118e357607f821691505b60208210810361190357634e487b7160e01b600052602260045260246000fd5b50919050565b8051801515811461191957600080fd5b919050565b60006020828403121561193057600080fd5b61159282611909565b80516001600160601b038116811461191957600080fd5b60006020828403121561196257600080fd5b61159282611939565b8051611919816117b9565b60006040828403121561198857600080fd5b6119906116b9565b9050815181526020820151602082015292915050565b60006101e082840312156119b957600080fd5b6119c16116e1565b6119ca83611939565b81526119d860208401611939565b60208201526119e96040840161196b565b60408201526119fb8460608501611976565b6060820152611a0d8460a08501611976565b6080820152611a1f8460e08501611976565b60a0820152611a32846101208501611976565b60c0820152611a45846101608501611976565b60e0820152611a58846101a08501611976565b6101008201529392505050565b6001600160601b038381168252825116602080830191909152820151610200820190611a9c60408401826001600160601b03169052565b5060408301516001600160a01b038116606084015250606083015180516080840152602081015160a0840152506080830151805160c0840152602081015160e08401525060a0830151610100611afe8185018380518252602090810151910152565b60c0850151805161014086015260209081015161016086015260e086015180516101808701528101516101a086015294015180516101c0850152909301516101e09092019190915292915050565b600060208284031215611b5e57600080fd5b5051919050565b600060208284031215611b7757600080fd5b8151611592816117b9565b600060208284031215611b9457600080fd5b81516001600160401b038116811461159257600080fd5b634e487b7160e01b600052603260045260246000fd5b60ff8116811461179957600080fd5b805161191981611bc1565b600060208284031215611bed57600080fd5b815161159281611bc1565b600082601f830112611c0957600080fd5b8151611c1761185f826117ce565b818152846020838601011115611c2c57600080fd5b611c3d826020830160208701611599565b949350505050565b600060208284031215611c5757600080fd5b81516001600160401b0380821115611c6e57600080fd5b9083019060e08286031215611c8257600080fd5b611c8a611704565b611c9383611939565b8152611ca160208401611939565b6020820152611cb260408401611bd0565b6040820152611cc360608401611909565b6060820152611cd46080840161196b565b6080820152611ce560a0840161196b565b60a082015260c083015182811115611cfc57600080fd5b611d0887828601611bf8565b60c0830152509594505050505056fef0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a004f61291a8ac3d020d0a7d919a76b8592aa88385744dee3f8b4f3873b969ed900a2646970667358221220c6455a1c27f08321c3fdfa9631fe7c2397447c18650ea9f0831f4138c87f466764736f6c63430008140033",
789
+ "bytecode": "0x60806040523480156200001157600080fd5b506200001c62000022565b620000d6565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff1615620000735760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b0390811614620000d35780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b61375e80620000e66000396000f3fe608060405234801561001057600080fd5b50600436106101da5760003560e01c80635ab1bd5311610104578063b68d1809116100a2578063ea86657211610071578063ea8665721461043b578063f21de1e814610375578063f7c34ee01461044e578063f7d39dea1461046157600080fd5b8063b68d18091461040e578063caf4e3d414610423578063cc9fc59a1461042b578063cde749f41461043357600080fd5b8063675393bf116100de578063675393bf146103cb578063893d20e8146103de5780638dd2b781146103e6578063ada9652e146103f957600080fd5b80635ab1bd53146103755780635dcb3bae1461039a578063644c45e0146103ad57600080fd5b80632b5198b11161017c5780633f52c0f61161014b5780633f52c0f6146103115780634420e4861461032457806349bb9e4b1461034f5780634cf30a841461036257600080fd5b80632b5198b1146102b7578063329d6e74146102e357806336fc697e146102f65780633d683fd9146102fe57600080fd5b8063138461e0116101b8578063138461e0146102525780631eff4b221461025c578063214cdb801461029157806327bb7a33146102a457600080fd5b806301ffc9a7146101df5780630d8e6e2c146102215780630fec111c1461023d575b600080fd5b61020c6101ed36600461291a565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b610229610474565b60405162ffffff9091168152602001610218565b6102456104fe565b604051610218919061299b565b61025a6106b2565b005b6102837f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b604051908152602001610218565b61025a61029f36600461291a565b6108b9565b61025a6102b2366004612b7a565b6108e6565b6102ca6102c5366004612c2b565b610972565b6040516001600160c01b03199091168152602001610218565b61025a6102f1366004612cf6565b610bb0565b61025a610cfd565b61025a61030c366004612d40565b610d43565b61025a61031f366004612da1565b610de0565b610337610332366004612dd3565b610f43565b6040516001600160601b039091168152602001610218565b61025a61035d366004612df0565b6112b1565b61025a610370366004612e3f565b6113b0565b6001546001600160a01b03165b6040516001600160a01b039091168152602001610218565b6103376103a8366004612e6b565b6113ee565b6000805160206136e9833981519152546001600160601b0316610337565b61025a6103d9366004612dd3565b611581565b61038261168f565b6102ca6103f4366004612e8b565b6117c6565b6102836000805160206136e983398151915281565b60785b60405160ff9091168152602001610218565b610382611a2f565b610382611acc565b610411611af6565b61025a610449366004612f2b565b611b6d565b61025a61045c366004612f2b565b611c05565b61028361046f366004612e3f565b611c7c565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90632efe011390606401602060405180830381865af41580156104d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104f99190612f64565b905090565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c081019190915260007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa3006040805160808101825282546001600160601b038116825260ff600160601b820481166020840152600160681b909104161515918101919091526001820180549192916060840191906105ae90612f89565b80601f01602080910402602001604051908101604052809291908181526020018280546105da90612f89565b80156106275780601f106105fc57610100808354040283529160200191610627565b820191906000526020600020905b81548152906001019060200180831161060a57829003601f168201915b50505050508152505090506040518060e00160405280610645600090565b6001600160601b0316815260200182600001516001600160601b03168152602001826020015160ff168152602001826040015115158152602001306001600160a01b0316815260200161069661168f565b6001600160a01b03168152602001826060015181525091505090565b60006000805160206136e983398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610721573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107459190612fce565b156107765780546040516301ab8b6760e21b81526001600160601b0390911660048201526024015b60405180910390fd5b306107896001546001600160a01b031690565b60405163c3c5a54760e01b81526001600160a01b038381166004830152919091169063c3c5a54790602401602060405180830381865afa1580156107d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f59190612fce565b61081d5760405163b9304b0d60e01b81526001600160a01b038216600482015260240161076d565b6001546001600160a01b0316604051636939560f60e11b81526001600160a01b038381166004830152919091169063d272ac1e90602401602060405180830381865afa158015610871573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108959190612ff6565b82546bffffffffffffffffffffffff19166001600160601b03919091161790915550565b6108c1611cbd565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b6108ee611cbd565b6108f88287611c05565b60007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0388166cffffffffffffffffffffffffff1990911617600160601b60ff8816021760ff60681b1916600160681b861515021781559050600181016109688382613062565b5050505050505050565b600080600061097f611cf6565b925092505073__$5906aa3f06c54ee09b434647963e1d1ed0$__63578c3039838e6040518363ffffffff1660e01b81526004016109bd929190613121565b602060405180830381865af41580156109da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109fe9190613143565b6040516355ee627560e01b81526001600160c01b03198216600482015290935060009073__$5906aa3f06c54ee09b434647963e1d1ed0$__906355ee627590602401602060405180830381865af4158015610a5d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a819190613160565b604051630e29a66960e21b8152600481018290529091506001600160a01b038316906338a699a490602401602060405180830381865afa158015610ac9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aed9190612fce565b610ba05760408051610120810182528e8152602081018e90528082018d9052606081018c905263ffffffff808c1660808301528a1660a082015288151560c082015287151560e0820152610100810187905290516304f2a7e960e31b81526001600160a01b038416906327953f4890610b6c9085908590600401613179565b600060405180830381600087803b158015610b8657600080fd5b505af1158015610b9a573d6000803e3d6000fd5b50505050505b5050509998505050505050505050565b73__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__63a123b37c610bd2610474565b6040516001600160e01b031960e084901b16815262ffffff9091166004820152602401602060405180830381865af4158015610c12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c369190613245565b6000805160206137098339815191528054600160401b900460ff1680610c69575080546001600160401b03808416911610155b15610c875760405163f92ee8a960e01b815260040160405180910390fd5b805468ffffffffffffffffff19166001600160401b03831617600160401b178155610cb183611d81565b805460ff60401b191681556040516001600160401b03831681527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050565b610d05611cbd565b6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b6000610d4d611cf6565b604080516060810182526001600160c01b03198816815260016020820152808201879052905163051cf2fd60e41b815291945092506001600160a01b03841691506351cf2fd090610da7908890859060ff90600401613299565b600060405180830381600087803b158015610dc157600080fd5b505af1158015610dd5573d6000803e3d6000fd5b505050505050505050565b600080610ded6078611d89565b915091506000816001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e31573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e5591906132ce565b8351604051639ad69c6760e01b81526001600160601b0382166004820152919250906000906001600160a01b03841690639ad69c679060240160a060405180830381865afa158015610eab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ecf91906132f6565b60408181018890525163ccdcd37f60e01b81529091506001600160a01b0385169063ccdcd37f90610f09908590859060ff906004016133e7565b600060405180830381600087803b158015610f2357600080fd5b505af1158015610f37573d6000803e3d6000fd5b50505050505050505050565b600080808080610f5c866078610f5761202b565b6120a2565b93509350935093506000610f6e611a2f565b604051638fbc2d8160e01b81526001600160a01b03878116600483015286811660248301529190911690638fbc2d81906044016000604051808303816000875af1158015610fc0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610fe89190810190613470565b90506000879050806001600160a01b031663138461e06040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561102a57600080fd5b505af115801561103e573d6000803e3d6000fd5b5050505081600001519650836001600160a01b031663f651dcac88836001600160a01b031663c200b8096040518163ffffffff1660e01b815260040160a060405180830381865afa158015611097573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110bb91906132f6565b6040518363ffffffff1660e01b81526004016110d8929190613542565b600060405180830381600087803b1580156110f257600080fd5b505af1158015611106573d6000803e3d6000fd5b50505050611112611acc565b6001600160a01b03166335241c06848a846001600160a01b03166317d7de7c6040518163ffffffff1660e01b8152600401600060405180830381865afa158015611160573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611188919081019061355f565b6040518463ffffffff1660e01b81526004016111a6939291906135a7565b600060405180830381600087803b1580156111c057600080fd5b505af11580156111d4573d6000803e3d6000fd5b505050506111e0611acc565b6001600160a01b031663b2bf3dc4848a846001600160a01b03166317d7de7c6040518163ffffffff1660e01b8152600401600060405180830381865afa15801561122e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611256919081019061355f565b6040518463ffffffff1660e01b8152600401611274939291906135a7565b600060405180830381600087803b15801561128e57600080fd5b505af11580156112a2573d6000803e3d6000fd5b50505050505050505050919050565b6000805160206137098339815191528054600160401b810460ff1615906001600160401b03166000811580156112e45750825b90506000826001600160401b031660011480156113005750303b155b90508115801561130e575080155b1561132c5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561135657845460ff60401b1916600160401b1785555b611360878761247b565b83156113a757845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2906020015b60405180910390a15b50505050505050565b60405162461bcd60e51b81526020600482015260136024820152721393d517d25354131153515395115117d65155606a1b604482015260640161076d565b60008060006113fb611cf6565b9250925050611408611a2f565b6001600160a01b03166357a8fba76040518060e00160405280611429600090565b6001600160601b03168152602001856001600160601b0316815260200161144e607a90565b60ff16815260200160011515815260200160006001600160a01b03168152602001896001600160a01b03168152602001604051806020016040528060008152508152506040518263ffffffff1660e01b81526004016114ad919061299b565b6020604051808303816000875af11580156114cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114f09190612ff6565b604080516060810182526001600160c01b03198816815260016020820152808201879052905163b405b76f60e01b8152919450906001600160a01b0383169063b405b76f9061154590879085906004016135e3565b600060405180830381600087803b15801561155f57600080fd5b505af1158015611573573d6000803e3d6000fd5b505050505050509392505050565b611589611cbd565b806001600160a01b03163b6000036115bf5760405163fdeac91f60e01b81526001600160a01b038216600482015260240161076d565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b815263230c0c8160e11b60048201526301ffc9a790602401602060405180830381865afa925050508015611639575060408051601f3d908101601f1916820190925261163691810190612fce565b60015b6116615760405163fdeac91f60e01b81526001600160a01b038216600482015260240161076d565b8061168a5760405163fdeac91f60e01b81526001600160a01b038316600482015260240161076d565b505b50565b6000806000805160206136e983398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af41580156116ff573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117239190612fce565b156117b0576001546001600160a01b03168154604051631c5da14d60e11b81526001600160601b0390911660048201526001600160a01b0391909116906338bb429a90602401602060405180830381865afa158015611786573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117aa91906132ce565b91505090565b54600160601b90046001600160a01b0316919050565b60008060006117d3611cf6565b925092505060008851116118295760405162461bcd60e51b815260206004820152601a60248201527f4552524f523a4453562d3033303a434f44455f494e56414c4944000000000000604482015260640161076d565b64ffffffffff851661187d5760405162461bcd60e51b815260206004820152601c60248201527f4552524f523a4453562d3033313a4558504952595f41545f5a45524f00000000604482015260640161076d565b604051631f849e6b60e11b815273__$9f290d768183857d0249ab5bb54619c5ab$__90633f093cd6906118b69085908c90600401613121565b602060405180830381865af41580156118d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118f79190613143565b6040805160e0810182526001600160601b038c168152602081018b90528082018a905263ffffffff891660608201526000608082015264ffffffffff881660a082015260c0810187905290516355ee627560e01b81526001600160c01b031983166004820152919450906001600160a01b038316906354d747a89073__$9f290d768183857d0249ab5bb54619c5ab$__906355ee627590602401602060405180830381865af41580156119ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119d29190613160565b836040518363ffffffff1660e01b81526004016119f0929190613605565b600060405180830381600087803b158015611a0a57600080fd5b505af1158015611a1e573d6000803e3d6000fd5b505050505050509695505050505050565b600080611a446001546001600160a01b031690565b6001600160a01b031663d39e604360285b611a5d611af6565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa158015611aa2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ac691906132ce565b92915050565b600080611ae16001546001600160a01b031690565b6001600160a01b031663d39e60436046611a55565b604051632392b61b60e21b81526003600482015260009073__$9dab98ad7ae1a426029e5739f922230a41$__90638e4ad86c90602401602060405180830381865af4158015611b49573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104f9919061369c565b611b75611cbd565b611bf582836001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa158015611bb7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bdb9190612ff6565b603c600085604051806020016040528060008152506108e6565b61168a637b6a51fd60e01b6108b9565b611c0d611cbd565b611c1681611581565b611c1e610cfd565b6001600160a01b038216611c455760405163f17ef42d60e01b815260040160405180910390fd5b506000805160206136e983398151915280546001600160601b0316600160601b6001600160a01b0390931692909202919091179055565b60405162461bcd60e51b81526020600482015260136024820152721393d517d25354131153515395115117d65155606a1b604482015260009060640161076d565b60008051602061370983398151915254600160401b900460ff16611cf457604051631afcd79f60e31b815260040160405180910390fd5b565b600080600080611d04612599565b9296509094509092509050611d218160785b60ff90811691161490565b611d7b5760405162461bcd60e51b815260206004820152602560248201527f4552524f523a5052532d3033313a43414c4c45525f4e4f545f444953545255426044820152642aaa24a7a760d91b606482015260840161076d565b50909192565b6101da611cbd565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c082015260015490919081906001600160a01b03166040516308b09a5f60e41b81523360048201529091506001600160a01b03821690638b09a5f090602401600060405180830381865afa158015611e18573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611e409190810190613470565b9250611e5683604001518560ff90811691161490565b611e985760405162461bcd60e51b815260206004820152601360248201527213d0929150d517d516541157d2539590531251606a1b604482015260640161076d565b60208301516040516305247a1760e51b81526001600160601b0390911660048201526000906001600160a01b0383169063a48f42e090602401600060405180830381865afa158015611eee573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611f169190810190613470565b6080015190508092506000836001600160a01b031663bf7e214f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611f5f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f8391906132ce565b6080860151604051629b7b3560e61b81526001600160a01b0391821660048201529192508216906326decd4090602401602060405180830381865afa158015611fd0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ff49190612fce565b1561202357608085015160405163d53987e560e01b81526001600160a01b03909116600482015260240161076d565b505050915091565b6040516368aebf7b60e01b81526064600482015260009073__$cd131c2b3ba46b9dbe046aaf4458b9777d$__906368aebf7b90602401602060405180830381865af415801561207e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104f99190613245565b6000338180806120ba6001546001600160a01b031690565b604051636939560f60e11b81526001600160a01b038a81166004830152919091169063d272ac1e90602401602060405180830381865afa158015612102573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121269190612ff6565b6040516330b8415f60e01b81526001600160601b038216600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015612181573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121a59190612fce565b156121dc5760405162b8422b60e71b81526001600160a01b03891660048201526001600160601b038216602482015260440161076d565b6040516301ffc9a760e01b81526262516360e41b60048201528895506001600160a01b038616906301ffc9a790602401602060405180830381865afa158015612229573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061224d9190612fce565b612275576040516359bff0e360e11b81526001600160a01b038916600482015260240161076d565b6000856001600160a01b0316630fec111c6040518163ffffffff1660e01b8152600401600060405180830381865afa1580156122b5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526122dd9190810190613470565b90506122f481604001518960ff9081169116141590565b15612334576040808201519051634a2e948760e11b81526001600160a01b038b16600482015260ff808b166024830152909116604482015260640161076d565b60a08101516001600160a01b03868116908216146123865760a0820151604051632b50a20960e21b81526001600160a01b03808d1660048301529182166024820152908716604482015260640161076d565b8160200151935061239684612883565b945060006123a2611acc565b60405163081deaed60e11b81526001600160a01b0389811660048301526001600160401b038c1660248301528881166044830152919091169063103bd5da90606401602060405180830381865afa158015612401573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124259190612fce565b90508061246e57604051636af540d960e01b81526001600160601b03861660048201526001600160401b038a1660248201526001600160a01b038816604482015260640161076d565b5050505093509350935093565b6000805160206137098339815191528054600160401b810460ff1615906001600160401b03166000811580156124ae5750825b90506000826001600160401b031660011480156124ca5750303b155b9050811580156124d8575080155b156124f65760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561252057845460ff60401b1916600160401b1785555b6000808780602001905181019061253791906136b9565b92509050612545818a611b6d565b6125556342527cdf60e01b6108b9565b505083156113a757845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200161139e565b33600080806125b06001546001600160a01b031690565b604051636939560f60e11b81526001600160a01b038681166004830152919091169063d272ac1e90602401602060405180830381865afa1580156125f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061261c9190612ff6565b6040516330b8415f60e01b81526001600160601b038216600482015290935073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015612677573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061269b9190612fce565b6126e75760405162461bcd60e51b815260206004820152601c60248201527f4552524f523a5352562d3033303a43414c4c45525f554e4b4e4f574e00000000604482015260640161076d565b60006126fb6001546001600160a01b031690565b6040516305247a1760e51b81526001600160601b03861660048201526001600160a01b03919091169063a48f42e090602401600060405180830381865afa15801561274a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526127729190810190613470565b905080604001519250600061278f6001546001600160a01b031690565b60208301516040516305247a1760e51b81526001600160601b0390911660048201526001600160a01b03919091169063a48f42e090602401600060405180830381865afa1580156127e4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261280c9190810190613470565b905061281e8160400151611d16604690565b6128745760405162461bcd60e51b815260206004820152602160248201527f4552524f523a5352562d3033313a504152454e545f4e4f545f494e5354414e436044820152604560f81b606482015260840161076d565b80608001519250505090919293565b6000806128986001546001600160a01b031690565b6040516305247a1760e51b81526001600160601b03851660048201526001600160a01b03919091169063a48f42e090602401600060405180830381865afa1580156128e7573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261290f9190810190613470565b608001519392505050565b60006020828403121561292c57600080fd5b81356001600160e01b03198116811461294457600080fd5b9392505050565b60005b8381101561296657818101518382015260200161294e565b50506000910152565b6000815180845261298781602086016020860161294b565b601f01601f19169290920160200192915050565b6020815260006001600160601b038084511660208401528060208501511660408401525060ff604084015116606083015260608301511515608083015260018060a01b0360808401511660a083015260a0830151612a0460c08401826001600160a01b03169052565b5060c083015160e080840152612a1e61010084018261296f565b949350505050565b6001600160a01b038116811461168c57600080fd5b6001600160601b038116811461168c57600080fd5b60ff8116811461168c57600080fd5b801515811461168c57600080fd5b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b0381118282101715612aa557612aa5612a6d565b60405290565b60405160e081016001600160401b0381118282101715612aa557612aa5612a6d565b604051601f8201601f191681016001600160401b0381118282101715612af557612af5612a6d565b604052919050565b60006001600160401b03821115612b1657612b16612a6d565b50601f01601f191660200190565b600082601f830112612b3557600080fd5b8135612b48612b4382612afd565b612acd565b818152846020838601011115612b5d57600080fd5b816020850160208301376000918101602001919091529392505050565b60008060008060008060c08789031215612b9357600080fd5b8635612b9e81612a26565b95506020870135612bae81612a3b565b94506040870135612bbe81612a50565b93506060870135612bce81612a5f565b92506080870135612bde81612a26565b915060a08701356001600160401b03811115612bf957600080fd5b612c0589828a01612b24565b9150509295509295509295565b803563ffffffff81168114612c2657600080fd5b919050565b60008060008060008060008060006101208a8c031215612c4a57600080fd5b89356001600160401b0380821115612c6157600080fd5b612c6d8d838e01612b24565b9a5060208c0135995060408c0135985060608c01359750612c9060808d01612c12565b9650612c9e60a08d01612c12565b955060c08c01359150612cb082612a5f565b90935060e08b013590612cc282612a5f565b9092506101008b01359080821115612cd957600080fd5b50612ce68c828d01612b24565b9150509295985092959850929598565b600060208284031215612d0857600080fd5b81356001600160401b03811115612d1e57600080fd5b612a1e84828501612b24565b6001600160c01b03198116811461168c57600080fd5b600080600060608486031215612d5557600080fd5b8335612d6081612a3b565b92506020840135612d7081612d2a565b915060408401356001600160401b03811115612d8b57600080fd5b612d9786828701612b24565b9150509250925092565b600060408284031215612db357600080fd5b612dbb612a83565b82358152602083013560208201528091505092915050565b600060208284031215612de557600080fd5b813561294481612a26565b60008060408385031215612e0357600080fd5b8235612e0e81612a26565b915060208301356001600160401b03811115612e2957600080fd5b612e3585828601612b24565b9150509250929050565b60008060408385031215612e5257600080fd5b8235612e5d81612d2a565b946020939093013593505050565b600080600060608486031215612e8057600080fd5b8335612d6081612a26565b60008060008060008060c08789031215612ea457600080fd5b8635612eaf81612a3b565b955060208701356001600160401b0380821115612ecb57600080fd5b612ed78a838b01612b24565b965060408901359550612eec60608a01612c12565b94506080890135915064ffffffffff82168214612f0857600080fd5b90925060a08801359080821115612f1e57600080fd5b50612c0589828a01612b24565b60008060408385031215612f3e57600080fd5b8235612f4981612a26565b91506020830135612f5981612a26565b809150509250929050565b600060208284031215612f7657600080fd5b815162ffffff8116811461294457600080fd5b600181811c90821680612f9d57607f821691505b602082108103612fbd57634e487b7160e01b600052602260045260246000fd5b50919050565b8051612c2681612a5f565b600060208284031215612fe057600080fd5b815161294481612a5f565b8051612c2681612a3b565b60006020828403121561300857600080fd5b815161294481612a3b565b601f82111561305d57600081815260208120601f850160051c8101602086101561303a5750805b601f850160051c820191505b8181101561305957828155600101613046565b5050505b505050565b81516001600160401b0381111561307b5761307b612a6d565b61308f816130898454612f89565b84613013565b602080601f8311600181146130c457600084156130ac5750858301515b600019600386901b1c1916600185901b178555613059565b600085815260208120601f198616915b828110156130f3578886015182559484019460019091019084016130d4565b50858210156131115787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6001600160601b0383168152604060208201526000612a1e604083018461296f565b60006020828403121561315557600080fd5b815161294481612d2a565b60006020828403121561317257600080fd5b5051919050565b828152604060208201526000825161012080604085015261319e61016085018361296f565b91506020850151606085015260408501516080850152606085015160a085015260808501516131d560c086018263ffffffff169052565b5060a085015163ffffffff811660e08601525060c08501516101006131fd8187018315159052565b60e087015115159286019290925250840151603f1984830301610140850152613226828261296f565b9695505050505050565b6001600160401b038116811461168c57600080fd5b60006020828403121561325757600080fd5b815161294481613230565b6001600160401b0360c01b81511682526020810151151560208301526000604082015160606040850152612a1e606085018261296f565b6001600160601b03841681526060602082015260006132bb6060830185613262565b905060ff83166040830152949350505050565b6000602082840312156132e057600080fd5b815161294481612a26565b8051612c2681612a26565b600081830360a081121561330957600080fd5b604051608081018181106001600160401b038211171561332b5761332b612a6d565b604052835161333981612a3b565b8152602084015161334981612a26565b60208201526040603f198301121561336057600080fd5b613368612a83565b6040858101518252606086015160208301528201526080840151915061338d82612a26565b60608101919091529392505050565b80516001600160601b031682526020808201516001600160a01b0390811682850152604080840151805191860191909152909101516060808501919091529091015116608090910152565b6001600160601b038416815260e08101613404602083018561339c565b60ff831660c0830152949350505050565b8051612c2681612a50565b600061342e612b4384612afd565b905082815283838301111561344257600080fd5b61294483602083018461294b565b600082601f83011261346157600080fd5b61294483835160208501613420565b60006020828403121561348257600080fd5b81516001600160401b038082111561349957600080fd5b9083019060e082860312156134ad57600080fd5b6134b5612aab565b6134be83612feb565b81526134cc60208401612feb565b60208201526134dd60408401613415565b60408201526134ee60608401612fc3565b60608201526134ff608084016132eb565b608082015261351060a084016132eb565b60a082015260c08301518281111561352757600080fd5b61353387828601613450565b60c08301525095945050505050565b6001600160601b038316815260c08101612944602083018461339c565b60006020828403121561357157600080fd5b81516001600160401b0381111561358757600080fd5b8201601f8101841361359857600080fd5b612a1e84825160208401613420565b6001600160601b03841681526001600160a01b03831660208201526060604082018190526000906135da9083018461296f565b95945050505050565b6001600160601b0383168152604060208201526000612a1e6040830184613262565b828152604060208201526001600160601b0382511660408201526000602083015160e0606084015261363b61012084018261296f565b90506040840151608084015263ffffffff60608501511660a0840152608084015161366e60c085018263ffffffff169052565b5060a084015164ffffffffff1660e084015260c0840151838203603f1901610100850152613226828261296f565b6000602082840312156136ae57600080fd5b815161294481612a50565b600080604083850312156136cc57600080fd5b82516136d781612a26565b6020840151909250612f5981612a2656fe07ebcf49758b6ed3af50fa146bec0abe157c0218fe65dc0874c286e9d5da4f00f0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00a2646970667358221220ab3dc240e044069d9e8aa48fa3cc8fdad6062a0a1460e227771a8e1baea8367e64736f6c63430008140033",
790
+ "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101da5760003560e01c80635ab1bd5311610104578063b68d1809116100a2578063ea86657211610071578063ea8665721461043b578063f21de1e814610375578063f7c34ee01461044e578063f7d39dea1461046157600080fd5b8063b68d18091461040e578063caf4e3d414610423578063cc9fc59a1461042b578063cde749f41461043357600080fd5b8063675393bf116100de578063675393bf146103cb578063893d20e8146103de5780638dd2b781146103e6578063ada9652e146103f957600080fd5b80635ab1bd53146103755780635dcb3bae1461039a578063644c45e0146103ad57600080fd5b80632b5198b11161017c5780633f52c0f61161014b5780633f52c0f6146103115780634420e4861461032457806349bb9e4b1461034f5780634cf30a841461036257600080fd5b80632b5198b1146102b7578063329d6e74146102e357806336fc697e146102f65780633d683fd9146102fe57600080fd5b8063138461e0116101b8578063138461e0146102525780631eff4b221461025c578063214cdb801461029157806327bb7a33146102a457600080fd5b806301ffc9a7146101df5780630d8e6e2c146102215780630fec111c1461023d575b600080fd5b61020c6101ed36600461291a565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b610229610474565b60405162ffffff9091168152602001610218565b6102456104fe565b604051610218919061299b565b61025a6106b2565b005b6102837f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b604051908152602001610218565b61025a61029f36600461291a565b6108b9565b61025a6102b2366004612b7a565b6108e6565b6102ca6102c5366004612c2b565b610972565b6040516001600160c01b03199091168152602001610218565b61025a6102f1366004612cf6565b610bb0565b61025a610cfd565b61025a61030c366004612d40565b610d43565b61025a61031f366004612da1565b610de0565b610337610332366004612dd3565b610f43565b6040516001600160601b039091168152602001610218565b61025a61035d366004612df0565b6112b1565b61025a610370366004612e3f565b6113b0565b6001546001600160a01b03165b6040516001600160a01b039091168152602001610218565b6103376103a8366004612e6b565b6113ee565b6000805160206136e9833981519152546001600160601b0316610337565b61025a6103d9366004612dd3565b611581565b61038261168f565b6102ca6103f4366004612e8b565b6117c6565b6102836000805160206136e983398151915281565b60785b60405160ff9091168152602001610218565b610382611a2f565b610382611acc565b610411611af6565b61025a610449366004612f2b565b611b6d565b61025a61045c366004612f2b565b611c05565b61028361046f366004612e3f565b611c7c565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90632efe011390606401602060405180830381865af41580156104d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104f99190612f64565b905090565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c081019190915260007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa3006040805160808101825282546001600160601b038116825260ff600160601b820481166020840152600160681b909104161515918101919091526001820180549192916060840191906105ae90612f89565b80601f01602080910402602001604051908101604052809291908181526020018280546105da90612f89565b80156106275780601f106105fc57610100808354040283529160200191610627565b820191906000526020600020905b81548152906001019060200180831161060a57829003601f168201915b50505050508152505090506040518060e00160405280610645600090565b6001600160601b0316815260200182600001516001600160601b03168152602001826020015160ff168152602001826040015115158152602001306001600160a01b0316815260200161069661168f565b6001600160a01b03168152602001826060015181525091505090565b60006000805160206136e983398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610721573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107459190612fce565b156107765780546040516301ab8b6760e21b81526001600160601b0390911660048201526024015b60405180910390fd5b306107896001546001600160a01b031690565b60405163c3c5a54760e01b81526001600160a01b038381166004830152919091169063c3c5a54790602401602060405180830381865afa1580156107d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f59190612fce565b61081d5760405163b9304b0d60e01b81526001600160a01b038216600482015260240161076d565b6001546001600160a01b0316604051636939560f60e11b81526001600160a01b038381166004830152919091169063d272ac1e90602401602060405180830381865afa158015610871573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108959190612ff6565b82546bffffffffffffffffffffffff19166001600160601b03919091161790915550565b6108c1611cbd565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b6108ee611cbd565b6108f88287611c05565b60007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0388166cffffffffffffffffffffffffff1990911617600160601b60ff8816021760ff60681b1916600160681b861515021781559050600181016109688382613062565b5050505050505050565b600080600061097f611cf6565b925092505073__$5906aa3f06c54ee09b434647963e1d1ed0$__63578c3039838e6040518363ffffffff1660e01b81526004016109bd929190613121565b602060405180830381865af41580156109da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109fe9190613143565b6040516355ee627560e01b81526001600160c01b03198216600482015290935060009073__$5906aa3f06c54ee09b434647963e1d1ed0$__906355ee627590602401602060405180830381865af4158015610a5d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a819190613160565b604051630e29a66960e21b8152600481018290529091506001600160a01b038316906338a699a490602401602060405180830381865afa158015610ac9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aed9190612fce565b610ba05760408051610120810182528e8152602081018e90528082018d9052606081018c905263ffffffff808c1660808301528a1660a082015288151560c082015287151560e0820152610100810187905290516304f2a7e960e31b81526001600160a01b038416906327953f4890610b6c9085908590600401613179565b600060405180830381600087803b158015610b8657600080fd5b505af1158015610b9a573d6000803e3d6000fd5b50505050505b5050509998505050505050505050565b73__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__63a123b37c610bd2610474565b6040516001600160e01b031960e084901b16815262ffffff9091166004820152602401602060405180830381865af4158015610c12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c369190613245565b6000805160206137098339815191528054600160401b900460ff1680610c69575080546001600160401b03808416911610155b15610c875760405163f92ee8a960e01b815260040160405180910390fd5b805468ffffffffffffffffff19166001600160401b03831617600160401b178155610cb183611d81565b805460ff60401b191681556040516001600160401b03831681527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050565b610d05611cbd565b6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b6000610d4d611cf6565b604080516060810182526001600160c01b03198816815260016020820152808201879052905163051cf2fd60e41b815291945092506001600160a01b03841691506351cf2fd090610da7908890859060ff90600401613299565b600060405180830381600087803b158015610dc157600080fd5b505af1158015610dd5573d6000803e3d6000fd5b505050505050505050565b600080610ded6078611d89565b915091506000816001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e31573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e5591906132ce565b8351604051639ad69c6760e01b81526001600160601b0382166004820152919250906000906001600160a01b03841690639ad69c679060240160a060405180830381865afa158015610eab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ecf91906132f6565b60408181018890525163ccdcd37f60e01b81529091506001600160a01b0385169063ccdcd37f90610f09908590859060ff906004016133e7565b600060405180830381600087803b158015610f2357600080fd5b505af1158015610f37573d6000803e3d6000fd5b50505050505050505050565b600080808080610f5c866078610f5761202b565b6120a2565b93509350935093506000610f6e611a2f565b604051638fbc2d8160e01b81526001600160a01b03878116600483015286811660248301529190911690638fbc2d81906044016000604051808303816000875af1158015610fc0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610fe89190810190613470565b90506000879050806001600160a01b031663138461e06040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561102a57600080fd5b505af115801561103e573d6000803e3d6000fd5b5050505081600001519650836001600160a01b031663f651dcac88836001600160a01b031663c200b8096040518163ffffffff1660e01b815260040160a060405180830381865afa158015611097573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110bb91906132f6565b6040518363ffffffff1660e01b81526004016110d8929190613542565b600060405180830381600087803b1580156110f257600080fd5b505af1158015611106573d6000803e3d6000fd5b50505050611112611acc565b6001600160a01b03166335241c06848a846001600160a01b03166317d7de7c6040518163ffffffff1660e01b8152600401600060405180830381865afa158015611160573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611188919081019061355f565b6040518463ffffffff1660e01b81526004016111a6939291906135a7565b600060405180830381600087803b1580156111c057600080fd5b505af11580156111d4573d6000803e3d6000fd5b505050506111e0611acc565b6001600160a01b031663b2bf3dc4848a846001600160a01b03166317d7de7c6040518163ffffffff1660e01b8152600401600060405180830381865afa15801561122e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611256919081019061355f565b6040518463ffffffff1660e01b8152600401611274939291906135a7565b600060405180830381600087803b15801561128e57600080fd5b505af11580156112a2573d6000803e3d6000fd5b50505050505050505050919050565b6000805160206137098339815191528054600160401b810460ff1615906001600160401b03166000811580156112e45750825b90506000826001600160401b031660011480156113005750303b155b90508115801561130e575080155b1561132c5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561135657845460ff60401b1916600160401b1785555b611360878761247b565b83156113a757845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2906020015b60405180910390a15b50505050505050565b60405162461bcd60e51b81526020600482015260136024820152721393d517d25354131153515395115117d65155606a1b604482015260640161076d565b60008060006113fb611cf6565b9250925050611408611a2f565b6001600160a01b03166357a8fba76040518060e00160405280611429600090565b6001600160601b03168152602001856001600160601b0316815260200161144e607a90565b60ff16815260200160011515815260200160006001600160a01b03168152602001896001600160a01b03168152602001604051806020016040528060008152508152506040518263ffffffff1660e01b81526004016114ad919061299b565b6020604051808303816000875af11580156114cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114f09190612ff6565b604080516060810182526001600160c01b03198816815260016020820152808201879052905163b405b76f60e01b8152919450906001600160a01b0383169063b405b76f9061154590879085906004016135e3565b600060405180830381600087803b15801561155f57600080fd5b505af1158015611573573d6000803e3d6000fd5b505050505050509392505050565b611589611cbd565b806001600160a01b03163b6000036115bf5760405163fdeac91f60e01b81526001600160a01b038216600482015260240161076d565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b815263230c0c8160e11b60048201526301ffc9a790602401602060405180830381865afa925050508015611639575060408051601f3d908101601f1916820190925261163691810190612fce565b60015b6116615760405163fdeac91f60e01b81526001600160a01b038216600482015260240161076d565b8061168a5760405163fdeac91f60e01b81526001600160a01b038316600482015260240161076d565b505b50565b6000806000805160206136e983398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af41580156116ff573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117239190612fce565b156117b0576001546001600160a01b03168154604051631c5da14d60e11b81526001600160601b0390911660048201526001600160a01b0391909116906338bb429a90602401602060405180830381865afa158015611786573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117aa91906132ce565b91505090565b54600160601b90046001600160a01b0316919050565b60008060006117d3611cf6565b925092505060008851116118295760405162461bcd60e51b815260206004820152601a60248201527f4552524f523a4453562d3033303a434f44455f494e56414c4944000000000000604482015260640161076d565b64ffffffffff851661187d5760405162461bcd60e51b815260206004820152601c60248201527f4552524f523a4453562d3033313a4558504952595f41545f5a45524f00000000604482015260640161076d565b604051631f849e6b60e11b815273__$9f290d768183857d0249ab5bb54619c5ab$__90633f093cd6906118b69085908c90600401613121565b602060405180830381865af41580156118d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118f79190613143565b6040805160e0810182526001600160601b038c168152602081018b90528082018a905263ffffffff891660608201526000608082015264ffffffffff881660a082015260c0810187905290516355ee627560e01b81526001600160c01b031983166004820152919450906001600160a01b038316906354d747a89073__$9f290d768183857d0249ab5bb54619c5ab$__906355ee627590602401602060405180830381865af41580156119ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119d29190613160565b836040518363ffffffff1660e01b81526004016119f0929190613605565b600060405180830381600087803b158015611a0a57600080fd5b505af1158015611a1e573d6000803e3d6000fd5b505050505050509695505050505050565b600080611a446001546001600160a01b031690565b6001600160a01b031663d39e604360285b611a5d611af6565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa158015611aa2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ac691906132ce565b92915050565b600080611ae16001546001600160a01b031690565b6001600160a01b031663d39e60436046611a55565b604051632392b61b60e21b81526003600482015260009073__$9dab98ad7ae1a426029e5739f922230a41$__90638e4ad86c90602401602060405180830381865af4158015611b49573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104f9919061369c565b611b75611cbd565b611bf582836001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa158015611bb7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bdb9190612ff6565b603c600085604051806020016040528060008152506108e6565b61168a637b6a51fd60e01b6108b9565b611c0d611cbd565b611c1681611581565b611c1e610cfd565b6001600160a01b038216611c455760405163f17ef42d60e01b815260040160405180910390fd5b506000805160206136e983398151915280546001600160601b0316600160601b6001600160a01b0390931692909202919091179055565b60405162461bcd60e51b81526020600482015260136024820152721393d517d25354131153515395115117d65155606a1b604482015260009060640161076d565b60008051602061370983398151915254600160401b900460ff16611cf457604051631afcd79f60e31b815260040160405180910390fd5b565b600080600080611d04612599565b9296509094509092509050611d218160785b60ff90811691161490565b611d7b5760405162461bcd60e51b815260206004820152602560248201527f4552524f523a5052532d3033313a43414c4c45525f4e4f545f444953545255426044820152642aaa24a7a760d91b606482015260840161076d565b50909192565b6101da611cbd565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c082015260015490919081906001600160a01b03166040516308b09a5f60e41b81523360048201529091506001600160a01b03821690638b09a5f090602401600060405180830381865afa158015611e18573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611e409190810190613470565b9250611e5683604001518560ff90811691161490565b611e985760405162461bcd60e51b815260206004820152601360248201527213d0929150d517d516541157d2539590531251606a1b604482015260640161076d565b60208301516040516305247a1760e51b81526001600160601b0390911660048201526000906001600160a01b0383169063a48f42e090602401600060405180830381865afa158015611eee573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611f169190810190613470565b6080015190508092506000836001600160a01b031663bf7e214f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611f5f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f8391906132ce565b6080860151604051629b7b3560e61b81526001600160a01b0391821660048201529192508216906326decd4090602401602060405180830381865afa158015611fd0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ff49190612fce565b1561202357608085015160405163d53987e560e01b81526001600160a01b03909116600482015260240161076d565b505050915091565b6040516368aebf7b60e01b81526064600482015260009073__$cd131c2b3ba46b9dbe046aaf4458b9777d$__906368aebf7b90602401602060405180830381865af415801561207e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104f99190613245565b6000338180806120ba6001546001600160a01b031690565b604051636939560f60e11b81526001600160a01b038a81166004830152919091169063d272ac1e90602401602060405180830381865afa158015612102573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121269190612ff6565b6040516330b8415f60e01b81526001600160601b038216600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015612181573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121a59190612fce565b156121dc5760405162b8422b60e71b81526001600160a01b03891660048201526001600160601b038216602482015260440161076d565b6040516301ffc9a760e01b81526262516360e41b60048201528895506001600160a01b038616906301ffc9a790602401602060405180830381865afa158015612229573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061224d9190612fce565b612275576040516359bff0e360e11b81526001600160a01b038916600482015260240161076d565b6000856001600160a01b0316630fec111c6040518163ffffffff1660e01b8152600401600060405180830381865afa1580156122b5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526122dd9190810190613470565b90506122f481604001518960ff9081169116141590565b15612334576040808201519051634a2e948760e11b81526001600160a01b038b16600482015260ff808b166024830152909116604482015260640161076d565b60a08101516001600160a01b03868116908216146123865760a0820151604051632b50a20960e21b81526001600160a01b03808d1660048301529182166024820152908716604482015260640161076d565b8160200151935061239684612883565b945060006123a2611acc565b60405163081deaed60e11b81526001600160a01b0389811660048301526001600160401b038c1660248301528881166044830152919091169063103bd5da90606401602060405180830381865afa158015612401573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124259190612fce565b90508061246e57604051636af540d960e01b81526001600160601b03861660048201526001600160401b038a1660248201526001600160a01b038816604482015260640161076d565b5050505093509350935093565b6000805160206137098339815191528054600160401b810460ff1615906001600160401b03166000811580156124ae5750825b90506000826001600160401b031660011480156124ca5750303b155b9050811580156124d8575080155b156124f65760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561252057845460ff60401b1916600160401b1785555b6000808780602001905181019061253791906136b9565b92509050612545818a611b6d565b6125556342527cdf60e01b6108b9565b505083156113a757845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200161139e565b33600080806125b06001546001600160a01b031690565b604051636939560f60e11b81526001600160a01b038681166004830152919091169063d272ac1e90602401602060405180830381865afa1580156125f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061261c9190612ff6565b6040516330b8415f60e01b81526001600160601b038216600482015290935073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015612677573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061269b9190612fce565b6126e75760405162461bcd60e51b815260206004820152601c60248201527f4552524f523a5352562d3033303a43414c4c45525f554e4b4e4f574e00000000604482015260640161076d565b60006126fb6001546001600160a01b031690565b6040516305247a1760e51b81526001600160601b03861660048201526001600160a01b03919091169063a48f42e090602401600060405180830381865afa15801561274a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526127729190810190613470565b905080604001519250600061278f6001546001600160a01b031690565b60208301516040516305247a1760e51b81526001600160601b0390911660048201526001600160a01b03919091169063a48f42e090602401600060405180830381865afa1580156127e4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261280c9190810190613470565b905061281e8160400151611d16604690565b6128745760405162461bcd60e51b815260206004820152602160248201527f4552524f523a5352562d3033313a504152454e545f4e4f545f494e5354414e436044820152604560f81b606482015260840161076d565b80608001519250505090919293565b6000806128986001546001600160a01b031690565b6040516305247a1760e51b81526001600160601b03851660048201526001600160a01b03919091169063a48f42e090602401600060405180830381865afa1580156128e7573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261290f9190810190613470565b608001519392505050565b60006020828403121561292c57600080fd5b81356001600160e01b03198116811461294457600080fd5b9392505050565b60005b8381101561296657818101518382015260200161294e565b50506000910152565b6000815180845261298781602086016020860161294b565b601f01601f19169290920160200192915050565b6020815260006001600160601b038084511660208401528060208501511660408401525060ff604084015116606083015260608301511515608083015260018060a01b0360808401511660a083015260a0830151612a0460c08401826001600160a01b03169052565b5060c083015160e080840152612a1e61010084018261296f565b949350505050565b6001600160a01b038116811461168c57600080fd5b6001600160601b038116811461168c57600080fd5b60ff8116811461168c57600080fd5b801515811461168c57600080fd5b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b0381118282101715612aa557612aa5612a6d565b60405290565b60405160e081016001600160401b0381118282101715612aa557612aa5612a6d565b604051601f8201601f191681016001600160401b0381118282101715612af557612af5612a6d565b604052919050565b60006001600160401b03821115612b1657612b16612a6d565b50601f01601f191660200190565b600082601f830112612b3557600080fd5b8135612b48612b4382612afd565b612acd565b818152846020838601011115612b5d57600080fd5b816020850160208301376000918101602001919091529392505050565b60008060008060008060c08789031215612b9357600080fd5b8635612b9e81612a26565b95506020870135612bae81612a3b565b94506040870135612bbe81612a50565b93506060870135612bce81612a5f565b92506080870135612bde81612a26565b915060a08701356001600160401b03811115612bf957600080fd5b612c0589828a01612b24565b9150509295509295509295565b803563ffffffff81168114612c2657600080fd5b919050565b60008060008060008060008060006101208a8c031215612c4a57600080fd5b89356001600160401b0380821115612c6157600080fd5b612c6d8d838e01612b24565b9a5060208c0135995060408c0135985060608c01359750612c9060808d01612c12565b9650612c9e60a08d01612c12565b955060c08c01359150612cb082612a5f565b90935060e08b013590612cc282612a5f565b9092506101008b01359080821115612cd957600080fd5b50612ce68c828d01612b24565b9150509295985092959850929598565b600060208284031215612d0857600080fd5b81356001600160401b03811115612d1e57600080fd5b612a1e84828501612b24565b6001600160c01b03198116811461168c57600080fd5b600080600060608486031215612d5557600080fd5b8335612d6081612a3b565b92506020840135612d7081612d2a565b915060408401356001600160401b03811115612d8b57600080fd5b612d9786828701612b24565b9150509250925092565b600060408284031215612db357600080fd5b612dbb612a83565b82358152602083013560208201528091505092915050565b600060208284031215612de557600080fd5b813561294481612a26565b60008060408385031215612e0357600080fd5b8235612e0e81612a26565b915060208301356001600160401b03811115612e2957600080fd5b612e3585828601612b24565b9150509250929050565b60008060408385031215612e5257600080fd5b8235612e5d81612d2a565b946020939093013593505050565b600080600060608486031215612e8057600080fd5b8335612d6081612a26565b60008060008060008060c08789031215612ea457600080fd5b8635612eaf81612a3b565b955060208701356001600160401b0380821115612ecb57600080fd5b612ed78a838b01612b24565b965060408901359550612eec60608a01612c12565b94506080890135915064ffffffffff82168214612f0857600080fd5b90925060a08801359080821115612f1e57600080fd5b50612c0589828a01612b24565b60008060408385031215612f3e57600080fd5b8235612f4981612a26565b91506020830135612f5981612a26565b809150509250929050565b600060208284031215612f7657600080fd5b815162ffffff8116811461294457600080fd5b600181811c90821680612f9d57607f821691505b602082108103612fbd57634e487b7160e01b600052602260045260246000fd5b50919050565b8051612c2681612a5f565b600060208284031215612fe057600080fd5b815161294481612a5f565b8051612c2681612a3b565b60006020828403121561300857600080fd5b815161294481612a3b565b601f82111561305d57600081815260208120601f850160051c8101602086101561303a5750805b601f850160051c820191505b8181101561305957828155600101613046565b5050505b505050565b81516001600160401b0381111561307b5761307b612a6d565b61308f816130898454612f89565b84613013565b602080601f8311600181146130c457600084156130ac5750858301515b600019600386901b1c1916600185901b178555613059565b600085815260208120601f198616915b828110156130f3578886015182559484019460019091019084016130d4565b50858210156131115787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6001600160601b0383168152604060208201526000612a1e604083018461296f565b60006020828403121561315557600080fd5b815161294481612d2a565b60006020828403121561317257600080fd5b5051919050565b828152604060208201526000825161012080604085015261319e61016085018361296f565b91506020850151606085015260408501516080850152606085015160a085015260808501516131d560c086018263ffffffff169052565b5060a085015163ffffffff811660e08601525060c08501516101006131fd8187018315159052565b60e087015115159286019290925250840151603f1984830301610140850152613226828261296f565b9695505050505050565b6001600160401b038116811461168c57600080fd5b60006020828403121561325757600080fd5b815161294481613230565b6001600160401b0360c01b81511682526020810151151560208301526000604082015160606040850152612a1e606085018261296f565b6001600160601b03841681526060602082015260006132bb6060830185613262565b905060ff83166040830152949350505050565b6000602082840312156132e057600080fd5b815161294481612a26565b8051612c2681612a26565b600081830360a081121561330957600080fd5b604051608081018181106001600160401b038211171561332b5761332b612a6d565b604052835161333981612a3b565b8152602084015161334981612a26565b60208201526040603f198301121561336057600080fd5b613368612a83565b6040858101518252606086015160208301528201526080840151915061338d82612a26565b60608101919091529392505050565b80516001600160601b031682526020808201516001600160a01b0390811682850152604080840151805191860191909152909101516060808501919091529091015116608090910152565b6001600160601b038416815260e08101613404602083018561339c565b60ff831660c0830152949350505050565b8051612c2681612a50565b600061342e612b4384612afd565b905082815283838301111561344257600080fd5b61294483602083018461294b565b600082601f83011261346157600080fd5b61294483835160208501613420565b60006020828403121561348257600080fd5b81516001600160401b038082111561349957600080fd5b9083019060e082860312156134ad57600080fd5b6134b5612aab565b6134be83612feb565b81526134cc60208401612feb565b60208201526134dd60408401613415565b60408201526134ee60608401612fc3565b60608201526134ff608084016132eb565b608082015261351060a084016132eb565b60a082015260c08301518281111561352757600080fd5b61353387828601613450565b60c08301525095945050505050565b6001600160601b038316815260c08101612944602083018461339c565b60006020828403121561357157600080fd5b81516001600160401b0381111561358757600080fd5b8201601f8101841361359857600080fd5b612a1e84825160208401613420565b6001600160601b03841681526001600160a01b03831660208201526060604082018190526000906135da9083018461296f565b95945050505050565b6001600160601b0383168152604060208201526000612a1e6040830184613262565b828152604060208201526001600160601b0382511660408201526000602083015160e0606084015261363b61012084018261296f565b90506040840151608084015263ffffffff60608501511660a0840152608084015161366e60c085018263ffffffff169052565b5060a084015164ffffffffff1660e084015260c0840151838203603f1901610100850152613226828261296f565b6000602082840312156136ae57600080fd5b815161294481612a50565b600080604083850312156136cc57600080fd5b82516136d781612a26565b6020840151909250612f5981612a2656fe07ebcf49758b6ed3af50fa146bec0abe157c0218fe65dc0874c286e9d5da4f00f0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00a2646970667358221220ab3dc240e044069d9e8aa48fa3cc8fdad6062a0a1460e227771a8e1baea8367e64736f6c63430008140033",
538
791
  "linkReferences": {
539
- "contracts/types/Blocknumber.sol": {
540
- "BlocknumberLib": [
792
+ "contracts/types/DistributorType.sol": {
793
+ "DistributorTypeLib": [
794
+ {
795
+ "length": 20,
796
+ "start": 2668
797
+ },
541
798
  {
542
799
  "length": 20,
543
- "start": 4873
800
+ "start": 2825
544
801
  }
545
802
  ]
546
803
  },
@@ -548,49 +805,71 @@
548
805
  "NftIdLib": [
549
806
  {
550
807
  "length": 20,
551
- "start": 3918
808
+ "start": 1997
552
809
  },
553
810
  {
554
811
  "length": 20,
555
- "start": 5017
812
+ "start": 6059
556
813
  },
557
814
  {
558
815
  "length": 20,
559
- "start": 6509
816
+ "start": 8749
817
+ },
818
+ {
819
+ "length": 20,
820
+ "start": 10019
560
821
  }
561
822
  ]
562
823
  },
563
- "contracts/types/Version.sol": {
564
- "VersionLib": [
824
+ "contracts/types/Referral.sol": {
825
+ "ReferralLib": [
565
826
  {
566
827
  "length": 20,
567
- "start": 640
828
+ "start": 6514
568
829
  },
569
830
  {
570
831
  "length": 20,
571
- "start": 990
572
- },
832
+ "start": 6746
833
+ }
834
+ ]
835
+ },
836
+ "contracts/types/RoleId.sol": {
837
+ "RoleIdLib": [
573
838
  {
574
839
  "length": 20,
575
- "start": 3407
576
- },
840
+ "start": 8490
841
+ }
842
+ ]
843
+ },
844
+ "contracts/types/Version.sol": {
845
+ "VersionLib": [
577
846
  {
578
847
  "length": 20,
579
- "start": 5257
848
+ "start": 1409
580
849
  },
581
850
  {
582
851
  "length": 20,
583
- "start": 5939
852
+ "start": 3224
853
+ }
854
+ ],
855
+ "VersionPartLib": [
856
+ {
857
+ "length": 20,
858
+ "start": 7157
584
859
  }
585
860
  ]
586
861
  }
587
862
  },
588
863
  "deployedLinkReferences": {
589
- "contracts/types/Blocknumber.sol": {
590
- "BlocknumberLib": [
864
+ "contracts/types/DistributorType.sol": {
865
+ "DistributorTypeLib": [
866
+ {
867
+ "length": 20,
868
+ "start": 2438
869
+ },
591
870
  {
592
871
  "length": 20,
593
- "start": 2664
872
+ "start": 2595
594
873
  }
595
874
  ]
596
875
  },
@@ -598,15 +877,39 @@
598
877
  "NftIdLib": [
599
878
  {
600
879
  "length": 20,
601
- "start": 1709
880
+ "start": 1767
881
+ },
882
+ {
883
+ "length": 20,
884
+ "start": 5829
602
885
  },
603
886
  {
604
887
  "length": 20,
605
- "start": 2808
888
+ "start": 8519
606
889
  },
607
890
  {
608
891
  "length": 20,
609
- "start": 4300
892
+ "start": 9789
893
+ }
894
+ ]
895
+ },
896
+ "contracts/types/Referral.sol": {
897
+ "ReferralLib": [
898
+ {
899
+ "length": 20,
900
+ "start": 6284
901
+ },
902
+ {
903
+ "length": 20,
904
+ "start": 6516
905
+ }
906
+ ]
907
+ },
908
+ "contracts/types/RoleId.sol": {
909
+ "RoleIdLib": [
910
+ {
911
+ "length": 20,
912
+ "start": 8260
610
913
  }
611
914
  ]
612
915
  },
@@ -614,15 +917,17 @@
614
917
  "VersionLib": [
615
918
  {
616
919
  "length": 20,
617
- "start": 1198
920
+ "start": 1179
618
921
  },
619
922
  {
620
923
  "length": 20,
621
- "start": 3048
622
- },
924
+ "start": 2994
925
+ }
926
+ ],
927
+ "VersionPartLib": [
623
928
  {
624
929
  "length": 20,
625
- "start": 3730
930
+ "start": 6927
626
931
  }
627
932
  ]
628
933
  }