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
gen-upgrade-proposal.sh is a script to help the chain participant (usually a validator) generate a governance proposal transaction to upgrade an agoric-sdk based chain.
Some of the information must be provided, such as expected upgrade height, or upgrade name, and descriptions.
The script is currently outputting plain text instruction, including a command template meant to be copy/pasted with placeholders data for the above information. This results in the inability to script this process, and this helper script no longer being used for upgrades of the agoric-3 chain.
Description of the Design
Script accepting needed input as command line parameters or environment variables
Consider a way to extract information such as upgrade name (possibly related to Enforce xsnap version on chain start #7012 for a way to configure the codebase with the expected upgrade name)
Consider integrating the block estimator to calculate an upgrade height
Consider an interactive prompt with sane defaults if some information is not provided, e.g. for the title and description
Issue the command directly instead of printing it out
There should remain an option to print out the agd tx command, albeit fully populated, so that the validator can manually verify the transaction before submitting it
Furthermore the script does not currently support indicating core proposal information, which is needed for upgrade-14
Security Considerations
The script must remain legible, especially around how the tx command is generated, for validators to trust its output.
Scaling Considerations
None
Test Plan
Manual?
Upgrade Considerations
This is to facilitate upgrade instructions, but has no bearing on the actual upgrade.
The text was updated successfully, but these errors were encountered:
Fixes#8784
* script arguments for target release/tag/commit and Cosmos upgrade
name, plus pass-through of arbitrary `agd tx` arguments
* automatic selection of upgrade name from gen-github-release.sh release
contents, with interactive disambiguation (where possible) of multiple
candidates
* reasonable defaults for title and description from
gen-github-release.sh release contents
* script option `--send` to invoke `agd tx` rather than just printing it
out (but successfully invocation additionally requires `--from` etc.)
* readable output of the `agd tx` command and data affecting it, whether
or not it is to be invoked directly
* argument checking with readable error messages and usage details
* use of GitHub requests and https://main.agoric.net/network-config,
overridable by environment variables
What is the Problem Being Solved?
gen-upgrade-proposal.sh
is a script to help the chain participant (usually a validator) generate a governance proposal transaction to upgrade an agoric-sdk based chain.Some of the information must be provided, such as expected upgrade height, or upgrade name, and descriptions.
The script is currently outputting plain text instruction, including a command template meant to be copy/pasted with placeholders data for the above information. This results in the inability to script this process, and this helper script no longer being used for upgrades of the
agoric-3
chain.Description of the Design
agd tx
command, albeit fully populated, so that the validator can manually verify the transaction before submitting itFurthermore the script does not currently support indicating core proposal information, which is needed for upgrade-14
Security Considerations
The script must remain legible, especially around how the
tx
command is generated, for validators to trust its output.Scaling Considerations
None
Test Plan
Manual?
Upgrade Considerations
This is to facilitate upgrade instructions, but has no bearing on the actual upgrade.
The text was updated successfully, but these errors were encountered: