diff --git a/CHANGELOG.md b/CHANGELOG.md index 1abcdff..f845f43 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +- `--refresh-followers` has been renamed to the more accurate `--refresh-following`. + ## [0.5.3] - 2025-01-06 - Added `quill neuron-manage --refresh-followers`. diff --git a/docs/cli-reference/quill-neuron-manage.mdx b/docs/cli-reference/quill-neuron-manage.mdx index 1474d02..223d6dd 100644 --- a/docs/cli-reference/quill-neuron-manage.mdx +++ b/docs/cli-reference/quill-neuron-manage.mdx @@ -22,31 +22,31 @@ quill neuron-manage [option] ## Flags -| Flag | Description | -|-------------------------------------------------------|----------------------------------------------------------------------------------| -| `--add-hot-key ` | Principal to be used as a hot key. | -| `-a`, `--additional-dissolve-delay-seconds ` | Number of dissolve seconds to add. | -| `--auto-stake-maturity enabled|disabled` | Set whether new maturity should be automatically staked. | -| `--clear-manage-neuron-followees` | Remove all followees for the NeuronManagement topic. | -| `--disburse-amount` | Disburse only the selected amount. | -| `--disburse-to` | Disburse to the selected NNS account instead of the controller. | -| `--disburse` | Disburse the entire staked amount to the controller's account. | -| `--follow-neurons ...` | Defines the neuron ids of a follow rule. | -| `--follow-topic ` | Defines the topic of a follow rule as defined [here][follow-rules]. | -| `-h`, `--help` | Displays usage information. | -| `--join-community-fund` | Join the Internet Computer's community fund with this neuron's entire stake. | -| `--leave-community-fund` | Leave the Internet Computer's community fund. | -| `--merge-from-neuron ` | Merge stake, maturity and age from the specified neuron into the managed neuron. | -| `--refresh-followers` | Refresh the neuron's voting power by reaffirming the current list of followers. | -| `--register-vote ... [--reject]` | Vote to approve (default) or reject proposal(s). | -| `--reject` | Reject the proposal(s) specified with `--register-vote`. | -| `--remove-hot-key ` | Principal hot key to be removed. | -| `--set-visibility [public|private]` | Set visibility. This controls what fields are readable to arbitrary principals. | -| `--spawn` | Spawn rewards to a new neuron under the controller's account. | -| `--split ` | Split off the given number of ICP from a neuron. | -| `--stake-maturity ` | Stake the percentage (between 1 and 100) of the maturity of a neuron. | -| `--start-dissolving` | Start dissolving. | -| `--stop-dissolving` | Stop dissolving. | +| Flag | Description | +|-------------------------------------------------------|----------------------------------------------------------------------------------------| +| `--add-hot-key ` | Principal to be used as a hot key. | +| `-a`, `--additional-dissolve-delay-seconds ` | Number of dissolve seconds to add. | +| `--auto-stake-maturity enabled|disabled` | Set whether new maturity should be automatically staked. | +| `--clear-manage-neuron-followees` | Remove all followees for the NeuronManagement topic. | +| `--disburse-amount` | Disburse only the selected amount. | +| `--disburse-to` | Disburse to the selected NNS account instead of the controller. | +| `--disburse` | Disburse the entire staked amount to the controller's account. | +| `--follow-neurons ...` | Defines the neuron ids of a follow rule. | +| `--follow-topic ` | Defines the topic of a follow rule as defined [here][follow-rules]. | +| `-h`, `--help` | Displays usage information. | +| `--join-community-fund` | Join the Internet Computer's community fund with this neuron's entire stake. | +| `--leave-community-fund` | Leave the Internet Computer's community fund. | +| `--merge-from-neuron ` | Merge stake, maturity and age from the specified neuron into the managed neuron. | +| `--refresh-following` | Refresh the neuron's voting power by reaffirming the current list of followed neurons. | +| `--register-vote ... [--reject]` | Vote to approve (default) or reject proposal(s). | +| `--reject` | Reject the proposal(s) specified with `--register-vote`. | +| `--remove-hot-key ` | Principal hot key to be removed. | +| `--set-visibility [public|private]` | Set visibility. This controls what fields are readable to arbitrary principals. | +| `--spawn` | Spawn rewards to a new neuron under the controller's account. | +| `--split ` | Split off the given number of ICP from a neuron. | +| `--stake-maturity ` | Stake the percentage (between 1 and 100) of the maturity of a neuron. | +| `--start-dissolving` | Start dissolving. | +| `--stop-dissolving` | Stop dissolving. | [follow-rules]: https://github.com/dfinity/ic/blob/4c9e71499d90d00da986dbe7b985d861fd031c4e/rs/nns/governance/gen/ic_nns_governance.pb.v1.rs#L1571-L1632 @@ -99,7 +99,7 @@ This will produce a response like: If a neuron does not take any action for more than 6 months, it will start losing voting power and thus voting rewards. To avoid that, neurons can vote directly or set which neurons they follow. To confirm the current following setting and refresh voting power without making any changes: ```sh -quill neuron-manage 2313380519530470538 --refresh-followers +quill neuron-manage 2313380519530470538 --refresh-following ``` This will produce a response like: diff --git a/src/commands/neuron_manage.rs b/src/commands/neuron_manage.rs index ddc67cf..33b18ac 100644 --- a/src/commands/neuron_manage.rs +++ b/src/commands/neuron_manage.rs @@ -140,10 +140,10 @@ pub struct ManageOpts { #[arg(long)] set_visibility: Option, - /// Refresh the neuron's voting power by reaffirming the current list of followers. + /// Refresh the neuron's voting power by reaffirming the current list of followed neurons. /// This must be done every so often to avoid neurons diminishing in voting power. - #[arg(long)] - refresh_followers: bool, + #[arg(long, alias = "refresh-followers")] + refresh_following: bool, } #[derive(Debug, Clone, Copy, PartialEq, Eq, ValueEnum)] @@ -158,7 +158,7 @@ pub fn exec(auth: &AuthInfo, opts: ManageOpts) -> AnyhowResult