diff --git a/.changeset/good-peas-type.md b/.changeset/good-peas-type.md new file mode 100644 index 000000000..eb3b46e00 --- /dev/null +++ b/.changeset/good-peas-type.md @@ -0,0 +1,5 @@ +--- +'@celo/celocli': patch +--- + +deprecates the flags --whitelisters and --nonwhitelisters from the governance:show command diff --git a/docs/command-line-interface/governance.md b/docs/command-line-interface/governance.md index d568b18b8..7c69abbb6 100644 --- a/docs/command-line-interface/governance.md +++ b/docs/command-line-interface/governance.md @@ -437,16 +437,19 @@ FLAGS provided file --nonwhitelisters If set, displays validators that have not whitelisted - the hotfix. + the hotfix.(will be removed + when L2 launches --notwhitelisted List validators who have not whitelisted the specified - hotfix + hotfix (will be removed when + L2 launches --proposalID= UUID of proposal to view --raw Display proposal in raw bytes format --whitelisters If set, displays validators that have whitelisted the - hotfix. + hotfix.(will be removed when + L2 launches DESCRIPTION Show information about a governance proposal, hotfix, or account. @@ -507,16 +510,19 @@ FLAGS provided file --nonwhitelisters If set, displays validators that have not whitelisted - the hotfix. + the hotfix.(will be removed + when L2 launches --notwhitelisted List validators who have not whitelisted the specified - hotfix + hotfix (will be removed when + L2 launches --proposalID= UUID of proposal to view --raw Display proposal in raw bytes format --whitelisters If set, displays validators that have whitelisted the - hotfix. + hotfix.(will be removed when + L2 launches DESCRIPTION Show information about a governance proposal, hotfix, or account. @@ -575,16 +581,19 @@ FLAGS provided file --nonwhitelisters If set, displays validators that have not whitelisted - the hotfix. + the hotfix.(will be removed + when L2 launches --notwhitelisted List validators who have not whitelisted the specified - hotfix + hotfix (will be removed when + L2 launches --proposalID= UUID of proposal to view --raw Display proposal in raw bytes format --whitelisters If set, displays validators that have whitelisted the - hotfix. + hotfix.(will be removed when + L2 launches DESCRIPTION Show information about a governance proposal, hotfix, or account. @@ -674,16 +683,19 @@ FLAGS provided file --nonwhitelisters If set, displays validators that have not whitelisted - the hotfix. + the hotfix.(will be removed + when L2 launches --notwhitelisted List validators who have not whitelisted the specified - hotfix + hotfix (will be removed when + L2 launches --proposalID= UUID of proposal to view --raw Display proposal in raw bytes format --whitelisters If set, displays validators that have whitelisted the - hotfix. + hotfix.(will be removed when + L2 launches DESCRIPTION Show information about a governance proposal, hotfix, or account. @@ -742,16 +754,19 @@ FLAGS provided file --nonwhitelisters If set, displays validators that have not whitelisted - the hotfix. + the hotfix.(will be removed + when L2 launches --notwhitelisted List validators who have not whitelisted the specified - hotfix + hotfix (will be removed when + L2 launches --proposalID= UUID of proposal to view --raw Display proposal in raw bytes format --whitelisters If set, displays validators that have whitelisted the - hotfix. + hotfix.(will be removed when + L2 launches DESCRIPTION Show information about a governance proposal, hotfix, or account. @@ -810,16 +825,19 @@ FLAGS provided file --nonwhitelisters If set, displays validators that have not whitelisted - the hotfix. + the hotfix.(will be removed + when L2 launches --notwhitelisted List validators who have not whitelisted the specified - hotfix + hotfix (will be removed when + L2 launches --proposalID= UUID of proposal to view --raw Display proposal in raw bytes format --whitelisters If set, displays validators that have whitelisted the - hotfix. + hotfix.(will be removed when + L2 launches DESCRIPTION Show information about a governance proposal, hotfix, or account. diff --git a/packages/cli/src/commands/governance/show.ts b/packages/cli/src/commands/governance/show.ts index 54b886c8a..10acd6a8d 100644 --- a/packages/cli/src/commands/governance/show.ts +++ b/packages/cli/src/commands/governance/show.ts @@ -44,14 +44,20 @@ export default class Show extends BaseCommand { description: 'Hash of hotfix proposal', }), notwhitelisted: Flags.boolean({ - description: 'List validators who have not whitelisted the specified hotfix', + description: + 'List validators who have not whitelisted the specified hotfix (will be removed when L2 launches', + deprecated: true, }), whitelisters: Flags.boolean({ - description: 'If set, displays validators that have whitelisted the hotfix.', + description: + 'If set, displays validators that have whitelisted the hotfix.(will be removed when L2 launches', + deprecated: true, exclusive: ['nonwhitelisters', 'account', 'proposalID'], }), nonwhitelisters: Flags.boolean({ - description: 'If set, displays validators that have not whitelisted the hotfix.', + description: + 'If set, displays validators that have not whitelisted the hotfix.(will be removed when L2 launches', + deprecated: true, exclusive: ['whitelisters', 'account', 'proposalID'], }), afterExecutingProposal: Flags.string({ @@ -150,6 +156,7 @@ export default class Show extends BaseCommand { return } + // TODO: remove this bit when L2 launches const passing = await governance.isHotfixPassing(hotfixBuf) printValueMap({ passing }) const tally = await governance.hotfixWhitelistValidatorTally(hotfixBuf)