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

feat: set and get operator split command #247

Open
wants to merge 9 commits into
base: rewards-v2
Choose a base branch
from

Conversation

gpabst
Copy link
Contributor

@gpabst gpabst commented Dec 9, 2024

Adds operator split command for rewards v2:
./eigenlayer operator set-rewards-split --operator-address 0x025246421e7247a729bbcff652c5cc1815ac6373 --avs-address 0xfF95c28C1c38bbb26EC7Ad0BAf7b17375Ff6315C --eth-rpc-url http://rpc-url --network holesky --split 1000

Eigensdk has been updated to include getting / setting methods in Layr-Labs/eigensdk-go#401

Examples:
Screenshot 2024-12-11 at 10 47 58 AM
Screenshot 2024-12-11 at 10 47 39 AM

@gpabst gpabst marked this pull request as ready for review December 11, 2024 16:15
pkg/rewards/flags.go Outdated Show resolved Hide resolved
pkg/rewards/operator_split.go Outdated Show resolved Hide resolved
pkg/rewards/operator_split.go Outdated Show resolved Hide resolved
pkg/rewards/types.go Outdated Show resolved Hide resolved
pkg/rewards/types.go Outdated Show resolved Hide resolved
pkg/rewards/operator_split.go Outdated Show resolved Hide resolved
pkg/rewards/flags.go Outdated Show resolved Hide resolved
@gpabst

This comment was marked as resolved.

@gpabst gpabst changed the title feat: set operator split command feat: Set and get operator split command Dec 11, 2024
@gpabst gpabst changed the title feat: Set and get operator split command feat: set and get operator split command Dec 11, 2024

func getOperatorSplitFlags() []cli.Flag {
baseFlags := []cli.Flag{
&flags.NetworkFlag,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this needs a --broadcast , output type and output file flag. check rewards claim command.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how would that be useful for something simple like setting split? Is it to check what would be executed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants