Skip to content
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

solving proto management with chain-registry #2524

Open
pyramation opened this issue Jul 14, 2023 · 1 comment
Open

solving proto management with chain-registry #2524

pyramation opened this issue Jul 14, 2023 · 1 comment

Comments

@pyramation
Copy link
Collaborator

pyramation commented Jul 14, 2023

re: https://twitter.com/pyramation/status/1666574876516442112?s=20

It seems that indexers, wallets, and explorers have the multi-chain issue of dealing with different versions of protos

While it would be nice if everyone used the same method, some are using git submodules, some are copy/pasting protos, and others are using buf.build or other methods.

Why not just store the git repos inside of chain-registry, and their respective git tags for the current production version, this would allow us to fetch protos of any chain, no matter how they store the protos! Thoughts?

cc @JeremyParish69 @sunnya97

e.g.

{
    "codebase": {
        "protos": {
            "cosmos-sdk": {
                "method": "raw-protos" //if not present, defaults to raw, but could also be "buf.build" or "git-submodules"
                "repo": "[email protected]:osmosis-labs/cosmos-sdk.git",
                "tag": "v0.45.0-rc1.0.20230703010110-ed4eb883f2a6"
            },
            "osmosis": {
                "repo": "[email protected]:osmosis-labs/osmosis.git",
                "tag": "v16.0.0"
            },
            "wasmd": {
                "repo": "[email protected]:CosmWasm/wasmd.git",
                "tag": "v0.31.0-osmo-v16"
            },
            "ibc-go": {
                "repo": "[email protected]:cosmos/ibc-go.git",
                "tag": "v.a.b.c"
            },
            "ics23": {
                "repo": "[email protected]:cosmos/ics23.git",
                "tag": "v0.x.y.z"
            }
        }
    }
}
@jamesbayly
Copy link

This would certainly help us locate and retrieve the latest protobuf files for decoding each new chain that SubQuery provides indexing support for

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

No branches or pull requests

2 participants