-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IBlockDisputeGame interface abstraction
- Loading branch information
Showing
3 changed files
with
47 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
packages/contracts-bedrock/src/dispute/interfaces/IBlockDisputeGame.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
import { IDisputeGame } from "./IDisputeGame.sol"; | ||
|
||
import "src/dispute/lib/Types.sol"; | ||
|
||
/// @title IBlockDisputeGame | ||
/// @notice The interface for a game meant to resolve an L2 Block. | ||
interface IBlockDisputeGame is IDisputeGame { | ||
/// @notice The l2BlockNumber of the disputed output root in the `L2OutputOracle`. | ||
function l2BlockNumber() external view returns (uint256 l2BlockNumber_); | ||
|
||
/// @notice Starting output root and block number of the game. | ||
function startingOutputRoot() external view returns (Hash startingRoot_, uint256 l2BlockNumber_); | ||
|
||
/// @notice Only the starting block number of the game. | ||
function startingBlockNumber() external view returns (uint256 startingBlockNumber_); | ||
|
||
/// @notice Only the starting output root of the game. | ||
function startingRootHash() external view returns (Hash startingRootHash_); | ||
} |
4 changes: 2 additions & 2 deletions
4
packages/contracts-bedrock/src/dispute/interfaces/IOptimisticZKGame.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters