Add end to end testing for eigenlayer cli operator registration
Opened this issue · 1 comments
- Currently we don't have automated tests for e2e testing for operator registration.
- If we push any code, we have to manually setup anvil and test operator registration
Acceptance criteria
- Add end to end tests for operator registration as a CI job
- Start anvil
- Registers operator
- Checks status
I wrote the testcontainer two places already, one in inc-sq and one in my recent PR for egnaddrs: https://github.com/Layr-Labs/eigensdk-go/blob/67be9ea97fb92a3ee090ab12b56e34e97010a76d/cmd/egnaddrs/main_test.go#L50
Think we should add this to eigensdk-go/test
with a predeployed image that it can load so that all projects that need to test against deployed contracts can use this and not worry about reimplementing it themselves.
Only problem I see is if there are diffs and cli is pointing to different version of contracts that the eigensdk is doing... maybe want eigensdk to have deployed contracts for different versions of the eigenlayer-middleware and eigenlayer-contracts and the user can decide which version to load dynamically?