Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
ratankaliani committed Nov 26, 2024
1 parent 3bc2ae9 commit 1da53a7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion book/advanced/l2-output-oracle.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand Down
6 changes: 6 additions & 0 deletions contracts/src/OPSuccinctL2OutputOracle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1da53a7

Please sign in to comment.