Feat/add sui chain support #844
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
@suiet/wallet-kit
to handle Sui wallet connections.SuiWalletProvider
to wrap the application and provide wallet context, registered inApp.tsx
.ConnectSui
andSuiWalletList
for the wallet selection modal, allowing users to choose from a list of supported Sui wallets (Suiet, Sui Wallet, Martian, Nightly).Sui
to theWalletType
enum insrc/enums/web3.ts
.Network Validation:
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).NavbarComponent.tsx
to be globally visible.UI Components:
SuiIcon
component for the Sui logo.SelectWalletModal
to include the "Sui" option, which navigates to the newConnectSui
view.How to Test