{"id":30199765,"url":"https://github.com/codingwithmanny/zkevm-brownie-erc20","last_synced_at":"2025-08-13T08:42:00.250Z","repository":{"id":233414515,"uuid":"615730300","full_name":"codingwithmanny/zkevm-brownie-erc20","owner":"codingwithmanny","description":"An example repository demonstrating how to deploy an erc20 token contract to Polygon zkEVM Testnet","archived":false,"fork":false,"pushed_at":"2023-03-18T14:13:33.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-04T06:55:50.843Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codingwithmanny.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2023-03-18T14:12:49.000Z","updated_at":"2025-02-05T22:05:56.000Z","dependencies_parsed_at":"2024-04-16T05:03:08.519Z","dependency_job_id":"b258e78a-110c-401e-835f-a15266d735bd","html_url":"https://github.com/codingwithmanny/zkevm-brownie-erc20","commit_stats":null,"previous_names":["codingwithmanny/zkevm-brownie-erc20"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codingwithmanny/zkevm-brownie-erc20","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingwithmanny%2Fzkevm-brownie-erc20","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingwithmanny%2Fzkevm-brownie-erc20/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingwithmanny%2Fzkevm-brownie-erc20/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingwithmanny%2Fzkevm-brownie-erc20/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codingwithmanny","download_url":"https://codeload.github.com/codingwithmanny/zkevm-brownie-erc20/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingwithmanny%2Fzkevm-brownie-erc20/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270212087,"owners_count":24546101,"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","status":"online","status_checked_at":"2025-08-13T02:00:09.904Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-08-13T08:41:53.797Z","updated_at":"2025-08-13T08:42:00.229Z","avatar_url":"https://github.com/codingwithmanny.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Example Brownie ERC20 Token Contract For Polygon zkEVM Testnet\n\nThe following is an example of ERC20 Token Contract configured to be deployed to Polygon zkEVM Testnet.\n\n---\n\n## Requirements\n\nTake note of the python version as the latest version of python, at the time of this repository, isn't working with brownie.\n\n- Python v3.9.5\n- Brownie v1.19.3\n\n---\n\n## Configuration\n\nSteps needed before hand to deploy the contract the zkEVM Testnet.\n\n### Add zkEVM Testnet Network\n\nAdd the network support in brownie.\n\n```bash\nbrownie networks add Polygon polygon-zkevm-test host=\"https://rpc.public.zkevm-test.net\" name=\"zkEVM Testnet\" chainid=1442 explorer=\"https://explorer.public.zkevm-test.net\";\n\n# Expected Output\n# Brownie v1.19.3 - Python development framework for Ethereum\n# \n# SUCCESS: A new network 'zkEVM Testnet' has been added\n#   └─zkEVM Testnet\n#     ├─id: polygon-zkevm-test\n#     ├─chainid: 1442\n#     ├─explorer: https://explorer.public.zkevm-test.net\n#     └─host: https://rpc.public.zkevm-test.net\n```\n\nVerify the network has been successfully added.\n\n```bash\nbrownie networks list true;\n\n# Expected Output:\n# ...\n# \n# Polygon\n#   ├─Mainnet (Infura)\n#   │ ├─id: polygon-main\n#   │ ├─chainid: 137\n#   │ ├─explorer: https://api.polygonscan.com/api\n#   │ ├─host: https://polygon-mainnet.infura.io/v3/$WEB3_INFURA_PROJECT_ID\n#   │ └─multicall2: 0xc8E51042792d7405184DfCa245F2d27B94D013b6\n#   ├─Mumbai Testnet (Infura)\n#   │ ├─id: polygon-test\n#   │ ├─chainid: 80001\n#   │ ├─explorer: https://api-testnet.polygonscan.com/api\n#   │ ├─host: https://polygon-mumbai.infura.io/v3/$WEB3_INFURA_PROJECT_ID\n#   │ └─multicall2: 0x6842E0412AC1c00464dc48961330156a07268d14\n#   └─zkEVM Testnet\n#     ├─id: polygon-zkevm-test\n#     ├─chainid: 1442\n#     ├─explorer: https://explorer.public.zkevm-test.net\n#     └─host: https://rpc.public.zkevm-test.net\n```\n\n### Add Wallet To Brownie\n\n```bash\nbrownie accounts new \u003cYOUR-CHOSEN-ID-NAME\u003e;\n\n# Expected Output:\n# Brownie v1.19.3 - Python development framework for Ethereum\n#\n# Enter the private key you wish to add: \u003cYOUR-WALLET-PRIVATE-KEY\u003e\n# Enter the password to encrypt this account with: \u003cYOUR-NEW-PASSWORD\u003e\n# SUCCESS: A new account '0xYourConfirmedWalletAddress' has been generated with the id '\u003cYOUR-CHOSEN-ID-NAME\u003e'\n```\n\nVerify that the wallet has been added in brownie.\n\n```bash\nbrownie accounts list\n\n# Expected Output:\n# Brownie v1.19.3 - Python development framework for Ethereum\n# \n# Found 1 account:\n#  └─\u003cYOUR-CHOSEN-ID-NAME\u003e: 0xYourConfirmedWalletAddress\n```\n\n---\n\n## Deployment\n\nMake sure to do the configuration section before proceeding with this next step.\n\n```bash\n# FROM: ./zkevm-brownier-erc20\n\nbrownie run token.py --network polygon-zkevm-test\n\n# Expected Output:\n# Brownie v1.19.3 - Python development framework for Ethereum\n#\n# Compiling contracts...\n#   Solc version: 0.6.12\n#   Optimizer: Enabled  Runs: 200\n#   EVM Version: Istanbul\n# Generating build data...\n#  - SafeMath\n#  - Token\n#\n# ZkevmBrownieErc20Project is the active project.\n# \n# Running 'scripts/token.py::main'...\n# Enter password for \"testingwithmanny\": \n# Transaction sent: 0x7fd0218b9f2963b54440df90e5480d42c537361788eb845f2eefed45376b80c9\n#   Gas price: 1.113493533 gwei   Gas limit: 577595   Nonce: 2\n#   Token.constructor confirmed   Block: 152186   Gas used: 521489 (90.29%)\n#   Token deployed at: 0xd23D6ec4BF2EA11A6d5a6eFB25ad1AAa6765fe66\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodingwithmanny%2Fzkevm-brownie-erc20","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodingwithmanny%2Fzkevm-brownie-erc20","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodingwithmanny%2Fzkevm-brownie-erc20/lists"}