-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a889647
commit ed3823b
Showing
4 changed files
with
89 additions
and
88 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
14 changes: 14 additions & 0 deletions
14
packages/contracts-bedrock/src/libraries/L1BlockErrors.sol
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,14 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity 0.8.15; | ||
|
||
/// @notice Error returns when a non-depositor account tries to set L1 block values. | ||
error NotDepositor(); | ||
|
||
/// @notice Error when a chain ID is not in the interop dependency set. | ||
error NotDependency(); | ||
|
||
/// @notice Error when the interop dependency set size is too large. | ||
error DependencySetSizeTooLarge(); | ||
|
||
/// @notice Error when the chain's chain ID is attempted to be removed from the interop dependency set. | ||
error CantRemovedChainId(); |
11 changes: 11 additions & 0 deletions
11
packages/contracts-bedrock/src/libraries/L1BlockEvents.sol
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,11 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity 0.8.15; | ||
|
||
/// @notice Event emitted when the gas paying token is set. | ||
event GasPayingTokenSet(address indexed token, uint8 indexed decimals, bytes32 name, bytes32 symbol); | ||
|
||
/// @notice Event emitted when a new dependency is added to the interop dependency set. | ||
event DependencyAdded(uint256 indexed chainId); | ||
|
||
/// @notice Event emitted when a dependency is removed from the interop dependency set. | ||
event DependencyRemoved(uint256 indexed chainId); |