-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
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
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,23 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
pragma solidity ^0.8.25; | ||
|
||
import {Initializable} from "lib/openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol"; | ||
import {IAvailBridge} from "src/interfaces/IAvailBridge.sol"; | ||
import {AvailAttestation} from "src/AvailAttestation.sol"; | ||
|
||
/** | ||
* @author @QEDK (Avail) | ||
* @title AvailAttestationMock | ||
* @notice An mock data attestation implementation for validiums, optimiums and generic rollup stacks | ||
* @custom:security security@availproject.org | ||
*/ | ||
contract AvailAttestationMock is Initializable, AvailAttestation { | ||
function initialize(IAvailBridge _bridge) external initializer { | ||
__AvailAttestation_init(_bridge); | ||
} | ||
|
||
// this function signature should differ based on rollup contract's expected function signature | ||
function attest(IAvailBridge.MerkleProofInput calldata input) external { | ||
_attest(input); | ||
} | ||
} |