From 1da53a7f300c4dfc09676902951f4ec5af5dbd59 Mon Sep 17 00:00:00 2001 From: Ratan Kaliani Date: Mon, 25 Nov 2024 16:12:49 -0800 Subject: [PATCH] add --- book/advanced/l2-output-oracle.md | 2 +- contracts/src/OPSuccinctL2OutputOracle.sol | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/book/advanced/l2-output-oracle.md b/book/advanced/l2-output-oracle.md index 0069babf..c9f5ed7c 100644 --- a/book/advanced/l2-output-oracle.md +++ b/book/advanced/l2-output-oracle.md @@ -45,7 +45,7 @@ You can configure additional parameters when deploying or upgrading the `OPSucci | `FINALIZATION_PERIOD` | Default: `0`. The time period (in seconds) after which a proposed output becomes finalized and withdrawals can be processed. | | `PROPOSER` | Default: The address of the account associated with `PRIVATE_KEY`. Ethereum address authorized to submit proofs. Set to `address(0)` to allow permissionless submissions. | | `CHALLENGER` | Default: `address(0)`, no one can dispute proofs. Ethereum address authorized to dispute proofs. | -| `OWNER` | Default: The address of the account associated with `PRIVATE_KEY`. Ethereum address authorized to update the `aggregationVkey`, `rangeVkeyCommitment`, `verifier`, and `rollupConfigHash` parameters. In a production setting, set to the governance smart contract or multi-sig of the chain. | +| `OWNER` | Default: The address of the account associated with `PRIVATE_KEY`. Ethereum address authorized to update the `aggregationVkey`, `rangeVkeyCommitment`, `verifier`, and `rollupConfigHash` parameters and transfer ownership of the contract. In a production setting, set to the governance smart contract or multi-sig of the chain. | ## Upgrading `OPSuccinctL2OutputOracle` diff --git a/contracts/src/OPSuccinctL2OutputOracle.sol b/contracts/src/OPSuccinctL2OutputOracle.sol index a5d3898c..a3b55284 100644 --- a/contracts/src/OPSuccinctL2OutputOracle.sol +++ b/contracts/src/OPSuccinctL2OutputOracle.sol @@ -420,6 +420,12 @@ contract OPSuccinctL2OutputOracle is Initializable, ISemver { return startingTimestamp + ((_l2BlockNumber - startingBlockNumber) * l2BlockTime); } + /// @notice Update the submission interval. + /// @param _submissionInterval The new submission interval. + function updateSubmissionInterval(uint256 _submissionInterval) external onlyOwner { + submissionInterval = _submissionInterval; + } + /// @notice Updates the aggregation verification key. /// @param _aggregationVkey The new aggregation verification key. function updateAggregationVkey(bytes32 _aggregationVkey) external onlyOwner {