Skip to content
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

wasmd 30 + ibc v4 + IBCFees #387

Merged
merged 24 commits into from
Dec 13, 2022
Merged

wasmd 30 + ibc v4 + IBCFees #387

merged 24 commits into from
Dec 13, 2022

Conversation

Reecepbcups
Copy link
Contributor

@Reecepbcups Reecepbcups commented Dec 2, 2022

Pending ibc-go ICS23 v0.9.0 bump 2868 PR

wasmd 0.30.0
ibc go v4.2.0

New IBCFeeKeeper by following official guide

ibcRouter updated wasmStack with ibc fee keeper middleware. Same for transfer & icaHost

Added ibc v3->4 upgrade comment from official guide

@faddat
Copy link
Contributor

faddat commented Dec 3, 2022

dude I love this!

I'm going to approve from the notional side.

We'll need approvals from others, though.

Sorry, after review, I gotta ask if you've got the migrations in here:

https://github.com/cosmos/ibc-go/blob/v5.1.0/docs/migrations/v3-to-v4.md

Copy link
Contributor

@faddat faddat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this requires one or more upgrade handlers:

https://github.com/cosmos/ibc-go/blob/v5.1.0/docs/migrations/v3-to-v4.md

I think that also to avoid the problem plaguing stride, we need to initialize the ibcfee keeper specifically.

@vuong177
Copy link
Member

vuong177 commented Dec 3, 2022

@Reecepbcups should we hold it until v13? IBCFee is a new feature and I'm not sure we need it in v12.

@Reecepbcups
Copy link
Contributor Author

@vuong177 IBC v4 & ibcfees is required for wasmd 0.30.0 - so if we want latest wasmd has to be in v12

@Reecepbcups
Copy link
Contributor Author

Reecepbcups commented Dec 3, 2022

@faddat I looked over this document and seems you only need the upgrade handler if your chain has factory/address/name denoms.
Which we don't have until v12 launch with the tokenfactory

It also only says migration is needed for 3.1->4. We are 3.4->4.

But I have still added

@faddat
Copy link
Contributor

faddat commented Dec 3, 2022

So I suspect that those are outdated documents. But I don't know. I'm going to reach out to the IBC team to make sure.

@faddat
Copy link
Contributor

faddat commented Dec 3, 2022

I would also like to wait to merge this until these changes land upstream:

cosmos/ibc-go#2868

And then the other thing that we are lacking here, so we add the IBC fee module, but are we initializing its store key explicitly in an upgrade handler?

@Reecepbcups
Copy link
Contributor Author

Reecepbcups commented Dec 3, 2022

@faddat oops yea I had forgot to do this. It is now, done in above commit thx

@Reecepbcups Reecepbcups requested a review from faddat December 3, 2022 06:23
@faddat
Copy link
Contributor

faddat commented Dec 3, 2022

Ok, so per the dev chat, we're going to wait on an alternative impl that doesn't include the ibcfee module.

Personally, prefer this route.

@faddat faddat mentioned this pull request Dec 3, 2022
9 tasks
faddat
faddat previously approved these changes Dec 5, 2022
Copy link
Contributor

@faddat faddat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's do it, but wait on upgrading uni till ibc-go changes for ics23 v0.9.0 are in

@faddat faddat enabled auto-merge December 5, 2022 15:51
@vuong177
Copy link
Member

vuong177 commented Dec 5, 2022

failed to load latest version: failed to load store: initial version set to 30, but found earlier version 1

I got that err when running a testnet. @faddat @Reecepbcups.

@Reecepbcups
Copy link
Contributor Author

Reecepbcups commented Dec 5, 2022

failed to load latest version: failed to load store: initial version set to 30, but found earlier version 1

I got that err when running a testnet. @faddat @Reecepbcups.

my test_node.sh ran just fine.
Was this a mainnet state -> this branch upgrade that failed?

I don't see any wasmKeeper Params can be changed that relate to version
and it shouldn't need storeUpgrade keys should it? hmm

@vuong177
Copy link
Member

vuong177 commented Dec 5, 2022

Hmm I got it when running the upgrade binary through gov.

Copy link
Contributor

@faddat faddat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

requesting changes due to reported issue

@vuong177
Copy link
Member

vuong177 commented Dec 8, 2022

The e2e upgrade test still fails, we need it to pass all before merging. @Reecepbcups

@faddat
Copy link
Contributor

faddat commented Dec 8, 2022

To me @vuong177 it looked to me like it could be the test itself as an issue. I just kicked off CI again to check.

JakeHartnell
JakeHartnell previously approved these changes Dec 8, 2022
Copy link
Contributor

@JakeHartnell JakeHartnell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. utACK.

@the-frey
Copy link
Collaborator

the-frey commented Dec 9, 2022

Looks like this needs a resolve against base branch but agree we should get this one in if poss.

@giansalex
Copy link
Member

giansalex commented Dec 12, 2022

Can we enable StargateQueries as part of wasmd 0.30? CosmWasm/wasmd#1069

@Reecepbcups
Copy link
Contributor Author

Can we enable StargateQueries as part of wasmd 0.30? CosmWasm/wasmd#1069

@giansalex Yes, I will commit this in the morning

@the-frey
Copy link
Collaborator

Which queries do you want to see enabled @giansalex ?

@giansalex
Copy link
Member

Which queries do you want to see enabled @giansalex ?

I am looking for the routes needed to implement ICQ in a contract.

  • /ibc.core.connection.v1.Query/Connection
  • /ibc.core.client.v1.Query/ClientState
  • /ibc.core.client.v1.Query/ConsensusState

@Reecepbcups Reecepbcups added the review me Review me for merge label Dec 13, 2022
@the-frey
Copy link
Collaborator

I think this is ready to ship - QQ should we have stargate queries in another PR? That feels like the sketchiest thing that we might have to back out of after testing & might be good to have it atomically within a single PR

faddat
faddat previously approved these changes Dec 13, 2022
@faddat faddat merged commit aeb5777 into main Dec 13, 2022
@Reecepbcups Reecepbcups removed the review me Review me for merge label Dec 17, 2022
@Reecepbcups Reecepbcups mentioned this pull request Feb 6, 2023
9 tasks
@Reecepbcups Reecepbcups deleted the wasmd-bump branch March 28, 2023 04:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants