Skip to content

Commit

Permalink
feat(protocol): add proveBlocks method to ProverSet (#18025)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha authored Sep 2, 2024
1 parent cd5a6d9 commit 36a2ae5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/protocol/contracts/team/proving/ProverSet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,19 @@ contract ProverSet is EssentialContract, IERC1271 {
ITaikoL1(taikoL1()).proveBlock(_blockId, _input);
}

/// @notice Batch proves or contests Taiko blocks.
function proveBlocks(
uint64[] calldata _blockId,
bytes[] calldata _input,
bytes calldata _batchProof
)
external
onlyProver
nonReentrant
{
ITaikoL1(taikoL1()).proveBlocks(_blockId, _input, _batchProof);
}

/// @notice Deposits Taiko token to TaikoL1 contract.
function depositBond(uint256 _amount) external onlyAuthorized nonReentrant {
ITaikoL1(taikoL1()).depositBond(_amount);
Expand Down

0 comments on commit 36a2ae5

Please sign in to comment.