Skip to content
Verified contractPartialMIT

Whitelist

Address0x80ed677a06c1cd07e999dd0abbd0a2ba33c0f3e7
Balance

0 ETH

 

Transactions

11

 

Compiler

solc 0.8.26

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.26+commit.8a97fa7a
Language
solidity
Optimization
No
EVM version
paris
Via IR
yes
License
MIT
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
26,070,010
Creation transaction
0x2f601e462f…35d630c747

src/Whitelist.sol

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

// Reconstructed from the deployed bytecode of
//   Robinhood Chain (chain id 4663) 0x035eFBa8A38757438eD439C07337a81A709e7811
// This is NOT the author's original file: the original source was never published.
// Built with solc 0.8.26, viaIR = true, optimizer off, evmVersion = paris, it reproduces the
// deployed runtime and creation bytecode except for the compiler metadata hash.
// owner() and isWhitelist(address) are the real names; every other identifier is a guess.

abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }
}

// OpenZeppelin Contracts v4.4-v4.6 Ownable (MIT) with transferOwnership() and
// renounceOwnership() removed, so the deployer stays the owner permanently.
abstract contract Ownable is Context {
    address private _owner; // slot 0

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    constructor() {
        _transferOwnership(_msgSender());
    }

    function owner() public view virtual returns (address) {
        return _owner;
    }

    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

contract Whitelist is Ownable {
    mapping(address => bool) private _whitelist; // slot 1

    function isWhitelist(address account) external view returns (bool) {
        return _whitelist[account];
    }

    // The original name is unknown (selector 0xe1e578ae is in no public signature database).
    // setWhitelisted_3gBrap is a stand-in found by brute force so that it hashes to 0xe1e578ae.
    function setWhitelisted_3gBrap(address[] calldata accounts, bool status) external onlyOwner {
        for (uint256 i; i < accounts.length; i++) {
            _whitelist[accounts[i]] = status;
        }
    }
}
Compiler settingsShow
{
  "viaIR": true,
  "metadata": {
    "appendCBOR": true,
    "bytecodeHash": "ipfs",
    "useLiteralContent": false
  },
  "libraries": {},
  "optimizer": {
    "runs": 200,
    "enabled": false
  },
  "evmVersion": "paris"
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.