ETH Price: $2,917.83 (+3.49%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Merkle Root175932342023-06-30 16:19:11496 days ago1688141951IN
0x278AB8c6...96b73F086
0 ETH0.0018338739.22392926
Set Merkle Root175930072023-06-30 15:32:59496 days ago1688139179IN
0x278AB8c6...96b73F086
0 ETH0.0019539241.78081564
Set Merkle Root175926262023-06-30 14:16:11496 days ago1688134571IN
0x278AB8c6...96b73F086
0 ETH0.0023324949.8758317
Set Merkle Root175845222023-06-29 11:00:59497 days ago1688036459IN
0x278AB8c6...96b73F086
0 ETH0.0009325519.94083951
Set Merkle Root175772262023-06-28 10:29:35499 days ago1687948175IN
0x278AB8c6...96b73F086
0 ETH0.0006612814.14030298
Set Merkle Root175634762023-06-26 12:03:35500 days ago1687781015IN
0x278AB8c6...96b73F086
0 ETH0.0008050117.21374194
Set Merkle Root175431892023-06-23 15:34:11503 days ago1687534451IN
0x278AB8c6...96b73F086
0 ETH0.0014911131.88465171
Set Merkle Root175414532023-06-23 9:43:47504 days ago1687513427IN
0x278AB8c6...96b73F086
0 ETH0.0006813314.56905322
Set Merkle Root175279362023-06-21 12:07:59505 days ago1687349279IN
0x278AB8c6...96b73F086
0 ETH0.0010675622.82779669
Set Merkle Root174933112023-06-16 15:33:35510 days ago1686929615IN
0x278AB8c6...96b73F086
0 ETH0.0023738650.76055888
Set Merkle Root174921002023-06-16 11:28:35510 days ago1686914915IN
0x278AB8c6...96b73F086
0 ETH0.0008455418.08039193
Set Merkle Root174779102023-06-14 11:33:47512 days ago1686742427IN
0x278AB8c6...96b73F086
0 ETH0.0007459815.95153377
Set Merkle Root174634972023-06-12 10:50:47514 days ago1686567047IN
0x278AB8c6...96b73F086
0 ETH0.0008290917.72850694
Set Merkle Root174431392023-06-09 14:02:35517 days ago1686319355IN
0x278AB8c6...96b73F086
0 ETH0.0012424926.56833945
Set Merkle Root174285542023-06-07 12:39:35519 days ago1686141575IN
0x278AB8c6...96b73F086
0 ETH0.0009125519.5131467
Set Merkle Root174134202023-06-05 9:25:35522 days ago1685957135IN
0x278AB8c6...96b73F086
0 ETH0.0009374820.05149344
Set Merkle Root173931542023-06-02 12:49:59524 days ago1685710199IN
0x278AB8c6...96b73F086
0 ETH0.0015397132.92372297
Set Merkle Root173788642023-05-31 12:29:47526 days ago1685536187IN
0x278AB8c6...96b73F086
0 ETH0.0015032832.144744
Set Merkle Root173642292023-05-29 11:04:35528 days ago1685358275IN
0x278AB8c6...96b73F086
0 ETH0.0022970349.11766179
Set Merkle Root173428682023-05-26 11:05:35531 days ago1685099135IN
0x278AB8c6...96b73F086
0 ETH0.0011985325.62840878
Set Merkle Root173290852023-05-24 12:36:47533 days ago1684931807IN
0x278AB8c6...96b73F086
0 ETH0.0020711144.28678002
Set Merkle Root173157432023-05-22 15:32:59535 days ago1684769579IN
0x278AB8c6...96b73F086
0 ETH0.00471138100.74379735
Set Merkle Root173152762023-05-22 13:58:35535 days ago1684763915IN
0x278AB8c6...96b73F086
0 ETH0.0018893140.39930763
Set Merkle Root172938792023-05-19 13:38:23538 days ago1684503503IN
0x278AB8c6...96b73F086
0 ETH0.0022359147.8106737
Set Merkle Root172797142023-05-17 13:42:23540 days ago1684330943IN
0x278AB8c6...96b73F086
0 ETH0.0021460545.88929775
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
IdentityVerifier

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 9 : IdentityVerifier.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/// @author: manifold.xyz

import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@manifoldxyz/libraries-solidity/contracts/access/AdminControl.sol";

interface IIdentityVerifier is IERC165 {

    /**
     *  @dev Verify that the buyer can purchase/bid
     *
     *  @param listingId      The listingId associated with this verification
     *  @param identity       The identity to verify
     *  @param tokenAddress   The tokenAddress associated with this verification
     *  @param tokenId        The tokenId associated with this verification
     *  @param requestCount   The number of items being requested to purchase/bid
     *  @param requestAmount  The amount being requested
     *  @param requestERC20   The erc20 token address of the amount (0x0 if ETH)
     *  @param data           Additional data needed to verify
     *
     */
    function verify(uint40 listingId, address identity, address tokenAddress, uint256 tokenId, uint24 requestCount, uint256 requestAmount, address requestERC20, bytes calldata data) external returns (bool);
}

contract IdentityVerifier is AdminControl, IIdentityVerifier {

    // Maps listing ID to merkle root
    mapping(uint => bytes32) _merkleRoots;

    // Maps how many mints a person has used for this listing
    // { listingId => { minterAddress => numberOfMints } }
    mapping(uint => mapping(address => uint)) _alreadyMintedPerPerson;

    address _marketplace;

    function setMerkleRoot(uint listingId, bytes32 merkleRoot) public adminRequired {
      _merkleRoots[listingId] = merkleRoot;
    }

    function setMarketplace(address marketplace) public adminRequired {
        _marketplace = marketplace;
    }

    /**
     * Checks if person and their specific mint index is on the allowlist. Assume merkle tree rows are like this,
     *
     * 0xabcd,0
     * 0xabcd,1
     * 0xefgh,0
     * 0xijkl,0
     * 0xijkl,1
     * 0xijkl,2
     *
     * They must mint 1 at a time. So - will find out how many they have already and assume that is the index.
     */
    function onAllowList(address claimer, bytes32[] memory proof, uint listingId) private returns(bool) {
        // Find out how many they have
        uint howManyAlready = _alreadyMintedPerPerson[listingId][claimer];
        // Encode how many they have minted with their address, resulting in - 0xabcd,0
        bytes32 leaf = keccak256(abi.encodePacked(claimer, howManyAlready));
        // Check that this entry is in the tree
        bool verified = MerkleProof.verify(proof, _merkleRoots[listingId], leaf);

        // If verified, mark this as minted (used)
        if (verified) {
            _alreadyMintedPerPerson[listingId][claimer]++;
        }

        return verified;
    }

    // Checks if someone is on the allow-list for given proof they provide.
    // Will not modify the state (not to be used in real minting, as this would allow double-minting for a given index)
    function onAllowListView(address claimer, bytes32[] memory proof, uint listingId) private view returns(bool) {
        // Find out how many they have
        uint howManyAlready = _alreadyMintedPerPerson[listingId][claimer];
        // Encode how many they have minted with their address, resulting in - 0xabcd,0
        bytes32 leaf = keccak256(abi.encodePacked(claimer, howManyAlready));
        // Check that this entry is in the tree
        return MerkleProof.verify(proof, _merkleRoots[listingId], leaf);
    }

    function setAllowList(uint listingId, bytes32 merkleRoot) public adminRequired {
        _merkleRoots[listingId] = merkleRoot;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(AdminControl, IERC165) returns (bool) {
        return interfaceId == type(IIdentityVerifier).interfaceId || super.supportsInterface(interfaceId);
    }

    function verify(uint40 listingId, address identity, address, uint256, uint24 requestCount, uint256, address, bytes calldata data) external override returns (bool) {
        require(msg.sender == _marketplace, "Can only be verified by the marketplace");
        require(requestCount == 1, "Can only buy one at a time");
        bytes32[] memory proof = abi.decode(data, (bytes32[]));
        if (onAllowList(identity, proof, listingId)) return true;
        return false;
    }

    function verifyView(uint40 listingId, address identity, address, uint256, uint24 requestCount, uint256, address, bytes calldata data) external view returns (bool) {
        require(requestCount == 1, "Can only buy one at a time");
        bytes32[] memory proof = abi.decode(data, (bytes32[]));
        return onAllowListView(identity, proof, listingId);
    }
}

File 2 of 9 : AdminControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/// @author: manifold.xyz

import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./IAdminControl.sol";

abstract contract AdminControl is Ownable, IAdminControl, ERC165 {
    using EnumerableSet for EnumerableSet.AddressSet;

    // Track registered admins
    EnumerableSet.AddressSet private _admins;

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return interfaceId == type(IAdminControl).interfaceId
            || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Only allows approved admins to call the specified function
     */
    modifier adminRequired() {
        require(owner() == msg.sender || _admins.contains(msg.sender), "AdminControl: Must be owner or admin");
        _;
    }   

    /**
     * @dev See {IAdminControl-getAdmins}.
     */
    function getAdmins() external view override returns (address[] memory admins) {
        admins = new address[](_admins.length());
        for (uint i = 0; i < _admins.length(); i++) {
            admins[i] = _admins.at(i);
        }
        return admins;
    }

    /**
     * @dev See {IAdminControl-approveAdmin}.
     */
    function approveAdmin(address admin) external override onlyOwner {
        if (!_admins.contains(admin)) {
            emit AdminApproved(admin, msg.sender);
            _admins.add(admin);
        }
    }

    /**
     * @dev See {IAdminControl-revokeAdmin}.
     */
    function revokeAdmin(address admin) external override onlyOwner {
        if (_admins.contains(admin)) {
            emit AdminRevoked(admin, msg.sender);
            _admins.remove(admin);
        }
    }

    /**
     * @dev See {IAdminControl-isAdmin}.
     */
    function isAdmin(address admin) public override view returns (bool) {
        return (owner() == admin || _admins.contains(admin));
    }

}

File 3 of 9 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = _efficientHash(computedHash, proofElement);
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = _efficientHash(proofElement, computedHash);
            }
        }
        return computedHash;
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 4 of 9 : IAdminControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/// @author: manifold.xyz

