-
Notifications
You must be signed in to change notification settings - Fork 57
Conversation
add cosmos v0.44 support
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
Updates for osmosis testnet faucet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot! 🥳
I'll do a proper review in the upcoming days. This is just a drive-by note about the extra dependencies.
Also, if you'd be kind enough to provide the commands/actions that you executed to autogenerate the protobuf files that'd be great!
Thank you very much for your quick reply 😄 Regarding the requests. I added two commits which removes the code snipped which used the requests dependency. (The second one is because I forgot to remove the actual dependency...) Adding requests could be useful for helper functions tho. Like a function to get the account sequence and account number which are only accessible through a api call. |
the correct methods for the rpc are: broadcast_tx_sync, broadcast_tx_async and broadcast_tx_commit. The ones for the api are slightly different
The default sync mode wasn't correct as it was a default api sync mode but it's better to use rpc sync modes.
Sorry adding for these commits later on. I just saw two things while going through the code once again:
|
Co-authored-by: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com>
Co-authored-by: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com>
Co-authored-by: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com>
Co-authored-by: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com>
I went through everything now I think. I have to admit I am not 100% happy by removing the get_rpc_pushable and get_api_pushable methods, especially as this method was implemented before too. Note: With the explanation I would say I am then 100% happy with removing it 😏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's revert this unless there's a good reason for the change?
Co-authored-by: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com>
Co-authored-by: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com>
remove unused dependencies
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you sync the proto files (and generate .py files) with what's up-to-date in https://github.com/cosmos/cosmos-sdk/tree/main/proto ?
Sorry for my late reply. I will do that, but I modified some of them to remove unused dependencies. The latest proto files include already stuff that will be introduced with cosmo ssdk 0.46 or transaction types we don't need but which need other dependencies |
Here are the sources for the new proto files:
I removed the functions for MultiSig as well as other transaction types and only took MsgSend to keep the dependencies as low as possible Changes I made to every .proto file:
Changes I made to every compiled proto file:
|
Hi @hukkin |
After providing a quick and dirty fix last time I now found some time to take a proper approach to this and this should finally fix the compability. This pull request includes:
I think this should be it. All in all the biggest gain is that cosmospy will be working again.