Skip to content

Conversation

mondoreale
Copy link
Collaborator

@mondoreale mondoreale commented Feb 12, 2025

We now have the getChainDisplayName that uses local chain config extensions (see chains.yml) for any local per-chain human readable name customisation.

We used to have formatChainName, chain.name (modded in chains.ts), and the ethereumNetworks id-to-name map. Now it's all packed nicely into the new utility function.

This should help us a bunch.

I've also identified that we've been using human readable names to key sale points in the "project" part of the hub. Not ideal, to say the least. Switched it up to the chain key.

I also move some coingeco stuff into chain config extensions so that we don't handle any edge cases and all local chain config customisations are in one place.
Copy link
Contributor

@tumppi tumppi left a comment

Choose a reason for hiding this comment

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

Niiice 💎

These tests are really checking if expectations meet reality.
Copy link
Contributor

@jtakalai jtakalai left a comment

Choose a reason for hiding this comment

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

👍

Co-authored-by: jtakalai <juuso@streamr.network>
@mondoreale mondoreale requested a review from jtakalai February 13, 2025 11:06
@mondoreale mondoreale merged commit 0347908 into master Feb 13, 2025
9 checks passed
@mondoreale mondoreale deleted the chain-display-name branch February 13, 2025 13:49
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.

3 participants