-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { | ||
/* | ||
TODO: IDelegationManager.completeQueuedWithdrawals( | ||
IERC20[][] calldata tokens, | ||
bool[] calldata receiveAsTokens, | ||
uint256 numToComplete | ||
) | ||
*/ | ||
return errors.New("unimplemented.") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { | ||
// 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.") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { | ||
// IDelegationManager.getQueuedWithdrawals | ||
return errors.New("unimplemented.") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters