{"id":21314120,"url":"https://github.com/bitxx/uniswap-v2","last_synced_at":"2025-10-04T14:25:56.515Z","repository":{"id":132715103,"uuid":"569642450","full_name":"bitxx/uniswap-v2","owner":"bitxx","description":"自行整合uniswap v2相关源码，基于hardhat框架管理和快捷发布","archived":false,"fork":false,"pushed_at":"2024-05-06T06:17:09.000Z","size":8059,"stargazers_count":9,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T12:03:00.546Z","etag":null,"topics":["contract","hardhat","solidity","uniswap","uniswapv2"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitxx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-23T09:44:04.000Z","updated_at":"2025-01-06T13:25:24.000Z","dependencies_parsed_at":"2024-11-21T18:20:49.893Z","dependency_job_id":null,"html_url":"https://github.com/bitxx/uniswap-v2","commit_stats":null,"previous_names":["bitxx/uniswap-v2"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/bitxx/uniswap-v2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitxx%2Funiswap-v2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitxx%2Funiswap-v2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitxx%2Funiswap-v2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitxx%2Funiswap-v2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitxx","download_url":"https://codeload.github.com/bitxx/uniswap-v2/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitxx%2Funiswap-v2/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264923080,"owners_count":23683716,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["contract","hardhat","solidity","uniswap","uniswapv2"],"created_at":"2024-11-21T18:10:44.573Z","updated_at":"2025-10-04T14:25:51.477Z","avatar_url":"https://github.com/bitxx.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# uniswap-v2\n基于hardhat框架管理和发布uniswap v2\n建议结合本文来深入了解源码：\n1. [uniswap-v2实现过程分析](http://www.bitxx.top/articles/e04fabc2/) \n2. [uniswap-v2部署过程](http://www.bitxx.top/articles/3b89cd2c/) \n\n\n## 目录说明\netherscan：存放整合后的合约，etherscan网站验证合约需要\nfrontend：前端代码\nhaddhat：合约，基于hardhat框架\n\n## 信息整理\n使用本项目，goerli测试网自行发布信息如下：\n1. [WETH9地址](https://goerli.etherscan.io/address/0xFe33eC9960E430608030e92860264B486Ae99Ef2) ：0xFe33eC9960E430608030e92860264B486Ae99Ef2\n2. [UniswapV2Factory合约地址](https://goerli.etherscan.io/address/0x08b99e6b892da793b3da07db14d83c86337d5b1c) ：0x08b99e6b892da793b3da07db14d83c86337d5b1c\n3. [UniswapV2Router02合约地址](https://goerli.etherscan.io/address/0x4A566ba09a8628d2a3BC7132f6F9F1D3Fe8Aca61) ：0x4A566ba09a8628d2a3BC7132f6F9F1D3Fe8Aca61\n4. UniswapV2Factory的`INIT_CODE_PAIR_HASH` = 0x6ea2252a145d03633feebbade3509ebd120dbe9d50dbf6bd343c366dc155dc67\n5. [AAA Token](https://goerli.etherscan.io/token/0x41466d52a90dFa935463c38B7D477059D5B04093) ：0x41466d52a90dFa935463c38B7D477059D5B04093\n6. [BBB Token](https://goerli.etherscan.io/token/0xC180BA5FD897781f5764c1B079e21Be2a77855Ee) ：0xC180BA5FD897781f5764c1B079e21Be2a77855Ee\n7. [MyTokenList](https://gist.githubusercontent.com/bitxx/53780a04750e640b6e5171090b7707ac/raw/d77990cd7a69f7bf559dda874d9e401b747fa6a8/token.json)\n\n\n## 发布\n```shell\ncd ./uniswap-v2/hardhat\nnpm install --force\n\n# 1. 发布weth9合约\nnpx hardhat --network goerli run scripts/deploy_1_weth9.js -h\n\n# 2. 发布工厂合约\nnpx hardhat --network goerli run scripts/deploy_2_factory.js \n\n# 3. 发布路由合约\nnpx hardhat --network goerli run scripts/deploy_3_router.js\n\n# 4. 发布erc20合约\nnpx hardhat --network goerli run scripts/deploy_4_erc20.js\n```\n`注意：`发布2-4的合约时，需要传入相应参数，具体请参考我这篇文档：[uniswap-v2部署过程](https://www.bitxx.top/articles/3b89cd2c/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitxx%2Funiswap-v2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitxx%2Funiswap-v2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitxx%2Funiswap-v2/lists"}