forked from paradigmxyz/reth
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request paradigmxyz#20 from taikoxyz/brought_over_latest_t…
…aiko_mono feat(gwyneth): update everything (except core protocol) to latest taiko-mono
- Loading branch information
Showing
105 changed files
with
8,537 additions
and
9,601 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,53 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity 0.8.24; | ||
|
||
import "./TaikoData.sol"; | ||
|
||
/// @title ITaikoL1 | ||
/// @custom:security-contact security@taiko.xyz | ||
interface ITaikoL1 { | ||
/// @notice Proposes a Taiko L2 block. | ||
/// @param _params Block parameters, currently an encoded BlockParams object. | ||
/// @param _txList txList data if calldata is used for DA. | ||
/// @return meta_ The metadata of the proposed L2 block. | ||
function proposeBlock( | ||
bytes calldata _params, | ||
bytes calldata _txList | ||
) | ||
external | ||
payable | ||
returns (TaikoData.BlockMetadata memory meta_); | ||
|
||
/// @notice Proves or contests a block transition. | ||
/// @param _blockId The index of the block to prove. This is also used to | ||
/// select the right implementation version. | ||
/// @param _input An abi-encoded (TaikoData.BlockMetadata, TaikoData.Transition, | ||
/// TaikoData.TierProof) tuple. | ||
function proveBlock(uint64 _blockId, bytes calldata _input) external; | ||
|
||
/// @notice Verifies up to a certain number of blocks. | ||
/// @param _maxBlocksToVerify Max number of blocks to verify. | ||
function verifyBlocks(uint64 _maxBlocksToVerify) external; | ||
|
||
/// @notice Pause block proving. | ||
/// @param _pause True if paused. | ||
function pauseProving(bool _pause) external; | ||
|
||
/// @notice Deposits Taiko token to be used as bonds. | ||
/// @param _amount The amount of Taiko token to deposit. | ||
function depositBond(uint256 _amount) external; | ||
|
||
/// @notice Withdraws Taiko token. | ||
/// @param _amount The amount of Taiko token to withdraw. | ||
function withdrawBond(uint256 _amount) external; | ||
|
||
// /// @notice Gets the prover that actually proved a verified block. | ||
// /// @param _blockId The index of the block. | ||
// /// @return The prover's address. If the block is not verified yet, address(0) will be | ||
// returned. | ||
// function getVerifiedBlockProver(uint64 _blockId) external view returns (address); | ||
|
||
/// @notice Gets the configuration of the TaikoL1 contract. | ||
/// @return Config struct containing configuration parameters. | ||
function getConfig() external pure returns (TaikoData.Config memory); | ||
} |
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 was deleted.
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
Oops, something went wrong.