Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
shrimalmadhur committed Aug 14, 2024
1 parent 1d5db48 commit 9e40102
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pkg/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func OperatorCmd(p utils.Prompter) *cli.Command {
operator.StatusCmd(p),
operator.UpdateCmd(p),
operator.UpdateMetadataURICmd(p),
// TODO(shrimalmadhur): enable after testing

//operator.OperatorSetCmd(p),
},
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/operator/operatorset.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

func OperatorSetCmd(p utils.Prompter) *cli.Command {
var operatorSetCmd = &cli.Command{
Name: "opset",
Name: "operatorset",
Usage: "Manage operator's operator set configurations",
Description: "Manage the operator's operator sets",
Subcommands: []*cli.Command{
Expand Down
8 changes: 5 additions & 3 deletions pkg/operator/operatorset/deregister.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ type deregisterConfig struct {
func DeregisterCmd(p utils.Prompter) *cli.Command {
return &cli.Command{
Name: "deregister",
Usage: "Deregister an operator set",
Usage: "Force deregisters operator sets",
Description: `
Force deregisters operator sets. This can be use to deregister from any operator set in the AVS if in case AVS does not provide a way to deregister. This does not require any signature from the AVS.
`,
Flags: getDeregisterFlags(),
Action: func(c *cli.Context) error {
return deregisterOperatorSet(c, p)
Expand Down Expand Up @@ -112,8 +115,7 @@ func deregisterOperatorSet(c *cli.Context, p utils.Prompter) error {

// TODO(shrimalmadhur): contractIAVSDirectory.ISignatureUtilsSignatureWithSaltAndExpiry{} is a placeholder for
// the signature right now we are not using force deregister via signature but in future we will support it so
// that someone can
// force deregister on behalf of an operator
// that someone can force deregister on behalf of an operator
receipt, err := eLWriter.ForceDeregisterFromOperatorSets(
ctx,
config.operatorAddress,
Expand Down

0 comments on commit 9e40102

Please sign in to comment.