IExpressRelay.sol 776 B

123456789101112131415
  1. // SPDX-License-Identifier: UNLICENSED
  2. // Copyright (C) 2024 Lavra Holdings Limited - All Rights Reserved
  3. pragma solidity ^0.8.0;
  4. interface IExpressRelay {
  5. // Check if the combination of protocol and permissionKey is allowed within this transaction.
  6. // This will return true if and only if it's being called while executing the auction winner(s) call.
  7. // @param protocolFeeReceiver The address of the protocol that is gating an action behind this permission
  8. // @param permissionId The id that represents the action being gated
  9. // @return permissioned True if the permission is allowed, false otherwise
  10. function isPermissioned(
  11. address protocolFeeReceiver,
  12. bytes calldata permissionId
  13. ) external view returns (bool permissioned);
  14. }