@etherisc/gif-next 0.0.2-ce8407f-016 → 0.0.2-ce87da3-250

Sign up to get free protection for your applications and to get access to all the features.
Files changed (353) hide show
  1. package/README.md +243 -2
  2. package/artifacts/contracts/components/Component.sol/Component.dbg.json +4 -0
  3. package/artifacts/contracts/components/Component.sol/Component.json +853 -0
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +1346 -0
  6. package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
  7. package/artifacts/contracts/{instance/base/ServiceBase.sol/ServiceBase.json → components/IComponent.sol/IComponent.json} +195 -150
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +900 -0
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +4 -0
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +887 -0
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +4 -0
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +806 -0
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +4 -0
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +1322 -0
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +4 -0
  17. package/artifacts/contracts/components/Product.sol/Product.json +1246 -0
  18. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
  19. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +764 -0
  20. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
  21. package/artifacts/contracts/instance/{AccessManagedSimple.sol/AccessManagedSimple.json → Cloneable.sol/Cloneable.json} +86 -2
  22. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  23. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +2475 -1
  24. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
  25. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +509 -0
  26. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  27. package/artifacts/contracts/instance/Instance.sol/Instance.json +1051 -1183
  28. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
  29. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +211 -144
  30. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
  31. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +562 -54
  32. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  33. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +958 -29
  34. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
  35. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +693 -0
  36. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
  37. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +261 -0
  38. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
  39. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.json +552 -0
  40. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  41. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +0 -77
  42. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  43. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  44. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +10 -244
  45. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  46. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +2 -2
  47. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
  48. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +59 -16
  49. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
  50. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
  51. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  52. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  53. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +1 -1
  54. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +1 -1
  55. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.dbg.json +4 -0
  56. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +869 -0
  57. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
  58. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +657 -0
  59. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
  60. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1096 -0
  61. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  62. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +661 -0
  63. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +4 -0
  64. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +754 -0
  65. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
  66. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +637 -0
  67. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
  68. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +1254 -0
  69. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  70. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +753 -0
  71. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
  72. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +473 -0
  73. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
  74. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +633 -0
  75. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +4 -0
  76. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.json +409 -0
  77. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
  78. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +639 -0
  79. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  80. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +583 -0
  81. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +4 -0
  82. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +347 -0
  83. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +4 -0
  84. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +384 -0
  85. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
  86. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1120 -0
  87. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  88. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +717 -0
  89. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
  90. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +727 -0
  91. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  92. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +649 -0
  93. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
  94. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +777 -0
  95. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  96. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +649 -0
  97. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  98. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +47 -2
  99. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  100. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +236 -63
  101. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  102. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +323 -178
  103. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  104. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  105. package/artifacts/contracts/registry/Registry.sol/Registry.json +210 -212
  106. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
  107. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +285 -0
  108. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  109. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +432 -268
  110. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  111. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +323 -129
  112. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
  113. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +547 -0
  114. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
  115. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +498 -0
  116. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +1 -1
  117. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  118. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +41 -3
  119. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  120. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +40 -29
  121. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
  122. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +129 -0
  123. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  124. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +21 -34
  125. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
  126. package/artifacts/contracts/{experiment/inheritance/IB.sol/IB.json → shared/IRegistryLinked.sol/IRegistryLinked.json} +18 -20
  127. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
  128. package/artifacts/contracts/{components/IBaseComponent.sol/IBaseComponent.json → shared/IService.sol/IService.json} +67 -39
  129. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  130. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +2 -152
  131. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  132. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +120 -27
  133. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +4 -0
  134. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +248 -0
  135. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  136. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +294 -61
  137. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  138. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +129 -51
  139. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +4 -0
  140. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +84 -0
  141. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
  142. package/artifacts/contracts/{instance/base/IService.sol/IService.json → shared/Service.sol/Service.json} +155 -151
  143. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  144. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +2 -2
  145. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  146. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +2 -2
  147. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  148. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +2 -152
  149. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  150. package/artifacts/contracts/test/TestFee.sol/TestFee.json +4 -4
  151. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  152. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +129 -51
  153. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  154. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +111 -5
  155. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  156. package/artifacts/contracts/test/TestService.sol/TestService.json +147 -226
  157. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  158. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +91 -53
  159. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  160. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
  161. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  162. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +8 -190
  163. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  164. package/artifacts/contracts/test/Usdc.sol/USDC.json +91 -53
  165. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  166. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  167. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  168. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.dbg.json +4 -0
  169. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.json +100 -0
  170. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
  171. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +2 -2
  172. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  173. package/artifacts/contracts/types/Fee.sol/FeeLib.json +4 -4
  174. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  175. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +2 -2
  176. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  177. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +2 -2
  178. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  179. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +26 -3
  180. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +1 -1
  181. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  182. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  183. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.dbg.json +4 -0
  184. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.json +100 -0
  185. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +1 -1
  186. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +2 -2
  187. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
  188. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +2 -2
  189. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  190. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
  191. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  192. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  193. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  194. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +4 -0
  195. package/artifacts/contracts/{experiment/types/TypeB.sol/TypeBLib.json → types/UFixed.sol/MathLib.json} +4 -4
  196. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +4 -0
  197. package/artifacts/contracts/types/UFixed.sol/{UFixedMathLib.json → UFixedLib.json} +3 -3
  198. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  199. package/artifacts/contracts/types/Version.sol/VersionLib.json +2 -2
  200. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  201. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +22 -3
  202. package/contracts/components/Component.sol +241 -0
  203. package/contracts/components/Distribution.sol +287 -0
  204. package/contracts/components/IComponent.sol +54 -0
  205. package/contracts/components/IDistributionComponent.sol +92 -0
  206. package/contracts/components/IPoolComponent.sol +87 -0
  207. package/contracts/components/IProductComponent.sol +39 -0
  208. package/contracts/components/Pool.sol +254 -0
  209. package/contracts/components/Product.sol +285 -0
  210. package/contracts/instance/BundleManager.sol +125 -0
  211. package/contracts/instance/Cloneable.sol +46 -0
  212. package/contracts/instance/IInstance.sol +87 -1
  213. package/contracts/instance/IInstanceService.sol +59 -0
  214. package/contracts/instance/Instance.sol +137 -238
  215. package/contracts/instance/InstanceAccessManager.sol +90 -81
  216. package/contracts/instance/InstanceReader.sol +86 -28
  217. package/contracts/instance/InstanceService.sol +453 -22
  218. package/contracts/instance/InstanceServiceManager.sol +54 -0
  219. package/contracts/instance/ObjectManager.sol +84 -0
  220. package/contracts/instance/base/ComponentService.sol +134 -0
  221. package/contracts/instance/base/IKeyValueStore.sol +5 -4
  222. package/contracts/instance/base/KeyValueStore.sol +4 -20
  223. package/contracts/instance/module/IAccess.sol +28 -19
  224. package/contracts/instance/module/IBundle.sol +1 -0
  225. package/contracts/instance/module/IDistribution.sol +1 -0
  226. package/contracts/instance/module/IPolicy.sol +4 -2
  227. package/contracts/instance/module/ISetup.sol +10 -3
  228. package/contracts/instance/module/ITreasury.sol +1 -1
  229. package/contracts/instance/service/ApplicationService.sol +268 -0
  230. package/contracts/instance/service/ApplicationServiceManager.sol +35 -0
  231. package/contracts/instance/service/BundleService.sol +298 -0
  232. package/contracts/instance/service/BundleServiceManager.sol +51 -0
  233. package/contracts/instance/service/ClaimService.sol +151 -0
  234. package/contracts/instance/service/ClaimServiceManager.sol +35 -0
  235. package/contracts/instance/service/DistributionService.sol +366 -0
  236. package/contracts/instance/service/DistributionServiceManager.sol +51 -0
  237. package/contracts/instance/service/IApplicationService.sol +82 -0
  238. package/contracts/instance/service/IBundleService.sol +54 -0
  239. package/contracts/instance/service/IClaimService.sol +61 -0
  240. package/contracts/instance/service/IDistributionService.sol +81 -0
  241. package/contracts/instance/service/IPolicyService.sol +89 -0
  242. package/contracts/instance/service/IPoolService.sol +20 -0
  243. package/contracts/instance/service/IProductService.sol +40 -0
  244. package/contracts/instance/service/PolicyService.sol +476 -0
  245. package/contracts/instance/service/PolicyServiceManager.sol +54 -0
  246. package/contracts/instance/service/PoolService.sol +109 -0
  247. package/contracts/instance/service/PoolServiceManager.sol +51 -0
  248. package/contracts/instance/service/ProductService.sol +233 -0
  249. package/contracts/instance/service/ProductServiceManager.sol +54 -0
  250. package/contracts/registry/ChainNft.sol +41 -26
  251. package/contracts/registry/IRegistry.sol +51 -25
  252. package/contracts/registry/IRegistryService.sol +54 -16
  253. package/contracts/registry/Registry.sol +279 -306
  254. package/contracts/registry/RegistryAccessManager.sol +216 -0
  255. package/contracts/registry/RegistryService.sol +170 -256
  256. package/contracts/registry/RegistryServiceManager.sol +30 -11
  257. package/contracts/registry/ReleaseManager.sol +322 -0
  258. package/contracts/registry/TokenRegistry.sol +116 -0
  259. package/contracts/shared/ERC165.sol +15 -9
  260. package/contracts/shared/INftOwnable.sol +11 -10
  261. package/contracts/shared/IPolicyHolder.sol +26 -0
  262. package/contracts/shared/IRegisterable.sol +4 -6
  263. package/contracts/shared/IRegistryLinked.sol +12 -0
  264. package/contracts/shared/IService.sol +18 -0
  265. package/contracts/shared/IVersionable.sol +4 -47
  266. package/contracts/shared/NftOwnable.sol +67 -83
  267. package/contracts/shared/PolicyHolder.sol +81 -0
  268. package/contracts/shared/ProxyManager.sol +101 -26
  269. package/contracts/shared/Registerable.sol +15 -30
  270. package/contracts/shared/RegistryLinked.sol +48 -0
  271. package/contracts/shared/Service.sol +58 -0
  272. package/contracts/shared/TokenHandler.sol +2 -2
  273. package/contracts/shared/UpgradableProxyWithAdmin.sol +2 -2
  274. package/contracts/shared/Versionable.sol +5 -93
  275. package/contracts/test/TestFee.sol +2 -2
  276. package/contracts/test/TestRegisterable.sol +1 -1
  277. package/contracts/test/TestRoleId.sol +6 -6
  278. package/contracts/test/TestService.sol +6 -7
  279. package/contracts/types/ClaimId.sol +52 -0
  280. package/contracts/types/DistributorType.sol +2 -2
  281. package/contracts/types/Fee.sol +3 -3
  282. package/contracts/types/NftIdSet.sol +26 -24
  283. package/contracts/types/ObjectType.sol +9 -5
  284. package/contracts/types/PayoutId.sol +54 -0
  285. package/contracts/types/RoleId.sol +19 -4
  286. package/contracts/types/StateId.sol +4 -0
  287. package/contracts/types/UFixed.sol +128 -12
  288. package/contracts/types/Version.sol +4 -1
  289. package/package.json +6 -5
  290. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
  291. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +0 -4
  292. package/artifacts/contracts/experiment/errors/Require.sol/Require.json +0 -105
  293. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +0 -4
  294. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +0 -105
  295. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +0 -4
  296. package/artifacts/contracts/experiment/inheritance/A.sol/A.json +0 -128
  297. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +0 -4
  298. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +0 -42
  299. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +0 -4
  300. package/artifacts/contracts/experiment/inheritance/B.sol/B.json +0 -76
  301. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +0 -4
  302. package/artifacts/contracts/experiment/inheritance/C.sol/C.json +0 -89
  303. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +0 -4
  304. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.json +0 -128
  305. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +0 -4
  306. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.json +0 -37
  307. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +0 -4
  308. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +0 -4
  309. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.json +0 -63
  310. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +0 -4
  311. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +0 -59
  312. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +0 -4
  313. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +0 -124
  314. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +0 -4
  315. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +0 -74
  316. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +0 -4
  317. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +0 -124
  318. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +0 -4
  319. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +0 -207
  320. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +0 -4
  321. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +0 -10
  322. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +0 -4
  323. package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.dbg.json +0 -4
  324. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.dbg.json +0 -4
  325. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.json +0 -1119
  326. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +0 -4
  327. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +0 -1082
  328. package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +0 -4
  329. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +0 -4
  330. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
  331. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.json +0 -457
  332. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
  333. package/contracts/components/IBaseComponent.sol +0 -19
  334. package/contracts/experiment/errors/Require.sol +0 -38
  335. package/contracts/experiment/errors/Revert.sol +0 -44
  336. package/contracts/experiment/inheritance/A.sol +0 -53
  337. package/contracts/experiment/inheritance/B.sol +0 -28
  338. package/contracts/experiment/inheritance/C.sol +0 -34
  339. package/contracts/experiment/inheritance/IA.sol +0 -13
  340. package/contracts/experiment/inheritance/IB.sol +0 -10
  341. package/contracts/experiment/inheritance/IC.sol +0 -12
  342. package/contracts/experiment/statemachine/Dummy.sol +0 -27
  343. package/contracts/experiment/statemachine/ISM.sol +0 -25
  344. package/contracts/experiment/statemachine/SM.sol +0 -57
  345. package/contracts/experiment/statemachine/SimpleStateMachine.sol +0 -31
  346. package/contracts/experiment/types/TypeA.sol +0 -47
  347. package/contracts/experiment/types/TypeB.sol +0 -29
  348. package/contracts/instance/AccessManagedSimple.sol +0 -114
  349. package/contracts/instance/AccessManagerSimple.sol +0 -682
  350. package/contracts/instance/IAccessManagerSimple.sol +0 -391
  351. package/contracts/instance/base/IService.sol +0 -15
  352. package/contracts/instance/base/ServiceBase.sol +0 -44
  353. package/contracts/registry/IChainNft.sol +0 -22
