IPERMulticall.sol 748 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 IPERMulticall {
  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 call.
  7. // @param protocol The address of the protocol that is gating an action behind this permission
  8. // @param permissionKey The permission key that is being checked
  9. // @return permissioned True if the permission is allowed, false otherwise
  10. function isPermissioned(
  11. address protocol,
  12. bytes calldata permissionKey
  13. ) external view returns (bool permissioned);
  14. }