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

Arbos 31 timed upgrade action #301

Merged
merged 3 commits into from
Jul 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.16;

import "../../arbos-upgrade/UpgradeArbOSVersionAction.sol";
import "../../arbos-upgrade/UpgradeArbOSVersionAtTimestampAction.sol";

/// @notice Sets the ArbOS version to 31. To be run on an arbitrum chain
/// @dev Identical copies of this contract to be deployed on Arb One and Nova for ArbOS31 upgrades
contract SetArbOS31VersionAction is UpgradeArbOSVersionAction {
constructor() UpgradeArbOSVersionAction(uint64(31), 0 /*TODO*/ ) {}
contract SetArbOS31VersionAction is UpgradeArbOSVersionAtTimestampAction {
constructor() UpgradeArbOSVersionAtTimestampAction(uint64(31), 1725382800) {}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.16;

import "@arbitrum/nitro-contracts/src/precompiles/ArbOwner.sol";

/// @notice should be included in an operation batch in the L1 timelock along with SetWasmModuleRootAction
contract UpgradeArbOSVersionAtTimestampAction {
uint64 public immutable newArbOSVersion;
uint64 public immutable upgradeTimestamp;

constructor(uint64 _newArbOSVersion, uint64 _upgradeTimestamp) {
newArbOSVersion = _newArbOSVersion;
upgradeTimestamp = _upgradeTimestamp;
}

function perform() external {
ArbOwner arbOwner = ArbOwner(0x0000000000000000000000000000000000000070);
arbOwner.scheduleArbOSUpgrade({
newVersion: newArbOSVersion,
timestamp: upgradeTimestamp
});
}
}
Loading