Skip to content

Commit

Permalink
refactor: add 'V2' to event NewBatch and function respondToTask
Browse files Browse the repository at this point in the history
  • Loading branch information
uri-99 committed Aug 27, 2024
1 parent 61624d9 commit 905f740
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions contracts/src/core/AlignedLayerServiceManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ contract AlignedLayerServiceManager is

batchesState[batchIdentifierHash] = batchState;

emit NewBatch(
emit NewBatchV2(
batchMerkleRoot,
msg.sender,
uint32(block.number),
batchDataPointer
);
}

function respondToTask(
function respondToTaskV2(
// (batchMerkleRoot,senderAddress) is signed as a way to verify the batch was right
bytes32 batchMerkleRoot,
address senderAddress,
Expand Down
4 changes: 2 additions & 2 deletions contracts/src/core/IAlignedLayerServiceManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {IBLSSignatureChecker} from "eigenlayer-middleware/interfaces/IBLSSignatu

interface IAlignedLayerServiceManager {
// EVENTS
event NewBatch(
event NewBatchV2(
bytes32 indexed batchMerkleRoot,
address senderAddress,
uint32 taskCreatedBlock,
Expand All @@ -32,7 +32,7 @@ interface IAlignedLayerServiceManager {
string calldata batchDataPointer
) external payable;

function respondToTask(
function respondToTaskV2(
bytes32 batchMerkleRoot,
address senderAddress,
IBLSSignatureChecker.NonSignerStakesAndSignature
Expand Down

0 comments on commit 905f740

Please sign in to comment.