ETH Price: $2,798.34 (+2.03%)

Contract

0xcD04419220bEf347b409055ac4E9ad50Ee1aD6D6
 

Overview

ETH Balance

16.45047 ETH

Eth Value

$46,033.99 (@ $2,798.34/ETH)

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Export218803702025-02-19 12:19:4747 hrs ago1739967587IN
0xcD044192...0Ee1aD6D6
0.09 ETH0.00009081.52798232
Export218724162025-02-18 9:38:593 days ago1739871539IN
0xcD044192...0Ee1aD6D6
0.00621 ETH0.00012822.15882017
Export218515352025-02-15 11:29:236 days ago1739618963IN
0xcD044192...0Ee1aD6D6
0.018 ETH0.000074211.24887853
Export218487862025-02-15 2:14:476 days ago1739585687IN
0xcD044192...0Ee1aD6D6
0.00045 ETH0.000074691.25758973
Export218430782025-02-14 7:01:357 days ago1739516495IN
0xcD044192...0Ee1aD6D6
0.13995 ETH0.000074011.24519314
Export218358922025-02-13 6:51:598 days ago1739429519IN
0xcD044192...0Ee1aD6D6
0.9 ETH0.00011511.93705975
Export218351132025-02-13 4:15:118 days ago1739420111IN
0xcD044192...0Ee1aD6D6
0.00081 ETH0.000055560.93543135
Export218319452025-02-12 17:38:238 days ago1739381903IN
0xcD044192...0Ee1aD6D6
0.036 ETH0.0007142612.01873541
Export218276972025-02-12 3:16:119 days ago1739330171IN
0xcD044192...0Ee1aD6D6
0.621 ETH0.000082651.3904936
Export218248182025-02-11 17:37:599 days ago1739295479IN
0xcD044192...0Ee1aD6D6
0.1107 ETH0.000097651.64344683
Export218151242025-02-10 9:08:3511 days ago1739178515IN
0xcD044192...0Ee1aD6D6
0.036 ETH0.000075731.27451693
Export218149862025-02-10 8:40:5911 days ago1739176859IN
0xcD044192...0Ee1aD6D6
0.00045 ETH0.000081381.36995593
Export218105072025-02-09 17:39:3511 days ago1739122775IN
0xcD044192...0Ee1aD6D6
0.009 ETH0.000053390.89850375
Export217762882025-02-04 23:02:3516 days ago1738710155IN
0xcD044192...0Ee1aD6D6
0.09009 ETH0.000101211.70333136
Export217744922025-02-04 17:00:5916 days ago1738688459IN
0xcD044192...0Ee1aD6D6
0.0621 ETH0.000146262.46064553
Export217744222025-02-04 16:46:5916 days ago1738687619IN
0xcD044192...0Ee1aD6D6
0.135 ETH0.000144952.43913738
Export217701712025-02-04 2:30:1117 days ago1738636211IN
0xcD044192...0Ee1aD6D6
0.00576 ETH0.000214253.60523168
Export217678992025-02-03 18:53:5917 days ago1738608839IN
0xcD044192...0Ee1aD6D6
0.09 ETH0.000585839.85569782
Export217665032025-02-03 14:13:3517 days ago1738592015IN
0xcD044192...0Ee1aD6D6
0.342 ETH0.0010547117.74394374
Export217448352025-01-31 13:33:5920 days ago1738330439IN
0xcD044192...0Ee1aD6D6
0.11997 ETH0.000338585.69810562
Export217099002025-01-26 16:31:2325 days ago1737909083IN
0xcD044192...0Ee1aD6D6
0.04995 ETH0.000497898.3762824
Export217097502025-01-26 16:01:1125 days ago1737907271IN
0xcD044192...0Ee1aD6D6
0.03996 ETH0.000482678.12016737
Export217019542025-01-25 13:55:4726 days ago1737813347IN
0xcD044192...0Ee1aD6D6
0.54 ETH0.000422937.11512371
Export216971702025-01-24 21:52:2327 days ago1737755543IN
0xcD044192...0Ee1aD6D6
0.10512 ETH0.000434167.30406394
Export216965392025-01-24 19:45:4727 days ago1737747947IN
0xcD044192...0Ee1aD6D6
0.10512 ETH0.000644910.8516963
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
218803702025-02-19 12:19:4747 hrs ago1739967587
0xcD044192...0Ee1aD6D6
0 ETH
218724162025-02-18 9:38:593 days ago1739871539
0xcD044192...0Ee1aD6D6
0 ETH
218515352025-02-15 11:29:236 days ago1739618963
0xcD044192...0Ee1aD6D6
0 ETH
218487862025-02-15 2:14:476 days ago1739585687
0xcD044192...0Ee1aD6D6
0 ETH
218430782025-02-14 7:01:357 days ago1739516495
0xcD044192...0Ee1aD6D6
0 ETH
218358922025-02-13 6:51:598 days ago1739429519
0xcD044192...0Ee1aD6D6
0 ETH
218351132025-02-13 4:15:118 days ago1739420111
0xcD044192...0Ee1aD6D6
0 ETH
218319452025-02-12 17:38:238 days ago1739381903
0xcD044192...0Ee1aD6D6
0 ETH
218276972025-02-12 3:16:119 days ago1739330171
0xcD044192...0Ee1aD6D6
0 ETH
218248182025-02-11 17:37:599 days ago1739295479
0xcD044192...0Ee1aD6D6
0 ETH
218151242025-02-10 9:08:3511 days ago1739178515
0xcD044192...0Ee1aD6D6
0 ETH
218149862025-02-10 8:40:5911 days ago1739176859
0xcD044192...0Ee1aD6D6
0 ETH
218105072025-02-09 17:39:3511 days ago1739122775
0xcD044192...0Ee1aD6D6
0 ETH
217762882025-02-04 23:02:3516 days ago1738710155
0xcD044192...0Ee1aD6D6
0 ETH
217744922025-02-04 17:00:5916 days ago1738688459
0xcD044192...0Ee1aD6D6
0 ETH
217744222025-02-04 16:46:5916 days ago1738687619
0xcD044192...0Ee1aD6D6
0 ETH
217701712025-02-04 2:30:1117 days ago1738636211
0xcD044192...0Ee1aD6D6
0 ETH
217678992025-02-03 18:53:5917 days ago1738608839
0xcD044192...0Ee1aD6D6
0 ETH
217665032025-02-03 14:13:3517 days ago1738592015
0xcD044192...0Ee1aD6D6
0 ETH
217448352025-01-31 13:33:5920 days ago1738330439
0xcD044192...0Ee1aD6D6
0 ETH
217099002025-01-26 16:31:2325 days ago1737909083
0xcD044192...0Ee1aD6D6
0 ETH
217097502025-01-26 16:01:1125 days ago1737907271
0xcD044192...0Ee1aD6D6
0 ETH
217019542025-01-25 13:55:4726 days ago1737813347
0xcD044192...0Ee1aD6D6
0 ETH
216971702025-01-24 21:52:2327 days ago1737755543
0xcD044192...0Ee1aD6D6
0 ETH
216965392025-01-24 19:45:4727 days ago1737747947
0xcD044192...0Ee1aD6D6
0 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BuenoMembership

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

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

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

