{"id":22771084,"url":"https://github.com/samlior/hardhat-erc20-example","last_synced_at":"2025-07-28T14:06:03.912Z","repository":{"id":143789480,"uuid":"373019150","full_name":"samlior/hardhat-erc20-example","owner":"samlior","description":"hardhat-erc20-example","archived":false,"fork":false,"pushed_at":"2021-06-04T06:20:23.000Z","size":264,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T12:13:23.232Z","etag":null,"topics":["erc20","example","hardhat"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/samlior.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":"2021-06-02T02:43:06.000Z","updated_at":"2021-06-04T06:20:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"becdb435-ab7f-4ee4-8371-b8bf2ca900d6","html_url":"https://github.com/samlior/hardhat-erc20-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/samlior/hardhat-erc20-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlior%2Fhardhat-erc20-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlior%2Fhardhat-erc20-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlior%2Fhardhat-erc20-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlior%2Fhardhat-erc20-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samlior","download_url":"https://codeload.github.com/samlior/hardhat-erc20-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlior%2Fhardhat-erc20-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267527835,"owners_count":24102019,"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-07-28T02:00:09.689Z","response_time":68,"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":["erc20","example","hardhat"],"created_at":"2024-12-11T16:12:07.675Z","updated_at":"2025-07-28T14:06:03.890Z","avatar_url":"https://github.com/samlior.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hardhat-erc20-example\n\n![Node Version](https://img.shields.io/badge/node-%e2%89%a5v12.0.0-blue)\n![NPM Version](https://img.shields.io/badge/npm-%E2%89%A5v6.0.0-blue)\n![OpenZeppelin](https://img.shields.io/badge/OpenZeppelin-3.2.0-blue)\n\n## Environment variable\n\n```sh\n# the api key of infura(if you want to connect mainnet or ethereum testnet, you must provide this key).\nexport INFURA_API_KEY=xxx\n# the mnemonic of deployer(if not provided, the deployer will be the first account of the default accouts).\nexport MNEMONIC=\"test test test test test test test test test test test junk\"\n# deployer address, it should match the mnemonic\nexport DEV_ADDR=0x...abc\n# etherscan api key, used to verify and publish the contracts\nexport ETHERSCAN_KEY=xxx\n```\n\n## Install\n\n```sh\nnpm i\n```\n\n## Compile\n\n```sh\nnpm run build\n```\n\n## Deploy\n\n### Deploy to mainnet\n\n```sh\nnpm run deploy:mainnet\n```\n\n### Deploy to localhost\n\n```sh\nnpm run node\n```\n\n## Tasks\n\n```\naccounts              Prints the list of accounts\nbalance               Prints an account's balance\nbalance:erc20         Prints an account's ERC20 balance\nmint                  Mint ERC20 token to account\nverify                Verifies contract on Etherscan\n```\n\nYou can get detailed options of the task like this:\n\n```sh\nnpx hardhat mint --help\n```\n\nYou can simply run the task like this:\n\n```sh\nnpx hardhat --network localhost balance --account 0x...abc\nnpx hardhat --network localhost mint --account 0x...abc\n```\n\n## Test\n\n```sh\nnpm run test\n```\n\n## Verify\n\n**notice: please first make sure you can access [api.etherscan.io](https://api.etherscan.io)**\n\n```sh\nnpx hardhat verify --network mainnet 0x...abc \"LV Coin\" \"LV\" \"18\"\n```\n\n## LICENSE\n\n[MIT](https://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamlior%2Fhardhat-erc20-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamlior%2Fhardhat-erc20-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamlior%2Fhardhat-erc20-example/lists"}