import "@openzeppelin/contracts/utils/introspection/IERC165.sol";

/**
 * @dev Interface for admin control
 */
interface IAdminControl is IERC165 {

    event AdminApproved(address indexed account, address indexed sender);
    event AdminRevoked(address indexed account, address indexed sender);

    /**
     * @dev gets address of all admins
     */
    function getAdmins() external view returns (address[] memory);

    /**
     * @dev add an admin.  Can only be called by contract owner.
     */
    function approveAdmin(address admin) external;

    /**
     * @dev remove an admin.  Can only be called by contract owner.
     */
    function revokeAdmin(address admin) external;

    /**
     * @dev checks whether or not given address is an admin
     * Returns True if they are
     */
    function isAdmin(address admin) external view returns (bool);

}

File 5 of 9 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 6 of 9 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastvalue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastvalue;
                // Update the index for the moved value
                set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        assembly {
            result := store
        }

        return result;
    }
}

File 7 of 9 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 8 of 9 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 9 of 9 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"AdminApproved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"AdminRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"approveAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAdmins","outputs":[{"internalType":"address[]","name":"admins","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"isAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"revokeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"listingId","type":"uint256"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"marketplace","type":"address"}],"name":"setMarketplace","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"listingId","type":"uint256"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint40","name":"listingId","type":"uint40"},{"internalType":"address","name":"identity","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint24","name":"requestCount","type":"uint24"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"verify","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint40","name":"listingId","type":"uint40"},{"internalType":"address","name":"identity","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint24","name":"requestCount","type":"uint24"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"verifyView","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b5061002d61002261003260201b60201c565b61003a60201b60201c565b6100fe565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611d528061010d6000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c80634a45b1f31161008c57806373ad6c2d1161006657806373ad6c2d146102105780638da5cb5b1461022c578063e84d96841461024a578063f2fde38b14610266576100cf565b80634a45b1f3146101ba5780636d73e669146101ea578063715018a614610206576100cf565b806301ffc9a7146100d4578063075dc87c1461010457806318712c211461013457806324d7806c146101505780632d3456701461018057806331ae450b1461019c575b600080fd5b6100ee60048036038101906100e99190611464565b610282565b6040516100fb9190611790565b60405180910390f35b61011e600480360381019061011991906114d1565b6102fc565b60405161012b9190611790565b60405180910390f35b61014e60048036038101906101499190611491565b61037b565b005b61016a600480360381019061016591906113ee565b610427565b6040516101779190611790565b60405180910390f35b61019a600480360381019061019591906113ee565b610481565b005b6101a4610589565b6040516101b1919061176e565b60405180910390f35b6101d460048036038101906101cf91906114d1565b61066b565b6040516101e19190611790565b60405180910390f35b61020460048036038101906101ff91906113ee565b61078c565b005b61020e610893565b005b61022a600480360381019061022591906113ee565b61091b565b005b6102346109ef565b6040516102419190611753565b60405180910390f35b610264600480360381019061025f9190611491565b610a18565b005b610280600480360381019061027b91906113ee565b610ac4565b005b60007f4a45b1f3000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806102f557506102f482610bbc565b5b9050919050565b600060018662ffffff1614610346576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161033d9061182b565b60405180910390fd5b60008383810190610357919061141b565b905061036b8a828d64ffffffffff16610c36565b9150509998505050505050505050565b3373ffffffffffffffffffffffffffffffffffffffff1661039a6109ef565b73ffffffffffffffffffffffffffffffffffffffff1614806103cc57506103cb336001610ce290919063ffffffff16565b5b61040b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104029061180b565b60405180910390fd5b8060036000848152602001908152602001600020819055505050565b60008173ffffffffffffffffffffffffffffffffffffffff166104486109ef565b73ffffffffffffffffffffffffffffffffffffffff16148061047a5750610479826001610ce290919063ffffffff16565b5b9050919050565b610489610d12565b73ffffffffffffffffffffffffffffffffffffffff166104a76109ef565b73ffffffffffffffffffffffffffffffffffffffff16146104fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104f4906117eb565b60405180910390fd5b610511816001610ce290919063ffffffff16565b15610586573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f7c0c3c84c67c85fcac635147348bfe374c24a1a93d0366d1cfe9d8853cbf89d560405160405180910390a3610584816001610d1a90919063ffffffff16565b505b50565b60606105956001610d4a565b67ffffffffffffffff8111156105ae576105ad611aed565b5b6040519080825280602002602001820160405280156105dc5781602001602082028036833780820191505090505b50905060005b6105ec6001610d4a565b81101561066757610607816001610d5f90919063ffffffff16565b82828151811061061a57610619611abe565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050808061065f906119e9565b9150506105e2565b5090565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146106fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106f4906117cb565b60405180910390fd5b60018662ffffff1614610745576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161073c9061182b565b60405180910390fd5b60008383810190610756919061141b565b905061076a8a828d64ffffffffff16610d79565b1561077957600191505061077f565b60009150505b9998505050505050505050565b610794610d12565b73ffffffffffffffffffffffffffffffffffffffff166107b26109ef565b73ffffffffffffffffffffffffffffffffffffffff1614610808576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107ff906117eb565b60405180910390fd5b61081c816001610ce290919063ffffffff16565b610890573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f7e1a1a08d52e4ba0e21554733d66165fd5151f99460116223d9e3a608eec5cb160405160405180910390a361088e816001610e9890919063ffffffff16565b505b50565b61089b610d12565b73ffffffffffffffffffffffffffffffffffffffff166108b96109ef565b73ffffffffffffffffffffffffffffffffffffffff161461090f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610906906117eb565b60405180910390fd5b6109196000610ec8565b565b3373ffffffffffffffffffffffffffffffffffffffff1661093a6109ef565b73ffffffffffffffffffffffffffffffffffffffff16148061096c575061096b336001610ce290919063ffffffff16565b5b6109ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a29061180b565b60405180910390fd5b80600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b3373ffffffffffffffffffffffffffffffffffffffff16610a376109ef565b73ffffffffffffffffffffffffffffffffffffffff161480610a695750610a68336001610ce290919063ffffffff16565b5b610aa8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9f9061180b565b60405180910390fd5b8060036000848152602001908152602001600020819055505050565b610acc610d12565b73ffffffffffffffffffffffffffffffffffffffff16610aea6109ef565b73ffffffffffffffffffffffffffffffffffffffff1614610b40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b37906117eb565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610bb0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba7906117ab565b60405180910390fd5b610bb981610ec8565b50565b60007f553e757e000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610c2f5750610c2e82610f8c565b5b9050919050565b6000806004600084815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060008582604051602001610ca1929190611727565b604051602081830303815290604052805190602001209050610cd785600360008781526020019081526020016000205483610ff6565b925050509392505050565b6000610d0a836000018373ffffffffffffffffffffffffffffffffffffffff1660001b61100d565b905092915050565b600033905090565b6000610d42836000018373ffffffffffffffffffffffffffffffffffffffff1660001b611030565b905092915050565b6000610d5882600001611144565b9050919050565b6000610d6e8360000183611155565b60001c905092915050565b6000806004600084815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060008582604051602001610de4929190611727565b6040516020818303038152906040528051906020012090506000610e1c86600360008881526020019081526020016000205484610ff6565b90508015610e8b576004600086815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815480929190610e85906119e9565b91905055505b8093505050509392505050565b6000610ec0836000018373ffffffffffffffffffffffffffffffffffffffff1660001b611180565b905092915050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008261100385846111f0565b1490509392505050565b600080836001016000848152602001908152602001600020541415905092915050565b6000808360010160008481526020019081526020016000205490506000811461113857600060018261106291906118e6565b905060006001866000018054905061107a91906118e6565b90508181146110e957600086600001828154811061109b5761109a611abe565b5b90600052602060002001549050808760000184815481106110bf576110be611abe565b5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b856000018054806110fd576110fc611a8f565b5b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061113e565b60009150505b92915050565b600081600001805490509050919050565b600082600001828154811061116d5761116c611abe565b5b9060005260206000200154905092915050565b600061118c838361100d565b6111e55782600001829080600181540180825580915050600190039060005260206000200160009091909190915055826000018054905083600101600084815260200190815260200160002081905550600190506111ea565b600090505b92915050565b60008082905060005b845181101561125a57600085828151811061121757611216611abe565b5b60200260200101519050808311611239576112328382611265565b9250611246565b6112438184611265565b92505b508080611252906119e9565b9150506111f9565b508091505092915050565b600082600052816020526040600020905092915050565b600061128f61128a84611870565b61184b565b905080838252602082019050828560208602820111156112b2576112b1611b26565b5b60005b858110156112e257816112c8888261132f565b8452602084019350602083019250506001810190506112b5565b5050509392505050565b6000813590506112fb81611c92565b92915050565b600082601f83011261131657611315611b21565b5b813561132684826020860161127c565b91505092915050565b60008135905061133e81611ca9565b92915050565b60008135905061135381611cc0565b92915050565b60008083601f84011261136f5761136e611b21565b5b8235905067ffffffffffffffff81111561138c5761138b611b1c565b5b6020830191508360018202830111156113a8576113a7611b26565b5b9250929050565b6000813590506113be81611cd7565b92915050565b6000813590506113d381611cee565b92915050565b6000813590506113e881611d05565b92915050565b60006020828403121561140457611403611b30565b5b6000611412848285016112ec565b91505092915050565b60006020828403121561143157611430611b30565b5b600082013567ffffffffffffffff81111561144f5761144e611b2b565b5b61145b84828501611301565b91505092915050565b60006020828403121561147a57611479611b30565b5b600061148884828501611344565b91505092915050565b600080604083850312156114a8576114a7611b30565b5b60006114b6858286016113c4565b92505060206114c78582860161132f565b9150509250929050565b60008060008060008060008060006101008a8c0312156114f4576114f3611b30565b5b60006115028c828d016113d9565b99505060206115138c828d016112ec565b98505060406115248c828d016112ec565b97505060606115358c828d016113c4565b96505060806115468c828d016113af565b95505060a06115578c828d016113c4565b94505060c06115688c828d016112ec565b93505060e08a013567ffffffffffffffff81111561158957611588611b2b565b5b6115958c828d01611359565b92509250509295985092959850929598565b60006115b383836115bf565b60208301905092915050565b6115c88161191a565b82525050565b6115d78161191a565b82525050565b6115ee6115e98261191a565b611a32565b82525050565b60006115ff826118ac565b61160981856118c4565b93506116148361189c565b8060005b8381101561164557815161162c88826115a7565b9750611637836118b7565b925050600181019050611618565b5085935050505092915050565b61165b8161192c565b82525050565b600061166e6026836118d5565b915061167982611b53565b604082019050919050565b60006116916027836118d5565b915061169c82611ba2565b604082019050919050565b60006116b46020836118d5565b91506116bf82611bf1565b602082019050919050565b60006116d76024836118d5565b91506116e282611c1a565b604082019050919050565b60006116fa601a836118d5565b915061170582611c69565b602082019050919050565b61172161171c8261199d565b611a56565b82525050565b600061173382856115dd565b6014820191506117438284611710565b6020820191508190509392505050565b600060208201905061176860008301846115ce565b92915050565b6000602082019050818103600083015261178881846115f4565b905092915050565b60006020820190506117a56000830184611652565b92915050565b600060208201905081810360008301526117c481611661565b9050919050565b600060208201905081810360008301526117e481611684565b9050919050565b60006020820190508181036000830152611804816116a7565b9050919050565b60006020820190508181036000830152611824816116ca565b9050919050565b60006020820190508181036000830152611844816116ed565b9050919050565b6000611855611866565b905061186182826119b8565b919050565b6000604051905090565b600067ffffffffffffffff82111561188b5761188a611aed565b5b602082029050602081019050919050565b6000819050602082019050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b60006118f18261199d565b91506118fc8361199d565b92508282101561190f5761190e611a60565b5b828203905092915050565b60006119258261196e565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062ffffff82169050919050565b6000819050919050565b600064ffffffffff82169050919050565b6119c182611b35565b810181811067ffffffffffffffff821117156119e0576119df611aed565b5b80604052505050565b60006119f48261199d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415611a2757611a26611a60565b5b600182019050919050565b6000611a3d82611a44565b9050919050565b6000611a4f82611b46565b9050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f43616e206f6e6c7920626520766572696669656420627920746865206d61726b60008201527f6574706c61636500000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f72206160008201527f646d696e00000000000000000000000000000000000000000000000000000000602082015250565b7f43616e206f6e6c7920627579206f6e6520617420612074696d65000000000000600082015250565b611c9b8161191a565b8114611ca657600080fd5b50565b611cb281611938565b8114611cbd57600080fd5b50565b611cc981611942565b8114611cd457600080fd5b50565b611ce08161198e565b8114611ceb57600080fd5b50565b611cf78161199d565b8114611d0257600080fd5b50565b611d0e816119a7565b8114611d1957600080fd5b5056fea2646970667358221220889df0659204da9c9315c13eba2e62ae19bc2ce940831a029efdce7adf7e4fd664736f6c63430008070033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100cf5760003560e01c80634a45b1f31161008c57806373ad6c2d1161006657806373ad6c2d146102105780638da5cb5b1461022c578063e84d96841461024a578063f2fde38b14610266576100cf565b80634a45b1f3146101ba5780636d73e669146101ea578063715018a614610206576100cf565b806301ffc9a7146100d4578063075dc87c1461010457806318712c211461013457806324d7806c146101505780632d3456701461018057806331ae450b1461019c575b600080fd5b6100ee60048036038101906100e99190611464565b610282565b6040516100fb9190611790565b60405180910390f35b61011e600480360381019061011991906114d1565b6102fc565b60405161012b9190611790565b60405180910390f35b61014e60048036038101906101499190611491565b61037b565b005b61016a600480360381019061016591906113ee565b610427565b6040516101779190611790565b60405180910390f35b61019a600480360381019061019591906113ee565b610481565b005b6101a4610589565b6040516101b1919061176e565b60405180910390f35b6101d460048036038101906101cf91906114d1565b61066b565b6040516101e19190611790565b60405180910390f35b61020460048036038101906101ff91906113ee565b61078c565b005b61020e610893565b005b61022a600480360381019061022591906113ee565b61091b565b005b6102346109ef565b6040516102419190611753565b60405180910390f35b610264600480360381019061025f9190611491565b610a18565b005b610280600480360381019061027b91906113ee565b610ac4565b005b60007f4a45b1f3000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806102f557506102f482610bbc565b5b9050919050565b600060018662ffffff1614610346576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161033d9061182b565b60405180910390fd5b60008383810190610357919061141b565b905061036b8a828d64ffffffffff16610c36565b9150509998505050505050505050565b3373ffffffffffffffffffffffffffffffffffffffff1661039a6109ef565b73ffffffffffffffffffffffffffffffffffffffff1614806103cc57506103cb336001610ce290919063ffffffff16565b5b61040b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104029061180b565b60405180910390fd5b8060036000848152602001908152602001600020819055505050565b60008173ffffffffffffffffffffffffffffffffffffffff166104486109ef565b73ffffffffffffffffffffffffffffffffffffffff16148061047a5750610479826001610ce290919063ffffffff16565b5b9050919050565b610489610d12565b73ffffffffffffffffffffffffffffffffffffffff166104a76109ef565b73ffffffffffffffffffffffffffffffffffffffff16146104fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104f4906117eb565b60405180910390fd5b610511816001610ce290919063ffffffff16565b15610586573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f7c0c3c84c67c85fcac635147348bfe374c24a1a93d0366d1cfe9d8853cbf89d560405160405180910390a3610584816001610d1a90919063ffffffff16565b505b50565b60606105956001610d4a565b67ffffffffffffffff8111156105ae576105ad611aed565b5b6040519080825280602002602001820160405280156105dc5781602001602082028036833780820191505090505b50905060005b6105ec6001610d4a565b81101561066757610607816001610d5f90919063ffffffff16565b82828151811061061a57610619611abe565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050808061065f906119e9565b9150506105e2565b5090565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146106fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106f4906117cb565b60405180910390fd5b60018662ffffff1614610745576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161073c9061182b565b60405180910390fd5b60008383810190610756919061141b565b905061076a8a828d64ffffffffff16610d79565b1561077957600191505061077f565b60009150505b9998505050505050505050565b610794610d12565b73ffffffffffffffffffffffffffffffffffffffff166107b26109ef565b73ffffffffffffffffffffffffffffffffffffffff1614610808576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107ff906117eb565b60405180910390fd5b61081c816001610ce290919063ffffffff16565b610890573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f7e1a1a08d52e4ba0e21554733d66165fd5151f99460116223d9e3a608eec5cb160405160405180910390a361088e816001610e9890919063ffffffff16565b505b50565b61089b610d12565b73ffffffffffffffffffffffffffffffffffffffff166108b96109ef565b73ffffffffffffffffffffffffffffffffffffffff161461090f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610906906117eb565b60405180910390fd5b6109196000610ec8565b565b3373ffffffffffffffffffffffffffffffffffffffff1661093a6109ef565b73ffffffffffffffffffffffffffffffffffffffff16148061096c575061096b336001610ce290919063ffffffff16565b5b6109ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a29061180b565b60405180910390fd5b80600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b3373ffffffffffffffffffffffffffffffffffffffff16610a376109ef565b73ffffffffffffffffffffffffffffffffffffffff161480610a695750610a68336001610ce290919063ffffffff16565b5b610aa8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9f9061180b565b60405180910390fd5b8060036000848152602001908152602001600020819055505050565b610acc610d12565b73ffffffffffffffffffffffffffffffffffffffff16610aea6109ef565b73ffffffffffffffffffffffffffffffffffffffff1614610b40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b37906117eb565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610bb0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba7906117ab565b60405180910390fd5b610bb981610ec8565b50565b60007f553e757e000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610c2f5750610c2e82610f8c565b5b9050919050565b6000806004600084815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060008582604051602001610ca1929190611727565b604051602081830303815290604052805190602001209050610cd785600360008781526020019081526020016000205483610ff6565b925050509392505050565b6000610d0a836000018373ffffffffffffffffffffffffffffffffffffffff1660001b61100d565b905092915050565b600033905090565b6000610d42836000018373ffffffffffffffffffffffffffffffffffffffff1660001b611030565b905092915050565b6000610d5882600001611144565b9050919050565b6000610d6e8360000183611155565b60001c905092915050565b6000806004600084815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060008582604051602001610de4929190611727565b6040516020818303038152906040528051906020012090506000610e1c86600360008881526020019081526020016000205484610ff6565b90508015610e8b576004600086815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815480929190610e85906119e9565b91905055505b8093505050509392505050565b6000610ec0836000018373ffffffffffffffffffffffffffffffffffffffff1660001b611180565b905092915050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008261100385846111f0565b1490509392505050565b600080836001016000848152602001908152602001600020541415905092915050565b6000808360010160008481526020019081526020016000205490506000811461113857600060018261106291906118e6565b905060006001866000018054905061107a91906118e6565b90508181146110e957600086600001828154811061109b5761109a611abe565b5b90600052602060002001549050808760000184815481106110bf576110be611abe565b5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b856000018054806110fd576110fc611a8f565b5b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061113e565b60009150505b92915050565b600081600001805490509050919050565b600082600001828154811061116d5761116c611abe565b5b9060005260206000200154905092915050565b600061118c838361100d565b6111e55782600001829080600181540180825580915050600190039060005260206000200160009091909190915055826000018054905083600101600084815260200190815260200160002081905550600190506111ea565b600090505b92915050565b60008082905060005b845181101561125a57600085828151811061121757611216611abe565b5b60200260200101519050808311611239576112328382611265565b9250611246565b6112438184611265565b92505b508080611252906119e9565b9150506111f9565b508091505092915050565b600082600052816020526040600020905092915050565b600061128f61128a84611870565b61184b565b905080838252602082019050828560208602820111156112b2576112b1611b26565b5b60005b858110156112e257816112c8888261132f565b8452602084019350602083019250506001810190506112b5565b5050509392505050565b6000813590506112fb81611c92565b92915050565b600082601f83011261131657611315611b21565b5b813561132684826020860161127c565b91505092915050565b60008135905061133e81611ca9565b92915050565b60008135905061135381611cc0565b92915050565b60008083601f84011261136f5761136e611b21565b5b8235905067ffffffffffffffff81111561138c5761138b611b1c565b5b6020830191508360018202830111156113a8576113a7611b26565b5b9250929050565b6000813590506113be81611cd7565b92915050565b6000813590506113d381611cee565b92915050565b6000813590506113e881611d05565b92915050565b60006020828403121561140457611403611b30565b5b6000611412848285016112ec565b91505092915050565b60006020828403121561143157611430611b30565b5b600082013567ffffffffffffffff81111561144f5761144e611b2b565b5b61145b84828501611301565b91505092915050565b60006020828403121561147a57611479611b30565b5b600061148884828501611344565b91505092915050565b600080604083850312156114a8576114a7611b30565b5b60006114b6858286016113c4565b92505060206114c78582860161132f565b9150509250929050565b60008060008060008060008060006101008a8c0312156114f4576114f3611b30565b5b60006115028c828d016113d9565b99505060206115138c828d016112ec565b98505060406115248c828d016112ec565b97505060606115358c828d016113c4565b96505060806115468c828d016113af565b95505060a06115578c828d016113c4565b94505060c06115688c828d016112ec565b93505060e08a013567ffffffffffffffff81111561158957611588611b2b565b5b6115958c828d01611359565b92509250509295985092959850929598565b60006115b383836115bf565b60208301905092915050565b6115c88161191a565b82525050565b6115d78161191a565b82525050565b6115ee6115e98261191a565b611a32565b82525050565b60006115ff826118ac565b61160981856118c4565b93506116148361189c565b8060005b8381101561164557815161162c88826115a7565b9750611637836118b7565b925050600181019050611618565b5085935050505092915050565b61165b8161192c565b82525050565b600061166e6026836118d5565b915061167982611b53565b604082019050919050565b60006116916027836118d5565b915061169c82611ba2565b604082019050919050565b60006116b46020836118d5565b91506116bf82611bf1565b602082019050919050565b60006116d76024836118d5565b91506116e282611c1a565b604082019050919050565b60006116fa601a836118d5565b915061170582611c69565b602082019050919050565b61172161171c8261199d565b611a56565b82525050565b600061173382856115dd565b6014820191506117438284611710565b6020820191508190509392505050565b600060208201905061176860008301846115ce565b92915050565b6000602082019050818103600083015261178881846115f4565b905092915050565b60006020820190506117a56000830184611652565b92915050565b600060208201905081810360008301526117c481611661565b9050919050565b600060208201905081810360008301526117e481611684565b9050919050565b60006020820190508181036000830152611804816116a7565b9050919050565b60006020820190508181036000830152611824816116ca565b9050919050565b60006020820190508181036000830152611844816116ed565b9050919050565b6000611855611866565b905061186182826119b8565b919050565b6000604051905090565b600067ffffffffffffffff82111561188b5761188a611aed565b5b602082029050602081019050919050565b6000819050602082019050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b60006118f18261199d565b91506118fc8361199d565b92508282101561190f5761190e611a60565b5b828203905092915050565b60006119258261196e565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062ffffff82169050919050565b6000819050919050565b600064ffffffffff82169050919050565b6119c182611b35565b810181811067ffffffffffffffff821117156119e0576119df611aed565b5b80604052505050565b60006119f48261199d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415611a2757611a26611a60565b5b600182019050919050565b6000611a3d82611a44565b9050919050565b6000611a4f82611b46565b9050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f43616e206f6e6c7920626520766572696669656420627920746865206d61726b60008201527f6574706c61636500000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f72206160008201527f646d696e00000000000000000000000000000000000000000000000000000000602082015250565b7f43616e206f6e6c7920627579206f6e6520617420612074696d65000000000000600082015250565b611c9b8161191a565b8114611ca657600080fd5b50565b611cb281611938565b8114611cbd57600080fd5b50565b611cc981611942565b8114611cd457600080fd5b50565b611ce08161198e565b8114611ceb57600080fd5b50565b611cf78161199d565b8114611d0257600080fd5b50565b611d0e816119a7565b8114611d1957600080fd5b5056fea2646970667358221220889df0659204da9c9315c13eba2e62ae19bc2ce940831a029efdce7adf7e4fd664736f6c63430008070033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.