contract BuenoMembership is AccessControl {
    using ECDSA for bytes32;

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

    uint256 public exportPrice = 0.0001 ether;

    mapping(string => bool) public paidExports;

    address private signer = address(0);
    address private buenoWallet = address(0);

    event PurchaseComplete(address purchaser, string tokenSetId);

    constructor() {
        _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
    }

    function export(
        string memory tokenSetId,
        uint256 quantity,
        bytes memory signature
    ) public payable {
        require(quantity > 0, "INVALID_QUANTITY");
        require(msg.value == quantity * exportPrice, "INSUFFICIENT_PAYMENT");
        require(paidExports[tokenSetId] == false, "ALREADY_PAID");
        bytes32 hash = keccak256(
            abi.encodePacked(msg.sender, tokenSetId, quantity)
        );
        require(verify(hash, signature), "INVALID_SIGNATURE");

        paidExports[tokenSetId] = true;
        emit PurchaseComplete(msg.sender, tokenSetId);
    }

    function setSigner(address _signer) public onlyRole(DEFAULT_ADMIN_ROLE) {
        signer = _signer;
    }

    function setBuenoWallet(address _buenoWallet)
        public
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        buenoWallet = _buenoWallet;
    }

    function isPaidExport(string memory tokenSetId) public view returns (bool) {
        return paidExports[tokenSetId];
    }

    function verify(bytes32 hash, bytes memory signature)
        internal
        view
        returns (bool)
    {
        require(signer != address(0), "INVALID_SIGNER_ADDRESS");
        bytes32 signedHash = hash.toEthSignedMessageHash();
        return signedHash.recover(signature) == signer;
    }

    function setPrice(uint256 newPrice) public onlyRole(DEFAULT_ADMIN_ROLE) {
        require(newPrice > 0, "INVALID_PRICE");
        exportPrice = newPrice;
    }

    function isOnVipList(address user) public view returns (bool) {
        return hasRole(VIP_ROLE, user);
    }

    function addVip(address user) public onlyRole(DEFAULT_ADMIN_ROLE) {
        grantRole(VIP_ROLE, user);
    }

    function removeVip(address user) public onlyRole(DEFAULT_ADMIN_ROLE) {
        revokeRole(VIP_ROLE, user);
    }

    function withdraw() public onlyRole(DEFAULT_ADMIN_ROLE) {
        require(buenoWallet != address(0), "INVALID_PAYOUT_WALLET");
        payable(buenoWallet).transfer((address(this).balance));
    }
}

