Skip to content

refactor(chains): Improve chain info consistency and maintainability #4835

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

Closed
wants to merge 1 commit into from

Conversation

Alphena-EK
Copy link

This PR introduces several improvements to the chain information definitions, enhancing maintainability, consistency, and correctness.

Key Changes:

Refactor (DRY): A common IMAGE_BASE_URL constant has been introduced to eliminate repetitive image URL strings. All chain definitions now use this constant, making future updates easier and reducing the risk of typos.
Fix (Babylon Testnet): Corrected a critical configuration error in babylonTestnet where the stakeCurrency was incorrectly set to "tBABY". It has been changed to "BABY" to be consistent with the feeCurrencies and what is available in the currencies array. This prevents potential integration issues with wallets and UIs.
Chore (URL Formatting): Removed trailing slashes from the rpc and rest endpoints for babylonTestnet to ensure a consistent URL format across all chain definitions in the file.

@benluelo benluelo closed this Jul 24, 2025
@unionlabs unionlabs locked and limited conversation to collaborators Jul 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants