Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove force deaffiliate command (#412)
### Description This ancient command harkens back to the days pre celo mainnet when we were running a POA testnet. It is not possible that this command is still usable as the method on the Validator Contract it calls `forceDeaffiliateIfValidator` has a `onlySlasher` modifier which check the caller against a set of slashers stored on LockedGold slashers are stored as `keccak256(abi.encodePacked(slasherIdentifier));` which must point to an address in the registry. Therefore only slasher contracts can force deaffiliation. ``` modifier onlySlasher() { require(getLockedGold().isSlasher(msg.sender), "Only registered slasher can call"); _; } ``` ### Other changes add pre commands to docs generation to ensure it runs correctly each time. upon running the now fixed docs commands the previously removed reserve commands were removed finally <!-- start pr-codex --> ### see https://github.com/celo-org/celo-monorepo/blob/faca88f6a48cc7c8e6104393e49ddf7c2d7d20e3/packages/protocol/contracts/governance/Validators.sol#L585 https://github.com/celo-org/celo-monorepo/blob/master/packages/protocol/contracts/governance/LockedGold.sol#L422 --- ## PR-Codex overview This PR focuses on removing the `celocli validator:force-deaffiliate` command from the CLI, which was only usable before the mainnet launch. The documentation and related references have been updated to reflect this removal and provide alternative commands for managing validators. ### Detailed summary - Deleted `docs/command-line-interface/reserve.md`. - Deleted `packages/cli/src/commands/validator/force-deaffiliate.ts`. - Updated `generate_docs.sh` to remove documentation for the deleted command. - Removed references to `celocli validator:force-deaffiliate` from `docs/command-line-interface/validator.md`. - Added a note in the changeset about the removal of `celocli validator:force-deaffiliate` and provided alternative commands. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
- Loading branch information