File 2 of 8 : AccessControl.sol
// SPDX-License-Identifier: MIT

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, _msgSender());
        _;
    }

    /**
     * @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 override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @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 {
        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 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.
     */
    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.
     */
    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 granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    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.
     *
     * [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}.
     * ====
     */
    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);
    }

    function _grantRole(bytes32 role, address account) private {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 3 of 8 : ECDSA.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s;
        uint8 v;
        assembly {
            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
            v := add(shr(255, vs), 27)
        }
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 4 of 8 : IAccessControl.sol
// SPDX-License-Identifier: MIT

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

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

pragma solidity ^0.8.0;

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

    /**
     * @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);
    }
}

File 7 of 8 : ERC165.sol
// SPDX-License-Identifier: MIT

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

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": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"purchaser","type":"address"},{"indexed":false,"internalType":"string","name":"tokenSetId","type":"string"}],"name":"PurchaseComplete","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":"VIP_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"addVip","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"tokenSetId","type":"string"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"export","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"exportPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"user","type":"address"}],"name":"isOnVipList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"tokenSetId","type":"string"}],"name":"isPaidExport","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"paidExports","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"removeVip","outputs":[],"stateMutability":"nonpayable","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":"address","name":"_buenoWallet","type":"address"}],"name":"setBuenoWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setSigner","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":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052655af3107a4000600155600380546001600160a01b031990811690915560048054909116905534801561003657600080fd5b50610042600033610047565b6100f3565b6100518282610055565b5050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16610051576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556100af3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b611410806101026000396000f3fe6080604052600436106101145760003560e01c806350b073a6116100a057806391b7f5ed1161006457806391b7f5ed1461031357806391d1485414610333578063a217fddf14610353578063d547741f14610368578063f0f06cb41461038857600080fd5b806350b073a6146102805780636c19e783146102a0578063823c6daf146102c057806385938a23146102d35780638edd2d95146102f357600080fd5b80632f2ff15d116100e75780632f2ff15d146101d057806336568abe146101f05780633ccfd60b1461021057806341b3f938146102255780634e5048eb1461026057600080fd5b806301ffc9a7146101195780630ad375961461014e578063248a9ca31461017e5780632df0d528146101ae575b600080fd5b34801561012557600080fd5b506101396101343660046110c9565b61039e565b60405190151581526020015b60405180910390f35b34801561015a57600080fd5b506101706000805160206113bb83398151915281565b604051908152602001610145565b34801561018a57600080fd5b50610170610199366004611084565b60009081526020819052604090206001015490565b3480156101ba57600080fd5b506101ce6101c9366004611069565b6103d5565b005b3480156101dc57600080fd5b506101ce6101eb36600461109d565b6103fd565b3480156101fc57600080fd5b506101ce61020b36600461109d565b610428565b34801561021c57600080fd5b506101ce6104a7565b34801561023157600080fd5b506101396102403660046110f3565b805160208183018101805160028252928201919093012091525460ff1681565b34801561026c57600080fd5b5061013961027b3660046110f3565b61053c565b34801561028c57600080fd5b5061013961029b366004611069565b610567565b3480156102ac57600080fd5b506101ce6102bb366004611069565b610581565b6101ce6102ce366004611130565b6105b0565b3480156102df57600080fd5b506101ce6102ee366004611069565b61078d565b3480156102ff57600080fd5b506101ce61030e366004611069565b6107bc565b34801561031f57600080fd5b506101ce61032e366004611084565b6107e0565b34801561033f57600080fd5b5061013961034e36600461109d565b610832565b34801561035f57600080fd5b50610170600081565b34801561037457600080fd5b506101ce61038336600461109d565b61085b565b34801561039457600080fd5b5061017060015481565b60006001600160e01b03198216637965db0b60e01b14806103cf57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60006103e18133610881565b6103f96000805160206113bb8339815191528361085b565b5050565b6000828152602081905260409020600101546104198133610881565b61042383836108e5565b505050565b6001600160a01b038116331461049d5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6103f98282610969565b60006104b38133610881565b6004546001600160a01b03166105035760405162461bcd60e51b81526020600482015260156024820152741253959053125117d4105653d55517d5d053131155605a1b6044820152606401610494565b6004546040516001600160a01b03909116904780156108fc02916000818181858888f193505050501580156103f9573d6000803e3d6000fd5b600060028260405161054e919061121c565b9081526040519081900360200190205460ff1692915050565b60006103cf6000805160206113bb83398151915283610832565b600061058d8133610881565b50600380546001600160a01b0319166001600160a01b0392909216919091179055565b600082116105f35760405162461bcd60e51b815260206004820152601060248201526f494e56414c49445f5155414e5449545960801b6044820152606401610494565b60015461060090836112fc565b34146106455760405162461bcd60e51b8152602060048201526014602482015273125394d551919250d251539517d410565351539560621b6044820152606401610494565b600283604051610655919061121c565b9081526040519081900360200190205460ff16156106a45760405162461bcd60e51b815260206004820152600c60248201526b1053149150511657d410525160a21b6044820152606401610494565b60003384846040516020016106bb939291906111dd565b6040516020818303038152906040528051906020012090506106dd81836109ce565b61071d5760405162461bcd60e51b8152602060048201526011602482015270494e56414c49445f5349474e415455524560781b6044820152606401610494565b600160028560405161072f919061121c565b908152604051908190036020018120805492151560ff19909316929092179091557f1c7011ebf5717564d7ac4d6f44256121154518b08c79a1008ac6004b88cb84369061077f90339087906112ad565b60405180910390a150505050565b60006107998133610881565b50600480546001600160a01b0319166001600160a01b0392909216919091179055565b60006107c88133610881565b6103f96000805160206113bb833981519152836103fd565b60006107ec8133610881565b6000821161082c5760405162461bcd60e51b815260206004820152600d60248201526c494e56414c49445f505249434560981b6044820152606401610494565b50600155565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b6000828152602081905260409020600101546108778133610881565b6104238383610969565b61088b8282610832565b6103f9576108a3816001600160a01b03166014610aa6565b6108ae836020610aa6565b6040516020016108bf929190611238565b60408051601f198184030181529082905262461bcd60e51b8252610494916004016112d1565b6108ef8282610832565b6103f9576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556109253390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6109738282610832565b156103f9576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6003546000906001600160a01b0316610a225760405162461bcd60e51b8152602060048201526016602482015275494e56414c49445f5349474e45525f4144445245535360501b6044820152606401610494565b6000610a7b846040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b6003549091506001600160a01b0316610a948285610c49565b6001600160a01b031614949350505050565b60606000610ab58360026112fc565b610ac09060026112e4565b67ffffffffffffffff811115610ad857610ad86113a4565b6040519080825280601f01601f191660200182016040528015610b02576020820181803683370190505b509050600360fc1b81600081518110610b1d57610b1d61138e565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110610b4c57610b4c61138e565b60200101906001600160f81b031916908160001a9053506000610b708460026112fc565b610b7b9060016112e4565b90505b6001811115610bf3576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110610baf57610baf61138e565b1a60f81b828281518110610bc557610bc561138e565b60200101906001600160f81b031916908160001a90535060049490941c93610bec8161134b565b9050610b7e565b508315610c425760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610494565b9392505050565b6000806000610c588585610c6d565b91509150610c6581610cdd565b509392505050565b600080825160411415610ca45760208301516040840151606085015160001a610c9887828585610e9b565b94509450505050610cd6565b825160401415610cce5760208301516040840151610cc3868383610f88565b935093505050610cd6565b506000905060025b9250929050565b6000816004811115610cf157610cf1611378565b1415610cfa5750565b6001816004811115610d0e57610d0e611378565b1415610d5c5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610494565b6002816004811115610d7057610d70611378565b1415610dbe5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610494565b6003816004811115610dd257610dd2611378565b1415610e2b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610494565b6004816004811115610e3f57610e3f611378565b1415610e985760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610494565b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115610ed25750600090506003610f7f565b8460ff16601b14158015610eea57508460ff16601c14155b15610efb5750600090506004610f7f565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015610f4f573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610f7857600060019250925050610f7f565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01610fa987828885610e9b565b935093505050935093915050565b600067ffffffffffffffff80841115610fd257610fd26113a4565b604051601f8501601f19908116603f01168101908282118183101715610ffa57610ffa6113a4565b8160405280935085815286868601111561101357600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461104457600080fd5b919050565b600082601f83011261105a57600080fd5b610c4283833560208501610fb7565b60006020828403121561107b57600080fd5b610c428261102d565b60006020828403121561109657600080fd5b5035919050565b600080604083850312156110b057600080fd5b823591506110c06020840161102d565b90509250929050565b6000602082840312156110db57600080fd5b81356001600160e01b031981168114610c4257600080fd5b60006020828403121561110557600080fd5b813567ffffffffffffffff81111561111c57600080fd5b61112884828501611049565b949350505050565b60008060006060848603121561114557600080fd5b833567ffffffffffffffff8082111561115d57600080fd5b61116987838801611049565b945060208601359350604086013591508082111561118657600080fd5b508401601f8101861361119857600080fd5b6111a786823560208401610fb7565b9150509250925092565b600081518084526111c981602086016020860161131b565b601f01601f19169290920160200192915050565b6bffffffffffffffffffffffff198460601b1681526000835161120781601485016020880161131b565b60149201918201929092526034019392505050565b6000825161122e81846020870161131b565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161127081601785016020880161131b565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516112a181602884016020880161131b565b01602801949350505050565b6001600160a01b0383168152604060208201819052600090611128908301846111b1565b602081526000610c4260208301846111b1565b600082198211156112f7576112f7611362565b500190565b600081600019048311821515161561131657611316611362565b500290565b60005b8381101561133657818101518382015260200161131e565b83811115611345576000848401525b50505050565b60008161135a5761135a611362565b506000190190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fdfebb4952aaa9009236bc11c5dd99543e5390a358daf87edaf4b6e871b5bc445d66a2646970667358221220b1f5237379c759f2b65faa2890760198614c5641877e9a48e734d726fd8439cd64736f6c63430008070033

Deployed Bytecode

0x6080604052600436106101145760003560e01c806350b073a6116100a057806391b7f5ed1161006457806391b7f5ed1461031357806391d1485414610333578063a217fddf14610353578063d547741f14610368578063f0f06cb41461038857600080fd5b806350b073a6146102805780636c19e783146102a0578063823c6daf146102c057806385938a23146102d35780638edd2d95146102f357600080fd5b80632f2ff15d116100e75780632f2ff15d146101d057806336568abe146101f05780633ccfd60b1461021057806341b3f938146102255780634e5048eb1461026057600080fd5b806301ffc9a7146101195780630ad375961461014e578063248a9ca31461017e5780632df0d528146101ae575b600080fd5b34801561012557600080fd5b506101396101343660046110c9565b61039e565b60405190151581526020015b60405180910390f35b34801561015a57600080fd5b506101706000805160206113bb83398151915281565b604051908152602001610145565b34801561018a57600080fd5b50610170610199366004611084565b60009081526020819052604090206001015490565b3480156101ba57600080fd5b506101ce6101c9366004611069565b6103d5565b005b3480156101dc57600080fd5b506101ce6101eb36600461109d565b6103fd565b3480156101fc57600080fd5b506101ce61020b36600461109d565b610428565b34801561021c57600080fd5b506101ce6104a7565b34801561023157600080fd5b506101396102403660046110f3565b805160208183018101805160028252928201919093012091525460ff1681565b34801561026c57600080fd5b5061013961027b3660046110f3565b61053c565b34801561028c57600080fd5b5061013961029b366004611069565b610567565b3480156102ac57600080fd5b506101ce6102bb366004611069565b610581565b6101ce6102ce366004611130565b6105b0565b3480156102df57600080fd5b506101ce6102ee366004611069565b61078d565b3480156102ff57600080fd5b506101ce61030e366004611069565b6107bc565b34801561031f57600080fd5b506101ce61032e366004611084565b6107e0565b34801561033f57600080fd5b5061013961034e36600461109d565b610832565b34801561035f57600080fd5b50610170600081565b34801561037457600080fd5b506101ce61038336600461109d565b61085b565b34801561039457600080fd5b5061017060015481565b60006001600160e01b03198216637965db0b60e01b14806103cf57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60006103e18133610881565b6103f96000805160206113bb8339815191528361085b565b5050565b6000828152602081905260409020600101546104198133610881565b61042383836108e5565b505050565b6001600160a01b038116331461049d5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6103f98282610969565b60006104b38133610881565b6004546001600160a01b03166105035760405162461bcd60e51b81526020600482015260156024820152741253959053125117d4105653d55517d5d053131155605a1b6044820152606401610494565b6004546040516001600160a01b03909116904780156108fc02916000818181858888f193505050501580156103f9573d6000803e3d6000fd5b600060028260405161054e919061121c565b9081526040519081900360200190205460ff1692915050565b60006103cf6000805160206113bb83398151915283610832565b600061058d8133610881565b50600380546001600160a01b0319166001600160a01b0392909216919091179055565b600082116105f35760405162461bcd60e51b815260206004820152601060248201526f494e56414c49445f5155414e5449545960801b6044820152606401610494565b60015461060090836112fc565b34146106455760405162461bcd60e51b8152602060048201526014602482015273125394d551919250d251539517d410565351539560621b6044820152606401610494565b600283604051610655919061121c565b9081526040519081900360200190205460ff16156106a45760405162461bcd60e51b815260206004820152600c60248201526b1053149150511657d410525160a21b6044820152606401610494565b60003384846040516020016106bb939291906111dd565b6040516020818303038152906040528051906020012090506106dd81836109ce565b61071d5760405162461bcd60e51b8152602060048201526011602482015270494e56414c49445f5349474e415455524560781b6044820152606401610494565b600160028560405161072f919061121c565b908152604051908190036020018120805492151560ff19909316929092179091557f1c7011ebf5717564d7ac4d6f44256121154518b08c79a1008ac6004b88cb84369061077f90339087906112ad565b60405180910390a150505050565b60006107998133610881565b50600480546001600160a01b0319166001600160a01b0392909216919091179055565b60006107c88133610881565b6103f96000805160206113bb833981519152836103fd565b60006107ec8133610881565b6000821161082c5760405162461bcd60e51b815260206004820152600d60248201526c494e56414c49445f505249434560981b6044820152606401610494565b50600155565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b6000828152602081905260409020600101546108778133610881565b6104238383610969565b61088b8282610832565b6103f9576108a3816001600160a01b03166014610aa6565b6108ae836020610aa6565b6040516020016108bf929190611238565b60408051601f198184030181529082905262461bcd60e51b8252610494916004016112d1565b6108ef8282610832565b6103f9576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556109253390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6109738282610832565b156103f9576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6003546000906001600160a01b0316610a225760405162461bcd60e51b8152602060048201526016602482015275494e56414c49445f5349474e45525f4144445245535360501b6044820152606401610494565b6000610a7b846040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b6003549091506001600160a01b0316610a948285610c49565b6001600160a01b031614949350505050565b60606000610ab58360026112fc565b610ac09060026112e4565b67ffffffffffffffff811115610ad857610ad86113a4565b6040519080825280601f01601f191660200182016040528015610b02576020820181803683370190505b509050600360fc1b81600081518110610b1d57610b1d61138e565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110610b4c57610b4c61138e565b60200101906001600160f81b031916908160001a9053506000610b708460026112fc565b610b7b9060016112e4565b90505b6001811115610bf3576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110610baf57610baf61138e565b1a60f81b828281518110610bc557610bc561138e565b60200101906001600160f81b031916908160001a90535060049490941c93610bec8161134b565b9050610b7e565b508315610c425760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610494565b9392505050565b6000806000610c588585610c6d565b91509150610c6581610cdd565b509392505050565b600080825160411415610ca45760208301516040840151606085015160001a610c9887828585610e9b565b94509450505050610cd6565b825160401415610cce5760208301516040840151610cc3868383610f88565b935093505050610cd6565b506000905060025b9250929050565b6000816004811115610cf157610cf1611378565b1415610cfa5750565b6001816004811115610d0e57610d0e611378565b1415610d5c5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610494565b6002816004811115610d7057610d70611378565b1415610dbe5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610494565b6003816004811115610dd257610dd2611378565b1415610e2b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610494565b6004816004811115610e3f57610e3f611378565b1415610e985760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610494565b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115610ed25750600090506003610f7f565b8460ff16601b14158015610eea57508460ff16601c14155b15610efb5750600090506004610f7f565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015610f4f573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610f7857600060019250925050610f7f565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01610fa987828885610e9b565b935093505050935093915050565b600067ffffffffffffffff80841115610fd257610fd26113a4565b604051601f8501601f19908116603f01168101908282118183101715610ffa57610ffa6113a4565b8160405280935085815286868601111561101357600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461104457600080fd5b919050565b600082601f83011261105a57600080fd5b610c4283833560208501610fb7565b60006020828403121561107b57600080fd5b610c428261102d565b60006020828403121561109657600080fd5b5035919050565b600080604083850312156110b057600080fd5b823591506110c06020840161102d565b90509250929050565b6000602082840312156110db57600080fd5b81356001600160e01b031981168114610c4257600080fd5b60006020828403121561110557600080fd5b813567ffffffffffffffff81111561111c57600080fd5b61112884828501611049565b949350505050565b60008060006060848603121561114557600080fd5b833567ffffffffffffffff8082111561115d57600080fd5b61116987838801611049565b945060208601359350604086013591508082111561118657600080fd5b508401601f8101861361119857600080fd5b6111a786823560208401610fb7565b9150509250925092565b600081518084526111c981602086016020860161131b565b601f01601f19169290920160200192915050565b6bffffffffffffffffffffffff198460601b1681526000835161120781601485016020880161131b565b60149201918201929092526034019392505050565b6000825161122e81846020870161131b565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161127081601785016020880161131b565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516112a181602884016020880161131b565b01602801949350505050565b6001600160a01b0383168152604060208201819052600090611128908301846111b1565b602081526000610c4260208301846111b1565b600082198211156112f7576112f7611362565b500190565b600081600019048311821515161561131657611316611362565b500290565b60005b8381101561133657818101518382015260200161131e565b83811115611345576000848401525b50505050565b60008161135a5761135a611362565b506000190190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fdfebb4952aaa9009236bc11c5dd99543e5390a358daf87edaf4b6e871b5bc445d66a2646970667358221220b1f5237379c759f2b65faa2890760198614c5641877e9a48e734d726fd8439cd64736f6c63430008070033

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.