{"id":21247208,"url":"https://github.com/alchemyplatform/erc20-example-foundry","last_synced_at":"2025-07-10T22:32:24.857Z","repository":{"id":199611818,"uuid":"703271000","full_name":"alchemyplatform/erc20-example-foundry","owner":"alchemyplatform","description":"A simple Foundry Repo to build, test, and deploy an ERC-20 token.","archived":false,"fork":false,"pushed_at":"2023-10-11T02:30:02.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-04-14T10:32:59.148Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Solidity","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/alchemyplatform.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}},"created_at":"2023-10-10T23:47:01.000Z","updated_at":"2024-03-22T18:48:14.000Z","dependencies_parsed_at":"2023-10-11T07:44:20.196Z","dependency_job_id":null,"html_url":"https://github.com/alchemyplatform/erc20-example-foundry","commit_stats":null,"previous_names":["alchemyplatform/erc20-example-foundry"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alchemyplatform%2Ferc20-example-foundry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alchemyplatform%2Ferc20-example-foundry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alchemyplatform%2Ferc20-example-foundry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alchemyplatform%2Ferc20-example-foundry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alchemyplatform","download_url":"https://codeload.github.com/alchemyplatform/erc20-example-foundry/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225658502,"owners_count":17503667,"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":[],"created_at":"2024-11-21T02:17:06.410Z","updated_at":"2024-11-21T02:17:06.957Z","avatar_url":"https://github.com/alchemyplatform.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ERC-20 Example with Foundry\n\nThis is a simple ERC-20 token based off the tutorial: https://www.youtube.com/watch?v=fNMfMxGxeag\n\nIt is used to demonstrate the power of gasless minting using Account Abstraction.\n\n## Build and Test\n\nReference: https://book.getfoundry.sh/projects/working-on-an-existing-project\n\nThese are commands you can use to start developing:\n\n```\nforge install --no-commit\nforge build\nforge test\n```\n\nReference: https://book.getfoundry.sh/projects/creating-a-new-project\n\nThese are the commands I used to create this project on this repo from scratch. Ignore flags as necessary:\n\n```\nmkdir \u003cYOUR-PROJECT-FOLDER\u003e\ncd \u003cYOUR-PROJECT-FOLDER\u003e\nforge init --force\nforge install openzeppelin/openzeppelin-contracts\nforge build\nforge test\n```\n\n## Deploy\n\nReference: https://book.getfoundry.sh/forge/deploying\n\n1. Set your environment variables by running:\n\n```\nexport ALCHEMY_RPC_URL=\u003cYOUR-ALCHEMY-RPC-URL\u003e\nexport WALLET_PRIVATE_KEY=\u003cYOUR-WALLET-PRIVATE-KEY\u003e\nexport ETHERSCAN_API_KEY=\u003cYOUR-ETHERSCAN-API-KEY\u003e\n```\n\n2. Deploy and Verify the Contract using:\n\n```\nforge create \u003cCONTRACT-NAME\u003e --rpc-url=$ALCHEMY_RPC_URL \\\n    --private-key=$WALLET_PRIVATE_KEY \\\n    --etherscan-api-key=$ETHERSCAN_API_KEY \\\n    --verify\n```\n\nIf you need testnet tokens for the EOA wallet deploying this contract, use: https://sepoliafaucet.com.\nIf you need an etherscan API key, use: https://etherscan.io/myapikey.\n\nIf successfully deployed, you will see the deploying wallet's address, the contract's address as well as the transaction hash printed to your terminal.\n\nDon't forget to remove the sensitive variables you exported:\n\n```\nunset ALCHEMY_RPC_URL\nunset WALLET_PRIVATE_KEY\nunset ETHERSCAN_API_KEY\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falchemyplatform%2Ferc20-example-foundry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falchemyplatform%2Ferc20-example-foundry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falchemyplatform%2Ferc20-example-foundry/lists"}