Skip to content

224 Update BLS List Operator Script#225

Open
Supeeerpower wants to merge 9 commits intodevfrom
224-update-bls-list-operator-script
Open

224 Update BLS List Operator Script#225
Supeeerpower wants to merge 9 commits intodevfrom
224-update-bls-list-operator-script

Conversation

@Supeeerpower
Copy link
Contributor

Fixes on #224

  • Replace registryCoordinator with slashingRegistryCoordinator.
  • Updated list operator field. (will use in Mirror or Mock)
  • Shell script update.

@Supeeerpower Supeeerpower requested a review from ethanfrey August 5, 2025 12:02
@Supeeerpower Supeeerpower linked an issue Aug 5, 2025 that may be closed by this pull request
@Supeeerpower Supeeerpower self-assigned this Aug 5, 2025
ismellike and others added 5 commits August 5, 2025 11:34
Always have to look up what this command is to test locally
helper for local testing
…g-ownership-of-all-contracts

221 Transfer Ownership Script
@Supeeerpower Supeeerpower force-pushed the 224-update-bls-list-operator-script branch from 745fd35 to fc0c88e Compare August 6, 2025 13:45
@Supeeerpower Supeeerpower force-pushed the 224-update-bls-list-operator-script branch from fc0c88e to b2609f7 Compare August 6, 2025 13:47
@Supeeerpower Supeeerpower force-pushed the 224-update-bls-list-operator-script branch from fe90194 to e3b8834 Compare August 7, 2025 11:41
@ueco-jb ueco-jb requested a review from Copilot August 8, 2025 09:13
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Updates BLS list operator scripts to replace registryCoordinator with slashingRegistryCoordinator and improves operator listing functionality. The changes address issue #224 by modernizing the operator listing system and removing outdated broadcast operations.

  • Replace deprecated RegistryCoordinator with SlashingRegistryCoordinator for BLS middleware
  • Remove unnecessary broadcast operations from various shell scripts and Solidity scripts
  • Add comprehensive operator listing library with enhanced data structures and JSON output capabilities

Reviewed Changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
scripts/ecdsa/mirror/list_operators.sh Remove --broadcast flag from forge script execution
scripts/ecdsa/mirror/deploy.sh Remove --broadcast flag from forge script execution
scripts/ecdsa/eigen/list_operators.sh Remove --broadcast flag and add operator data saving functionality
scripts/bls/eigen/list_operators.sh Remove --broadcast flag and update output file naming convention
docker/BLS_CLI.md Remove docci output constraint from bash code block
contracts/script/eigenlayer/ecdsa/WavsMirrorPrepareDeploy.s.sol Remove vm.startBroadcast/stopBroadcast wrapper
contracts/script/eigenlayer/ecdsa/WavsListOperators.s.sol Remove broadcast wrapper and add JSON output functionality
contracts/script/eigenlayer/bls/utils/WavsMiddlewareDeploymentLib.sol Replace RegistryCoordinator with SlashingRegistryCoordinator implementation
contracts/script/eigenlayer/bls/utils/WavsListOperatorsLib.sol Add comprehensive operator listing library with data structures and utilities
contracts/script/eigenlayer/bls/WavsMiddlewareDeployer.s.sol Update type references from RegistryCoordinator to SlashingRegistryCoordinator
contracts/script/eigenlayer/bls/WavsListOperators.s.sol Refactor to use new WavsListOperatorsLib for operator listing functionality

uint256 quorumDenominator;
}

Vm internal constant VM = Vm(address(uint160(uint256(keccak256("hevm cheat code")))));
Copy link

Copilot AI Aug 8, 2025

Choose a reason for hiding this comment

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

Using a hardcoded address for the VM cheat code is fragile and may break if the cheat code address changes. Consider using vm from the Script contract or importing it properly from forge-std.

Suggested change
Vm internal constant VM = Vm(address(uint160(uint256(keccak256("hevm cheat code")))));
// Use the Vm instance from the caller, do not hardcode the address.

Copilot uses AI. Check for mistakes.
ISocketRegistry(socketRegistry),
IAllocationManager(core.allocationManager),
IPauserRegistry(pauserRegistry),
"1.0.0"
Copy link

Copilot AI Aug 8, 2025

Choose a reason for hiding this comment

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

[nitpick] The version string "1.0.0" is hardcoded. Consider making this configurable or using a constant to improve maintainability.

Copilot uses AI. Check for mistakes.
VM.createDir("deployments/wavs-bls", true);
}

string memory json = "{\"totalWeight\":\"";
Copy link

Copilot AI Aug 8, 2025

Choose a reason for hiding this comment

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

Manual JSON string concatenation is error-prone and hard to maintain. Consider using a JSON library or structured approach for building JSON output.

Copilot uses AI. Check for mistakes.
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.

Update BLS List Operator Script

2 participants