-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
maint: add interfaces for cannon contracts (#11624)
- Loading branch information
1 parent
ebdae42
commit 4797ddb
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
packages/contracts-bedrock/src/cannon/interfaces/IMIPS.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,12 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity 0.8.15; | ||
|
||
import { ISemver } from "src/universal/ISemver.sol"; | ||
import { IPreimageOracle } from "src/cannon/interfaces/IPreimageOracle.sol"; | ||
|
||
/// @title IMIPS | ||
/// @notice Interface for the MIPS contract. | ||
interface IMIPS is ISemver { | ||
function oracle() external view returns (IPreimageOracle oracle_); | ||
function step(bytes memory _stateData, bytes memory _proof, bytes32 _localContext) external returns (bytes32); | ||
} |
10 changes: 10 additions & 0 deletions
10
packages/contracts-bedrock/src/cannon/interfaces/IMIPS2.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,10 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity 0.8.15; | ||
|
||
import { ISemver } from "src/universal/ISemver.sol"; | ||
|
||
/// @title IMIPS2 | ||
/// @notice Interface for the MIPS2 contract. | ||
interface IMIPS2 is ISemver { | ||
function step(bytes memory _stateData, bytes memory _proof, bytes32 _localContext) external returns (bytes32); | ||
} |