ETH Price: $2,528.03 (+0.67%)

Contract

0xC31B8dFeC945f493EE0B91f61351E5dDC21EC92d
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw159469412022-11-11 13:02:11658 days ago1668171731IN
0xC31B8dFe...DC21EC92d
0 ETH0.0014316642.60921907
Grant Role159466072022-11-11 11:54:11658 days ago1668167651IN
0xC31B8dFe...DC21EC92d
0 ETH0.0008236316.01811594
Permit Sale159433242022-11-11 0:53:23659 days ago1668128003IN
0xC31B8dFe...DC21EC92d
0.1615 ETH0.0010271819.05940434
Permit Sale159433212022-11-11 0:52:47659 days ago1668127967IN
0xC31B8dFe...DC21EC92d
0.1615 ETH0.0011543416.25968418
Permit Sale159433152022-11-11 0:51:35659 days ago1668127895IN
0xC31B8dFe...DC21EC92d
0.1615 ETH0.0009096816.88327342
Permit Sale159433122022-11-11 0:50:59659 days ago1668127859IN
0xC31B8dFe...DC21EC92d
0.1615 ETH0.0012268117.28377606
Permit Sale159433082022-11-11 0:50:11659 days ago1668127811IN
0xC31B8dFe...DC21EC92d
0.1615 ETH0.0009576117.76887101
Permit Sale159433042022-11-11 0:49:23659 days ago1668127763IN
0xC31B8dFe...DC21EC92d
0.1615 ETH0.0012437517.51934632
Permit Sale159433022022-11-11 0:48:59659 days ago1668127739IN
0xC31B8dFe...DC21EC92d
0.1615 ETH0.0009587317.79298108
Permit Sale159433002022-11-11 0:48:35659 days ago1668127715IN
0xC31B8dFe...DC21EC92d
0.1615 ETH0.0009915318.40087445
Permit Sale159432992022-11-11 0:48:23659 days ago1668127703IN
0xC31B8dFe...DC21EC92d
0.1615 ETH0.0013445818.94228727
Permit Sale159432982022-11-11 0:48:11659 days ago1668127691IN
0xC31B8dFe...DC21EC92d
0.1615 ETH0.0013845819.50534021
Permit Sale159432932022-11-11 0:46:59659 days ago1668127619IN
0xC31B8dFe...DC21EC92d
0.1615 ETH0.0008941716.59130416
Permit Sale159432912022-11-11 0:46:35659 days ago1668127595IN
0xC31B8dFe...DC21EC92d
0.1615 ETH0.0012266417.27816903
Permit Sale159432902022-11-11 0:46:23659 days ago1668127583IN
0xC31B8dFe...DC21EC92d
0.1615 ETH0.0008936416.58404851
Permit Sale159432882022-11-11 0:45:59659 days ago1668127559IN
0xC31B8dFe...DC21EC92d
0.1615 ETH0.001188716.74555614
Permit Sale159432832022-11-11 0:44:59659 days ago1668127499IN
0xC31B8dFe...DC21EC92d
0.1615 ETH0.0008829116.38981121
Permit Sale159432812022-11-11 0:44:35659 days ago1668127475IN
0xC31B8dFe...DC21EC92d
0.1615 ETH0.0009161817.00639653
Permit Sale159432802022-11-11 0:44:23659 days ago1668127463IN
0xC31B8dFe...DC21EC92d
0.1615 ETH0.0012311417.34739267
Permit Sale159432782022-11-11 0:43:59659 days ago1668127439IN
0xC31B8dFe...DC21EC92d
0.1615 ETH0.0010919215.38505424
Permit Sale159432722022-11-11 0:42:47659 days ago1668127367IN
0xC31B8dFe...DC21EC92d
0.1615 ETH0.0010343419.20043896
Permit Sale159432722022-11-11 0:42:47659 days ago1668127367IN
0xC31B8dFe...DC21EC92d
0.1615 ETH0.0010343619.20043896
Permit Sale159432692022-11-11 0:42:11659 days ago1668127331IN
0xC31B8dFe...DC21EC92d
0.1615 ETH0.0012908918.18880729
Permit Sale159432692022-11-11 0:42:11659 days ago1668127331IN
0xC31B8dFe...DC21EC92d
0.1615 ETH0.0012908718.18880729
Permit Sale159432642022-11-11 0:41:11659 days ago1668127271IN
0xC31B8dFe...DC21EC92d
0.1615 ETH0.0010150818.84319766
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To
159469412022-11-11 13:02:11658 days ago1668171731
0xC31B8dFe...DC21EC92d
35.53 ETH
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0xaD798052...14F1753CC
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
AmbrusStudioSalerL2

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 8 : AmbrusStudioSalerL2.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

