You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The v1 gov module comes with a new draft-proposal command to support the proposal file creation. It is based on reflection and the promptui lib.
Unfortunately this does not work out of the box with our more complex message types. See the proto file for all current types.
We need to provide an alternative:
a) A wizard can be convenient for humans but mostly does not work nicely with (test) scripts
b) Reverting back to v1beta1 proposal types would be an option but not solving the problem for the future
c) A new wasm command could provide a similar interface as v1beta1 proposals but with a v1 message send
d) A new generic wasm command could extract the message for the tx body for any generated msg. Basically same as jq -r '.body.messages' + header file. It could be used like wasmd tx wasm store "./x/wasm/keeper/testdata/hackatom.wasm" -o json --keyring-backend=test --from mykey --generate-only | wasmd tx wasm extract path/to/proposal.json and then send via wasmd tx gov submit-proposal [path/to/proposal.json]
The text was updated successfully, but these errors were encountered:
Follow up on #1269
The v1 gov module comes with a new
draft-proposal
command to support the proposal file creation. It is based on reflection and the promptui lib.Unfortunately this does not work out of the box with our more complex message types. See the proto file for all current types.
We need to provide an alternative:
a) A wizard can be convenient for humans but mostly does not work nicely with (test) scripts
b) Reverting back to v1beta1 proposal types would be an option but not solving the problem for the future
c) A new wasm command could provide a similar interface as v1beta1 proposals but with a v1 message send
d) A new generic wasm command could extract the message for the tx body for any generated msg. Basically same as
jq -r '.body.messages'
+ header file. It could be used likewasmd tx wasm store "./x/wasm/keeper/testdata/hackatom.wasm" -o json --keyring-backend=test --from mykey --generate-only | wasmd tx wasm extract path/to/proposal.json
and then send viawasmd tx gov submit-proposal [path/to/proposal.json]
The text was updated successfully, but these errors were encountered: