-
Notifications
You must be signed in to change notification settings - Fork 375
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement aligned layer service manager interface (#820)
- Loading branch information
1 parent
dfa1449
commit fff0b91
Showing
4 changed files
with
41 additions
and
13 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
contracts/scripts/anvil/state/alignedlayer-deployed-anvil-state.json
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,29 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity =0.8.12; | ||
|
||
import {IBLSSignatureChecker} from "eigenlayer-middleware/interfaces/IBLSSignatureChecker.sol"; | ||
|
||
interface IAlignedLayerServiceManager { | ||
function createNewTask( | ||
bytes32 batchMerkleRoot, | ||
string calldata batchDataPointer | ||
) external payable; | ||
|
||
function respondToTask( | ||
bytes32 batchMerkleRoot, | ||
IBLSSignatureChecker.NonSignerStakesAndSignature | ||
memory nonSignerStakesAndSignature | ||
) external; | ||
|
||
function verifyBatchInclusion( | ||
bytes32 proofCommitment, | ||
bytes32 pubInputCommitment, | ||
bytes32 provingSystemAuxDataCommitment, | ||
bytes20 proofGeneratorAddr, | ||
bytes32 batchMerkleRoot, | ||
bytes memory merkleProof, | ||
uint256 verificationDataBatchIndex | ||
) external view returns (bool); | ||
|
||
function balanceOf(address account) external view returns (uint256); | ||
} |