Verified contractExactMIT
DenyAllTransactionFilterer
Address0x4f0bc2118653162dd79511f298ebf16d987da2be
- Balance
0 ETH
- Transactions
1
- Compiler
solc 0.8.28
- Same code
Only this contract
Details
- Compiler
- solc 0.8.28+commit.7893614a
- Language
- solidity
- Optimization
- Yes, 9,999,999 runs
- EVM version
- prague
- License
- MIT
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 26,477,897
- Creation transaction
- 0xb4a565eb5b…2d6c724ae2
contracts/transactionFilterer/DenyAllTransactionFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.28;
import {ITransactionFilterer} from "../state-transition/chain-interfaces/ITransactionFilterer.sol";
/// @author Matter Labs
/// @custom:security-contact [email protected]
/// @notice A transaction filterer that rejects every L1->L2 transaction.
/// @dev Installed on a chain before it is shut down, so that no deposits or other L1->L2 transactions
/// can be requested for it, including through the legacy Era `Mailbox.requestL2Transaction`.
/// It does not cover service transactions, which skip the filterer, see `L1AssetTracker.shutdownChain`.
contract DenyAllTransactionFilterer is ITransactionFilterer {
/// @inheritdoc ITransactionFilterer
function isTransactionAllowed(
address, // _sender
address, // _contractL2
uint256, // _mintValue
uint256, // _l2Value
bytes calldata, // _l2Calldata
address // _refundRecipient
) external pure returns (bool) {
return false;
}
}
contracts/state-transition/chain-interfaces/ITransactionFilterer.sol
// SPDX-License-Identifier: MIT
// We use a floating point pragma here so it can be used within other projects that interact with the ZKsync ecosystem without using our exact pragma version.
pragma solidity ^0.8.21;
/// @title The interface of the L1 -> L2 transaction filterer.
/// @author Matter Labs
/// @custom:security-contact [email protected]
interface ITransactionFilterer {
/// @notice Check if the transaction is allowed
/// @param sender The sender of the transaction
/// @param contractL2 The L2 receiver address
/// @param mintValue The value of the L1 transaction
/// @param l2Value The msg.value of the L2 transaction
/// @param l2Calldata The calldata of the L2 transaction
/// @param refundRecipient The address to refund the excess value
/// @return Whether the transaction is allowed
function isTransactionAllowed(
address sender,
address contractL2,
uint256 mintValue,
uint256 l2Value,
bytes memory l2Calldata,
address refundRecipient
) external view returns (bool);
}
Compiler settingsShow
{
"viaIR": false,
"metadata": {
"appendCBOR": true,
"bytecodeHash": "ipfs",
"useLiteralContent": false
},
"libraries": {},
"optimizer": {
"runs": 9999999,
"enabled": true
},
"evmVersion": "prague"
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.