@etherisc/gif-next 0.0.2-dc7e4cb-141 → 0.0.2-dd8c542-531

Sign up to get free protection for your applications and to get access to all the features.
Files changed (422) hide show
  1. package/README.md +242 -11
  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 +4 -0
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +744 -0
  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 +4 -0
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +152 -0
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +90 -171
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +55 -177
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +615 -63
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +620 -70
  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 +909 -1202
  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 +496 -0
  58. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  59. package/artifacts/contracts/instance/Instance.sol/Instance.json +2487 -1191
  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 +1 -1
  63. package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.json +572 -122
  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 +1066 -0
  68. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
  69. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +560 -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 +4 -0
  73. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +521 -0
  74. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +4 -0
  75. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +113 -0
  76. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +4 -0
  77. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +429 -0
  78. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +4 -0
  79. package/artifacts/contracts/instance/{module/lifecycle/ILifecycle.sol/ILifecycleModule.json → base/ILifecycle.sol/ILifecycle.json} +10 -77
  80. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +4 -0
  81. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +502 -0
  82. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +4 -0
  83. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +169 -0
  84. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +4 -0
  85. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +211 -0
  86. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +4 -0
  87. package/artifacts/contracts/instance/module/{bundle/IBundle.sol → IBundle.sol}/IBundle.json +1 -1
  88. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +4 -0
  89. package/artifacts/contracts/instance/module/{access/IAccess.sol/IAccess.json → IDistribution.sol/IDistribution.json} +2 -2
  90. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
  91. package/artifacts/contracts/instance/module/{policy/IPolicy.sol → IPolicy.sol}/IPolicy.json +1 -1
  92. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
  93. package/artifacts/contracts/instance/module/{risk/IRisk.sol → IRisk.sol}/IRisk.json +1 -1
  94. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +4 -0
  95. package/artifacts/contracts/instance/module/{pool/IPoolModule.sol/IPool.json → ISetup.sol/ISetup.json} +2 -2
  96. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +4 -0
  97. package/artifacts/contracts/instance/module/{treasury/ITreasury.sol → ITreasury.sol}/ITreasury.json +1 -1
  98. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
  99. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +923 -0
  100. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  101. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +440 -0
  102. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +1 -1
  103. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +400 -77
  104. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
  105. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +671 -0
  106. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  107. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +428 -0
  108. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
  109. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +669 -0
  110. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +1 -1
  111. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +185 -83
  112. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
  113. package/artifacts/contracts/instance/service/{ComponentServiceBase.sol/ComponentServiceBase.json → IDistributionService.sol/IDistributionService.json} +212 -66
  114. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  115. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +664 -0
  116. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  117. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +200 -77
  118. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  119. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +209 -150
  120. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
  121. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +971 -0
  122. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  123. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +464 -0
  124. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
  125. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +325 -91
  126. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  127. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +428 -0
  128. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
  129. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +312 -230
  130. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  131. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +420 -0
  132. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  133. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +186 -12
  134. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  135. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +309 -41
  136. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
  137. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +886 -0
  138. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +4 -0
  139. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +34 -0
  140. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  141. package/artifacts/contracts/registry/Registry.sol/Registry.json +385 -129
  142. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +4 -0
  143. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +1195 -0
  144. package/artifacts/contracts/registry/RegistryServiceAccessManager.sol/RegistryServiceAccessManager.dbg.json +4 -0
  145. package/artifacts/contracts/registry/RegistryServiceAccessManager.sol/RegistryServiceAccessManager.json +275 -0
  146. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
  147. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +451 -0
  148. package/artifacts/contracts/registry/RegistryServiceReleaseManager.sol/RegistryServiceReleaseManager.dbg.json +4 -0
  149. package/artifacts/contracts/registry/RegistryServiceReleaseManager.sol/RegistryServiceReleaseManager.json +521 -0
  150. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
  151. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +397 -0
  152. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +4 -0
  153. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +107 -0
  154. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  155. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +2 -2
  156. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
  157. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +127 -0
  158. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  159. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +117 -37
  160. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
  161. package/artifacts/contracts/{instance/service → shared}/IService.sol/IService.json +183 -62
  162. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  163. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +55 -14
  164. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
  165. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +158 -0
  166. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +4 -0
  167. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +349 -0
  168. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  169. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +190 -37
  170. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +4 -0
  171. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.json +442 -0
  172. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
  173. package/artifacts/contracts/{instance/service/ServiceBase.sol/ServiceBase.json → shared/Service.sol/Service.json} +224 -56
  174. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +4 -0
  175. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +96 -0
  176. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
  177. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +129 -0
  178. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  179. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +78 -14
  180. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  181. package/artifacts/contracts/test/TestFee.sol/TestFee.json +4 -4
  182. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  183. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +204 -36
  184. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  185. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +44 -10
  186. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  187. package/artifacts/contracts/test/TestService.sol/TestService.json +289 -68
  188. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  189. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +91 -53
  190. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  191. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
  192. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  193. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +103 -23
  194. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  195. package/artifacts/contracts/test/Usdc.sol/USDC.json +91 -53
  196. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  197. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  198. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  199. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
  200. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +104 -0
  201. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  202. package/artifacts/contracts/types/Fee.sol/FeeLib.json +52 -13
  203. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +4 -0
  204. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +125 -0
  205. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  206. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +65 -4
  207. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  208. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +26 -3
  209. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +4 -0
  210. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +100 -0
  211. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  212. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  213. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +4 -0
  214. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +123 -0
  215. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +4 -0
  216. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +86 -0
  217. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +4 -0
  218. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +156 -0
  219. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  220. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  221. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  222. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +15 -2
  223. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +4 -0
  224. package/artifacts/contracts/types/UFixed.sol/MathLib.json +10 -0
  225. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +4 -0
  226. package/artifacts/contracts/types/UFixed.sol/{UFixedMathLib.json → UFixedLib.json} +3 -3
  227. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  228. package/artifacts/contracts/types/Version.sol/VersionLib.json +40 -2
  229. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  230. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +22 -3
  231. package/contracts/components/BaseComponent.sol +75 -32
  232. package/contracts/components/Distribution.sol +163 -0
  233. package/contracts/components/IBaseComponent.sol +15 -3
  234. package/contracts/components/IDistributionComponent.sol +44 -0
  235. package/contracts/components/IPoolComponent.sol +19 -10
  236. package/contracts/components/IProductComponent.sol +25 -9
  237. package/contracts/components/Pool.sol +132 -35
  238. package/contracts/components/Product.sol +211 -36
  239. package/contracts/experiment/cloning/Cloner.sol +47 -0
  240. package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +23 -0
  241. package/contracts/instance/BundleManager.sol +129 -0
  242. package/contracts/instance/Cloneable.sol +46 -0
  243. package/contracts/instance/IAccessManagerSimple.sol +391 -0
  244. package/contracts/instance/IInstance.sol +53 -46
  245. package/contracts/instance/IInstanceBase.sol +26 -0
  246. package/contracts/instance/IInstanceService.sol +34 -0
  247. package/contracts/instance/Instance.sol +447 -49
  248. package/contracts/instance/InstanceAccessManager.sol +288 -0
  249. package/contracts/instance/InstanceBase.sol +33 -63
  250. package/contracts/instance/InstanceReader.sol +315 -0
  251. package/contracts/instance/InstanceService.sol +299 -0
  252. package/contracts/instance/InstanceServiceManager.sol +58 -0
  253. package/contracts/instance/ObjectManager.sol +101 -0
  254. package/contracts/instance/base/ComponentServiceBase.sol +72 -0
  255. package/contracts/instance/base/IInstanceBase.sol +23 -0
  256. package/contracts/instance/base/IKeyValueStore.sol +49 -0
  257. package/contracts/instance/base/ILifecycle.sol +30 -0
  258. package/contracts/instance/base/KeyValueStore.sol +172 -0
  259. package/contracts/instance/{module/lifecycle/LifecycleModule.sol → base/Lifecycle.sol} +51 -40
  260. package/contracts/instance/module/IAccess.sol +38 -0
  261. package/contracts/instance/module/IBundle.sol +20 -0
  262. package/contracts/instance/module/IDistribution.sol +39 -0
  263. package/contracts/instance/module/IPolicy.sol +45 -0
  264. package/contracts/instance/module/IRisk.sol +11 -0
  265. package/contracts/instance/module/ISetup.sol +46 -0
  266. package/contracts/instance/module/ITreasury.sol +23 -0
  267. package/contracts/instance/service/BundleService.sol +260 -0
  268. package/contracts/instance/service/BundleServiceManager.sol +55 -0
  269. package/contracts/instance/service/ComponentOwnerService.sol +244 -100
  270. package/contracts/instance/service/DistributionService.sol +114 -0
  271. package/contracts/instance/service/DistributionServiceManager.sol +55 -0
  272. package/contracts/instance/service/IBundleService.sol +45 -0
  273. package/contracts/instance/service/IComponentOwnerService.sol +1 -3
  274. package/contracts/instance/service/IDistributionService.sol +12 -0
  275. package/contracts/instance/service/IPolicyService.sol +87 -0
  276. package/contracts/instance/service/IPoolService.sol +8 -18
  277. package/contracts/instance/service/IProductService.sol +21 -39
  278. package/contracts/instance/service/PolicyService.sol +503 -0
  279. package/contracts/instance/service/PolicyServiceManager.sol +54 -0
  280. package/contracts/instance/service/PoolService.sol +87 -88
  281. package/contracts/instance/service/PoolServiceManager.sol +55 -0
  282. package/contracts/instance/service/ProductService.sol +106 -293
  283. package/contracts/instance/service/ProductServiceManager.sol +54 -0
  284. package/contracts/registry/ChainNft.sol +79 -36
  285. package/contracts/registry/IRegistry.sol +45 -25
  286. package/contracts/registry/IRegistryService.sol +54 -0
  287. package/contracts/registry/ITransferInterceptor.sol +6 -0
  288. package/contracts/registry/Registry.sol +292 -288
  289. package/contracts/registry/RegistryService.sol +330 -0
  290. package/contracts/registry/RegistryServiceAccessManager.sol +210 -0
  291. package/contracts/registry/RegistryServiceManager.sol +60 -0
  292. package/contracts/registry/RegistryServiceReleaseManager.sol +366 -0
  293. package/contracts/registry/TokenRegistry.sol +110 -0
  294. package/contracts/shared/ContractDeployerLib.sol +72 -0
  295. package/contracts/shared/ERC165.sol +6 -2
  296. package/contracts/shared/INftOwnable.sol +22 -0
  297. package/contracts/shared/IRegisterable.sol +8 -15
  298. package/contracts/shared/IService.sol +16 -0
  299. package/contracts/shared/IVersionable.sol +55 -11
  300. package/contracts/shared/NftOwnable.sol +134 -0
  301. package/contracts/shared/ProxyManager.sol +94 -0
  302. package/contracts/shared/Registerable.sol +63 -59
  303. package/contracts/shared/RegisterableUpgradable.sol +16 -0
  304. package/contracts/shared/Service.sol +58 -0
  305. package/contracts/shared/TokenHandler.sol +27 -0
  306. package/contracts/shared/UpgradableProxyWithAdmin.sol +16 -0
  307. package/contracts/shared/Versionable.sol +113 -55
  308. package/contracts/test/TestFee.sol +2 -2
  309. package/contracts/test/TestRegisterable.sol +5 -6
  310. package/contracts/test/TestRoleId.sol +2 -2
  311. package/contracts/test/TestService.sol +7 -14
  312. package/contracts/types/DistributorType.sol +55 -0
  313. package/contracts/types/Fee.sol +10 -5
  314. package/contracts/types/Key32.sol +50 -0
  315. package/contracts/types/NftId.sol +16 -1
  316. package/contracts/types/NftIdSet.sol +26 -24
  317. package/contracts/types/NumberId.sol +52 -0
  318. package/contracts/types/ObjectType.sol +51 -14
  319. package/contracts/types/Referral.sol +85 -0
  320. package/contracts/types/RiskId.sol +43 -0
  321. package/contracts/types/RoleId.sol +66 -11
  322. package/contracts/types/StateId.sol +12 -2
  323. package/contracts/types/Timestamp.sol +7 -3
  324. package/contracts/types/UFixed.sol +128 -12
  325. package/contracts/types/Version.sol +13 -1
  326. package/package.json +4 -3
  327. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +0 -4
  328. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.json +0 -24
  329. package/artifacts/contracts/instance/IServiceLinked.sol/IServiceLinked.dbg.json +0 -4
  330. package/artifacts/contracts/instance/IServiceLinked.sol/IServiceLinked.json +0 -50
  331. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +0 -4
  332. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.json +0 -333
  333. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +0 -4
  334. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +0 -4
  335. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.json +0 -333
  336. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +0 -4
  337. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +0 -276
  338. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +0 -4
  339. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +0 -4
  340. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +0 -276
  341. package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.dbg.json +0 -4
  342. package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.json +0 -10
  343. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.dbg.json +0 -4
  344. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.json +0 -10
  345. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.dbg.json +0 -4
  346. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.json +0 -10
  347. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
  348. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +0 -188
  349. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +0 -4
  350. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.json +0 -10
  351. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +0 -4
  352. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.json +0 -188
  353. package/artifacts/contracts/instance/module/lifecycle/ILifecycle.sol/ILifecycle.dbg.json +0 -4
  354. package/artifacts/contracts/instance/module/lifecycle/ILifecycle.sol/ILifecycle.json +0 -134
  355. package/artifacts/contracts/instance/module/lifecycle/ILifecycle.sol/ILifecycleModule.dbg.json +0 -4
  356. package/artifacts/contracts/instance/module/lifecycle/LifecycleModule.sol/LifecycleModule.dbg.json +0 -4
  357. package/artifacts/contracts/instance/module/lifecycle/LifecycleModule.sol/LifecycleModule.json +0 -221
  358. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
  359. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
  360. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.json +0 -261
  361. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
  362. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +0 -261
  363. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +0 -4
  364. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
  365. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.json +0 -149
  366. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
  367. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +0 -149
  368. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +0 -4
  369. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +0 -4
  370. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +0 -10
  371. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +0 -4
  372. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +0 -10
  373. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +0 -4
  374. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +0 -4
  375. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +0 -533
  376. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +0 -4
  377. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +0 -76
  378. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +0 -4
  379. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +0 -533
  380. package/artifacts/contracts/instance/service/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
  381. package/artifacts/contracts/instance/service/IService.sol/IService.dbg.json +0 -4
  382. package/artifacts/contracts/instance/service/ServiceBase.sol/ServiceBase.dbg.json +0 -4
  383. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
  384. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.json +0 -452
  385. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +0 -4
  386. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.json +0 -24
  387. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +0 -4
  388. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.json +0 -24
  389. package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +0 -4
  390. package/artifacts/contracts/test/TestPool.sol/TestPool.json +0 -387
  391. package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +0 -4
  392. package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +0 -393
  393. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
  394. package/contracts/experiment/statemachine/README.md +0 -112
  395. package/contracts/instance/IInstanceLinked.sol +0 -8
  396. package/contracts/instance/IServiceLinked.sol +0 -12
  397. package/contracts/instance/module/access/Access.sol +0 -149
  398. package/contracts/instance/module/access/IAccess.sol +0 -53
  399. package/contracts/instance/module/bundle/BundleModule.sol +0 -228
  400. package/contracts/instance/module/bundle/IBundle.sol +0 -53
  401. package/contracts/instance/module/compensation/CompensationModule.sol +0 -8
  402. package/contracts/instance/module/compensation/ICompensation.sol +0 -10
  403. package/contracts/instance/module/component/ComponentModule.sol +0 -103
  404. package/contracts/instance/module/component/IComponent.sol +0 -53
  405. package/contracts/instance/module/lifecycle/ILifecycle.sol +0 -47
  406. package/contracts/instance/module/policy/IPolicy.sol +0 -60
  407. package/contracts/instance/module/policy/PolicyModule.sol +0 -84
  408. package/contracts/instance/module/pool/IPoolModule.sol +0 -41
  409. package/contracts/instance/module/pool/PoolModule.sol +0 -87
  410. package/contracts/instance/module/risk/IRisk.sol +0 -10
  411. package/contracts/instance/module/risk/RiskModule.sol +0 -8
  412. package/contracts/instance/module/treasury/ITreasury.sol +0 -103
  413. package/contracts/instance/module/treasury/TokenHandler.sol +0 -48
  414. package/contracts/instance/module/treasury/TreasuryModule.sol +0 -152
  415. package/contracts/instance/service/ComponentServiceBase.sol +0 -41
  416. package/contracts/instance/service/IService.sol +0 -15
  417. package/contracts/instance/service/ServiceBase.sol +0 -39
  418. package/contracts/registry/IChainNft.sol +0 -21
  419. package/contracts/registry/IRegistryLinked.sol +0 -8
  420. package/contracts/shared/IOwnable.sol +0 -6
  421. package/contracts/test/TestPool.sol +0 -22
  422. package/contracts/test/TestProduct.sol +0 -44
