refactor: x/upgrade audit changes (#14188)

This commit is contained in:
Likhita Polavarapu
2022-12-08 13:02:49 +01:00
committed by GitHub
parent f3be41836f
commit bd59987df1
14 changed files with 282 additions and 27 deletions
+2 -1
View File
@@ -18,8 +18,9 @@ service Msg {
//
// Since: cosmos-sdk 0.46
rpc SoftwareUpgrade(MsgSoftwareUpgrade) returns (MsgSoftwareUpgradeResponse);
// CancelUpgrade is a governance operation for cancelling a previously
// approvid software upgrade.
// approved software upgrade.
//
// Since: cosmos-sdk 0.46
rpc CancelUpgrade(MsgCancelUpgrade) returns (MsgCancelUpgradeResponse);
+8 -1
View File
@@ -31,7 +31,6 @@ message Plan {
[deprecated = true, (gogoproto.stdtime) = true, (gogoproto.nullable) = false, (amino.dont_omitempty) = true];
// The height at which the upgrade must be performed.
// Only used if Time is not set.
int64 height = 3;
// Any application specific upgrade info to be included on-chain
@@ -54,8 +53,13 @@ message SoftwareUpgradeProposal {
option (amino.name) = "cosmos-sdk/SoftwareUpgradeProposal";
option (gogoproto.equal) = true;
// title of the proposal
string title = 1;
// description of the proposal
string description = 2;
// plan of the proposal
Plan plan = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true];
}
@@ -69,7 +73,10 @@ message CancelSoftwareUpgradeProposal {
option (amino.name) = "cosmos-sdk/CancelSoftwareUpgradeProposal";
option (gogoproto.equal) = true;
// title of the proposal
string title = 1;
// description of the proposal
string description = 2;
}