A web-based tool for analyzing and optimizing Ethereum smart contract gas consumption.
- Static analysis of Ethereum smart contracts
- Identification of gas-heavy operations
- Automated optimization recommendations
- Estimated gas savings for each suggestion
- Python 3.9+
- pip
- solidity compiler
# Clone the repository
git clone https://github.com/chisasaw/gasmatrix.git
# Navigate to project directory
cd gasmatrix
# Create virtual environment
python -m venv venv
source venv/bin/activate # On Windows, use `venv\Scripts\activate`
# Install dependencies
pip install -r requirements.txt
Create a .env
file with the following variables:
ETHEREUM_NODE_URL=https://mainnet.infura.io/v3/YOUR_PROJECT_ID
DATABASE_PATH=./gas_optimizer.db
# Start the FastAPI server
uvicorn main:app --reload
# Run tests
python -m pytest tests/
- Upload Solidity smart contract
- Receive gas optimization recommendations
- Review estimated gas savings
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Warren Chisasa - warrenchisasa@gmail.com
Project Link: https://github.com/chisasaw/gasmatrix