Skip to content

Feat/add sui chain support #844

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

Open
wants to merge 2 commits into
base: releases/mainnet/v2.3.x
Choose a base branch
from

Conversation

evandrosaturnino
Copy link
Collaborator

@evandrosaturnino evandrosaturnino commented Jun 27, 2025

Summary

This PR introduces support for the Sui network, enabling users to connect Sui wallets and interact with Sui-based features within the dashboard.

Changes

  • Sui Wallet Integration:

    • Integrated @suiet/wallet-kit to handle Sui wallet connections.
    • Added a SuiWalletProvider to wrap the application and provide wallet context, registered in App.tsx.
    • Created new components ConnectSui and SuiWalletList for the wallet selection modal, allowing users to choose from a list of supported Sui wallets (Suiet, Sui Wallet, Martian, Nightly).
    • If a wallet is not installed, the user is redirected to its browser extension store page.
    • Added Sui to the WalletType enum in src/enums/web3.ts.
  • Network Validation:

    • Implemented a SuiNetworkAlert component that displays a warning in the navigation bar if the connected Sui wallet is on an incorrect network (e.g., Testnet instead of Mainnet).
    • This component is rendered within NavbarComponent.tsx to be globally visible.
  • UI Components:

    • Added a new SuiIcon component for the Sui logo.
    • Updated the SelectWalletModal to include the "Sui" option, which navigates to the new ConnectSui view.

How to Test

  1. Run the application.
  2. Click on "Connect Wallet".
  3. Select "Sui" from the list of wallet options.
  4. A list of Sui wallets should appear.
  5. Connect with a supported Sui wallet.
  6. Ensure your wallet is on the correct network (Mainnet or Testnet, depending on the app's configuration).
  7. If you switch to an incorrect network in your wallet, a warning message should appear in the navigation bar.
  8. Disconnecting the wallet should work as expected.

Copy link

@evandrosaturnino evandrosaturnino self-assigned this Jun 27, 2025
@evandrosaturnino evandrosaturnino added the ☁️ infrastructure CI, Infrastructure, Workflows label Jun 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
☁️ infrastructure CI, Infrastructure, Workflows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant