@etherisc/gif-next 0.0.2-d408403-475 → 0.0.2-d551b5e-892

Sign up to get free protection for your applications and to get access to all the features.
Files changed (402) hide show
  1. package/README.md +231 -27
  2. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +1 -1
  3. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +302 -23
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +393 -54
  6. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +1 -1
  7. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +217 -23
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +0 -188
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +15 -227
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +0 -213
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +460 -99
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +491 -80
  18. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +4 -0
  19. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.json +66 -0
  20. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +4 -0
  21. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.json +24 -0
  22. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +4 -0
  23. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.json +42 -0
  24. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
  25. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
  26. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
  27. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
  28. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
  29. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
  30. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
  31. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
  32. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
  33. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
  34. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
  35. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +2 -2
  36. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
  37. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
  38. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
  39. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +2 -2
  40. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
  41. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +2 -2
  42. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
  43. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
  44. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +4 -0
  45. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +1206 -0
  46. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
  47. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +788 -0
  48. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
  49. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.json +185 -0
  50. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +4 -0
  51. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +1082 -0
  52. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  53. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +868 -1164
  54. package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.dbg.json +4 -0
  55. package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.json +448 -0
  56. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
  57. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +485 -0
  58. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  59. package/artifacts/contracts/instance/Instance.sol/Instance.json +2421 -1250
  60. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
  61. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +940 -0
  62. package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.dbg.json +4 -0
  63. package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.json +763 -0
  64. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +4 -0
  65. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1422 -0
  66. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
  67. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +999 -0
  68. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
  69. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +532 -0
  70. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
  71. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +285 -0
  72. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +1 -1
  73. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +264 -43
  74. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +1 -1
  75. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +1 -1
  76. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  77. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +27 -158
  78. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  79. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  80. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +37 -245
  81. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  82. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +2 -2
  83. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +4 -0
  84. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +211 -0
  85. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +4 -0
  86. package/artifacts/contracts/instance/module/{bundle/IBundle.sol → IBundle.sol}/IBundle.json +1 -1
  87. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +4 -0
  88. package/artifacts/contracts/instance/module/{distribution/IDistribution.sol → IDistribution.sol}/IDistribution.json +1 -1
  89. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
  90. package/artifacts/contracts/instance/module/{policy/IPolicy.sol → IPolicy.sol}/IPolicy.json +1 -1
  91. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
  92. package/artifacts/contracts/instance/module/{risk/IRisk.sol → IRisk.sol}/IRisk.json +1 -1
  93. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +4 -0
  94. package/artifacts/contracts/instance/{base/ModuleBase.sol/ModuleBase.json → module/ISetup.sol/ISetup.json} +2 -2
  95. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +4 -0
  96. package/artifacts/contracts/instance/module/{treasury/ITreasury.sol → ITreasury.sol}/ITreasury.json +1 -1
  97. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +1 -1
  98. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +375 -79
  99. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
  100. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +317 -53
  101. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  102. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +428 -0
  103. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +1 -1
  104. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +177 -75
  105. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  106. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +174 -53
  107. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  108. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +664 -0
  109. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  110. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +337 -49
  111. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  112. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +171 -263
  113. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
  114. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +984 -0
  115. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  116. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +464 -0
  117. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
  118. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +527 -53
  119. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  120. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +448 -0
  121. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
  122. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +290 -359
  123. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  124. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +420 -0
  125. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  126. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +186 -12
  127. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  128. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +377 -37
  129. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
  130. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +947 -0
  131. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +4 -0
  132. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +34 -0
  133. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  134. package/artifacts/contracts/registry/Registry.sol/Registry.json +487 -123
  135. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +4 -0
  136. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +1293 -0
  137. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
  138. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +517 -0
  139. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
  140. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +410 -0
  141. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +4 -0
  142. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +107 -0
  143. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  144. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +2 -2
  145. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
  146. package/artifacts/contracts/{instance/module/component/ComponentModule.sol/ComponentModule.json → shared/INftOwnable.sol/INftOwnable.json} +67 -57
  147. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  148. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +117 -37
  149. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
  150. package/artifacts/contracts/{instance/base/InstanceBase.sol/InstanceBase.json → shared/IService.sol/IService.json} +168 -123
  151. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  152. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +55 -14
  153. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
  154. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +158 -0
  155. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +4 -0
  156. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +349 -0
  157. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  158. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +190 -37
  159. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +4 -0
  160. package/artifacts/contracts/{instance/base/IService.sol/IService.json → shared/RegisterableUpgradable.sol/RegisterableUpgradable.json} +215 -73
  161. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
  162. package/artifacts/contracts/{instance/base/ServiceBase.sol/ServiceBase.json → shared/Service.sol/Service.json} +222 -54
  163. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +4 -0
  164. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +96 -0
  165. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
  166. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +129 -0
  167. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  168. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +78 -14
  169. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  170. package/artifacts/contracts/test/TestFee.sol/TestFee.json +4 -4
  171. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  172. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +204 -36
  173. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  174. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +14 -14
  175. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  176. package/artifacts/contracts/test/TestService.sol/TestService.json +283 -62
  177. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  178. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +91 -53
  179. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  180. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
  181. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  182. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +103 -23
  183. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  184. package/artifacts/contracts/test/Usdc.sol/USDC.json +91 -53
  185. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  186. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  187. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  188. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
  189. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +104 -0
  190. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  191. package/artifacts/contracts/types/Fee.sol/FeeLib.json +4 -4
  192. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  193. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +31 -17
  194. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  195. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +2 -2
  196. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  197. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +26 -3
  198. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +4 -0
  199. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +100 -0
  200. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  201. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  202. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +4 -0
  203. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +123 -0
  204. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
  205. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +2 -2
  206. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  207. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +134 -8
  208. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  209. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  210. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  211. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +15 -2
  212. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +4 -0
  213. package/artifacts/contracts/types/UFixed.sol/MathLib.json +10 -0
  214. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +4 -0
  215. package/artifacts/contracts/types/UFixed.sol/{UFixedMathLib.json → UFixedLib.json} +3 -3
  216. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  217. package/artifacts/contracts/types/Version.sol/VersionLib.json +40 -2
  218. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  219. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +22 -3
  220. package/contracts/components/BaseComponent.sol +75 -37
  221. package/contracts/components/Distribution.sol +49 -18
  222. package/contracts/components/IBaseComponent.sol +15 -3
  223. package/contracts/components/IDistributionComponent.sol +3 -7
  224. package/contracts/components/IPoolComponent.sol +7 -12
  225. package/contracts/components/IProductComponent.sol +4 -7
  226. package/contracts/components/Pool.sol +111 -79
  227. package/contracts/components/Product.sol +118 -53
  228. package/contracts/experiment/cloning/Cloner.sol +47 -0
  229. package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +23 -0
  230. package/contracts/instance/BundleManager.sol +129 -0
  231. package/contracts/instance/Cloneable.sol +46 -0
  232. package/contracts/instance/IAccessManagerSimple.sol +391 -0
  233. package/contracts/instance/IInstance.sol +50 -45
  234. package/contracts/instance/IInstanceBase.sol +26 -0
  235. package/contracts/instance/IInstanceService.sol +32 -0
  236. package/contracts/instance/Instance.sol +443 -57
  237. package/contracts/instance/InstanceAccessManager.sol +288 -0
  238. package/contracts/instance/InstanceBase.sol +41 -0
  239. package/contracts/instance/InstanceReader.sol +315 -0
  240. package/contracts/instance/InstanceService.sol +252 -0
  241. package/contracts/instance/InstanceServiceManager.sol +57 -0
  242. package/contracts/instance/ObjectManager.sol +101 -0
  243. package/contracts/instance/base/ComponentServiceBase.sol +46 -16
  244. package/contracts/instance/base/IInstanceBase.sol +3 -2
  245. package/contracts/instance/base/IKeyValueStore.sol +13 -14
  246. package/contracts/instance/base/ILifecycle.sol +3 -3
  247. package/contracts/instance/base/KeyValueStore.sol +49 -38
  248. package/contracts/instance/base/Lifecycle.sol +1 -1
  249. package/contracts/instance/module/IAccess.sol +38 -0
  250. package/contracts/instance/module/IBundle.sol +20 -0
  251. package/contracts/instance/module/IDistribution.sol +39 -0
  252. package/contracts/instance/module/IPolicy.sol +45 -0
  253. package/contracts/instance/module/IRisk.sol +11 -0
  254. package/contracts/instance/module/ISetup.sol +46 -0
  255. package/contracts/instance/module/ITreasury.sol +23 -0
  256. package/contracts/instance/service/ComponentOwnerService.sol +232 -72
  257. package/contracts/instance/service/DistributionService.sol +78 -19
  258. package/contracts/instance/service/DistributionServiceManager.sol +54 -0
  259. package/contracts/instance/service/IComponentOwnerService.sol +1 -3
  260. package/contracts/instance/service/IDistributionService.sol +1 -1
  261. package/contracts/instance/service/IPolicyService.sol +87 -0
  262. package/contracts/instance/service/IPoolService.sol +17 -3
  263. package/contracts/instance/service/IProductService.sol +9 -76
  264. package/contracts/instance/service/PolicyService.sol +513 -0
  265. package/contracts/instance/service/PolicyServiceManager.sol +54 -0
  266. package/contracts/instance/service/PoolService.sol +219 -51
  267. package/contracts/instance/service/PoolServiceManager.sol +54 -0
  268. package/contracts/instance/service/ProductService.sol +100 -436
  269. package/contracts/instance/service/ProductServiceManager.sol +54 -0
  270. package/contracts/registry/ChainNft.sol +80 -37
  271. package/contracts/registry/IRegistry.sol +49 -25
  272. package/contracts/registry/IRegistryService.sol +50 -0
  273. package/contracts/registry/ITransferInterceptor.sol +6 -0
  274. package/contracts/registry/Registry.sol +336 -270
  275. package/contracts/registry/RegistryService.sol +358 -0
  276. package/contracts/registry/RegistryServiceManager.sol +80 -0
  277. package/contracts/registry/TokenRegistry.sol +111 -0
  278. package/contracts/shared/ContractDeployerLib.sol +72 -0
  279. package/contracts/shared/ERC165.sol +6 -2
  280. package/contracts/shared/INftOwnable.sol +22 -0
  281. package/contracts/shared/IRegisterable.sol +8 -15
  282. package/contracts/{instance/base → shared}/IService.sol +3 -3
  283. package/contracts/shared/IVersionable.sol +55 -11
  284. package/contracts/shared/NftOwnable.sol +134 -0
  285. package/contracts/shared/ProxyManager.sol +94 -0
  286. package/contracts/shared/Registerable.sol +63 -59
  287. package/contracts/shared/RegisterableUpgradable.sol +16 -0
  288. package/contracts/shared/Service.sol +55 -0
  289. package/contracts/shared/TokenHandler.sol +27 -0
  290. package/contracts/shared/UpgradableProxyWithAdmin.sol +16 -0
  291. package/contracts/shared/Versionable.sol +113 -55
  292. package/contracts/test/TestFee.sol +2 -2
  293. package/contracts/test/TestRegisterable.sol +5 -6
  294. package/contracts/test/TestRoleId.sol +1 -1
  295. package/contracts/test/TestService.sol +5 -13
  296. package/contracts/types/DistributorType.sol +55 -0
  297. package/contracts/types/Fee.sol +3 -3
  298. package/contracts/types/Key32.sol +8 -3
  299. package/contracts/types/NftIdSet.sol +26 -24
  300. package/contracts/types/NumberId.sol +52 -0
  301. package/contracts/types/ObjectType.sol +35 -14
  302. package/contracts/types/Referral.sol +85 -0
  303. package/contracts/types/RoleId.sol +62 -9
  304. package/contracts/types/StateId.sol +5 -1
  305. package/contracts/types/Timestamp.sol +7 -3
  306. package/contracts/types/UFixed.sol +128 -12
  307. package/contracts/types/Version.sol +13 -1
  308. package/package.json +4 -3
  309. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +0 -4
  310. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.json +0 -24
  311. package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +0 -4
  312. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +0 -4
  313. package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +0 -4
  314. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +0 -4
  315. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +0 -4
  316. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.json +0 -333
  317. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +0 -4
  318. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.json +0 -10
  319. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +0 -4
  320. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.json +0 -333
  321. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +0 -4
  322. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +0 -297
  323. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +0 -4
  324. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +0 -4
  325. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +0 -297
  326. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
  327. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +0 -4
  328. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.json +0 -10
  329. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +0 -4
  330. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.json +0 -117
  331. package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.dbg.json +0 -4
  332. package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.json +0 -10
  333. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistribution.dbg.json +0 -4
  334. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.dbg.json +0 -4
  335. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.json +0 -10
  336. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
  337. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
  338. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.json +0 -284
  339. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
  340. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +0 -284
  341. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +0 -4
  342. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.json +0 -10
  343. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
  344. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.json +0 -144
  345. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
  346. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +0 -144
  347. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +0 -4
  348. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +0 -4
  349. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +0 -113
  350. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +0 -4
  351. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +0 -131
  352. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +0 -4
  353. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +0 -4
  354. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +0 -511
  355. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +0 -4
  356. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +0 -76
  357. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +0 -4
  358. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +0 -511
  359. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
  360. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.json +0 -452
  361. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +0 -4
  362. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.json +0 -24
  363. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +0 -4
  364. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.json +0 -24
  365. package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.dbg.json +0 -4
  366. package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.json +0 -405
  367. package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +0 -4
  368. package/artifacts/contracts/test/TestPool.sol/TestPool.json +0 -578
  369. package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +0 -4
  370. package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +0 -575
  371. package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.dbg.json +0 -4
  372. package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.json +0 -99
  373. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
  374. package/contracts/experiment/statemachine/README.md +0 -112
  375. package/contracts/instance/IInstanceLinked.sol +0 -8
  376. package/contracts/instance/base/InstanceBase.sol +0 -91
  377. package/contracts/instance/base/ModuleBase.sol +0 -57
  378. package/contracts/instance/base/ServiceBase.sol +0 -37
  379. package/contracts/instance/module/access/Access.sol +0 -149
  380. package/contracts/instance/module/access/IAccess.sol +0 -53
  381. package/contracts/instance/module/bundle/BundleModule.sol +0 -134
  382. package/contracts/instance/module/bundle/IBundle.sol +0 -53
  383. package/contracts/instance/module/component/ComponentModule.sol +0 -70
  384. package/contracts/instance/module/component/IComponent.sol +0 -28
  385. package/contracts/instance/module/distribution/DistributionModule.sol +0 -17
  386. package/contracts/instance/module/distribution/IDistribution.sol +0 -10
  387. package/contracts/instance/module/policy/IPolicy.sol +0 -63
  388. package/contracts/instance/module/policy/PolicyModule.sol +0 -91
  389. package/contracts/instance/module/pool/IPoolModule.sol +0 -40
  390. package/contracts/instance/module/pool/PoolModule.sol +0 -90
  391. package/contracts/instance/module/risk/IRisk.sol +0 -26
  392. package/contracts/instance/module/risk/RiskModule.sol +0 -62
  393. package/contracts/instance/module/treasury/ITreasury.sol +0 -82
  394. package/contracts/instance/module/treasury/TokenHandler.sol +0 -48
  395. package/contracts/instance/module/treasury/TreasuryModule.sol +0 -138
  396. package/contracts/registry/IChainNft.sol +0 -21
  397. package/contracts/registry/IRegistryLinked.sol +0 -8
  398. package/contracts/shared/IOwnable.sol +0 -6
  399. package/contracts/test/TestDistribution.sol +0 -21
  400. package/contracts/test/TestPool.sol +0 -25
  401. package/contracts/test/TestProduct.sol +0 -72
  402. package/contracts/types/ReferralId.sol +0 -48
@@ -3,6 +3,17 @@
3
3
  "contractName": "PoolService",
4
4
  "sourceName": "contracts/instance/service/PoolService.sol",
5
5
  "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "ObjectType",
10
+ "name": "componentType",
11
+ "type": "uint8"
12
+ }
13
+ ],
14
+ "name": "ComponentTypeInvalid",
15
+ "type": "error"
16
+ },
6
17
  {
7
18
  "inputs": [
8
19
  {
@@ -12,12 +23,148 @@
12
23
  },
13
24
  {
14
25
  "internalType": "NftId",
15
- "name": "registryNftId",
26
+ "name": "nftId",
16
27
  "type": "uint96"
17
28
  }
18
29
  ],
19
- "stateMutability": "nonpayable",
20
- "type": "constructor"
30
+ "name": "ErrorAlreadyLinked",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [
35
+ {
36
+ "internalType": "NftId",
37
+ "name": "policyNftId",
38
+ "type": "uint96"
39
+ }
40
+ ],
41
+ "name": "ErrorBundleManagerErrorPolicyAlreadyActivated",
42
+ "type": "error"
43
+ },
44
+ {
45
+ "inputs": [
46
+ {
47
+ "internalType": "address",
48
+ "name": "contractAddress",
49
+ "type": "address"
50
+ }
51
+ ],
52
+ "name": "ErrorContractNotRegistered",
53
+ "type": "error"
54
+ },
55
+ {
56
+ "inputs": [
57
+ {
58
+ "internalType": "address",
59
+ "name": "bundleOwner",
60
+ "type": "address"
61
+ },
62
+ {
63
+ "internalType": "address",
64
+ "name": "tokenHandlerAddress",
65
+ "type": "address"
66
+ },
67
+ {
68
+ "internalType": "uint256",
69
+ "name": "amount",
70
+ "type": "uint256"
71
+ }
72
+ ],
73
+ "name": "ErrorIPoolServiceInsufficientAllowance",
74
+ "type": "error"
75
+ },
76
+ {
77
+ "inputs": [
78
+ {
79
+ "internalType": "address",
80
+ "name": "account",
81
+ "type": "address"
82
+ }
83
+ ],
84
+ "name": "ErrorNotOwner",
85
+ "type": "error"
86
+ },
87
+ {
88
+ "inputs": [
89
+ {
90
+ "internalType": "address",
91
+ "name": "registryAddress",
92
+ "type": "address"
93
+ }
94
+ ],
95
+ "name": "ErrorNotRegistry",
96
+ "type": "error"
97
+ },
98
+ {
99
+ "inputs": [
100
+ {
101
+ "internalType": "address",
102
+ "name": "registryAddress",
103
+ "type": "address"
104
+ }
105
+ ],
106
+ "name": "ErrorRegisterableNotRegistry",
107
+ "type": "error"
108
+ },
109
+ {
110
+ "inputs": [],
111
+ "name": "ErrorRegistryAddressZero",
112
+ "type": "error"
113
+ },
114
+ {
115
+ "inputs": [
116
+ {
117
+ "internalType": "address",
118
+ "name": "registry",
119
+ "type": "address"
120
+ }
121
+ ],
122
+ "name": "ErrorRegistryAlreadyInitialized",
123
+ "type": "error"
124
+ },
125
+ {
126
+ "inputs": [],
127
+ "name": "ErrorRegistryNotInitialized",
128
+ "type": "error"
129
+ },
130
+ {
131
+ "inputs": [
132
+ {
133
+ "internalType": "RoleId",
134
+ "name": "expected",
135
+ "type": "uint64"
136
+ },
137
+ {
138
+ "internalType": "address",
139
+ "name": "caller",
140
+ "type": "address"
141
+ }
142
+ ],
143
+ "name": "ExpectedRoleMissing",
144
+ "type": "error"
145
+ },
146
+ {
147
+ "inputs": [],
148
+ "name": "InvalidInitialization",
149
+ "type": "error"
150
+ },
151
+ {
152
+ "inputs": [],
153
+ "name": "NotInitializing",
154
+ "type": "error"
155
+ },
156
+ {
157
+ "anonymous": false,
158
+ "inputs": [
159
+ {
160
+ "indexed": false,
161
+ "internalType": "uint64",
162
+ "name": "version",
163
+ "type": "uint64"
164
+ }
165
+ ],
166
+ "name": "Initialized",
167
+ "type": "event"
21
168
  },
22
169
  {
23
170
  "anonymous": false,
@@ -41,7 +188,7 @@
41
188
  "type": "address"
42
189
  }
43
190
  ],
44
- "name": "LogVersionableActivated",
191
+ "name": "LogVersionableInitialized",
45
192
  "type": "event"
46
193
  },
47
194
  {
@@ -58,21 +205,16 @@
58
205
  "type": "function"
59
206
  },
