22 lines
744 B
Solidity
22 lines
744 B
Solidity
|
|
// SPDX-License-Identifier: MIT
|
||
|
|
pragma solidity ^0.8.20;
|
||
|
|
|
||
|
|
import {ICheckpointExtension} from "../interfaces/ICheckpointExtension.sol";
|
||
|
|
import {CheckpointStorage} from "../storage/CheckpointStorage.sol";
|
||
|
|
import {CheckpointLeaf} from "../libraries/CheckpointLeaf.sol";
|
||
|
|
|
||
|
|
/// @notice Default no-op verifyLeaf; override in modules that need custom proofs.
|
||
|
|
abstract contract CheckpointExtensionBase is ICheckpointExtension {
|
||
|
|
function HOOK_VERIFY_LEAF() external pure virtual returns (uint32) {
|
||
|
|
return 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
function verifyLeaf(
|
||
|
|
CheckpointStorage.CheckpointHeader calldata,
|
||
|
|
CheckpointLeaf.PaymentLeafV1 calldata,
|
||
|
|
bytes32[] calldata
|
||
|
|
) external pure virtual returns (bool) {
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
}
|