Skip to content

Commit

Permalink
maint: add interfaces for cannon contracts (#11624)
Browse files Browse the repository at this point in the history
  • Loading branch information
smartcontracts authored Aug 28, 2024
1 parent ebdae42 commit 4797ddb
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/contracts-bedrock/src/cannon/interfaces/IMIPS.sol
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 packages/contracts-bedrock/src/cannon/interfaces/IMIPS2.sol
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);
}

0 comments on commit 4797ddb

Please sign in to comment.