@@ -3,6 +3,17 @@
3
3
  "contractName": "ProductService",
4
4
  "sourceName": "contracts/instance/service/ProductService.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,198 +23,245 @@
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"
21
32
  },
22
33
  {
23
- "anonymous": false,
24
34
  "inputs": [
25
35
  {
26
- "indexed": false,
27
36
  "internalType": "address",
28
- "name": "sender",
37
+ "name": "contractAddress",
29
38
  "type": "address"
30
39
  }
31
40
  ],
32
- "name": "LogProductServiceSender",
33
- "type": "event"
41
+ "name": "ErrorContractNotRegistered",
42
+ "type": "error"
34
43
  },
35
44
  {
36
- "anonymous": false,
37
45
  "inputs": [
38
46
  {
39
- "indexed": false,
40
- "internalType": "Version",
41
- "name": "version",
42
- "type": "uint24"
43
- },
47
+ "internalType": "address",
48
+ "name": "account",
49
+ "type": "address"
50
+ }
51
+ ],
52
+ "name": "ErrorNotOwner",
53
+ "type": "error"
54
+ },
55
+ {
56
+ "inputs": [
44
57
  {
45
- "indexed": false,
46
58
  "internalType": "address",
47
- "name": "implementation",
59
+ "name": "registryAddress",
48
60
  "type": "address"
49
- },
61
+ }
62
+ ],
63
+ "name": "ErrorNotRegistry",
64
+ "type": "error"
65
+ },
66
+ {
67
+ "inputs": [
50
68
  {
51
- "indexed": false,
52
69
  "internalType": "address",
53
- "name": "activatedBy",
70
+ "name": "registryAddress",
54
71
  "type": "address"
55
72
  }
56
73
  ],
57
- "name": "LogVersionableActivated",
58
- "type": "event"
74
+ "name": "ErrorRegisterableNotRegistry",
75
+ "type": "error"
59
76
  },
60
77
  {
61
78
  "inputs": [],
62
- "name": "NAME",
63
- "outputs": [
79
+ "name": "ErrorRegistryAddressZero",
80
+ "type": "error"
81
+ },
82
+ {
83
+ "inputs": [
64
84
  {
65
- "internalType": "string",
66
- "name": "",
67
- "type": "string"
85
+ "internalType": "address",
86
+ "name": "registry",
87
+ "type": "address"
68
88
  }
69
89
  ],
70
- "stateMutability": "view",
71
- "type": "function"
90
+ "name": "ErrorRegistryAlreadyInitialized",
91
+ "type": "error"
92
+ },
93
+ {
94
+ "inputs": [],
95
+ "name": "ErrorRegistryNotInitialized",
96
+ "type": "error"
72
97
  },
73
98
  {
74
99
  "inputs": [
75
100
  {
76
- "internalType": "NftId",
77
- "name": "policyNftId",
78
- "type": "uint96"
101
+ "internalType": "RoleId",
102
+ "name": "expected",
103
+ "type": "uint64"
79
104
  },
80
105
  {
81
- "internalType": "Timestamp",
82
- "name": "activateAt",
83
- "type": "uint40"
106
+ "internalType": "address",
107
+ "name": "caller",
108
+ "type": "address"
84
109
  }
85
110
  ],
86
- "name": "activate",
87
- "outputs": [],
88
- "stateMutability": "nonpayable",
89
- "type": "function"
111
+ "name": "ExpectedRoleMissing",
112
+ "type": "error"
90
113
  },
91
114
  {
115
+ "inputs": [],
116
+ "name": "InvalidInitialization",
117
+ "type": "error"
118
+ },
119
+ {
120
+ "inputs": [],
121
+ "name": "NotInitializing",
122
+ "type": "error"
123
+ },
124
+ {
125
+ "anonymous": false,
92
126
  "inputs": [
93
127
  {
94
- "internalType": "address",
95
- "name": "implementation",
96
- "type": "address"
97
- },
128
+ "indexed": false,
129
+ "internalType": "uint64",
130
+ "name": "version",
131
+ "type": "uint64"
132
+ }
133
+ ],
134
+ "name": "Initialized",
135
+ "type": "event"
136
+ },
137
+ {
138
+ "anonymous": false,
139
+ "inputs": [
98
140
  {
141
+ "indexed": false,
99
142
  "internalType": "address",
100
- "name": "activatedBy",
143
+ "name": "sender",
101
144
  "type": "address"
102
145
  }
103
146
  ],
104
- "name": "activate",
105
- "outputs": [],
106
- "stateMutability": "nonpayable",
107
- "type": "function"
147
+ "name": "LogProductServiceSender",
148
+ "type": "event"
108
149
  },
109
150
  {
151
+ "anonymous": false,
110
152
  "inputs": [
111
153
  {
112
- "internalType": "UFixed",
113
- "name": "collateralizationLevel",
114
- "type": "uint256"
154
+ "indexed": false,
155
+ "internalType": "Version",
156
+ "name": "version",
157
+ "type": "uint24"
115
158
  },
116
159
  {
117
- "internalType": "uint256",
118
- "name": "sumInsuredAmount",
119
- "type": "uint256"
120
- }
121
- ],
122
- "name": "calculateRequiredCollateral",
123
- "outputs": [
160
+ "indexed": false,
161
+ "internalType": "address",
162
+ "name": "implementation",
163
+ "type": "address"
164
+ },
124
165
  {
125
- "internalType": "uint256",
126
- "name": "collateralAmount",
127
- "type": "uint256"
166
+ "indexed": false,
167
+ "internalType": "address",
168
+ "name": "activatedBy",
169
+ "type": "address"
128
170
  }
129
171
  ],
130
- "stateMutability": "pure",
131
- "type": "function"
172
+ "name": "LogVersionableInitialized",
173
+ "type": "event"
132
174
  },