@@ -0,0 +1,1120 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "PolicyService",
4
+ "sourceName": "contracts/instance/service/PolicyService.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "address",
10
+ "name": "component",
11
+ "type": "address"
12
+ },
13
+ {
14
+ "internalType": "NftId",
15
+ "name": "nftId",
16
+ "type": "uint96"
17
+ }
18
+ ],
19
+ "name": "ErrorComponentServiceAlreadyRegistered",
20
+ "type": "error"
21
+ },
22
+ {
23
+ "inputs": [
24
+ {
25
+ "internalType": "address",
26
+ "name": "component",
27
+ "type": "address"
28
+ }
29
+ ],
30
+ "name": "ErrorComponentServiceComponentLocked",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [
35
+ {
36
+ "internalType": "NftId",
37
+ "name": "instanceNftId",
38
+ "type": "uint96"
39
+ },
40
+ {
41
+ "internalType": "RoleId",
42
+ "name": "requiredRole",
43
+ "type": "uint64"
44
+ },
45
+ {
46
+ "internalType": "address",
47
+ "name": "sender",
48
+ "type": "address"
49
+ }
50
+ ],
51
+ "name": "ErrorComponentServiceExpectedRoleMissing",
52
+ "type": "error"
53
+ },
54
+ {
55
+ "inputs": [
56
+ {
57
+ "internalType": "address",
58
+ "name": "component",
59
+ "type": "address"
60
+ },
61
+ {
62
+ "internalType": "ObjectType",
63
+ "name": "requiredType",
64
+ "type": "uint8"
65
+ },
66
+ {
67
+ "internalType": "ObjectType",
68
+ "name": "componentType",
69
+ "type": "uint8"
70
+ }
71
+ ],
72
+ "name": "ErrorComponentServiceInvalidType",
73
+ "type": "error"
74
+ },
75
+ {
76
+ "inputs": [
77
+ {
78
+ "internalType": "address",
79
+ "name": "component",
80
+ "type": "address"
81
+ }
82
+ ],
83
+ "name": "ErrorComponentServiceNotComponent",
84
+ "type": "error"
85
+ },
86
+ {
87
+ "inputs": [
88
+ {
89
+ "internalType": "address",
90
+ "name": "component",
91
+ "type": "address"
92
+ },
93
+ {
94
+ "internalType": "address",
95
+ "name": "initialOwner",
96
+ "type": "address"
97
+ },
98
+ {
99
+ "internalType": "address",
100
+ "name": "sender",
101
+ "type": "address"
102
+ }
103
+ ],
104
+ "name": "ErrorComponentServiceSenderNotOwner",
105
+ "type": "error"
106
+ },
107
+ {
108
+ "inputs": [
109
+ {
110
+ "internalType": "address",
111
+ "name": "target",
112
+ "type": "address"
113
+ }
114
+ ],
115
+ "name": "ErrorIAccessTargetLocked",
116
+ "type": "error"
117
+ },
118
+ {
119
+ "inputs": [
120
+ {
121
+ "internalType": "address",
122
+ "name": "customer",
123
+ "type": "address"
124
+ },
125
+ {
126
+ "internalType": "address",
127
+ "name": "tokenHandlerAddress",
128
+ "type": "address"
129
+ },
130
+ {
131
+ "internalType": "uint256",
132
+ "name": "amount",
133
+ "type": "uint256"
134
+ }
135
+ ],
136
+ "name": "ErrorIPolicyServiceInsufficientAllowance",
137
+ "type": "error"
138
+ },
139
+ {
140
+ "inputs": [
141
+ {
142
+ "internalType": "NftId",
143
+ "name": "policyNftId",
144
+ "type": "uint96"
145
+ },
146
+ {
147
+ "internalType": "uint16",
148
+ "name": "openClaimsCount",
149
+ "type": "uint16"
150
+ }
151
+ ],
152
+ "name": "ErrorIPolicyServiceOpenClaims",
153
+ "type": "error"
154
+ },
155
+ {
156
+ "inputs": [
157
+ {
158
+ "internalType": "NftId",
159
+ "name": "policyNftId",
160
+ "type": "uint96"
161
+ }
162
+ ],
163
+ "name": "ErrorIPolicyServicePolicyAlreadyClosed",
164
+ "type": "error"
165
+ },
166
+ {
167
+ "inputs": [
168
+ {
169
+ "internalType": "NftId",
170
+ "name": "policyNftId",
171
+ "type": "uint96"
172
+ },
173
+ {
174
+ "internalType": "Timestamp",
175
+ "name": "expiredAt",
176
+ "type": "uint40"
177
+ }
178
+ ],
179
+ "name": "ErrorIPolicyServicePolicyHasNotExpired",
180
+ "type": "error"
181
+ },
182
+ {
183
+ "inputs": [
184
+ {
185
+ "internalType": "NftId",
186
+ "name": "policyNftId",
187
+ "type": "uint96"
188
+ }
189
+ ],
190
+ "name": "ErrorIPolicyServicePolicyNotActivated",
191
+ "type": "error"
192
+ },
193
+ {
194
+ "inputs": [
195
+ {
196
+ "internalType": "NftId",
197
+ "name": "policyNftId",
198
+ "type": "uint96"
199
+ },
200
+ {
201
+ "internalType": "StateId",
202
+ "name": "state",
203
+ "type": "uint8"
204
+ }
205
+ ],
206
+ "name": "ErrorIPolicyServicePolicyNotActive",
207
+ "type": "error"
208
+ },
209
+ {
210
+ "inputs": [
211
+ {
212
+ "internalType": "NftId",
213
+ "name": "policyNftId",
214
+ "type": "uint96"
215
+ },
216
+ {
217
+ "internalType": "uint256",
218
+ "name": "premiumPaidAmount",
219
+ "type": "uint256"
220
+ }
221
+ ],
222
+ "name": "ErrorIPolicyServicePremiumAlreadyPaid",
223
+ "type": "error"
224
+ },
225
+ {
226
+ "inputs": [
227
+ {
228
+ "internalType": "NftId",
229
+ "name": "policyNftId",
230
+ "type": "uint96"
231
+ },
232
+ {
233
+ "internalType": "uint256",
234
+ "name": "premiumAmount",
235
+ "type": "uint256"
236
+ },
237
+ {
238
+ "internalType": "uint256",
239
+ "name": "premiumPaidAmount",
240
+ "type": "uint256"
241
+ }
242
+ ],
243
+ "name": "ErrorIPolicyServicePremiumNotFullyPaid",
244
+ "type": "error"
245
+ },
246
+ {
247
+ "inputs": [
248
+ {
249
+ "internalType": "address",
250
+ "name": "caller",
251
+ "type": "address"
252
+ }
253
+ ],
254
+ "name": "ErrorIServiceCallerUnknown",
255
+ "type": "error"
256
+ },
257
+ {
258
+ "inputs": [
259
+ {
260
+ "internalType": "NftId",
261
+ "name": "nftId",
262
+ "type": "uint96"
263
+ }
264
+ ],
265
+ "name": "ErrorNftOwnableAlreadyLinked",
266
+ "type": "error"
267
+ },
268
+ {
269
+ "inputs": [
270
+ {
271
+ "internalType": "address",
272
+ "name": "contractAddress",
273
+ "type": "address"
274
+ }
275
+ ],
276
+ "name": "ErrorNftOwnableContractNotRegistered",
277
+ "type": "error"
278
+ },
279
+ {
280
+ "inputs": [],
281
+ "name": "ErrorNftOwnableInitialOwnerZero",
282
+ "type": "error"
283
+ },
284
+ {
285
+ "inputs": [
286
+ {
287
+ "internalType": "address",
288
+ "name": "account",
289
+ "type": "address"
290
+ }
291
+ ],
292
+ "name": "ErrorNftOwnableNotOwner",
293
+ "type": "error"
294
+ },
295
+ {
296
+ "inputs": [
297
+ {
298
+ "internalType": "address",
299
+ "name": "registryAddress",
300
+ "type": "address"
301
+ }
302
+ ],
303
+ "name": "ErrorNotRegistry",
304
+ "type": "error"
305
+ },
306
+ {
307
+ "inputs": [],
308
+ "name": "InvalidInitialization",
309
+ "type": "error"
310
+ },
311
+ {
312
+ "inputs": [],
313
+ "name": "NotInitializing",
314
+ "type": "error"
315
+ },
316
+ {
317
+ "anonymous": false,
318
+ "inputs": [
319
+ {
320
+ "indexed": false,
321
+ "internalType": "uint64",
322
+ "name": "version",
323
+ "type": "uint64"
324
+ }
325
+ ],
326
+ "name": "Initialized",
327
+ "type": "event"
328
+ },
329
+ {
330
+ "anonymous": false,
331
+ "inputs": [
332
+ {
333
+ "indexed": false,
334
+ "internalType": "address",
335
+ "name": "sender",
336
+ "type": "address"
337
+ }
338
+ ],
339
+ "name": "LogProductServiceSender",
340
+ "type": "event"
341
+ },
342
+ {
343
+ "inputs": [],
344
+ "name": "NFT_OWNABLE_STORAGE_LOCATION_V1",
345
+ "outputs": [
346
+ {
347
+ "internalType": "bytes32",
348
+ "name": "",
349
+ "type": "bytes32"
350
+ }
351
+ ],
352
+ "stateMutability": "view",
353
+ "type": "function"
354
+ },
355
+ {
356
+ "inputs": [],
357
+ "name": "REGISTERABLE_LOCATION_V1",
358
+ "outputs": [
359
+ {
360
+ "internalType": "bytes32",
361
+ "name": "",
362
+ "type": "bytes32"
363
+ }
364
+ ],
365
+ "stateMutability": "view",
366
+ "type": "function"
367
+ },
368
+ {
369
+ "inputs": [
370
+ {
371
+ "internalType": "NftId",
372
+ "name": "policyNftId",
373
+ "type": "uint96"
374
+ },
375
+ {
376
+ "internalType": "Timestamp",
377
+ "name": "activateAt",
378
+ "type": "uint40"
379
+ }
380
+ ],
381
+ "name": "activate",
382
+ "outputs": [],
383
+ "stateMutability": "nonpayable",
384
+ "type": "function"
385
+ },
386
+ {
387
+ "inputs": [
388
+ {
389
+ "internalType": "RiskId",
390
+ "name": "riskId",
391
+ "type": "bytes8"
392
+ },
393
+ {
394
+ "internalType": "uint256",
395
+ "name": "sumInsuredAmount",
396
+ "type": "uint256"
397
+ },
398
+ {
399
+ "internalType": "uint256",
400
+ "name": "lifetime",
401
+ "type": "uint256"
402
+ },
403
+ {
404
+ "internalType": "bytes",
405
+ "name": "applicationData",
406
+ "type": "bytes"
407
+ },
408
+ {
409
+ "internalType": "NftId",
410
+ "name": "bundleNftId",
411
+ "type": "uint96"
412
+ },
413
+ {
414
+ "internalType": "ReferralId",
415
+ "name": "referralId",
416
+ "type": "bytes8"
417
+ }
418
+ ],
419
+ "name": "calculatePremium",
420
+ "outputs": [
421
+ {
422
+ "internalType": "uint256",
423
+ "name": "premiumAmount",
424
+ "type": "uint256"
425
+ },
426
+ {
427
+ "internalType": "uint256",
428
+ "name": "productFeeAmount",
429
+ "type": "uint256"
430
+ },
431
+ {
432
+ "internalType": "uint256",
433
+ "name": "poolFeeAmount",
434
+ "type": "uint256"
435
+ },
436
+ {
437
+ "internalType": "uint256",
438
+ "name": "bundleFeeAmount",
439
+ "type": "uint256"
440
+ },
441
+ {
442
+ "internalType": "uint256",
443
+ "name": "distributionFeeAmount",
444
+ "type": "uint256"
445
+ }
446
+ ],
447
+ "stateMutability": "view",
448
+ "type": "function"
449
+ },
450
+ {
451
+ "inputs": [
452
+ {
453
+ "internalType": "UFixed",
454
+ "name": "collateralizationLevel",
455
+ "type": "uint256"
456
+ },
457
+ {
458
+ "internalType": "uint256",
459
+ "name": "sumInsuredAmount",
460
+ "type": "uint256"
461
+ }
462
+ ],
463
+ "name": "calculateRequiredCollateral",
464
+ "outputs": [
465
+ {
466
+ "internalType": "uint256",
467
+ "name": "collateralAmount",
468
+ "type": "uint256"
469
+ }
470
+ ],
471
+ "stateMutability": "pure",
472
+ "type": "function"
473
+ },
474
+ {
475
+ "inputs": [
476
+ {
477
+ "internalType": "NftId",
478
+ "name": "policyNftId",
479
+ "type": "uint96"
480
+ }
481
+ ],
482
+ "name": "close",
483
+ "outputs": [],
484
+ "stateMutability": "nonpayable",
485
+ "type": "function"
486
+ },
487
+ {
488
+ "inputs": [
489
+ {
490
+ "internalType": "NftId",
491
+ "name": "policyNftId",
492
+ "type": "uint96"
493
+ },
494
+ {
495
+ "internalType": "Timestamp",
496
+ "name": "activateAt",
497
+ "type": "uint40"
498
+ }
499
+ ],
500
+ "name": "collectPremium",
501
+ "outputs": [],
502
+ "stateMutability": "nonpayable",
503
+ "type": "function"
504
+ },
505
+ {
506
+ "inputs": [
507
+ {
508
+ "internalType": "NftId",
509
+ "name": "policyNftId",
510
+ "type": "uint96"
511
+ }
512
+ ],
513
+ "name": "decline",
514
+ "outputs": [],
515
+ "stateMutability": "nonpayable",
516
+ "type": "function"
517
+ },
518
+ {
519
+ "inputs": [
520
+ {
521
+ "internalType": "NftId",
522
+ "name": "policyNftId",
523
+ "type": "uint96"
524
+ }
525
+ ],
526
+ "name": "expire",
527
+ "outputs": [],
528
+ "stateMutability": "nonpayable",
529
+ "type": "function"
530
+ },
531
+ {
532
+ "inputs": [],
533
+ "name": "getDomain",
534
+ "outputs": [
535
+ {
536
+ "internalType": "ObjectType",
537
+ "name": "",
538
+ "type": "uint8"
539
+ }
540
+ ],
541
+ "stateMutability": "pure",
542
+ "type": "function"
543
+ },
544
+ {
545
+ "inputs": [],
546
+ "name": "getInitialInfo",
547
+ "outputs": [
548
+ {
549
+ "components": [
550
+ {
551
+ "internalType": "NftId",
552
+ "name": "nftId",
553
+ "type": "uint96"
554
+ },
555
+ {
556
+ "internalType": "NftId",
557
+ "name": "parentNftId",
558
+ "type": "uint96"
559
+ },
560
+ {
561
+ "internalType": "ObjectType",
562
+ "name": "objectType",
563
+ "type": "uint8"
564
+ },
565
+ {
566
+ "internalType": "bool",
567
+ "name": "isInterceptor",
568
+ "type": "bool"
569
+ },
570
+ {
571
+ "internalType": "address",
572
+ "name": "objectAddress",
573
+ "type": "address"
574
+ },
575
+ {
576
+ "internalType": "address",
577
+ "name": "initialOwner",
578
+ "type": "address"
579
+ },
580
+ {
581
+ "internalType": "bytes",
582
+ "name": "data",
583
+ "type": "bytes"
584
+ }
585
+ ],
586
+ "internalType": "struct IRegistry.ObjectInfo",
587
+ "name": "info",
588
+ "type": "tuple"
589
+ }
590
+ ],
591
+ "stateMutability": "view",
592
+ "type": "function"
593
+ },
594
+ {
595
+ "inputs": [],
596
+ "name": "getInstanceService",
597
+ "outputs": [
598
+ {
599
+ "internalType": "contract InstanceService",
600
+ "name": "",
601
+ "type": "address"
602
+ }
603
+ ],
604
+ "stateMutability": "view",
605
+ "type": "function"
606
+ },
607
+ {
608
+ "inputs": [],
609
+ "name": "getMajorVersion",
610
+ "outputs": [
611
+ {
612
+ "internalType": "VersionPart",
613
+ "name": "majorVersion",
614
+ "type": "uint8"
615
+ }
616
+ ],
617
+ "stateMutability": "view",
618
+ "type": "function"
619
+ },
620
+ {
621
+ "inputs": [],
622
+ "name": "getNftId",
623
+ "outputs": [
624
+ {
625
+ "internalType": "NftId",
626
+ "name": "",
627
+ "type": "uint96"
628
+ }
629
+ ],
630
+ "stateMutability": "view",
631
+ "type": "function"
632
+ },
633
+ {
634
+ "inputs": [],
635
+ "name": "getOwner",
636
+ "outputs": [
637
+ {
638
+ "internalType": "address",
639
+ "name": "",
640
+ "type": "address"
641
+ }
642
+ ],
643
+ "stateMutability": "view",
644
+ "type": "function"
645
+ },
646
+ {
647
+ "inputs": [],
648
+ "name": "getRegistry",
649
+ "outputs": [
650
+ {
651
+ "internalType": "contract IRegistry",
652
+ "name": "",
653
+ "type": "address"
654
+ }
655
+ ],
656
+ "stateMutability": "view",
657
+ "type": "function"
658
+ },
659
+ {
660
+ "inputs": [],
661
+ "name": "getRegistryAddress",
662
+ "outputs": [
663
+ {
664
+ "internalType": "address",
665
+ "name": "",
666
+ "type": "address"
667
+ }
668
+ ],
669
+ "stateMutability": "view",
670
+ "type": "function"
671
+ },
672
+ {
673
+ "inputs": [],
674
+ "name": "getRegistryService",
675
+ "outputs": [
676
+ {
677
+ "internalType": "contract IRegistryService",
678
+ "name": "",
679
+ "type": "address"
680
+ }
681
+ ],
682
+ "stateMutability": "view",
683
+ "type": "function"
684
+ },
685
+ {
686
+ "inputs": [],
687
+ "name": "getVersion",
688
+ "outputs": [
689
+ {
690
+ "internalType": "Version",
691
+ "name": "",
692
+ "type": "uint24"
693
+ }
694
+ ],
695
+ "stateMutability": "pure",
696
+ "type": "function"
697
+ },
698
+ {
699
+ "inputs": [],
700
+ "name": "initializeERC165",
701
+ "outputs": [],
702
+ "stateMutability": "nonpayable",
703
+ "type": "function"
704
+ },
705
+ {
706
+ "inputs": [
707
+ {
708
+ "internalType": "address",
709
+ "name": "initialOwner",
710
+ "type": "address"
711
+ },
712
+ {
713
+ "internalType": "address",
714
+ "name": "registryAddress",
715
+ "type": "address"
716
+ }
717
+ ],
718
+ "name": "initializeNftOwnable",
719
+ "outputs": [],
720
+ "stateMutability": "nonpayable",
721
+ "type": "function"
722
+ },
723
+ {
724
+ "inputs": [
725
+ {
726
+ "internalType": "address",
727
+ "name": "registryAddress",
728
+ "type": "address"
729
+ },
730
+ {
731
+ "internalType": "NftId",
732
+ "name": "parentNftId",
733
+ "type": "uint96"
734
+ },
735
+ {
736
+ "internalType": "ObjectType",
737
+ "name": "objectType",
738
+ "type": "uint8"
739
+ },
740
+ {
741
+ "internalType": "bool",
742
+ "name": "isInterceptor",
743
+ "type": "bool"
744
+ },
745
+ {
746
+ "internalType": "address",
747
+ "name": "initialOwner",
748
+ "type": "address"
749
+ },
750
+ {
751
+ "internalType": "bytes",
752
+ "name": "data",
753
+ "type": "bytes"
754
+ }
755
+ ],
756
+ "name": "initializeRegisterable",
757
+ "outputs": [],
758
+ "stateMutability": "nonpayable",
759
+ "type": "function"
760
+ },
761
+ {
762
+ "inputs": [
763
+ {
764
+ "internalType": "address",
765
+ "name": "registryAddress",
766
+ "type": "address"
767
+ }
768
+ ],
769
+ "name": "initializeRegistryLinked",
770
+ "outputs": [],
771
+ "stateMutability": "nonpayable",
772
+ "type": "function"
773
+ },
774
+ {
775
+ "inputs": [
776
+ {
777
+ "internalType": "address",
778
+ "name": "registry",
779
+ "type": "address"
780
+ },
781
+ {
782
+ "internalType": "address",
783
+ "name": "initialOwner",
784
+ "type": "address"
785
+ }
786
+ ],
787
+ "name": "initializeService",
788
+ "outputs": [],
789
+ "stateMutability": "nonpayable",
790
+ "type": "function"
791
+ },
792
+ {
793
+ "inputs": [
794
+ {
795
+ "internalType": "address",
796
+ "name": "activatedBy",
797
+ "type": "address"
798
+ },
799
+ {
800
+ "internalType": "bytes",
801
+ "name": "data",
802
+ "type": "bytes"
803
+ }
804
+ ],
805
+ "name": "initializeVersionable",
806
+ "outputs": [],
807
+ "stateMutability": "nonpayable",
808
+ "type": "function"
809
+ },
810
+ {
811
+ "inputs": [],
812
+ "name": "linkToRegisteredNftId",
813
+ "outputs": [],
814
+ "stateMutability": "nonpayable",
815
+ "type": "function"
816
+ },
817
+ {
818
+ "inputs": [
819
+ {
820
+ "internalType": "bytes4",
821
+ "name": "interfaceId",
822
+ "type": "bytes4"
823
+ }
824
+ ],
825
+ "name": "registerInterface",
826
+ "outputs": [],
827
+ "stateMutability": "nonpayable",
828
+ "type": "function"
829
+ },
830
+ {
831
+ "inputs": [
832
+ {
833
+ "internalType": "bytes4",
834
+ "name": "interfaceId",
835
+ "type": "bytes4"
836
+ }
837
+ ],
838
+ "name": "supportsInterface",
839
+ "outputs": [
840
+ {
841
+ "internalType": "bool",
842
+ "name": "",
843
+ "type": "bool"
844
+ }
845
+ ],
846
+ "stateMutability": "view",
847
+ "type": "function"
848
+ },
849
+ {
850
+ "inputs": [
851
+ {
852
+ "internalType": "NftId",
853
+ "name": "applicationNftId",
854
+ "type": "uint96"
855
+ },
856
+ {
857
+ "internalType": "bool",
858
+ "name": "requirePremiumPayment",
859
+ "type": "bool"
860
+ },
861
+ {
862
+ "internalType": "Timestamp",
863
+ "name": "activateAt",
864
+ "type": "uint40"
865
+ }
866
+ ],
867
+ "name": "underwrite",
868
+ "outputs": [],
869
+ "stateMutability": "nonpayable",
870
+ "type": "function"
871
+ },
872
+ {
873
+ "inputs": [
874
+ {
875
+ "internalType": "bytes",
876
+ "name": "data",
877
+ "type": "bytes"
878
+ }
879
+ ],
880
+ "name": "upgradeVersionable",
881
+ "outputs": [],
882
+ "stateMutability": "nonpayable",
883
+ "type": "function"
884
+ }
885
+ ],
886
+ "bytecode": "0x60806040523480156200001157600080fd5b506200001c62000022565b620000d6565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff1615620000735760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b0390811614620000d35780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b614b4780620000e66000396000f3fe608060405234801561001057600080fd5b50600436106101da5760003560e01c8063630361f611610104578063b68d1809116100a2578063cde749f411610071578063cde749f414610445578063ea8665721461044d578063f21de1e81461031c578063f7c34ee01461046057600080fd5b8063b68d18091461040d578063bbfbbfba14610422578063caf4e3d414610435578063cc9fc59a1461043d57600080fd5b8063893d20e8116100de578063893d20e8146103a25780639cdaa7f9146103aa5780639ffcede9146103e5578063ada9652e146103f857600080fd5b8063630361f614610354578063644c45e014610367578063675393bf1461038f57600080fd5b806327bb7a331161017c57806349bb9e4b1161014b57806349bb9e4b146102f65780634d5e16a9146103095780635ab1bd531461031c5780635fd1a5f51461034157600080fd5b806327bb7a33146102b7578063329d6e74146102ca57806336fc697e146102dd5780633d3cf023146102e557600080fd5b80630fec111c116101b85780630fec111c14610252578063138461e0146102675780631eff4b221461026f578063214cdb80146102a457600080fd5b806301ffc9a7146101df5780630aaba8e8146102215780630d8e6e2c14610236575b600080fd5b61020c6101ed3660046139e7565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b61023461022f366004613a26565b610473565b005b61023e610ab1565b60405162ffffff9091168152602001610218565b61025a610b3b565b6040516102189190613a93565b610234610cd7565b6102967f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b604051908152602001610218565b6102346102b23660046139e7565b610ed9565b6102346102c5366004613cbf565b610f06565b6102346102d8366004613d57565b610f92565b6102346110df565b6102346102f3366004613a26565b50565b610234610304366004613d8b565b611125565b610234610317366004613ded565b611224565b6001546001600160a01b03165b6040516001600160a01b039091168152602001610218565b61029661034f366004613e26565b611496565b610234610362366004613e48565b61159f565b600080516020614ad2833981519152546040516001600160601b039091168152602001610218565b61023461039d366004613e93565b611c00565b610329611d0d565b6103bd6103b8366004613ec6565b611e44565b604080519586526020860194909452928401919091526060830152608082015260a001610218565b6102346103f3366004613a26565b611f22565b610296600080516020614ad283398151915281565b60d35b60405160ff9091168152602001610218565b610234610430366004613ded565b611f74565b6103296122db565b610329612372565b61041061239c565b61023461045b366004613f4e565b612413565b61023461046e366004613f4e565b6124ab565b600061047f606e612522565b9150506000816001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa1580156104c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104e69190613f7c565b60405163bd7d9d8560e01b81526001600160601b03851660048201529091506000906001600160a01b0383169063bd7d9d8590602401600060405180830381865afa158015610539573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526105619190810190614016565b6101a081015160405163790a38ad60e01b815264ffffffffff909116600482015290915073__$d53880c81dc91c20799140d711e5ab8718$__9063790a38ad90602401602060405180830381865af41580156105c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105e59190614195565b15610613576040516308cbe08b60e21b81526001600160601b03851660048201526024015b60405180910390fd5b604051639096a1f360e01b81526001600160601b03851660048201526000906001600160a01b03841690639096a1f390602401602060405180830381865afa158015610663573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061068791906141bd565b905060ff81166064146106c157604051634de91cf360e11b81526001600160601b038616600482015260ff8216602482015260440161060a565b6101e0820151604051638d38cd4b60e01b815264ffffffffff909116600482015273__$d53880c81dc91c20799140d711e5ab8718$__90638d38cd4b90602401602060405180830381865af415801561071e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107429190614195565b1561076b57604051634b80547760e11b81526001600160601b038616600482015260240161060a565b8160c001518260a00151146107b55760a082015160c0830151604051632b14368360e11b81526001600160601b03881660048201526024810192909252604482015260640161060a565b61016082015161ffff16156107f95761016082015160405163a5bb07ed60e01b81526001600160601b038716600482015261ffff909116602482015260440161060a565b73__$d53880c81dc91c20799140d711e5ab8718$__63adb618326040518163ffffffff1660e01b8152600401602060405180830381865af4158015610842573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086691906141da565b6101c0830151604051634a19ad8d60e11b815264ffffffffff92831660048201529116602482015273__$d53880c81dc91c20799140d711e5ab8718$__906394335b1a90604401602060405180830381865af41580156108ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ee9190614195565b801561090257508160800151826101800151105b1561093f576101c0820151604051630e79f6e160e21b81526001600160601b038716600482015264ffffffffff909116602482015260440161060a565b73__$d53880c81dc91c20799140d711e5ab8718$__63adb618326040518163ffffffff1660e01b8152600401602060405180830381865af4158015610988573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ac91906141da565b64ffffffffff166101e0830152600354602083015160808401516040516303c5c06160e41b81526001600160a01b0388811660048301526001600160601b03808b16602484015290931660448201526064810191909152911690633c5c061090608401600060405180830381600087803b158015610a2957600080fd5b505af1158015610a3d573d6000803e3d6000fd5b50505050836001600160a01b0316639a960d528684610a5a60c890565b6040518463ffffffff1660e01b8152600401610a78939291906141f7565b600060405180830381600087803b158015610a9257600080fd5b505af1158015610aa6573d6000803e3d6000fd5b505050505050505050565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90632efe011390606401602060405180830381865af4158015610b12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b36919061435d565b905090565b610b4361392b565b604080516080810182527f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b038116835260ff600160601b820481166020850152600160681b909104161515928201929092527f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa3018054600093916060840191610bd390614382565b80601f0160208091040260200160405190810160405280929190818152602001828054610bff90614382565b8015610c4c5780601f10610c2157610100808354040283529160200191610c4c565b820191906000526020600020905b815481529060010190602001808311610c2f57829003601f168201915b50505050508152505090506040518060e00160405280610c6a600090565b6001600160601b0316815260200182600001516001600160601b03168152602001826020015160ff168152602001826040015115158152602001306001600160a01b03168152602001610cbb611d0d565b6001600160a01b03168152602001826060015181525091505090565b6000600080516020614ad283398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610d46573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d6a9190614195565b15610d965780546040516301ab8b6760e21b81526001600160601b03909116600482015260240161060a565b30610da96001546001600160a01b031690565b60405163c3c5a54760e01b81526001600160a01b038381166004830152919091169063c3c5a54790602401602060405180830381865afa158015610df1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e159190614195565b610e3d5760405163b9304b0d60e01b81526001600160a01b038216600482015260240161060a565b6001546001600160a01b0316604051636939560f60e11b81526001600160a01b038381166004830152919091169063d272ac1e90602401602060405180830381865afa158015610e91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eb591906143bc565b82546bffffffffffffffffffffffff19166001600160601b03919091161790915550565b610ee1612799565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b610f0e612799565b610f1882876124ab565b60007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0388166cffffffffffffffffffffffffff1990911617600160601b60ff8816021760ff60681b1916600160681b86151502178155905060018101610f888382614428565b5050505050505050565b73__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__63a123b37c610fb4610ab1565b6040516001600160e01b031960e084901b16815262ffffff9091166004820152602401602060405180830381865af4158015610ff4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061101891906144e7565b600080516020614af28339815191528054600160401b900460ff168061104b575080546001600160401b03808416911610155b156110695760405163f92ee8a960e01b815260040160405180910390fd5b805468ffffffffffffffffff19166001600160401b03831617600160401b178155611093836127d2565b805460ff60401b191681556040516001600160401b03831681527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050565b6110e7612799565b6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b600080516020614af28339815191528054600160401b810460ff1615906001600160401b03166000811580156111585750825b90506000826001600160401b031660011480156111745750303b155b905081158015611182575080155b156111a05760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff1916600117855583156111ca57845460ff60401b1916600160401b1785555b6111d487876127da565b831561121b57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2906020015b60405180910390a15b50505050505050565b6000611230606e612522565b9150506000816001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa158015611273573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112979190613f7c565b60405163bd7d9d8560e01b81526001600160601b03861660048201529091506000906001600160a01b0383169063bd7d9d8590602401600060405180830381865afa1580156112ea573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526113129190810190614016565b6101a081015160405163790a38ad60e01b815264ffffffffff909116600482015290915073__$d53880c81dc91c20799140d711e5ab8718$__9063790a38ad90602401602060405180830381865af4158015611372573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113969190614195565b6113e25760405162461bcd60e51b815260206004820152601f60248201527f4552524f523a5052532d3032303a414c52454144595f41435449564154454400604482015260640161060a565b64ffffffffff84166101a0820181905260e0820151604051631ded81af60e31b81526004810192909252602482015273__$d53880c81dc91c20799140d711e5ab8718$__9063ef6c0d7890604401602060405180830381865af415801561144d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061147191906141da565b64ffffffffff166101c08201526001600160a01b038316639a960d5286836064610a5a565b6040516322f5db0f60e11b815260048101829052600090819073__$5ac3274b8cf1e01ea223bf093142af05b0$__906345ebb61e90602401602060405180830381865af41580156114eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061150f9190614510565b9050600061151d8583612a35565b604051632255341b60e11b81526004810182905290915073__$5ac3274b8cf1e01ea223bf093142af05b0$__906344aa683690602401602060405180830381865af4158015611570573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115949190614510565b925050505b92915050565b60008060006115ac61392b565b6115b6606e612522565b8095508192505050836001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa1580156115fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116209190613f7c565b905160405163bd7d9d8560e01b81526001600160601b038916600482015291935091506000906001600160a01b0384169063bd7d9d8590602401600060405180830381865afa158015611677573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261169f9190810190614016565b80519091506001600160601b038381169116146116fe5760405162461bcd60e51b815260206004820152601760248201527f504f4c4943595f50524f445543545f4d49534d41544348000000000000000000604482015260640161060a565b604051639096a1f360e01b81526001600160601b038816600482015261177c906001600160a01b03851690639096a1f390602401602060405180830381865afa15801561174f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061177391906141bd565b60ff16600a1490565b6117c85760405162461bcd60e51b815260206004820152601f60248201527f4552524f523a5052532d3032313a53544154455f4e4f545f4150504c49454400604482015260640161060a565b6000806000806118568888878a6001600160a01b03166390af70648b6040518263ffffffff1660e01b815260040161180f91906001600160601b0391909116815260200190565b61024060405180830381865afa15801561182d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118519190614582565b612a51565b93509350935093506000611868602890565b905064ffffffffff8a161561191957606464ffffffffff8b166101a0880181905260e0880151604051631ded81af60e31b81526004810192909252602482015290915073__$d53880c81dc91c20799140d711e5ab8718$__9063ef6c0d7890604401602060405180830381865af41580156118e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061190b91906141da565b64ffffffffff166101c08701525b60008b1561194d576119318a898f8a60a00151612bd2565b90508660a001518760c001818151611949919061468f565b9052505b600360009054906101000a90046001600160a01b03166001600160a01b031663a7e0dea78b8f8887866040518663ffffffff1660e01b81526004016119cb9594939291906001600160a01b039590951685526001600160601b0393841660208601529190921660408401526060830191909152608082015260a00190565b6000604051808303816000875af11580156119ea573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611a1291908101906146a2565b9350896001600160a01b0316639a960d528e89856040518463ffffffff1660e01b8152600401611a44939291906141f7565b600060405180830381600087803b158015611a5e57600080fd5b505af1158015611a72573d6000803e3d6000fd5b50506040516355e343a960e01b81526001600160601b03891660048201526001600160a01b038c1692506355e343a991506024016101c060405180830381865afa158015611ac4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ae89190614773565b6080015115611bf1576000611b056001546001600160a01b031690565b6040516305247a1760e51b81526001600160601b03891660048201526001600160a01b03919091169063a48f42e090602401600060405180830381865afa158015611b54573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611b7c9190810190614844565b608001519050806001600160a01b03166338f563788f8a61010001518860400151886040518563ffffffff1660e01b8152600401611bbd9493929190614916565b600060405180830381600087803b158015611bd757600080fd5b505af1158015611beb573d6000803e3d6000fd5b50505050505b50505050505050505050505050565b611c08612799565b806001600160a01b03163b600003611c3e5760405163fdeac91f60e01b81526001600160a01b038216600482015260240161060a565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b815263230c0c8160e11b60048201526301ffc9a790602401602060405180830381865afa925050508015611cb8575060408051601f3d908101601f19168201909252611cb591810190614195565b60015b611ce05760405163fdeac91f60e01b81526001600160a01b038216600482015260240161060a565b80611d095760405163fdeac91f60e01b81526001600160a01b038316600482015260240161060a565b5050565b600080600080516020614ad283398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015611d7d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611da19190614195565b15611e2e576001546001600160a01b03168154604051631c5da14d60e11b81526001600160601b0390911660048201526001600160a01b0391909116906338bb429a90602401602060405180830381865afa158015611e04573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e289190613f7c565b91505090565b54600160601b90046001600160a01b0316919050565b600080600080600080611e5561318a565b90506000816001600160a01b0316635e78426b8d8f8e8e6040518563ffffffff1660e01b8152600401611e8b949392919061495c565b602060405180830381865afa158015611ea8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ecc9190614510565b9050611eda81838b8b6131a9565b92985090965094509250611eee868261468f565b9650611efa848661468f565b611f04908861468f565b9650611f10838861468f565b96505050965096509650965096915050565b60405162461bcd60e51b815260206004820152602160248201527f4552524f523a5052532d3233353a4e4f545f5945545f494d504c454d454e54456044820152601160fa1b606482015260840161060a565b600080611f81606e612522565b915091506000816001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa158015611fc5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fe99190613f7c565b60405163bd7d9d8560e01b81526001600160601b03871660048201529091506000906001600160a01b0383169063bd7d9d8590602401600060405180830381865afa15801561203c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526120649190810190614016565b90508060a001518160c00151036120a65760c081015160405163038a855760e51b81526001600160601b0388166004820152602481019190915260440161060a565b60008160c001518260a001516120bc9190614997565b905060006120d08587600001518a85612bd2565b9050818360c0018181516120e4919061468f565b9052506003546020840151604051639babe3bf60e01b81526001600160a01b0388811660048301526001600160601b03909216602482015260448101849052911690639babe3bf90606401600060405180830381600087803b15801561214957600080fd5b505af115801561215d573d6000803e3d6000fd5b50505050846001600160a01b0316639a960d52898561217a60ff90565b6040518463ffffffff1660e01b8152600401612198939291906141f7565b600060405180830381600087803b1580156121b257600080fd5b505af11580156121c6573d6000803e3d6000fd5b5050604051638d38cd4b60e01b815264ffffffffff8a16600482015273__$d53880c81dc91c20799140d711e5ab8718$__9250638d38cd4b9150602401602060405180830381865af4158015612220573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122449190614195565b80156122cc57506101a083015160405163790a38ad60e01b815264ffffffffff909116600482015273__$d53880c81dc91c20799140d711e5ab8718$__9063790a38ad90602401602060405180830381865af41580156122a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122cc9190614195565b15610f8857610f888888611224565b6000806122f06001546001600160a01b031690565b6001600160a01b031663d39e604360285b61230961239c565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa15801561234e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115999190613f7c565b6000806123876001546001600160a01b031690565b6001600160a01b031663d39e60436046612301565b604051632392b61b60e21b81526003600482015260009073__$9dab98ad7ae1a426029e5739f922230a41$__90638e4ad86c90602401602060405180830381865af41580156123ef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b3691906141bd565b61241b612799565b61249b82836001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa15801561245d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061248191906143bc565b603c60008560405180602001604052806000815250610f06565b611d09637b6a51fd60e01b610ed9565b6124b3612799565b6124bc81611c00565b6124c46110df565b6001600160a01b0382166124eb5760405163f17ef42d60e01b815260040160405180910390fd5b50600080516020614ad283398151915280546001600160601b0316600160601b6001600160a01b0390931692909202919091179055565b61252a61392b565b60008061253f6001546001600160a01b031690565b6040516308b09a5f60e41b81523360048201529091506001600160a01b03821690638b09a5f090602401600060405180830381865afa158015612586573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526125ae9190810190614844565b92506125c483604001518560ff90811691161490565b6126065760405162461bcd60e51b815260206004820152601360248201527213d0929150d517d516541157d2539590531251606a1b604482015260640161060a565b60208301516040516305247a1760e51b81526001600160601b0390911660048201526000906001600160a01b0383169063a48f42e090602401600060405180830381865afa15801561265c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526126849190810190614844565b6080015190508092506000836001600160a01b031663bf7e214f6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156126cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126f19190613f7c565b6080860151604051629b7b3560e61b81526001600160a01b0391821660048201529192508216906326decd4090602401602060405180830381865afa15801561273e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127629190614195565b1561279157608085015160405163d53987e560e01b81526001600160a01b03909116600482015260240161060a565b505050915091565b600080516020614af283398151915254600160401b900460ff166127d057604051631afcd79f60e31b815260040160405180910390fd5b565b6101da612799565b600080516020614af28339815191528054600160401b810460ff1615906001600160401b031660008115801561280d5750825b90506000826001600160401b031660011480156128295750303b155b905081158015612837575080155b156128555760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561287f57845460ff60401b1916600160401b1785555b6000808780602001905181019061289691906149aa565b90925090506128a5828a612413565b6001546001600160a01b031663d39e6043608c6128c061239c565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa158015612905573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129299190613f7c565b600280546001600160a01b0319166001600160a01b039283161790556001541663d39e604360dc61295861239c565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa15801561299d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129c19190613f7c565b600380546001600160a01b0319166001600160a01b03929092169190911790556129f163fec67fcb60e01b610ed9565b5050831561121b57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d290602001611212565b6000612a4a8383670de0b6b3a7640000613842565b9392505050565b600080612a5c613969565b60608401516020860151604051634793b4ab60e01b81526001600160601b038216600482015291945092506000906001600160a01b03881690634793b4ab90602401600060405180830381865afa158015612abb573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612ae391908101906146a2565b80519092506001600160601b03858116911614612b3b5760405162461bcd60e51b81526020600482015260166024820152750a09e989286b2be84aa9c88988abe9a92a69a82a886960531b604482015260640161060a565b6040516355e343a960e01b81526001600160601b03851660048201526000906001600160a01b038916906355e343a9906024016101c060405180830381865afa158015612b8c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bb09190614773565b9050612bc48160a001518860800151611496565b915050945094509450949050565b60008115613182576000856001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa158015612c1a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c3e9190613f7c565b60405163242bdc1960e21b81526001600160601b03871660048201526001600160a01b0391909116906390af70649060240161024060405180830381865afa158015612c8e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612cb29190614582565b60208101519091506000612cce6001546001600160a01b031690565b604051631c5da14d60e11b81526001600160601b03881660048201526001600160a01b0391909116906338bb429a90602401602060405180830381865afa158015612d1d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d419190613f7c565b90506000886001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa158015612d83573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612da79190613f7c565b60608501516040516355e343a960e01b81526001600160601b0390911660048201526001600160a01b0391909116906355e343a9906024016101c060405180830381865afa158015612dfd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e219190614773565b61014081015160a08601516040516346f0526160e11b8152899850929350909173__$a23651848365a6a5ca15f07b4331037f48$__90638de0a4c290612e6b9084906004016149d9565b602060405180830381865af4158015612e88573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612eac9190614195565b15612f18576040516317d5759960e31b81526001600160a01b0386169063beabacc890612ee190879086908d906004016149f0565b600060405180830381600087803b158015612efb57600080fd5b505af1158015612f0f573d6000803e3d6000fd5b5050505061317b565b60a086015160405163012ebd8360e21b815281516004820152602090910151602482015260448101889052600090819073__$a23651848365a6a5ca15f07b4331037f48$__906304baf60c906064016040805180830381865af4158015612f83573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612fa79190614a14565b91509150600088610160015190508a886001600160a01b03166321df0da76040518163ffffffff1660e01b8152600401602060405180830381865afa158015612ff4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130189190613f7c565b604051636eb1769f60e11b81526001600160a01b038a811660048301528b81166024830152919091169063dd62ed3e90604401602060405180830381865afa158015613068573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061308c9190614510565b10156130b15786888c604051636d675c4360e01b815260040161060a939291906149f0565b6040516317d5759960e31b81526001600160a01b0389169063beabacc8906130e1908a90859088906004016149f0565b600060405180830381600087803b1580156130fb57600080fd5b505af115801561310f573d6000803e3d6000fd5b50506040516317d5759960e31b81526001600160a01b038b16925063beabacc89150613143908a90899087906004016149f0565b600060405180830381600087803b15801561315d57600080fd5b505af1158015613171573d6000803e3d6000fd5b50939b5050505050505b5050505050505b949350505050565b600061319461392b565b61319e606e612522565b506080015192915050565b600080600080600080886001600160a01b031663de7b5d146040518163ffffffff1660e01b8152600401602060405180830381865afa1580156131f0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132149190613f7c565b9050806001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa158015613254573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132789190613f7c565b9150506000886001600160a01b0316631bdd6b766040518163ffffffff1660e01b8152600401602060405180830381865afa1580156132bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132df91906143bc565b604051634793b4ab60e01b81526001600160601b038a1660048201529091506000906001600160a01b03841690634793b4ab90602401600060405180830381865afa158015613332573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261335a91908101906146a2565b80519091506001600160601b038381169116146133c45760405162461bcd60e51b815260206004820152602260248201527f4552524f523a5052532d3033353a42554e444c455f504f4f4c5f4d49534d4154604482015261086960f31b606482015260840161060a565b6000836001600160a01b03166390af70648c6001600160a01b03166251884a6040518163ffffffff1660e01b8152600401602060405180830381865afa158015613412573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061343691906143bc565b6040516001600160e01b031960e084901b1681526001600160601b03909116600482015260240161024060405180830381865afa15801561347b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061349f9190614582565b60a081015160405163012ebd8360e21b8152815160048201526020909101516024820152604481018e905290915073__$a23651848365a6a5ca15f07b4331037f48$__906304baf60c906064016040805180830381865af4158015613508573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061352c9190614a14565b506040516355e343a960e01b81526001600160601b0385166004820152909850600091506001600160a01b038516906355e343a9906024016101c060405180830381865afa158015613582573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135a69190614773565b60e081015160405163012ebd8360e21b8152815160048201526020909101516024820152604481018e905290915073__$a23651848365a6a5ca15f07b4331037f48$__906304baf60c906064016040805180830381865af415801561360f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136339190614a14565b50809750505060008a6001600160a01b031663db6dcc956040518163ffffffff1660e01b8152600401602060405180830381865afa158015613679573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061369d91906143bc565b604051639ad69c6760e01b81526001600160601b03821660048201529091506000906001600160a01b03861690639ad69c679060240160a060405180830381865afa1580156136f0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137149190614a38565b604080820151905163012ebd8360e21b8152815160048201526020909101516024820152604481018f905290915073__$a23651848365a6a5ca15f07b4331037f48$__906304baf60c906064016040805180830381865af415801561377d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137a19190614a14565b5060208481015160405163012ebd8360e21b8152815160048201529101516024820152604481018f905290965073__$a23651848365a6a5ca15f07b4331037f48$__92506304baf60c91506064016040805180830381865af415801561380b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061382f9190614a14565b5080955050505050945094509450949050565b600080806000198587098587029250828110838203039150508060000361387c5783828161387257613872614abb565b0492505050612a4a565b8084116138c35760405162461bcd60e51b81526020600482015260156024820152744d6174683a206d756c446976206f766572666c6f7760581b604482015260640161060a565b600084868809600260036001881981018916988990049182028318808302840302808302840302808302840302808302840302808302840302918202909203026000889003889004909101858311909403939093029303949094049190911702949350505050565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c081019190915290565b60405180610120016040528060006001600160601b031681526020016139a2604051806040016040528060008152602001600081525090565b81526020016060815260200160008152602001600081526020016000815260200160008152602001600064ffffffffff168152602001600064ffffffffff1681525090565b6000602082840312156139f957600080fd5b81356001600160e01b031981168114612a4a57600080fd5b6001600160601b03811681146102f357600080fd5b600060208284031215613a3857600080fd5b8135612a4a81613a11565b60005b83811015613a5e578181015183820152602001613a46565b50506000910152565b60008151808452613a7f816020860160208601613a43565b601f01601f19169290920160200192915050565b6020815260006001600160601b038084511660208401528060208501511660408401525060ff604084015116606083015260608301511515608083015260018060a01b0360808401511660a083015260a0830151613afc60c08401826001600160a01b03169052565b5060c083015160e080840152613182610100840182613a67565b6001600160a01b03811681146102f357600080fd5b60ff811681146102f357600080fd5b80151581146102f357600080fd5b634e487b7160e01b600052604160045260246000fd5b60405161020081016001600160401b0381118282101715613b8157613b81613b48565b60405290565b60405161018081016001600160401b0381118282101715613b8157613b81613b48565b60405161012081016001600160401b0381118282101715613b8157613b81613b48565b60405161016081016001600160401b0381118282101715613b8157613b81613b48565b60405160e081016001600160401b0381118282101715613b8157613b81613b48565b604051601f8201601f191681016001600160401b0381118282101715613c3a57613c3a613b48565b604052919050565b60006001600160401b03821115613c5b57613c5b613b48565b50601f01601f191660200190565b600082601f830112613c7a57600080fd5b8135613c8d613c8882613c42565b613c12565b818152846020838601011115613ca257600080fd5b816020850160208301376000918101602001919091529392505050565b60008060008060008060c08789031215613cd857600080fd5b8635613ce381613b16565b95506020870135613cf381613a11565b94506040870135613d0381613b2b565b93506060870135613d1381613b3a565b92506080870135613d2381613b16565b915060a08701356001600160401b03811115613d3e57600080fd5b613d4a89828a01613c69565b9150509295509295509295565b600060208284031215613d6957600080fd5b81356001600160401b03811115613d7f57600080fd5b61318284828501613c69565b60008060408385031215613d9e57600080fd5b8235613da981613b16565b915060208301356001600160401b03811115613dc457600080fd5b613dd085828601613c69565b9150509250929050565b64ffffffffff811681146102f357600080fd5b60008060408385031215613e0057600080fd5b8235613e0b81613a11565b91506020830135613e1b81613dda565b809150509250929050565b60008060408385031215613e3957600080fd5b50508035926020909101359150565b600080600060608486031215613e5d57600080fd5b8335613e6881613a11565b92506020840135613e7881613b3a565b91506040840135613e8881613dda565b809150509250925092565b600060208284031215613ea557600080fd5b8135612a4a81613b16565b6001600160c01b0319811681146102f357600080fd5b60008060008060008060c08789031215613edf57600080fd5b8635613eea81613eb0565b9550602087013594506040870135935060608701356001600160401b03811115613f1357600080fd5b613f1f89828a01613c69565b9350506080870135613f3081613a11565b915060a0870135613f4081613eb0565b809150509295509295509295565b60008060408385031215613f6157600080fd5b8235613f6c81613b16565b91506020830135613e1b81613b16565b600060208284031215613f8e57600080fd5b8151612a4a81613b16565b8051613fa481613a11565b919050565b8051613fa481613eb0565b600082601f830112613fc557600080fd5b8151613fd3613c8882613c42565b818152846020838601011115613fe857600080fd5b613182826020830160208701613a43565b805161ffff81168114613fa457600080fd5b8051613fa481613dda565b60006020828403121561402857600080fd5b81516001600160401b038082111561403f57600080fd5b90830190610200828603121561405457600080fd5b61405c613b5e565b61406583613f99565b815261407360208401613f99565b602082015261408460408401613fa9565b604082015261409560608401613fa9565b60608201526080830151608082015260a083015160a082015260c083015160c082015260e083015160e082015261010080840151838111156140d657600080fd5b6140e288828701613fb4565b82840152505061012080840151838111156140fc57600080fd5b61410888828701613fb4565b828401525050610140915061411e828401613ff9565b828201526101609150614132828401613ff9565b82820152610180915081830151828201526101a0915061415382840161400b565b828201526101c0915061416782840161400b565b828201526101e0915061417b82840161400b565b91810191909152949350505050565b8051613fa481613b3a565b6000602082840312156141a757600080fd5b8151612a4a81613b3a565b8051613fa481613b2b565b6000602082840312156141cf57600080fd5b8151612a4a81613b2b565b6000602082840312156141ec57600080fd5b8151612a4a81613dda565b6001600160601b0384168152606060208201526142206060820184516001600160601b03169052565b6000602084015161423c60808401826001600160601b03169052565b5060408401516001600160c01b0319811660a08401525060608401516001600160c01b0319811660c084015250608084015160e083015260a0840151610100818185015260c08601519150610120828186015260e087015192506101408381870152828801519350610200925061016083818801526142bf610260880186613a67565b9450828901519250610180605f1988870301818901526142df8685613a67565b9550828a015193506101a092506142fb8389018561ffff169052565b9089015192506101c0906143148883018561ffff169052565b8901516101e0888101919091529189015164ffffffffff9081169488019490945288015183166102208701528701519091166102408501525060ff841660408401529050613182565b60006020828403121561436f57600080fd5b815162ffffff81168114612a4a57600080fd5b600181811c9082168061439657607f821691505b6020821081036143b657634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156143ce57600080fd5b8151612a4a81613a11565b601f82111561442357600081815260208120601f850160051c810160208610156144005750805b601f850160051c820191505b8181101561441f5782815560010161440c565b5050505b505050565b81516001600160401b0381111561444157614441613b48565b6144558161444f8454614382565b846143d9565b602080601f83116001811461448a57600084156144725750858301515b600019600386901b1c1916600185901b17855561441f565b600085815260208120601f198616915b828110156144b95788860151825594840194600190910190840161449a565b50858210156144d75787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000602082840312156144f957600080fd5b81516001600160401b0381168114612a4a57600080fd5b60006020828403121561452257600080fd5b5051919050565b8051613fa481613b16565b60006040828403121561454657600080fd5b604051604081018181106001600160401b038211171561456857614568613b48565b604052825181526020928301519281019290925250919050565b6000610240828403121561459557600080fd5b61459d613b87565b6145a683614529565b81526145b460208401614529565b60208201526145c560408401613f99565b60408201526145d660608401613f99565b60608201526145e88460808501614534565b60808201526145fa8460c08501614534565b60a082015261010061460e85828601614534565b60c083015261014061462286828701614534565b60e0840152614635866101808701614534565b82840152614647866101c08701614534565b61012084015261465a610200860161418a565b908301525061466c6102208401614529565b6101608201529392505050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561159957611599614679565b6000602082840312156146b457600080fd5b81516001600160401b03808211156146cb57600080fd5b9083019061014082860312156146e057600080fd5b6146e8613baa565b6146f183613f99565b81526147008660208501614534565b602082015260608301518281111561471757600080fd5b61472387828601613fb4565b6040830152506080830151606082015260a0830151608082015260c083015160a082015260e083015160c0820152610100915061476182840161400b565b60e082015261417b610120840161400b565b60006101c0828403121561478657600080fd5b61478e613bcd565b61479783613f99565b81526147a560208401614529565b60208201526147b66040840161418a565b60408201526147c76060840161418a565b60608201526147d86080840161418a565b608082015260a083015160a082015260c083015160c08201526147fe8460e08501614534565b60e082015261012061481285828601614534565b610100830152614826856101608601614534565b908201526148376101a08401614529565b6101408201529392505050565b60006020828403121561485657600080fd5b81516001600160401b038082111561486d57600080fd5b9083019060e0828603121561488157600080fd5b614889613bf0565b61489283613f99565b81526148a060208401613f99565b60208201526148b1604084016141b2565b60408201526148c26060840161418a565b60608201526148d360808401614529565b60808201526148e460a08401614529565b60a082015260c0830151828111156148fb57600080fd5b61490787828601613fb4565b60c08301525095945050505050565b6001600160601b03851681526080602082015260006149386080830186613a67565b828103604084015261494a8186613a67565b91505082606083015295945050505050565b8481526001600160401b0360c01b8416602082015282604082015260806060820152600061498d6080830184613a67565b9695505050505050565b8181038181111561159957611599614679565b600080604083850312156149bd57600080fd5b82516149c881613b16565b6020840151909250613e1b81613b16565b815181526020808301519082015260408101611599565b6001600160a01b039384168152919092166020820152604081019190915260600190565b60008060408385031215614a2757600080fd5b505080516020909101519092909150565b600060a08284031215614a4a57600080fd5b604051608081018181106001600160401b0382111715614a6c57614a6c613b48565b6040528251614a7a81613a11565b81526020830151614a8a81613b16565b6020820152614a9c8460408501614534565b60408201526080830151614aaf81613b16565b60608201529392505050565b634e487b7160e01b600052601260045260246000fdfe07ebcf49758b6ed3af50fa146bec0abe157c0218fe65dc0874c286e9d5da4f00f0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00a2646970667358221220205c96156ebf1c38f1dc14e6d5b3a4a8781b81a13066ddeda1ad07123c8276b264736f6c63430008140033",
887
+ "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101da5760003560e01c8063630361f611610104578063b68d1809116100a2578063cde749f411610071578063cde749f414610445578063ea8665721461044d578063f21de1e81461031c578063f7c34ee01461046057600080fd5b8063b68d18091461040d578063bbfbbfba14610422578063caf4e3d414610435578063cc9fc59a1461043d57600080fd5b8063893d20e8116100de578063893d20e8146103a25780639cdaa7f9146103aa5780639ffcede9146103e5578063ada9652e146103f857600080fd5b8063630361f614610354578063644c45e014610367578063675393bf1461038f57600080fd5b806327bb7a331161017c57806349bb9e4b1161014b57806349bb9e4b146102f65780634d5e16a9146103095780635ab1bd531461031c5780635fd1a5f51461034157600080fd5b806327bb7a33146102b7578063329d6e74146102ca57806336fc697e146102dd5780633d3cf023146102e557600080fd5b80630fec111c116101b85780630fec111c14610252578063138461e0146102675780631eff4b221461026f578063214cdb80146102a457600080fd5b806301ffc9a7146101df5780630aaba8e8146102215780630d8e6e2c14610236575b600080fd5b61020c6101ed3660046139e7565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b61023461022f366004613a26565b610473565b005b61023e610ab1565b60405162ffffff9091168152602001610218565b61025a610b3b565b6040516102189190613a93565b610234610cd7565b6102967f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b604051908152602001610218565b6102346102b23660046139e7565b610ed9565b6102346102c5366004613cbf565b610f06565b6102346102d8366004613d57565b610f92565b6102346110df565b6102346102f3366004613a26565b50565b610234610304366004613d8b565b611125565b610234610317366004613ded565b611224565b6001546001600160a01b03165b6040516001600160a01b039091168152602001610218565b61029661034f366004613e26565b611496565b610234610362366004613e48565b61159f565b600080516020614ad2833981519152546040516001600160601b039091168152602001610218565b61023461039d366004613e93565b611c00565b610329611d0d565b6103bd6103b8366004613ec6565b611e44565b604080519586526020860194909452928401919091526060830152608082015260a001610218565b6102346103f3366004613a26565b611f22565b610296600080516020614ad283398151915281565b60d35b60405160ff9091168152602001610218565b610234610430366004613ded565b611f74565b6103296122db565b610329612372565b61041061239c565b61023461045b366004613f4e565b612413565b61023461046e366004613f4e565b6124ab565b600061047f606e612522565b9150506000816001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa1580156104c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104e69190613f7c565b60405163bd7d9d8560e01b81526001600160601b03851660048201529091506000906001600160a01b0383169063bd7d9d8590602401600060405180830381865afa158015610539573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526105619190810190614016565b6101a081015160405163790a38ad60e01b815264ffffffffff909116600482015290915073__$d53880c81dc91c20799140d711e5ab8718$__9063790a38ad90602401602060405180830381865af41580156105c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105e59190614195565b15610613576040516308cbe08b60e21b81526001600160601b03851660048201526024015b60405180910390fd5b604051639096a1f360e01b81526001600160601b03851660048201526000906001600160a01b03841690639096a1f390602401602060405180830381865afa158015610663573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061068791906141bd565b905060ff81166064146106c157604051634de91cf360e11b81526001600160601b038616600482015260ff8216602482015260440161060a565b6101e0820151604051638d38cd4b60e01b815264ffffffffff909116600482015273__$d53880c81dc91c20799140d711e5ab8718$__90638d38cd4b90602401602060405180830381865af415801561071e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107429190614195565b1561076b57604051634b80547760e11b81526001600160601b038616600482015260240161060a565b8160c001518260a00151146107b55760a082015160c0830151604051632b14368360e11b81526001600160601b03881660048201526024810192909252604482015260640161060a565b61016082015161ffff16156107f95761016082015160405163a5bb07ed60e01b81526001600160601b038716600482015261ffff909116602482015260440161060a565b73__$d53880c81dc91c20799140d711e5ab8718$__63adb618326040518163ffffffff1660e01b8152600401602060405180830381865af4158015610842573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086691906141da565b6101c0830151604051634a19ad8d60e11b815264ffffffffff92831660048201529116602482015273__$d53880c81dc91c20799140d711e5ab8718$__906394335b1a90604401602060405180830381865af41580156108ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ee9190614195565b801561090257508160800151826101800151105b1561093f576101c0820151604051630e79f6e160e21b81526001600160601b038716600482015264ffffffffff909116602482015260440161060a565b73__$d53880c81dc91c20799140d711e5ab8718$__63adb618326040518163ffffffff1660e01b8152600401602060405180830381865af4158015610988573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ac91906141da565b64ffffffffff166101e0830152600354602083015160808401516040516303c5c06160e41b81526001600160a01b0388811660048301526001600160601b03808b16602484015290931660448201526064810191909152911690633c5c061090608401600060405180830381600087803b158015610a2957600080fd5b505af1158015610a3d573d6000803e3d6000fd5b50505050836001600160a01b0316639a960d528684610a5a60c890565b6040518463ffffffff1660e01b8152600401610a78939291906141f7565b600060405180830381600087803b158015610a9257600080fd5b505af1158015610aa6573d6000803e3d6000fd5b505050505050505050565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90632efe011390606401602060405180830381865af4158015610b12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b36919061435d565b905090565b610b4361392b565b604080516080810182527f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b038116835260ff600160601b820481166020850152600160681b909104161515928201929092527f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa3018054600093916060840191610bd390614382565b80601f0160208091040260200160405190810160405280929190818152602001828054610bff90614382565b8015610c4c5780601f10610c2157610100808354040283529160200191610c4c565b820191906000526020600020905b815481529060010190602001808311610c2f57829003601f168201915b50505050508152505090506040518060e00160405280610c6a600090565b6001600160601b0316815260200182600001516001600160601b03168152602001826020015160ff168152602001826040015115158152602001306001600160a01b03168152602001610cbb611d0d565b6001600160a01b03168152602001826060015181525091505090565b6000600080516020614ad283398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610d46573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d6a9190614195565b15610d965780546040516301ab8b6760e21b81526001600160601b03909116600482015260240161060a565b30610da96001546001600160a01b031690565b60405163c3c5a54760e01b81526001600160a01b038381166004830152919091169063c3c5a54790602401602060405180830381865afa158015610df1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e159190614195565b610e3d5760405163b9304b0d60e01b81526001600160a01b038216600482015260240161060a565b6001546001600160a01b0316604051636939560f60e11b81526001600160a01b038381166004830152919091169063d272ac1e90602401602060405180830381865afa158015610e91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eb591906143bc565b82546bffffffffffffffffffffffff19166001600160601b03919091161790915550565b610ee1612799565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b610f0e612799565b610f1882876124ab565b60007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0388166cffffffffffffffffffffffffff1990911617600160601b60ff8816021760ff60681b1916600160681b86151502178155905060018101610f888382614428565b5050505050505050565b73__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__63a123b37c610fb4610ab1565b6040516001600160e01b031960e084901b16815262ffffff9091166004820152602401602060405180830381865af4158015610ff4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061101891906144e7565b600080516020614af28339815191528054600160401b900460ff168061104b575080546001600160401b03808416911610155b156110695760405163f92ee8a960e01b815260040160405180910390fd5b805468ffffffffffffffffff19166001600160401b03831617600160401b178155611093836127d2565b805460ff60401b191681556040516001600160401b03831681527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050565b6110e7612799565b6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b600080516020614af28339815191528054600160401b810460ff1615906001600160401b03166000811580156111585750825b90506000826001600160401b031660011480156111745750303b155b905081158015611182575080155b156111a05760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff1916600117855583156111ca57845460ff60401b1916600160401b1785555b6111d487876127da565b831561121b57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2906020015b60405180910390a15b50505050505050565b6000611230606e612522565b9150506000816001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa158015611273573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112979190613f7c565b60405163bd7d9d8560e01b81526001600160601b03861660048201529091506000906001600160a01b0383169063bd7d9d8590602401600060405180830381865afa1580156112ea573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526113129190810190614016565b6101a081015160405163790a38ad60e01b815264ffffffffff909116600482015290915073__$d53880c81dc91c20799140d711e5ab8718$__9063790a38ad90602401602060405180830381865af4158015611372573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113969190614195565b6113e25760405162461bcd60e51b815260206004820152601f60248201527f4552524f523a5052532d3032303a414c52454144595f41435449564154454400604482015260640161060a565b64ffffffffff84166101a0820181905260e0820151604051631ded81af60e31b81526004810192909252602482015273__$d53880c81dc91c20799140d711e5ab8718$__9063ef6c0d7890604401602060405180830381865af415801561144d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061147191906141da565b64ffffffffff166101c08201526001600160a01b038316639a960d5286836064610a5a565b6040516322f5db0f60e11b815260048101829052600090819073__$5ac3274b8cf1e01ea223bf093142af05b0$__906345ebb61e90602401602060405180830381865af41580156114eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061150f9190614510565b9050600061151d8583612a35565b604051632255341b60e11b81526004810182905290915073__$5ac3274b8cf1e01ea223bf093142af05b0$__906344aa683690602401602060405180830381865af4158015611570573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115949190614510565b925050505b92915050565b60008060006115ac61392b565b6115b6606e612522565b8095508192505050836001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa1580156115fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116209190613f7c565b905160405163bd7d9d8560e01b81526001600160601b038916600482015291935091506000906001600160a01b0384169063bd7d9d8590602401600060405180830381865afa158015611677573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261169f9190810190614016565b80519091506001600160601b038381169116146116fe5760405162461bcd60e51b815260206004820152601760248201527f504f4c4943595f50524f445543545f4d49534d41544348000000000000000000604482015260640161060a565b604051639096a1f360e01b81526001600160601b038816600482015261177c906001600160a01b03851690639096a1f390602401602060405180830381865afa15801561174f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061177391906141bd565b60ff16600a1490565b6117c85760405162461bcd60e51b815260206004820152601f60248201527f4552524f523a5052532d3032313a53544154455f4e4f545f4150504c49454400604482015260640161060a565b6000806000806118568888878a6001600160a01b03166390af70648b6040518263ffffffff1660e01b815260040161180f91906001600160601b0391909116815260200190565b61024060405180830381865afa15801561182d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118519190614582565b612a51565b93509350935093506000611868602890565b905064ffffffffff8a161561191957606464ffffffffff8b166101a0880181905260e0880151604051631ded81af60e31b81526004810192909252602482015290915073__$d53880c81dc91c20799140d711e5ab8718$__9063ef6c0d7890604401602060405180830381865af41580156118e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061190b91906141da565b64ffffffffff166101c08701525b60008b1561194d576119318a898f8a60a00151612bd2565b90508660a001518760c001818151611949919061468f565b9052505b600360009054906101000a90046001600160a01b03166001600160a01b031663a7e0dea78b8f8887866040518663ffffffff1660e01b81526004016119cb9594939291906001600160a01b039590951685526001600160601b0393841660208601529190921660408401526060830191909152608082015260a00190565b6000604051808303816000875af11580156119ea573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611a1291908101906146a2565b9350896001600160a01b0316639a960d528e89856040518463ffffffff1660e01b8152600401611a44939291906141f7565b600060405180830381600087803b158015611a5e57600080fd5b505af1158015611a72573d6000803e3d6000fd5b50506040516355e343a960e01b81526001600160601b03891660048201526001600160a01b038c1692506355e343a991506024016101c060405180830381865afa158015611ac4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ae89190614773565b6080015115611bf1576000611b056001546001600160a01b031690565b6040516305247a1760e51b81526001600160601b03891660048201526001600160a01b03919091169063a48f42e090602401600060405180830381865afa158015611b54573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611b7c9190810190614844565b608001519050806001600160a01b03166338f563788f8a61010001518860400151886040518563ffffffff1660e01b8152600401611bbd9493929190614916565b600060405180830381600087803b158015611bd757600080fd5b505af1158015611beb573d6000803e3d6000fd5b50505050505b50505050505050505050505050565b611c08612799565b806001600160a01b03163b600003611c3e5760405163fdeac91f60e01b81526001600160a01b038216600482015260240161060a565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b815263230c0c8160e11b60048201526301ffc9a790602401602060405180830381865afa925050508015611cb8575060408051601f3d908101601f19168201909252611cb591810190614195565b60015b611ce05760405163fdeac91f60e01b81526001600160a01b038216600482015260240161060a565b80611d095760405163fdeac91f60e01b81526001600160a01b038316600482015260240161060a565b5050565b600080600080516020614ad283398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015611d7d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611da19190614195565b15611e2e576001546001600160a01b03168154604051631c5da14d60e11b81526001600160601b0390911660048201526001600160a01b0391909116906338bb429a90602401602060405180830381865afa158015611e04573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e289190613f7c565b91505090565b54600160601b90046001600160a01b0316919050565b600080600080600080611e5561318a565b90506000816001600160a01b0316635e78426b8d8f8e8e6040518563ffffffff1660e01b8152600401611e8b949392919061495c565b602060405180830381865afa158015611ea8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ecc9190614510565b9050611eda81838b8b6131a9565b92985090965094509250611eee868261468f565b9650611efa848661468f565b611f04908861468f565b9650611f10838861468f565b96505050965096509650965096915050565b60405162461bcd60e51b815260206004820152602160248201527f4552524f523a5052532d3233353a4e4f545f5945545f494d504c454d454e54456044820152601160fa1b606482015260840161060a565b600080611f81606e612522565b915091506000816001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa158015611fc5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fe99190613f7c565b60405163bd7d9d8560e01b81526001600160601b03871660048201529091506000906001600160a01b0383169063bd7d9d8590602401600060405180830381865afa15801561203c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526120649190810190614016565b90508060a001518160c00151036120a65760c081015160405163038a855760e51b81526001600160601b0388166004820152602481019190915260440161060a565b60008160c001518260a001516120bc9190614997565b905060006120d08587600001518a85612bd2565b9050818360c0018181516120e4919061468f565b9052506003546020840151604051639babe3bf60e01b81526001600160a01b0388811660048301526001600160601b03909216602482015260448101849052911690639babe3bf90606401600060405180830381600087803b15801561214957600080fd5b505af115801561215d573d6000803e3d6000fd5b50505050846001600160a01b0316639a960d52898561217a60ff90565b6040518463ffffffff1660e01b8152600401612198939291906141f7565b600060405180830381600087803b1580156121b257600080fd5b505af11580156121c6573d6000803e3d6000fd5b5050604051638d38cd4b60e01b815264ffffffffff8a16600482015273__$d53880c81dc91c20799140d711e5ab8718$__9250638d38cd4b9150602401602060405180830381865af4158015612220573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122449190614195565b80156122cc57506101a083015160405163790a38ad60e01b815264ffffffffff909116600482015273__$d53880c81dc91c20799140d711e5ab8718$__9063790a38ad90602401602060405180830381865af41580156122a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122cc9190614195565b15610f8857610f888888611224565b6000806122f06001546001600160a01b031690565b6001600160a01b031663d39e604360285b61230961239c565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa15801561234e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115999190613f7c565b6000806123876001546001600160a01b031690565b6001600160a01b031663d39e60436046612301565b604051632392b61b60e21b81526003600482015260009073__$9dab98ad7ae1a426029e5739f922230a41$__90638e4ad86c90602401602060405180830381865af41580156123ef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b3691906141bd565b61241b612799565b61249b82836001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa15801561245d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061248191906143bc565b603c60008560405180602001604052806000815250610f06565b611d09637b6a51fd60e01b610ed9565b6124b3612799565b6124bc81611c00565b6124c46110df565b6001600160a01b0382166124eb5760405163f17ef42d60e01b815260040160405180910390fd5b50600080516020614ad283398151915280546001600160601b0316600160601b6001600160a01b0390931692909202919091179055565b61252a61392b565b60008061253f6001546001600160a01b031690565b6040516308b09a5f60e41b81523360048201529091506001600160a01b03821690638b09a5f090602401600060405180830381865afa158015612586573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526125ae9190810190614844565b92506125c483604001518560ff90811691161490565b6126065760405162461bcd60e51b815260206004820152601360248201527213d0929150d517d516541157d2539590531251606a1b604482015260640161060a565b60208301516040516305247a1760e51b81526001600160601b0390911660048201526000906001600160a01b0383169063a48f42e090602401600060405180830381865afa15801561265c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526126849190810190614844565b6080015190508092506000836001600160a01b031663bf7e214f6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156126cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126f19190613f7c565b6080860151604051629b7b3560e61b81526001600160a01b0391821660048201529192508216906326decd4090602401602060405180830381865afa15801561273e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127629190614195565b1561279157608085015160405163d53987e560e01b81526001600160a01b03909116600482015260240161060a565b505050915091565b600080516020614af283398151915254600160401b900460ff166127d057604051631afcd79f60e31b815260040160405180910390fd5b565b6101da612799565b600080516020614af28339815191528054600160401b810460ff1615906001600160401b031660008115801561280d5750825b90506000826001600160401b031660011480156128295750303b155b905081158015612837575080155b156128555760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561287f57845460ff60401b1916600160401b1785555b6000808780602001905181019061289691906149aa565b90925090506128a5828a612413565b6001546001600160a01b031663d39e6043608c6128c061239c565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa158015612905573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129299190613f7c565b600280546001600160a01b0319166001600160a01b039283161790556001541663d39e604360dc61295861239c565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa15801561299d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129c19190613f7c565b600380546001600160a01b0319166001600160a01b03929092169190911790556129f163fec67fcb60e01b610ed9565b5050831561121b57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d290602001611212565b6000612a4a8383670de0b6b3a7640000613842565b9392505050565b600080612a5c613969565b60608401516020860151604051634793b4ab60e01b81526001600160601b038216600482015291945092506000906001600160a01b03881690634793b4ab90602401600060405180830381865afa158015612abb573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612ae391908101906146a2565b80519092506001600160601b03858116911614612b3b5760405162461bcd60e51b81526020600482015260166024820152750a09e989286b2be84aa9c88988abe9a92a69a82a886960531b604482015260640161060a565b6040516355e343a960e01b81526001600160601b03851660048201526000906001600160a01b038916906355e343a9906024016101c060405180830381865afa158015612b8c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bb09190614773565b9050612bc48160a001518860800151611496565b915050945094509450949050565b60008115613182576000856001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa158015612c1a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c3e9190613f7c565b60405163242bdc1960e21b81526001600160601b03871660048201526001600160a01b0391909116906390af70649060240161024060405180830381865afa158015612c8e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612cb29190614582565b60208101519091506000612cce6001546001600160a01b031690565b604051631c5da14d60e11b81526001600160601b03881660048201526001600160a01b0391909116906338bb429a90602401602060405180830381865afa158015612d1d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d419190613f7c565b90506000886001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa158015612d83573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612da79190613f7c565b60608501516040516355e343a960e01b81526001600160601b0390911660048201526001600160a01b0391909116906355e343a9906024016101c060405180830381865afa158015612dfd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e219190614773565b61014081015160a08601516040516346f0526160e11b8152899850929350909173__$a23651848365a6a5ca15f07b4331037f48$__90638de0a4c290612e6b9084906004016149d9565b602060405180830381865af4158015612e88573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612eac9190614195565b15612f18576040516317d5759960e31b81526001600160a01b0386169063beabacc890612ee190879086908d906004016149f0565b600060405180830381600087803b158015612efb57600080fd5b505af1158015612f0f573d6000803e3d6000fd5b5050505061317b565b60a086015160405163012ebd8360e21b815281516004820152602090910151602482015260448101889052600090819073__$a23651848365a6a5ca15f07b4331037f48$__906304baf60c906064016040805180830381865af4158015612f83573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612fa79190614a14565b91509150600088610160015190508a886001600160a01b03166321df0da76040518163ffffffff1660e01b8152600401602060405180830381865afa158015612ff4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130189190613f7c565b604051636eb1769f60e11b81526001600160a01b038a811660048301528b81166024830152919091169063dd62ed3e90604401602060405180830381865afa158015613068573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061308c9190614510565b10156130b15786888c604051636d675c4360e01b815260040161060a939291906149f0565b6040516317d5759960e31b81526001600160a01b0389169063beabacc8906130e1908a90859088906004016149f0565b600060405180830381600087803b1580156130fb57600080fd5b505af115801561310f573d6000803e3d6000fd5b50506040516317d5759960e31b81526001600160a01b038b16925063beabacc89150613143908a90899087906004016149f0565b600060405180830381600087803b15801561315d57600080fd5b505af1158015613171573d6000803e3d6000fd5b50939b5050505050505b5050505050505b949350505050565b600061319461392b565b61319e606e612522565b506080015192915050565b600080600080600080886001600160a01b031663de7b5d146040518163ffffffff1660e01b8152600401602060405180830381865afa1580156131f0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132149190613f7c565b9050806001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa158015613254573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132789190613f7c565b9150506000886001600160a01b0316631bdd6b766040518163ffffffff1660e01b8152600401602060405180830381865afa1580156132bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132df91906143bc565b604051634793b4ab60e01b81526001600160601b038a1660048201529091506000906001600160a01b03841690634793b4ab90602401600060405180830381865afa158015613332573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261335a91908101906146a2565b80519091506001600160601b038381169116146133c45760405162461bcd60e51b815260206004820152602260248201527f4552524f523a5052532d3033353a42554e444c455f504f4f4c5f4d49534d4154604482015261086960f31b606482015260840161060a565b6000836001600160a01b03166390af70648c6001600160a01b03166251884a6040518163ffffffff1660e01b8152600401602060405180830381865afa158015613412573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061343691906143bc565b6040516001600160e01b031960e084901b1681526001600160601b03909116600482015260240161024060405180830381865afa15801561347b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061349f9190614582565b60a081015160405163012ebd8360e21b8152815160048201526020909101516024820152604481018e905290915073__$a23651848365a6a5ca15f07b4331037f48$__906304baf60c906064016040805180830381865af4158015613508573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061352c9190614a14565b506040516355e343a960e01b81526001600160601b0385166004820152909850600091506001600160a01b038516906355e343a9906024016101c060405180830381865afa158015613582573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135a69190614773565b60e081015160405163012ebd8360e21b8152815160048201526020909101516024820152604481018e905290915073__$a23651848365a6a5ca15f07b4331037f48$__906304baf60c906064016040805180830381865af415801561360f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136339190614a14565b50809750505060008a6001600160a01b031663db6dcc956040518163ffffffff1660e01b8152600401602060405180830381865afa158015613679573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061369d91906143bc565b604051639ad69c6760e01b81526001600160601b03821660048201529091506000906001600160a01b03861690639ad69c679060240160a060405180830381865afa1580156136f0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137149190614a38565b604080820151905163012ebd8360e21b8152815160048201526020909101516024820152604481018f905290915073__$a23651848365a6a5ca15f07b4331037f48$__906304baf60c906064016040805180830381865af415801561377d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137a19190614a14565b5060208481015160405163012ebd8360e21b8152815160048201529101516024820152604481018f905290965073__$a23651848365a6a5ca15f07b4331037f48$__92506304baf60c91506064016040805180830381865af415801561380b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061382f9190614a14565b5080955050505050945094509450949050565b600080806000198587098587029250828110838203039150508060000361387c5783828161387257613872614abb565b0492505050612a4a565b8084116138c35760405162461bcd60e51b81526020600482015260156024820152744d6174683a206d756c446976206f766572666c6f7760581b604482015260640161060a565b600084868809600260036001881981018916988990049182028318808302840302808302840302808302840302808302840302808302840302918202909203026000889003889004909101858311909403939093029303949094049190911702949350505050565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c081019190915290565b60405180610120016040528060006001600160601b031681526020016139a2604051806040016040528060008152602001600081525090565b81526020016060815260200160008152602001600081526020016000815260200160008152602001600064ffffffffff168152602001600064ffffffffff1681525090565b6000602082840312156139f957600080fd5b81356001600160e01b031981168114612a4a57600080fd5b6001600160601b03811681146102f357600080fd5b600060208284031215613a3857600080fd5b8135612a4a81613a11565b60005b83811015613a5e578181015183820152602001613a46565b50506000910152565b60008151808452613a7f816020860160208601613a43565b601f01601f19169290920160200192915050565b6020815260006001600160601b038084511660208401528060208501511660408401525060ff604084015116606083015260608301511515608083015260018060a01b0360808401511660a083015260a0830151613afc60c08401826001600160a01b03169052565b5060c083015160e080840152613182610100840182613a67565b6001600160a01b03811681146102f357600080fd5b60ff811681146102f357600080fd5b80151581146102f357600080fd5b634e487b7160e01b600052604160045260246000fd5b60405161020081016001600160401b0381118282101715613b8157613b81613b48565b60405290565b60405161018081016001600160401b0381118282101715613b8157613b81613b48565b60405161012081016001600160401b0381118282101715613b8157613b81613b48565b60405161016081016001600160401b0381118282101715613b8157613b81613b48565b60405160e081016001600160401b0381118282101715613b8157613b81613b48565b604051601f8201601f191681016001600160401b0381118282101715613c3a57613c3a613b48565b604052919050565b60006001600160401b03821115613c5b57613c5b613b48565b50601f01601f191660200190565b600082601f830112613c7a57600080fd5b8135613c8d613c8882613c42565b613c12565b818152846020838601011115613ca257600080fd5b816020850160208301376000918101602001919091529392505050565b60008060008060008060c08789031215613cd857600080fd5b8635613ce381613b16565b95506020870135613cf381613a11565b94506040870135613d0381613b2b565b93506060870135613d1381613b3a565b92506080870135613d2381613b16565b915060a08701356001600160401b03811115613d3e57600080fd5b613d4a89828a01613c69565b9150509295509295509295565b600060208284031215613d6957600080fd5b81356001600160401b03811115613d7f57600080fd5b61318284828501613c69565b60008060408385031215613d9e57600080fd5b8235613da981613b16565b915060208301356001600160401b03811115613dc457600080fd5b613dd085828601613c69565b9150509250929050565b64ffffffffff811681146102f357600080fd5b60008060408385031215613e0057600080fd5b8235613e0b81613a11565b91506020830135613e1b81613dda565b809150509250929050565b60008060408385031215613e3957600080fd5b50508035926020909101359150565b600080600060608486031215613e5d57600080fd5b8335613e6881613a11565b92506020840135613e7881613b3a565b91506040840135613e8881613dda565b809150509250925092565b600060208284031215613ea557600080fd5b8135612a4a81613b16565b6001600160c01b0319811681146102f357600080fd5b60008060008060008060c08789031215613edf57600080fd5b8635613eea81613eb0565b9550602087013594506040870135935060608701356001600160401b03811115613f1357600080fd5b613f1f89828a01613c69565b9350506080870135613f3081613a11565b915060a0870135613f4081613eb0565b809150509295509295509295565b60008060408385031215613f6157600080fd5b8235613f6c81613b16565b91506020830135613e1b81613b16565b600060208284031215613f8e57600080fd5b8151612a4a81613b16565b8051613fa481613a11565b919050565b8051613fa481613eb0565b600082601f830112613fc557600080fd5b8151613fd3613c8882613c42565b818152846020838601011115613fe857600080fd5b613182826020830160208701613a43565b805161ffff81168114613fa457600080fd5b8051613fa481613dda565b60006020828403121561402857600080fd5b81516001600160401b038082111561403f57600080fd5b90830190610200828603121561405457600080fd5b61405c613b5e565b61406583613f99565b815261407360208401613f99565b602082015261408460408401613fa9565b604082015261409560608401613fa9565b60608201526080830151608082015260a083015160a082015260c083015160c082015260e083015160e082015261010080840151838111156140d657600080fd5b6140e288828701613fb4565b82840152505061012080840151838111156140fc57600080fd5b61410888828701613fb4565b828401525050610140915061411e828401613ff9565b828201526101609150614132828401613ff9565b82820152610180915081830151828201526101a0915061415382840161400b565b828201526101c0915061416782840161400b565b828201526101e0915061417b82840161400b565b91810191909152949350505050565b8051613fa481613b3a565b6000602082840312156141a757600080fd5b8151612a4a81613b3a565b8051613fa481613b2b565b6000602082840312156141cf57600080fd5b8151612a4a81613b2b565b6000602082840312156141ec57600080fd5b8151612a4a81613dda565b6001600160601b0384168152606060208201526142206060820184516001600160601b03169052565b6000602084015161423c60808401826001600160601b03169052565b5060408401516001600160c01b0319811660a08401525060608401516001600160c01b0319811660c084015250608084015160e083015260a0840151610100818185015260c08601519150610120828186015260e087015192506101408381870152828801519350610200925061016083818801526142bf610260880186613a67565b9450828901519250610180605f1988870301818901526142df8685613a67565b9550828a015193506101a092506142fb8389018561ffff169052565b9089015192506101c0906143148883018561ffff169052565b8901516101e0888101919091529189015164ffffffffff9081169488019490945288015183166102208701528701519091166102408501525060ff841660408401529050613182565b60006020828403121561436f57600080fd5b815162ffffff81168114612a4a57600080fd5b600181811c9082168061439657607f821691505b6020821081036143b657634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156143ce57600080fd5b8151612a4a81613a11565b601f82111561442357600081815260208120601f850160051c810160208610156144005750805b601f850160051c820191505b8181101561441f5782815560010161440c565b5050505b505050565b81516001600160401b0381111561444157614441613b48565b6144558161444f8454614382565b846143d9565b602080601f83116001811461448a57600084156144725750858301515b600019600386901b1c1916600185901b17855561441f565b600085815260208120601f198616915b828110156144b95788860151825594840194600190910190840161449a565b50858210156144d75787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000602082840312156144f957600080fd5b81516001600160401b0381168114612a4a57600080fd5b60006020828403121561452257600080fd5b5051919050565b8051613fa481613b16565b60006040828403121561454657600080fd5b604051604081018181106001600160401b038211171561456857614568613b48565b604052825181526020928301519281019290925250919050565b6000610240828403121561459557600080fd5b61459d613b87565b6145a683614529565b81526145b460208401614529565b60208201526145c560408401613f99565b60408201526145d660608401613f99565b60608201526145e88460808501614534565b60808201526145fa8460c08501614534565b60a082015261010061460e85828601614534565b60c083015261014061462286828701614534565b60e0840152614635866101808701614534565b82840152614647866101c08701614534565b61012084015261465a610200860161418a565b908301525061466c6102208401614529565b6101608201529392505050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561159957611599614679565b6000602082840312156146b457600080fd5b81516001600160401b03808211156146cb57600080fd5b9083019061014082860312156146e057600080fd5b6146e8613baa565b6146f183613f99565b81526147008660208501614534565b602082015260608301518281111561471757600080fd5b61472387828601613fb4565b6040830152506080830151606082015260a0830151608082015260c083015160a082015260e083015160c0820152610100915061476182840161400b565b60e082015261417b610120840161400b565b60006101c0828403121561478657600080fd5b61478e613bcd565b61479783613f99565b81526147a560208401614529565b60208201526147b66040840161418a565b60408201526147c76060840161418a565b60608201526147d86080840161418a565b608082015260a083015160a082015260c083015160c08201526147fe8460e08501614534565b60e082015261012061481285828601614534565b610100830152614826856101608601614534565b908201526148376101a08401614529565b6101408201529392505050565b60006020828403121561485657600080fd5b81516001600160401b038082111561486d57600080fd5b9083019060e0828603121561488157600080fd5b614889613bf0565b61489283613f99565b81526148a060208401613f99565b60208201526148b1604084016141b2565b60408201526148c26060840161418a565b60608201526148d360808401614529565b60808201526148e460a08401614529565b60a082015260c0830151828111156148fb57600080fd5b61490787828601613fb4565b60c08301525095945050505050565b6001600160601b03851681526080602082015260006149386080830186613a67565b828103604084015261494a8186613a67565b91505082606083015295945050505050565b8481526001600160401b0360c01b8416602082015282604082015260806060820152600061498d6080830184613a67565b9695505050505050565b8181038181111561159957611599614679565b600080604083850312156149bd57600080fd5b82516149c881613b16565b6020840151909250613e1b81613b16565b815181526020808301519082015260408101611599565b6001600160a01b039384168152919092166020820152604081019190915260600190565b60008060408385031215614a2757600080fd5b505080516020909101519092909150565b600060a08284031215614a4a57600080fd5b604051608081018181106001600160401b0382111715614a6c57614a6c613b48565b6040528251614a7a81613a11565b81526020830151614a8a81613b16565b6020820152614a9c8460408501614534565b60408201526080830151614aaf81613b16565b60608201529392505050565b634e487b7160e01b600052601260045260246000fdfe07ebcf49758b6ed3af50fa146bec0abe157c0218fe65dc0874c286e9d5da4f00f0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00a2646970667358221220205c96156ebf1c38f1dc14e6d5b3a4a8781b81a13066ddeda1ad07123c8276b264736f6c63430008140033",
888
+ "linkReferences": {
889
+ "contracts/types/Fee.sol": {
890
+ "FeeLib": [
891
+ {
892
+ "length": 20,
893
+ "start": 12073
894
+ },
895
+ {
896
+ "length": 20,
897
+ "start": 12336
898
+ },
899
+ {
900
+ "length": 20,
901
+ "start": 13749
902
+ },
903
+ {
904
+ "length": 20,
905
+ "start": 14012
906
+ },
907
+ {
908
+ "length": 20,
909
+ "start": 14378
910
+ },
911
+ {
912
+ "length": 20,
913
+ "start": 14518
914
+ }
915
+ ]
916
+ },
917
+ "contracts/types/NftId.sol": {
918
+ "NftIdLib": [
919
+ {
920
+ "length": 20,
921
+ "start": 3570
922
+ },
923
+ {
924
+ "length": 20,
925
+ "start": 7721
926
+ }
927
+ ]
928
+ },
929
+ "contracts/types/Timestamp.sol": {
930
+ "TimestampLib": [
931
+ {
932
+ "length": 20,
933
+ "start": 1645
934
+ },
935
+ {
936
+ "length": 20,
937
+ "start": 1994
938
+ },
939
+ {
940
+ "length": 20,
941
+ "start": 2273
942
+ },
943
+ {
944
+ "length": 20,
945
+ "start": 2422
946
+ },
947
+ {
948
+ "length": 20,
949
+ "start": 2599
950
+ },
951
+ {
952
+ "length": 20,
953
+ "start": 5150
954
+ },
955
+ {
956
+ "length": 20,
957
+ "start": 5369
958
+ },
959
+ {
960
+ "length": 20,
961
+ "start": 6547
962
+ },
963
+ {
964
+ "length": 20,
965
+ "start": 8906
966
+ },
967
+ {
968
+ "length": 20,
969
+ "start": 9044
970
+ }
971
+ ]
972
+ },
973
+ "contracts/types/UFixed.sol": {
974
+ "UFixedLib": [
975
+ {
976
+ "length": 20,
977
+ "start": 5527
978
+ },
979
+ {
980
+ "length": 20,
981
+ "start": 5660
982
+ }
983
+ ]
984
+ },
985
+ "contracts/types/Version.sol": {
986
+ "VersionLib": [
987
+ {
988
+ "length": 20,
989
+ "start": 3006
990
+ },
991
+ {
992
+ "length": 20,
993
+ "start": 4218
994
+ }
995
+ ],
996
+ "VersionPartLib": [
997
+ {
998
+ "length": 20,
999
+ "start": 9371
1000
+ }
1001
+ ]
1002
+ }
1003
+ },
1004
+ "deployedLinkReferences": {
1005
+ "contracts/types/Fee.sol": {
1006
+ "FeeLib": [
1007
+ {
1008
+ "length": 20,
1009
+ "start": 11843
1010
+ },
1011
+ {
1012
+ "length": 20,
1013
+ "start": 12106
1014
+ },
1015
+ {
1016
+ "length": 20,
1017
+ "start": 13519
1018
+ },
1019
+ {
1020
+ "length": 20,
1021
+ "start": 13782
1022
+ },
1023
+ {
1024
+ "length": 20,
1025
+ "start": 14148
1026
+ },
1027
+ {
1028
+ "length": 20,
1029
+ "start": 14288
1030
+ }
1031
+ ]
1032
+ },
1033
+ "contracts/types/NftId.sol": {
1034
+ "NftIdLib": [
1035
+ {
1036
+ "length": 20,
1037
+ "start": 3340
1038
+ },
1039
+ {
1040
+ "length": 20,
1041
+ "start": 7491
1042
+ }
1043
+ ]
1044
+ },
1045
+ "contracts/types/Timestamp.sol": {
1046
+ "TimestampLib": [
1047
+ {
1048
+ "length": 20,
1049
+ "start": 1415
1050
+ },
1051
+ {
1052
+ "length": 20,
1053
+ "start": 1764
1054
+ },
1055
+ {
1056
+ "length": 20,
1057
+ "start": 2043
1058
+ },
1059
+ {
1060
+ "length": 20,
1061
+ "start": 2192
1062
+ },
1063
+ {
1064
+ "length": 20,
1065
+ "start": 2369
1066
+ },
1067
+ {
1068
+ "length": 20,
1069
+ "start": 4920
1070
+ },
1071
+ {
1072
+ "length": 20,
1073
+ "start": 5139
1074
+ },
1075
+ {
1076
+ "length": 20,
1077
+ "start": 6317
1078
+ },
1079
+ {
1080
+ "length": 20,
1081
+ "start": 8676
1082
+ },
1083
+ {
1084
+ "length": 20,
1085
+ "start": 8814
1086
+ }
1087
+ ]
1088
+ },
1089
+ "contracts/types/UFixed.sol": {
1090
+ "UFixedLib": [
1091
+ {
1092
+ "length": 20,
1093
+ "start": 5297
1094
+ },
1095
+ {
1096
+ "length": 20,
1097
+ "start": 5430
1098
+ }
1099
+ ]
1100
+ },
1101
+ "contracts/types/Version.sol": {
1102
+ "VersionLib": [
1103
+ {
1104
+ "length": 20,
1105
+ "start": 2776
1106
+ },
1107
+ {
1108
+ "length": 20,
1109
+ "start": 3988
1110
+ }
1111
+ ],
1112
+ "VersionPartLib": [
1113
+ {
1114
+ "length": 20,
1115
+ "start": 9141
1116
+ }
1117
+ ]
1118
+ }
1119
+ }
1120
+ }