contract AmbrusStudioSalerL2 is AccessControl {
    struct SaleConfig {
        uint32 start;
        uint32 end;
        uint8 discount;
        bytes32 merkleRoot;
    }

    bytes32 public constant WITHDRAWER_ROLE = keccak256("WITHDRAWER_ROLE");

    uint16 public count;
    uint256 public startId;
    uint256 public basePrice;

    SaleConfig public permitSaleConfig;
    SaleConfig public whitelistSaleConfig;

    uint16 public soldCount;

    mapping(address => uint256) public permitSaleCount;
    mapping(address => uint256) public whitelistSaleCount;

    event MintRequested(uint256 tokenId);

    constructor(uint16 _count, uint256 _startId, uint256 p0, uint32 s1, uint32 e1, bytes32 m1, uint32 s2, uint32 e2, bytes32 m2) {
        count = _count;
        startId = _startId;

        basePrice = p0;
        permitSaleConfig.discount = 15;
        whitelistSaleConfig.discount = 10;

        permitSaleConfig.start = s1;
        permitSaleConfig.end = e1;
        permitSaleConfig.merkleRoot = m1;

        whitelistSaleConfig.start = s2;
        whitelistSaleConfig.end = e2;
        whitelistSaleConfig.merkleRoot = m2;

        _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _grantRole(DEFAULT_ADMIN_ROLE, address(0x6465F1250c9fe162602Db83791Fc3Fb202D70a7B));
    }

    function setBasePrice(uint256 _basePrice) external onlyRole(DEFAULT_ADMIN_ROLE) {
        basePrice = _basePrice;
    }

    function permitSalePrice() external view returns (uint256) {
        return basePrice - basePrice * permitSaleConfig.discount / 100;
    }
    function setPermitSaleTime(uint32 start, uint32 end) external onlyRole(DEFAULT_ADMIN_ROLE) {
        permitSaleConfig.start = start;
        permitSaleConfig.end = end;
    }
    function setPermitSaleDiscount(uint8 discount) external onlyRole(DEFAULT_ADMIN_ROLE) {
        permitSaleConfig.discount = discount;
    }
    function setPermitSaleMerkleRoot(bytes32 merkleRoot) external onlyRole(DEFAULT_ADMIN_ROLE) {
        permitSaleConfig.merkleRoot = merkleRoot;
    }
    function isPermitSaleAllowed(address account, bytes32[] calldata signature) external view returns (bool) {
        return isAccountAllowed(account, permitSaleConfig.merkleRoot, signature);
    }

    function permitSale(bytes32[] calldata signature) external payable {
        require(permitSaleCount[msg.sender] < 2, "Exceeds purchase limit");
        permitSaleCount[msg.sender] += 1;
        _restrictedSale(permitSaleConfig, signature);
    }

    function whitelistSalePrice() external view returns (uint256) {
        return basePrice - basePrice * whitelistSaleConfig.discount / 100;
    }
    function setWhitelistSaleTime(uint32 start, uint32 end) external onlyRole(DEFAULT_ADMIN_ROLE) {
        whitelistSaleConfig.start = start;
        whitelistSaleConfig.end = end;
    }
    function setWhitelistSaleDiscount(uint8 discount) external onlyRole(DEFAULT_ADMIN_ROLE) {
        whitelistSaleConfig.discount = discount;
    }
    function setWhitelistSaleMerkleRoot(bytes32 merkleRoot) external onlyRole(DEFAULT_ADMIN_ROLE) {
        whitelistSaleConfig.merkleRoot = merkleRoot;
    }
    function isWhitelistSaleAllowed(address account, bytes32[] calldata signature) external view returns (bool) {
        return isAccountAllowed(account, whitelistSaleConfig.merkleRoot, signature);
    }

    function whitelistSale(bytes32[] calldata signature) external payable {
        require(whitelistSaleCount[msg.sender] < 2, "Exceeds purchase limit");
        whitelistSaleCount[msg.sender] += 1;
        _restrictedSale(whitelistSaleConfig, signature);
    }

    function _restrictedSale(SaleConfig memory config, bytes32[] calldata signature) private {
        require(block.timestamp >= config.start, "Sale not start");
        require(block.timestamp < config.end, "Sale has ended");
        require(isAccountAllowed(msg.sender, config.merkleRoot, signature), "You're not allowed to buy");
        require(msg.value == (basePrice - basePrice * config.discount / 100), "Sent value not equal to price");

        _sale();
    }
    function isAccountAllowed(address account, bytes32 merkleRoot, bytes32[] calldata signature) public pure returns (bool) {
        if (merkleRoot == "") {
            return false;
        }

        return MerkleProof.verify(signature, merkleRoot, keccak256(abi.encodePacked(account)));
    }

    function _sale() private {
        require(soldCount < count, "Sold out");

        soldCount++;

        emit MintRequested(startId + soldCount);
    }

    function withdraw(address account) external onlyRole(WITHDRAWER_ROLE) {
        payable(account).transfer(address(this).balance);
    }

    receive() external payable { }
}

