ITransactionFilterer

Git Source

Author: Matter Labs

Note: security-contact: security@matterlabs.dev

Functions

isTransactionAllowed

Check if the transaction is allowed

function isTransactionAllowed(
  address sender,
  address contractL2,
  uint256 mintValue,
  uint256 l2Value,
  bytes memory l2Calldata,
  address refundRecipient
) external view returns (bool);

Parameters

NameTypeDescription
senderaddressThe sender of the transaction
contractL2addressThe L2 receiver address
mintValueuint256The value of the L1 transaction
l2Valueuint256The msg.value of the L2 transaction
l2CalldatabytesThe calldata of the L2 transaction
refundRecipientaddressThe address to refund the excess value

Returns

NameTypeDescription
<none>boolWhether the transaction is allowed