https://github.com/blamca/solidity-development-toolkit
Complete toolkit for Solidity & Foundry development with templates, utilities, and best practices
https://github.com/blamca/solidity-development-toolkit
blockchain ethereum foundry security smart-contracts solidity
Last synced: 2 months ago
JSON representation
Complete toolkit for Solidity & Foundry development with templates, utilities, and best practices
- Host: GitHub
- URL: https://github.com/blamca/solidity-development-toolkit
- Owner: blamca
- Created: 2025-08-20T11:09:19.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-08-20T12:37:15.000Z (11 months ago)
- Last Synced: 2025-09-13T02:19:30.402Z (10 months ago)
- Topics: blockchain, ethereum, foundry, security, smart-contracts, solidity
- Language: Solidity
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Blockchain Development Toolkit
Collection of useful scripts and tools for blockchain development.
## Scripts
### Gas Cost Analyzer
Real-time gas cost comparison across multiple networks.
**Supported Networks:**
| Network | Chain ID |
|---------|----------|
| Ethereum Mainnet | 1 |
| Base | 8453 |
| Polygon | 137 |
| Arbitrum | 42161 |
| Optimism | 10 |
**Usage:**
```bash
forge script script/GasChecker.s.sol --rpc-url https://mainnet.base.org
```
**Sample Output:**
```
Network: Base
Gas Price: 18 milli-gwei
ETH Price: $ 4168
Transfer Cost: $ 1620 micro-USD
Transfer Cost in USD: ~$0.00 16
```
**What it does:**
- Fetches current gas prices from the network
- Gets real-time ETH/USD price from Chainlink oracles
- Calculates cost of simple transfer (21,000 gas)
- Converts to readable USD format
## Quick Start
### Prerequisites
```bash
# Install Foundry
curl -L https://foundry.paradigm.xyz | bash
foundryup
```
### Installation
```bash
git clone
cd
```
### Run Gas Analyzer
```bash
# Different networks
forge script script/GasChecker.s.sol --rpc-url https://mainnet.base.org
forge script script/GasChecker.s.sol --rpc-url https://polygon-rpc.com
forge script script/GasChecker.s.sol --rpc-url https://arb1.arbitrum.io/rpc
```
## Use Cases
- **Developers:** Choose optimal deployment network
- **DeFi Users:** Find cheapest transaction costs
- **Traders:** Calculate real trading costs
- **Researchers:** Track gas price trends
## Technical Details
- Uses Chainlink price feeds for accurate ETH/USD conversion
- Calculates costs for 21,000 gas (standard ETH transfer)
- Supports multiple networks through configurable mapping
- Real-time data fetching with error handling