ctrl-Felix / cosmospy-protobuf

Cosmos Protobuf library
19 stars 14 forks source link

Add Stargaze support #9

Closed VotorDev closed 1 year ago

VotorDev commented 1 year ago

As one of the most active zones in the cosmos it would be amazing to have Stargaze support added so that it can be used with mospy. Stargaze is severely lacking on the tools department and especially regarding python.

If you could point me to some instructions I could try and create a pull request for this myself. I've looked at the commit to integrate osmosis and got an idea of what's required but a set of instructions would be great and could also allow other people to add more chains

ctrl-Felix commented 1 year ago

I've heard a lot of good things about stargaze lately so I've just decided to natively support it.

The protobuf files are now located at chain/stargaze

I've also published the package on pypi: https://pypi.org/project/stargaze-protobuf/

pip install stargaze-protobuf will do

VotorDev commented 1 year ago

That's amazing, thanks! If you could it would be great to have an example of how to query a smart contract. E.g. query which NFTs a wallet has of a specific collection (i.e. get the ids) and then fetch the metadata for those ids from the collection contract

ctrl-Felix commented 1 year ago

I've just released my first article about using protobufs to make queries: https://medium.com/@ctrl-felix/cosmos-grpc-queries-in-python-c8dab9785a7

I think as next article I can make one to explain how to make CosmWASM queries. Can you give me an example of a query you'd want to make? With the according stargaze smart contract