From 4797ddb70e05d4952685bad53e608cb5606284e6 Mon Sep 17 00:00:00 2001 From: smartcontracts Date: Wed, 28 Aug 2024 10:03:27 -0400 Subject: [PATCH] maint: add interfaces for cannon contracts (#11624) --- .../src/cannon/interfaces/IMIPS.sol | 12 ++++++++++++ .../src/cannon/interfaces/IMIPS2.sol | 10 ++++++++++ 2 files changed, 22 insertions(+) create mode 100644 packages/contracts-bedrock/src/cannon/interfaces/IMIPS.sol create mode 100644 packages/contracts-bedrock/src/cannon/interfaces/IMIPS2.sol diff --git a/packages/contracts-bedrock/src/cannon/interfaces/IMIPS.sol b/packages/contracts-bedrock/src/cannon/interfaces/IMIPS.sol new file mode 100644 index 000000000000..97b3dc8ef283 --- /dev/null +++ b/packages/contracts-bedrock/src/cannon/interfaces/IMIPS.sol @@ -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); +} diff --git a/packages/contracts-bedrock/src/cannon/interfaces/IMIPS2.sol b/packages/contracts-bedrock/src/cannon/interfaces/IMIPS2.sol new file mode 100644 index 000000000000..540033433329 --- /dev/null +++ b/packages/contracts-bedrock/src/cannon/interfaces/IMIPS2.sol @@ -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); +}