https://github.com/chisasaw/gasmatrix
A gas optimization analysis tool for Ethereum smart contracts
https://github.com/chisasaw/gasmatrix
developer-tools ethereum optimization web-client
Last synced: about 2 months ago
JSON representation
A gas optimization analysis tool for Ethereum smart contracts
- Host: GitHub
- URL: https://github.com/chisasaw/gasmatrix
- Owner: chisasaw
- Created: 2024-11-26T03:38:50.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-26T03:50:46.000Z (over 1 year ago)
- Last Synced: 2025-06-10T14:49:52.766Z (about 1 year ago)
- Topics: developer-tools, ethereum, optimization, web-client
- Language: TypeScript
- Homepage: https://gasmatrix.vercel.app/
- Size: 42 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gasmatrix: Ethereum Gas Optimizer
## Overview
A web-based tool for analyzing and optimizing Ethereum smart contract gas consumption.
## Features
- Static analysis of Ethereum smart contracts
- Identification of gas-heavy operations
- Automated optimization recommendations
- Estimated gas savings for each suggestion
## Prerequisites
- Python 3.9+
- pip
- solidity compiler
## Installation
```bash
# 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
```
## Configuration
Create a `.env` file with the following variables:
```
ETHEREUM_NODE_URL=https://mainnet.infura.io/v3/YOUR_PROJECT_ID
DATABASE_PATH=./gas_optimizer.db
```
## Running the Application
```bash
# Start the FastAPI server
uvicorn main:app --reload
# Run tests
python -m pytest tests/
```
## Usage
1. Upload Solidity smart contract
2. Receive gas optimization recommendations
3. Review estimated gas savings
## Contributing
1. Fork the repository
2. Create your feature branch (`git checkout -b feature/AmazingFeature`)
3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request
## License
Distributed under the MIT License. See `LICENSE` for more information.
## Contact
Warren Chisasa - warrenchisasa@gmail.com
Project Link: [https://github.com/chisasaw/gasmatrix](https://github.com/chisasaw/gasmatrix)