-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(protocol): delete duplicate event and error definition from …
…TaikoL1 (#17722)
- Loading branch information
Showing
15 changed files
with
41 additions
and
196 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,6 @@ import "./libs/LibProposing.sol"; | |
import "./libs/LibProving.sol"; | ||
import "./libs/LibVerifying.sol"; | ||
import "./ITaikoL1.sol"; | ||
import "./TaikoErrors.sol"; | ||
import "./TaikoEvents.sol"; | ||
|
||
/// @title TaikoL1 | ||
/// @notice This contract serves as the "base layer contract" of the Taiko protocol, providing | ||
|
@@ -18,14 +16,21 @@ import "./TaikoEvents.sol"; | |
/// by the Bridge contract. | ||
/// @dev Labeled in AddressResolver as "taiko" | ||
/// @custom:security-contact [email protected] | ||
contract TaikoL1 is EssentialContract, ITaikoL1, TaikoEvents, TaikoErrors { | ||
contract TaikoL1 is EssentialContract, ITaikoL1 { | ||
/// @notice The TaikoL1 state. | ||
TaikoData.State public state; | ||
|
||
uint256[50] private __gap; | ||
|
||
/// @notice Emitted when some state variable values changed. | ||
/// @dev This event is currently used by Taiko node/client for block proposal/proving. | ||
/// @param slotB The SlotB data structure. | ||
event StateVariablesUpdated(TaikoData.SlotB slotB); | ||
|
||
error L1_RECEIVE_DISABLED(); | ||
|
||
modifier whenProvingNotPaused() { | ||
if (state.slotB.provingPaused) revert L1_PROVING_PAUSED(); | ||
if (state.slotB.provingPaused) revert LibProving.L1_PROVING_PAUSED(); | ||
_; | ||
} | ||
|
||
|
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
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
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.