Skip to content
Verified contractExactMIT

AdminVerifierOwner

Address0x6d67e393efc3e48e522fa5829438fe799c5db7be
Balance

0 ETH

 

Transactions

1

 

Compiler

solc 0.8.30

 

Same code

2 more contracts

 

Details

Compiler
solc 0.8.30+commit.73712a01
Language
solidity
Optimization
No
EVM version
prague
License
MIT
Match
Exactcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
25,487,089
Creation transaction
0x424c66ac09…926cd12a70

src/verification/admin/AdminVerifierOwner.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import {IAdminVerifier} from "../../interfaces/IAdminVerifier.sol";

contract AdminVerifierOwner is IAdminVerifier {
    function verifyAdmin(address contractAddress, address requester, bytes calldata) external view returns (bool) {
        (bool success, bytes memory returnValue) = contractAddress.staticcall(abi.encodeWithSignature("owner()"));
        if (!success || returnValue.length != 32) return false;
        return abi.decode(returnValue, (address)) == requester;
    }
}

src/interfaces/IAdminVerifier.sol

// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.28;

interface IAdminVerifier {
    function verifyAdmin(address contractAddress, address requester, bytes calldata data) external view returns (bool);
}
Compiler settingsShow
{
  "viaIR": false,
  "metadata": {
    "appendCBOR": true,
    "bytecodeHash": "ipfs",
    "useLiteralContent": false
  },
  "optimizer": {
    "runs": 200,
    "enabled": false
  },
  "evmVersion": "prague",
  "remappings": [
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "forge-std/=lib/forge-std/src/",
    "halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "solady/=lib/solady/src/"
  ]
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.