cosmos / chain-registry

Creative Commons Attribution 4.0 International
515 stars 1.25k forks source link

remove _non-cosmos in favor of flat structure leveraging namespace folders #5537

Open pyramation opened 2 weeks ago

pyramation commented 2 weeks ago

one idea for scalability, esp. when folks fetch from chain registry...

what if there is no _non-cosmos/ folder?

What if it's literally sharded based on chain_type (caip namespace)?

Big breaking change, but I think more scalable long-term.

JeremyParish69 commented 3 days ago

so a directory for each of the following?

/bip122/ (for bitcoin and bitcoin forks)
/eip155/ (for evms)
/cosmos/ (for cosmos)
/polkadot/
/avalanche/
etc?

This could still end up in a longish list of directories, but better than the huge list we currently have. See this directory to get an idea: https://github.com/ChainAgnostic/namespaces/tree/main Also note that note all chains have their namespace defined, so there might be some chains that don't have a home in that new structure