Comments (7)
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
from cosmpy.
i try use
python -m grpc_tools.protoc --proto_path=$(OSMOSIS_SDK_DIR)/proto --proto_path=$(OSMOSIS_SDK_DIR)/third_party/proto --python_out=$(OSMOSIS_PROTOS_DIR) --grpc_python_out=$(OSMOSIS_PROTOS_DIR) $(shell find $(OSMOSIS_SDK_DIR) \( -path */proto/* -or -path */third_party/proto/* \) -type f -name *.proto)
but get this error
osmosis/protorev/v1beta1/tx.proto:63:12: "TokenPairArbRoutes" is not defined.
osmosis/protorev/v1beta1/tx.proto:97:3: "PoolWeights" is not defined.
osmosis/protorev/v1beta1/tx.proto:150:12: "BaseDenom" is not defined.
make: *** [generate_proto_types] Error 1
from cosmpy.
protoc --version
libprotoc 23.2
The GeneratedProtocolMessageType is missing in the proto I generated. What version of protoc is being used in cosmpy?
from cosmpy.
protoc --version
libprotoc 3.20.3
Still unable to generate GeneratedProtocolMessageType
from cosmpy.
Check this repo. It has all the compiled protos for osmosis:
https://github.com/ctrl-Felix/cosmospy-protobuf/tree/chain/osmosis
from cosmpy.
You can also use it to compile protos for any chain. Question is how would I use this with cosmpy?
from 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.
I have now switched to TypeScript to meet my needs. Hopefully, there will be more iterations in Python, but obviously, the development ecosystem of Cosmos is too scattered and there are no good building tools available. It's a pity.
from cosmpy.
Related Issues (20)
- Bug report: QueryStakingSummary returns 0 when coins are staked HOT 1
- Feature request: query_account() should return pub_key alongside account_number and sequence
- Bug report: Can not install cosmpy HOT 2
- Remove develop and change master to main
- Reduce dependencies as much as possible
- Feature request: Addition of event queries to LedgerClient
- events from contract calls back unhelpfully orgainsed
- Feature request: Query authz grants
- Bug report: GovClient.Proposal cannot consume expedited proposals
- Bug report: GovClient.Proposals() doesn't properly parse request
- Bug report: Authz info broken for Kujira network
- Bug report: Unable to generate the expected addresses for Injective HOT 5
- Bug Report: Message type "cosmos.base.abci.v1beta1.Result" has no field named "msg_responses".
- Bug report: query_account does not support PeriodicVestingAccount. Solution provided.
- Add public key type HOT 1
- Bug report: Failed to parse attributes field: HOT 2
- Bug report: send_tokens function HOT 1
- Bug report: ParseError when use TxRestClient.GetTxsEvent method HOT 1
- SSL error for query_staking_summary HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cosmpy.