Skip to content

Commit

Permalink
save stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrower95 committed Dec 17, 2024
1 parent 736ba36 commit c6eb857
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 0 deletions.
14 changes: 14 additions & 0 deletions cli/commands/executeWithdrawal.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package commands

import "github.com/pkg/errors"

func ExecuteWithdrawalCommand(args TComputeCheckpointableValueCommandArgs) error {

Check failure on line 5 in cli/commands/executeWithdrawal.go

View workflow job for this annotation

GitHub Actions / test

undefined: TComputeCheckpointableValueCommandArgs
/*
TODO: IDelegationManager.completeQueuedWithdrawals(
IERC20[][] calldata tokens,
bool[] calldata receiveAsTokens,
uint256 numToComplete
)
*/
return errors.New("unimplemented.")
}
19 changes: 19 additions & 0 deletions cli/commands/queueWithdrawal.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package commands

import "github.com/pkg/errors"

func QueueWithdrawalCommand(args TComputeCheckpointableValueCommandArgs) error {

Check failure on line 5 in cli/commands/queueWithdrawal.go

View workflow job for this annotation

GitHub Actions / test

undefined: TComputeCheckpointableValueCommandArgs
// TODO: IDelegationManager.queueWithdrawals
/*
struct QueuedWithdrawalParams {
// Array of strategies that the QueuedWithdrawal contains
IStrategy[] strategies;
// Array containing the amount of depositShares for withdrawal in each Strategy in the `strategies` array
// Note that the actual shares received on completing withdrawal may be less than the depositShares if slashing occurred
uint256[] depositShares;
// The address of the withdrawer
address withdrawer;
}
*/
return errors.New("unimplemented.")
}
8 changes: 8 additions & 0 deletions cli/commands/showWithdrawals.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package commands

import "github.com/pkg/errors"

func ShowWithdrawalsCommand(args TComputeCheckpointableValueCommandArgs) error {

Check failure on line 5 in cli/commands/showWithdrawals.go

View workflow job for this annotation

GitHub Actions / test

undefined: TComputeCheckpointableValueCommandArgs
// IDelegationManager.getQueuedWithdrawals
return errors.New("unimplemented.")
}
17 changes: 17 additions & 0 deletions cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,23 @@ func main() {
})
},
},
{
Name: "queue-withdrawal",
Args: true,
Usage: "Queues a withdrawal ",
Flags: []cli.Flag{
ExecNodeFlag,
BeaconNodeFlag,
PodAddressFlag,
},
Action: func(_ *cli.Context) error {
return commands.QueueWithdrawalCommand(commands.TComputeCheckpointableValueCommandArgs{
Node: node,
BeaconNode: beacon,
PodAddress: eigenpodAddress,
})
},
},
},
Flags: []cli.Flag{
&cli.BoolFlag{
Expand Down

0 comments on commit c6eb857

Please sign in to comment.