Skip to content

feat: add chain switch #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
Aug 8, 2025
Merged

feat: add chain switch #30

merged 18 commits into from
Aug 8, 2025

Conversation

ErwanDecoster
Copy link
Member

No description provided.

@ErwanDecoster ErwanDecoster self-assigned this Aug 8, 2025
Copy link

vercel bot commented Aug 8, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
documentation ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 8, 2025 5:32pm

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds chain switching functionality to the application, enabling users to select and switch between different blockchain networks through a UI component. The implementation includes support for Arbitrum networks and the iExec Sidechain (Bellecour).

  • Refactored Wagmi configuration to support multiple networks with dynamic transports
  • Added chain selection UI component with dropdown interface
  • Implemented user store for managing chain state and switching logic

Reviewed Changes

Copilot reviewed 25 out of 27 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/utils/wagmiNetworks.ts Defines supported networks including Bellecour, Arbitrum, and Arbitrum Sepolia
src/utils/wagmiConfig.ts Refactored Wagmi configuration to support multiple networks with dynamic transports
src/utils/chain.utils.ts Utility functions for chain management and lookup
src/stores/useUser.store.ts Pinia store for managing user's selected chain state
src/hooks/useChainSwitch.ts Custom hook for handling chain switching logic
src/components/ui/select/* UI components for select dropdown functionality
src/components/ChainSelector.vue Main chain selector component with dropdown interface
package.json Added dependencies for UI components and state management
.vitepress/config.mts Added alias configuration and chain selector to navigation

Copy link
Collaborator

@Le-Caignec Le-Caignec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some changes to do before merging

@Le-Caignec Le-Caignec merged commit cead2a6 into main Aug 8, 2025
2 of 3 checks passed
@Le-Caignec Le-Caignec deleted the feature/add-chain-switch branch August 8, 2025 17:23
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.

2 participants