Foundry Simple Storage is a basic project demonstrating the implementation of a simple storage contract using the Foundry framework. This project serves as an educational tool for understanding the basics of smart contract development, deployment, and interaction on the Ethereum blockchain.
- Simple storage contract to store and retrieve a single value.
- Deployment scripts for easy contract deployment.
- Interaction scripts to read and write data to the contract.
- Unit tests to ensure the contract functions correctly.
- Node.js and npm installed
- Foundry framework installed
-
Clone the repository:
git clone https://github.com/yourusername/foundry-simple-storage.git cd foundry-simple-storage
-
Install dependencies:
npm install
-
Compile the contract:
forge build
-
Deploy the contract:
forge script scripts/Deploy.s.sol
-
Interact with the contract:
forge script scripts/Interact.s.sol
Run the unit tests to ensure the contract works as expected:
forge test
contracts/
: Contains the Solidity smart contract.scripts/
: Contains deployment and interaction scripts.test/
: Contains unit tests for the smart contract.
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.
This project is licensed under the MIT License.