Files
smom-dbis-138/docs/deployment/QUICK_START_GAS_UPDATES.md
defiQUG 1fb7266469 Add Oracle Aggregator and CCIP Integration
- Introduced Aggregator.sol for Chainlink-compatible oracle functionality, including round-based updates and access control.
- Added OracleWithCCIP.sol to extend Aggregator with CCIP cross-chain messaging capabilities.
- Created .gitmodules to include OpenZeppelin contracts as a submodule.
- Developed a comprehensive deployment guide in NEXT_STEPS_COMPLETE_GUIDE.md for Phase 2 and smart contract deployment.
- Implemented Vite configuration for the orchestration portal, supporting both Vue and React frameworks.
- Added server-side logic for the Multi-Cloud Orchestration Portal, including API endpoints for environment management and monitoring.
- Created scripts for resource import and usage validation across non-US regions.
- Added tests for CCIP error handling and integration to ensure robust functionality.
- Included various new files and directories for the orchestration portal and deployment scripts.
2025-12-12 14:57:48 -08:00

2.0 KiB

Quick Start: Real-Time Gas Price Updates

Last Updated: 2025-01-27

🚀 One-Command Update

Update all gas estimates with real-time prices:

./scripts/deployment/get-multichain-gas-prices.sh && ./scripts/deployment/update-gas-estimates.sh

What This Does

  1. Fetches Real-Time Gas Prices from:

    • Etherscan API (Ethereum Mainnet)
    • RPC endpoints (all other chains)
  2. Calculates Costs:

    • In native tokens (ETH, CRO, BNB, MATIC, xDAI)
    • In USD (using approximate exchange rates)
  3. Updates Documentation:

    • GAS_AND_TOKEN_REQUIREMENTS.md
    • TOKENS_AND_CHAINS_SUMMARY.md
    • DEPLOYMENT_QUICK_REFERENCE.md

Prerequisites

Ensure .env has:

ETHERSCAN_API_KEY=your_key_here
ETH_MAINNET_RPC_URL=https://...
CRONOS_RPC_URL=https://...
BSC_RPC_URL=https://...
POLYGON_RPC_URL=https://...
GNOSIS_RPC_URL=https://...

Output

After running, you'll see:

  • Current gas prices for all chains
  • Deployment cost estimates
  • Total estimated cost in USD
  • Confirmation of documentation updates

Example Output

========================================
Multichain Gas Price Fetcher
========================================

Current Gas Prices:
  Ethereum Mainnet: 0.14 gwei
  Cronos: 378.75 gwei
  BSC: 0.05 gwei
  Polygon: 34.61 gwei
  Gnosis: 0 gwei

Deployment Cost Estimates:
  Ethereum Mainnet: 0.000384 ETH (~$0.96)
  Cronos: 3.32 CRO (~$0.27)
  BSC: 0.000438 BNB (~$0.13)
  Polygon: 0.303 MATIC (~$0.24)
  Gnosis: 0.000025 xDAI (~$0.00)

Total Estimated Cost: ~$1.69 USD

✓ All documentation updated with real-time gas prices

Troubleshooting

Script fails?

  • Check .env has required variables
  • Verify API keys are valid
  • Test RPC endpoints: cast gas-price --rpc-url $ETH_MAINNET_RPC_URL

Documentation not updating?

  • Check file permissions
  • Verify JSON file exists: cat /tmp/multichain_gas_prices.json

For detailed information, see: Real-Time Gas System