Certainly! Here's the complete README.md
in a single Markdown block:
# MyToken
MyToken is an ERC20-compliant token built using Solidity and OpenZeppelin libraries. This project includes smart contract deployment scripts and a suite of tests to ensure the functionality of the token.
## Requirements
- [Foundry](https://getfoundry.sh/) for building, testing, and deploying smart contracts.
- [Node.js](https://nodejs.org/) for managing JavaScript dependencies (if needed).
- [Git](https://git-scm.com/) for version control.
## Installation
1. **Clone the repository:**
```bash
git clone <repository-url>
cd MyToken
-
Install dependencies:
forge install
To compile the Solidity contracts, run:
forge build
To run the test suite:
forge test
To deploy the contract locally using Anvil:
-
Start Anvil in one terminal:
anvil
-
Deploy the contract in another terminal:
make deploy
To deploy on the Sepolia testnet, ensure you have the following environment variables set: SEPOLIA_RPC_URL
, ACCOUNT
, SENDER
, ETHERSCAN_API_KEY
.
Then run:
make deploy-sepolia
This project is licensed under the MIT License.