Skip to content

feat: add script for initial gov deployment #1205

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

Open
wants to merge 9 commits into
base: feat/v1.2.0-onto-v1.1.1
Choose a base branch
from

Conversation

MinisculeTarantula
Copy link
Contributor

@MinisculeTarantula MinisculeTarantula commented Mar 4, 2025

Motivation:

This PR is an attempt to support easily doing a fresh deployment of the governance & token contracts of EigenLayer. For the moment, this change is framed as a 0.0.0=>0.0.1 upgrade. Performing such a deployment should support the subsequent deployment of all other system contracts.

Modifications:

  1. adds a few convenience functions to script/releases/Env.sol
  2. primary script is script/releases/v0.0.1-gov/1-eoa.s.sol which deploys multisigs, TimelockControllers, and token contracts ("the governance contracts")
  3. some opinionated decisions have been made, notably:
    a. initial minting of 1.6 billion EIGEN tokens is performed, with the tokens held by the deployer address
    b. this assumes that Safe contracts are already deployed on the chain + in the environment

Result:

It should be possible to use Zeus to do a fresh deployment of the governance & token contracts of EigenLayer by running a simple CLI command.

MinisculeTarantula and others added 9 commits March 3, 2025 16:43
adds a few fields to zeus env, which seem advisable to have regardless

script compiles but will need more work to be complete.
several TODOs left in the code to address
this fixes an error `FAIL: revert: multisig deployment failed` from reusing salts
fixes a few issues primarily related to confusion between the two tokens
this change should be especially practical for testnet environments
@MinisculeTarantula MinisculeTarantula changed the title feat: scaffolding for initial gov deployment feat: add script for initial gov deployment Mar 4, 2025
@0xClandestine 0xClandestine added the 🚢 Deployment Code deployed to testnet or mainnet. label Mar 4, 2025
@jbrower95 jbrower95 marked this pull request as ready for review March 11, 2025 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚢 Deployment Code deployed to testnet or mainnet.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants