Skip to content

End-to-End Network Switch (Testnet ↔ Mainnet)#161

Open
Godbrand0 wants to merge 4 commits intoGildado:mainfrom
Godbrand0:feature/network-switch-testnet-mainnet
Open

End-to-End Network Switch (Testnet ↔ Mainnet)#161
Godbrand0 wants to merge 4 commits intoGildado:mainfrom
Godbrand0:feature/network-switch-testnet-mainnet

Conversation

@Godbrand0
Copy link

@Godbrand0 Godbrand0 commented Feb 25, 2026

Summary

This PR implements end-to-end network switch functionality to allow seamless switching between testnet and mainnet environments.

closes #158

Features

  • NetworkSwitcher Component: UI component for switching between testnet and mainnet
  • TestnetBanner Component: Visual indicator showing the current network environment
  • NetworkProvider: Global state management for network configuration
  • useNetwork Hook: Custom hook for accessing network state
  • Contract Registry Service: Manages network-specific contract addresses
  • Updated Wallet Provider: Handles network switching and reconnection
  • Network-Aware Services: Updated fee estimation and transaction simulation services
  • Settings Integration: Network configuration options in the settings page

Changes Made

  • Added 5 new files for network switching functionality
  • Modified 11 existing files to integrate network switching
  • Total: 16 files changed, 465 insertions, 53 deletions

Testing

  • Tested network switching between testnet and mainnet
  • Verified wallet reconnection after network change
  • Confirmed proper contract address resolution for each network
  • Validated UI updates reflecting current network state

Screenshots

[Add screenshots of the network switcher in action]

Checklist

  • Code follows project style guidelines
  • Self-review of the code completed
  • Code is tested locally
  • Documentation updated if necessary

- Add NetworkSwitcher component for seamless network switching
- Add TestnetBanner component to indicate current network
- Create NetworkProvider for global network state management
- Add useNetwork hook for network state access
- Implement contract registry service for network-specific contracts
- Update wallet provider to handle network switching
- Update fee estimation and transaction simulation for network awareness
- Add network indicator to app layout
- Update settings page with network configuration options
@Godbrand0
Copy link
Author

can you take a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

#085: End-to-End Network Switch (Testnet ↔ Mainnet)

1 participant