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

Creator templates upgrade #13

Merged
merged 12 commits into from
Mar 13, 2024
Merged

Creator templates upgrade #13

merged 12 commits into from
Mar 13, 2024

Conversation

gvladika
Copy link
Contributor

@gvladika gvladika commented Mar 8, 2024

This script is used to deploy new 1.2.1 templates (if not already deployed) and then update RollupCreator and Bridge creator to use the new templates.

Usage:

  1. Setup .env according to the example files, make sure you have everything correctly defined. The script do some sanity checks but not everything can be checked. Template addresses should be set to address zero if they're supposed to be deployed. If templates are already deployed, provide the respective addresses.

UpgradeCreatorTemplatesScript.s.sol script deploys templates if necessary and updates the creators if possible. RollupCreator and BridgeCreator will be updated if CREATOR_OWNER_IS_MULTISIG is set to false, otherwise the update calldatas will be generated and stored in ${root}/scripts/foundry/creator-upgrades1.2.1/output/${chainId}.json.

Script can be executed in this directory like this:

forge script --sender $DEPLOYER --rpc-url $PARENT_CHAIN_RPC --broadcast --slow ./UpgradeCreatorTemplatesScript.s.sol -vvv --verify --skip-simulation

Output file with calldatas will be generated in

scripts/foundry/creator-upgrades1.2.1/output/${chainId}.json

@gvladika gvladika requested a review from gzeoneth March 8, 2024 10:26
gvladika pushed a commit that referenced this pull request Mar 8, 2024
* chore: yarn fix

* ci: fix yarn install
Copy link
Member

@gzeoneth gzeoneth left a comment

Choose a reason for hiding this comment

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

LGTM

@gvladika gvladika merged commit dc4001d into main Mar 13, 2024
8 checks passed
@gvladika gvladika deleted the creator-templates-upgrade branch March 13, 2024 15:37
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