133
175
  {
134
- "inputs": [
176
+ "inputs": [],
177
+ "name": "REGISTERABLE_LOCATION_V1",
178
+ "outputs": [
135
179
  {
136
- "internalType": "NftId",
137
- "name": "policyNftId",
138
- "type": "uint96"
180
+ "internalType": "bytes32",
181
+ "name": "",
182
+ "type": "bytes32"
139
183
  }
140
184
  ],
141
- "name": "close",
142
- "outputs": [],
143
- "stateMutability": "nonpayable",
185
+ "stateMutability": "view",
144
186
  "type": "function"
145
187
  },
146
188
  {
147
189
  "inputs": [
148
190
  {
149
- "internalType": "NftId",
150
- "name": "policyNftId",
151
- "type": "uint96"
191
+ "internalType": "RiskId",
192
+ "name": "riskId",
193
+ "type": "bytes8"
152
194
  },
153
195
  {
154
- "internalType": "Timestamp",
155
- "name": "activateAt",
156
- "type": "uint40"
196
+ "internalType": "bytes",
197
+ "name": "data",
198
+ "type": "bytes"
157
199
  }
158
200
  ],
159
- "name": "collectPremium",
201
+ "name": "createRisk",
160
202
  "outputs": [],
161
203
  "stateMutability": "nonpayable",
162
204
  "type": "function"
163
205
  },
164
206
  {
165
- "inputs": [
166
- {
167
- "internalType": "address",
168
- "name": "applicationOwner",
169
- "type": "address"
170
- },
171
- {
172
- "internalType": "uint256",
173
- "name": "sumInsuredAmount",
174
- "type": "uint256"
175
- },
176
- {
177
- "internalType": "uint256",
178
- "name": "premiumAmount",
179
- "type": "uint256"
180
- },
181
- {
182
- "internalType": "uint256",
183
- "name": "lifetime",
184
- "type": "uint256"
185
- },
186
- {
187
- "internalType": "NftId",
188
- "name": "bundleNftId",
189
- "type": "uint96"
190
- }
191
- ],
192
- "name": "createApplication",
207
+ "inputs": [],
208
+ "name": "getDomain",
193
209
  "outputs": [
194
210
  {
195
- "internalType": "NftId",
196
- "name": "policyNftId",
197
- "type": "uint96"
211
+ "internalType": "ObjectType",
212
+ "name": "",
213
+ "type": "uint8"
198
214
  }
199
215
  ],
200
- "stateMutability": "nonpayable",
216
+ "stateMutability": "pure",
201
217
  "type": "function"
202
218
  },
203
219
  {
204
220
  "inputs": [],
205
- "name": "getData",
221
+ "name": "getInitialInfo",
206
222
  "outputs": [
223
+ {
224
+ "components": [
225
+ {
226
+ "internalType": "NftId",
227
+ "name": "nftId",
228
+ "type": "uint96"
229
+ },
230
+ {
231
+ "internalType": "NftId",
232
+ "name": "parentNftId",
233
+ "type": "uint96"
234
+ },
235
+ {
236
+ "internalType": "ObjectType",
237
+ "name": "objectType",
238
+ "type": "uint8"
239
+ },
240
+ {
241
+ "internalType": "bool",
242
+ "name": "isInterceptor",
243
+ "type": "bool"
244
+ },
245
+ {
246
+ "internalType": "address",
247
+ "name": "objectAddress",
248
+ "type": "address"
249
+ },
250
+ {
251
+ "internalType": "address",
252
+ "name": "initialOwner",
253
+ "type": "address"
254
+ },
255
+ {
256
+ "internalType": "bytes",
257
+ "name": "data",
258
+ "type": "bytes"
259
+ }
260
+ ],
261
+ "internalType": "struct IRegistry.ObjectInfo",
262
+ "name": "",
263
+ "type": "tuple"
264
+ },
207
265
  {
208
266
  "internalType": "bytes",
209
267
  "name": "data",
@@ -215,12 +273,12 @@
215
273
  },
216
274
  {
217
275
  "inputs": [],
218
- "name": "getMajorVersion",
276
+ "name": "getInitializedVersion",
219
277
  "outputs": [
220
278
  {
221
- "internalType": "VersionPart",
222
- "name": "majorVersion",
223
- "type": "uint8"
279
+ "internalType": "uint64",
280
+ "name": "",
281
+ "type": "uint64"
224
282
  }
225
283
  ],
226
284
  "stateMutability": "view",
@@ -228,25 +286,25 @@
228
286
  },
229
287
  {
230
288
  "inputs": [],
231
- "name": "getName",
289
+ "name": "getInstanceService",
232
290
  "outputs": [
233
291
  {
234
- "internalType": "string",
235
- "name": "name",
236
- "type": "string"
292
+ "internalType": "contract InstanceService",
293
+ "name": "",
294
+ "type": "address"
237
295
  }
238
296
  ],
239
- "stateMutability": "pure",
297
+ "stateMutability": "view",
240
298
  "type": "function"
241
299
  },
242
300
  {
243
301
  "inputs": [],
244
- "name": "getNftId",
302
+ "name": "getMajorVersion",
245
303
  "outputs": [
246
304
  {
247
- "internalType": "NftId",
248
- "name": "nftId",
249
- "type": "uint96"
305
+ "internalType": "VersionPart",
306
+ "name": "majorVersion",
307
+ "type": "uint8"
250
308
  }
251
309
  ],
252
310
  "stateMutability": "view",
@@ -254,12 +312,12 @@
254
312
  },
255
313
  {
256
314
  "inputs": [],
257
- "name": "getOwner",
315
+ "name": "getNftId",
258
316
  "outputs": [
259
317
  {
260
- "internalType": "address",
261
- "name": "owner",
262
- "type": "address"
318
+ "internalType": "NftId",
319
+ "name": "",
320
+ "type": "uint96"
263
321
  }
264
322
  ],
265
323
  "stateMutability": "view",
@@ -267,12 +325,12 @@
267
325
  },
268
326
  {
269
327
  "inputs": [],
270
- "name": "getParentNftId",
328
+ "name": "getOwner",
271
329
  "outputs": [
272
330
  {
273
- "internalType": "NftId",
274
- "name": "nftId",
275
- "type": "uint96"
331
+ "internalType": "address",
332
+ "name": "",
333
+ "type": "address"
276
334
  }
277
335
  ],
278
336
  "stateMutability": "view",
@@ -284,7 +342,7 @@
284
342
  "outputs": [
285
343
  {
286
344
  "internalType": "contract IRegistry",
287
- "name": "registry",
345
+ "name": "",
288
346
  "type": "address"
289
347
  }
290
348
  ],
@@ -293,15 +351,15 @@
293
351
  },
294
352
  {
295
353
  "inputs": [],
296
- "name": "getType",
354
+ "name": "getRegistryService",
297
355
  "outputs": [
298
356
  {
299
- "internalType": "ObjectType",
357
+ "internalType": "contract IRegistryService",
300
358
  "name": "",
301
- "type": "uint8"
359
+ "type": "address"
302
360
  }
303
361
  ],
304
- "stateMutability": "pure",
362
+ "stateMutability": "view",
305
363
  "type": "function"
306
364
  },
307
365
  {
@@ -395,6 +453,29 @@
395
453
  "stateMutability": "view",
396
454
  "type": "function"
397
455
  },
456
+ {
457
+ "inputs": [
458
+ {
459
+ "internalType": "address",
460
+ "name": "implementation",
461
+ "type": "address"
462
+ },
463
+ {
464
+ "internalType": "address",
465
+ "name": "activatedBy",
466
+ "type": "address"
467
+ },
468
+ {
469
+ "internalType": "bytes",
470
+ "name": "data",
471
+ "type": "bytes"
472
+ }
473
+ ],
474
+ "name": "initialize",
475
+ "outputs": [],
476
+ "stateMutability": "nonpayable",
477
+ "type": "function"
478
+ },
398
479
  {
399
480
  "inputs": [
400
481
  {
@@ -403,7 +484,7 @@
403
484
  "type": "uint24"
404
485
  }
405
486
  ],
406
- "name": "isActivated",
487
+ "name": "isInitialized",
407
488
  "outputs": [
408
489
  {
409
490
  "internalType": "bool",
@@ -416,11 +497,24 @@
416
497
  },
417
498
  {
418
499
  "inputs": [],
500
+ "name": "linkToRegisteredNftId",
501
+ "outputs": [],
502
+ "stateMutability": "nonpayable",
503
+ "type": "function"
504
+ },
505
+ {
506
+ "inputs": [
507
+ {
508
+ "internalType": "address",
509
+ "name": "productAddress",
510
+ "type": "address"
511
+ }
512
+ ],
419
513
  "name": "register",
420
514
  "outputs": [
421
515
  {
422
516
  "internalType": "NftId",
423
- "name": "nftId",
517
+ "name": "productNftId",
424
518
  "type": "uint96"
425
519
  }
426
520
  ],
@@ -443,7 +537,7 @@
443
537
  }
444
538
  ],
445
539
  "internalType": "struct Fee",
446
- "name": "policyFee",
540
+ "name": "productFee",
447
541
  "type": "tuple"
448
542
  },
449
543
  {
@@ -491,47 +585,71 @@
491
585
  {
492
586
  "inputs": [
493
587
  {
494
- "internalType": "NftId",
495
- "name": "policyNftId",
496
- "type": "uint96"
588
+ "internalType": "RiskId",
589
+ "name": "riskId",
590
+ "type": "bytes8"
497
591
  },
498
592
  {
499
- "internalType": "bool",
500
- "name": "requirePremiumPayment",
501
- "type": "bool"
593
+ "internalType": "bytes",
594
+ "name": "data",
595
+ "type": "bytes"
596
+ }
597
+ ],
598
+ "name": "updateRisk",
599
+ "outputs": [],
600
+ "stateMutability": "nonpayable",
601
+ "type": "function"
602
+ },
603
+ {
604
+ "inputs": [
605
+ {
606
+ "internalType": "RiskId",
607
+ "name": "riskId",
608
+ "type": "bytes8"
609
+ },
610
+ {
611
+ "internalType": "StateId",
612
+ "name": "state",
613
+ "type": "uint8"
614
+ }
615
+ ],
616
+ "name": "updateRiskState",
617
+ "outputs": [],
618
+ "stateMutability": "nonpayable",
619
+ "type": "function"
620
+ },
621
+ {
622
+ "inputs": [
623
+ {
624
+ "internalType": "address",
625
+ "name": "implementation",
626
+ "type": "address"
627
+ },
628
+ {
629
+ "internalType": "address",
630
+ "name": "activatedBy",
631
+ "type": "address"
502
632
  },
503
633
  {
504
- "internalType": "Timestamp",
505
- "name": "activateAt",
506
- "type": "uint40"
634
+ "internalType": "bytes",
635
+ "name": "data",
636
+ "type": "bytes"
507
637
  }
508
638
  ],
509
- "name": "underwrite",
639
+ "name": "upgrade",
510
640
  "outputs": [],
511
641
  "stateMutability": "nonpayable",
512
642
  "type": "function"
513
643
  }
514
644
  ],
515
- "bytecode": "0x60e06040523480156200001157600080fd5b5060405162003ba438038062003ba4833981016040819052620000349162000760565b6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff191660011790558181818181816001600160a01b038216620000d25760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a5247422d3031303a52454749535452595f5a45524f000000000060448201526064015b60405180910390fd5b6001600160a01b03821660808190526040516301ffc9a760e01b81526306ecd8ef60e01b60048201526301ffc9a790602401602060405180830381865afa15801562000122573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001489190620007b5565b620001965760405162461bcd60e51b815260206004820152601a60248201527f4552524f523a5247422d3031313a4e4f545f52454749535452590000000000006044820152606401620000c9565b6001600160601b03811660a081905260805160405163e74d052f60e01b815260048101929092526001600160a01b03169063e74d052f90602401602060405180830381865afa158015620001ee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002149190620007b5565b6200026e5760405162461bcd60e51b815260206004820152602360248201527f4552524f523a5247422d3031323a504152454e545f4e4f545f5245474953544560448201526214915160ea1b6064820152608401620000c9565b3360c052631dfba64760e11b60009081526020527f95e5a2564f7af40498dc043c6da135e06324c5edb1f60c2bf4dcdf2da207fa45805460ff1916600117905550620002be905060003362000343565b631b4612f160e31b60009081526020527ffc58a5a01198e68c5a5d0bcd463f9ab550fc4337b1df271aed6dbb33d25fef25805460ff1916600117905550505050620003166363f3353f60e11b6200031e60201b60201c565b505062000859565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b60006200034f6200061b565b90506200035c81620006a8565b15620003bb5760405162461bcd60e51b815260206004820152602760248201527f4552524f523a56524e2d3030313a56455253494f4e5f414c52454144595f41436044820152661512559055115160ca1b6064820152608401620000c9565b600254156200047c576002805460009190620003da90600190620007e0565b81548110620003ed57620003ed62000802565b90600052602060002090600a91828204019190066003029054906101000a900462ffffff1690506200042082826200074e565b6200047a5760405162461bcd60e51b8152602060048201526024808201527f4552524f523a56524e2d3030323a56455253494f4e5f4e4f545f494e4352454160448201526353494e4760e01b6064820152608401620000c9565b505b60028054600181018255600091909152600a8082047f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace01805462ffffff808616600394909506939093026101000a848102930219169190911790556040805160a0810182529182526001600160a01b03808616602084015284169082015260608101620005064290565b64ffffffffff1681526020014363ffffffff90811690915262ffffff80841660009081526001602081815260409283902086518154928801516001600160a01b039081166301000000026001600160b81b0319909416919096161791909117815585830151910180546060870151608090970151909516600160c81b0263ffffffff60c81b1964ffffffffff909716600160a01b026001600160c81b031990961692909416919091179390931793909316179055517f68e7327fca0057a787cde34ababb9ef9844ba8065ee03e8781d8122fc15d4419906200060e9083908690869062ffffff9390931683526001600160a01b03918216602084015216604082015260600190565b60405180910390a1505050565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90632efe011390606401602060405180830381865af41580156200067d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620006a3919062000818565b905090565b62ffffff81166000908152600160208190526040808320909101549051631bbffab160e21b8152600160c81b90910463ffffffff166004820152819073__$5f476116ae21c5294e0c0761c07efa7e1c$__90636effeac490602401602060405180830381865af415801562000721573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200074791906200083f565b1192915050565b62ffffff808216908316115b92915050565b600080604083850312156200077457600080fd5b82516001600160a01b03811681146200078c57600080fd5b60208401519092506001600160601b0381168114620007aa57600080fd5b809150509250929050565b600060208284031215620007c857600080fd5b81518015158114620007d957600080fd5b9392505050565b818103818111156200075a57634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000602082840312156200082b57600080fd5b815162ffffff81168114620007d957600080fd5b6000602082840312156200085257600080fd5b5051919050565b60805160a05160c0516132dc620008c86000396000610ed70152600061024b0152600081816103a70152818161067001528181610de901528181610e5a01528181610f1a015281816116230152818161177f0152818161187501528181611cd9015261204501526132dc6000f3fe608060405234801561001057600080fd5b50600436106101585760003560e01c80635fd1a5f5116100c3578063a3f4df7e1161007c578063a3f4df7e1461043e578063b18ebd3c1461046b578063b6b412ba1461047e578063b88da75914610491578063bbfbbfba146104a4578063cde749f4146104b757600080fd5b80635fd1a5f5146103df578063630361f614610400578063644c45e014610413578063893d20e81461041b578063946dfcfe146104235780639555c4db1461042b57600080fd5b80631aa3a008116101155780631aa3a0081461022957806331b62a3b146102495780633bc5de301461026f5780634d459c90146102835780634d5e16a9146103925780635ab1bd53146103a557600080fd5b806301ffc9a71461015d5780630aaba8e81461019f5780630abd8434146101b25780630d8e6e2c146101c557806315dae03e146101e157806317d7de7c146101f6575b600080fd5b61018a61016b366004612547565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b6101b06101ad366004612586565b50565b005b61018a6101c03660046125b4565b6104bf565b6101cd610562565b60405162ffffff9091168152602001610196565b60285b60405160ff9091168152602001610196565b60408051808201909152600e81526d50726f647563745365727669636560901b60208201525b6040516101969190612621565b6102316105ec565b6040516001600160601b039091168152602001610196565b7f0000000000000000000000000000000000000000000000000000000000000000610231565b60408051602081019091526000815261021c565b6103356102913660046125b4565b6040805160a0810182526000808252602082018190529181018290526060810182905260808101919091525062ffffff908116600090815260016020818152604092839020835160a0810185528154958616815263010000009095046001600160a01b03908116928601929092529091015490811691830191909152600160a01b810464ffffffffff166060830152600160c81b900463ffffffff16608082015290565b60408051825162ffffff1681526020808401516001600160a01b039081169183019190915283830151169181019190915260608083015164ffffffffff169082015260809182015163ffffffff169181019190915260a001610196565b6101b06103a0366004612647565b6106e5565b7f00000000000000000000000000000000000000000000000000000000000000005b6040516001600160a01b039091168152602001610196565b6103f26103ed366004612680565b610945565b604051908152602001610196565b6101b061040e3660046126b0565b610a4e565b610231610dd1565b6103c7610e38565b6002546103f2565b6101b0610439366004612710565b610f93565b61021c6040518060400160405280600e81526020016d50726f647563745365727669636560901b81525081565b61023161047936600461273e565b610fa1565b6101b061048c36600461286e565b611154565b6101cd61049f3660046128a3565b611197565b6101b06104b2366004612647565b6111d8565b6101e46114fd565b62ffffff81166000908152600160208190526040808320909101549051631bbffab160e21b8152600160c81b90910463ffffffff166004820152819073__$5f476116ae21c5294e0c0761c07efa7e1c$__90636effeac490602401602060405180830381865af4158015610537573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061055b91906128bc565b1192915050565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90632efe011390606401602060405180830381865af41580156105c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105e791906128d5565b905090565b60006105f6610e38565b6001600160a01b0316336001600160a01b03161461065b5760405162461bcd60e51b815260206004820152601760248201527f4552524f523a5247422d3030313a4e4f545f4f574e455200000000000000000060448201526064015b60405180910390fd5b604051632210724360e11b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690634420e486906024016020604051808303816000875af11580156106c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105e79190612902565b60006106f160646115da565b60405163bd7d9d8560e01b81526001600160601b0386166004820152909250600091506001600160a01b0383169063bd7d9d8590602401600060405180830381865afa158015610745573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261076d91908101906129eb565b61016081015160405163790a38ad60e01b815264ffffffffff909116600482015290915073__$d53880c81dc91c20799140d711e5ab8718$__9063790a38ad90602401602060405180830381865af41580156107cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f19190612b40565b61083d5760405162461bcd60e51b815260206004820152601f60248201527f4552524f523a5052532d3032303a414c52454144595f414354495641544544006044820152606401610652565b64ffffffffff83166101608201819052610100820151604051631ded81af60e31b81526004810192909252602482015273__$d53880c81dc91c20799140d711e5ab8718$__9063ef6c0d7890604401602060405180830381865af41580156108a9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108cd9190612b5d565b64ffffffffff1661018082015260646080820152604051635fe9f2a560e01b81526001600160a01b03831690635fe9f2a59061090d908490600401612b7a565b600060405180830381600087803b15801561092757600080fd5b505af115801561093b573d6000803e3d6000fd5b5050505050505050565b6040516322f5db0f60e11b815260048101829052600090819073__$fa7f345063a1bf0cf2bd14a32ccc1b6018$__906345ebb61e90602401602060405180830381865af415801561099a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109be91906128bc565b905060006109cc85836118fa565b604051632255341b60e11b81526004810182905290915073__$fa7f345063a1bf0cf2bd14a32ccc1b6018$__906344aa683690602401602060405180830381865af4158015610a1f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a4391906128bc565b925050505b92915050565b600080610a5b60646115da565b815160405163bd7d9d8560e01b81526001600160601b0389166004820152929450909250906000906001600160a01b0384169063bd7d9d8590602401600060405180830381865afa158015610ab4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610adc91908101906129eb565b9050610af88160200151836001600160601b0390811691161490565b610b445760405162461bcd60e51b815260206004820152601760248201527f504f4c4943595f50524f445543545f4d49534d415443480000000000000000006044820152606401610652565b610b5f8160800151610b54600a90565b60ff90811691161490565b610bab5760405162461bcd60e51b815260206004820152601f60248201527f4552524f523a5052532d3032313a53544154455f4e4f545f4150504c494544006044820152606401610652565b6000806000806000610bbd8887611916565b94509450945094509450610bd388858e86611b84565b93508a15610c21576000610bed89878f8a60c00151611c2e565b90508660c001518760e001818151610c059190612cd0565b90525060c085018051829190610c1c908390612cd0565b905250505b6028608087015263ffffffff43166101c0870152610c4b8a60005b64ffffffffff90811691161190565b15610cf55764ffffffffff8a166101608701819052610100870151604051631ded81af60e31b81526004810192909252602482015273__$d53880c81dc91c20799140d711e5ab8718$__9063ef6c0d7890604401602060405180830381865af4158015610cbc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ce09190612b5d565b64ffffffffff16610180870152606460808701525b604051635fe9f2a560e01b81526001600160a01b03891690635fe9f2a590610d21908990600401612b7a565b600060405180830381600087803b158015610d3b57600080fd5b505af1158015610d4f573d6000803e3d6000fd5b50506040516345c5a27d60e01b81526001600160a01b038b1692506345c5a27d9150610d7f908790600401612ce3565b600060405180830381600087803b158015610d9957600080fd5b505af1158015610dad573d6000803e3d6000fd5b505050508115610dc357610dc38587838661201e565b505050505050505050505050565b604051636939560f60e11b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063d272ac1e90602401602060405180830381865afa1580156106c1573d6000803e3d6000fd5b604051636939560f60e11b815230600482015260009081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d272ac1e90602401602060405180830381865afa158015610ea1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ec59190612902565b90506001600160601b038116610efc577f000000000000000000000000000000000000000000000000000000000000000091505090565b60405163df33330b60e01b81526001600160601b03821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063df33330b90602401602060405180830381865afa158015610f69573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f8d9190612db3565b91505090565b610f9d8282612135565b5050565b60008080610faf60646115da565b91509150600082600001519050306001600160a01b0316635ab1bd536040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ffa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061101e9190612db3565b6001600160a01b0316635ef14b5e8260c86040516001600160e01b031960e085901b1681526001600160601b03909216600483015260ff1660248201526001600160a01b038c166044820152608060648201526000608482015260a4016020604051808303816000875af115801561109a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110be9190612902565b604051633ad03f6960e11b81526001600160601b0380841660048301528083166024830152604482018b9052606482018a905260848201899052871660a48201529094506001600160a01b038316906375a07ed29060c401600060405180830381600087803b15801561113057600080fd5b505af1158015611144573d6000803e3d6000fd5b5050505050505095945050505050565b60008061116160646115da565b8151604051636e130e1d60e11b81529294509092506001600160a01b0383169163dc261c3a9161090d9188908890600401612dd0565b6000600282815481106111ac576111ac612e0d565b90600052602060002090600a91828204019190066003029054906101000a900462ffffff169050919050565b6000806111e560646115da565b60405163bd7d9d8560e01b81526001600160601b038716600482015291935091506000906001600160a01b0383169063bd7d9d8590602401600060405180830381865afa15801561123a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261126291908101906129eb565b8351604051634fd077f560e01b81526001600160601b0390911660048201529091506000906001600160a01b03841690634fd077f59060240161012060405180830381865afa1580156112b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112dd9190612e53565b60c08301519091506112f184838984611c2e565b50808360e0018181516113049190612cd0565b9052504363ffffffff166101c084015261131f866000610c3c565b156114965761016083015160405163790a38ad60e01b815264ffffffffff909116600482015273__$d53880c81dc91c20799140d711e5ab8718$__9063790a38ad90602401602060405180830381865af4158015611381573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113a59190612b40565b6113f15760405162461bcd60e51b815260206004820152601f60248201527f4552524f523a5052532d3033303a414c52454144595f414354495641544544006044820152606401610652565b64ffffffffff86166101608401819052610100840151604051631ded81af60e31b81526004810192909252602482015273__$d53880c81dc91c20799140d711e5ab8718$__9063ef6c0d7890604401602060405180830381865af415801561145d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114819190612b5d565b64ffffffffff16610180840152606460808401525b604051635fe9f2a560e01b81526001600160a01b03851690635fe9f2a5906114c2908690600401612b7a565b600060405180830381600087803b1580156114dc57600080fd5b505af11580156114f0573d6000803e3d6000fd5b5050505050505050505050565b6000306001600160a01b0316630d8e6e2c6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561153d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061156191906128d5565b60405163c9e66e2960e01b815262ffffff909116600482015273__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__9063c9e66e2990602401602060405180830381865af41580156115b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105e79190612f0c565b6040805160c08101825260008082526020820181905281830181905260608083018290526080830182905260a08301529151636939560f60e11b815233600482015290919081907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063d272ac1e90602401602060405180830381865afa158015611672573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116969190612902565b6040516330b8415f60e01b81526001600160601b038216600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af41580156116f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117159190612b40565b6117615760405162461bcd60e51b815260206004820152601760248201527f4552524f525f434f4d504f4e454e545f554e4b4e4f574e0000000000000000006044820152606401610652565b6040516305247a1760e51b81526001600160601b03821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a48f42e090602401600060405180830381865afa1580156117ce573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526117f69190810190612f29565b925061180c83604001518560ff90811691161490565b61184e5760405162461bcd60e51b815260206004820152601360248201527213d0929150d517d516541157d2539590531251606a1b6044820152606401610652565b60208301516040516305247a1760e51b81526001600160601b0390911660048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a48f42e090602401600060405180830381865afa1580156118c4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526118ec9190810190612f29565b606001519395939450505050565b600061190f8383670de0b6b3a7640000612403565b9392505050565b6119706040805160e0810182526000808252602080830182905282840182905260608301829052608083018290528351808501855282815280820183905260a084015283518085019094528184528301529060c082015290565b6119786124ec565b6020830151604051634fd077f560e01b81526001600160601b03909116600482015260009081906060906001600160a01b03881690634fd077f59060240161012060405180830381865afa1580156119d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119f89190612e53565b6040878101519051634793b4ab60e01b81526001600160601b0390911660048201529095506001600160a01b03881690634793b4ab90602401600060405180830381865afa158015611a4e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611a769190810190612ff1565b9350611a96846020015186604001516001600160601b0390811691161490565b611adb5760405162461bcd60e51b81526020600482015260166024820152750a09e989286b2be84aa9c88988abe9a92a69a82a886960531b6044820152606401610652565b60408581015190516357f80bbf60e01b81526001600160601b03821660048201526000906001600160a01b038a16906357f80bbf90602401606060405180830381865afa158015611b30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b5491906130f0565b905080602001519350611b6f81604001518960a00151610945565b94508560600151925050509295509295909350565b611b8c6124ec565b818460a001818151611b9e9190612cd0565b9052504363ffffffff16610140850152835160405163e1f64d7760e01b81526001600160601b0391821660048201529084166024820152604481018390526001600160a01b0386169063e1f64d7790606401600060405180830381600087803b158015611c0a57600080fd5b505af1158015611c1e573d6000803e3d6000fd5b505050508390505b949350505050565b60008115611c2657835160405163a310e2a360e01b81526001600160601b0390911660048201526000906001600160a01b0387169063a310e2a390602401602060405180830381865afa158015611c89573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cad9190612db3565b60405163df33330b60e01b81526001600160601b03861660048201529091506000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063df33330b90602401602060405180830381865afa158015611d20573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d449190612db3565b6040808801519051630660151560e31b81526001600160601b0390911660048201529091506000906001600160a01b03891690633300a8a89060240160c060405180830381865afa158015611d9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dc1919061315b565b6020015160a08801516040516346f0526160e11b81528796509192509073__$a23651848365a6a5ca15f07b4331037f48$__90638de0a4c290611e089084906004016131de565b602060405180830381865af4158015611e25573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e499190612b40565b15611ebd576040516317d5759960e31b81526001600160a01b03848116600483015283811660248301526044820188905285169063beabacc890606401600060405180830381600087803b158015611ea057600080fd5b505af1158015611eb4573d6000803e3d6000fd5b50505050612012565b6000808a6001600160a01b031663f274e87d89856040518363ffffffff1660e01b8152600401611eee9291906131f5565b6040805180830381865afa158015611f0a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f2e9190613213565b60808c01516040516317d5759960e31b81526001600160a01b03898116600483015291821660248201526044810184905292945090925087169063beabacc890606401600060405180830381600087803b158015611f8b57600080fd5b505af1158015611f9f573d6000803e3d6000fd5b50506040516317d5759960e31b81526001600160a01b0388811660048301528781166024830152604482018590528916925063beabacc89150606401600060405180830381600087803b158015611ff557600080fd5b505af1158015612009573d6000803e3d6000fd5b50929850505050505b50505050949350505050565b60408481015190516305247a1760e51b81526001600160601b0390911660048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a48f42e090602401600060405180830381865afa158015612094573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526120bc9190810190612f29565b6060015184516101208601516040516332f7fe0d60e11b815292935083926001600160a01b038416926365effc1a926120fb9289908990600401613237565b600060405180830381600087803b15801561211557600080fd5b505af1158015612129573d6000803e3d6000fd5b50505050505050505050565b600061213f610562565b905061214a816104bf565b156121a75760405162461bcd60e51b815260206004820152602760248201527f4552524f523a56524e2d3030313a56455253494f4e5f414c52454144595f41436044820152661512559055115160ca1b6064820152608401610652565b600254156122665760028054600091906121c39060019061327d565b815481106121d3576121d3612e0d565b90600052602060002090600a91828204019190066003029054906101000a900462ffffff16905061220c828262ffffff90811691161190565b6122645760405162461bcd60e51b8152602060048201526024808201527f4552524f523a56524e2d3030323a56455253494f4e5f4e4f545f494e4352454160448201526353494e4760e01b6064820152608401610652565b505b60028054600181018255600091909152600a8082047f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace01805462ffffff808616600394909506939093026101000a848102930219169190911790556040805160a0810182529182526001600160a01b038086166020840152841690820152606081016122ef4290565b64ffffffffff1681526020014363ffffffff90811690915262ffffff80841660009081526001602081815260409283902086518154928801516001600160a01b039081166301000000026001600160b81b0319909416919096161791909117815585830151910180546060870151608090970151909516600160c81b0263ffffffff60c81b1964ffffffffff909716600160a01b026001600160c81b031990961692909416919091179390931793909316179055517f68e7327fca0057a787cde34ababb9ef9844ba8065ee03e8781d8122fc15d4419906123f69083908690869062ffffff9390931683526001600160a01b03918216602084015216604082015260600190565b60405180910390a1505050565b600080806000198587098587029250828110838203039150508060000361243d5783828161243357612433613290565b049250505061190f565b8084116124845760405162461bcd60e51b81526020600482015260156024820152744d6174683a206d756c446976206f766572666c6f7760581b6044820152606401610652565b600084868809600260036001881981018916988990049182028318808302840302808302840302808302840302808302840302808302840302918202909203026000889003889004909101858311909403939093029303949094049190911702949350505050565b60408051610160810182526000808252602082018190529181018290526060808201526080810182905260a0810182905260c0810182905260e081018290526101008101829052610120810182905261014081019190915290565b60006020828403121561255957600080fd5b81356001600160e01b03198116811461190f57600080fd5b6001600160601b03811681146101ad57600080fd5b60006020828403121561259857600080fd5b813561190f81612571565b62ffffff811681146101ad57600080fd5b6000602082840312156125c657600080fd5b813561190f816125a3565b60005b838110156125ec5781810151838201526020016125d4565b50506000910152565b6000815180845261260d8160208601602086016125d1565b601f01601f19169290920160200192915050565b60208152600061190f60208301846125f5565b64ffffffffff811681146101ad57600080fd5b6000806040838503121561265a57600080fd5b823561266581612571565b9150602083013561267581612634565b809150509250929050565b6000806040838503121561269357600080fd5b50508035926020909101359150565b80151581146101ad57600080fd5b6000806000606084860312156126c557600080fd5b83356126d081612571565b925060208401356126e0816126a2565b915060408401356126f081612634565b809150509250925092565b6001600160a01b03811681146101ad57600080fd5b6000806040838503121561272357600080fd5b823561272e816126fb565b91506020830135612675816126fb565b600080600080600060a0868803121561275657600080fd5b8535612761816126fb565b9450602086013593506040860135925060608601359150608086013561278681612571565b809150509295509295909350565b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff811182821017156127cd576127cd612794565b60405290565b6040516101e0810167ffffffffffffffff811182821017156127cd576127cd612794565b60405160c0810167ffffffffffffffff811182821017156127cd576127cd612794565b604051610160810167ffffffffffffffff811182821017156127cd576127cd612794565b60006040828403121561285057600080fd5b6128586127aa565b9050813581526020820135602082015292915050565b6000806080838503121561288157600080fd5b61288b848461283e565b915061289a846040850161283e565b90509250929050565b6000602082840312156128b557600080fd5b5035919050565b6000602082840312156128ce57600080fd5b5051919050565b6000602082840312156128e757600080fd5b815161190f816125a3565b80516128fd81612571565b919050565b60006020828403121561291457600080fd5b815161190f81612571565b80516128fd816126fb565b60ff811681146101ad57600080fd5b80516128fd8161292a565b600082601f83011261295557600080fd5b815167ffffffffffffffff8082111561297057612970612794565b604051601f8301601f19908116603f0116810190828211818310171561299857612998612794565b816040528381528660208588010111156129b157600080fd5b6129c28460208301602089016125d1565b9695505050505050565b80516128fd81612634565b805163ffffffff811681146128fd57600080fd5b6000602082840312156129fd57600080fd5b815167ffffffffffffffff80821115612a1557600080fd5b908301906101e08286031215612a2a57600080fd5b612a326127d3565b612a3b836128f2565b8152612a49602084016128f2565b6020820152612a5a604084016128f2565b6040820152612a6b6060840161291f565b6060820152612a7c60808401612939565b608082015260a083015160a082015260c083015160c082015260e083015160e08201526101008084015181830152506101208084015183811115612abf57600080fd5b612acb88828701612944565b8284015250506101409150612ae18284016129cc565b828201526101609150612af58284016129cc565b828201526101809150612b098284016129cc565b828201526101a09150612b1d8284016129cc565b828201526101c09150612b318284016129d7565b91810191909152949350505050565b600060208284031215612b5257600080fd5b815161190f816126a2565b600060208284031215612b6f57600080fd5b815161190f81612634565b60208152612b946020820183516001600160601b03169052565b60006020830151612bb060408401826001600160601b03169052565b5060408301516001600160601b03811660608401525060608301516001600160a01b038116608084015250608083015160ff811660a08401525060a083015160c083015260c083015160e083015260e08301516101008181850152808501519150506101208181850152808501519150506101e06101408181860152612c3a6102008601846125f5565b90860151909250610160612c568682018364ffffffffff169052565b8601519050610180612c708682018364ffffffffff169052565b86015190506101a0612c8a8682018364ffffffffff169052565b86015190506101c0612ca48682018364ffffffffff169052565b9095015163ffffffff1693019290925250919050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610a4857610a48612cba565b60208152612cfd6020820183516001600160601b03169052565b60006020830151612d1960408401826001600160601b03169052565b50604083015160ff81166060840152506060830151610160806080850152612d456101808501836125f5565b9150608085015160a085015260a085015160c085015260c085015160e085015260e0850151610100612d7f8187018364ffffffffff169052565b8601519050610120612d998682018364ffffffffff169052565b8601519050610140612ca48682018364ffffffffff169052565b600060208284031215612dc557600080fd5b815161190f816126fb565b6001600160601b038416815260a08101612df7602083018580518252602090810151910152565b8251606083015260208301516080830152611c26565b634e487b7160e01b600052603260045260246000fd5b600060408284031215612e3557600080fd5b612e3d6127aa565b9050815181526020820151602082015292915050565b60006101208284031215612e6657600080fd5b60405160e0810181811067ffffffffffffffff82111715612e8957612e89612794565b6040528251612e9781612571565b81526020830151612ea781612571565b60208201526040830151612eba81612571565b6040820152612ecb6060840161291f565b6060820152612edc6080840161291f565b6080820152612eee8460a08501612e23565b60a0820152612f008460e08501612e23565b60c08201529392505050565b600060208284031215612f1e57600080fd5b815161190f8161292a565b600060208284031215612f3b57600080fd5b815167ffffffffffffffff80821115612f5357600080fd5b9083019060c08286031215612f6757600080fd5b612f6f6127f7565b8251612f7a81612571565b81526020830151612f8a81612571565b60208201526040830151612f9d8161292a565b6040820152612fae6060840161291f565b6060820152612fbf6080840161291f565b608082015260a083015182811115612fd657600080fd5b612fe287828601612944565b60a08301525095945050505050565b60006020828403121561300357600080fd5b815167ffffffffffffffff8082111561301b57600080fd5b90830190610160828603121561303057600080fd5b61303861281a565b613041836128f2565b815261304f602084016128f2565b602082015261306060408401612939565b604082015260608301518281111561307757600080fd5b61308387828601612944565b6060830152506080830151608082015260a083015160a082015260c083015160c08201526130b360e084016129cc565b60e082015261010091506130c88284016129cc565b8282015261012091506130dc8284016129cc565b828201526101409150612b318284016129d7565b60006060828403121561310257600080fd5b6040516060810181811067ffffffffffffffff8211171561312557613125612794565b604052825161313381612571565b81526020830151613143816126a2565b60208201526040928301519281019290925250919050565b600060c0828403121561316d57600080fd5b6040516080810181811067ffffffffffffffff8211171561319057613190612794565b604052825161319e81612571565b815260208301516131ae816126fb565b60208201526131c08460408501612e23565b60408201526131d28460808501612e23565b60608201529392505050565b815181526020808301519082015260408101610a48565b8281526060810161190f602083018480518252602090810151910152565b6000806040838503121561322657600080fd5b505080516020909101519092909150565b6001600160601b038516815260806020820152600061325960808301866125f5565b828103604084015261326b81866125f5565b91505082606083015295945050505050565b81810381811115610a4857610a48612cba565b634e487b7160e01b600052601260045260246000fdfea2646970667358221220cdbf93c0356c69db050ed46c395b79ff14b584dfca2c3dc62ec456f6be2f01b564736f6c63430008140033",
516
- "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101585760003560e01c80635fd1a5f5116100c3578063a3f4df7e1161007c578063a3f4df7e1461043e578063b18ebd3c1461046b578063b6b412ba1461047e578063b88da75914610491578063bbfbbfba146104a4578063cde749f4146104b757600080fd5b80635fd1a5f5146103df578063630361f614610400578063644c45e014610413578063893d20e81461041b578063946dfcfe146104235780639555c4db1461042b57600080fd5b80631aa3a008116101155780631aa3a0081461022957806331b62a3b146102495780633bc5de301461026f5780634d459c90146102835780634d5e16a9146103925780635ab1bd53146103a557600080fd5b806301ffc9a71461015d5780630aaba8e81461019f5780630abd8434146101b25780630d8e6e2c146101c557806315dae03e146101e157806317d7de7c146101f6575b600080fd5b61018a61016b366004612547565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b6101b06101ad366004612586565b50565b005b61018a6101c03660046125b4565b6104bf565b6101cd610562565b60405162ffffff9091168152602001610196565b60285b60405160ff9091168152602001610196565b60408051808201909152600e81526d50726f647563745365727669636560901b60208201525b6040516101969190612621565b6102316105ec565b6040516001600160601b039091168152602001610196565b7f0000000000000000000000000000000000000000000000000000000000000000610231565b60408051602081019091526000815261021c565b6103356102913660046125b4565b6040805160a0810182526000808252602082018190529181018290526060810182905260808101919091525062ffffff908116600090815260016020818152604092839020835160a0810185528154958616815263010000009095046001600160a01b03908116928601929092529091015490811691830191909152600160a01b810464ffffffffff166060830152600160c81b900463ffffffff16608082015290565b60408051825162ffffff1681526020808401516001600160a01b039081169183019190915283830151169181019190915260608083015164ffffffffff169082015260809182015163ffffffff169181019190915260a001610196565b6101b06103a0366004612647565b6106e5565b7f00000000000000000000000000000000000000000000000000000000000000005b6040516001600160a01b039091168152602001610196565b6103f26103ed366004612680565b610945565b604051908152602001610196565b6101b061040e3660046126b0565b610a4e565b610231610dd1565b6103c7610e38565b6002546103f2565b6101b0610439366004612710565b610f93565b61021c6040518060400160405280600e81526020016d50726f647563745365727669636560901b81525081565b61023161047936600461273e565b610fa1565b6101b061048c36600461286e565b611154565b6101cd61049f3660046128a3565b611197565b6101b06104b2366004612647565b6111d8565b6101e46114fd565b62ffffff81166000908152600160208190526040808320909101549051631bbffab160e21b8152600160c81b90910463ffffffff166004820152819073__$5f476116ae21c5294e0c0761c07efa7e1c$__90636effeac490602401602060405180830381865af4158015610537573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061055b91906128bc565b1192915050565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90632efe011390606401602060405180830381865af41580156105c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105e791906128d5565b905090565b60006105f6610e38565b6001600160a01b0316336001600160a01b03161461065b5760405162461bcd60e51b815260206004820152601760248201527f4552524f523a5247422d3030313a4e4f545f4f574e455200000000000000000060448201526064015b60405180910390fd5b604051632210724360e11b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690634420e486906024016020604051808303816000875af11580156106c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105e79190612902565b60006106f160646115da565b60405163bd7d9d8560e01b81526001600160601b0386166004820152909250600091506001600160a01b0383169063bd7d9d8590602401600060405180830381865afa158015610745573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261076d91908101906129eb565b61016081015160405163790a38ad60e01b815264ffffffffff909116600482015290915073__$d53880c81dc91c20799140d711e5ab8718$__9063790a38ad90602401602060405180830381865af41580156107cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f19190612b40565b61083d5760405162461bcd60e51b815260206004820152601f60248201527f4552524f523a5052532d3032303a414c52454144595f414354495641544544006044820152606401610652565b64ffffffffff83166101608201819052610100820151604051631ded81af60e31b81526004810192909252602482015273__$d53880c81dc91c20799140d711e5ab8718$__9063ef6c0d7890604401602060405180830381865af41580156108a9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108cd9190612b5d565b64ffffffffff1661018082015260646080820152604051635fe9f2a560e01b81526001600160a01b03831690635fe9f2a59061090d908490600401612b7a565b600060405180830381600087803b15801561092757600080fd5b505af115801561093b573d6000803e3d6000fd5b5050505050505050565b6040516322f5db0f60e11b815260048101829052600090819073__$fa7f345063a1bf0cf2bd14a32ccc1b6018$__906345ebb61e90602401602060405180830381865af415801561099a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109be91906128bc565b905060006109cc85836118fa565b604051632255341b60e11b81526004810182905290915073__$fa7f345063a1bf0cf2bd14a32ccc1b6018$__906344aa683690602401602060405180830381865af4158015610a1f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a4391906128bc565b925050505b92915050565b600080610a5b60646115da565b815160405163bd7d9d8560e01b81526001600160601b0389166004820152929450909250906000906001600160a01b0384169063bd7d9d8590602401600060405180830381865afa158015610ab4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610adc91908101906129eb565b9050610af88160200151836001600160601b0390811691161490565b610b445760405162461bcd60e51b815260206004820152601760248201527f504f4c4943595f50524f445543545f4d49534d415443480000000000000000006044820152606401610652565b610b5f8160800151610b54600a90565b60ff90811691161490565b610bab5760405162461bcd60e51b815260206004820152601f60248201527f4552524f523a5052532d3032313a53544154455f4e4f545f4150504c494544006044820152606401610652565b6000806000806000610bbd8887611916565b94509450945094509450610bd388858e86611b84565b93508a15610c21576000610bed89878f8a60c00151611c2e565b90508660c001518760e001818151610c059190612cd0565b90525060c085018051829190610c1c908390612cd0565b905250505b6028608087015263ffffffff43166101c0870152610c4b8a60005b64ffffffffff90811691161190565b15610cf55764ffffffffff8a166101608701819052610100870151604051631ded81af60e31b81526004810192909252602482015273__$d53880c81dc91c20799140d711e5ab8718$__9063ef6c0d7890604401602060405180830381865af4158015610cbc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ce09190612b5d565b64ffffffffff16610180870152606460808701525b604051635fe9f2a560e01b81526001600160a01b03891690635fe9f2a590610d21908990600401612b7a565b600060405180830381600087803b158015610d3b57600080fd5b505af1158015610d4f573d6000803e3d6000fd5b50506040516345c5a27d60e01b81526001600160a01b038b1692506345c5a27d9150610d7f908790600401612ce3565b600060405180830381600087803b158015610d9957600080fd5b505af1158015610dad573d6000803e3d6000fd5b505050508115610dc357610dc38587838661201e565b505050505050505050505050565b604051636939560f60e11b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063d272ac1e90602401602060405180830381865afa1580156106c1573d6000803e3d6000fd5b604051636939560f60e11b815230600482015260009081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d272ac1e90602401602060405180830381865afa158015610ea1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ec59190612902565b90506001600160601b038116610efc577f000000000000000000000000000000000000000000000000000000000000000091505090565b60405163df33330b60e01b81526001600160601b03821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063df33330b90602401602060405180830381865afa158015610f69573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f8d9190612db3565b91505090565b610f9d8282612135565b5050565b60008080610faf60646115da565b91509150600082600001519050306001600160a01b0316635ab1bd536040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ffa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061101e9190612db3565b6001600160a01b0316635ef14b5e8260c86040516001600160e01b031960e085901b1681526001600160601b03909216600483015260ff1660248201526001600160a01b038c166044820152608060648201526000608482015260a4016020604051808303816000875af115801561109a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110be9190612902565b604051633ad03f6960e11b81526001600160601b0380841660048301528083166024830152604482018b9052606482018a905260848201899052871660a48201529094506001600160a01b038316906375a07ed29060c401600060405180830381600087803b15801561113057600080fd5b505af1158015611144573d6000803e3d6000fd5b5050505050505095945050505050565b60008061116160646115da565b8151604051636e130e1d60e11b81529294509092506001600160a01b0383169163dc261c3a9161090d9188908890600401612dd0565b6000600282815481106111ac576111ac612e0d565b90600052602060002090600a91828204019190066003029054906101000a900462ffffff169050919050565b6000806111e560646115da565b60405163bd7d9d8560e01b81526001600160601b038716600482015291935091506000906001600160a01b0383169063bd7d9d8590602401600060405180830381865afa15801561123a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261126291908101906129eb565b8351604051634fd077f560e01b81526001600160601b0390911660048201529091506000906001600160a01b03841690634fd077f59060240161012060405180830381865afa1580156112b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112dd9190612e53565b60c08301519091506112f184838984611c2e565b50808360e0018181516113049190612cd0565b9052504363ffffffff166101c084015261131f866000610c3c565b156114965761016083015160405163790a38ad60e01b815264ffffffffff909116600482015273__$d53880c81dc91c20799140d711e5ab8718$__9063790a38ad90602401602060405180830381865af4158015611381573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113a59190612b40565b6113f15760405162461bcd60e51b815260206004820152601f60248201527f4552524f523a5052532d3033303a414c52454144595f414354495641544544006044820152606401610652565b64ffffffffff86166101608401819052610100840151604051631ded81af60e31b81526004810192909252602482015273__$d53880c81dc91c20799140d711e5ab8718$__9063ef6c0d7890604401602060405180830381865af415801561145d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114819190612b5d565b64ffffffffff16610180840152606460808401525b604051635fe9f2a560e01b81526001600160a01b03851690635fe9f2a5906114c2908690600401612b7a565b600060405180830381600087803b1580156114dc57600080fd5b505af11580156114f0573d6000803e3d6000fd5b5050505050505050505050565b6000306001600160a01b0316630d8e6e2c6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561153d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061156191906128d5565b60405163c9e66e2960e01b815262ffffff909116600482015273__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__9063c9e66e2990602401602060405180830381865af41580156115b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105e79190612f0c565b6040805160c08101825260008082526020820181905281830181905260608083018290526080830182905260a08301529151636939560f60e11b815233600482015290919081907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063d272ac1e90602401602060405180830381865afa158015611672573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116969190612902565b6040516330b8415f60e01b81526001600160601b038216600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af41580156116f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117159190612b40565b6117615760405162461bcd60e51b815260206004820152601760248201527f4552524f525f434f4d504f4e454e545f554e4b4e4f574e0000000000000000006044820152606401610652565b6040516305247a1760e51b81526001600160601b03821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a48f42e090602401600060405180830381865afa1580156117ce573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526117f69190810190612f29565b925061180c83604001518560ff90811691161490565b61184e5760405162461bcd60e51b815260206004820152601360248201527213d0929150d517d516541157d2539590531251606a1b6044820152606401610652565b60208301516040516305247a1760e51b81526001600160601b0390911660048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a48f42e090602401600060405180830381865afa1580156118c4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526118ec9190810190612f29565b606001519395939450505050565b600061190f8383670de0b6b3a7640000612403565b9392505050565b6119706040805160e0810182526000808252602080830182905282840182905260608301829052608083018290528351808501855282815280820183905260a084015283518085019094528184528301529060c082015290565b6119786124ec565b6020830151604051634fd077f560e01b81526001600160601b03909116600482015260009081906060906001600160a01b03881690634fd077f59060240161012060405180830381865afa1580156119d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119f89190612e53565b6040878101519051634793b4ab60e01b81526001600160601b0390911660048201529095506001600160a01b03881690634793b4ab90602401600060405180830381865afa158015611a4e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611a769190810190612ff1565b9350611a96846020015186604001516001600160601b0390811691161490565b611adb5760405162461bcd60e51b81526020600482015260166024820152750a09e989286b2be84aa9c88988abe9a92a69a82a886960531b6044820152606401610652565b60408581015190516357f80bbf60e01b81526001600160601b03821660048201526000906001600160a01b038a16906357f80bbf90602401606060405180830381865afa158015611b30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b5491906130f0565b905080602001519350611b6f81604001518960a00151610945565b94508560600151925050509295509295909350565b611b8c6124ec565b818460a001818151611b9e9190612cd0565b9052504363ffffffff16610140850152835160405163e1f64d7760e01b81526001600160601b0391821660048201529084166024820152604481018390526001600160a01b0386169063e1f64d7790606401600060405180830381600087803b158015611c0a57600080fd5b505af1158015611c1e573d6000803e3d6000fd5b505050508390505b949350505050565b60008115611c2657835160405163a310e2a360e01b81526001600160601b0390911660048201526000906001600160a01b0387169063a310e2a390602401602060405180830381865afa158015611c89573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cad9190612db3565b60405163df33330b60e01b81526001600160601b03861660048201529091506000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063df33330b90602401602060405180830381865afa158015611d20573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d449190612db3565b6040808801519051630660151560e31b81526001600160601b0390911660048201529091506000906001600160a01b03891690633300a8a89060240160c060405180830381865afa158015611d9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dc1919061315b565b6020015160a08801516040516346f0526160e11b81528796509192509073__$a23651848365a6a5ca15f07b4331037f48$__90638de0a4c290611e089084906004016131de565b602060405180830381865af4158015611e25573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e499190612b40565b15611ebd576040516317d5759960e31b81526001600160a01b03848116600483015283811660248301526044820188905285169063beabacc890606401600060405180830381600087803b158015611ea057600080fd5b505af1158015611eb4573d6000803e3d6000fd5b50505050612012565b6000808a6001600160a01b031663f274e87d89856040518363ffffffff1660e01b8152600401611eee9291906131f5565b6040805180830381865afa158015611f0a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f2e9190613213565b60808c01516040516317d5759960e31b81526001600160a01b03898116600483015291821660248201526044810184905292945090925087169063beabacc890606401600060405180830381600087803b158015611f8b57600080fd5b505af1158015611f9f573d6000803e3d6000fd5b50506040516317d5759960e31b81526001600160a01b0388811660048301528781166024830152604482018590528916925063beabacc89150606401600060405180830381600087803b158015611ff557600080fd5b505af1158015612009573d6000803e3d6000fd5b50929850505050505b50505050949350505050565b60408481015190516305247a1760e51b81526001600160601b0390911660048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a48f42e090602401600060405180830381865afa158015612094573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526120bc9190810190612f29565b6060015184516101208601516040516332f7fe0d60e11b815292935083926001600160a01b038416926365effc1a926120fb9289908990600401613237565b600060405180830381600087803b15801561211557600080fd5b505af1158015612129573d6000803e3d6000fd5b50505050505050505050565b600061213f610562565b905061214a816104bf565b156121a75760405162461bcd60e51b815260206004820152602760248201527f4552524f523a56524e2d3030313a56455253494f4e5f414c52454144595f41436044820152661512559055115160ca1b6064820152608401610652565b600254156122665760028054600091906121c39060019061327d565b815481106121d3576121d3612e0d565b90600052602060002090600a91828204019190066003029054906101000a900462ffffff16905061220c828262ffffff90811691161190565b6122645760405162461bcd60e51b8152602060048201526024808201527f4552524f523a56524e2d3030323a56455253494f4e5f4e4f545f494e4352454160448201526353494e4760e01b6064820152608401610652565b505b60028054600181018255600091909152600a8082047f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace01805462ffffff808616600394909506939093026101000a848102930219169190911790556040805160a0810182529182526001600160a01b038086166020840152841690820152606081016122ef4290565b64ffffffffff1681526020014363ffffffff90811690915262ffffff80841660009081526001602081815260409283902086518154928801516001600160a01b039081166301000000026001600160b81b0319909416919096161791909117815585830151910180546060870151608090970151909516600160c81b0263ffffffff60c81b1964ffffffffff909716600160a01b026001600160c81b031990961692909416919091179390931793909316179055517f68e7327fca0057a787cde34ababb9ef9844ba8065ee03e8781d8122fc15d4419906123f69083908690869062ffffff9390931683526001600160a01b03918216602084015216604082015260600190565b60405180910390a1505050565b600080806000198587098587029250828110838203039150508060000361243d5783828161243357612433613290565b049250505061190f565b8084116124845760405162461bcd60e51b81526020600482015260156024820152744d6174683a206d756c446976206f766572666c6f7760581b6044820152606401610652565b600084868809600260036001881981018916988990049182028318808302840302808302840302808302840302808302840302808302840302918202909203026000889003889004909101858311909403939093029303949094049190911702949350505050565b60408051610160810182526000808252602082018190529181018290526060808201526080810182905260a0810182905260c0810182905260e081018290526101008101829052610120810182905261014081019190915290565b60006020828403121561255957600080fd5b81356001600160e01b03198116811461190f57600080fd5b6001600160601b03811681146101ad57600080fd5b60006020828403121561259857600080fd5b813561190f81612571565b62ffffff811681146101ad57600080fd5b6000602082840312156125c657600080fd5b813561190f816125a3565b60005b838110156125ec5781810151838201526020016125d4565b50506000910152565b6000815180845261260d8160208601602086016125d1565b601f01601f19169290920160200192915050565b60208152600061190f60208301846125f5565b64ffffffffff811681146101ad57600080fd5b6000806040838503121561265a57600080fd5b823561266581612571565b9150602083013561267581612634565b809150509250929050565b6000806040838503121561269357600080fd5b50508035926020909101359150565b80151581146101ad57600080fd5b6000806000606084860312156126c557600080fd5b83356126d081612571565b925060208401356126e0816126a2565b915060408401356126f081612634565b809150509250925092565b6001600160a01b03811681146101ad57600080fd5b6000806040838503121561272357600080fd5b823561272e816126fb565b91506020830135612675816126fb565b600080600080600060a0868803121561275657600080fd5b8535612761816126fb565b9450602086013593506040860135925060608601359150608086013561278681612571565b809150509295509295909350565b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff811182821017156127cd576127cd612794565b60405290565b6040516101e0810167ffffffffffffffff811182821017156127cd576127cd612794565b60405160c0810167ffffffffffffffff811182821017156127cd576127cd612794565b604051610160810167ffffffffffffffff811182821017156127cd576127cd612794565b60006040828403121561285057600080fd5b6128586127aa565b9050813581526020820135602082015292915050565b6000806080838503121561288157600080fd5b61288b848461283e565b915061289a846040850161283e565b90509250929050565b6000602082840312156128b557600080fd5b5035919050565b6000602082840312156128ce57600080fd5b5051919050565b6000602082840312156128e757600080fd5b815161190f816125a3565b80516128fd81612571565b919050565b60006020828403121561291457600080fd5b815161190f81612571565b80516128fd816126fb565b60ff811681146101ad57600080fd5b80516128fd8161292a565b600082601f83011261295557600080fd5b815167ffffffffffffffff8082111561297057612970612794565b604051601f8301601f19908116603f0116810190828211818310171561299857612998612794565b816040528381528660208588010111156129b157600080fd5b6129c28460208301602089016125d1565b9695505050505050565b80516128fd81612634565b805163ffffffff811681146128fd57600080fd5b6000602082840312156129fd57600080fd5b815167ffffffffffffffff80821115612a1557600080fd5b908301906101e08286031215612a2a57600080fd5b612a326127d3565b612a3b836128f2565b8152612a49602084016128f2565b6020820152612a5a604084016128f2565b6040820152612a6b6060840161291f565b6060820152612a7c60808401612939565b608082015260a083015160a082015260c083015160c082015260e083015160e08201526101008084015181830152506101208084015183811115612abf57600080fd5b612acb88828701612944565b8284015250506101409150612ae18284016129cc565b828201526101609150612af58284016129cc565b828201526101809150612b098284016129cc565b828201526101a09150612b1d8284016129cc565b828201526101c09150612b318284016129d7565b91810191909152949350505050565b600060208284031215612b5257600080fd5b815161190f816126a2565b600060208284031215612b6f57600080fd5b815161190f81612634565b60208152612b946020820183516001600160601b03169052565b60006020830151612bb060408401826001600160601b03169052565b5060408301516001600160601b03811660608401525060608301516001600160a01b038116608084015250608083015160ff811660a08401525060a083015160c083015260c083015160e083015260e08301516101008181850152808501519150506101208181850152808501519150506101e06101408181860152612c3a6102008601846125f5565b90860151909250610160612c568682018364ffffffffff169052565b8601519050610180612c708682018364ffffffffff169052565b86015190506101a0612c8a8682018364ffffffffff169052565b86015190506101c0612ca48682018364ffffffffff169052565b9095015163ffffffff1693019290925250919050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610a4857610a48612cba565b60208152612cfd6020820183516001600160601b03169052565b60006020830151612d1960408401826001600160601b03169052565b50604083015160ff81166060840152506060830151610160806080850152612d456101808501836125f5565b9150608085015160a085015260a085015160c085015260c085015160e085015260e0850151610100612d7f8187018364ffffffffff169052565b8601519050610120612d998682018364ffffffffff169052565b8601519050610140612ca48682018364ffffffffff169052565b600060208284031215612dc557600080fd5b815161190f816126fb565b6001600160601b038416815260a08101612df7602083018580518252602090810151910152565b8251606083015260208301516080830152611c26565b634e487b7160e01b600052603260045260246000fd5b600060408284031215612e3557600080fd5b612e3d6127aa565b9050815181526020820151602082015292915050565b60006101208284031215612e6657600080fd5b60405160e0810181811067ffffffffffffffff82111715612e8957612e89612794565b6040528251612e9781612571565b81526020830151612ea781612571565b60208201526040830151612eba81612571565b6040820152612ecb6060840161291f565b6060820152612edc6080840161291f565b6080820152612eee8460a08501612e23565b60a0820152612f008460e08501612e23565b60c08201529392505050565b600060208284031215612f1e57600080fd5b815161190f8161292a565b600060208284031215612f3b57600080fd5b815167ffffffffffffffff80821115612f5357600080fd5b9083019060c08286031215612f6757600080fd5b612f6f6127f7565b8251612f7a81612571565b81526020830151612f8a81612571565b60208201526040830151612f9d8161292a565b6040820152612fae6060840161291f565b6060820152612fbf6080840161291f565b608082015260a083015182811115612fd657600080fd5b612fe287828601612944565b60a08301525095945050505050565b60006020828403121561300357600080fd5b815167ffffffffffffffff8082111561301b57600080fd5b90830190610160828603121561303057600080fd5b61303861281a565b613041836128f2565b815261304f602084016128f2565b602082015261306060408401612939565b604082015260608301518281111561307757600080fd5b61308387828601612944565b6060830152506080830151608082015260a083015160a082015260c083015160c08201526130b360e084016129cc565b60e082015261010091506130c88284016129cc565b8282015261012091506130dc8284016129cc565b828201526101409150612b318284016129d7565b60006060828403121561310257600080fd5b6040516060810181811067ffffffffffffffff8211171561312557613125612794565b604052825161313381612571565b81526020830151613143816126a2565b60208201526040928301519281019290925250919050565b600060c0828403121561316d57600080fd5b6040516080810181811067ffffffffffffffff8211171561319057613190612794565b604052825161319e81612571565b815260208301516131ae816126fb565b60208201526131c08460408501612e23565b60408201526131d28460808501612e23565b60608201529392505050565b815181526020808301519082015260408101610a48565b8281526060810161190f602083018480518252602090810151910152565b6000806040838503121561322657600080fd5b505080516020909101519092909150565b6001600160601b038516815260806020820152600061325960808301866125f5565b828103604084015261326b81866125f5565b91505082606083015295945050505050565b81810381811115610a4857610a48612cba565b634e487b7160e01b600052601260045260246000fdfea2646970667358221220cdbf93c0356c69db050ed46c395b79ff14b584dfca2c3dc62ec456f6be2f01b564736f6c63430008140033",
645
+ "bytecode": "0x60806040523480156200001157600080fd5b50620000546301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b600280546001600160a01b031916331790556200007062000076565b6200012a565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff1615620000c75760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b0390811614620001275780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b612d44806200013a6000396000f3fe608060405234801561001057600080fd5b50600436106101585760003560e01c8063893d20e8116100c3578063b6b412ba1161007c578063b6b412ba14610454578063b88da75914610467578063caf4e3d41461047a578063cc9fc59a14610482578063cde749f41461048a578063cf7a1d771461049257600080fd5b8063893d20e8146103ca5780638f997f6d146103d2578063946dfcfe146103e5578063a745e3df1461040c578063b3c650151461041f578063b68d18091461043f57600080fd5b80634420e486116101155780634420e486146102235780634d459c901461024e5780634f421333146103675780635ab1bd531461037a578063644c45e01461039f5780637cef4842146103b757600080fd5b806301ffc9a71461015d578063095e2b721461019f5780630d8e6e2c146101b45780630fec111c146101d0578063138461e0146101e65780631eff4b22146101ee575b600080fd5b61018a61016b36600461209b565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b6101b26101ad366004612219565b6104a5565b005b6101bc61053e565b60405162ffffff9091168152602001610196565b6101d86105c8565b6040516101969291906122b6565b6101b261071b565b6102157f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b604051908152602001610196565b610236610231366004612372565b61093d565b6040516001600160601b039091168152602001610196565b61030a61025c3660046123a0565b6040805160a081018252600080825260208201819052918101829052606081018290526080810191909152600080516020612cef83398151915262ffffff92831660009081526020918252604090819020815160a0810183528154958616815263010000009095046001600160a01b03908116938601939093526001015491821690840152600160a01b810464ffffffffff166060840152600160c81b900463ffffffff1660808301525090565b60408051825162ffffff1681526020808401516001600160a01b039081169183019190915283830151169181019190915260608083015164ffffffffff169082015260809182015163ffffffff169181019190915260a001610196565b61018a6103753660046123a0565b610b41565b6001546001600160a01b03165b6040516001600160a01b039091168152602001610196565b600154600160a01b90046001600160601b0316610236565b6101b26103c53660046123cc565b610bf4565b610387610c75565b6101b26103e0366004612219565b610d8f565b7f4f61291a8ac3d020d0a7d919a76b8592aa88385744dee3f8b4f3873b969ed90154610215565b6101b261041a366004612403565b610ef2565b61042761104c565b6040516001600160401b039091168152602001610196565b606e5b60405160ff9091168152602001610196565b6101b2610462366004612494565b61106d565b6101bc6104753660046124c9565b6111da565b61038761122b565b6103876112c7565b610442611320565b6101b26104a0366004612403565b6113a3565b6000806104b2606e6114ac565b81516040805180820182526001600160601b03831681526020810188905290516317b0844560e11b8152939550919350916001600160a01b03841690632f61088a906105049089908590600401612512565b600060405180830381600087803b15801561051e57600080fd5b505af1158015610532573d6000803e3d6000fd5b50505050505050505050565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90632efe011390606401602060405180830381865af415801561059f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105c39190612537565b905090565b6105d061205d565b606060007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30090506040518060e0016040528061061c6001546001600160601b03600160a01b9091041690565b6001600160601b0390811682528354908116602083015260ff600160601b820481166040840152600160681b909104161515606082015230608082015260a001610664610c75565b6001600160a01b0316815260200182600101805461068190612554565b80601f01602080910402602001604051908101604052809291908181526020018280546106ad90612554565b80156106fa5780601f106106cf576101008083540402835291602001916106fa565b820191906000526020600020905b8154815290600101906020018083116106dd57829003601f168201915b50505050508152506040518060200160405280600081525092509250509091565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af415801561077d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107a1919061259e565b156107e8576001546040516316322c0f60e31b81526001600160a01b0382166004820152600160a01b9091046001600160601b031660248201526044015b60405180910390fd5b6001546001600160a01b03166108115760405163cf29926160e01b815260040160405180910390fd5b60015460405163c3c5a54760e01b81523060048201819052916001600160a01b03169063c3c5a54790602401602060405180830381865afa15801561085a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061087e919061259e565b6108a6576040516372657a5160e01b81526001600160a01b03821660048201526024016107df565b600154604051636939560f60e11b81526001600160a01b0383811660048301529091169063d272ac1e90602401602060405180830381865afa1580156108f0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061091491906125d0565b600160146101000a8154816001600160601b0302191690836001600160601b0316021790555050565b6000338261094961205d565b606061095361122b565b604051635d96628960e01b81526001600160a01b03858116600483015286811660248301529190911690635d966289906044016000604051808303816000875af11580156109a5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526109cd91908101906126f3565b909250905060006109dd8361161c565b905060006109e96112c7565b6001600160a01b031663103bd5da87610a006116be565b6040516001600160e01b031960e085901b1681526001600160a01b0392831660048201526001600160401b0390911660248201529085166044820152606401602060405180830381865afa158015610a5c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a80919061259e565b905080610ac357610a8f6116be565b6040516351302f8160e01b81526001600160401b0390911660048201526001600160a01b03871660248201526044016107df565b835196506000610ad284611736565b6040516348ffb75560e11b81529091506001600160a01b038416906391ff6eaa90610b03908b908590600401612872565b600060405180830381600087803b158015610b1d57600080fd5b505af1158015610b31573d6000803e3d6000fd5b5050505050505050505050919050565b600080600080516020612cef83398151915262ffffff84166000908152602091909152604090819020600101549051631bbffab160e21b8152600160c81b90910463ffffffff16600482015273__$5f476116ae21c5294e0c0761c07efa7e1c$__90636effeac490602401602060405180830381865af4158015610bc9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bed9190612890565b1192915050565b6000610c00606e6114ac565b604051633e77a42160e11b81526001600160c01b03198616600482015260ff851660248201529092506001600160a01b0383169150637cef484290604401600060405180830381600087803b158015610c5857600080fd5b505af1158015610c6c573d6000803e3d6000fd5b50505050505050565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015260009073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610cda573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cfe919061259e565b15610d7f57600154604051631c5da14d60e11b8152600160a01b82046001600160601b031660048201526001600160a01b03909116906338bb429a906024015b602060405180830381865afa158015610d5b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105c391906128a9565b506002546001600160a01b031690565b6000610d9b606e6114ac565b9150506000816001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa158015610dde573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e0291906128a9565b60405163887b1fa960e01b81526001600160c01b0319861660048201529091506000906001600160a01b0383169063887b1fa990602401600060405180830381865afa158015610e56573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610e7e91908101906128c6565b602081018590526040516314eddc0360e31b81529091506001600160a01b0384169063a76ee01890610eb9908890859060ff90600401612943565b600060405180830381600087803b158015610ed357600080fd5b505af1158015610ee7573d6000803e3d6000fd5b505050505050505050565b73__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__63a123b37c610f1461053e565b6040516001600160e01b031960e084901b16815262ffffff9091166004820152602401602060405180830381865af4158015610f54573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f789190612990565b600080516020612ccf8339815191528054600160401b900460ff1680610fab575080546001600160401b03808416911610155b15610fc95760405163f92ee8a960e01b815260040160405180910390fd5b805468ffffffffffffffffff19166001600160401b03831617600160401b178155610ff48585611805565b610ffd83611aa4565b805460ff60401b191681556040516001600160401b03831681527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2906020015b60405180910390a15050505050565b60006105c3600080516020612ccf833981519152546001600160401b031690565b60008061107a606e6114ac565b915091506000816001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa1580156110be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110e291906128a9565b835160405163242bdc1960e21b81526001600160601b0382166004820152919250906000906001600160a01b038416906390af70649060240161024060405180830381865afa158015611139573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061115d91906129dd565b60a0810188905260c081018790526040516354e750a160e11b81529091506001600160a01b0385169063a9cea1429061119f908590859060ff90600401612ad4565b600060405180830381600087803b1580156111b957600080fd5b505af11580156111cd573d6000803e3d6000fd5b5050505050505050505050565b6000600080516020612cef83398151915260010182815481106111ff576111ff612b04565b90600052602060002090600a91828204019190066003029054906101000a900462ffffff169050919050565b6000806112406001546001600160a01b031690565b6001600160a01b031663d39e6043603c611258611320565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa15801561129d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112c191906128a9565b92915050565b60006112db6001546001600160a01b031690565b6001600160a01b031663d39e604360466112f3611320565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401610d3e565b600061132a61053e565b60405163c9e66e2960e01b815262ffffff909116600482015273__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__9063c9e66e2990602401602060405180830381865af415801561137f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105c39190612b1a565b600080516020612ccf8339815191528054600160401b810460ff1615906001600160401b03166000811580156113d65750825b90506000826001600160401b031660011480156113f25750303b155b905081158015611400575080155b1561141e5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561144857845460ff60401b1916600160401b1785555b6114528888611805565b61145c8787611aac565b83156114a257845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b5050505050505050565b6114b461205d565b6000806114c96001546001600160a01b031690565b6040516308b09a5f60e41b81523360048201529091506001600160a01b03821690638b09a5f090602401600060405180830381865afa158015611510573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526115389190810190612b37565b925061154e83604001518560ff90811691161490565b6115905760405162461bcd60e51b815260206004820152601360248201527213d0929150d517d516541157d2539590531251606a1b60448201526064016107df565b60208301516040516305247a1760e51b81526001600160601b0390911660048201526000906001600160a01b0383169063a48f42e090602401600060405180830381865afa1580156115e6573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261160e9190810190612b37565b608001519395939450505050565b6000806116316001546001600160a01b031690565b60208401516040516305247a1760e51b81526001600160601b0390911660048201529091506000906001600160a01b0383169063a48f42e090602401600060405180830381865afa15801561168a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526116b29190810190612b37565b60800151949350505050565b6040516368aebf7b60e01b8152610190600482015260009073__$cd131c2b3ba46b9dbe046aaf4458b9777d$__906368aebf7b90602401602060405180830381865af4158015611712573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105c39190612990565b6117f1604080516101808101825260008082526020808301829052828401829052606083018290528351808501855282815280820183905260808401528351808501855282815280820183905260a08401528351808501855282815280820183905260c08401528351808501855282815280820183905260e084015283518085018552828152808201839052610100840152835180850190945281845283015290610120820190815260006020820181905260409091015290565b818060200190518101906112c191906129dd565b61180d611c7b565b600080516020612cef833981519152600061183d600080516020612ccf833981519152546001600160401b031690565b9050600061184961053e565b9050816001600160401b03166001036118765760028301805462ffffff191662ffffff83161790556118c4565b600283015462ffffff908116908216116118c45760405162461bcd60e51b815260206004820152600f60248201526e24a72b20a624a2102b22a929a4a7a760891b60448201526064016107df565b6001808401805491820181556000908152602090819020600a808404909101805462ffffff808716600394909606939093026101000a858102930219169190911790556040805160a0810182529283526001600160a01b038089168484015287168382015280516356db0c1960e11b81529051606084019273__$d53880c81dc91c20799140d711e5ab8718$__9263adb6183292600480830193928290030181865af4158015611978573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061199c9190612b6b565b64ffffffffff1681526020014363ffffffff90811690915262ffffff8084166000908152602087815260409182902085518154928701516001600160a01b039081166301000000026001600160b81b0319909416919095161791909117815584820151600190910180546060870151608090970151909516600160c81b0263ffffffff60c81b1964ffffffffff909716600160a01b026001600160c81b031990961692909416919091179390931793909316179055517fad0a0fc10465a8dd9da3ad5f43e1a7fff4b4578551c76f0ae8deb844f0d0bf689061103d9083908890889062ffffff9390931683526001600160a01b03918216602084015216604082015260600190565b610158611c7b565b600080516020612ccf8339815191528054600160401b810460ff1615906001600160401b0316600081158015611adf5750825b90506000826001600160401b03166001148015611afb5750303b155b905081158015611b09575080155b15611b275760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315611b5157845460ff60401b1916600160401b1785555b60008087806020019051810190611b689190612b92565b9092509050611b77828a611cb4565b6001546001600160a01b031663d39e6043608c611b92611320565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa158015611bd7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bfb91906128a9565b600380546001600160a01b0319166001600160a01b0392909216919091179055611c2b6308bcea6160e01b611d1f565b50508315610c6c57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a150505050505050565b600080516020612ccf83398151915254600160401b900460ff16611cb257604051631afcd79f60e31b815260040160405180910390fd5b565b6000606e611cc0611320565b6040805160ff9384166020820152929091169082015260600160405160208183030381529060405290506000611cf584611d44565b90506000611d088583603c848888611daf565b611d18637b6a51fd60e01b611d1f565b5050505050565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b604051636939560f60e11b81526001600160a01b0382166004820181905260009163d272ac1e90602401602060405180830381865afa158015611d8b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112c191906125d0565b611df06301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b611dfa8287611e7b565b60007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0388166cffffffffffffffffffffffffff1990911617600160601b60ff8816021760ff60681b1916600160681b86151502178155905060018101611e6a8382612c0f565b50610c6c6303fb044760e21b611d1f565b6001600160a01b038216611ed15760405162461bcd60e51b815260206004820152601e60248201527f4e66744f776e61626c653a20696e697469616c206f776e65722069732030000060448201526064016107df565b600280546001600160a01b0319166001600160a01b038416179055611ef581611ef9565b5050565b6001546001600160a01b031615611f325760015460405163fcdbf2d960e01b81526001600160a01b0390911660048201526024016107df565b6001600160a01b038116611f595760405163f5c4d07d60e01b815260040160405180910390fd5b806001600160a01b03163b600003611f8f5760405163fdeac91f60e01b81526001600160a01b03821660048201526024016107df565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b815263cc7f293160e01b60048201526301ffc9a790602401602060405180830381865afa925050508015612009575060408051601f3d908101601f191682019092526120069181019061259e565b60015b6120315760405163fdeac91f60e01b81526001600160a01b03821660048201526024016107df565b80611ef55760405163fdeac91f60e01b81526001600160a01b03831660048201526024016107df565b50565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c081019190915290565b6000602082840312156120ad57600080fd5b81356001600160e01b0319811681146120c557600080fd5b9392505050565b80356001600160c01b0319811681146120e457600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b0381118282101715612121576121216120e9565b60405290565b60405160e081016001600160401b0381118282101715612121576121216120e9565b60405161018081016001600160401b0381118282101715612121576121216120e9565b604051601f8201601f191681016001600160401b0381118282101715612194576121946120e9565b604052919050565b60006001600160401b038211156121b5576121b56120e9565b50601f01601f191660200190565b600082601f8301126121d457600080fd5b81356121e76121e28261219c565b61216c565b8181528460208386010111156121fc57600080fd5b816020850160208301376000918101602001919091529392505050565b6000806040838503121561222c57600080fd5b612235836120cc565b915060208301356001600160401b0381111561225057600080fd5b61225c858286016121c3565b9150509250929050565b60005b83811015612281578181015183820152602001612269565b50506000910152565b600081518084526122a2816020860160208601612266565b601f01601f19169290920160200192915050565b6040815260006001600160601b038085511660408401528060208601511660608401525060ff604085015116608083015260608401516122fa60a084018215159052565b5060808401516001600160a01b03811660c08401525060a08401516001600160a01b03811660e08401525060c084015160e061010084015261234061012084018261228a565b90508281036020840152612354818561228a565b95945050505050565b6001600160a01b038116811461205a57600080fd5b60006020828403121561238457600080fd5b81356120c58161235d565b62ffffff8116811461205a57600080fd5b6000602082840312156123b257600080fd5b81356120c58161238f565b60ff8116811461205a57600080fd5b600080604083850312156123df57600080fd5b6123e8836120cc565b915060208301356123f8816123bd565b809150509250929050565b60008060006060848603121561241857600080fd5b83356124238161235d565b925060208401356124338161235d565b915060408401356001600160401b0381111561244e57600080fd5b61245a868287016121c3565b9150509250925092565b60006040828403121561247657600080fd5b61247e6120ff565b9050813581526020820135602082015292915050565b600080608083850312156124a757600080fd5b6124b18484612464565b91506124c08460408501612464565b90509250929050565b6000602082840312156124db57600080fd5b5035919050565b6001600160601b038151168252600060208201516040602085015261250a604085018261228a565b949350505050565b6001600160401b0360c01b8316815260406020820152600061250a60408301846124e2565b60006020828403121561254957600080fd5b81516120c58161238f565b600181811c9082168061256857607f821691505b60208210810361258857634e487b7160e01b600052602260045260246000fd5b50919050565b805180151581146120e457600080fd5b6000602082840312156125b057600080fd5b6120c58261258e565b80516001600160601b03811681146120e457600080fd5b6000602082840312156125e257600080fd5b6120c5826125b9565b80516120e4816123bd565b80516120e48161235d565b600082601f83011261261257600080fd5b81516126206121e28261219c565b81815284602083860101111561263557600080fd5b61250a826020830160208701612266565b600060e0828403121561265857600080fd5b612660612127565b905061266b826125b9565b8152612679602083016125b9565b602082015261268a604083016125eb565b604082015261269b6060830161258e565b60608201526126ac608083016125f6565b60808201526126bd60a083016125f6565b60a082015260c08201516001600160401b038111156126db57600080fd5b6126e784828501612601565b60c08301525092915050565b6000806040838503121561270657600080fd5b82516001600160401b038082111561271d57600080fd5b61272986838701612646565b9350602085015191508082111561273f57600080fd5b5061225c85828601612601565b80516001600160a01b03168252602081015161277360208401826001600160a01b03169052565b50604081015161278e60408401826001600160601b03169052565b5060608101516127a960608401826001600160601b03169052565b5060808101516127c6608084018280518252602090810151910152565b5060a0810151805160c0840152602081015160e08401525060c08101516101006127fc8185018380518252602090810151910152565b60e0830151915061014061281c8186018480518252602090810151910152565b9083015180516101808601526020908101516101a086015261012084015180516101c087015201516101e085015282015115156102008401525061016001516001600160a01b031661022090910152565b505050565b6001600160601b038316815261026081016120c5602083018461274c565b6000602082840312156128a257600080fd5b5051919050565b6000602082840312156128bb57600080fd5b81516120c58161235d565b6000602082840312156128d857600080fd5b81516001600160401b03808211156128ef57600080fd5b908301906040828603121561290357600080fd5b61290b6120ff565b612914836125b9565b815260208301518281111561292857600080fd5b61293487828601612601565b60208301525095945050505050565b6001600160401b0360c01b8416815260606020820152600061296860608301856124e2565b905060ff83166040830152949350505050565b6001600160401b038116811461205a57600080fd5b6000602082840312156129a257600080fd5b81516120c58161297b565b6000604082840312156129bf57600080fd5b6129c76120ff565b9050815181526020820151602082015292915050565b600061024082840312156129f057600080fd5b6129f8612149565b612a01836125f6565b8152612a0f602084016125f6565b6020820152612a20604084016125b9565b6040820152612a31606084016125b9565b6060820152612a4384608085016129ad565b6080820152612a558460c085016129ad565b60a0820152610100612a69858286016129ad565b60c0830152610140612a7d868287016129ad565b60e0840152612a908661018087016129ad565b82840152612aa2866101c087016129ad565b610120840152612ab5610200860161258e565b9083015250612ac761022084016125f6565b6101608201529392505050565b6001600160601b03841681526102808101612af2602083018561274c565b60ff8316610260830152949350505050565b634e487b7160e01b600052603260045260246000fd5b600060208284031215612b2c57600080fd5b81516120c5816123bd565b600060208284031215612b4957600080fd5b81516001600160401b03811115612b5f57600080fd5b61250a84828501612646565b600060208284031215612b7d57600080fd5b815164ffffffffff811681146120c557600080fd5b60008060408385031215612ba557600080fd5b8251612bb08161235d565b60208401519092506123f88161235d565b601f82111561286d57600081815260208120601f850160051c81016020861015612be85750805b601f850160051c820191505b81811015612c0757828155600101612bf4565b505050505050565b81516001600160401b03811115612c2857612c286120e9565b612c3c81612c368454612554565b84612bc1565b602080601f831160018114612c715760008415612c595750858301515b600019600386901b1c1916600185901b178555612c07565b600085815260208120601f198616915b82811015612ca057888601518255948401946001909101908401612c81565b5085821015612cbe5787850151600019600388901b60f8161c191681555b5050505050600190811b0190555056fef0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a004f61291a8ac3d020d0a7d919a76b8592aa88385744dee3f8b4f3873b969ed900a26469706673582212207c9420d9b1d23bd658f77fb7b21b0be788b6bfdc4f154319e356859f570c133d64736f6c63430008140033",
646
+ "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101585760003560e01c8063893d20e8116100c3578063b6b412ba1161007c578063b6b412ba14610454578063b88da75914610467578063caf4e3d41461047a578063cc9fc59a14610482578063cde749f41461048a578063cf7a1d771461049257600080fd5b8063893d20e8146103ca5780638f997f6d146103d2578063946dfcfe146103e5578063a745e3df1461040c578063b3c650151461041f578063b68d18091461043f57600080fd5b80634420e486116101155780634420e486146102235780634d459c901461024e5780634f421333146103675780635ab1bd531461037a578063644c45e01461039f5780637cef4842146103b757600080fd5b806301ffc9a71461015d578063095e2b721461019f5780630d8e6e2c146101b45780630fec111c146101d0578063138461e0146101e65780631eff4b22146101ee575b600080fd5b61018a61016b36600461209b565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b6101b26101ad366004612219565b6104a5565b005b6101bc61053e565b60405162ffffff9091168152602001610196565b6101d86105c8565b6040516101969291906122b6565b6101b261071b565b6102157f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b604051908152602001610196565b610236610231366004612372565b61093d565b6040516001600160601b039091168152602001610196565b61030a61025c3660046123a0565b6040805160a081018252600080825260208201819052918101829052606081018290526080810191909152600080516020612cef83398151915262ffffff92831660009081526020918252604090819020815160a0810183528154958616815263010000009095046001600160a01b03908116938601939093526001015491821690840152600160a01b810464ffffffffff166060840152600160c81b900463ffffffff1660808301525090565b60408051825162ffffff1681526020808401516001600160a01b039081169183019190915283830151169181019190915260608083015164ffffffffff169082015260809182015163ffffffff169181019190915260a001610196565b61018a6103753660046123a0565b610b41565b6001546001600160a01b03165b6040516001600160a01b039091168152602001610196565b600154600160a01b90046001600160601b0316610236565b6101b26103c53660046123cc565b610bf4565b610387610c75565b6101b26103e0366004612219565b610d8f565b7f4f61291a8ac3d020d0a7d919a76b8592aa88385744dee3f8b4f3873b969ed90154610215565b6101b261041a366004612403565b610ef2565b61042761104c565b6040516001600160401b039091168152602001610196565b606e5b60405160ff9091168152602001610196565b6101b2610462366004612494565b61106d565b6101bc6104753660046124c9565b6111da565b61038761122b565b6103876112c7565b610442611320565b6101b26104a0366004612403565b6113a3565b6000806104b2606e6114ac565b81516040805180820182526001600160601b03831681526020810188905290516317b0844560e11b8152939550919350916001600160a01b03841690632f61088a906105049089908590600401612512565b600060405180830381600087803b15801561051e57600080fd5b505af1158015610532573d6000803e3d6000fd5b50505050505050505050565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90632efe011390606401602060405180830381865af415801561059f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105c39190612537565b905090565b6105d061205d565b606060007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30090506040518060e0016040528061061c6001546001600160601b03600160a01b9091041690565b6001600160601b0390811682528354908116602083015260ff600160601b820481166040840152600160681b909104161515606082015230608082015260a001610664610c75565b6001600160a01b0316815260200182600101805461068190612554565b80601f01602080910402602001604051908101604052809291908181526020018280546106ad90612554565b80156106fa5780601f106106cf576101008083540402835291602001916106fa565b820191906000526020600020905b8154815290600101906020018083116106dd57829003601f168201915b50505050508152506040518060200160405280600081525092509250509091565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af415801561077d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107a1919061259e565b156107e8576001546040516316322c0f60e31b81526001600160a01b0382166004820152600160a01b9091046001600160601b031660248201526044015b60405180910390fd5b6001546001600160a01b03166108115760405163cf29926160e01b815260040160405180910390fd5b60015460405163c3c5a54760e01b81523060048201819052916001600160a01b03169063c3c5a54790602401602060405180830381865afa15801561085a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061087e919061259e565b6108a6576040516372657a5160e01b81526001600160a01b03821660048201526024016107df565b600154604051636939560f60e11b81526001600160a01b0383811660048301529091169063d272ac1e90602401602060405180830381865afa1580156108f0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061091491906125d0565b600160146101000a8154816001600160601b0302191690836001600160601b0316021790555050565b6000338261094961205d565b606061095361122b565b604051635d96628960e01b81526001600160a01b03858116600483015286811660248301529190911690635d966289906044016000604051808303816000875af11580156109a5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526109cd91908101906126f3565b909250905060006109dd8361161c565b905060006109e96112c7565b6001600160a01b031663103bd5da87610a006116be565b6040516001600160e01b031960e085901b1681526001600160a01b0392831660048201526001600160401b0390911660248201529085166044820152606401602060405180830381865afa158015610a5c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a80919061259e565b905080610ac357610a8f6116be565b6040516351302f8160e01b81526001600160401b0390911660048201526001600160a01b03871660248201526044016107df565b835196506000610ad284611736565b6040516348ffb75560e11b81529091506001600160a01b038416906391ff6eaa90610b03908b908590600401612872565b600060405180830381600087803b158015610b1d57600080fd5b505af1158015610b31573d6000803e3d6000fd5b5050505050505050505050919050565b600080600080516020612cef83398151915262ffffff84166000908152602091909152604090819020600101549051631bbffab160e21b8152600160c81b90910463ffffffff16600482015273__$5f476116ae21c5294e0c0761c07efa7e1c$__90636effeac490602401602060405180830381865af4158015610bc9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bed9190612890565b1192915050565b6000610c00606e6114ac565b604051633e77a42160e11b81526001600160c01b03198616600482015260ff851660248201529092506001600160a01b0383169150637cef484290604401600060405180830381600087803b158015610c5857600080fd5b505af1158015610c6c573d6000803e3d6000fd5b50505050505050565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015260009073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610cda573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cfe919061259e565b15610d7f57600154604051631c5da14d60e11b8152600160a01b82046001600160601b031660048201526001600160a01b03909116906338bb429a906024015b602060405180830381865afa158015610d5b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105c391906128a9565b506002546001600160a01b031690565b6000610d9b606e6114ac565b9150506000816001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa158015610dde573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e0291906128a9565b60405163887b1fa960e01b81526001600160c01b0319861660048201529091506000906001600160a01b0383169063887b1fa990602401600060405180830381865afa158015610e56573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610e7e91908101906128c6565b602081018590526040516314eddc0360e31b81529091506001600160a01b0384169063a76ee01890610eb9908890859060ff90600401612943565b600060405180830381600087803b158015610ed357600080fd5b505af1158015610ee7573d6000803e3d6000fd5b505050505050505050565b73__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__63a123b37c610f1461053e565b6040516001600160e01b031960e084901b16815262ffffff9091166004820152602401602060405180830381865af4158015610f54573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f789190612990565b600080516020612ccf8339815191528054600160401b900460ff1680610fab575080546001600160401b03808416911610155b15610fc95760405163f92ee8a960e01b815260040160405180910390fd5b805468ffffffffffffffffff19166001600160401b03831617600160401b178155610ff48585611805565b610ffd83611aa4565b805460ff60401b191681556040516001600160401b03831681527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2906020015b60405180910390a15050505050565b60006105c3600080516020612ccf833981519152546001600160401b031690565b60008061107a606e6114ac565b915091506000816001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa1580156110be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110e291906128a9565b835160405163242bdc1960e21b81526001600160601b0382166004820152919250906000906001600160a01b038416906390af70649060240161024060405180830381865afa158015611139573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061115d91906129dd565b60a0810188905260c081018790526040516354e750a160e11b81529091506001600160a01b0385169063a9cea1429061119f908590859060ff90600401612ad4565b600060405180830381600087803b1580156111b957600080fd5b505af11580156111cd573d6000803e3d6000fd5b5050505050505050505050565b6000600080516020612cef83398151915260010182815481106111ff576111ff612b04565b90600052602060002090600a91828204019190066003029054906101000a900462ffffff169050919050565b6000806112406001546001600160a01b031690565b6001600160a01b031663d39e6043603c611258611320565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa15801561129d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112c191906128a9565b92915050565b60006112db6001546001600160a01b031690565b6001600160a01b031663d39e604360466112f3611320565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401610d3e565b600061132a61053e565b60405163c9e66e2960e01b815262ffffff909116600482015273__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__9063c9e66e2990602401602060405180830381865af415801561137f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105c39190612b1a565b600080516020612ccf8339815191528054600160401b810460ff1615906001600160401b03166000811580156113d65750825b90506000826001600160401b031660011480156113f25750303b155b905081158015611400575080155b1561141e5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561144857845460ff60401b1916600160401b1785555b6114528888611805565b61145c8787611aac565b83156114a257845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b5050505050505050565b6114b461205d565b6000806114c96001546001600160a01b031690565b6040516308b09a5f60e41b81523360048201529091506001600160a01b03821690638b09a5f090602401600060405180830381865afa158015611510573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526115389190810190612b37565b925061154e83604001518560ff90811691161490565b6115905760405162461bcd60e51b815260206004820152601360248201527213d0929150d517d516541157d2539590531251606a1b60448201526064016107df565b60208301516040516305247a1760e51b81526001600160601b0390911660048201526000906001600160a01b0383169063a48f42e090602401600060405180830381865afa1580156115e6573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261160e9190810190612b37565b608001519395939450505050565b6000806116316001546001600160a01b031690565b60208401516040516305247a1760e51b81526001600160601b0390911660048201529091506000906001600160a01b0383169063a48f42e090602401600060405180830381865afa15801561168a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526116b29190810190612b37565b60800151949350505050565b6040516368aebf7b60e01b8152610190600482015260009073__$cd131c2b3ba46b9dbe046aaf4458b9777d$__906368aebf7b90602401602060405180830381865af4158015611712573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105c39190612990565b6117f1604080516101808101825260008082526020808301829052828401829052606083018290528351808501855282815280820183905260808401528351808501855282815280820183905260a08401528351808501855282815280820183905260c08401528351808501855282815280820183905260e084015283518085018552828152808201839052610100840152835180850190945281845283015290610120820190815260006020820181905260409091015290565b818060200190518101906112c191906129dd565b61180d611c7b565b600080516020612cef833981519152600061183d600080516020612ccf833981519152546001600160401b031690565b9050600061184961053e565b9050816001600160401b03166001036118765760028301805462ffffff191662ffffff83161790556118c4565b600283015462ffffff908116908216116118c45760405162461bcd60e51b815260206004820152600f60248201526e24a72b20a624a2102b22a929a4a7a760891b60448201526064016107df565b6001808401805491820181556000908152602090819020600a808404909101805462ffffff808716600394909606939093026101000a858102930219169190911790556040805160a0810182529283526001600160a01b038089168484015287168382015280516356db0c1960e11b81529051606084019273__$d53880c81dc91c20799140d711e5ab8718$__9263adb6183292600480830193928290030181865af4158015611978573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061199c9190612b6b565b64ffffffffff1681526020014363ffffffff90811690915262ffffff8084166000908152602087815260409182902085518154928701516001600160a01b039081166301000000026001600160b81b0319909416919095161791909117815584820151600190910180546060870151608090970151909516600160c81b0263ffffffff60c81b1964ffffffffff909716600160a01b026001600160c81b031990961692909416919091179390931793909316179055517fad0a0fc10465a8dd9da3ad5f43e1a7fff4b4578551c76f0ae8deb844f0d0bf689061103d9083908890889062ffffff9390931683526001600160a01b03918216602084015216604082015260600190565b610158611c7b565b600080516020612ccf8339815191528054600160401b810460ff1615906001600160401b0316600081158015611adf5750825b90506000826001600160401b03166001148015611afb5750303b155b905081158015611b09575080155b15611b275760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315611b5157845460ff60401b1916600160401b1785555b60008087806020019051810190611b689190612b92565b9092509050611b77828a611cb4565b6001546001600160a01b031663d39e6043608c611b92611320565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa158015611bd7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bfb91906128a9565b600380546001600160a01b0319166001600160a01b0392909216919091179055611c2b6308bcea6160e01b611d1f565b50508315610c6c57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a150505050505050565b600080516020612ccf83398151915254600160401b900460ff16611cb257604051631afcd79f60e31b815260040160405180910390fd5b565b6000606e611cc0611320565b6040805160ff9384166020820152929091169082015260600160405160208183030381529060405290506000611cf584611d44565b90506000611d088583603c848888611daf565b611d18637b6a51fd60e01b611d1f565b5050505050565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b604051636939560f60e11b81526001600160a01b0382166004820181905260009163d272ac1e90602401602060405180830381865afa158015611d8b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112c191906125d0565b611df06301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b611dfa8287611e7b565b60007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0388166cffffffffffffffffffffffffff1990911617600160601b60ff8816021760ff60681b1916600160681b86151502178155905060018101611e6a8382612c0f565b50610c6c6303fb044760e21b611d1f565b6001600160a01b038216611ed15760405162461bcd60e51b815260206004820152601e60248201527f4e66744f776e61626c653a20696e697469616c206f776e65722069732030000060448201526064016107df565b600280546001600160a01b0319166001600160a01b038416179055611ef581611ef9565b5050565b6001546001600160a01b031615611f325760015460405163fcdbf2d960e01b81526001600160a01b0390911660048201526024016107df565b6001600160a01b038116611f595760405163f5c4d07d60e01b815260040160405180910390fd5b806001600160a01b03163b600003611f8f5760405163fdeac91f60e01b81526001600160a01b03821660048201526024016107df565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b815263cc7f293160e01b60048201526301ffc9a790602401602060405180830381865afa925050508015612009575060408051601f3d908101601f191682019092526120069181019061259e565b60015b6120315760405163fdeac91f60e01b81526001600160a01b03821660048201526024016107df565b80611ef55760405163fdeac91f60e01b81526001600160a01b03831660048201526024016107df565b50565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c081019190915290565b6000602082840312156120ad57600080fd5b81356001600160e01b0319811681146120c557600080fd5b9392505050565b80356001600160c01b0319811681146120e457600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b0381118282101715612121576121216120e9565b60405290565b60405160e081016001600160401b0381118282101715612121576121216120e9565b60405161018081016001600160401b0381118282101715612121576121216120e9565b604051601f8201601f191681016001600160401b0381118282101715612194576121946120e9565b604052919050565b60006001600160401b038211156121b5576121b56120e9565b50601f01601f191660200190565b600082601f8301126121d457600080fd5b81356121e76121e28261219c565b61216c565b8181528460208386010111156121fc57600080fd5b816020850160208301376000918101602001919091529392505050565b6000806040838503121561222c57600080fd5b612235836120cc565b915060208301356001600160401b0381111561225057600080fd5b61225c858286016121c3565b9150509250929050565b60005b83811015612281578181015183820152602001612269565b50506000910152565b600081518084526122a2816020860160208601612266565b601f01601f19169290920160200192915050565b6040815260006001600160601b038085511660408401528060208601511660608401525060ff604085015116608083015260608401516122fa60a084018215159052565b5060808401516001600160a01b03811660c08401525060a08401516001600160a01b03811660e08401525060c084015160e061010084015261234061012084018261228a565b90508281036020840152612354818561228a565b95945050505050565b6001600160a01b038116811461205a57600080fd5b60006020828403121561238457600080fd5b81356120c58161235d565b62ffffff8116811461205a57600080fd5b6000602082840312156123b257600080fd5b81356120c58161238f565b60ff8116811461205a57600080fd5b600080604083850312156123df57600080fd5b6123e8836120cc565b915060208301356123f8816123bd565b809150509250929050565b60008060006060848603121561241857600080fd5b83356124238161235d565b925060208401356124338161235d565b915060408401356001600160401b0381111561244e57600080fd5b61245a868287016121c3565b9150509250925092565b60006040828403121561247657600080fd5b61247e6120ff565b9050813581526020820135602082015292915050565b600080608083850312156124a757600080fd5b6124b18484612464565b91506124c08460408501612464565b90509250929050565b6000602082840312156124db57600080fd5b5035919050565b6001600160601b038151168252600060208201516040602085015261250a604085018261228a565b949350505050565b6001600160401b0360c01b8316815260406020820152600061250a60408301846124e2565b60006020828403121561254957600080fd5b81516120c58161238f565b600181811c9082168061256857607f821691505b60208210810361258857634e487b7160e01b600052602260045260246000fd5b50919050565b805180151581146120e457600080fd5b6000602082840312156125b057600080fd5b6120c58261258e565b80516001600160601b03811681146120e457600080fd5b6000602082840312156125e257600080fd5b6120c5826125b9565b80516120e4816123bd565b80516120e48161235d565b600082601f83011261261257600080fd5b81516126206121e28261219c565b81815284602083860101111561263557600080fd5b61250a826020830160208701612266565b600060e0828403121561265857600080fd5b612660612127565b905061266b826125b9565b8152612679602083016125b9565b602082015261268a604083016125eb565b604082015261269b6060830161258e565b60608201526126ac608083016125f6565b60808201526126bd60a083016125f6565b60a082015260c08201516001600160401b038111156126db57600080fd5b6126e784828501612601565b60c08301525092915050565b6000806040838503121561270657600080fd5b82516001600160401b038082111561271d57600080fd5b61272986838701612646565b9350602085015191508082111561273f57600080fd5b5061225c85828601612601565b80516001600160a01b03168252602081015161277360208401826001600160a01b03169052565b50604081015161278e60408401826001600160601b03169052565b5060608101516127a960608401826001600160601b03169052565b5060808101516127c6608084018280518252602090810151910152565b5060a0810151805160c0840152602081015160e08401525060c08101516101006127fc8185018380518252602090810151910152565b60e0830151915061014061281c8186018480518252602090810151910152565b9083015180516101808601526020908101516101a086015261012084015180516101c087015201516101e085015282015115156102008401525061016001516001600160a01b031661022090910152565b505050565b6001600160601b038316815261026081016120c5602083018461274c565b6000602082840312156128a257600080fd5b5051919050565b6000602082840312156128bb57600080fd5b81516120c58161235d565b6000602082840312156128d857600080fd5b81516001600160401b03808211156128ef57600080fd5b908301906040828603121561290357600080fd5b61290b6120ff565b612914836125b9565b815260208301518281111561292857600080fd5b61293487828601612601565b60208301525095945050505050565b6001600160401b0360c01b8416815260606020820152600061296860608301856124e2565b905060ff83166040830152949350505050565b6001600160401b038116811461205a57600080fd5b6000602082840312156129a257600080fd5b81516120c58161297b565b6000604082840312156129bf57600080fd5b6129c76120ff565b9050815181526020820151602082015292915050565b600061024082840312156129f057600080fd5b6129f8612149565b612a01836125f6565b8152612a0f602084016125f6565b6020820152612a20604084016125b9565b6040820152612a31606084016125b9565b6060820152612a4384608085016129ad565b6080820152612a558460c085016129ad565b60a0820152610100612a69858286016129ad565b60c0830152610140612a7d868287016129ad565b60e0840152612a908661018087016129ad565b82840152612aa2866101c087016129ad565b610120840152612ab5610200860161258e565b9083015250612ac761022084016125f6565b6101608201529392505050565b6001600160601b03841681526102808101612af2602083018561274c565b60ff8316610260830152949350505050565b634e487b7160e01b600052603260045260246000fd5b600060208284031215612b2c57600080fd5b81516120c5816123bd565b600060208284031215612b4957600080fd5b81516001600160401b03811115612b5f57600080fd5b61250a84828501612646565b600060208284031215612b7d57600080fd5b815164ffffffffff811681146120c557600080fd5b60008060408385031215612ba557600080fd5b8251612bb08161235d565b60208401519092506123f88161235d565b601f82111561286d57600081815260208120601f850160051c81016020861015612be85750805b601f850160051c820191505b81811015612c0757828155600101612bf4565b505050505050565b81516001600160401b03811115612c2857612c286120e9565b612c3c81612c368454612554565b84612bc1565b602080601f831160018114612c715760008415612c595750858301515b600019600386901b1c1916600185901b178555612c07565b600085815260208120601f198616915b82811015612ca057888601518255948401946001909101908401612c81565b5085821015612cbe5787850151600019600388901b60f8161c191681555b5050505050600190811b0190555056fef0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a004f61291a8ac3d020d0a7d919a76b8592aa88385744dee3f8b4f3873b969ed900a26469706673582212207c9420d9b1d23bd658f77fb7b21b0be788b6bfdc4f154319e356859f570c133d64736f6c63430008140033",
517
647
  "linkReferences": {
518
648
  "contracts/types/Blocknumber.sol": {
519
649
  "BlocknumberLib": [
520
650
  {
521
651
  "length": 20,
522
- "start": 1766
523
- },
524
- {
525
- "length": 20,
526
- "start": 3525
527
- }
528
- ]
529
- },
530
- "contracts/types/Fee.sol": {
531
- "FeeLib": [
532
- {
533
- "length": 20,
534
- "start": 9896
652
+ "start": 3273
535
653
  }
536
654
  ]
537
655
  },
@@ -539,43 +657,27 @@
539
657
  "NftIdLib": [
540
658
  {
541
659
  "length": 20,
542
- "start": 8063
543
- }
544
- ]
545
- },
546
- "contracts/types/Timestamp.sol": {
547
- "TimestampLib": [
548
- {
549
- "length": 20,
550
- "start": 4187
660
+ "start": 2173
551
661
  },
552
662
  {
553
663
  "length": 20,
554
- "start": 4407
555
- },
556
- {
557
- "length": 20,
558
- "start": 5450
559
- },
560
- {
561
- "length": 20,
562
- "start": 7183
563
- },
564
- {
565
- "length": 20,
566
- "start": 7403
664
+ "start": 3546
567
665
  }
568
666
  ]
569
667
  },
570
- "contracts/types/UFixed.sol": {
571
- "UFixedMathLib": [
668
+ "contracts/types/RoleId.sol": {
669
+ "RoleIdLib": [
572
670
  {
573
671
  "length": 20,
574
- "start": 4648
575
- },
672
+ "start": 6162
673
+ }
674
+ ]
675
+ },
676
+ "contracts/types/Timestamp.sol": {
677
+ "TimestampLib": [
576
678
  {
577
679
  "length": 20,
578
- "start": 4781
680
+ "start": 6776
579
681
  }
580
682
  ]
581
683
  },
@@ -583,15 +685,15 @@
583
685
  "VersionLib": [
584
686
  {
585
687
  "length": 20,
586
- "start": 1602
688
+ "start": 1695
587
689
  },
588
690
  {
589
691
  "length": 20,
590
- "start": 3665
692
+ "start": 4142
591
693
  },
592
694
  {
593
695
  "length": 20,
594
- "start": 7748
696
+ "start": 5247
595
697
  }
596
698
  ]
597
699
  }
@@ -601,23 +703,27 @@
601
703
  "BlocknumberLib": [
602
704
  {
603
705
  "length": 20,
604
- "start": 1277
706
+ "start": 2959
605
707
  }
606
708
  ]
607
709
  },
608
- "contracts/types/Fee.sol": {
609
- "FeeLib": [
710
+ "contracts/types/NftId.sol": {
711
+ "NftIdLib": [
610
712
  {
611
713
  "length": 20,
612
- "start": 7648
714
+ "start": 1859
715
+ },
716
+ {
717
+ "length": 20,
718
+ "start": 3232
613
719
  }
614
720
  ]
615
721
  },
616
- "contracts/types/NftId.sol": {
617
- "NftIdLib": [
722
+ "contracts/types/RoleId.sol": {
723
+ "RoleIdLib": [
618
724
  {
619
725
  "length": 20,
620
- "start": 5815
726
+ "start": 5848
621
727
  }
622
728
  ]
623
729
  },
@@ -625,47 +731,23 @@
625
731
  "TimestampLib": [
626
732
  {
627
733
  "length": 20,
628
- "start": 1939
629
- },
630
- {
631
- "length": 20,
632
- "start": 2159
633
- },
634
- {
635
- "length": 20,
636
- "start": 3202
637
- },
638
- {
639
- "length": 20,
640
- "start": 4935
641
- },
642
- {
643
- "length": 20,
644
- "start": 5155
734
+ "start": 6462
645
735
  }
646
736
  ]
647
737
  },
648
- "contracts/types/UFixed.sol": {
649
- "UFixedMathLib": [
738
+ "contracts/types/Version.sol": {
739
+ "VersionLib": [
650
740
  {
651
741
  "length": 20,
652
- "start": 2400
742
+ "start": 1381
653
743
  },
654
744
  {
655
745
  "length": 20,
656
- "start": 2533
657
- }
658
- ]
659
- },
660
- "contracts/types/Version.sol": {
661
- "VersionLib": [
662
- {
663
- "length": 20,
664
- "start": 1417
746
+ "start": 3828
665
747
  },
666
748
  {
667
749
  "length": 20,
668
- "start": 5500
750
+ "start": 4933
669
751
  }
670
752
  ]
671
753
  }