cosmos / chain-registry

Creative Commons Attribution 4.0 International
507 stars 1.22k forks source link

Schema Versioning #142

Open sunnya97 opened 2 years ago

sunnya97 commented 2 years ago

How can we do versioning for the schemas so that we know when there's breaking changes?

hxrts commented 2 years ago

I think we should use a standard that allows for this, most likely IPLD (updating docs) or DID.

JeremyParish69 commented 2 years ago

Will be wanting to use chain reg as a sub-module, so this seems increasingly important.

hxrts commented 2 years ago

Will be wanting to use chain reg as a sub-module, so this seems increasingly important.

Interesting. Can you say more about your use-case @JeremyParish69? A git submodule?

JeremyParish69 commented 2 years ago

yes, @hxrts , as a git sub-module to be used as a reference for chain and asset information, IBC channel info, token images, etc., and remove all local hard-coded information about tokens and chains. Any changes about a token, e.g., changing symbol of LUNA to LUNC, desired to take effect on Osmosis would instead be done on the chain registry, and anything we need to construct will be done so through lookups using only ( chain_name + coinMinimalDenom ) as primary keys, which are assumed to be immutable.