-
Notifications
You must be signed in to change notification settings - Fork 44
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
feat/use Comet Client #503
Conversation
@Zetazzz Can you help me with the e2e test sir ? I'm pretty sure we already have |
Hi, great work, Thank you very much! Ok, I'll take a look on that |
Hi, I've checked the function 'connectComet' has not been published in the latest version of @cosmjs/tendermint-rpc yet, so e2e can't build without the function. So let's just wait for it. |
And could you please add a flag 'rpcClients.useConnectComet' to control how users generate with the function or not. I think in this way, we let users to choose. Thank you very much! |
I will add it soon. Thank you for reviewing. |
@Zetazzz Hii, sorry to ping you at this hour. I’m not sure but there is a lot of changes to the fixtures when I run yarn test:watch from the PR that I’m working on and those changes doesn’t relate to the changes I make. Can you have a look ? Thank you! |
Hi, no problem at all. And there're some changes posted recently, so please try to re-build(yarn build) before you run test. if that still happen, you can check in those into this PR and let's figure out.(please make sure to backup if it's necessary) And if things in fixtures are conflict, feel free to ignore, delete and then re-gen them with your merged logic code. |
Hi, @hoangdv2429
So I guess we can proceed this PR now. Please use a flag 'rpcClients.useConnectComet' to control whether we use connectComet or the old way. Thank you very much! |
cc @Zetazzz thank you! |
I think this dependency only exists in starship. |
I see, let me take a look |
There're deps between cosmjs submodules, so I guess we should make all these the latest version:
|
Thank you I will be checking on it tomorrow. That's probably the reason 🙏 |
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.
Jupp, this is what you need
let functionStatements; | ||
let awaitClientCreation; | ||
|
||
if (newClientType) { |
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.
You should really need this case distinction long term. The first case should work everywhere. However, feel free to keep it for a trial-period.
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.
@webmaster128 @Zetazzz thank you sirs. I'll update it. |
Need to make another issue for upgrading all the deps. |
This reverts commit 557cf39.
Close #469
This PR will update the use of tendermint34Client (deprecated type) with cometClient, type of client will be dynamically chosen on time of creation.
Only the function used to create the client is different. Everything else remain backward compatible