File 2 of 8 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleGranted} event.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleRevoked} event.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     *
     * May emit a {RoleRevoked} event.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * May emit a {RoleGranted} event.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

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

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree 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 Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(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++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`,
     * consuming from one or the other at each step according to the instructions given by
     * `proofFlags`.
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 4 of 8 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

File 5 of 8 : 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;
    }
}

File 6 of 8 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 7 of 8 : 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 8 : 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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint16","name":"_count","type":"uint16"},{"internalType":"uint256","name":"_startId","type":"uint256"},{"internalType":"uint256","name":"p0","type":"uint256"},{"internalType":"uint32","name":"s1","type":"uint32"},{"internalType":"uint32","name":"e1","type":"uint32"},{"internalType":"bytes32","name":"m1","type":"bytes32"},{"internalType":"uint32","name":"s2","type":"uint32"},{"internalType":"uint32","name":"e2","type":"uint32"},{"internalType":"bytes32","name":"m2","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"MintRequested","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WITHDRAWER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"basePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"count","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"bytes32[]","name":"signature","type":"bytes32[]"}],"name":"isAccountAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32[]","name":"signature","type":"bytes32[]"}],"name":"isPermitSaleAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32[]","name":"signature","type":"bytes32[]"}],"name":"isWhitelistSaleAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"signature","type":"bytes32[]"}],"name":"permitSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"permitSaleConfig","outputs":[{"internalType":"uint32","name":"start","type":"uint32"},{"internalType":"uint32","name":"end","type":"uint32"},{"internalType":"uint8","name":"discount","type":"uint8"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"permitSaleCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"permitSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_basePrice","type":"uint256"}],"name":"setBasePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"discount","type":"uint8"}],"name":"setPermitSaleDiscount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setPermitSaleMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"start","type":"uint32"},{"internalType":"uint32","name":"end","type":"uint32"}],"name":"setPermitSaleTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"discount","type":"uint8"}],"name":"setWhitelistSaleDiscount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setWhitelistSaleMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"start","type":"uint32"},{"internalType":"uint32","name":"end","type":"uint32"}],"name":"setWhitelistSaleTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"soldCount","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"signature","type":"bytes32[]"}],"name":"whitelistSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"whitelistSaleConfig","outputs":[{"internalType":"uint32","name":"start","type":"uint32"},{"internalType":"uint32","name":"end","type":"uint32"},{"internalType":"uint8","name":"discount","type":"uint8"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistSaleCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

Deployed Bytecode

0x6080604052600436106101dc5760003560e01c8063881c5eaa11610102578063b09f80f311610095578063c7876ea411610064578063c7876ea4146105f7578063d547741f1461060d578063de4b32621461062d578063f29ff1801461064d57600080fd5b8063b09f80f314610582578063ba0987b714610595578063bba0ed57146105a8578063c1173250146105e257600080fd5b8063a217fddf116100d1578063a217fddf1461050d578063a5a0adc614610522578063ab050bec14610542578063ac43f5141461056257600080fd5b8063881c5eaa1461046757806389805bd91461048757806391d14854146104b45780639ddf0794146104f857600080fd5b806336568abe1161017a5780635797db75116101495780635797db7514610389578063656cf918146103a95780636bbf7b5f1461041357806385f438c11461043357600080fd5b806336568abe1461030e57806339f9c82c1461032e578063455567de1461034957806351cff8d91461036957600080fd5b8063248a9ca3116101b6578063248a9ca31461028657806329d7e69b146102b65780632f2ff15d146102cc57806335077edf146102ee57600080fd5b806301ffc9a7146101e857806306661abd1461021d5780630749abcb1461024b57600080fd5b366101e357005b600080fd5b3480156101f457600080fd5b50610208610203366004611296565b61066d565b60405190151581526020015b60405180910390f35b34801561022957600080fd5b506001546102389061ffff1681565b60405161ffff9091168152602001610214565b34801561025757600080fd5b506102786102663660046112f4565b600a6020526000908152604090205481565b604051908152602001610214565b34801561029257600080fd5b506102786102a136600461130f565b60009081526020819052604090206001015490565b3480156102c257600080fd5b5061027860025481565b3480156102d857600080fd5b506102ec6102e7366004611328565b610706565b005b3480156102fa57600080fd5b506102ec610309366004611368565b610730565b34801561031a57600080fd5b506102ec610329366004611328565b61076c565b34801561033a57600080fd5b506008546102389061ffff1681565b34801561035557600080fd5b506102086103643660046113de565b6107fd565b34801561037557600080fd5b506102ec6103843660046112f4565b610818565b34801561039557600080fd5b506102ec6103a436600461130f565b610877565b3480156103b557600080fd5b506006546007546103e39163ffffffff80821692640100000000830490911691600160401b900460ff169084565b6040805163ffffffff958616815294909316602085015260ff909116918301919091526060820152608001610214565b34801561041f57600080fd5b506102ec61042e36600461130f565b610888565b34801561043f57600080fd5b506102787f10dac8c06a04bec0b551627dad28bc00d6516b0caacd1c7b345fcdb5211334e481565b34801561047357600080fd5b506102086104823660046113de565b610899565b34801561049357600080fd5b506102786104a23660046112f4565b60096020526000908152604090205481565b3480156104c057600080fd5b506102086104cf366004611328565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b34801561050457600080fd5b506102786108ac565b34801561051957600080fd5b50610278600081565b34801561052e57600080fd5b506102ec61053d366004611368565b6108e8565b34801561054e57600080fd5b506102ec61055d366004611431565b610924565b34801561056e57600080fd5b5061020861057d366004611454565b610955565b6102ec6105903660046114ae565b6109e3565b6102ec6105a33660046114ae565b610ab0565b3480156105b457600080fd5b506004546005546103e39163ffffffff80821692640100000000830490911691600160401b900460ff169084565b3480156105ee57600080fd5b50610278610b7d565b34801561060357600080fd5b5061027860035481565b34801561061957600080fd5b506102ec610628366004611328565b610b9d565b34801561063957600080fd5b506102ec61064836600461130f565b610bc2565b34801561065957600080fd5b506102ec610668366004611431565b610bd3565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061070057507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b60008281526020819052604090206001015461072181610c04565b61072b8383610c11565b505050565b600061073b81610c04565b506006805463ffffffff9283166401000000000267ffffffffffffffff199091169290931691909117919091179055565b6001600160a01b03811633146107ef5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084015b60405180910390fd5b6107f98282610caf565b5050565b6000610810846004600101548585610955565b949350505050565b7f10dac8c06a04bec0b551627dad28bc00d6516b0caacd1c7b345fcdb5211334e461084281610c04565b6040516001600160a01b038316904780156108fc02916000818181858888f1935050505015801561072b573d6000803e3d6000fd5b600061088281610c04565b50600755565b600061089381610c04565b50600555565b6000610810846006600101548585610955565b6004546003546000916064916108cc91600160401b900460ff1690611506565b6108d6919061151d565b6003546108e3919061153f565b905090565b60006108f381610c04565b506004805463ffffffff9283166401000000000267ffffffffffffffff199091169290931691909117919091179055565b600061092f81610c04565b506004805460ff909216600160401b0268ff000000000000000019909216919091179055565b60008360000361096757506000610810565b6109da838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516bffffffffffffffffffffffff1960608b901b166020820152889250603401905060405160208183030381529060405280519060200120610d2e565b95945050505050565b33600090815260096020526040902054600211610a425760405162461bcd60e51b815260206004820152601660248201527f45786365656473207075726368617365206c696d69740000000000000000000060448201526064016107e6565b336000908152600960205260408120805460019290610a62908490611552565b90915550506040805160808101825260045463ffffffff80821683526401000000008204166020830152600160401b900460ff169181019190915260055460608201526107f9908383610d44565b336000908152600a6020526040902054600211610b0f5760405162461bcd60e51b815260206004820152601660248201527f45786365656473207075726368617365206c696d69740000000000000000000060448201526064016107e6565b336000908152600a60205260408120805460019290610b2f908490611552565b90915550506040805160808101825260065463ffffffff80821683526401000000008204166020830152600160401b900460ff169181019190915260075460608201526107f9908383610d44565b6006546003546000916064916108cc91600160401b900460ff1690611506565b600082815260208190526040902060010154610bb881610c04565b61072b8383610caf565b6000610bcd81610c04565b50600355565b6000610bde81610c04565b506006805460ff909216600160401b0268ff000000000000000019909216919091179055565b610c0e8133610ed4565b50565b6000828152602081815260408083206001600160a01b038516845290915290205460ff166107f9576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055610c6b3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16156107f9576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600082610d3b8584610f52565b14949350505050565b825163ffffffff16421015610d9b5760405162461bcd60e51b815260206004820152600e60248201527f53616c65206e6f7420737461727400000000000000000000000000000000000060448201526064016107e6565b826020015163ffffffff164210610df45760405162461bcd60e51b815260206004820152600e60248201527f53616c652068617320656e64656400000000000000000000000000000000000060448201526064016107e6565b610e043384606001518484610955565b610e505760405162461bcd60e51b815260206004820152601960248201527f596f75277265206e6f7420616c6c6f77656420746f206275790000000000000060448201526064016107e6565b6064836040015160ff16600354610e679190611506565b610e71919061151d565b600354610e7e919061153f565b3414610ecc5760405162461bcd60e51b815260206004820152601d60248201527f53656e742076616c7565206e6f7420657175616c20746f20707269636500000060448201526064016107e6565b61072b610f9f565b6000828152602081815260408083206001600160a01b038516845290915290205460ff166107f957610f10816001600160a01b0316601461107f565b610f1b83602061107f565b604051602001610f2c929190611589565b60408051601f198184030181529082905262461bcd60e51b82526107e69160040161160a565b600081815b8451811015610f9757610f8382868381518110610f7657610f7661163d565b6020026020010151611267565b915080610f8f81611653565b915050610f57565b509392505050565b60015460085461ffff918216911610610ffa5760405162461bcd60e51b815260206004820152600860248201527f536f6c64206f757400000000000000000000000000000000000000000000000060448201526064016107e6565b6008805461ffff1690600061100e8361166c565b91906101000a81548161ffff021916908361ffff160217905550507fed7e1cc32737aac2f5c91387879185d74677bc68b69562a9d6dcd77622e8b62d600860009054906101000a900461ffff1661ffff1660025461106c9190611552565b60405190815260200160405180910390a1565b6060600061108e836002611506565b611099906002611552565b67ffffffffffffffff8111156110b1576110b161168d565b6040519080825280601f01601f1916602001820160405280156110db576020820181803683370190505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106111125761111261163d565b60200101906001600160f81b031916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061115d5761115d61163d565b60200101906001600160f81b031916908160001a9053506000611181846002611506565b61118c906001611552565b90505b6001811115611211577f303132333435363738396162636465660000000000000000000000000000000085600f16601081106111cd576111cd61163d565b1a60f81b8282815181106111e3576111e361163d565b60200101906001600160f81b031916908160001a90535060049490941c9361120a816116a3565b905061118f565b5083156112605760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016107e6565b9392505050565b6000818310611283576000828152602084905260409020611260565b6000838152602083905260409020611260565b6000602082840312156112a857600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461126057600080fd5b80356001600160a01b03811681146112ef57600080fd5b919050565b60006020828403121561130657600080fd5b611260826112d8565b60006020828403121561132157600080fd5b5035919050565b6000806040838503121561133b57600080fd5b8235915061134b602084016112d8565b90509250929050565b803563ffffffff811681146112ef57600080fd5b6000806040838503121561137b57600080fd5b61138483611354565b915061134b60208401611354565b60008083601f8401126113a457600080fd5b50813567ffffffffffffffff8111156113bc57600080fd5b6020830191508360208260051b85010111156113d757600080fd5b9250929050565b6000806000604084860312156113f357600080fd5b6113fc846112d8565b9250602084013567ffffffffffffffff81111561141857600080fd5b61142486828701611392565b9497909650939450505050565b60006020828403121561144357600080fd5b813560ff8116811461126057600080fd5b6000806000806060858703121561146a57600080fd5b611473856112d8565b935060208501359250604085013567ffffffffffffffff81111561149657600080fd5b6114a287828801611392565b95989497509550505050565b600080602083850312156114c157600080fd5b823567ffffffffffffffff8111156114d857600080fd5b6114e485828601611392565b90969095509350505050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610700576107006114f0565b60008261153a57634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115610700576107006114f0565b80820180821115610700576107006114f0565b60005b83811015611580578181015183820152602001611568565b50506000910152565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516115c1816017850160208801611565565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516115fe816028840160208801611565565b01602801949350505050565b6020815260008251806020840152611629816040850160208701611565565b601f01601f19169190910160400192915050565b634e487b7160e01b600052603260045260246000fd5b600060018201611665576116656114f0565b5060010190565b600061ffff808316818103611683576116836114f0565b6001019392505050565b634e487b7160e01b600052604160045260246000fd5b6000816116b2576116b26114f0565b50600019019056fea2646970667358221220dc0a402f18538aab86d7c245e399507217537ac95aab106eae0f75a74065af1564736f6c63430008110033

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  ]
[ 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.