-
Notifications
You must be signed in to change notification settings - Fork 18
/
IL1MessageQueueWithGasPriceOracle.sol
38 lines (28 loc) · 1.29 KB
/
IL1MessageQueueWithGasPriceOracle.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;
import {IL1MessageQueue} from "./IL1MessageQueue.sol";
interface IL1MessageQueueWithGasPriceOracle is IL1MessageQueue {
/**********
* Events *
**********/
/// @notice Emitted when owner updates whitelist checker contract.
/// @param _oldWhitelistChecker The address of old whitelist checker contract.
/// @param _newWhitelistChecker The address of new whitelist checker contract.
event UpdateWhitelistChecker(address indexed _oldWhitelistChecker, address indexed _newWhitelistChecker);
/// @notice Emitted when current l2 base fee is updated.
/// @param oldL2BaseFee The original l2 base fee before update.
/// @param newL2BaseFee The current l2 base fee updated.
event UpdateL2BaseFee(uint256 oldL2BaseFee, uint256 newL2BaseFee);
/**********
* Errors *
**********/
/// @dev Thrown when the caller is not whitelisted.
error ErrorNotWhitelistedSender();
/*************************
* Public View Functions *
*************************/
/// @notice Return the latest known l2 base fee.
function l2BaseFee() external view returns (uint256);
/// @notice Return the address of whitelist checker contract.
function whitelistChecker() external view returns (address);
}