Skip to content

fix(contracts): registrycoordinator pauser is set to eigenlayer addresses - #501

Merged
MauroToscano merged 1 commit into
480-chore-implement-pausable-in-servicemanagerfrom
499-fixcontracts-registrycoordinator-pauser-is-set-to-eigenlayer-addresses
Jun 26, 2024
Merged

fix(contracts): registrycoordinator pauser is set to eigenlayer addresses#501
MauroToscano merged 1 commit into
480-chore-implement-pausable-in-servicemanagerfrom
499-fixcontracts-registrycoordinator-pauser-is-set-to-eigenlayer-addresses

Conversation

@JuArce

Copy link
Copy Markdown
Collaborator

Merge after #481

How to test

  1. Run anvil
make anvil_start_with_block_time
  1. If you run
cast call --rpc-url http://localhost:8545/ 0xf5059a5D33d5853360D16C683c16e67980206f36 "paused()"

the response should be 0x0

  1. Now, set the contract to PAUSE state
cast send --rpc-url http://localhost:8545 0xf5059a5D33d5853360D16C683c16e67980206f36 "pauseAll()" --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
  1. If you run
cast call --rpc-url http://localhost:8545/ 0xf5059a5D33d5853360D16C683c16e67980206f36 "paused()"

the response should be 0xff...ff

  1. To unpause the contract, run
cast send --rpc-url http://localhost:8545 0xf5059a5D33d5853360D16C683c16e67980206f36 "unpause(uint256)" 0 --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
  1. If you run
cast call --rpc-url http://localhost:8545/ 0xf5059a5D33d5853360D16C683c16e67980206f36 "paused()"

the response should be 0x0

How to Deploy

New Deployments

Just deploy aligned contracts as always

@JuArceJuArce linked an issue Jun 26, 2024 that may be closed by this pull request
@JuArceJuArce self-assigned this Jun 26, 2024
@github-actions

Copy link
Copy Markdown

Changes to gas cost

Generated at commit: 910b70113892b6f058759e3c50ba31efbf092157, compared to commit: 5d60d5f3c2e4c711837c45d4a9199f6d1e570320

🧾 Summary (10% most significant diffs)

ContractMethodAvg (+/-)%
AlignedLayerServiceManagerbatchesState
createNewTask
-66 ✅
+2,142 ❌
-10.80%
+4.42%

Full diff report 👇
ContractDeployment Cost (+/-)MethodMin (+/-)%Avg (+/-)%Median (+/-)%Max (+/-)%# Calls (+/-)
AlignedLayerServiceManager4,641,660 (+552,013)batchesState
createNewTask
545 (-66)
50,439 (+2,142)
-10.80%
+4.44%
545 (-66)
50,622 (+2,142)
-10.80%
+4.42%
545 (-66)
50,523 (+2,142)
-10.80%
+4.43%
545 (-66)
51,213 (+2,142)
-10.80%
+4.37%
256 (0)
256 (0)

@JuArceJuArce changed the title 499 fixcontracts registrycoordinator pauser is set to eigenlayer addressesfix(contracts): registrycoordinator pauser is set to eigenlayer addressesJun 26, 2024
@uri-99
uri-99 changed the base branch from main to 480-chore-implement-pausable-in-servicemanagerJune 26, 2024 18:07
@MauroToscano
MauroToscano merged commit 242df3b into 480-chore-implement-pausable-in-servicemanagerJun 26, 2024
@MauroToscano
MauroToscano deleted the 499-fixcontracts-registrycoordinator-pauser-is-set-to-eigenlayer-addresses branch June 26, 2024 18:43
Sign up for freeto 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.

fix(contracts): RegistryCoordinator pauser is set to EigenLayer addresses

3 participants

@JuArce@MauroToscano@uri-99