60
207
  {
61
- "inputs": [
62
- {
63
- "internalType": "address",
64
- "name": "implementation",
65
- "type": "address"
66
- },
208
+ "inputs": [],
209
+ "name": "REGISTERABLE_LOCATION_V1",
210
+ "outputs": [
67
211
  {
68
- "internalType": "address",
69
- "name": "activatedBy",
70
- "type": "address"
212
+ "internalType": "bytes32",
213
+ "name": "",
214
+ "type": "bytes32"
71
215
  }
72
216
  ],
73
- "name": "activate",
74
- "outputs": [],
75
- "stateMutability": "nonpayable",
217
+ "stateMutability": "view",
76
218
  "type": "function"
77
219
  },
78
220
  {
@@ -128,8 +270,50 @@
128
270
  },
129
271
  {
130
272
  "inputs": [],
131
- "name": "getData",
273
+ "name": "getInitialInfo",
132
274
  "outputs": [
275
+ {
276
+ "components": [
277
+ {
278
+ "internalType": "NftId",
279
+ "name": "nftId",
280
+ "type": "uint96"
281
+ },
282
+ {
283
+ "internalType": "NftId",
284
+ "name": "parentNftId",
285
+ "type": "uint96"
286
+ },
287
+ {
288
+ "internalType": "ObjectType",
289
+ "name": "objectType",
290
+ "type": "uint8"
291
+ },
292
+ {
293
+ "internalType": "bool",
294
+ "name": "isInterceptor",
295
+ "type": "bool"
296
+ },
297
+ {
298
+ "internalType": "address",
299
+ "name": "objectAddress",
300
+ "type": "address"
301
+ },
302
+ {
303
+ "internalType": "address",
304
+ "name": "initialOwner",
305
+ "type": "address"
306
+ },
307
+ {
308
+ "internalType": "bytes",
309
+ "name": "data",
310
+ "type": "bytes"
311
+ }
312
+ ],
313
+ "internalType": "struct IRegistry.ObjectInfo",
314
+ "name": "",
315
+ "type": "tuple"
316
+ },
133
317
  {
134
318
  "internalType": "bytes",
135
319
  "name": "data",
@@ -139,6 +323,32 @@
139
323
  "stateMutability": "view",
140
324
  "type": "function"
141
325
  },
326
+ {
327
+ "inputs": [],
328
+ "name": "getInitializedVersion",
329
+ "outputs": [
330
+ {
331
+ "internalType": "uint64",
332
+ "name": "",
333
+ "type": "uint64"
334
+ }
335
+ ],
336
+ "stateMutability": "view",
337
+ "type": "function"
338
+ },
339
+ {
340
+ "inputs": [],
341
+ "name": "getInstanceService",
342
+ "outputs": [
343
+ {
344
+ "internalType": "contract InstanceService",
345
+ "name": "",
346
+ "type": "address"
347
+ }
348
+ ],
349
+ "stateMutability": "view",
350
+ "type": "function"
351
+ },
142
352
  {
143
353
  "inputs": [],
144
354
  "name": "getMajorVersion",
@@ -171,7 +381,7 @@
171
381
  "outputs": [
172
382
  {
173
383
  "internalType": "NftId",
174
- "name": "nftId",
384
+ "name": "",
175
385
  "type": "uint96"
176
386
  }
177
387
  ],
@@ -184,33 +394,20 @@
184
394
  "outputs": [
185
395
  {
186
396
  "internalType": "address",
187
- "name": "owner",
397
+ "name": "",
188
398
  "type": "address"
189
399
  }
190
400
  ],
191
401
  "stateMutability": "view",
192
402
  "type": "function"
193
403
  },
194
- {
195
- "inputs": [],
196
- "name": "getParentNftId",
197
- "outputs": [
198
- {
199
- "internalType": "NftId",
200
- "name": "nftId",
201
- "type": "uint96"
202
- }
203
- ],
204
- "stateMutability": "view",
205
- "type": "function"
206
- },
207
404
  {
208
405
  "inputs": [],
209
406
  "name": "getRegistry",
210
407
  "outputs": [
211
408
  {
212
409
  "internalType": "contract IRegistry",
213
- "name": "registry",
410
+ "name": "",
214
411
  "type": "address"
215
412
  }
216
413
  ],
@@ -219,15 +416,15 @@
219
416
  },
220
417
  {
221
418
  "inputs": [],
222
- "name": "getType",
419
+ "name": "getRegistryService",
223
420
  "outputs": [
224
421
  {
225
- "internalType": "ObjectType",
422
+ "internalType": "contract IRegistryService",
226
423
  "name": "",
227
- "type": "uint8"
424
+ "type": "address"
228
425
  }
229
426
  ],
230
- "stateMutability": "pure",
427
+ "stateMutability": "view",
231
428
  "type": "function"
232
429
  },
233
430
  {
@@ -321,6 +518,29 @@
321
518
  "stateMutability": "view",
322
519
  "type": "function"
323
520
  },
521
+ {
522
+ "inputs": [
523
+ {
524
+ "internalType": "address",
525
+ "name": "implementation",
526
+ "type": "address"
527
+ },
528
+ {
529
+ "internalType": "address",
530
+ "name": "activatedBy",
531
+ "type": "address"
532
+ },
533
+ {
534
+ "internalType": "bytes",
535
+ "name": "data",
536
+ "type": "bytes"
537
+ }
538
+ ],
539
+ "name": "initialize",
540
+ "outputs": [],
541
+ "stateMutability": "nonpayable",
542
+ "type": "function"
543
+ },
324
544
  {
325
545
  "inputs": [
326
546
  {
@@ -329,7 +549,7 @@
329
549
  "type": "uint24"
330
550
  }
331
551
  ],
332
- "name": "isActivated",
552
+ "name": "isInitialized",
333
553
  "outputs": [
334
554
  {
335
555
  "internalType": "bool",
@@ -342,11 +562,37 @@
342
562
  },
343
563
  {
344
564
  "inputs": [],
565
+ "name": "linkToRegisteredNftId",
566
+ "outputs": [],
567
+ "stateMutability": "nonpayable",
568
+ "type": "function"
569
+ },
570
+ {
571
+ "inputs": [
572
+ {
573
+ "internalType": "NftId",
574
+ "name": "bundleNftId",
575
+ "type": "uint96"
576
+ }
577
+ ],
578
+ "name": "lockBundle",
579
+ "outputs": [],
580
+ "stateMutability": "nonpayable",
581
+ "type": "function"
582
+ },
583
+ {
584
+ "inputs": [
585
+ {
586
+ "internalType": "address",
587
+ "name": "poolAddress",
588
+ "type": "address"
589
+ }
590
+ ],
345
591
  "name": "register",
346
592
  "outputs": [
347
593
  {
348
594
  "internalType": "NftId",
349
- "name": "nftId",
595
+ "name": "poolNftId",
350
596
  "type": "uint96"
351
597
  }
352
598
  ],
@@ -460,20 +706,184 @@
460
706
  ],
461
707
  "stateMutability": "view",
462
708
  "type": "function"
709
+ },
710
+ {
711
+ "inputs": [
712
+ {
713
+ "internalType": "contract IInstance",
714
+ "name": "instance",
715
+ "type": "address"
716
+ },
717
+ {
718
+ "internalType": "NftId",
719
+ "name": "policyNftId",
720
+ "type": "uint96"
721
+ },
722
+ {
723
+ "internalType": "NftId",
724
+ "name": "bundleNftId",
725
+ "type": "uint96"
726
+ },
727
+ {
728
+ "internalType": "uint256",
729
+ "name": "collateralAmount",
730
+ "type": "uint256"
731
+ },
732
+ {
733
+ "internalType": "uint256",
734
+ "name": "netPremiumAmount",
735
+ "type": "uint256"
736
+ }
737
+ ],
738
+ "name": "underwritePolicy",
739
+ "outputs": [],
740
+ "stateMutability": "nonpayable",
741
+ "type": "function"
742
+ },
743
+ {
744
+ "inputs": [
745
+ {
746
+ "internalType": "NftId",
747
+ "name": "bundleNftId",
748
+ "type": "uint96"
749
+ }
750
+ ],
751
+ "name": "unlockBundle",
752
+ "outputs": [],
753
+ "stateMutability": "nonpayable",
754
+ "type": "function"
755
+ },
756
+ {
757
+ "inputs": [
758
+ {
759
+ "internalType": "NftId",
760
+ "name": "instanceNftId",
761
+ "type": "uint96"
762
+ },
763
+ {
764
+ "internalType": "NftId",
765
+ "name": "bundleNftId",
766
+ "type": "uint96"
767
+ },
768
+ {
769
+ "components": [
770
+ {
771
+ "internalType": "NftId",
772
+ "name": "poolNftId",
773
+ "type": "uint96"
774
+ },
775
+ {
776
+ "components": [
777
+ {
778
+ "internalType": "UFixed",
779
+ "name": "fractionalFee",
780
+ "type": "uint256"
781
+ },
782
+ {
783
+ "internalType": "uint256",
784
+ "name": "fixedFee",
785
+ "type": "uint256"
786
+ }
787
+ ],
788
+ "internalType": "struct Fee",
789
+ "name": "fee",
790
+ "type": "tuple"
791
+ },
792
+ {
793
+ "internalType": "bytes",
794
+ "name": "filter",
795
+ "type": "bytes"
796
+ },
797
+ {
798
+ "internalType": "uint256",
799
+ "name": "capitalAmount",
800
+ "type": "uint256"
801
+ },
802
+ {
803
+ "internalType": "uint256",
804
+ "name": "lockedAmount",
805
+ "type": "uint256"
806
+ },
807
+ {
808
+ "internalType": "uint256",
809
+ "name": "balanceAmount",
810
+ "type": "uint256"
811
+ },
812
+ {
813
+ "internalType": "uint256",
814
+ "name": "lifetime",
815
+ "type": "uint256"
816
+ },
817
+ {
818
+ "internalType": "Timestamp",
819
+ "name": "expiredAt",
820
+ "type": "uint40"
821
+ },
822
+ {
823
+ "internalType": "Timestamp",
824
+ "name": "closedAt",
825
+ "type": "uint40"
826
+ }
827
+ ],
828
+ "internalType": "struct IBundle.BundleInfo",
829
+ "name": "bundleInfo",
830
+ "type": "tuple"
831
+ },
832
+ {
833
+ "internalType": "StateId",
834
+ "name": "state",
835
+ "type": "uint8"
836
+ }
837
+ ],
838
+ "name": "updateBundle",
839
+ "outputs": [],
840
+ "stateMutability": "nonpayable",
841
+ "type": "function"
842
+ },
843
+ {
844
+ "inputs": [
845
+ {
846
+ "internalType": "address",
847
+ "name": "implementation",
848
+ "type": "address"
849
+ },
850
+ {
851
+ "internalType": "address",
852
+ "name": "activatedBy",
853
+ "type": "address"
854
+ },
855
+ {
856
+ "internalType": "bytes",
857
+ "name": "data",
858
+ "type": "bytes"
859
+ }
860
+ ],
861
+ "name": "upgrade",
862
+ "outputs": [],
863
+ "stateMutability": "nonpayable",
864
+ "type": "function"
463
865
  }
464
866
  ],
465
- "bytecode": "0x60e06040523480156200001157600080fd5b50604051620029c4380380620029c483398101604081905262000034916200075f565b6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff191660011790558181818181816001600160a01b038216620000d25760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a5247422d3031303a52454749535452595f5a45524f000000000060448201526064015b60405180910390fd5b6001600160a01b03821660808190526040516301ffc9a760e01b81526306ecd8ef60e01b60048201526301ffc9a790602401602060405180830381865afa15801562000122573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001489190620007b4565b620001965760405162461bcd60e51b815260206004820152601a60248201527f4552524f523a5247422d3031313a4e4f545f52454749535452590000000000006044820152606401620000c9565b6001600160601b03811660a081905260805160405163e74d052f60e01b815260048101929092526001600160a01b03169063e74d052f90602401602060405180830381865afa158015620001ee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002149190620007b4565b6200026e5760405162461bcd60e51b815260206004820152602360248201527f4552524f523a5247422d3031323a504152454e545f4e4f545f5245474953544560448201526214915160ea1b6064820152608401620000c9565b3360c052631dfba64760e11b60009081526020527f95e5a2564f7af40498dc043c6da135e06324c5edb1f60c2bf4dcdf2da207fa45805460ff1916600117905550620002be905060003362000342565b631b4612f160e31b60009081526020527ffc58a5a01198e68c5a5d0bcd463f9ab550fc4337b1df271aed6dbb33d25fef25805460ff1916600117905550505050620003156209196b60e61b6200031d60201b60201c565b505062000858565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b60006200034e6200061a565b90506200035b81620006a7565b15620003ba5760405162461bcd60e51b815260206004820152602760248201527f4552524f523a56524e2d3030313a56455253494f4e5f414c52454144595f41436044820152661512559055115160ca1b6064820152608401620000c9565b600254156200047b576002805460009190620003d990600190620007df565b81548110620003ec57620003ec62000801565b90600052602060002090600a91828204019190066003029054906101000a900462ffffff1690506200041f82826200074d565b620004795760405162461bcd60e51b8152602060048201526024808201527f4552524f523a56524e2d3030323a56455253494f4e5f4e4f545f494e4352454160448201526353494e4760e01b6064820152608401620000c9565b505b60028054600181018255600091909152600a8082047f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace01805462ffffff808616600394909506939093026101000a848102930219169190911790556040805160a0810182529182526001600160a01b03808616602084015284169082015260608101620005054290565b64ffffffffff1681526020014363ffffffff90811690915262ffffff80841660009081526001602081815260409283902086518154928801516001600160a01b039081166301000000026001600160b81b0319909416919096161791909117815585830151910180546060870151608090970151909516600160c81b0263ffffffff60c81b1964ffffffffff909716600160a01b026001600160c81b031990961692909416919091179390931793909316179055517f68e7327fca0057a787cde34ababb9ef9844ba8065ee03e8781d8122fc15d4419906200060d9083908690869062ffffff9390931683526001600160a01b03918216602084015216604082015260600190565b60405180910390a1505050565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90632efe011390606401602060405180830381865af41580156200067c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620006a2919062000817565b905090565b62ffffff81166000908152600160208190526040808320909101549051631bbffab160e21b8152600160c81b90910463ffffffff166004820152819073__$5f476116ae21c5294e0c0761c07efa7e1c$__90636effeac490602401602060405180830381865af415801562000720573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200074691906200083e565b1192915050565b62ffffff808216908316115b92915050565b600080604083850312156200077357600080fd5b82516001600160a01b03811681146200078b57600080fd5b60208401519092506001600160601b0381168114620007a957600080fd5b809150509250929050565b600060208284031215620007c757600080fd5b81518015158114620007d857600080fd5b9392505050565b818103818111156200075957634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000602082840312156200082a57600080fd5b815162ffffff81168114620007d857600080fd5b6000602082840312156200085157600080fd5b5051919050565b60805160a05160c0516120fd620008c76000396000610b1901526000610209015260008181610352015281816105ef015281816108a701528181610a9a01528181610b5c01528181610d1801528181610f17015281816110730152818161116901526115ef01526120fd6000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c8063636450f5116100ad5780639555c4db116100715780639555c4db146103d3578063a3f4df7e146103e6578063b88da75914610410578063cde749f414610423578063e3458d531461042b57600080fd5b8063636450f51461038a578063644c45e01461039f57806382678766146103a7578063893d20e8146103ba578063946dfcfe146103c257600080fd5b80631aa3a008116100f45780631aa3a008146101e757806331b62a3b146102075780633bc5de301461022d5780634d459c90146102415780635ab1bd531461035057600080fd5b806301ffc9a7146101315780630abd8434146101735780630d8e6e2c1461018657806315dae03e146101a257806317d7de7c146101b7575b600080fd5b61015e61013f36600461174a565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b61015e61018136600461178f565b61043e565b61018e6104e1565b60405162ffffff909116815260200161016a565b60285b60405160ff909116815260200161016a565b60408051808201909152600b81526a506f6f6c5365727669636560a81b60208201525b60405161016a91906117fc565b6101ef61056b565b6040516001600160601b03909116815260200161016a565b7f00000000000000000000000000000000000000000000000000000000000000006101ef565b6040805160208101909152600081526101da565b6102f361024f36600461178f565b6040805160a0810182526000808252602082018190529181018290526060810182905260808101919091525062ffffff908116600090815260016020818152604092839020835160a0810185528154958616815263010000009095046001600160a01b03908116928601929092529091015490811691830191909152600160a01b810464ffffffffff166060830152600160c81b900463ffffffff16608082015290565b60408051825162ffffff1681526020808401516001600160a01b039081169183019190915283830151169181019190915260608083015164ffffffffff169082015260809182015163ffffffff169181019190915260a00161016a565b7f00000000000000000000000000000000000000000000000000000000000000005b6040516001600160a01b03909116815260200161016a565b61039d6103983660046118fe565b610664565b005b6101ef61088f565b61039d6103b5366004611934565b6108f6565b610372610a78565b60025460405190815260200161016a565b61039d6103e136600461198f565b610bd5565b6101da6040518060400160405280600b81526020016a506f6f6c5365727669636560a81b81525081565b61018e61041e3660046119c8565b610be3565b6101a5610c24565b6101ef6104393660046119e1565b610d01565b62ffffff81166000908152600160208190526040808320909101549051631bbffab160e21b8152600160c81b90910463ffffffff166004820152819073__$5f476116ae21c5294e0c0761c07efa7e1c$__90636effeac490602401602060405180830381865af41580156104b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104da9190611a8a565b1192915050565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90632efe011390606401602060405180830381865af4158015610542573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105669190611aa3565b905090565b6000610575610a78565b6001600160a01b0316336001600160a01b0316146105da5760405162461bcd60e51b815260206004820152601760248201527f4552524f523a5247422d3030313a4e4f545f4f574e455200000000000000000060448201526064015b60405180910390fd5b604051632210724360e11b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690634420e486906024016020604051808303816000875af1158015610640573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105669190611ad0565b600080610671608c610ece565b604051634793b4ab60e01b81526001600160601b038716600482015291935091506000906001600160a01b03831690634793b4ab90602401600060405180830381865afa1580156106c6573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526106ee9190810190611bba565b80516040516330b8415f60e01b81526001600160601b03909116600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af415801561074c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107709190611c8c565b6107bc5760405162461bcd60e51b815260206004820152601c60248201527f4552524f523a504c532d3031303a42554e444c455f554e4b4e4f574e0000000060448201526064016105d1565b825181516107ca91906111ee565b6108215760405162461bcd60e51b815260206004820152602260248201527f4552524f523a504c532d3031313a42554e444c455f504f4f4c5f4d49534d4154604482015261086960f31b60648201526084016105d1565b60208101849052604051637e8a1e3b60e11b81526001600160a01b0383169063fd143c76906108569088908590600401611cae565b600060405180830381600087803b15801561087057600080fd5b505af1158015610884573d6000803e3d6000fd5b505050505050505050565b604051636939560f60e11b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063d272ac1e90602401602060405180830381865afa158015610640573d6000803e3d6000fd5b600080610903608c610ece565b8151604051639ae31ff560e01b81526001600160601b03909116600482015291935091506000906001600160a01b03831690639ae31ff590602401602060405180830381865afa15801561095b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061097f9190611ad0565b60405163f2b246c360e01b81526001600160601b03821660048201529091506000906001600160a01b0384169063f2b246c3906024016101e060405180830381865afa1580156109d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109f79190611d68565b60a0810188905260c0810187905260e081018690526040516306a5298b60e01b81529091506001600160a01b038416906306a5298b90610a3d9085908590600401611e27565b600060405180830381600087803b158015610a5757600080fd5b505af1158015610a6b573d6000803e3d6000fd5b5050505050505050505050565b604051636939560f60e11b815230600482015260009081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d272ac1e90602401602060405180830381865afa158015610ae1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b059190611ad0565b9050610b128160006111ee565b15610b3e577f000000000000000000000000000000000000000000000000000000000000000091505090565b60405163df33330b60e01b81526001600160601b03821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063df33330b90602401602060405180830381865afa158015610bab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bcf9190611f0e565b91505090565b610bdf8282611204565b5050565b600060028281548110610bf857610bf8611f2b565b90600052602060002090600a91828204019190066003029054906101000a900462ffffff169050919050565b6000306001600160a01b0316630d8e6e2c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c889190611aa3565b60405163c9e66e2960e01b815262ffffff909116600482015273__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__9063c9e66e2990602401602060405180830381865af4158015610cdd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105669190611f50565b60008080610d0f608c610ece565b815191935091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316635ef14b5e8260dc6040516001600160e01b031960e085901b1681526001600160601b03909216600483015260ff1660248201526001600160a01b038d166044820152608060648201526000608482015260a4016020604051808303816000875af1158015610db3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dd79190611ad0565b6040516346aea9b760e11b81529094506001600160a01b03831690638d5d536e90610e1290879085908e908e908e908e908e90600401611f6d565b600060405180830381600087803b158015610e2c57600080fd5b505af1158015610e40573d6000803e3d6000fd5b5050604051639845743760e01b81526001600160601b03808816600483015284166024820152604481018b90526001600160a01b038516925063984574379150606401600060405180830381600087803b158015610e9d57600080fd5b505af1158015610eb1573d6000803e3d6000fd5b50505050610ec18282868b6114d2565b5050509695505050505050565b6040805160c08101825260008082526020820181905281830181905260608083018290526080830182905260a08301529151636939560f60e11b815233600482015290919081907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063d272ac1e90602401602060405180830381865afa158015610f66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f8a9190611ad0565b6040516330b8415f60e01b81526001600160601b038216600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610fe5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110099190611c8c565b6110555760405162461bcd60e51b815260206004820152601760248201527f4552524f525f434f4d504f4e454e545f554e4b4e4f574e00000000000000000060448201526064016105d1565b6040516305247a1760e51b81526001600160601b03821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a48f42e090602401600060405180830381865afa1580156110c2573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526110ea9190810190611fde565b925061110083604001518560ff90811691161490565b6111425760405162461bcd60e51b815260206004820152601360248201527213d0929150d517d516541157d2539590531251606a1b60448201526064016105d1565b60208301516040516305247a1760e51b81526001600160601b0390911660048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a48f42e090602401600060405180830381865afa1580156111b8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526111e09190810190611fde565b606001519395939450505050565b6001600160601b03828116908216145b92915050565b600061120e6104e1565b90506112198161043e565b156112765760405162461bcd60e51b815260206004820152602760248201527f4552524f523a56524e2d3030313a56455253494f4e5f414c52454144595f41436044820152661512559055115160ca1b60648201526084016105d1565b60025415611335576002805460009190611292906001906120a6565b815481106112a2576112a2611f2b565b90600052602060002090600a91828204019190066003029054906101000a900462ffffff1690506112db828262ffffff90811691161190565b6113335760405162461bcd60e51b8152602060048201526024808201527f4552524f523a56524e2d3030323a56455253494f4e5f4e4f545f494e4352454160448201526353494e4760e01b60648201526084016105d1565b505b60028054600181018255600091909152600a8082047f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace01805462ffffff808616600394909506939093026101000a848102930219169190911790556040805160a0810182529182526001600160a01b038086166020840152841690820152606081016113be4290565b64ffffffffff1681526020014363ffffffff90811690915262ffffff80841660009081526001602081815260409283902086518154928801516001600160a01b039081166301000000026001600160b81b0319909416919096161791909117815585830151910180546060870151608090970151909516600160c81b0263ffffffff60c81b1964ffffffffff909716600160a01b026001600160c81b031990961692909416919091179390931793909316179055517f68e7327fca0057a787cde34ababb9ef9844ba8065ee03e8781d8122fc15d4419906114c59083908690869062ffffff9390931683526001600160a01b03918216602084015216604082015260600190565b60405180910390a1505050565b801561174457604051639ae31ff560e01b81526001600160601b03841660048201526000906001600160a01b03861690639ae31ff590602401602060405180830381865afa158015611528573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061154c9190611ad0565b60405163a310e2a360e01b81526001600160601b03821660048201529091506000906001600160a01b0387169063a310e2a390602401602060405180830381865afa15801561159f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115c39190611f0e565b60405163df33330b60e01b81526001600160601b03861660048201529091506000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063df33330b90602401602060405180830381865afa158015611636573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061165a9190611f0e565b604051630d48c43b60e11b81526001600160601b03881660048201529091506000906001600160a01b03891690631a91887690602401602060405180830381865afa1580156116ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116d19190611f0e565b6040516317d5759960e31b81526001600160a01b0384811660048301528083166024830152604482018890529192509084169063beabacc890606401600060405180830381600087803b15801561172757600080fd5b505af115801561173b573d6000803e3d6000fd5b50505050505050505b50505050565b60006020828403121561175c57600080fd5b81356001600160e01b03198116811461177457600080fd5b9392505050565b62ffffff8116811461178c57600080fd5b50565b6000602082840312156117a157600080fd5b81356117748161177b565b60005b838110156117c75781810151838201526020016117af565b50506000910152565b600081518084526117e88160208601602086016117ac565b601f01601f19169290920160200192915050565b60208152600061177460208301846117d0565b6001600160601b038116811461178c57600080fd5b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff8111828210171561185d5761185d611824565b60405290565b604051610100810167ffffffffffffffff8111828210171561185d5761185d611824565b604051610120810167ffffffffffffffff8111828210171561185d5761185d611824565b60405160c0810167ffffffffffffffff8111828210171561185d5761185d611824565b6000604082840312156118e057600080fd5b6118e861183a565b9050813581526020820135602082015292915050565b6000806060838503121561191157600080fd5b823561191c8161180f565b915061192b84602085016118ce565b90509250929050565b600080600060c0848603121561194957600080fd5b61195385856118ce565b925061196285604086016118ce565b915061197185608086016118ce565b90509250925092565b6001600160a01b038116811461178c57600080fd5b600080604083850312156119a257600080fd5b82356119ad8161197a565b915060208301356119bd8161197a565b809150509250929050565b6000602082840312156119da57600080fd5b5035919050565b60008060008060008060c087890312156119fa57600080fd5b8635611a058161197a565b9550611a1488602089016118ce565b9450606087013593506080870135925060a087013567ffffffffffffffff80821115611a3f57600080fd5b818901915089601f830112611a5357600080fd5b813581811115611a6257600080fd5b8a6020828501011115611a7457600080fd5b6020830194508093505050509295509295509295565b600060208284031215611a9c57600080fd5b5051919050565b600060208284031215611ab557600080fd5b81516117748161177b565b8051611acb8161180f565b919050565b600060208284031215611ae257600080fd5b81516117748161180f565b600060408284031215611aff57600080fd5b611b0761183a565b9050815181526020820151602082015292915050565b600082601f830112611b2e57600080fd5b815167ffffffffffffffff80821115611b4957611b49611824565b604051601f8301601f19908116603f01168101908282118183101715611b7157611b71611824565b81604052838152866020858801011115611b8a57600080fd5b611b9b8460208301602089016117ac565b9695505050505050565b805164ffffffffff81168114611acb57600080fd5b600060208284031215611bcc57600080fd5b815167ffffffffffffffff80821115611be457600080fd5b908301906101208286031215611bf957600080fd5b611c01611863565b611c0a83611ac0565b8152611c198660208501611aed565b6020820152606083015182811115611c3057600080fd5b611c3c87828601611b1d565b6040830152506080830151606082015260a0830151608082015260c083015160a0820152611c6c60e08401611ba5565b60c0820152611c7e6101008401611ba5565b60e082015295945050505050565b600060208284031215611c9e57600080fd5b8151801515811461177457600080fd5b60006001600160601b03808516835260406020840152808451166040840152506020830151611cea606084018280518252602090810151910152565b5060408301516101208060a0850152611d076101608501836117d0565b9150606085015160c0850152608085015160e085015260a085015161010085015260c0850151611d3f8286018264ffffffffff169052565b505060e084015164ffffffffff811661014085015250949350505050565b8051611acb8161197a565b60006101e08284031215611d7b57600080fd5b611d83611887565b611d8c83611ac0565b8152611d9a60208401611ac0565b6020820152611dab60408401611d5d565b6040820152611dbd8460608501611aed565b6060820152611dcf8460a08501611aed565b6080820152611de18460e08501611aed565b60a0820152611df4846101208501611aed565b60c0820152611e07846101608501611aed565b60e0820152611e1a846101a08501611aed565b6101008201529392505050565b6001600160601b038381168252825116602080830191909152820151610200820190611e5e60408401826001600160601b03169052565b5060408301516001600160a01b038116606084015250606083015180516080840152602081015160a0840152506080830151805160c0840152602081015160e08401525060a0830151610100611ec08185018380518252602090810151910152565b60c0850151805161014086015260209081015161016086015260e086015180516101808701528101516101a086015294015180516101c0850152909301516101e09092019190915292915050565b600060208284031215611f2057600080fd5b81516117748161197a565b634e487b7160e01b600052603260045260246000fd5b60ff8116811461178c57600080fd5b600060208284031215611f6257600080fd5b815161177481611f41565b6001600160601b038881168252871660208201526000611f9a604083018880518252602090810151910152565b8560808301528460a083015260e060c08301528260e08301526101008385828501376000838501820152601f909301601f1916909101909101979650505050505050565b600060208284031215611ff057600080fd5b815167ffffffffffffffff8082111561200857600080fd5b9083019060c0828603121561201c57600080fd5b6120246118ab565b825161202f8161180f565b8152602083015161203f8161180f565b6020820152604083015161205281611f41565b604082015261206360608401611d5d565b606082015261207460808401611d5d565b608082015260a08301518281111561208b57600080fd5b61209787828601611b1d565b60a08301525095945050505050565b818103818111156111fe57634e487b7160e01b600052601160045260246000fdfea2646970667358221220149e51fe082c36da0dd3edf0db5bd9e53b51dc44c1b5911743b07384af4eed7664736f6c63430008140033",
466
- "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061012c5760003560e01c8063636450f5116100ad5780639555c4db116100715780639555c4db146103d3578063a3f4df7e146103e6578063b88da75914610410578063cde749f414610423578063e3458d531461042b57600080fd5b8063636450f51461038a578063644c45e01461039f57806382678766146103a7578063893d20e8146103ba578063946dfcfe146103c257600080fd5b80631aa3a008116100f45780631aa3a008146101e757806331b62a3b146102075780633bc5de301461022d5780634d459c90146102415780635ab1bd531461035057600080fd5b806301ffc9a7146101315780630abd8434146101735780630d8e6e2c1461018657806315dae03e146101a257806317d7de7c146101b7575b600080fd5b61015e61013f36600461174a565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b61015e61018136600461178f565b61043e565b61018e6104e1565b60405162ffffff909116815260200161016a565b60285b60405160ff909116815260200161016a565b60408051808201909152600b81526a506f6f6c5365727669636560a81b60208201525b60405161016a91906117fc565b6101ef61056b565b6040516001600160601b03909116815260200161016a565b7f00000000000000000000000000000000000000000000000000000000000000006101ef565b6040805160208101909152600081526101da565b6102f361024f36600461178f565b6040805160a0810182526000808252602082018190529181018290526060810182905260808101919091525062ffffff908116600090815260016020818152604092839020835160a0810185528154958616815263010000009095046001600160a01b03908116928601929092529091015490811691830191909152600160a01b810464ffffffffff166060830152600160c81b900463ffffffff16608082015290565b60408051825162ffffff1681526020808401516001600160a01b039081169183019190915283830151169181019190915260608083015164ffffffffff169082015260809182015163ffffffff169181019190915260a00161016a565b7f00000000000000000000000000000000000000000000000000000000000000005b6040516001600160a01b03909116815260200161016a565b61039d6103983660046118fe565b610664565b005b6101ef61088f565b61039d6103b5366004611934565b6108f6565b610372610a78565b60025460405190815260200161016a565b61039d6103e136600461198f565b610bd5565b6101da6040518060400160405280600b81526020016a506f6f6c5365727669636560a81b81525081565b61018e61041e3660046119c8565b610be3565b6101a5610c24565b6101ef6104393660046119e1565b610d01565b62ffffff81166000908152600160208190526040808320909101549051631bbffab160e21b8152600160c81b90910463ffffffff166004820152819073__$5f476116ae21c5294e0c0761c07efa7e1c$__90636effeac490602401602060405180830381865af41580156104b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104da9190611a8a565b1192915050565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90632efe011390606401602060405180830381865af4158015610542573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105669190611aa3565b905090565b6000610575610a78565b6001600160a01b0316336001600160a01b0316146105da5760405162461bcd60e51b815260206004820152601760248201527f4552524f523a5247422d3030313a4e4f545f4f574e455200000000000000000060448201526064015b60405180910390fd5b604051632210724360e11b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690634420e486906024016020604051808303816000875af1158015610640573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105669190611ad0565b600080610671608c610ece565b604051634793b4ab60e01b81526001600160601b038716600482015291935091506000906001600160a01b03831690634793b4ab90602401600060405180830381865afa1580156106c6573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526106ee9190810190611bba565b80516040516330b8415f60e01b81526001600160601b03909116600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af415801561074c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107709190611c8c565b6107bc5760405162461bcd60e51b815260206004820152601c60248201527f4552524f523a504c532d3031303a42554e444c455f554e4b4e4f574e0000000060448201526064016105d1565b825181516107ca91906111ee565b6108215760405162461bcd60e51b815260206004820152602260248201527f4552524f523a504c532d3031313a42554e444c455f504f4f4c5f4d49534d4154604482015261086960f31b60648201526084016105d1565b60208101849052604051637e8a1e3b60e11b81526001600160a01b0383169063fd143c76906108569088908590600401611cae565b600060405180830381600087803b15801561087057600080fd5b505af1158015610884573d6000803e3d6000fd5b505050505050505050565b604051636939560f60e11b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063d272ac1e90602401602060405180830381865afa158015610640573d6000803e3d6000fd5b600080610903608c610ece565b8151604051639ae31ff560e01b81526001600160601b03909116600482015291935091506000906001600160a01b03831690639ae31ff590602401602060405180830381865afa15801561095b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061097f9190611ad0565b60405163f2b246c360e01b81526001600160601b03821660048201529091506000906001600160a01b0384169063f2b246c3906024016101e060405180830381865afa1580156109d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109f79190611d68565b60a0810188905260c0810187905260e081018690526040516306a5298b60e01b81529091506001600160a01b038416906306a5298b90610a3d9085908590600401611e27565b600060405180830381600087803b158015610a5757600080fd5b505af1158015610a6b573d6000803e3d6000fd5b5050505050505050505050565b604051636939560f60e11b815230600482015260009081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d272ac1e90602401602060405180830381865afa158015610ae1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b059190611ad0565b9050610b128160006111ee565b15610b3e577f000000000000000000000000000000000000000000000000000000000000000091505090565b60405163df33330b60e01b81526001600160601b03821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063df33330b90602401602060405180830381865afa158015610bab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bcf9190611f0e565b91505090565b610bdf8282611204565b5050565b600060028281548110610bf857610bf8611f2b565b90600052602060002090600a91828204019190066003029054906101000a900462ffffff169050919050565b6000306001600160a01b0316630d8e6e2c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c889190611aa3565b60405163c9e66e2960e01b815262ffffff909116600482015273__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__9063c9e66e2990602401602060405180830381865af4158015610cdd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105669190611f50565b60008080610d0f608c610ece565b815191935091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316635ef14b5e8260dc6040516001600160e01b031960e085901b1681526001600160601b03909216600483015260ff1660248201526001600160a01b038d166044820152608060648201526000608482015260a4016020604051808303816000875af1158015610db3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dd79190611ad0565b6040516346aea9b760e11b81529094506001600160a01b03831690638d5d536e90610e1290879085908e908e908e908e908e90600401611f6d565b600060405180830381600087803b158015610e2c57600080fd5b505af1158015610e40573d6000803e3d6000fd5b5050604051639845743760e01b81526001600160601b03808816600483015284166024820152604481018b90526001600160a01b038516925063984574379150606401600060405180830381600087803b158015610e9d57600080fd5b505af1158015610eb1573d6000803e3d6000fd5b50505050610ec18282868b6114d2565b5050509695505050505050565b6040805160c08101825260008082526020820181905281830181905260608083018290526080830182905260a08301529151636939560f60e11b815233600482015290919081907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063d272ac1e90602401602060405180830381865afa158015610f66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f8a9190611ad0565b6040516330b8415f60e01b81526001600160601b038216600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610fe5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110099190611c8c565b6110555760405162461bcd60e51b815260206004820152601760248201527f4552524f525f434f4d504f4e454e545f554e4b4e4f574e00000000000000000060448201526064016105d1565b6040516305247a1760e51b81526001600160601b03821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a48f42e090602401600060405180830381865afa1580156110c2573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526110ea9190810190611fde565b925061110083604001518560ff90811691161490565b6111425760405162461bcd60e51b815260206004820152601360248201527213d0929150d517d516541157d2539590531251606a1b60448201526064016105d1565b60208301516040516305247a1760e51b81526001600160601b0390911660048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a48f42e090602401600060405180830381865afa1580156111b8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526111e09190810190611fde565b606001519395939450505050565b6001600160601b03828116908216145b92915050565b600061120e6104e1565b90506112198161043e565b156112765760405162461bcd60e51b815260206004820152602760248201527f4552524f523a56524e2d3030313a56455253494f4e5f414c52454144595f41436044820152661512559055115160ca1b60648201526084016105d1565b60025415611335576002805460009190611292906001906120a6565b815481106112a2576112a2611f2b565b90600052602060002090600a91828204019190066003029054906101000a900462ffffff1690506112db828262ffffff90811691161190565b6113335760405162461bcd60e51b8152602060048201526024808201527f4552524f523a56524e2d3030323a56455253494f4e5f4e4f545f494e4352454160448201526353494e4760e01b60648201526084016105d1565b505b60028054600181018255600091909152600a8082047f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace01805462ffffff808616600394909506939093026101000a848102930219169190911790556040805160a0810182529182526001600160a01b038086166020840152841690820152606081016113be4290565b64ffffffffff1681526020014363ffffffff90811690915262ffffff80841660009081526001602081815260409283902086518154928801516001600160a01b039081166301000000026001600160b81b0319909416919096161791909117815585830151910180546060870151608090970151909516600160c81b0263ffffffff60c81b1964ffffffffff909716600160a01b026001600160c81b031990961692909416919091179390931793909316179055517f68e7327fca0057a787cde34ababb9ef9844ba8065ee03e8781d8122fc15d4419906114c59083908690869062ffffff9390931683526001600160a01b03918216602084015216604082015260600190565b60405180910390a1505050565b801561174457604051639ae31ff560e01b81526001600160601b03841660048201526000906001600160a01b03861690639ae31ff590602401602060405180830381865afa158015611528573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061154c9190611ad0565b60405163a310e2a360e01b81526001600160601b03821660048201529091506000906001600160a01b0387169063a310e2a390602401602060405180830381865afa15801561159f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115c39190611f0e565b60405163df33330b60e01b81526001600160601b03861660048201529091506000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063df33330b90602401602060405180830381865afa158015611636573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061165a9190611f0e565b604051630d48c43b60e11b81526001600160601b03881660048201529091506000906001600160a01b03891690631a91887690602401602060405180830381865afa1580156116ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116d19190611f0e565b6040516317d5759960e31b81526001600160a01b0384811660048301528083166024830152604482018890529192509084169063beabacc890606401600060405180830381600087803b15801561172757600080fd5b505af115801561173b573d6000803e3d6000fd5b50505050505050505b50505050565b60006020828403121561175c57600080fd5b81356001600160e01b03198116811461177457600080fd5b9392505050565b62ffffff8116811461178c57600080fd5b50565b6000602082840312156117a157600080fd5b81356117748161177b565b60005b838110156117c75781810151838201526020016117af565b50506000910152565b600081518084526117e88160208601602086016117ac565b601f01601f19169290920160200192915050565b60208152600061177460208301846117d0565b6001600160601b038116811461178c57600080fd5b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff8111828210171561185d5761185d611824565b60405290565b604051610100810167ffffffffffffffff8111828210171561185d5761185d611824565b604051610120810167ffffffffffffffff8111828210171561185d5761185d611824565b60405160c0810167ffffffffffffffff8111828210171561185d5761185d611824565b6000604082840312156118e057600080fd5b6118e861183a565b9050813581526020820135602082015292915050565b6000806060838503121561191157600080fd5b823561191c8161180f565b915061192b84602085016118ce565b90509250929050565b600080600060c0848603121561194957600080fd5b61195385856118ce565b925061196285604086016118ce565b915061197185608086016118ce565b90509250925092565b6001600160a01b038116811461178c57600080fd5b600080604083850312156119a257600080fd5b82356119ad8161197a565b915060208301356119bd8161197a565b809150509250929050565b6000602082840312156119da57600080fd5b5035919050565b60008060008060008060c087890312156119fa57600080fd5b8635611a058161197a565b9550611a1488602089016118ce565b9450606087013593506080870135925060a087013567ffffffffffffffff80821115611a3f57600080fd5b818901915089601f830112611a5357600080fd5b813581811115611a6257600080fd5b8a6020828501011115611a7457600080fd5b6020830194508093505050509295509295509295565b600060208284031215611a9c57600080fd5b5051919050565b600060208284031215611ab557600080fd5b81516117748161177b565b8051611acb8161180f565b919050565b600060208284031215611ae257600080fd5b81516117748161180f565b600060408284031215611aff57600080fd5b611b0761183a565b9050815181526020820151602082015292915050565b600082601f830112611b2e57600080fd5b815167ffffffffffffffff80821115611b4957611b49611824565b604051601f8301601f19908116603f01168101908282118183101715611b7157611b71611824565b81604052838152866020858801011115611b8a57600080fd5b611b9b8460208301602089016117ac565b9695505050505050565b805164ffffffffff81168114611acb57600080fd5b600060208284031215611bcc57600080fd5b815167ffffffffffffffff80821115611be457600080fd5b908301906101208286031215611bf957600080fd5b611c01611863565b611c0a83611ac0565b8152611c198660208501611aed565b6020820152606083015182811115611c3057600080fd5b611c3c87828601611b1d565b6040830152506080830151606082015260a0830151608082015260c083015160a0820152611c6c60e08401611ba5565b60c0820152611c7e6101008401611ba5565b60e082015295945050505050565b600060208284031215611c9e57600080fd5b8151801515811461177457600080fd5b60006001600160601b03808516835260406020840152808451166040840152506020830151611cea606084018280518252602090810151910152565b5060408301516101208060a0850152611d076101608501836117d0565b9150606085015160c0850152608085015160e085015260a085015161010085015260c0850151611d3f8286018264ffffffffff169052565b505060e084015164ffffffffff811661014085015250949350505050565b8051611acb8161197a565b60006101e08284031215611d7b57600080fd5b611d83611887565b611d8c83611ac0565b8152611d9a60208401611ac0565b6020820152611dab60408401611d5d565b6040820152611dbd8460608501611aed565b6060820152611dcf8460a08501611aed565b6080820152611de18460e08501611aed565b60a0820152611df4846101208501611aed565b60c0820152611e07846101608501611aed565b60e0820152611e1a846101a08501611aed565b6101008201529392505050565b6001600160601b038381168252825116602080830191909152820151610200820190611e5e60408401826001600160601b03169052565b5060408301516001600160a01b038116606084015250606083015180516080840152602081015160a0840152506080830151805160c0840152602081015160e08401525060a0830151610100611ec08185018380518252602090810151910152565b60c0850151805161014086015260209081015161016086015260e086015180516101808701528101516101a086015294015180516101c0850152909301516101e09092019190915292915050565b600060208284031215611f2057600080fd5b81516117748161197a565b634e487b7160e01b600052603260045260246000fd5b60ff8116811461178c57600080fd5b600060208284031215611f6257600080fd5b815161177481611f41565b6001600160601b038881168252871660208201526000611f9a604083018880518252602090810151910152565b8560808301528460a083015260e060c08301528260e08301526101008385828501376000838501820152601f909301601f1916909101909101979650505050505050565b600060208284031215611ff057600080fd5b815167ffffffffffffffff8082111561200857600080fd5b9083019060c0828603121561201c57600080fd5b6120246118ab565b825161202f8161180f565b8152602083015161203f8161180f565b6020820152604083015161205281611f41565b604082015261206360608401611d5d565b606082015261207460808401611d5d565b608082015260a08301518281111561208b57600080fd5b61209787828601611b1d565b60a08301525095945050505050565b818103818111156111fe57634e487b7160e01b600052601160045260246000fdfea2646970667358221220149e51fe082c36da0dd3edf0db5bd9e53b51dc44c1b5911743b07384af4eed7664736f6c63430008140033",
867
+ "bytecode": "0x60806040523480156200001157600080fd5b50620000546301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b600280546001600160a01b031916331790556200007062000076565b6200012a565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff1615620000c75760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b0390811614620001275780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6140b1806200013a6000396000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c806382678766116100f9578063caf4e3d411610097578063cf7a1d7711610071578063cf7a1d7714610555578063cf7e5db814610568578063e3458d531461057b578063fde0a3cd1461058e57600080fd5b8063caf4e3d41461052b578063cc9fc59a14610533578063cde749f41461053b57600080fd5b8063a3f4df7e116100d3578063a3f4df7e146104bb578063a745e3df146104e5578063b3c65015146104f8578063b88da7591461051857600080fd5b80638267876614610479578063893d20e81461048c578063946dfcfe1461049457600080fd5b80634420e486116101665780635ab1bd53116101405780635ab1bd5314610416578063636450f51461043b578063644c45e01461044e5780636f10e8a01461046657600080fd5b80634420e486146102bf5780634d459c90146102ea5780634f4213331461040357600080fd5b8063138461e0116101a2578063138461e01461023d57806317d7de7c146102475780631eff4b221461027757806332e6f922146102ac57600080fd5b806301ffc9a7146101c95780630d8e6e2c1461020b5780630fec111c14610227575b600080fd5b6101f66101d7366004612f1e565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b6102136105a1565b60405162ffffff9091168152602001610202565b61022f61062b565b604051610202929190613018565b61024561077e565b005b60408051808201909152600b81526a506f6f6c5365727669636560a81b60208201525b6040516102029190613046565b61029e7f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b604051908152602001610202565b6102456102ba366004613093565b6109a0565b6102d26102cd3660046130ee565b610bbf565b6040516001600160601b039091168152602001610202565b6103a66102f836600461311c565b6040805160a08101825260008082526020820181905291810182905260608101829052608081019190915260008051602061405c83398151915262ffffff92831660009081526020918252604090819020815160a0810183528154958616815263010000009095046001600160a01b03908116938601939093526001015491821690840152600160a01b810464ffffffffff166060840152600160c81b900463ffffffff1660808301525090565b60408051825162ffffff1681526020808401516001600160a01b039081169183019190915283830151169181019190915260608083015164ffffffffff169082015260809182015163ffffffff169181019190915260a001610202565b6101f661041136600461311c565b610dc3565b6001546001600160a01b03165b6040516001600160a01b039091168152602001610202565b61024561044936600461323f565b610e76565b600154600160a01b90046001600160601b03166102d2565b610245610474366004613275565b611111565b610245610487366004613292565b6111ef565b610423611364565b7f4f61291a8ac3d020d0a7d919a76b8592aa88385744dee3f8b4f3873b969ed9015461029e565b61026a6040518060400160405280600b81526020016a506f6f6c5365727669636560a81b81525081565b6102456104f3366004613355565b61147e565b6105006115d8565b6040516001600160401b039091168152602001610202565b6102136105263660046133b6565b6115f9565b61042361164a565b610423611705565b61054361177d565b60405160ff9091168152602001610202565b610245610563366004613355565b611800565b610245610576366004613407565b611908565b6102d261058936600461351d565b611a67565b61024561059c366004613275565b611dc3565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90632efe011390606401602060405180830381865af4158015610602573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061062691906135c5565b905090565b610633612ee0565b606060007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30090506040518060e0016040528061067f6001546001600160601b03600160a01b9091041690565b6001600160601b0390811682528354908116602083015260ff600160601b820481166040840152600160681b909104161515606082015230608082015260a0016106c7611364565b6001600160a01b031681526020018260010180546106e4906135e2565b80601f0160208091040260200160405190810160405280929190818152602001828054610710906135e2565b801561075d5780601f106107325761010080835404028352916020019161075d565b820191906000526020600020905b81548152906001019060200180831161074057829003601f168201915b50505050508152506040518060200160405280600081525092509250509091565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af41580156107e0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610804919061362c565b1561084b576001546040516316322c0f60e31b81526001600160a01b0382166004820152600160a01b9091046001600160601b031660248201526044015b60405180910390fd5b6001546001600160a01b03166108745760405163cf29926160e01b815260040160405180910390fd5b60015460405163c3c5a54760e01b81523060048201819052916001600160a01b03169063c3c5a54790602401602060405180830381865afa1580156108bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108e1919061362c565b610909576040516372657a5160e01b81526001600160a01b0382166004820152602401610842565b600154604051636939560f60e11b81526001600160a01b0383811660048301529091169063d272ac1e90602401602060405180830381865afa158015610953573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109779190613652565b600160146101000a8154816001600160601b0302191690836001600160601b0316021790555050565b336109b36001546001600160a01b031690565b604051632b91e0a960e01b81526001600160a01b0383811660048301529190911690632b91e0a990602401602060405180830381865afa1580156109fb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a1f919061362c565b610a3b5760405162461bcd60e51b81526004016108429061366f565b6000866001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a7b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a9f919061369a565b604051634793b4ab60e01b81526001600160601b03871660048201529091506000906001600160a01b03831690634793b4ab90602401600060405180830381865afa158015610af2573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b1a9190810190613737565b90508481608001818151610b2e9190613817565b90525060a081018051859190610b45908390613817565b9052506040516307f8b57360e31b81526001600160a01b03891690633fc5ab9890610b79908990859060ff906004016138d7565b600060405180830381600087803b158015610b9357600080fd5b505af1158015610ba7573d6000803e3d6000fd5b50505050610bb58888611e6e565b5050505050505050565b60003382610bcb612ee0565b6060610bd561164a565b604051637286e5e560e01b81526001600160a01b03858116600483015286811660248301529190911690637286e5e5906044016000604051808303816000875af1158015610c27573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610c4f91908101906139cf565b90925090506000610c5f83612166565b90506000610c6b611705565b6001600160a01b031663103bd5da87610c82612208565b6040516001600160e01b031960e085901b1681526001600160a01b0392831660048201526001600160401b0390911660248201529085166044820152606401602060405180830381865afa158015610cde573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d02919061362c565b905080610d4557610d11612208565b6040516351302f8160e01b81526001600160401b0390911660048201526001600160a01b0387166024820152604401610842565b835196506000610d5484612280565b6040516339f34df560e21b81529091506001600160a01b0384169063e7cd37d490610d85908b908590600401613aeb565b600060405180830381600087803b158015610d9f57600080fd5b505af1158015610db3573d6000803e3d6000fd5b5050505050505050505050919050565b60008060008051602061405c83398151915262ffffff84166000908152602091909152604090819020600101549051631bbffab160e21b8152600160c81b90910463ffffffff16600482015273__$5f476116ae21c5294e0c0761c07efa7e1c$__90636effeac490602401602060405180830381865af4158015610e4b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e6f9190613b09565b1192915050565b600080610e83608c61230e565b915091506000816001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ec7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eeb919061369a565b8351604051634793b4ab60e01b81526001600160601b0388166004820152919250906000906001600160a01b03841690634793b4ab90602401600060405180830381865afa158015610f41573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610f699190810190613737565b80516040516330b8415f60e01b81526001600160601b03909116600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610fc7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610feb919061362c565b6110375760405162461bcd60e51b815260206004820152601c60248201527f4552524f523a504c532d3031303a42554e444c455f554e4b4e4f574e000000006044820152606401610842565b80516001600160601b0380841691161461109e5760405162461bcd60e51b815260206004820152602260248201527f4552524f523a504c532d3031313a42554e444c455f504f4f4c5f4d49534d4154604482015261086960f31b6064820152608401610842565b602081018690526040516307f8b57360e31b81526001600160a01b03851690633fc5ab98906110d6908a90859060ff906004016138d7565b600060405180830381600087803b1580156110f057600080fd5b505af1158015611104573d6000803e3d6000fd5b5050505050505050505050565b600061111d608c61230e565b9150506000816001600160a01b03166361f5f4206040518163ffffffff1660e01b8152600401602060405180830381865afa158015611160573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611184919061369a565b6040516306fa456560e01b81526001600160601b03851660048201529091506001600160a01b038216906306fa4565906024015b600060405180830381600087803b1580156111d257600080fd5b505af11580156111e6573d6000803e3d6000fd5b50505050505050565b6000806111fc608c61230e565b915091506000816001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa158015611240573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611264919061369a565b83516040516355e343a960e01b81526001600160601b0382166004820152919250906000906001600160a01b038416906355e343a99060240161018060405180830381865afa1580156112bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112df9190613b22565b606081018990526080810188905260a08101879052604051633055195560e11b81529091506001600160a01b038516906360aa32aa90611328908590859060ff90600401613bd7565b600060405180830381600087803b15801561134257600080fd5b505af1158015611356573d6000803e3d6000fd5b505050505050505050505050565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015260009073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af41580156113c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113ed919061362c565b1561146e57600154604051631c5da14d60e11b8152600160a01b82046001600160601b031660048201526001600160a01b03909116906338bb429a906024015b602060405180830381865afa15801561144a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610626919061369a565b506002546001600160a01b031690565b73__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__63a123b37c6114a06105a1565b6040516001600160e01b031960e084901b16815262ffffff9091166004820152602401602060405180830381865af41580156114e0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115049190613c1c565b60008051602061403c8339815191528054600160401b900460ff1680611537575080546001600160401b03808416911610155b156115555760405163f92ee8a960e01b815260040160405180910390fd5b805468ffffffffffffffffff19166001600160401b03831617600160401b178155611580858561247e565b6115898361271d565b805460ff60401b191681556040516001600160401b03831681527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2906020015b60405180910390a15050505050565b600061062660008051602061403c833981519152546001600160401b031690565b600060008051602061405c833981519152600101828154811061161e5761161e613c39565b90600052602060002090600a91828204019190066003029054906101000a900462ffffff169050919050565b60008061165f6001546001600160a01b031690565b6001600160a01b031663a3bcd81d61167561177d565b604080516001600160e01b031960e085901b1681526004810191909152600f60448201526e52656769737472795365727669636560881b606482015260ff9091166024820152608401602060405180830381865afa1580156116db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116ff919061369a565b92915050565b60006117196001546001600160a01b031690565b6001600160a01b031663a3bcd81d61172f61177d565b604080516001600160e01b031960e085901b1681526004810191909152600f60448201526e496e7374616e63655365727669636560881b606482015260ff909116602482015260840161142d565b60006117876105a1565b60405163c9e66e2960e01b815262ffffff909116600482015273__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__9063c9e66e2990602401602060405180830381865af41580156117dc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106269190613c4f565b60008051602061403c8339815191528054600160401b810460ff1615906001600160401b03166000811580156118335750825b90506000826001600160401b0316600114801561184f5750303b155b90508115801561185d575080155b1561187b5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff1916600117855583156118a557845460ff60401b1916600160401b1785555b6118af888861247e565b6118b98787612725565b8315610bb557845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15050505050505050565b3361191b6001546001600160a01b031690565b604051632b91e0a960e01b81526001600160a01b0383811660048301529190911690632b91e0a990602401602060405180830381865afa158015611963573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611987919061362c565b6119a35760405162461bcd60e51b81526004016108429061366f565b60006119b76001546001600160a01b031690565b6040516305247a1760e51b81526001600160601b03881660048201526001600160a01b03919091169063a48f42e090602401600060405180830381865afa158015611a06573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611a2e9190810190613c6c565b60808101516040516307f8b57360e31b8152919250906001600160a01b03821690633fc5ab98906110d6908990899089906004016138d7565b60008080611a75608c61230e565b915091506000816001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa158015611ab9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611add919061369a565b90506000836000015190506000604051806101200160405280836001600160601b031681526020018c815260200189898080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250938552505050602082018d90526040820152606081018c9052608081018b905260a001611b68600090565b64ffffffffff16815260006020909101529050611b8361164a565b6001600160a01b031663c2bf08c86040518060e00160405280611ba4600090565b6001600160601b03168152602001856001600160601b03168152602001611bc960dc90565b60ff16815260200160001515815260200160006001600160a01b031681526020018f6001600160a01b0316815260200184604051602001611c0a9190613ca0565b6040516020818303038152906040528152506040518263ffffffff1660e01b8152600401611c389190613cb3565b6020604051808303816000875af1158015611c57573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c7b9190613652565b604051633038d34760e11b81529096506001600160a01b03851690636071a68e90611cac9089908590600401613cc6565b600060405180830381600087803b158015611cc657600080fd5b505af1158015611cda573d6000803e3d6000fd5b505050506000846001600160a01b03166361f5f4206040518163ffffffff1660e01b8152600401602060405180830381865afa158015611d1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d42919061369a565b6040516346f0e8a760e11b81526001600160601b03891660048201529091506001600160a01b03821690638de1d14e90602401600060405180830381600087803b158015611d8f57600080fd5b505af1158015611da3573d6000803e3d6000fd5b50505050611db38484898e612850565b5050505050509695505050505050565b6000611dcf608c61230e565b9150506000816001600160a01b03166361f5f4206040518163ffffffff1660e01b8152600401602060405180830381865afa158015611e12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e36919061369a565b60405163b5346af560e01b81526001600160601b03851660048201529091506001600160a01b0382169063b5346af5906024016111b8565b33611e816001546001600160a01b031690565b604051632b91e0a960e01b81526001600160a01b0383811660048301529190911690632b91e0a990602401602060405180830381865afa158015611ec9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611eed919061362c565b611f095760405162461bcd60e51b81526004016108429061366f565b6000836001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa158015611f49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f6d919061369a565b60405163bd7d9d8560e01b81526001600160601b03851660048201529091506000906001600160a01b0383169063bd7d9d8590602401600060405180830381865afa158015611fc0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611fe89190810190613d12565b6101a0810151604051638d38cd4b60e01b815264ffffffffff909116600482015290915073__$d53880c81dc91c20799140d711e5ab8718$__90638d38cd4b90602401602060405180830381865af4158015612048573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061206c919061362c565b1561209557604051639218a15160e01b81526001600160601b0385166004820152602401610842565b6000856001600160a01b03166361f5f4206040518163ffffffff1660e01b8152600401602060405180830381865afa1580156120d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120f9919061369a565b604051630331f98560e21b81526001600160601b03871660048201529091506001600160a01b03821690630cc7e61490602401600060405180830381600087803b15801561214657600080fd5b505af115801561215a573d6000803e3d6000fd5b50505050505050505050565b60008061217b6001546001600160a01b031690565b60208401516040516305247a1760e51b81526001600160601b0390911660048201529091506000906001600160a01b0383169063a48f42e090602401600060405180830381865afa1580156121d4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526121fc9190810190613c6c565b60800151949350505050565b6040516368aebf7b60e01b815261012c600482015260009073__$cd131c2b3ba46b9dbe046aaf4458b9777d$__906368aebf7b90602401602060405180830381865af415801561225c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106269190613c1c565b6122fa60408051610120810182526000808252602080830182905282840182905283518085018552828152808201839052606084015283518085018552828152808201839052608084015283518085019094528184528301529060a082019081526000602082018190526040820181905260609091015290565b818060200190518101906116ff9190613b22565b612316612ee0565b60008061232b6001546001600160a01b031690565b6040516308b09a5f60e41b81523360048201529091506001600160a01b03821690638b09a5f090602401600060405180830381865afa158015612372573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261239a9190810190613c6c565b92506123b083604001518560ff90811691161490565b6123f25760405162461bcd60e51b815260206004820152601360248201527213d0929150d517d516541157d2539590531251606a1b6044820152606401610842565b60208301516040516305247a1760e51b81526001600160601b0390911660048201526000906001600160a01b0383169063a48f42e090602401600060405180830381865afa158015612448573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526124709190810190613c6c565b608001519395939450505050565b612486612ae0565b60008051602061405c83398151915260006124b660008051602061403c833981519152546001600160401b031690565b905060006124c26105a1565b9050816001600160401b03166001036124ef5760028301805462ffffff191662ffffff831617905561253d565b600283015462ffffff9081169082161161253d5760405162461bcd60e51b815260206004820152600f60248201526e24a72b20a624a2102b22a929a4a7a760891b6044820152606401610842565b6001808401805491820181556000908152602090819020600a808404909101805462ffffff808716600394909606939093026101000a858102930219169190911790556040805160a0810182529283526001600160a01b038089168484015287168382015280516356db0c1960e11b81529051606084019273__$d53880c81dc91c20799140d711e5ab8718$__9263adb6183292600480830193928290030181865af41580156125f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126159190613e77565b64ffffffffff1681526020014363ffffffff90811690915262ffffff8084166000908152602087815260409182902085518154928701516001600160a01b039081166301000000026001600160b81b0319909416919095161791909117815584820151600190910180546060870151608090970151909516600160c81b0263ffffffff60c81b1964ffffffffff909716600160a01b026001600160c81b031990961692909416919091179390931793909316179055517fad0a0fc10465a8dd9da3ad5f43e1a7fff4b4578551c76f0ae8deb844f0d0bf68906115c99083908890889062ffffff9390931683526001600160a01b03918216602084015216604082015260600190565b6101c4612ae0565b60008051602061403c8339815191528054600160401b810460ff1615906001600160401b03166000811580156127585750825b90506000826001600160401b031660011480156127745750303b155b905081158015612782575080155b156127a05760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff1916600117855583156127ca57845460ff60401b1916600160401b1785555b600080878060200190518101906127e19190613e94565b90925090506127f0828a612b19565b612800636d2eb53760e01b612ba2565b505083156111e657845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a150505050505050565b8015612ada576040516355e343a960e01b81526001600160601b03841660048201526000906001600160a01b038616906355e343a99060240161018060405180830381865afa1580156128a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128cb9190613b22565b602081015190915060006128e76001546001600160a01b031690565b604051631c5da14d60e11b81526001600160601b03871660048201526001600160a01b0391909116906338bb429a90602401602060405180830381865afa158015612936573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061295a919061369a565b60808401516101008501516040516317d5759960e31b81526001600160a01b03808516600483015291821660248201526044810188905292935090919084169063beabacc890606401600060405180830381600087803b1580156129bd57600080fd5b505af11580156129d1573d6000803e3d6000fd5b50506040516346f0526160e11b815273__$a23651848365a6a5ca15f07b4331037f48$__9250638de0a4c29150612a0c908490600401613ece565b602060405180830381865af4158015612a29573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a4d919061362c565b610bb55760405163012ebd8360e21b8152815160048201526020820151602482015260448101869052600090819073__$a23651848365a6a5ca15f07b4331037f48$__906304baf60c906064016040805180830381865af4158015612ab6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113569190613ee5565b50505050565b60008051602061403c83398151915254600160401b900460ff16612b1757604051631afcd79f60e31b815260040160405180910390fd5b565b6000612b4360408051808201909152600b81526a506f6f6c5365727669636560a81b602082015290565b612b4b61177d565b604051602001612b5c929190613f09565b60405160208183030381529060405290506000612b7884612bc7565b90506000612b8b8583603c848888612c32565b612b9b631b4612f160e31b612ba2565b5050505050565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b604051636939560f60e11b81526001600160a01b0382166004820181905260009163d272ac1e90602401602060405180830381865afa158015612c0e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116ff9190613652565b612c736301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b612c7d8287612cfe565b60007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0388166cffffffffffffffffffffffffff1990911617600160601b60ff8816021760ff60681b1916600160681b86151502178155905060018101612ced8382613f7c565b506111e66303fb044760e21b612ba2565b6001600160a01b038216612d545760405162461bcd60e51b815260206004820152601e60248201527f4e66744f776e61626c653a20696e697469616c206f776e6572206973203000006044820152606401610842565b600280546001600160a01b0319166001600160a01b038416179055612d7881612d7c565b5050565b6001546001600160a01b031615612db55760015460405163fcdbf2d960e01b81526001600160a01b039091166004820152602401610842565b6001600160a01b038116612ddc5760405163f5c4d07d60e01b815260040160405180910390fd5b806001600160a01b03163b600003612e125760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610842565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b8152632eaf856d60e11b60048201526301ffc9a790602401602060405180830381865afa925050508015612e8c575060408051601f3d908101601f19168201909252612e899181019061362c565b60015b612eb45760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610842565b80612d785760405163fdeac91f60e01b81526001600160a01b0383166004820152602401610842565b50565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c081019190915290565b600060208284031215612f3057600080fd5b81356001600160e01b031981168114612f4857600080fd5b9392505050565b60005b83811015612f6a578181015183820152602001612f52565b50506000910152565b60008151808452612f8b816020860160208601612f4f565b601f01601f19169290920160200192915050565b60006001600160601b038083511684528060208401511660208501525060ff6040830151166040840152606082015115156060840152608082015160018060a01b0380821660808601528060a08501511660a0860152505060c082015160e060c085015261301060e0850182612f73565b949350505050565b60408152600061302b6040830185612f9f565b828103602084015261303d8185612f73565b95945050505050565b602081526000612f486020830184612f73565b6001600160a01b0381168114612edd57600080fd5b6001600160601b0381168114612edd57600080fd5b803561308e8161306e565b919050565b600080600080600060a086880312156130ab57600080fd5b85356130b681613059565b945060208601356130c68161306e565b935060408601356130d68161306e565b94979396509394606081013594506080013592915050565b60006020828403121561310057600080fd5b8135612f4881613059565b62ffffff81168114612edd57600080fd5b60006020828403121561312e57600080fd5b8135612f488161310b565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b038111828210171561317157613171613139565b60405290565b60405161012081016001600160401b038111828210171561317157613171613139565b60405160e081016001600160401b038111828210171561317157613171613139565b60405161020081016001600160401b038111828210171561317157613171613139565b604051601f8201601f191681016001600160401b038111828210171561320757613207613139565b604052919050565b60006040828403121561322157600080fd5b61322961314f565b9050813581526020820135602082015292915050565b6000806060838503121561325257600080fd5b823561325d8161306e565b915061326c846020850161320f565b90509250929050565b60006020828403121561328757600080fd5b8135612f488161306e565b600080600060c084860312156132a757600080fd5b6132b1858561320f565b92506132c0856040860161320f565b91506132cf856080860161320f565b90509250925092565b60006001600160401b038211156132f1576132f1613139565b50601f01601f191660200190565b600082601f83011261331057600080fd5b813561332361331e826132d8565b6131df565b81815284602083860101111561333857600080fd5b816020850160208301376000918101602001919091529392505050565b60008060006060848603121561336a57600080fd5b833561337581613059565b9250602084013561338581613059565b915060408401356001600160401b038111156133a057600080fd5b6133ac868287016132ff565b9150509250925092565b6000602082840312156133c857600080fd5b5035919050565b64ffffffffff81168114612edd57600080fd5b803561308e816133cf565b60ff81168114612edd57600080fd5b803561308e816133ed565b6000806000806080858703121561341d57600080fd5b84356134288161306e565b935060208501356134388161306e565b925060408501356001600160401b038082111561345457600080fd5b90860190610140828903121561346957600080fd5b613471613177565b61347a83613083565b8152613489896020850161320f565b60208201526060830135828111156134a057600080fd5b6134ac8a8286016132ff565b6040830152506080830135606082015260a0830135608082015260c083013560a082015260e083013560c082015261010091506134ea8284016133e2565b60e08201526134fc61012084016133e2565b82820152809450505050613512606086016133fc565b905092959194509250565b60008060008060008060c0878903121561353657600080fd5b863561354181613059565b9550613550886020890161320f565b9450606087013593506080870135925060a08701356001600160401b038082111561357a57600080fd5b818901915089601f83011261358e57600080fd5b81358181111561359d57600080fd5b8a60208285010111156135af57600080fd5b6020830194508093505050509295509295509295565b6000602082840312156135d757600080fd5b8151612f488161310b565b600181811c908216806135f657607f821691505b60208210810361361657634e487b7160e01b600052602260045260246000fd5b50919050565b8051801515811461308e57600080fd5b60006020828403121561363e57600080fd5b612f488261361c565b805161308e8161306e565b60006020828403121561366457600080fd5b8151612f488161306e565b6020808252601190820152704552524f525f4e4f545f5345525649434560781b604082015260600190565b6000602082840312156136ac57600080fd5b8151612f4881613059565b6000604082840312156136c957600080fd5b6136d161314f565b9050815181526020820151602082015292915050565b600082601f8301126136f857600080fd5b815161370661331e826132d8565b81815284602083860101111561371b57600080fd5b613010826020830160208701612f4f565b805161308e816133cf565b60006020828403121561374957600080fd5b81516001600160401b038082111561376057600080fd5b90830190610140828603121561377557600080fd5b61377d613177565b61378683613647565b815261379586602085016136b7565b60208201526060830151828111156137ac57600080fd5b6137b8878286016136e7565b6040830152506080830151606082015260a0830151608082015260c083015160a082015260e083015160c082015261010091506137f682840161372c565b60e0820152613808610120840161372c565b91810191909152949350505050565b808201808211156116ff57634e487b7160e01b600052601160045260246000fd5b80516001600160601b03168252600061014060208381015180518683015290810151604086015250604083015181606086015261387782860182612f73565b91505060608301516080850152608083015160a085015260a083015160c085015260c083015160e085015260e08301516101006138bc8187018364ffffffffff169052565b84015164ffffffffff81166101208701529050509392505050565b6001600160601b03841681526060602082015260006138f96060830185613838565b905060ff83166040830152949350505050565b805161308e816133ed565b805161308e81613059565b600060e0828403121561393457600080fd5b61393c61319a565b905061394782613647565b815261395560208301613647565b60208201526139666040830161390c565b60408201526139776060830161361c565b606082015261398860808301613917565b608082015261399960a08301613917565b60a082015260c08201516001600160401b038111156139b757600080fd5b6139c3848285016136e7565b60c08301525092915050565b600080604083850312156139e257600080fd5b82516001600160401b03808211156139f957600080fd5b613a0586838701613922565b93506020850151915080821115613a1b57600080fd5b50613a28858286016136e7565b9150509250929050565b6001600160601b0381511682526020810151613a5960208401826001600160a01b03169052565b50604081015160408301526060810151613a80606084018280518252602090810151910152565b506080810151805160a0840152602081015160c08401525060a0810151805160e084015260208101516101008401525060c08101518015156101208401525060e08101518015156101408401525061010001516001600160a01b03166101609190910152565b505050565b6001600160601b03831681526101a08101612f486020830184613a32565b600060208284031215613b1b57600080fd5b5051919050565b60006101808284031215613b3557600080fd5b613b3d613177565b613b4683613647565b8152613b5460208401613917565b602082015260408301516040820152613b7084606085016136b7565b6060820152613b828460a085016136b7565b6080820152613b948460e085016136b7565b60a0820152613ba6610120840161361c565b60c0820152613bb8610140840161361c565b60e0820152613bca6101608401613917565b6101008201529392505050565b6001600160601b03841681526101c08101613bf56020830185613a32565b60ff83166101a0830152949350505050565b6001600160401b0381168114612edd57600080fd5b600060208284031215613c2e57600080fd5b8151612f4881613c07565b634e487b7160e01b600052603260045260246000fd5b600060208284031215613c6157600080fd5b8151612f48816133ed565b600060208284031215613c7e57600080fd5b81516001600160401b03811115613c9457600080fd5b61301084828501613922565b602081526000612f486020830184613838565b602081526000612f486020830184612f9f565b6001600160601b03831681526040602082015260006130106040830184613838565b80516001600160c01b03198116811461308e57600080fd5b805161ffff8116811461308e57600080fd5b600060208284031215613d2457600080fd5b81516001600160401b0380821115613d3b57600080fd5b908301906102008286031215613d5057600080fd5b613d586131bc565b613d6183613647565b8152613d6f60208401613647565b6020820152613d8060408401613ce8565b6040820152613d9160608401613ce8565b60608201526080830151608082015260a083015160a082015260c083015160c082015260e083015160e08201526101008084015183811115613dd257600080fd5b613dde888287016136e7565b8284015250506101208084015183811115613df857600080fd5b613e04888287016136e7565b8284015250506101409150613e1a828401613d00565b828201526101609150613e2e828401613d00565b82820152610180915081830151828201526101a09150613e4f82840161372c565b828201526101c09150613e6382840161372c565b828201526101e0915061380882840161372c565b600060208284031215613e8957600080fd5b8151612f48816133cf565b60008060408385031215613ea757600080fd5b8251613eb281613059565b6020840151909250613ec381613059565b809150509250929050565b8151815260208083015190820152604081016116ff565b60008060408385031215613ef857600080fd5b505080516020909101519092909150565b604081526000613f1c6040830185612f73565b905060ff831660208301529392505050565b601f821115613ae657600081815260208120601f850160051c81016020861015613f555750805b601f850160051c820191505b81811015613f7457828155600101613f61565b505050505050565b81516001600160401b03811115613f9557613f95613139565b613fa981613fa384546135e2565b84613f2e565b602080601f831160018114613fde5760008415613fc65750858301515b600019600386901b1c1916600185901b178555613f74565b600085815260208120601f198616915b8281101561400d57888601518255948401946001909101908401613fee565b508582101561402b5787850151600019600388901b60f8161c191681555b5050505050600190811b0190555056fef0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a004f61291a8ac3d020d0a7d919a76b8592aa88385744dee3f8b4f3873b969ed900a26469706673582212206de22ece9f27744e64e02235168a1566bcc76a5c2a61f82e812ffe7c148e427f64736f6c63430008140033",
868
+ "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101c45760003560e01c806382678766116100f9578063caf4e3d411610097578063cf7a1d7711610071578063cf7a1d7714610555578063cf7e5db814610568578063e3458d531461057b578063fde0a3cd1461058e57600080fd5b8063caf4e3d41461052b578063cc9fc59a14610533578063cde749f41461053b57600080fd5b8063a3f4df7e116100d3578063a3f4df7e146104bb578063a745e3df146104e5578063b3c65015146104f8578063b88da7591461051857600080fd5b80638267876614610479578063893d20e81461048c578063946dfcfe1461049457600080fd5b80634420e486116101665780635ab1bd53116101405780635ab1bd5314610416578063636450f51461043b578063644c45e01461044e5780636f10e8a01461046657600080fd5b80634420e486146102bf5780634d459c90146102ea5780634f4213331461040357600080fd5b8063138461e0116101a2578063138461e01461023d57806317d7de7c146102475780631eff4b221461027757806332e6f922146102ac57600080fd5b806301ffc9a7146101c95780630d8e6e2c1461020b5780630fec111c14610227575b600080fd5b6101f66101d7366004612f1e565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b6102136105a1565b60405162ffffff9091168152602001610202565b61022f61062b565b604051610202929190613018565b61024561077e565b005b60408051808201909152600b81526a506f6f6c5365727669636560a81b60208201525b6040516102029190613046565b61029e7f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b604051908152602001610202565b6102456102ba366004613093565b6109a0565b6102d26102cd3660046130ee565b610bbf565b6040516001600160601b039091168152602001610202565b6103a66102f836600461311c565b6040805160a08101825260008082526020820181905291810182905260608101829052608081019190915260008051602061405c83398151915262ffffff92831660009081526020918252604090819020815160a0810183528154958616815263010000009095046001600160a01b03908116938601939093526001015491821690840152600160a01b810464ffffffffff166060840152600160c81b900463ffffffff1660808301525090565b60408051825162ffffff1681526020808401516001600160a01b039081169183019190915283830151169181019190915260608083015164ffffffffff169082015260809182015163ffffffff169181019190915260a001610202565b6101f661041136600461311c565b610dc3565b6001546001600160a01b03165b6040516001600160a01b039091168152602001610202565b61024561044936600461323f565b610e76565b600154600160a01b90046001600160601b03166102d2565b610245610474366004613275565b611111565b610245610487366004613292565b6111ef565b610423611364565b7f4f61291a8ac3d020d0a7d919a76b8592aa88385744dee3f8b4f3873b969ed9015461029e565b61026a6040518060400160405280600b81526020016a506f6f6c5365727669636560a81b81525081565b6102456104f3366004613355565b61147e565b6105006115d8565b6040516001600160401b039091168152602001610202565b6102136105263660046133b6565b6115f9565b61042361164a565b610423611705565b61054361177d565b60405160ff9091168152602001610202565b610245610563366004613355565b611800565b610245610576366004613407565b611908565b6102d261058936600461351d565b611a67565b61024561059c366004613275565b611dc3565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90632efe011390606401602060405180830381865af4158015610602573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061062691906135c5565b905090565b610633612ee0565b606060007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30090506040518060e0016040528061067f6001546001600160601b03600160a01b9091041690565b6001600160601b0390811682528354908116602083015260ff600160601b820481166040840152600160681b909104161515606082015230608082015260a0016106c7611364565b6001600160a01b031681526020018260010180546106e4906135e2565b80601f0160208091040260200160405190810160405280929190818152602001828054610710906135e2565b801561075d5780601f106107325761010080835404028352916020019161075d565b820191906000526020600020905b81548152906001019060200180831161074057829003601f168201915b50505050508152506040518060200160405280600081525092509250509091565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af41580156107e0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610804919061362c565b1561084b576001546040516316322c0f60e31b81526001600160a01b0382166004820152600160a01b9091046001600160601b031660248201526044015b60405180910390fd5b6001546001600160a01b03166108745760405163cf29926160e01b815260040160405180910390fd5b60015460405163c3c5a54760e01b81523060048201819052916001600160a01b03169063c3c5a54790602401602060405180830381865afa1580156108bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108e1919061362c565b610909576040516372657a5160e01b81526001600160a01b0382166004820152602401610842565b600154604051636939560f60e11b81526001600160a01b0383811660048301529091169063d272ac1e90602401602060405180830381865afa158015610953573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109779190613652565b600160146101000a8154816001600160601b0302191690836001600160601b0316021790555050565b336109b36001546001600160a01b031690565b604051632b91e0a960e01b81526001600160a01b0383811660048301529190911690632b91e0a990602401602060405180830381865afa1580156109fb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a1f919061362c565b610a3b5760405162461bcd60e51b81526004016108429061366f565b6000866001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a7b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a9f919061369a565b604051634793b4ab60e01b81526001600160601b03871660048201529091506000906001600160a01b03831690634793b4ab90602401600060405180830381865afa158015610af2573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b1a9190810190613737565b90508481608001818151610b2e9190613817565b90525060a081018051859190610b45908390613817565b9052506040516307f8b57360e31b81526001600160a01b03891690633fc5ab9890610b79908990859060ff906004016138d7565b600060405180830381600087803b158015610b9357600080fd5b505af1158015610ba7573d6000803e3d6000fd5b50505050610bb58888611e6e565b5050505050505050565b60003382610bcb612ee0565b6060610bd561164a565b604051637286e5e560e01b81526001600160a01b03858116600483015286811660248301529190911690637286e5e5906044016000604051808303816000875af1158015610c27573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610c4f91908101906139cf565b90925090506000610c5f83612166565b90506000610c6b611705565b6001600160a01b031663103bd5da87610c82612208565b6040516001600160e01b031960e085901b1681526001600160a01b0392831660048201526001600160401b0390911660248201529085166044820152606401602060405180830381865afa158015610cde573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d02919061362c565b905080610d4557610d11612208565b6040516351302f8160e01b81526001600160401b0390911660048201526001600160a01b0387166024820152604401610842565b835196506000610d5484612280565b6040516339f34df560e21b81529091506001600160a01b0384169063e7cd37d490610d85908b908590600401613aeb565b600060405180830381600087803b158015610d9f57600080fd5b505af1158015610db3573d6000803e3d6000fd5b5050505050505050505050919050565b60008060008051602061405c83398151915262ffffff84166000908152602091909152604090819020600101549051631bbffab160e21b8152600160c81b90910463ffffffff16600482015273__$5f476116ae21c5294e0c0761c07efa7e1c$__90636effeac490602401602060405180830381865af4158015610e4b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e6f9190613b09565b1192915050565b600080610e83608c61230e565b915091506000816001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ec7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eeb919061369a565b8351604051634793b4ab60e01b81526001600160601b0388166004820152919250906000906001600160a01b03841690634793b4ab90602401600060405180830381865afa158015610f41573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610f699190810190613737565b80516040516330b8415f60e01b81526001600160601b03909116600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610fc7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610feb919061362c565b6110375760405162461bcd60e51b815260206004820152601c60248201527f4552524f523a504c532d3031303a42554e444c455f554e4b4e4f574e000000006044820152606401610842565b80516001600160601b0380841691161461109e5760405162461bcd60e51b815260206004820152602260248201527f4552524f523a504c532d3031313a42554e444c455f504f4f4c5f4d49534d4154604482015261086960f31b6064820152608401610842565b602081018690526040516307f8b57360e31b81526001600160a01b03851690633fc5ab98906110d6908a90859060ff906004016138d7565b600060405180830381600087803b1580156110f057600080fd5b505af1158015611104573d6000803e3d6000fd5b5050505050505050505050565b600061111d608c61230e565b9150506000816001600160a01b03166361f5f4206040518163ffffffff1660e01b8152600401602060405180830381865afa158015611160573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611184919061369a565b6040516306fa456560e01b81526001600160601b03851660048201529091506001600160a01b038216906306fa4565906024015b600060405180830381600087803b1580156111d257600080fd5b505af11580156111e6573d6000803e3d6000fd5b50505050505050565b6000806111fc608c61230e565b915091506000816001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa158015611240573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611264919061369a565b83516040516355e343a960e01b81526001600160601b0382166004820152919250906000906001600160a01b038416906355e343a99060240161018060405180830381865afa1580156112bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112df9190613b22565b606081018990526080810188905260a08101879052604051633055195560e11b81529091506001600160a01b038516906360aa32aa90611328908590859060ff90600401613bd7565b600060405180830381600087803b15801561134257600080fd5b505af1158015611356573d6000803e3d6000fd5b505050505050505050505050565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015260009073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af41580156113c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113ed919061362c565b1561146e57600154604051631c5da14d60e11b8152600160a01b82046001600160601b031660048201526001600160a01b03909116906338bb429a906024015b602060405180830381865afa15801561144a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610626919061369a565b506002546001600160a01b031690565b73__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__63a123b37c6114a06105a1565b6040516001600160e01b031960e084901b16815262ffffff9091166004820152602401602060405180830381865af41580156114e0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115049190613c1c565b60008051602061403c8339815191528054600160401b900460ff1680611537575080546001600160401b03808416911610155b156115555760405163f92ee8a960e01b815260040160405180910390fd5b805468ffffffffffffffffff19166001600160401b03831617600160401b178155611580858561247e565b6115898361271d565b805460ff60401b191681556040516001600160401b03831681527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2906020015b60405180910390a15050505050565b600061062660008051602061403c833981519152546001600160401b031690565b600060008051602061405c833981519152600101828154811061161e5761161e613c39565b90600052602060002090600a91828204019190066003029054906101000a900462ffffff169050919050565b60008061165f6001546001600160a01b031690565b6001600160a01b031663a3bcd81d61167561177d565b604080516001600160e01b031960e085901b1681526004810191909152600f60448201526e52656769737472795365727669636560881b606482015260ff9091166024820152608401602060405180830381865afa1580156116db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116ff919061369a565b92915050565b60006117196001546001600160a01b031690565b6001600160a01b031663a3bcd81d61172f61177d565b604080516001600160e01b031960e085901b1681526004810191909152600f60448201526e496e7374616e63655365727669636560881b606482015260ff909116602482015260840161142d565b60006117876105a1565b60405163c9e66e2960e01b815262ffffff909116600482015273__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__9063c9e66e2990602401602060405180830381865af41580156117dc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106269190613c4f565b60008051602061403c8339815191528054600160401b810460ff1615906001600160401b03166000811580156118335750825b90506000826001600160401b0316600114801561184f5750303b155b90508115801561185d575080155b1561187b5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff1916600117855583156118a557845460ff60401b1916600160401b1785555b6118af888861247e565b6118b98787612725565b8315610bb557845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15050505050505050565b3361191b6001546001600160a01b031690565b604051632b91e0a960e01b81526001600160a01b0383811660048301529190911690632b91e0a990602401602060405180830381865afa158015611963573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611987919061362c565b6119a35760405162461bcd60e51b81526004016108429061366f565b60006119b76001546001600160a01b031690565b6040516305247a1760e51b81526001600160601b03881660048201526001600160a01b03919091169063a48f42e090602401600060405180830381865afa158015611a06573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611a2e9190810190613c6c565b60808101516040516307f8b57360e31b8152919250906001600160a01b03821690633fc5ab98906110d6908990899089906004016138d7565b60008080611a75608c61230e565b915091506000816001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa158015611ab9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611add919061369a565b90506000836000015190506000604051806101200160405280836001600160601b031681526020018c815260200189898080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250938552505050602082018d90526040820152606081018c9052608081018b905260a001611b68600090565b64ffffffffff16815260006020909101529050611b8361164a565b6001600160a01b031663c2bf08c86040518060e00160405280611ba4600090565b6001600160601b03168152602001856001600160601b03168152602001611bc960dc90565b60ff16815260200160001515815260200160006001600160a01b031681526020018f6001600160a01b0316815260200184604051602001611c0a9190613ca0565b6040516020818303038152906040528152506040518263ffffffff1660e01b8152600401611c389190613cb3565b6020604051808303816000875af1158015611c57573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c7b9190613652565b604051633038d34760e11b81529096506001600160a01b03851690636071a68e90611cac9089908590600401613cc6565b600060405180830381600087803b158015611cc657600080fd5b505af1158015611cda573d6000803e3d6000fd5b505050506000846001600160a01b03166361f5f4206040518163ffffffff1660e01b8152600401602060405180830381865afa158015611d1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d42919061369a565b6040516346f0e8a760e11b81526001600160601b03891660048201529091506001600160a01b03821690638de1d14e90602401600060405180830381600087803b158015611d8f57600080fd5b505af1158015611da3573d6000803e3d6000fd5b50505050611db38484898e612850565b5050505050509695505050505050565b6000611dcf608c61230e565b9150506000816001600160a01b03166361f5f4206040518163ffffffff1660e01b8152600401602060405180830381865afa158015611e12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e36919061369a565b60405163b5346af560e01b81526001600160601b03851660048201529091506001600160a01b0382169063b5346af5906024016111b8565b33611e816001546001600160a01b031690565b604051632b91e0a960e01b81526001600160a01b0383811660048301529190911690632b91e0a990602401602060405180830381865afa158015611ec9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611eed919061362c565b611f095760405162461bcd60e51b81526004016108429061366f565b6000836001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa158015611f49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f6d919061369a565b60405163bd7d9d8560e01b81526001600160601b03851660048201529091506000906001600160a01b0383169063bd7d9d8590602401600060405180830381865afa158015611fc0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611fe89190810190613d12565b6101a0810151604051638d38cd4b60e01b815264ffffffffff909116600482015290915073__$d53880c81dc91c20799140d711e5ab8718$__90638d38cd4b90602401602060405180830381865af4158015612048573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061206c919061362c565b1561209557604051639218a15160e01b81526001600160601b0385166004820152602401610842565b6000856001600160a01b03166361f5f4206040518163ffffffff1660e01b8152600401602060405180830381865afa1580156120d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120f9919061369a565b604051630331f98560e21b81526001600160601b03871660048201529091506001600160a01b03821690630cc7e61490602401600060405180830381600087803b15801561214657600080fd5b505af115801561215a573d6000803e3d6000fd5b50505050505050505050565b60008061217b6001546001600160a01b031690565b60208401516040516305247a1760e51b81526001600160601b0390911660048201529091506000906001600160a01b0383169063a48f42e090602401600060405180830381865afa1580156121d4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526121fc9190810190613c6c565b60800151949350505050565b6040516368aebf7b60e01b815261012c600482015260009073__$cd131c2b3ba46b9dbe046aaf4458b9777d$__906368aebf7b90602401602060405180830381865af415801561225c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106269190613c1c565b6122fa60408051610120810182526000808252602080830182905282840182905283518085018552828152808201839052606084015283518085018552828152808201839052608084015283518085019094528184528301529060a082019081526000602082018190526040820181905260609091015290565b818060200190518101906116ff9190613b22565b612316612ee0565b60008061232b6001546001600160a01b031690565b6040516308b09a5f60e41b81523360048201529091506001600160a01b03821690638b09a5f090602401600060405180830381865afa158015612372573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261239a9190810190613c6c565b92506123b083604001518560ff90811691161490565b6123f25760405162461bcd60e51b815260206004820152601360248201527213d0929150d517d516541157d2539590531251606a1b6044820152606401610842565b60208301516040516305247a1760e51b81526001600160601b0390911660048201526000906001600160a01b0383169063a48f42e090602401600060405180830381865afa158015612448573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526124709190810190613c6c565b608001519395939450505050565b612486612ae0565b60008051602061405c83398151915260006124b660008051602061403c833981519152546001600160401b031690565b905060006124c26105a1565b9050816001600160401b03166001036124ef5760028301805462ffffff191662ffffff831617905561253d565b600283015462ffffff9081169082161161253d5760405162461bcd60e51b815260206004820152600f60248201526e24a72b20a624a2102b22a929a4a7a760891b6044820152606401610842565b6001808401805491820181556000908152602090819020600a808404909101805462ffffff808716600394909606939093026101000a858102930219169190911790556040805160a0810182529283526001600160a01b038089168484015287168382015280516356db0c1960e11b81529051606084019273__$d53880c81dc91c20799140d711e5ab8718$__9263adb6183292600480830193928290030181865af41580156125f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126159190613e77565b64ffffffffff1681526020014363ffffffff90811690915262ffffff8084166000908152602087815260409182902085518154928701516001600160a01b039081166301000000026001600160b81b0319909416919095161791909117815584820151600190910180546060870151608090970151909516600160c81b0263ffffffff60c81b1964ffffffffff909716600160a01b026001600160c81b031990961692909416919091179390931793909316179055517fad0a0fc10465a8dd9da3ad5f43e1a7fff4b4578551c76f0ae8deb844f0d0bf68906115c99083908890889062ffffff9390931683526001600160a01b03918216602084015216604082015260600190565b6101c4612ae0565b60008051602061403c8339815191528054600160401b810460ff1615906001600160401b03166000811580156127585750825b90506000826001600160401b031660011480156127745750303b155b905081158015612782575080155b156127a05760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff1916600117855583156127ca57845460ff60401b1916600160401b1785555b600080878060200190518101906127e19190613e94565b90925090506127f0828a612b19565b612800636d2eb53760e01b612ba2565b505083156111e657845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a150505050505050565b8015612ada576040516355e343a960e01b81526001600160601b03841660048201526000906001600160a01b038616906355e343a99060240161018060405180830381865afa1580156128a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128cb9190613b22565b602081015190915060006128e76001546001600160a01b031690565b604051631c5da14d60e11b81526001600160601b03871660048201526001600160a01b0391909116906338bb429a90602401602060405180830381865afa158015612936573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061295a919061369a565b60808401516101008501516040516317d5759960e31b81526001600160a01b03808516600483015291821660248201526044810188905292935090919084169063beabacc890606401600060405180830381600087803b1580156129bd57600080fd5b505af11580156129d1573d6000803e3d6000fd5b50506040516346f0526160e11b815273__$a23651848365a6a5ca15f07b4331037f48$__9250638de0a4c29150612a0c908490600401613ece565b602060405180830381865af4158015612a29573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a4d919061362c565b610bb55760405163012ebd8360e21b8152815160048201526020820151602482015260448101869052600090819073__$a23651848365a6a5ca15f07b4331037f48$__906304baf60c906064016040805180830381865af4158015612ab6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113569190613ee5565b50505050565b60008051602061403c83398151915254600160401b900460ff16612b1757604051631afcd79f60e31b815260040160405180910390fd5b565b6000612b4360408051808201909152600b81526a506f6f6c5365727669636560a81b602082015290565b612b4b61177d565b604051602001612b5c929190613f09565b60405160208183030381529060405290506000612b7884612bc7565b90506000612b8b8583603c848888612c32565b612b9b631b4612f160e31b612ba2565b5050505050565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b604051636939560f60e11b81526001600160a01b0382166004820181905260009163d272ac1e90602401602060405180830381865afa158015612c0e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116ff9190613652565b612c736301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b612c7d8287612cfe565b60007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0388166cffffffffffffffffffffffffff1990911617600160601b60ff8816021760ff60681b1916600160681b86151502178155905060018101612ced8382613f7c565b506111e66303fb044760e21b612ba2565b6001600160a01b038216612d545760405162461bcd60e51b815260206004820152601e60248201527f4e66744f776e61626c653a20696e697469616c206f776e6572206973203000006044820152606401610842565b600280546001600160a01b0319166001600160a01b038416179055612d7881612d7c565b5050565b6001546001600160a01b031615612db55760015460405163fcdbf2d960e01b81526001600160a01b039091166004820152602401610842565b6001600160a01b038116612ddc5760405163f5c4d07d60e01b815260040160405180910390fd5b806001600160a01b03163b600003612e125760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610842565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b8152632eaf856d60e11b60048201526301ffc9a790602401602060405180830381865afa925050508015612e8c575060408051601f3d908101601f19168201909252612e899181019061362c565b60015b612eb45760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610842565b80612d785760405163fdeac91f60e01b81526001600160a01b0383166004820152602401610842565b50565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c081019190915290565b600060208284031215612f3057600080fd5b81356001600160e01b031981168114612f4857600080fd5b9392505050565b60005b83811015612f6a578181015183820152602001612f52565b50506000910152565b60008151808452612f8b816020860160208601612f4f565b601f01601f19169290920160200192915050565b60006001600160601b038083511684528060208401511660208501525060ff6040830151166040840152606082015115156060840152608082015160018060a01b0380821660808601528060a08501511660a0860152505060c082015160e060c085015261301060e0850182612f73565b949350505050565b60408152600061302b6040830185612f9f565b828103602084015261303d8185612f73565b95945050505050565b602081526000612f486020830184612f73565b6001600160a01b0381168114612edd57600080fd5b6001600160601b0381168114612edd57600080fd5b803561308e8161306e565b919050565b600080600080600060a086880312156130ab57600080fd5b85356130b681613059565b945060208601356130c68161306e565b935060408601356130d68161306e565b94979396509394606081013594506080013592915050565b60006020828403121561310057600080fd5b8135612f4881613059565b62ffffff81168114612edd57600080fd5b60006020828403121561312e57600080fd5b8135612f488161310b565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b038111828210171561317157613171613139565b60405290565b60405161012081016001600160401b038111828210171561317157613171613139565b60405160e081016001600160401b038111828210171561317157613171613139565b60405161020081016001600160401b038111828210171561317157613171613139565b604051601f8201601f191681016001600160401b038111828210171561320757613207613139565b604052919050565b60006040828403121561322157600080fd5b61322961314f565b9050813581526020820135602082015292915050565b6000806060838503121561325257600080fd5b823561325d8161306e565b915061326c846020850161320f565b90509250929050565b60006020828403121561328757600080fd5b8135612f488161306e565b600080600060c084860312156132a757600080fd5b6132b1858561320f565b92506132c0856040860161320f565b91506132cf856080860161320f565b90509250925092565b60006001600160401b038211156132f1576132f1613139565b50601f01601f191660200190565b600082601f83011261331057600080fd5b813561332361331e826132d8565b6131df565b81815284602083860101111561333857600080fd5b816020850160208301376000918101602001919091529392505050565b60008060006060848603121561336a57600080fd5b833561337581613059565b9250602084013561338581613059565b915060408401356001600160401b038111156133a057600080fd5b6133ac868287016132ff565b9150509250925092565b6000602082840312156133c857600080fd5b5035919050565b64ffffffffff81168114612edd57600080fd5b803561308e816133cf565b60ff81168114612edd57600080fd5b803561308e816133ed565b6000806000806080858703121561341d57600080fd5b84356134288161306e565b935060208501356134388161306e565b925060408501356001600160401b038082111561345457600080fd5b90860190610140828903121561346957600080fd5b613471613177565b61347a83613083565b8152613489896020850161320f565b60208201526060830135828111156134a057600080fd5b6134ac8a8286016132ff565b6040830152506080830135606082015260a0830135608082015260c083013560a082015260e083013560c082015261010091506134ea8284016133e2565b60e08201526134fc61012084016133e2565b82820152809450505050613512606086016133fc565b905092959194509250565b60008060008060008060c0878903121561353657600080fd5b863561354181613059565b9550613550886020890161320f565b9450606087013593506080870135925060a08701356001600160401b038082111561357a57600080fd5b818901915089601f83011261358e57600080fd5b81358181111561359d57600080fd5b8a60208285010111156135af57600080fd5b6020830194508093505050509295509295509295565b6000602082840312156135d757600080fd5b8151612f488161310b565b600181811c908216806135f657607f821691505b60208210810361361657634e487b7160e01b600052602260045260246000fd5b50919050565b8051801515811461308e57600080fd5b60006020828403121561363e57600080fd5b612f488261361c565b805161308e8161306e565b60006020828403121561366457600080fd5b8151612f488161306e565b6020808252601190820152704552524f525f4e4f545f5345525649434560781b604082015260600190565b6000602082840312156136ac57600080fd5b8151612f4881613059565b6000604082840312156136c957600080fd5b6136d161314f565b9050815181526020820151602082015292915050565b600082601f8301126136f857600080fd5b815161370661331e826132d8565b81815284602083860101111561371b57600080fd5b613010826020830160208701612f4f565b805161308e816133cf565b60006020828403121561374957600080fd5b81516001600160401b038082111561376057600080fd5b90830190610140828603121561377557600080fd5b61377d613177565b61378683613647565b815261379586602085016136b7565b60208201526060830151828111156137ac57600080fd5b6137b8878286016136e7565b6040830152506080830151606082015260a0830151608082015260c083015160a082015260e083015160c082015261010091506137f682840161372c565b60e0820152613808610120840161372c565b91810191909152949350505050565b808201808211156116ff57634e487b7160e01b600052601160045260246000fd5b80516001600160601b03168252600061014060208381015180518683015290810151604086015250604083015181606086015261387782860182612f73565b91505060608301516080850152608083015160a085015260a083015160c085015260c083015160e085015260e08301516101006138bc8187018364ffffffffff169052565b84015164ffffffffff81166101208701529050509392505050565b6001600160601b03841681526060602082015260006138f96060830185613838565b905060ff83166040830152949350505050565b805161308e816133ed565b805161308e81613059565b600060e0828403121561393457600080fd5b61393c61319a565b905061394782613647565b815261395560208301613647565b60208201526139666040830161390c565b60408201526139776060830161361c565b606082015261398860808301613917565b608082015261399960a08301613917565b60a082015260c08201516001600160401b038111156139b757600080fd5b6139c3848285016136e7565b60c08301525092915050565b600080604083850312156139e257600080fd5b82516001600160401b03808211156139f957600080fd5b613a0586838701613922565b93506020850151915080821115613a1b57600080fd5b50613a28858286016136e7565b9150509250929050565b6001600160601b0381511682526020810151613a5960208401826001600160a01b03169052565b50604081015160408301526060810151613a80606084018280518252602090810151910152565b506080810151805160a0840152602081015160c08401525060a0810151805160e084015260208101516101008401525060c08101518015156101208401525060e08101518015156101408401525061010001516001600160a01b03166101609190910152565b505050565b6001600160601b03831681526101a08101612f486020830184613a32565b600060208284031215613b1b57600080fd5b5051919050565b60006101808284031215613b3557600080fd5b613b3d613177565b613b4683613647565b8152613b5460208401613917565b602082015260408301516040820152613b7084606085016136b7565b6060820152613b828460a085016136b7565b6080820152613b948460e085016136b7565b60a0820152613ba6610120840161361c565b60c0820152613bb8610140840161361c565b60e0820152613bca6101608401613917565b6101008201529392505050565b6001600160601b03841681526101c08101613bf56020830185613a32565b60ff83166101a0830152949350505050565b6001600160401b0381168114612edd57600080fd5b600060208284031215613c2e57600080fd5b8151612f4881613c07565b634e487b7160e01b600052603260045260246000fd5b600060208284031215613c6157600080fd5b8151612f48816133ed565b600060208284031215613c7e57600080fd5b81516001600160401b03811115613c9457600080fd5b61301084828501613922565b602081526000612f486020830184613838565b602081526000612f486020830184612f9f565b6001600160601b03831681526040602082015260006130106040830184613838565b80516001600160c01b03198116811461308e57600080fd5b805161ffff8116811461308e57600080fd5b600060208284031215613d2457600080fd5b81516001600160401b0380821115613d3b57600080fd5b908301906102008286031215613d5057600080fd5b613d586131bc565b613d6183613647565b8152613d6f60208401613647565b6020820152613d8060408401613ce8565b6040820152613d9160608401613ce8565b60608201526080830151608082015260a083015160a082015260c083015160c082015260e083015160e08201526101008084015183811115613dd257600080fd5b613dde888287016136e7565b8284015250506101208084015183811115613df857600080fd5b613e04888287016136e7565b8284015250506101409150613e1a828401613d00565b828201526101609150613e2e828401613d00565b82820152610180915081830151828201526101a09150613e4f82840161372c565b828201526101c09150613e6382840161372c565b828201526101e0915061380882840161372c565b600060208284031215613e8957600080fd5b8151612f48816133cf565b60008060408385031215613ea757600080fd5b8251613eb281613059565b6020840151909250613ec381613059565b809150509250929050565b8151815260208083015190820152604081016116ff565b60008060408385031215613ef857600080fd5b505080516020909101519092909150565b604081526000613f1c6040830185612f73565b905060ff831660208301529392505050565b601f821115613ae657600081815260208120601f850160051c81016020861015613f555750805b601f850160051c820191505b81811015613f7457828155600101613f61565b505050505050565b81516001600160401b03811115613f9557613f95613139565b613fa981613fa384546135e2565b84613f2e565b602080601f831160018114613fde5760008415613fc65750858301515b600019600386901b1c1916600185901b178555613f74565b600085815260208120601f198616915b8281101561400d57888601518255948401946001909101908401613fee565b508582101561402b5787850151600019600388901b60f8161c191681555b5050505050600190811b0190555056fef0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a004f61291a8ac3d020d0a7d919a76b8592aa88385744dee3f8b4f3873b969ed900a26469706673582212206de22ece9f27744e64e02235168a1566bcc76a5c2a61f82e812ffe7c148e427f64736f6c63430008140033",
467
869
  "linkReferences": {
468
870
  "contracts/types/Blocknumber.sol": {
469
871
  "BlocknumberLib": [
470
872
  {
471
873
  "length": 20,
472
- "start": 1765
874
+ "start": 3915
875
+ }
876
+ ]
877
+ },
878
+ "contracts/types/Fee.sol": {
879
+ "FeeLib": [
880
+ {
881
+ "length": 20,
882
+ "start": 11036
473
883
  },
474
884
  {
475
885
  "length": 20,
476
- "start": 3395
886
+ "start": 11191
477
887
  }
478
888
  ]
479
889
  },
@@ -481,11 +891,35 @@
481
891
  "NftIdLib": [
482
892
  {
483
893
  "length": 20,
484
- "start": 4057
894
+ "start": 2272
485
895
  },
486
896
  {
487
897
  "length": 20,
488
- "start": 6258
898
+ "start": 4295
899
+ },
900
+ {
901
+ "length": 20,
902
+ "start": 5321
903
+ }
904
+ ]
905
+ },
906
+ "contracts/types/RoleId.sol": {
907
+ "RoleIdLib": [
908
+ {
909
+ "length": 20,
910
+ "start": 9052
911
+ }
912
+ ]
913
+ },
914
+ "contracts/types/Timestamp.sol": {
915
+ "TimestampLib": [
916
+ {
917
+ "length": 20,
918
+ "start": 8520
919
+ },
920
+ {
921
+ "length": 20,
922
+ "start": 9969
489
923
  }
490
924
  ]
491
925
  },
@@ -493,15 +927,15 @@
493
927
  "VersionLib": [
494
928
  {
495
929
  "length": 20,
496
- "start": 1601
930
+ "start": 1794
497
931
  },
498
932
  {
499
933
  "length": 20,
500
- "start": 3535
934
+ "start": 5562
501
935
  },
502
936
  {
503
937
  "length": 20,
504
- "start": 5482
938
+ "start": 6364
505
939
  }
506
940
  ]
507
941
  }
@@ -511,7 +945,19 @@
511
945
  "BlocknumberLib": [
512
946
  {
513
947
  "length": 20,
514
- "start": 1148
948
+ "start": 3601
949
+ }
950
+ ]
951
+ },
952
+ "contracts/types/Fee.sol": {
953
+ "FeeLib": [
954
+ {
955
+ "length": 20,
956
+ "start": 10722
957
+ },
958
+ {
959
+ "length": 20,
960
+ "start": 10877
515
961
  }
516
962
  ]
517
963
  },
@@ -519,11 +965,35 @@
519
965
  "NftIdLib": [
520
966
  {
521
967
  "length": 20,
522
- "start": 1810
968
+ "start": 1958
969
+ },
970
+ {
971
+ "length": 20,
972
+ "start": 3981
973
+ },
974
+ {
975
+ "length": 20,
976
+ "start": 5007
977
+ }
978
+ ]
979
+ },
980
+ "contracts/types/RoleId.sol": {
981
+ "RoleIdLib": [
982
+ {
983
+ "length": 20,
984
+ "start": 8738
985
+ }
986
+ ]
987
+ },
988
+ "contracts/types/Timestamp.sol": {
989
+ "TimestampLib": [
990
+ {
991
+ "length": 20,
992
+ "start": 8206
523
993
  },
524
994
  {
525
995
  "length": 20,
526
- "start": 4011
996
+ "start": 9655
527
997
  }
528
998
  ]
529
999
  },
@@ -531,11 +1001,15 @@
531
1001
  "VersionLib": [
532
1002
  {
533
1003
  "length": 20,
534
- "start": 1288
1004
+ "start": 1480
1005
+ },
1006
+ {
1007
+ "length": 20,
1008
+ "start": 5248
535
1009
  },
536
1010
  {
537
1011
  "length": 20,
538
- "start": 3235
1012
+ "start": 6050
539
1013
  }
540
1014
  ]
541
1015
  }