Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.0.0] SLASHING #162

Merged
merged 38 commits into from
Dec 18, 2024
Merged
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
eb706a6
fix CLI for slashing
jbrower95 Dec 16, 2024
4d8aeff
save
jbrower95 Dec 16, 2024
81a6f05
save
jbrower95 Dec 16, 2024
639ff0f
fix complete
jbrower95 Dec 16, 2024
0f0c406
fix find-stale-pods
jbrower95 Dec 17, 2024
05ab85a
change to GetWithdrawableShares
jbrower95 Dec 17, 2024
82fba93
use beacon strategy
jbrower95 Dec 17, 2024
d692923
check != to null address
jbrower95 Dec 17, 2024
736ba36
Merge pull request #160 from Layr-Labs/jb/fix-cli-slashing
jbrower95 Dec 17, 2024
972ac7f
fix: handle the pending checkpoint case
gpsanant Dec 17, 2024
6697b27
Merge pull request #161 from Layr-Labs/gpsanant/fix-pending-checkpoin…
jbrower95 Dec 17, 2024
9223cd2
save stubs
jbrower95 Dec 17, 2024
ab15d5d
save
jbrower95 Dec 17, 2024
5922718
blocked on queued withdrawal helper
jbrower95 Dec 17, 2024
b23d4a3
save
jbrower95 Dec 17, 2024
6a3eb67
rm unnecessary args
jbrower95 Dec 17, 2024
9a1ff01
Fix lint
jbrower95 Dec 17, 2024
fccb46e
finish initial impl, just missing PrepareAccount calls
jbrower95 Dec 18, 2024
7ae70fb
build and lint
jbrower95 Dec 18, 2024
614f53c
add more docs
jbrower95 Dec 18, 2024
f5b1b2a
fix isExecutable
jbrower95 Dec 18, 2024
d4a32f9
early return with no afforded or none at all
jbrower95 Dec 18, 2024
6e7c30d
add --amountWei field
jbrower95 Dec 18, 2024
795d6c6
push
jbrower95 Dec 18, 2024
94ce18d
update pipeline
jbrower95 Dec 18, 2024
6ded515
Rename pipeline
jbrower95 Dec 18, 2024
5b12211
fix
jbrower95 Dec 18, 2024
195663a
cap withdrawals taking into account in-flight withdrawals
jbrower95 Dec 18, 2024
46a0174
fix affordability calc
jbrower95 Dec 18, 2024
2ce1119
fix typo
jbrower95 Dec 18, 2024
e271029
fix: cleanup show withdrawals
gpsanant Dec 18, 2024
d2a8aa6
save queueWithdrawal
jbrower95 Dec 18, 2024
45f86ba
Merge branch 'jb/withdrawals' of github.com:Layr-Labs/eigenpod-proofs…
jbrower95 Dec 18, 2024
f78a8eb
chore: logs
gpsanant Dec 18, 2024
ec66f13
fix complete all withdrawals
jbrower95 Dec 18, 2024
ac02b41
fix: make queuing work?
gpsanant Dec 18, 2024
7fe165d
fully tested
jbrower95 Dec 18, 2024
e7cc883
Merge pull request #163 from Layr-Labs/jb/withdrawals
jbrower95 Dec 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
save
jbrower95 committed Dec 18, 2024
commit ab15d5ded9a7d488b1a6a682726429eac779601b
20 changes: 20 additions & 0 deletions cli/commands/completeAllWithdrawals.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package commands

import "github.com/pkg/errors"

type TCompleteWithdrawalArgs struct {
EthNode string
BeaconNode string
EigenPod string
}

func CompleteAllWithdrawalsCommand(args TCompleteWithdrawalArgs) error {
/*
TODO: IDelegationManager.completeQueuedWithdrawals(
IERC20[][] calldata tokens,
bool[] calldata receiveAsTokens,
uint256 numToComplete
)
*/
return errors.New("unimplemented.")
}
14 changes: 0 additions & 14 deletions cli/commands/executeWithdrawal.go

This file was deleted.

8 changes: 7 additions & 1 deletion cli/commands/queueWithdrawal.go
Original file line number Diff line number Diff line change
@@ -2,7 +2,13 @@ package commands

import "github.com/pkg/errors"

func QueueWithdrawalCommand(args TComputeCheckpointableValueCommandArgs) error {
type TQueueWithdrawallArgs struct {
EthNode string
BeaconNode string
EigenPod string
}

func QueueWithdrawalCommand(args TQueueWithdrawallArgs) error {
// TODO: IDelegationManager.queueWithdrawals
/*
struct QueuedWithdrawalParams {
8 changes: 7 additions & 1 deletion cli/commands/showWithdrawals.go
Original file line number Diff line number Diff line change
@@ -2,7 +2,13 @@ package commands

import "github.com/pkg/errors"

func ShowWithdrawalsCommand(args TComputeCheckpointableValueCommandArgs) error {
type TShowWithdrawalArgs struct {
EthNode string
BeaconNode string
EigenPod string
}

func ShowWithdrawalsCommand(args TShowWithdrawalArgs) error {
// IDelegationManager.getQueuedWithdrawals
return errors.New("unimplemented.")
}
42 changes: 38 additions & 4 deletions cli/main.go
Original file line number Diff line number Diff line change
@@ -196,20 +196,54 @@ func main() {
})
},
},
{
Name: "complete-all-withdrawals",
Args: true,
Usage: "Completes all withdrawals",
Flags: []cli.Flag{
ExecNodeFlag,
BeaconNodeFlag,
PodAddressFlag,
},
Action: func(_ *cli.Context) error {
return commands.CompleteAllWithdrawalsCommand(commands.TCompleteWithdrawalArgs{
EthNode: node,
BeaconNode: beacon,
EigenPod: eigenpodAddress,
})
},
},
{
Name: "queue-withdrawal",
Args: true,
Usage: "Queues a withdrawal ",
Usage: "Queues a withdrawal",
Flags: []cli.Flag{
ExecNodeFlag,
BeaconNodeFlag,
PodAddressFlag,
},
Action: func(_ *cli.Context) error {
return commands.QueueWithdrawalCommand(commands.TComputeCheckpointableValueCommandArgs{
Node: node,
return commands.QueueWithdrawalCommand(commands.TQueueWithdrawallArgs{
EthNode: node,
BeaconNode: beacon,
EigenPod: eigenpodAddress,
})
},
},
{
Name: "show-withdrawals",
Args: true,
Usage: "Shows all pending withdrawals",
Flags: []cli.Flag{
ExecNodeFlag,
BeaconNodeFlag,
PodAddressFlag,
},
Action: func(_ *cli.Context) error {
return commands.ShowWithdrawalsCommand(commands.TShowWithdrawalArgs{
EthNode: node,
BeaconNode: beacon,
PodAddress: eigenpodAddress,
EigenPod: eigenpodAddress,
})
},
},