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

feat(contracts): Use immutable variables for storage #201

Closed
wants to merge 1 commit into from
Closed
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
14 changes: 7 additions & 7 deletions contracts/src/OPSuccinctL2OutputOracle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -62,21 +62,21 @@ contract OPSuccinctL2OutputOracle is Initializable, ISemver {
/// @custom:network-specific
uint256 public finalizationPeriodSeconds;

/// @notice A trusted mapping of block numbers to block hashes.
mapping(uint256 => bytes32) public historicBlockHashes;

/// @notice The verification key of the aggregation SP1 program.
bytes32 public aggregationVkey;
bytes32 public immutable aggregationVkey;

/// @notice The 32 byte commitment to the BabyBear representation of the verification key of the range SP1 program. Specifically,
/// this verification is the output of converting the [u32; 8] range BabyBear verification key to a [u8; 32] array.
bytes32 public rangeVkeyCommitment;
bytes32 public immutable rangeVkeyCommitment;

/// @notice The deployed SP1VerifierGateway contract to request proofs from.
address public verifierGateway;
address public immutable verifierGateway;

/// @notice The hash of the chain's rollup config, which ensures the proofs submitted are for the correct chain.
bytes32 public rollupConfigHash;

/// @notice A trusted mapping of block numbers to block hashes.
mapping(uint256 => bytes32) public historicBlockHashes;
bytes32 public immutable rollupConfigHash;

////////////////////////////////////////////////////////////
// Events //
Expand Down
Loading