-
Notifications
You must be signed in to change notification settings - Fork 648
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
Add CLI to submit governance proposal with MsgStoreCode
#4202
Comments
hi @crodriguezvega i think i can take on this issue |
go for it @stackman27 |
the example provided "We can use the CLI command in Cosmos SDK for submitting a software upgrade proposal as an example." is off of the latest cosmos-sdk version, whereas ibc-go uses v0.47.4 which doesnot have the functionality as described in this issue link: https://github.com/cosmos/cosmos-sdk/blob/release/v0.47.x/x/upgrade/client/cli/tx.go#L39 |
Thanks for picking this one up, @stackman27. Yes, you're right the link I added in the description is from main, but do you see any impediment to implement this CLI using the gov v1 design? I thought we could, but maybe I'm missing something, so please let me know. |
yea unfortunately gov v1
i can use x/group but it might be a little hacky: https://github.com/cosmos/cosmos-sdk/blob/release/v0.47.x/x/group/proposal.go |
If that helper missing is blocking you, we can backport it 👍 |
Ah, I see. Thank you for the explanation, @stackman27!
Thank you, @julienrbrt. I see that you have already back ported it 😄 ⚡. This would be very helpful for us, so that we don't need to write a legacy handler that we will migrate in a few weeks for the v8 upgrade. When do you think you could cut a release with this addition? |
We cut a patch release every month, so there will be a v0.47.5 in probably about 5 to 10days. It's on my list :) |
Great! Then we'll upgrade as soon as it is out. @stackman27 Do you think you can do some groundwork on this issue in the meantime until the SDK release is available? |
@crodriguezvega sounds good. What specific groupwork should i do? I thought the issue was blocked until the v0.47.5 is out |
@stackman27 Sorry for not replying earlier; I think I missed your message. We have just bumped SDK to 0.47.5 in the |
@stackman27 Sorry for being a bit pushy, but this issue is soon going to enter our critical path. I don't want to stress you, so no problem if you're busy and cannot work on it; we can pick it up ourselves. |
no worries @crodriguezvega, i've been a little busy recently so feel free to pick this issue up i generally prefer working on non-blocking issues :)) |
Closed by #4565 |
To make it easier for users to submit a proposal to upload a new light client contract, we should add a CLI command that creates and broadcasts a gov v1
MsgSubmitProposal
with theMsgStoreCode
. The CLI will be much easier to use than using thesubmit-proposal
command and passing a JSON file with the base64 encoded string of the contract bytecode.The CLI could look like:
simd tx ibc-wasm store-code [path/to/wasm-file] [flags]
We can use the CLI command in Cosmos SDK for submitting a software upgrade proposal as an example.
Note that
store-code
is currently in use, but it should eventually be removed, so it's ok to use a different flag for that command in the meantime.Update also this section of the docs.
The text was updated successfully, but these errors were encountered: