-
Notifications
You must be signed in to change notification settings - Fork 75
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
Use cosmpy with a different Cosmo chain #347
Comments
I want to call osmosis/gamm/swap-exact-amount-in on cosmpy. Do I need to generate the proto file for osmosis myself? Is there a tutorial or method to generate it, similar to https://github.com/ctrl-Felix/cosmospy-protobuf, which can make cosmpy more versatile? @johnqh |
i try use
but get this error
|
protoc --version The GeneratedProtocolMessageType is missing in the proto I generated. What version of protoc is being used in cosmpy? |
Check this repo. It has all the compiled protos for osmosis: https://github.com/ctrl-Felix/cosmospy-protobuf/tree/chain/osmosis |
You can also use it to compile protos for any chain. Question is how would I use this with cosmpy? |
yep,I was also considering using ctrl-Felix before, but it's obvious that the protobuf generated by ctrl-Felix is different. I had to give up this option. |
Prerequisites
Expected Behavior
We used protoc to generate the proto types and clients for a different Cosmo chain, and tried to use cosmpy to interact with it.
I expect to use cosmpy to sign message for the chain-specific functions to send transactions.
Current Behavior
It works until if the code import both cosmpy and proto types from the other chain.
cosmpy includes standard Cosmo types and clients, which conflict with the Cosmo types from the other chain. As far as I can tell, the only way to get around it is to have exactly the same Cosmo SDK version, Python version, and protoc/protobuf versions.
To Reproduce
No response
Context
Latest Cosmpy version
Failure Logs
No response
The text was updated successfully, but these errors were encountered: