Skip to content

Comments

Add Galaxy Station wallet#4040

Open
echel0n-HX wants to merge 5 commits intoosmosis-labs:stagefrom
echel0n-HX:galaxy-station-wallet
Open

Add Galaxy Station wallet#4040
echel0n-HX wants to merge 5 commits intoosmosis-labs:stagefrom
echel0n-HX:galaxy-station-wallet

Conversation

@echel0n-HX
Copy link

What is the purpose of the change:

Add support for Galaxy Station extension and mobile

@vercel
Copy link

vercel bot commented Feb 7, 2025

@echel0n-HX is attempting to deploy a commit to the OsmoLabs Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 7, 2025

Walkthrough

Adds Galaxy Station wallet support: imports and appends extension and mobile wallet info to the wallet list, overrides mobile URL formatting, and registers two wallet entries in the wallet registry with availability, chain-support checks, lazy installs, logos, and stake/governance URLs.

Changes

Cohort / File(s) Change Summary
Wallet list update
packages/web/config/generate-cosmos-kit-wallet-list.ts
Imported galaxyStationExtensionInfo and GalaxyStationMobileInfo (aliased) and appended both to CosmosKitWalletList. Added override for formatNativeUrl for the mobile wallet to encode wcUri.
Wallet registry additions
packages/web/config/wallet-registry.ts
Added two entries to CosmosWalletRegistry: galaxy-station-extension (extension-specific window property, mobileDisabled=true, lazy install, chain detection via chainInfosWithoutEndpoints) and galaxy-station-mobile (lazy install, logo, explicit allowed mainnet chainId list in supportsChain, shared stake/governance URLs, features empty).

Sequence Diagram(s)

sequenceDiagram
    participant App as Application
    participant Registry as Wallet Registry
    participant Extension as Galaxy Station Extension
    participant Mobile as Galaxy Station Mobile

    App->>Registry: Request available wallet / connect
    Registry->>Extension: Resolve extension entry (lazy import, window check)
    alt extension present
        Extension-->>Registry: Provide config (supportsChain, install, logo, urls)
    else extension absent
        Registry->>Mobile: Resolve mobile entry (lazy import)
        Mobile->>Mobile: supportsChain checks allowed chainIds
        Mobile->>Mobile: formatNativeUrl encodes wcUri (override)
        Mobile-->>Registry: Provide config and formatted connection URL
    end
    Registry-->>App: Return selected wallet config / connection URL
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

Suggested reviewers

  • CryptoAssassin1
  • kamal-sutra
  • MaxMillington
  • jonator

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 9f3671b and 9a09113.

⛔ Files ignored due to path filters (2)
  • packages/web/package.json is excluded by !**/*.json
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock, !**/*.lock
📒 Files selected for processing (1)
  • packages/web/config/wallet-registry.ts (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • packages/web/config/wallet-registry.ts
✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
packages/web/config/wallet-registry.ts (1)

365-418: Consider sorting the chain list alphabetically.

The mobile wallet configuration is correct, but the galaxyStationMobileAvailableChains array could be sorted alphabetically for better maintainability.

Apply this diff to sort the chains:

      const galaxyStationMobileAvailableChains: MainnetChainIds[] = [
        "akashnet-2",
        "archway-1",
        "atomone-1",
        "bitsong-2b",
        "carbon-1",
        "celestia",
        "cheqd-mainnet-1",
        "chihuahua-1",
        "columbus-5",
        "comdex-1",
        "cosmoshub-4",
        "crescent-1",
        "dydx-mainnet-1",
        "gravity-bridge-3",
        "injective-1",
        "irishub-1",
        "juno-1",
        "kaiyo-1",
        "kava_2222-10",
        "kichain-2",
        "lum-network-1",
-       "mars-1",
        "mainnet-3",
+       "mars-1",
        "migaloo-1",
        "neutron-1",
        "noble-1",
        "osmosis-1",
-       "ssc-1",
        "pacific-1",
        "phoenix-1",
        "sentinelhub-2",
+       "ssc-1",
        "stafihub-1",
        "stargaze-1",
        "stride-1",
        "teritori-1",
      ];
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6db1768 and 9f3671b.

⛔ Files ignored due to path filters (3)
  • packages/web/package.json is excluded by !**/*.json
  • packages/web/public/wallets/galaxy-station.png is excluded by !**/*.png, !**/*.png
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock, !**/*.lock
📒 Files selected for processing (2)
  • packages/web/config/generate-cosmos-kit-wallet-list.ts (3 hunks)
  • packages/web/config/wallet-registry.ts (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Summary
🔇 Additional comments (3)
packages/web/config/generate-cosmos-kit-wallet-list.ts (2)

8-9: LGTM! Galaxy Station wallets correctly imported and added to the wallet list.

The Galaxy Station extension and mobile wallets are properly imported and integrated into the CosmosKitWalletList.

Also applies to: 43-44


103-114: LGTM! Mobile wallet URL formatting properly configured.

The formatNativeUrl override for Galaxy Station mobile wallet correctly implements the required URL format using HTTPS.

packages/web/config/wallet-registry.ts (1)

339-364: LGTM! Galaxy Station extension wallet properly configured.

The extension wallet configuration follows best practices with proper chain support verification and secure URLs.

@echel0n-HX
Copy link
Author

Just wondering when someone will have time to review this and merge please?

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.

1 participant