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

UAM Command Schema with CanCall Implementation #244

Merged
merged 15 commits into from
Dec 9, 2024

Conversation

bdchatham
Copy link
Contributor

@bdchatham bdchatham commented Dec 4, 2024

This change adds the command signatures for UAM APIs the CLI will support with the Slashing release.

What Changed?

  • UAM command API signatures
    • user root command; admin & appointee subcommands
  • CanCall command implementation
  • CanCall unit tests

Testing

Deployed the contracts from scratch, tested manually with a script to ensure expected results and repeated with the CLI.

Manual Test

build/eigenlayer user appointee can-call
--account-address "0x298cbAfDcdDD20Bd3DF25365F29a1Eed3aC23752"
--caller-address "0x298cbAfDcdDD20Bd3DF25365F29a1Eed3aC23752"
--target-address "0xe4dB7125ef7a9D99F809B6b7788f75c8D84d8455"
--selector "0x06641202"
--permission-controller-address "0xe4dB7125ef7a9D99F809B6b7788f75c8D84d8455"
--eth-rpc-url "https://ethereum-holesky.publicnode.com/"

Output:

Dec 5 14:39:27.907 INF CanCall Result: true
Dec 5 14:39:27.908 INF Selector, Target and User: 0xe4dB7125ef7a9D99F809B6b7788f75c8D84d8455, 06641202, 0x298cbAfDcdDD20Bd3DF25365F29a1Eed3aC23752

cmd/eigenlayer/main.go Outdated Show resolved Hide resolved
pkg/internal/common/helper.go Show resolved Hide resolved
pkg/users.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@shrimalmadhur shrimalmadhur left a comment

Choose a reason for hiding this comment

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

let's fix the unit tests in subsequent PR.

@bdchatham bdchatham merged commit 5db8d6d into madhur/slashing-allocations Dec 9, 2024
2 of 6 checks passed
@bdchatham bdchatham deleted the chatham/slashingv2 branch December 9, 2024 19:56
shrimalmadhur added a commit that referenced this pull request Dec 10, 2024
feat: add working cmds

remove unrelated changes

remove unrelated changes

unsigned tx

add some tests

comment

add readme

more allocations

basic show command

update with latest contracts

add more code

add more code

working slashing

%age and comments

update with latest contracts

Update show.go (#226)

updated to latest AM

updated to latest AM

updated to latest AM

update eigensdk

update with latest contracts

update with latest contracts

update allocation delay cmd

update with latest contracts

added registered/deregistered operator sets

only show deregister if there's any allocation left

UAM Command Schema with CanCall Implementation (#244)

Co-authored-by: Brandon Chatham <[email protected]>

fix: tests and fmt (#249)

Implementing `list` and `list_permissions` Commands. (#248)

Co-authored-by: Brandon Chatham <[email protected]>
shrimalmadhur added a commit that referenced this pull request Dec 10, 2024
feat: add working cmds

remove unrelated changes

remove unrelated changes

unsigned tx

add some tests

comment

add readme

more allocations

basic show command

update with latest contracts

add more code

add more code

working slashing

%age and comments

update with latest contracts

Update show.go (#226)

updated to latest AM

updated to latest AM

updated to latest AM

update eigensdk

update with latest contracts

update with latest contracts

update allocation delay cmd

update with latest contracts

added registered/deregistered operator sets

only show deregister if there's any allocation left

UAM Command Schema with CanCall Implementation (#244)

Co-authored-by: Brandon Chatham <[email protected]>

fix: tests and fmt (#249)

Implementing `list` and `list_permissions` Commands. (#248)

Co-authored-by: Brandon Chatham <[email protected]>
shrimalmadhur added a commit that referenced this pull request Dec 16, 2024
feat: add working cmds

remove unrelated changes

remove unrelated changes

unsigned tx

add some tests

comment

add readme

more allocations

basic show command

update with latest contracts

add more code

add more code

working slashing

%age and comments

update with latest contracts

Update show.go (#226)

updated to latest AM

updated to latest AM

updated to latest AM

update eigensdk

update with latest contracts

update with latest contracts

update allocation delay cmd

update with latest contracts

added registered/deregistered operator sets

only show deregister if there's any allocation left

UAM Command Schema with CanCall Implementation (#244)

Co-authored-by: Brandon Chatham <[email protected]>

fix: tests and fmt (#249)

Implementing `list` and `list_permissions` Commands. (#248)

Co-authored-by: Brandon Chatham <[email protected]>
shrimalmadhur added a commit that referenced this pull request Dec 19, 2024
feat: add working cmds

remove unrelated changes

remove unrelated changes

unsigned tx

add some tests

comment

add readme

more allocations

basic show command

update with latest contracts

add more code

add more code

working slashing

%age and comments

update with latest contracts

Update show.go (#226)

updated to latest AM

updated to latest AM

updated to latest AM

update eigensdk

update with latest contracts

update with latest contracts

update allocation delay cmd

update with latest contracts

added registered/deregistered operator sets

only show deregister if there's any allocation left

UAM Command Schema with CanCall Implementation (#244)

Co-authored-by: Brandon Chatham <[email protected]>

fix: tests and fmt (#249)

Implementing `list` and `list_permissions` Commands. (#248)

Co-authored-by: Brandon Chatham <[email protected]>
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.

2 participants