Skip to content

EspressoSystems/orbit-actions

Repository files navigation

Orbit Action Contracts

A set of contracts that are similar to Arbitrum gov-action-contracts, but are designed to be used with the Orbit chains.

Requirments

yarn and foundry are required to run the scripts

Most of the action contracts only support the following ownership setup:

  • Rollup Contract on Parent Chain owned by a ParentUpgradeExecutor
  • Rollup ProxyAdmin on Parent Chain owned by a ParentUpgradeExecutor
  • Arb Owner on the Child Orbit Chain is granted to alias of ParentUpgradeExecutor
  • Arb Owner on the Child Orbit Chain is granted to ChildUpgradeExecutor

For token bridge related operations, these are the additional requirements:

  • Token Bridge ProxyAdmin on Parent Chain owned by ParentUpgradeExecutor
  • Token Bridge ProxyAdmin on Child Orbit Chain owned by ChildUpgradeExecutor
  • Parent Chain Gateway Router and Custom Gateway owned by ParentUpgradeExecutor

Setup

yarn install

Check Version and Upgrade Path

Run the follow command to check the version of Nitro contracts deployed on the parent chain of your Orbit chain.

$ INBOX_ADDRESS=0xaE21fDA3de92dE2FDAF606233b2863782Ba046F9 yarn orbit:contracts:version --network arb1
Get the version of Orbit chain's nitro contracts (inbox 0xaE21fDA3de92dE2FDAF606233b2863782Ba046F9), hosted on chain 42161
Version of deployed Inbox: v1.1.1
Version of deployed Outbox: v1.1.1
Version of deployed SequencerInbox: v1.1.1
Version of deployed Bridge: v1.1.1
Version of deployed RollupProxy: v1.1.1
Version of deployed RollupAdminLogic: v1.1.1
Version of deployed RollupUserLogic: v1.1.1
This deployment can be upgraded to v1.2.1 using NitroContracts1Point2Point1UpgradeAction

For other networks, replace arb1 with the network name and configure INFURA_KEY or the rpc in hardhat.config.ts

Nitro Contracts Upgrades

This section is also referenced in the documentation on "How to upgrade ArbOS on your Orbit chain"

For ArbOS upgrades, a pre-requisite is to deploy new Nitro contracts to the parent chain of your Orbit chain before scheduling the ArbOS upgrade. These contracts include the rollup logic, fraud proof contracts, and interfaces for interacting with Nitro precompiles.

Nitro contracts 1.2.1 (for ArbOS 20 Atlas)

The nitro-contracts 1.2.1 upgrade action will deploy nitro-contracts v1.2.1 contracts to your Orbit's parent chain. Note that this action will only work for chains with nitro-contracts v1.1.0 or nitro-contracts v.1.1.1. ArbOS 20 Atlas, shipped via Nitro v2.3.0, requires nitro-contracts v1.2.1 or higher.

Scheduling the ArbOS upgrade

This section is also referenced in the documentation on "How to upgrade ArbOS on your Orbit chain"

Next, you will need to schedule the actual upgrade using the ArbOS upgrade at timestamp action.

This action schedule an upgrade of the ArbOS to a specific version at a specific timestamp.

Common upgrade paths

Here is a list of common upgrade paths that can be used to upgrade the Orbit chains.

ArbOS 20 Atlas

  1. Upgrade your Nitro node(s) to Nitro v2.3.1
  2. Upgrade nitro-contracts to v1.2.1 using nitro-contract 1.2.1 upgrade action
  3. Schedule the ArbOS 20 Atlas upgrade using ArbOS upgrade at timestamp action

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Solidity 76.7%
  • TypeScript 14.2%
  • Shell 5.9%
  • JavaScript 3.2%