Files
explorer-monorepo/README_BRIDGE.md

77 lines
1.8 KiB
Markdown
Raw Normal View History

# Bridge System - Complete Guide
**Quick Links**:
- [Complete Setup Guide](./docs/COMPLETE_SETUP_GUIDE.md)
- [Wrap and Bridge Guide](./docs/WRAP_AND_BRIDGE_TO_ETHEREUM.md)
- [Fix Bridge Errors](./docs/FIX_BRIDGE_ERRORS.md)
---
## Quick Start
### Complete Setup (One Command)
```bash
./scripts/setup-complete-bridge.sh [private_key] [weth9_eth_mainnet] [weth10_eth_mainnet]
```
### Step-by-Step
```bash
# 1. Check status
./scripts/check-bridge-config.sh
# 2. Configure bridges
./scripts/configure-all-bridge-destinations.sh [private_key]
# 3. Test with dry run
./scripts/dry-run-bridge-to-ethereum.sh 0.1 [address]
# 4. Bridge tokens
./scripts/wrap-and-bridge-to-ethereum.sh 1.0 [private_key]
```
---
## Available Scripts
### Configuration
- `check-bridge-config.sh` - Check bridge destinations
- `configure-all-bridge-destinations.sh` - Configure all destinations
- `fix-bridge-errors.sh` - Fix Ethereum Mainnet
### Operations
- `dry-run-bridge-to-ethereum.sh` - Simulate bridge (no transactions)
- `wrap-and-bridge-to-ethereum.sh` - Wrap and bridge to Ethereum Mainnet
### Verification
- `verify-weth9-ratio.sh` - Verify 1:1 ratio
- `test-weth9-deposit.sh` - Comprehensive tests
- `inspect-weth9-contract.sh` - Inspect WETH9
- `inspect-weth10-contract.sh` - Inspect WETH10
### Utilities
- `get-token-info.sh` - Get token information
- `fix-wallet-display.sh` - Wallet display fixes
- `setup-complete-bridge.sh` - Master setup script
---
## Contract Addresses
- **WETH9**: `0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2`
- **WETH10**: `0xf4BB2e28688e89fCcE3c0580D37d36A7672E8A9f`
- **WETH9 Bridge**: `0x89dd12025bfCD38A168455A44B400e913ED33BE2`
- **WETH10 Bridge**: `0xe0E93247376aa097dB308B92e6Ba36bA015535D0`
---
## Documentation
See `docs/` directory for complete documentation.
---
**Last Updated**: $(date)