32 lines
663 B
Solidity
32 lines
663 B
Solidity
// SPDX-License-Identifier: MIT
|
|
pragma solidity ^0.8.20;
|
|
|
|
import "./IComboHandler.sol";
|
|
|
|
interface INotaryRegistry {
|
|
struct PlanRecord {
|
|
bytes32 planHash;
|
|
address creator;
|
|
uint256 registeredAt;
|
|
uint256 finalizedAt;
|
|
bool success;
|
|
bytes32 receiptHash;
|
|
}
|
|
|
|
struct CodehashRecord {
|
|
address contractAddress;
|
|
bytes32 codehash;
|
|
string version;
|
|
uint256 registeredAt;
|
|
}
|
|
|
|
function registerPlan(
|
|
bytes32 planId,
|
|
IComboHandler.Step[] calldata steps,
|
|
address creator
|
|
) external;
|
|
|
|
function finalizePlan(bytes32 planId, bool success) external;
|
|
}
|
|
|