Skip to content

Commit

Permalink
Add solidity contract to update the orbit chain config to enable espr…
Browse files Browse the repository at this point in the history
…esso mode at the end of migration.
  • Loading branch information
zacshowa committed Aug 5, 2024
1 parent d59a3b6 commit 0565459
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/espresso-migration/UpdateChainConfig.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Example action contract to upgrade chain config to turn on espresso mode

import "../precompiles/ArbOwner.sol";

contract SetEspressoChainConfig {
function perform(string serialiazedEspressoConfig) external {
//The ArbOwner precomiple always lives at this addr.
ArbOwner arbOwner = ArbOwner(0x0000000000000000000000000000000000000070)
//This call must come from an account designated as an Owner by the ArbOwner contract.
//In practice the Owner should be the UpgradeExecutor via the execute method.
arbOwner.setChainConfig(serialiazedEspressoConfig)
}
}

0 comments on commit 0565459

Please sign in to comment.