upgrade-l2

Automate L2 bridge and Global Exit Root contract upgrades with script selection.

310|378|Updated Oct 27, 2021
One-click install
npx skills add https://github.com/agglayer/agglayer-contracts --skill upgrade-l2
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: upgrade-l2
Source: https://github.com/agglayer/agglayer-contracts/tree/main/.claude/skills/upgrade-l2
Command: npx skills add https://github.com/agglayer/agglayer-contracts --skill upgrade-l2

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the complex process of upgrading L2 sovereign chain contracts, ensuring your blockchain infrastructure remains up-to-date and secure.

Core Features & Use Cases

  • Streamlined Upgrades: Simplifies the upgrade of L2 bridge and/or Global Exit Root (GER) contracts.
  • Script Selection: Intelligently chooses between two primary upgrade scripts based on the current contract state.
  • Configuration Assistance: Guides the user through gathering necessary network details, contract addresses, and role assignments.
  • Use Case: When a new version of the L2 bridge contract is released, this Skill can be used to deploy the new version, ensuring all network participants benefit from the latest features and security patches.

Quick Start

Use the upgrade-l2 skill to upgrade the L2 bridge contract on the mainnet network.

Frequently Asked Questions about upgrade-l2

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I upgrade L2 sovereign chain bridge contracts?

To upgrade L2 sovereign chain bridge contracts, you must select the appropriate script based on your current contract version, gather network and contract addresses, configure environment variables, and execute the deployment script.

What is needed for an Etrog to sovereign chain migration?

An Etrog to sovereign chain migration requires gathering network details, contract addresses, and role assignments, then using a specific upgrade script to handle the bridge and Global Exit Root contract migration.

How does the Global Exit Root contract upgrade process work?

The Global Exit Root contract upgrade process works by guiding you through parameter configuration and executing the appropriate script, followed by scheduling and executing the upgrade via a timelock mechanism.

Do I need a timelock to execute L2 bridge contract upgrades?

Yes, a timelock is required to execute L2 bridge contract upgrades. The skill provides post-deployment instructions for scheduling and executing the upgrade through the timelock mechanism.

Can I test sovereign chain contract upgrades before mainnet deployment?

Yes, you can test sovereign chain contract upgrades before mainnet deployment. The skill recommends validating the upgrade process through shadow fork testing to ensure network stability.

What limitations exist when migrating bridge contracts to a sovereign chain?

When migrating bridge contracts to a sovereign chain, limitations include selecting the correct script based on the current contract version, as incorrect environment variable configuration or skipping shadow fork validation can cause deployment failures.