Skip to content

Commit

Permalink
Remove cancel cmd as PDAO proposals can't be canceled.
Browse files Browse the repository at this point in the history
  • Loading branch information
0xfornax committed May 14, 2024
1 parent 62e363d commit 82f2572
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 170 deletions.
127 changes: 0 additions & 127 deletions rocketpool/api/pdao/cancel-proposal.go

This file was deleted.

43 changes: 0 additions & 43 deletions rocketpool/api/pdao/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,49 +59,6 @@ func RegisterSubcommands(command *cli.Command, name string, aliases []string) {

},
},
{
Name: "can-cancel-proposal",
Usage: "Check whether the node can cancel a proposal",
UsageText: "rocketpool api pdao can-cancel-proposal proposal-id",
Action: func(c *cli.Context) error {

// Validate args
if err := cliutils.ValidateArgCount(c, 1); err != nil {
return err
}
proposalId, err := cliutils.ValidatePositiveUint("proposal ID", c.Args().Get(0))
if err != nil {
return err
}

// Run
api.PrintResponse(canCancelProposal(c, proposalId))
return nil

},
},
{
Name: "cancel-proposal",
Aliases: []string{"c"},
Usage: "Cancel a proposal made by the node",
UsageText: "rocketpool api pdao cancel-proposal proposal-id",
Action: func(c *cli.Context) error {

// Validate args
if err := cliutils.ValidateArgCount(c, 1); err != nil {
return err
}
proposalId, err := cliutils.ValidatePositiveUint("proposal ID", c.Args().Get(0))
if err != nil {
return err
}

// Run
api.PrintResponse(cancelProposal(c, proposalId))
return nil

},
},

{
Name: "can-vote-proposal",
Expand Down

0 comments on commit 82f2572

Please sign in to comment.