ETH Price: $3,447.25 (-0.96%)
Gas: 8 Gwei

Contract

0xaB5f6e8898D89c2d360615ED43a20BD914542472
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw All193977742024-03-09 13:15:23130 days ago1709990123IN
0xaB5f6e88...914542472
0 ETH0.0016434150.59319858
Set Approval For...183919812023-10-20 13:58:35271 days ago1697810315IN
0xaB5f6e88...914542472
0 ETH0.0008879819.23669472
Transfer From174294392023-06-07 15:39:59406 days ago1686152399IN
0xaB5f6e88...914542472
0 ETH0.0020112629.00168731
Transfer From168446082023-03-17 2:36:35489 days ago1679020595IN
0xaB5f6e88...914542472
0 ETH0.0021718431.31718838
Transfer From167711762023-03-06 18:45:23499 days ago1678128323IN
0xaB5f6e88...914542472
0 ETH0.0028864644.71678454
Transfer From160515822022-11-26 3:49:59600 days ago1669434599IN
0xaB5f6e88...914542472
0 ETH0.0007124110.29378635
Transfer From158307702022-10-26 7:31:59631 days ago1666769519IN
0xaB5f6e88...914542472
0 ETH0.0010484615.08799285
Public Mint157629012022-10-16 19:55:47640 days ago1665950147IN
0xaB5f6e88...914542472
0.44 ETH0.0012747613.6190401
Transfer From157387692022-10-13 11:02:47644 days ago1665658967IN
0xaB5f6e88...914542472
0 ETH0.0006894814.53075085
Mint With Token156757492022-10-04 15:45:59652 days ago1664898359IN
0xaB5f6e88...914542472
0 ETH0.0017254114.19254391
Set Approval For...156454282022-09-30 10:03:11657 days ago1664532191IN
0xaB5f6e88...914542472
0 ETH0.000426189.24951587
Safe Transfer Fr...156419392022-09-29 22:21:11657 days ago1664490071IN
0xaB5f6e88...914542472
0 ETH0.000671679.31220793
Set Approval For...156419202022-09-29 22:17:23657 days ago1664489843IN
0xaB5f6e88...914542472
0 ETH0.000452519.82073499
Set Approval For...156418862022-09-29 22:10:11657 days ago1664489411IN
0xaB5f6e88...914542472
0 ETH0.0004856210.52028231
Mint With Token155791612022-09-21 3:29:23666 days ago1663730963IN
0xaB5f6e88...914542472
0 ETH0.000719155.91640603
Mint With Token155707392022-09-19 23:11:23667 days ago1663629083IN
0xaB5f6e88...914542472
0 ETH0.0013408711.03161943
Transfer From155264282022-09-13 10:32:26674 days ago1663065146IN
0xaB5f6e88...914542472
0 ETH0.000344576.59474865
Transfer From155264072022-09-13 10:27:49674 days ago1663064869IN
0xaB5f6e88...914542472
0 ETH0.00039527.56380006
Mint With Token155222682022-09-12 18:03:10674 days ago1663005790IN
0xaB5f6e88...914542472
0 ETH0.0028886723.76256936
Mint With Token154121562022-08-26 0:09:12692 days ago1661472552IN
0xaB5f6e88...914542472
0 ETH0.0018190814.96155464
Transfer From153902632022-08-22 12:35:07695 days ago1661171707IN
0xaB5f6e88...914542472
0 ETH0.000515647.43538636
Mint With Token153644482022-08-18 10:21:51700 days ago1660818111IN
0xaB5f6e88...914542472
0 ETH0.000664075.46189057
Mint With Token153232262022-08-11 22:07:47706 days ago1660255667IN
0xaB5f6e88...914542472
0 ETH0.0031830626.18689317
Mint With Token153212772022-08-11 14:40:36706 days ago1660228836IN
0xaB5f6e88...914542472
0 ETH0.0032954927.10912997
Mint With Token153212302022-08-11 14:29:44706 days ago1660228184IN
0xaB5f6e88...914542472
0 ETH0.0027181425.75221909
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To
193977742024-03-09 13:15:23130 days ago1709990123
0xaB5f6e88...914542472
2.08 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ChampionsReserve

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion, MIT license
File 1 of 16 : ChampionsReserve.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;

import "./ERC721A.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

/// @custom:security-contact [email protected]
contract ChampionsReserve is ERC721A, ReentrancyGuard, Pausable, AccessControl {
    using ECDSA for bytes32;
    using Address for address;

    bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");
    bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
    string private _buri = "https://meta.ftu.re/champions-reserve/";

    enum State {
        FiatSale,
        PublicSale,
        Finished
    }

    enum Tiers {
        Nemesis,
        Phenom,
        Reaper,
        Ghost,
        Akuma
    }

    mapping(Tiers => uint16) public MAX_SUPPLY;
    mapping(Tiers => uint16) public MINT_COUNT;
    uint16 public constant MAX_TOKEN = 8888;

    State public _state = State.FiatSale;

    uint256 public _mintFee;
    address private _signer;
    mapping(bytes => bool) public usedToken;

    event PublicMinted(address minter, uint256 tokenId, Tiers tier);
    event BalanceWithdrawn(address recipient, uint256 value);

    constructor(address signer, uint256 mintFee)
        ERC721A("Champions Reserve", "CR2022", 20, 20)
    {
        _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _grantRole(PAUSER_ROLE, msg.sender);
        _grantRole(MINTER_ROLE, msg.sender);
        MAX_SUPPLY[Tiers.Nemesis] = 7631;
        MAX_SUPPLY[Tiers.Phenom] = 1099;
        MAX_SUPPLY[Tiers.Reaper] = 99;
        MAX_SUPPLY[Tiers.Ghost] = 49;
        MAX_SUPPLY[Tiers.Akuma] = 10;
        _signer = signer;
        _mintFee = mintFee;
    }

    function _baseURI() internal view override returns (string memory) {
        return _buri;
    }

    function setBaseURI(string memory buri)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        _buri = buri;
    }

    function setMintFee(uint256 mintFee)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
         _mintFee = mintFee;
    }

    function _hash(
        Tiers tier,
        string calldata salt,
        address _address
    ) public view returns (bytes32) {
        return keccak256(abi.encode(tier, salt, address(this), _address));
    }

    function _verify(bytes32 hash, bytes memory token)
        public
        view
        returns (bool)
    {
        return (_recover(hash, token) == _signer);
    }

    function _recover(bytes32 hash, bytes memory token)
        public
        pure
        returns (address)
    {
        return hash.toEthSignedMessageHash().recover(token);
    }

    function pause() public onlyRole(PAUSER_ROLE) {
        _pause();
    }

    function unpause() public onlyRole(PAUSER_ROLE) {
        _unpause();
    }

    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal override whenNotPaused {
        super._beforeTokenTransfers(from, to, startTokenId, quantity);
    }

    // The following functions are overrides required by Solidity.

    function supportsInterface(bytes4 interfaceId)
        public
        view
        override(ERC721A, AccessControl)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }

    function publicMint(Tiers tier, uint256 amount)
        external
        payable
        nonReentrant
    {
        require(_state == State.PublicSale, "Public sale is not active.");
        require(amount > 0, "Amount must be greater than 0.");
        require(!Address.isContract(msg.sender), "Contracts are not allowed");
        require(totalSupply() + amount < MAX_TOKEN, "exceeding max supply.");
        uint256 fee = amount * _mintFee;
        if (tier == Tiers.Nemesis) {
            require(
                MINT_COUNT[Tiers.Nemesis] + amount <= MAX_SUPPLY[Tiers.Nemesis],
                "exceeding max nemesis."
            );
        } else if (tier == Tiers.Phenom) {
            require(
                MINT_COUNT[Tiers.Phenom] + amount <= MAX_SUPPLY[Tiers.Phenom],
                "exceeding max phenom."
            );
            fee = fee * 2;
        } else {
            revert("invalid tier");
        }
        require(msg.value >= fee, "Ether value sent is incorrect.");
        MINT_COUNT[tier] += 1;
        emit PublicMinted(msg.sender, amount, tier);
        _safeMint(msg.sender, amount);
    }

    function airdrop(
        address[] calldata recipient,
        bytes[] calldata tokens,
        Tiers tier
    ) external nonReentrant onlyRole(MINTER_ROLE) {
        require(_state != State.Finished, "already finished.");
        require(!Address.isContract(msg.sender), "Contracts are not allowed");
        require(
            totalSupply() + recipient.length <= MAX_TOKEN,
            "exceeding max supply."
        );

        require(
            MINT_COUNT[tier] + recipient.length <= MAX_SUPPLY[tier],
            "exceeding max supply."
        );
        uint16 _valid = 0;
        for (uint256 index = 0; index < recipient.length; index++) {
            if (!usedToken[tokens[index]]) {
                usedToken[tokens[index]] = true;
                _valid += 1;
                _safeMint(recipient[index], 1);
            }
        }
        MINT_COUNT[tier] = MINT_COUNT[tier] + _valid;
    }

    function mintWithToken(
        Tiers tier,
        string calldata salt,
        bytes calldata token
    ) external nonReentrant {
        require(_state != State.Finished, "Sale is finished.");
        require(!Address.isContract(msg.sender), "Contracts are not allowed");
        require(totalSupply() + 1 < MAX_TOKEN, "exceeding max supply.");
        require(!usedToken[token], "The token has been used.");
        require(
            _verify(_hash(tier, salt, msg.sender), token),
            "Invalid token."
        );

        require(
            MINT_COUNT[tier] + 1 <= MAX_SUPPLY[tier],
            "exceeding max supply."
        );

        usedToken[token] = true;
        MINT_COUNT[tier]++;

        _safeMint(msg.sender, 1);
    }

    function withdrawAll(address payable recipient)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        uint256 balance = address(this).balance;
        (bool sent, bytes memory data) = recipient.call{value: balance}("");
        require(sent, "Failed to send Ether");
        emit BalanceWithdrawn(recipient, balance);
    }

    function setState(State state) external onlyRole(DEFAULT_ADMIN_ROLE) {
        _state = state;
    }
}

File 2 of 16 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.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.
     */
    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 revoked `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}.
     * ====
     *
     * 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.
     */
    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.
     */
    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 16 : 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 4 of 16 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 5 of 16 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 6 of 16 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);
}

File 7 of 16 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 8 of 16 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 9 of 16 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 10 of 16 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 11 of 16 : 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 12 of 16 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

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 13 of 16 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @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 = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 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 Message, created from `s`. 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(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @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 14 of 16 : 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 15 of 16 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 16 of 16 : ERC721A.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
 *
 * Assumes the number of issuable tokens (collection size) is capped and fits in a uint128.
 *
 * Does not support burning tokens to address(0).
 */
contract ERC721A is
    Context,
    ERC165,
    IERC721,
    IERC721Metadata,
    IERC721Enumerable
{
    using Address for address;
    using Strings for uint256;

    struct TokenOwnership {
        address addr;
        uint64 startTimestamp;
    }

    struct AddressData {
        uint128 balance;
        uint128 numberMinted;
    }

    uint256 private currentIndex = 0;

    uint256 internal immutable collectionSize;
    uint256 internal immutable maxBatchSize;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details.
    mapping(uint256 => TokenOwnership) private _ownerships;

    // Mapping owner address to address data
    mapping(address => AddressData) private _addressData;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    /**
     * @dev
     * `maxBatchSize` refers to how much a minter can mint at a time.
     * `collectionSize_` refers to how many tokens are in the collection.
     */
    constructor(
        string memory name_,
        string memory symbol_,
        uint256 maxBatchSize_,
        uint256 collectionSize_
    ) {
        require(
            collectionSize_ > 0,
            "ERC721A: collection must have a nonzero supply"
        );
        require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero");
        _name = name_;
        _symbol = symbol_;
        maxBatchSize = maxBatchSize_;
        collectionSize = collectionSize_;
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view override returns (uint256) {
        return currentIndex;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index)
        public
        view
        override
        returns (uint256)
    {
        require(index < totalSupply(), "ERC721A: global index out of bounds");
        return index;
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     * This read function is O(collectionSize). If calling from a separate contract, be sure to test gas first.
     * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index)
        public
        view
        override
        returns (uint256)
    {
        require(index < balanceOf(owner), "ERC721A: owner index out of bounds");
        uint256 numMintedSoFar = totalSupply();
        uint256 tokenIdsIdx = 0;
        address currOwnershipAddr = address(0);
        for (uint256 i = 0; i < numMintedSoFar; i++) {
            TokenOwnership memory ownership = _ownerships[i];
            if (ownership.addr != address(0)) {
                currOwnershipAddr = ownership.addr;
            }
            if (currOwnershipAddr == owner) {
                if (tokenIdsIdx == index) {
                    return i;
                }
                tokenIdsIdx++;
            }
        }
        revert("ERC721A: unable to get token of owner by index");
    }

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view override returns (uint256) {
        require(
            owner != address(0),
            "ERC721A: balance query for the zero address"
        );
        return uint256(_addressData[owner].balance);
    }

    function _numberMinted(address owner) internal view returns (uint256) {
        require(
            owner != address(0),
            "ERC721A: number minted query for the zero address"
        );
        return uint256(_addressData[owner].numberMinted);
    }

    function ownershipOf(uint256 tokenId)
        internal
        view
        returns (TokenOwnership memory)
    {
        require(_exists(tokenId), "ERC721A: owner query for nonexistent token");

        uint256 lowestTokenToCheck;
        if (tokenId >= maxBatchSize) {
            lowestTokenToCheck = tokenId - maxBatchSize + 1;
        }

        for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) {
            TokenOwnership memory ownership = _ownerships[curr];
            if (ownership.addr != address(0)) {
                return ownership;
            }
        }

        revert("ERC721A: unable to determine the owner of token");
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return ownershipOf(tokenId).addr;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        require(
            _exists(tokenId),
            "ERC721Metadata: URI query for nonexistent token"
        );

        string memory baseURI = _baseURI();
        return
            bytes(baseURI).length > 0
                ? string(abi.encodePacked(baseURI, tokenId.toString()))
                : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public override {
        address owner = ERC721A.ownerOf(tokenId);
        require(to != owner, "ERC721A: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721A: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId, owner);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId)
        public
        view
        override
        returns (address)
    {
        require(
            _exists(tokenId),
            "ERC721A: approved query for nonexistent token"
        );

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved)
        public
        override
    {
        require(operator != _msgSender(), "ERC721A: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator)
        public
        view
        virtual
        override
        returns (bool)
    {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public override {
        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public override {
        _transfer(from, to, tokenId);
        require(
            _checkOnERC721Received(from, to, tokenId, _data),
            "ERC721A: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return tokenId < currentIndex;
    }

    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, quantity, "");
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - there must be `quantity` tokens remaining unminted in the total collection.
     * - `to` cannot be the zero address.
     * - `quantity` cannot be larger than the max batch size.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        uint256 startTokenId = currentIndex;
        require(to != address(0), "ERC721A: mint to the zero address");
        // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering.
        require(!_exists(startTokenId), "ERC721A: token already minted");
        require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high");

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        AddressData memory addressData = _addressData[to];
        _addressData[to] = AddressData(
            addressData.balance + uint128(quantity),
            addressData.numberMinted + uint128(quantity)
        );
        _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp));

        uint256 updatedIndex = startTokenId;

        for (uint256 i = 0; i < quantity; i++) {
            emit Transfer(address(0), to, updatedIndex);
            require(
                _checkOnERC721Received(address(0), to, updatedIndex, _data),
                "ERC721A: transfer to non ERC721Receiver implementer"
            );
            updatedIndex++;
        }

        currentIndex = updatedIndex;
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) private {
        TokenOwnership memory prevOwnership = ownershipOf(tokenId);

        bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr ||
            getApproved(tokenId) == _msgSender() ||
            isApprovedForAll(prevOwnership.addr, _msgSender()));

        require(
            isApprovedOrOwner,
            "ERC721A: transfer caller is not owner nor approved"
        );

        require(
            prevOwnership.addr == from,
            "ERC721A: transfer from incorrect owner"
        );
        require(to != address(0), "ERC721A: transfer to the zero address");

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId, prevOwnership.addr);

        _addressData[from].balance -= 1;
        _addressData[to].balance += 1;
        _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp));

        // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
        // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
        uint256 nextTokenId = tokenId + 1;
        if (_ownerships[nextTokenId].addr == address(0)) {
            if (_exists(nextTokenId)) {
                _ownerships[nextTokenId] = TokenOwnership(
                    prevOwnership.addr,
                    prevOwnership.startTimestamp
                );
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, tokenId, 1);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(
        address to,
        uint256 tokenId,
        address owner
    ) private {
        _tokenApprovals[tokenId] = to;
        emit Approval(owner, to, tokenId);
    }

    uint256 public nextOwnerToExplicitlySet = 0;

    /**
     * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf().
     */
    function _setOwnersExplicit(uint256 quantity) internal {
        uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet;
        require(quantity > 0, "quantity must be nonzero");
        uint256 endIndex = oldNextOwnerToSet + quantity - 1;
        if (endIndex > collectionSize - 1) {
            endIndex = collectionSize - 1;
        }
        // We know if the last one in the group exists, all in the group exist, due to serial ordering.
        require(_exists(endIndex), "not enough minted yet for this cleanup");
        for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) {
            if (_ownerships[i].addr == address(0)) {
                TokenOwnership memory ownership = ownershipOf(i);
                _ownerships[i] = TokenOwnership(
                    ownership.addr,
                    ownership.startTimestamp
                );
            }
        }
        nextOwnerToExplicitlySet = endIndex + 1;
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try
                IERC721Receiver(to).onERC721Received(
                    _msgSender(),
                    from,
                    tokenId,
                    _data
                )
            returns (bytes4 retval) {
                return retval == IERC721Receiver(to).onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert(
                        "ERC721A: transfer to non ERC721Receiver implementer"
                    );
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
     * minting.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"signer","type":"address"},{"internalType":"uint256","name":"mintFee","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"BalanceWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"enum ChampionsReserve.Tiers","name":"tier","type":"uint8"}],"name":"PublicMinted","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum ChampionsReserve.Tiers","name":"","type":"uint8"}],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOKEN","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum ChampionsReserve.Tiers","name":"","type":"uint8"}],"name":"MINT_COUNT","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAUSER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum ChampionsReserve.Tiers","name":"tier","type":"uint8"},{"internalType":"string","name":"salt","type":"string"},{"internalType":"address","name":"_address","type":"address"}],"name":"_hash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_mintFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"token","type":"bytes"}],"name":"_recover","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"_state","outputs":[{"internalType":"enum ChampionsReserve.State","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"token","type":"bytes"}],"name":"_verify","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"recipient","type":"address[]"},{"internalType":"bytes[]","name":"tokens","type":"bytes[]"},{"internalType":"enum ChampionsReserve.Tiers","name":"tier","type":"uint8"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum ChampionsReserve.Tiers","name":"tier","type":"uint8"},{"internalType":"string","name":"salt","type":"string"},{"internalType":"bytes","name":"token","type":"bytes"}],"name":"mintWithToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum ChampionsReserve.Tiers","name":"tier","type":"uint8"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","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":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"buri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintFee","type":"uint256"}],"name":"setMintFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum ChampionsReserve.State","name":"state","type":"uint8"}],"name":"setState","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":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"","type":"bytes"}],"name":"usedToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"recipient","type":"address"}],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6000808055600755610120604052602660c0818152906200466360e03980516200003291600b91602090910190620003ea565b50600e805460ff191690553480156200004a57600080fd5b5060405162004689380380620046898339810160408190526200006d9162000490565b604051806040016040528060118152602001704368616d70696f6e73205265736572766560781b8152506040518060400160405280600681526020016521a91918191960d11b81525060148060008111620001265760405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20636f6c6c656374696f6e206d757374206861766520612060448201526d6e6f6e7a65726f20737570706c7960901b60648201526084015b60405180910390fd5b60008211620001885760405162461bcd60e51b815260206004820152602760248201527f455243373231413a206d61782062617463682073697a65206d757374206265206044820152666e6f6e7a65726f60c81b60648201526084016200011d565b83516200019d906001906020870190620003ea565b508251620001b3906002906020860190620003ea565b5060a091909152608052505060016008556009805460ff19169055620001db60003362000345565b620002077f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a3362000345565b620002337f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a63362000345565b600c6020527f13649b2456f1b42fef0f0040b3aaeabcd21a76a0f3f5defd4f583839455116e88054611dcf61ffff19918216179091557fd421a5181c571bba3f01190c922c3b2a896fc1d84e86c9f17ac10e67ebef8b5c8054821661044b1790557f5d6016397a73f5e079297ac5a36fef17b4d9c3831618e63ab105738020ddd720805460639083161790557fc0da782485e77ae272268ae0a3ff44c1552ecb60b3743924de17a815e0a3cfd780548216603117905560046000527f5b84bb9e0f5aa9cc45a8bb66468db5d4816d1e75ff86b5e1f1dd8d144dab80978054600a9216919091179055601080546001600160a01b0319166001600160a01b039390931692909217909155600f5562000509565b6000828152600a602090815260408083206001600160a01b038516845290915290205460ff16620003e6576000828152600a602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620003a53390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b828054620003f890620004cc565b90600052602060002090601f0160209004810192826200041c576000855562000467565b82601f106200043757805160ff191683800117855562000467565b8280016001018555821562000467579182015b82811115620004675782518255916020019190600101906200044a565b506200047592915062000479565b5090565b5b808211156200047557600081556001016200047a565b60008060408385031215620004a457600080fd5b82516001600160a01b0381168114620004bc57600080fd5b6020939093015192949293505050565b600181811c90821680620004e157607f821691505b602082108114156200050357634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a0516141296200053a600039600081816127f8015281816128220152612dbc0152600050506141296000f3fe6080604052600436106102e75760003560e01c80638054d4bd11610184578063c87b56dd116100d6578063d7224ba01161008a578063eddd0d9c11610064578063eddd0d9c146108c5578063f2a08abb146108e5578063fa09e630146108fb57600080fd5b8063d7224ba014610832578063e63ab1e914610848578063e985e9c51461087c57600080fd5b8063cfa8ba4f116100bb578063cfa8ba4f146107be578063d5391393146107de578063d547741f1461081257600080fd5b8063c87b56dd14610763578063cd9f9b921461078357600080fd5b8063975de75611610138578063a22cb46511610112578063a22cb46514610703578063b88d4fde14610723578063c1fe126e1461074357600080fd5b8063975de75614610696578063a1cb31b7146106c7578063a217fddf146106ee57600080fd5b80638882585a116101695780638882585a1461061b57806391d148541461063b57806395d89b411461068157600080fd5b80638054d4bd146105e65780638456cb591461060657600080fd5b80632f745c591161023d57806355f804b3116101f15780636352211e116101cb5780636352211e146105905780636e1bd323146105b057806370a08231146105c657600080fd5b806355f804b31461053857806356de96db146105585780635c975abb1461057857600080fd5b80633f4ba83a116102225780633f4ba83a146104e357806342842e0e146104f85780634f6ccce71461051857600080fd5b80632f745c59146104a357806336568abe146104c357600080fd5b806318160ddd1161029f578063248a9ca311610279578063248a9ca314610433578063265d3e97146104635780632f2ff15d1461048357600080fd5b806318160ddd146103b057806319dd167a146103cf57806323b872dd1461041357600080fd5b8063081812fc116102d0578063081812fc14610343578063095ea7b31461037b57806311188cea1461039d57600080fd5b806301ffc9a7146102ec57806306fdde0314610321575b600080fd5b3480156102f857600080fd5b5061030c61030736600461371f565b61091b565b60405190151581526020015b60405180910390f35b34801561032d57600080fd5b5061033661092c565b6040516103189190613794565b34801561034f57600080fd5b5061036361035e3660046137a7565b6109be565b6040516001600160a01b039091168152602001610318565b34801561038757600080fd5b5061039b6103963660046137d5565b610a5e565b005b61039b6103ab366004613815565b610b91565b3480156103bc57600080fd5b506000545b604051908152602001610318565b3480156103db57600080fd5b506104006103ea366004613831565b600c6020526000908152604090205461ffff1681565b60405161ffff9091168152602001610318565b34801561041f57600080fd5b5061039b61042e36600461384c565b611054565b34801561043f57600080fd5b506103c161044e3660046137a7565b6000908152600a602052604090206001015490565b34801561046f57600080fd5b5061036361047e366004613939565b61105f565b34801561048f57600080fd5b5061039b61049e366004613980565b6110c9565b3480156104af57600080fd5b506103c16104be3660046137d5565b6110ee565b3480156104cf57600080fd5b5061039b6104de366004613980565b611286565b3480156104ef57600080fd5b5061039b611312565b34801561050457600080fd5b5061039b61051336600461384c565b611347565b34801561052457600080fd5b506103c16105333660046137a7565b611362565b34801561054457600080fd5b5061039b6105533660046139b0565b6113de565b34801561056457600080fd5b5061039b6105733660046139f9565b6113fc565b34801561058457600080fd5b5060095460ff1661030c565b34801561059c57600080fd5b506103636105ab3660046137a7565b61142f565b3480156105bc57600080fd5b506104006122b881565b3480156105d257600080fd5b506103c16105e1366004613a1a565b611441565b3480156105f257600080fd5b5061039b610601366004613a7c565b6114e4565b34801561061257600080fd5b5061039b6118e3565b34801561062757600080fd5b5061039b610636366004613b3f565b611915565b34801561064757600080fd5b5061030c610656366004613980565b6000918252600a602090815260408084206001600160a01b0393909316845291905290205460ff1690565b34801561068d57600080fd5b50610336611d06565b3480156106a257600080fd5b506104006106b1366004613831565b600d6020526000908152604090205461ffff1681565b3480156106d357600080fd5b50600e546106e19060ff1681565b6040516103189190613bd6565b3480156106fa57600080fd5b506103c1600081565b34801561070f57600080fd5b5061039b61071e366004613bf0565b611d15565b34801561072f57600080fd5b5061039b61073e366004613c23565b611dda565b34801561074f57600080fd5b506103c161075e366004613c8f565b611e69565b34801561076f57600080fd5b5061033661077e3660046137a7565b611ea5565b34801561078f57600080fd5b5061030c61079e366004613cf5565b805160208183018101805160118252928201919093012091525460ff1681565b3480156107ca57600080fd5b5061030c6107d9366004613939565b611f7f565b3480156107ea57600080fd5b506103c17f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b34801561081e57600080fd5b5061039b61082d366004613980565b611fa9565b34801561083e57600080fd5b506103c160075481565b34801561085457600080fd5b506103c17f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b34801561088857600080fd5b5061030c610897366004613d2a565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b3480156108d157600080fd5b5061039b6108e03660046137a7565b611fce565b3480156108f157600080fd5b506103c1600f5481565b34801561090757600080fd5b5061039b610916366004613a1a565b611fdf565b6000610926826120d9565b92915050565b60606001805461093b90613d58565b80601f016020809104026020016040519081016040528092919081815260200182805461096790613d58565b80156109b45780601f10610989576101008083540402835291602001916109b4565b820191906000526020600020905b81548152906001019060200180831161099757829003601f168201915b5050505050905090565b60006109cb826000541190565b610a425760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e0000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610a698261142f565b9050806001600160a01b0316836001600160a01b03161415610af35760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201527f65720000000000000000000000000000000000000000000000000000000000006064820152608401610a39565b336001600160a01b0382161480610b0f5750610b0f8133610897565b610b815760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610a39565b610b8c838383612117565b505050565b60026008541415610be45760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a39565b60026008556001600e5460ff166002811115610c0257610c02613bc0565b14610c4f5760405162461bcd60e51b815260206004820152601a60248201527f5075626c69632073616c65206973206e6f74206163746976652e0000000000006044820152606401610a39565b60008111610c9f5760405162461bcd60e51b815260206004820152601e60248201527f416d6f756e74206d7573742062652067726561746572207468616e20302e00006044820152606401610a39565b333b15610cee5760405162461bcd60e51b815260206004820152601960248201527f436f6e74726163747320617265206e6f7420616c6c6f776564000000000000006044820152606401610a39565b6122b881610cfb60005490565b610d059190613da9565b10610d4a5760405162461bcd60e51b815260206004820152601560248201527432bc31b2b2b234b7339036b0bc1039bab838363c9760591b6044820152606401610a39565b6000600f5482610d5a9190613dc1565b90506000836004811115610d7057610d70613bc0565b1415610e2957600080527f13649b2456f1b42fef0f0040b3aaeabcd21a76a0f3f5defd4f583839455116e854600d6020527f81955a0a11e65eac625c29e8882660bae4e165a75d72780094acae8ece9a29ee5461ffff91821691610dd691859116613da9565b1115610e245760405162461bcd60e51b815260206004820152601660248201527f657863656564696e67206d6178206e656d657369732e000000000000000000006044820152606401610a39565b610f4c565b6001836004811115610e3d57610e3d613bc0565b1415610f045760016000527fd421a5181c571bba3f01190c922c3b2a896fc1d84e86c9f17ac10e67ebef8b5c54600d6020527ffd54ff1ed53f34a900b24c5ba64f85761163b5d82d98a47b9bd80e45466993c55461ffff91821691610ea491859116613da9565b1115610ef25760405162461bcd60e51b815260206004820152601560248201527f657863656564696e67206d6178207068656e6f6d2e00000000000000000000006044820152606401610a39565b610efd816002613dc1565b9050610f4c565b60405162461bcd60e51b815260206004820152600c60248201527f696e76616c6964207469657200000000000000000000000000000000000000006044820152606401610a39565b80341015610f9c5760405162461bcd60e51b815260206004820152601e60248201527f45746865722076616c75652073656e7420697320696e636f72726563742e00006044820152606401610a39565b6001600d6000856004811115610fb457610fb4613bc0565b6004811115610fc557610fc5613bc0565b8152602081019190915260400160009081208054909190610feb90849061ffff16613de0565b92506101000a81548161ffff021916908361ffff1602179055507f5c970620e209f92821ec6fb6e2b1ef0c239518868d2a98295f0379dc6443248b33838560405161103893929190613e1a565b60405180910390a161104a338361218b565b5050600160085550565b610b8c8383836121a5565b60006110c2826110bc856040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b90612574565b9392505050565b6000828152600a60205260409020600101546110e481612598565b610b8c83836125a2565b60006110f983611441565b821061116d5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60448201527f64730000000000000000000000000000000000000000000000000000000000006064820152608401610a39565b600080549080805b83811015611217576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff1691830191909152156111c857805192505b876001600160a01b0316836001600160a01b0316141561120457868414156111f65750935061092692505050565b8361120081613e3e565b9450505b508061120f81613e3e565b915050611175565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201527f6f776e657220627920696e6465780000000000000000000000000000000000006064820152608401610a39565b6001600160a01b03811633146113045760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610a39565b61130e8282612644565b5050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a61133c81612598565b6113446126c7565b50565b610b8c83838360405180602001604052806000815250611dda565b6000805482106113da5760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560448201527f6e647300000000000000000000000000000000000000000000000000000000006064820152608401610a39565b5090565b60006113e981612598565b8151610b8c90600b906020850190613679565b600061140781612598565b600e805483919060ff1916600183600281111561142657611426613bc0565b02179055505050565b600061143a82612763565b5192915050565b60006001600160a01b0382166114bf5760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201527f65726f20616464726573730000000000000000000000000000000000000000006064820152608401610a39565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b600260085414156115375760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a39565b60026008557f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661156681612598565b6002600e5460ff16600281111561157f5761157f613bc0565b14156115cd5760405162461bcd60e51b815260206004820152601160248201527f616c72656164792066696e69736865642e0000000000000000000000000000006044820152606401610a39565b333b1561161c5760405162461bcd60e51b815260206004820152601960248201527f436f6e74726163747320617265206e6f7420616c6c6f776564000000000000006044820152606401610a39565b6122b88561162960005490565b6116339190613da9565b11156116795760405162461bcd60e51b815260206004820152601560248201527432bc31b2b2b234b7339036b0bc1039bab838363c9760591b6044820152606401610a39565b600c600083600481111561168f5761168f613bc0565b60048111156116a0576116a0613bc0565b8152602081019190915260400160009081205461ffff16908690600d908560048111156116cf576116cf613bc0565b60048111156116e0576116e0613bc0565b81526020810191909152604001600020546116ff919061ffff16613da9565b11156117455760405162461bcd60e51b815260206004820152601560248201527432bc31b2b2b234b7339036b0bc1039bab838363c9760591b6044820152606401610a39565b6000805b8681101561184257601186868381811061176557611765613e59565b90506020028101906117779190613e6f565b604051611785929190613eb6565b9081526040519081900360200190205460ff1661183057600160118787848181106117b2576117b2613e59565b90506020028101906117c49190613e6f565b6040516117d2929190613eb6565b908152604051908190036020019020805491151560ff199092169190911790556117fd600183613de0565b915061183088888381811061181457611814613e59565b90506020020160208101906118299190613a1a565b600161218b565b8061183a81613e3e565b915050611749565b5080600d600085600481111561185a5761185a613bc0565b600481111561186b5761186b613bc0565b815260208101919091526040016000205461188a919061ffff16613de0565b600d60008560048111156118a0576118a0613bc0565b60048111156118b1576118b1613bc0565b81526020810191909152604001600020805461ffff191661ffff92909216919091179055505060016008555050505050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a61190d81612598565b61134461292e565b600260085414156119685760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a39565b60026008819055600e5460ff16600281111561198657611986613bc0565b14156119d45760405162461bcd60e51b815260206004820152601160248201527f53616c652069732066696e69736865642e0000000000000000000000000000006044820152606401610a39565b333b15611a235760405162461bcd60e51b815260206004820152601960248201527f436f6e74726163747320617265206e6f7420616c6c6f776564000000000000006044820152606401610a39565b6122b8611a2f60005490565b611a3a906001613da9565b10611a7f5760405162461bcd60e51b815260206004820152601560248201527432bc31b2b2b234b7339036b0bc1039bab838363c9760591b6044820152606401610a39565b60118282604051611a91929190613eb6565b9081526040519081900360200190205460ff1615611af15760405162461bcd60e51b815260206004820152601860248201527f54686520746f6b656e20686173206265656e20757365642e00000000000000006044820152606401610a39565b611b3c611b0086868633611e69565b83838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611f7f92505050565b611b885760405162461bcd60e51b815260206004820152600e60248201527f496e76616c696420746f6b656e2e0000000000000000000000000000000000006044820152606401610a39565b600c6000866004811115611b9e57611b9e613bc0565b6004811115611baf57611baf613bc0565b8152602081019190915260400160009081205461ffff1690600d90876004811115611bdc57611bdc613bc0565b6004811115611bed57611bed613bc0565b8152602081019190915260400160002054611c0d9061ffff166001613de0565b61ffff161115611c575760405162461bcd60e51b815260206004820152601560248201527432bc31b2b2b234b7339036b0bc1039bab838363c9760591b6044820152606401610a39565b600160118383604051611c6b929190613eb6565b908152604051908190036020019020805491151560ff19909216919091179055600d6000866004811115611ca157611ca1613bc0565b6004811115611cb257611cb2613bc0565b815260208101919091526040016000908120805461ffff1691611cd483613ec6565b91906101000a81548161ffff021916908361ffff16021790555050611cfa33600161218b565b50506001600855505050565b60606002805461093b90613d58565b6001600160a01b038216331415611d6e5760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610a39565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611de58484846121a5565b611df1848484846129b6565b611e635760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610a39565b50505050565b60008484843085604051602001611e84959493929190613ee8565b6040516020818303038152906040528051906020012090505b949350505050565b6060611eb2826000541190565b611f245760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610a39565b6000611f2e612b07565b90506000815111611f4e57604051806020016040528060008152506110c2565b80611f5884612b16565b604051602001611f69929190613f3d565b6040516020818303038152906040529392505050565b6010546000906001600160a01b0316611f98848461105f565b6001600160a01b0316149392505050565b6000828152600a6020526040902060010154611fc481612598565b610b8c8383612644565b6000611fd981612598565b50600f55565b6000611fea81612598565b604051479060009081906001600160a01b0386169084908381818185875af1925050503d8060008114612039576040519150601f19603f3d011682016040523d82523d6000602084013e61203e565b606091505b5091509150816120905760405162461bcd60e51b815260206004820152601460248201527f4661696c656420746f2073656e642045746865720000000000000000000000006044820152606401610a39565b604080516001600160a01b0387168152602081018590527fddc398b321237a8d40ac914388309c2f52a08c134e4dc4ce61e32f57cb7d80f1910160405180910390a15050505050565b60006001600160e01b031982167f7965db0b000000000000000000000000000000000000000000000000000000001480610926575061092682612c14565b60008281526005602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b61130e828260405180602001604052806000815250612ce3565b60006121b082612763565b80519091506000906001600160a01b0316336001600160a01b031614806121e75750336121dc846109be565b6001600160a01b0316145b806121f9575081516121f99033610897565b90508061226e5760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610a39565b846001600160a01b031682600001516001600160a01b0316146122f95760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f727265637460448201527f206f776e657200000000000000000000000000000000000000000000000000006064820152608401610a39565b6001600160a01b0384166123755760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610a39565b6123828585856001613072565b6123926000848460000151612117565b6001600160a01b03851660009081526004602052604081208054600192906123c49084906001600160801b0316613f63565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b0386166000908152600460205260408120805460019450909261241091859116613f8b565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b03808716825267ffffffffffffffff428116602080850191825260008981526003909152948520935184549151909216600160a01b026001600160e01b03199091169190921617179055612498846001613da9565b6000818152600360205260409020549091506001600160a01b031661252a576124c2816000541190565b1561252a5760408051808201825284516001600160a01b03908116825260208087015167ffffffffffffffff9081168285019081526000878152600390935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b600080600061258385856130ca565b915091506125908161313a565b509392505050565b61134481336132f5565b6000828152600a602090815260408083206001600160a01b038516845290915290205460ff1661130e576000828152600a602090815260408083206001600160a01b03851684529091529020805460ff191660011790556126003390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152600a602090815260408083206001600160a01b038516845290915290205460ff161561130e576000828152600a602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60095460ff166127195760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610a39565b6009805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6040805180820190915260008082526020820152612782826000541190565b6127f45760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360448201527f74656e7420746f6b656e000000000000000000000000000000000000000000006064820152608401610a39565b60007f00000000000000000000000000000000000000000000000000000000000000008310612855576128477f000000000000000000000000000000000000000000000000000000000000000084613fad565b612852906001613da9565b90505b825b8181106128bf576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff1691830191909152156128ac57949350505050565b50806128b781613fc4565b915050612857565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201527f206f776e6572206f6620746f6b656e00000000000000000000000000000000006064820152608401610a39565b60095460ff16156129815760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610a39565b6009805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586127463390565b60006001600160a01b0384163b15612aff57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906129fa903390899088908890600401613fdb565b6020604051808303816000875af1925050508015612a35575060408051601f3d908101601f19168201909252612a3291810190614017565b60015b612ae5573d808015612a63576040519150601f19603f3d011682016040523d82523d6000602084013e612a68565b606091505b508051612add5760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610a39565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611e9d565b506001611e9d565b6060600b805461093b90613d58565b606081612b3a5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612b645780612b4e81613e3e565b9150612b5d9050600a8361404a565b9150612b3e565b60008167ffffffffffffffff811115612b7f57612b7f61388d565b6040519080825280601f01601f191660200182016040528015612ba9576020820181803683370190505b5090505b8415611e9d57612bbe600183613fad565b9150612bcb600a8661405e565b612bd6906030613da9565b60f81b818381518110612beb57612beb613e59565b60200101906001600160f81b031916908160001a905350612c0d600a8661404a565b9450612bad565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480612c7757506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80612cab57506001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000145b8061092657507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610926565b6000546001600160a01b038416612d625760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610a39565b612d6d816000541190565b15612dba5760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610a39565b7f0000000000000000000000000000000000000000000000000000000000000000831115612e505760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960448201527f67680000000000000000000000000000000000000000000000000000000000006064820152608401610a39565b612e5d6000858386613072565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b0380821683527001000000000000000000000000000000009091041691810191909152815180830190925280519091908190612ec6908790613f8b565b6001600160801b03168152602001858360200151612ee49190613f8b565b6001600160801b039081169091526001600160a01b03808816600081815260046020908152604080832087519783015187167001000000000000000000000000000000000297909616969096179094558451808601865291825267ffffffffffffffff4281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b858110156130675760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4612fd560008884886129b6565b6130475760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610a39565b8161305181613e3e565b925050808061305f90613e3e565b915050612f88565b50600081905561256c565b60095460ff16156130c55760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610a39565b611e63565b6000808251604114156131015760208301516040840151606085015160001a6130f587828585613375565b94509450505050613133565b82516040141561312b5760208301516040840151613120868383613462565b935093505050613133565b506000905060025b9250929050565b600081600481111561314e5761314e613bc0565b14156131575750565b600181600481111561316b5761316b613bc0565b14156131b95760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610a39565b60028160048111156131cd576131cd613bc0565b141561321b5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610a39565b600381600481111561322f5761322f613bc0565b14156132885760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610a39565b600481600481111561329c5761329c613bc0565b14156113445760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610a39565b6000828152600a602090815260408083206001600160a01b038516845290915290205460ff1661130e57613333816001600160a01b031660146134b4565b61333e8360206134b4565b60405160200161334f929190614072565b60408051601f198184030181529082905262461bcd60e51b8252610a3991600401613794565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156133ac5750600090506003613459565b8460ff16601b141580156133c457508460ff16601c14155b156133d55750600090506004613459565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613429573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661345257600060019250925050613459565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83168161349860ff86901c601b613da9565b90506134a687828885613375565b935093505050935093915050565b606060006134c3836002613dc1565b6134ce906002613da9565b67ffffffffffffffff8111156134e6576134e661388d565b6040519080825280601f01601f191660200182016040528015613510576020820181803683370190505b509050600360fc1b8160008151811061352b5761352b613e59565b60200101906001600160f81b031916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061357657613576613e59565b60200101906001600160f81b031916908160001a905350600061359a846002613dc1565b6135a5906001613da9565b90505b600181111561362a577f303132333435363738396162636465660000000000000000000000000000000085600f16601081106135e6576135e6613e59565b1a60f81b8282815181106135fc576135fc613e59565b60200101906001600160f81b031916908160001a90535060049490941c9361362381613fc4565b90506135a8565b5083156110c25760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610a39565b82805461368590613d58565b90600052602060002090601f0160209004810192826136a757600085556136ed565b82601f106136c057805160ff19168380011785556136ed565b828001600101855582156136ed579182015b828111156136ed5782518255916020019190600101906136d2565b506113da9291505b808211156113da57600081556001016136f5565b6001600160e01b03198116811461134457600080fd5b60006020828403121561373157600080fd5b81356110c281613709565b60005b8381101561375757818101518382015260200161373f565b83811115611e635750506000910152565b6000815180845261378081602086016020860161373c565b601f01601f19169290920160200192915050565b6020815260006110c26020830184613768565b6000602082840312156137b957600080fd5b5035919050565b6001600160a01b038116811461134457600080fd5b600080604083850312156137e857600080fd5b82356137f3816137c0565b946020939093013593505050565b80356005811061381057600080fd5b919050565b6000806040838503121561382857600080fd5b6137f383613801565b60006020828403121561384357600080fd5b6110c282613801565b60008060006060848603121561386157600080fd5b833561386c816137c0565b9250602084013561387c816137c0565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156138be576138be61388d565b604051601f8501601f19908116603f011681019082821181831017156138e6576138e661388d565b816040528093508581528686860111156138ff57600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261392a57600080fd5b6110c2838335602085016138a3565b6000806040838503121561394c57600080fd5b82359150602083013567ffffffffffffffff81111561396a57600080fd5b61397685828601613919565b9150509250929050565b6000806040838503121561399357600080fd5b8235915060208301356139a5816137c0565b809150509250929050565b6000602082840312156139c257600080fd5b813567ffffffffffffffff8111156139d957600080fd5b8201601f810184136139ea57600080fd5b611e9d848235602084016138a3565b600060208284031215613a0b57600080fd5b8135600381106110c257600080fd5b600060208284031215613a2c57600080fd5b81356110c2816137c0565b60008083601f840112613a4957600080fd5b50813567ffffffffffffffff811115613a6157600080fd5b6020830191508360208260051b850101111561313357600080fd5b600080600080600060608688031215613a9457600080fd5b853567ffffffffffffffff80821115613aac57600080fd5b613ab889838a01613a37565b90975095506020880135915080821115613ad157600080fd5b50613ade88828901613a37565b9094509250613af1905060408701613801565b90509295509295909350565b60008083601f840112613b0f57600080fd5b50813567ffffffffffffffff811115613b2757600080fd5b60208301915083602082850101111561313357600080fd5b600080600080600060608688031215613b5757600080fd5b613b6086613801565b9450602086013567ffffffffffffffff80821115613b7d57600080fd5b613b8989838a01613afd565b90965094506040880135915080821115613ba257600080fd5b50613baf88828901613afd565b969995985093965092949392505050565b634e487b7160e01b600052602160045260246000fd5b6020810160038310613bea57613bea613bc0565b91905290565b60008060408385031215613c0357600080fd5b8235613c0e816137c0565b9150602083013580151581146139a557600080fd5b60008060008060808587031215613c3957600080fd5b8435613c44816137c0565b93506020850135613c54816137c0565b925060408501359150606085013567ffffffffffffffff811115613c7757600080fd5b613c8387828801613919565b91505092959194509250565b60008060008060608587031215613ca557600080fd5b613cae85613801565b9350602085013567ffffffffffffffff811115613cca57600080fd5b613cd687828801613afd565b9094509250506040850135613cea816137c0565b939692955090935050565b600060208284031215613d0757600080fd5b813567ffffffffffffffff811115613d1e57600080fd5b611e9d84828501613919565b60008060408385031215613d3d57600080fd5b8235613d48816137c0565b915060208301356139a5816137c0565b600181811c90821680613d6c57607f821691505b60208210811415613d8d57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115613dbc57613dbc613d93565b500190565b6000816000190483118215151615613ddb57613ddb613d93565b500290565b600061ffff808316818516808303821115613dfd57613dfd613d93565b01949350505050565b60058110613e1657613e16613bc0565b9052565b6001600160a01b03841681526020810183905260608101611e9d6040830184613e06565b6000600019821415613e5257613e52613d93565b5060010190565b634e487b7160e01b600052603260045260246000fd5b6000808335601e19843603018112613e8657600080fd5b83018035915067ffffffffffffffff821115613ea157600080fd5b60200191503681900382131561313357600080fd5b8183823760009101908152919050565b600061ffff80831681811415613ede57613ede613d93565b6001019392505050565b613ef28187613e06565b60806020820152836080820152838560a0830137600060a08583018101919091526001600160a01b039384166040830152919092166060830152601f909201601f1916010192915050565b60008351613f4f81846020880161373c565b835190830190613dfd81836020880161373c565b60006001600160801b0383811690831681811015613f8357613f83613d93565b039392505050565b60006001600160801b03808316818516808303821115613dfd57613dfd613d93565b600082821015613fbf57613fbf613d93565b500390565b600081613fd357613fd3613d93565b506000190190565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261400d6080830184613768565b9695505050505050565b60006020828403121561402957600080fd5b81516110c281613709565b634e487b7160e01b600052601260045260246000fd5b60008261405957614059614034565b500490565b60008261406d5761406d614034565b500690565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516140aa81601785016020880161373c565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516140e781602884016020880161373c565b0160280194935050505056fea26469706673582212203aa1bcb0ccd0d4a14d14269021a540ed0f37f4b74194369c16fbc8c88e8b2d5b64736f6c634300080a003368747470733a2f2f6d6574612e6674752e72652f6368616d70696f6e732d726573657276652f0000000000000000000000004eb51cf51db03b1c78ef7c1613c72d8692f4a47c000000000000000000000000000000000000000000000000030d98d59a960000

Deployed Bytecode

0x6080604052600436106102e75760003560e01c80638054d4bd11610184578063c87b56dd116100d6578063d7224ba01161008a578063eddd0d9c11610064578063eddd0d9c146108c5578063f2a08abb146108e5578063fa09e630146108fb57600080fd5b8063d7224ba014610832578063e63ab1e914610848578063e985e9c51461087c57600080fd5b8063cfa8ba4f116100bb578063cfa8ba4f146107be578063d5391393146107de578063d547741f1461081257600080fd5b8063c87b56dd14610763578063cd9f9b921461078357600080fd5b8063975de75611610138578063a22cb46511610112578063a22cb46514610703578063b88d4fde14610723578063c1fe126e1461074357600080fd5b8063975de75614610696578063a1cb31b7146106c7578063a217fddf146106ee57600080fd5b80638882585a116101695780638882585a1461061b57806391d148541461063b57806395d89b411461068157600080fd5b80638054d4bd146105e65780638456cb591461060657600080fd5b80632f745c591161023d57806355f804b3116101f15780636352211e116101cb5780636352211e146105905780636e1bd323146105b057806370a08231146105c657600080fd5b806355f804b31461053857806356de96db146105585780635c975abb1461057857600080fd5b80633f4ba83a116102225780633f4ba83a146104e357806342842e0e146104f85780634f6ccce71461051857600080fd5b80632f745c59146104a357806336568abe146104c357600080fd5b806318160ddd1161029f578063248a9ca311610279578063248a9ca314610433578063265d3e97146104635780632f2ff15d1461048357600080fd5b806318160ddd146103b057806319dd167a146103cf57806323b872dd1461041357600080fd5b8063081812fc116102d0578063081812fc14610343578063095ea7b31461037b57806311188cea1461039d57600080fd5b806301ffc9a7146102ec57806306fdde0314610321575b600080fd5b3480156102f857600080fd5b5061030c61030736600461371f565b61091b565b60405190151581526020015b60405180910390f35b34801561032d57600080fd5b5061033661092c565b6040516103189190613794565b34801561034f57600080fd5b5061036361035e3660046137a7565b6109be565b6040516001600160a01b039091168152602001610318565b34801561038757600080fd5b5061039b6103963660046137d5565b610a5e565b005b61039b6103ab366004613815565b610b91565b3480156103bc57600080fd5b506000545b604051908152602001610318565b3480156103db57600080fd5b506104006103ea366004613831565b600c6020526000908152604090205461ffff1681565b60405161ffff9091168152602001610318565b34801561041f57600080fd5b5061039b61042e36600461384c565b611054565b34801561043f57600080fd5b506103c161044e3660046137a7565b6000908152600a602052604090206001015490565b34801561046f57600080fd5b5061036361047e366004613939565b61105f565b34801561048f57600080fd5b5061039b61049e366004613980565b6110c9565b3480156104af57600080fd5b506103c16104be3660046137d5565b6110ee565b3480156104cf57600080fd5b5061039b6104de366004613980565b611286565b3480156104ef57600080fd5b5061039b611312565b34801561050457600080fd5b5061039b61051336600461384c565b611347565b34801561052457600080fd5b506103c16105333660046137a7565b611362565b34801561054457600080fd5b5061039b6105533660046139b0565b6113de565b34801561056457600080fd5b5061039b6105733660046139f9565b6113fc565b34801561058457600080fd5b5060095460ff1661030c565b34801561059c57600080fd5b506103636105ab3660046137a7565b61142f565b3480156105bc57600080fd5b506104006122b881565b3480156105d257600080fd5b506103c16105e1366004613a1a565b611441565b3480156105f257600080fd5b5061039b610601366004613a7c565b6114e4565b34801561061257600080fd5b5061039b6118e3565b34801561062757600080fd5b5061039b610636366004613b3f565b611915565b34801561064757600080fd5b5061030c610656366004613980565b6000918252600a602090815260408084206001600160a01b0393909316845291905290205460ff1690565b34801561068d57600080fd5b50610336611d06565b3480156106a257600080fd5b506104006106b1366004613831565b600d6020526000908152604090205461ffff1681565b3480156106d357600080fd5b50600e546106e19060ff1681565b6040516103189190613bd6565b3480156106fa57600080fd5b506103c1600081565b34801561070f57600080fd5b5061039b61071e366004613bf0565b611d15565b34801561072f57600080fd5b5061039b61073e366004613c23565b611dda565b34801561074f57600080fd5b506103c161075e366004613c8f565b611e69565b34801561076f57600080fd5b5061033661077e3660046137a7565b611ea5565b34801561078f57600080fd5b5061030c61079e366004613cf5565b805160208183018101805160118252928201919093012091525460ff1681565b3480156107ca57600080fd5b5061030c6107d9366004613939565b611f7f565b3480156107ea57600080fd5b506103c17f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b34801561081e57600080fd5b5061039b61082d366004613980565b611fa9565b34801561083e57600080fd5b506103c160075481565b34801561085457600080fd5b506103c17f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b34801561088857600080fd5b5061030c610897366004613d2a565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b3480156108d157600080fd5b5061039b6108e03660046137a7565b611fce565b3480156108f157600080fd5b506103c1600f5481565b34801561090757600080fd5b5061039b610916366004613a1a565b611fdf565b6000610926826120d9565b92915050565b60606001805461093b90613d58565b80601f016020809104026020016040519081016040528092919081815260200182805461096790613d58565b80156109b45780601f10610989576101008083540402835291602001916109b4565b820191906000526020600020905b81548152906001019060200180831161099757829003601f168201915b5050505050905090565b60006109cb826000541190565b610a425760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e0000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610a698261142f565b9050806001600160a01b0316836001600160a01b03161415610af35760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201527f65720000000000000000000000000000000000000000000000000000000000006064820152608401610a39565b336001600160a01b0382161480610b0f5750610b0f8133610897565b610b815760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610a39565b610b8c838383612117565b505050565b60026008541415610be45760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a39565b60026008556001600e5460ff166002811115610c0257610c02613bc0565b14610c4f5760405162461bcd60e51b815260206004820152601a60248201527f5075626c69632073616c65206973206e6f74206163746976652e0000000000006044820152606401610a39565b60008111610c9f5760405162461bcd60e51b815260206004820152601e60248201527f416d6f756e74206d7573742062652067726561746572207468616e20302e00006044820152606401610a39565b333b15610cee5760405162461bcd60e51b815260206004820152601960248201527f436f6e74726163747320617265206e6f7420616c6c6f776564000000000000006044820152606401610a39565b6122b881610cfb60005490565b610d059190613da9565b10610d4a5760405162461bcd60e51b815260206004820152601560248201527432bc31b2b2b234b7339036b0bc1039bab838363c9760591b6044820152606401610a39565b6000600f5482610d5a9190613dc1565b90506000836004811115610d7057610d70613bc0565b1415610e2957600080527f13649b2456f1b42fef0f0040b3aaeabcd21a76a0f3f5defd4f583839455116e854600d6020527f81955a0a11e65eac625c29e8882660bae4e165a75d72780094acae8ece9a29ee5461ffff91821691610dd691859116613da9565b1115610e245760405162461bcd60e51b815260206004820152601660248201527f657863656564696e67206d6178206e656d657369732e000000000000000000006044820152606401610a39565b610f4c565b6001836004811115610e3d57610e3d613bc0565b1415610f045760016000527fd421a5181c571bba3f01190c922c3b2a896fc1d84e86c9f17ac10e67ebef8b5c54600d6020527ffd54ff1ed53f34a900b24c5ba64f85761163b5d82d98a47b9bd80e45466993c55461ffff91821691610ea491859116613da9565b1115610ef25760405162461bcd60e51b815260206004820152601560248201527f657863656564696e67206d6178207068656e6f6d2e00000000000000000000006044820152606401610a39565b610efd816002613dc1565b9050610f4c565b60405162461bcd60e51b815260206004820152600c60248201527f696e76616c6964207469657200000000000000000000000000000000000000006044820152606401610a39565b80341015610f9c5760405162461bcd60e51b815260206004820152601e60248201527f45746865722076616c75652073656e7420697320696e636f72726563742e00006044820152606401610a39565b6001600d6000856004811115610fb457610fb4613bc0565b6004811115610fc557610fc5613bc0565b8152602081019190915260400160009081208054909190610feb90849061ffff16613de0565b92506101000a81548161ffff021916908361ffff1602179055507f5c970620e209f92821ec6fb6e2b1ef0c239518868d2a98295f0379dc6443248b33838560405161103893929190613e1a565b60405180910390a161104a338361218b565b5050600160085550565b610b8c8383836121a5565b60006110c2826110bc856040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b90612574565b9392505050565b6000828152600a60205260409020600101546110e481612598565b610b8c83836125a2565b60006110f983611441565b821061116d5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60448201527f64730000000000000000000000000000000000000000000000000000000000006064820152608401610a39565b600080549080805b83811015611217576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff1691830191909152156111c857805192505b876001600160a01b0316836001600160a01b0316141561120457868414156111f65750935061092692505050565b8361120081613e3e565b9450505b508061120f81613e3e565b915050611175565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201527f6f776e657220627920696e6465780000000000000000000000000000000000006064820152608401610a39565b6001600160a01b03811633146113045760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610a39565b61130e8282612644565b5050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a61133c81612598565b6113446126c7565b50565b610b8c83838360405180602001604052806000815250611dda565b6000805482106113da5760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560448201527f6e647300000000000000000000000000000000000000000000000000000000006064820152608401610a39565b5090565b60006113e981612598565b8151610b8c90600b906020850190613679565b600061140781612598565b600e805483919060ff1916600183600281111561142657611426613bc0565b02179055505050565b600061143a82612763565b5192915050565b60006001600160a01b0382166114bf5760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201527f65726f20616464726573730000000000000000000000000000000000000000006064820152608401610a39565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b600260085414156115375760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a39565b60026008557f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661156681612598565b6002600e5460ff16600281111561157f5761157f613bc0565b14156115cd5760405162461bcd60e51b815260206004820152601160248201527f616c72656164792066696e69736865642e0000000000000000000000000000006044820152606401610a39565b333b1561161c5760405162461bcd60e51b815260206004820152601960248201527f436f6e74726163747320617265206e6f7420616c6c6f776564000000000000006044820152606401610a39565b6122b88561162960005490565b6116339190613da9565b11156116795760405162461bcd60e51b815260206004820152601560248201527432bc31b2b2b234b7339036b0bc1039bab838363c9760591b6044820152606401610a39565b600c600083600481111561168f5761168f613bc0565b60048111156116a0576116a0613bc0565b8152602081019190915260400160009081205461ffff16908690600d908560048111156116cf576116cf613bc0565b60048111156116e0576116e0613bc0565b81526020810191909152604001600020546116ff919061ffff16613da9565b11156117455760405162461bcd60e51b815260206004820152601560248201527432bc31b2b2b234b7339036b0bc1039bab838363c9760591b6044820152606401610a39565b6000805b8681101561184257601186868381811061176557611765613e59565b90506020028101906117779190613e6f565b604051611785929190613eb6565b9081526040519081900360200190205460ff1661183057600160118787848181106117b2576117b2613e59565b90506020028101906117c49190613e6f565b6040516117d2929190613eb6565b908152604051908190036020019020805491151560ff199092169190911790556117fd600183613de0565b915061183088888381811061181457611814613e59565b90506020020160208101906118299190613a1a565b600161218b565b8061183a81613e3e565b915050611749565b5080600d600085600481111561185a5761185a613bc0565b600481111561186b5761186b613bc0565b815260208101919091526040016000205461188a919061ffff16613de0565b600d60008560048111156118a0576118a0613bc0565b60048111156118b1576118b1613bc0565b81526020810191909152604001600020805461ffff191661ffff92909216919091179055505060016008555050505050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a61190d81612598565b61134461292e565b600260085414156119685760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a39565b60026008819055600e5460ff16600281111561198657611986613bc0565b14156119d45760405162461bcd60e51b815260206004820152601160248201527f53616c652069732066696e69736865642e0000000000000000000000000000006044820152606401610a39565b333b15611a235760405162461bcd60e51b815260206004820152601960248201527f436f6e74726163747320617265206e6f7420616c6c6f776564000000000000006044820152606401610a39565b6122b8611a2f60005490565b611a3a906001613da9565b10611a7f5760405162461bcd60e51b815260206004820152601560248201527432bc31b2b2b234b7339036b0bc1039bab838363c9760591b6044820152606401610a39565b60118282604051611a91929190613eb6565b9081526040519081900360200190205460ff1615611af15760405162461bcd60e51b815260206004820152601860248201527f54686520746f6b656e20686173206265656e20757365642e00000000000000006044820152606401610a39565b611b3c611b0086868633611e69565b83838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611f7f92505050565b611b885760405162461bcd60e51b815260206004820152600e60248201527f496e76616c696420746f6b656e2e0000000000000000000000000000000000006044820152606401610a39565b600c6000866004811115611b9e57611b9e613bc0565b6004811115611baf57611baf613bc0565b8152602081019190915260400160009081205461ffff1690600d90876004811115611bdc57611bdc613bc0565b6004811115611bed57611bed613bc0565b8152602081019190915260400160002054611c0d9061ffff166001613de0565b61ffff161115611c575760405162461bcd60e51b815260206004820152601560248201527432bc31b2b2b234b7339036b0bc1039bab838363c9760591b6044820152606401610a39565b600160118383604051611c6b929190613eb6565b908152604051908190036020019020805491151560ff19909216919091179055600d6000866004811115611ca157611ca1613bc0565b6004811115611cb257611cb2613bc0565b815260208101919091526040016000908120805461ffff1691611cd483613ec6565b91906101000a81548161ffff021916908361ffff16021790555050611cfa33600161218b565b50506001600855505050565b60606002805461093b90613d58565b6001600160a01b038216331415611d6e5760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610a39565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611de58484846121a5565b611df1848484846129b6565b611e635760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610a39565b50505050565b60008484843085604051602001611e84959493929190613ee8565b6040516020818303038152906040528051906020012090505b949350505050565b6060611eb2826000541190565b611f245760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610a39565b6000611f2e612b07565b90506000815111611f4e57604051806020016040528060008152506110c2565b80611f5884612b16565b604051602001611f69929190613f3d565b6040516020818303038152906040529392505050565b6010546000906001600160a01b0316611f98848461105f565b6001600160a01b0316149392505050565b6000828152600a6020526040902060010154611fc481612598565b610b8c8383612644565b6000611fd981612598565b50600f55565b6000611fea81612598565b604051479060009081906001600160a01b0386169084908381818185875af1925050503d8060008114612039576040519150601f19603f3d011682016040523d82523d6000602084013e61203e565b606091505b5091509150816120905760405162461bcd60e51b815260206004820152601460248201527f4661696c656420746f2073656e642045746865720000000000000000000000006044820152606401610a39565b604080516001600160a01b0387168152602081018590527fddc398b321237a8d40ac914388309c2f52a08c134e4dc4ce61e32f57cb7d80f1910160405180910390a15050505050565b60006001600160e01b031982167f7965db0b000000000000000000000000000000000000000000000000000000001480610926575061092682612c14565b60008281526005602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b61130e828260405180602001604052806000815250612ce3565b60006121b082612763565b80519091506000906001600160a01b0316336001600160a01b031614806121e75750336121dc846109be565b6001600160a01b0316145b806121f9575081516121f99033610897565b90508061226e5760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610a39565b846001600160a01b031682600001516001600160a01b0316146122f95760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f727265637460448201527f206f776e657200000000000000000000000000000000000000000000000000006064820152608401610a39565b6001600160a01b0384166123755760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610a39565b6123828585856001613072565b6123926000848460000151612117565b6001600160a01b03851660009081526004602052604081208054600192906123c49084906001600160801b0316613f63565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b0386166000908152600460205260408120805460019450909261241091859116613f8b565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b03808716825267ffffffffffffffff428116602080850191825260008981526003909152948520935184549151909216600160a01b026001600160e01b03199091169190921617179055612498846001613da9565b6000818152600360205260409020549091506001600160a01b031661252a576124c2816000541190565b1561252a5760408051808201825284516001600160a01b03908116825260208087015167ffffffffffffffff9081168285019081526000878152600390935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b600080600061258385856130ca565b915091506125908161313a565b509392505050565b61134481336132f5565b6000828152600a602090815260408083206001600160a01b038516845290915290205460ff1661130e576000828152600a602090815260408083206001600160a01b03851684529091529020805460ff191660011790556126003390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152600a602090815260408083206001600160a01b038516845290915290205460ff161561130e576000828152600a602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60095460ff166127195760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610a39565b6009805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6040805180820190915260008082526020820152612782826000541190565b6127f45760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360448201527f74656e7420746f6b656e000000000000000000000000000000000000000000006064820152608401610a39565b60007f00000000000000000000000000000000000000000000000000000000000000148310612855576128477f000000000000000000000000000000000000000000000000000000000000001484613fad565b612852906001613da9565b90505b825b8181106128bf576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff1691830191909152156128ac57949350505050565b50806128b781613fc4565b915050612857565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201527f206f776e6572206f6620746f6b656e00000000000000000000000000000000006064820152608401610a39565b60095460ff16156129815760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610a39565b6009805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586127463390565b60006001600160a01b0384163b15612aff57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906129fa903390899088908890600401613fdb565b6020604051808303816000875af1925050508015612a35575060408051601f3d908101601f19168201909252612a3291810190614017565b60015b612ae5573d808015612a63576040519150601f19603f3d011682016040523d82523d6000602084013e612a68565b606091505b508051612add5760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610a39565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611e9d565b506001611e9d565b6060600b805461093b90613d58565b606081612b3a5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612b645780612b4e81613e3e565b9150612b5d9050600a8361404a565b9150612b3e565b60008167ffffffffffffffff811115612b7f57612b7f61388d565b6040519080825280601f01601f191660200182016040528015612ba9576020820181803683370190505b5090505b8415611e9d57612bbe600183613fad565b9150612bcb600a8661405e565b612bd6906030613da9565b60f81b818381518110612beb57612beb613e59565b60200101906001600160f81b031916908160001a905350612c0d600a8661404a565b9450612bad565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480612c7757506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80612cab57506001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000145b8061092657507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610926565b6000546001600160a01b038416612d625760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610a39565b612d6d816000541190565b15612dba5760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610a39565b7f0000000000000000000000000000000000000000000000000000000000000014831115612e505760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960448201527f67680000000000000000000000000000000000000000000000000000000000006064820152608401610a39565b612e5d6000858386613072565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b0380821683527001000000000000000000000000000000009091041691810191909152815180830190925280519091908190612ec6908790613f8b565b6001600160801b03168152602001858360200151612ee49190613f8b565b6001600160801b039081169091526001600160a01b03808816600081815260046020908152604080832087519783015187167001000000000000000000000000000000000297909616969096179094558451808601865291825267ffffffffffffffff4281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b858110156130675760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4612fd560008884886129b6565b6130475760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610a39565b8161305181613e3e565b925050808061305f90613e3e565b915050612f88565b50600081905561256c565b60095460ff16156130c55760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610a39565b611e63565b6000808251604114156131015760208301516040840151606085015160001a6130f587828585613375565b94509450505050613133565b82516040141561312b5760208301516040840151613120868383613462565b935093505050613133565b506000905060025b9250929050565b600081600481111561314e5761314e613bc0565b14156131575750565b600181600481111561316b5761316b613bc0565b14156131b95760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610a39565b60028160048111156131cd576131cd613bc0565b141561321b5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610a39565b600381600481111561322f5761322f613bc0565b14156132885760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610a39565b600481600481111561329c5761329c613bc0565b14156113445760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610a39565b6000828152600a602090815260408083206001600160a01b038516845290915290205460ff1661130e57613333816001600160a01b031660146134b4565b61333e8360206134b4565b60405160200161334f929190614072565b60408051601f198184030181529082905262461bcd60e51b8252610a3991600401613794565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156133ac5750600090506003613459565b8460ff16601b141580156133c457508460ff16601c14155b156133d55750600090506004613459565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613429573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661345257600060019250925050613459565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83168161349860ff86901c601b613da9565b90506134a687828885613375565b935093505050935093915050565b606060006134c3836002613dc1565b6134ce906002613da9565b67ffffffffffffffff8111156134e6576134e661388d565b6040519080825280601f01601f191660200182016040528015613510576020820181803683370190505b509050600360fc1b8160008151811061352b5761352b613e59565b60200101906001600160f81b031916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061357657613576613e59565b60200101906001600160f81b031916908160001a905350600061359a846002613dc1565b6135a5906001613da9565b90505b600181111561362a577f303132333435363738396162636465660000000000000000000000000000000085600f16601081106135e6576135e6613e59565b1a60f81b8282815181106135fc576135fc613e59565b60200101906001600160f81b031916908160001a90535060049490941c9361362381613fc4565b90506135a8565b5083156110c25760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610a39565b82805461368590613d58565b90600052602060002090601f0160209004810192826136a757600085556136ed565b82601f106136c057805160ff19168380011785556136ed565b828001600101855582156136ed579182015b828111156136ed5782518255916020019190600101906136d2565b506113da9291505b808211156113da57600081556001016136f5565b6001600160e01b03198116811461134457600080fd5b60006020828403121561373157600080fd5b81356110c281613709565b60005b8381101561375757818101518382015260200161373f565b83811115611e635750506000910152565b6000815180845261378081602086016020860161373c565b601f01601f19169290920160200192915050565b6020815260006110c26020830184613768565b6000602082840312156137b957600080fd5b5035919050565b6001600160a01b038116811461134457600080fd5b600080604083850312156137e857600080fd5b82356137f3816137c0565b946020939093013593505050565b80356005811061381057600080fd5b919050565b6000806040838503121561382857600080fd5b6137f383613801565b60006020828403121561384357600080fd5b6110c282613801565b60008060006060848603121561386157600080fd5b833561386c816137c0565b9250602084013561387c816137c0565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156138be576138be61388d565b604051601f8501601f19908116603f011681019082821181831017156138e6576138e661388d565b816040528093508581528686860111156138ff57600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261392a57600080fd5b6110c2838335602085016138a3565b6000806040838503121561394c57600080fd5b82359150602083013567ffffffffffffffff81111561396a57600080fd5b61397685828601613919565b9150509250929050565b6000806040838503121561399357600080fd5b8235915060208301356139a5816137c0565b809150509250929050565b6000602082840312156139c257600080fd5b813567ffffffffffffffff8111156139d957600080fd5b8201601f810184136139ea57600080fd5b611e9d848235602084016138a3565b600060208284031215613a0b57600080fd5b8135600381106110c257600080fd5b600060208284031215613a2c57600080fd5b81356110c2816137c0565b60008083601f840112613a4957600080fd5b50813567ffffffffffffffff811115613a6157600080fd5b6020830191508360208260051b850101111561313357600080fd5b600080600080600060608688031215613a9457600080fd5b853567ffffffffffffffff80821115613aac57600080fd5b613ab889838a01613a37565b90975095506020880135915080821115613ad157600080fd5b50613ade88828901613a37565b9094509250613af1905060408701613801565b90509295509295909350565b60008083601f840112613b0f57600080fd5b50813567ffffffffffffffff811115613b2757600080fd5b60208301915083602082850101111561313357600080fd5b600080600080600060608688031215613b5757600080fd5b613b6086613801565b9450602086013567ffffffffffffffff80821115613b7d57600080fd5b613b8989838a01613afd565b90965094506040880135915080821115613ba257600080fd5b50613baf88828901613afd565b969995985093965092949392505050565b634e487b7160e01b600052602160045260246000fd5b6020810160038310613bea57613bea613bc0565b91905290565b60008060408385031215613c0357600080fd5b8235613c0e816137c0565b9150602083013580151581146139a557600080fd5b60008060008060808587031215613c3957600080fd5b8435613c44816137c0565b93506020850135613c54816137c0565b925060408501359150606085013567ffffffffffffffff811115613c7757600080fd5b613c8387828801613919565b91505092959194509250565b60008060008060608587031215613ca557600080fd5b613cae85613801565b9350602085013567ffffffffffffffff811115613cca57600080fd5b613cd687828801613afd565b9094509250506040850135613cea816137c0565b939692955090935050565b600060208284031215613d0757600080fd5b813567ffffffffffffffff811115613d1e57600080fd5b611e9d84828501613919565b60008060408385031215613d3d57600080fd5b8235613d48816137c0565b915060208301356139a5816137c0565b600181811c90821680613d6c57607f821691505b60208210811415613d8d57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115613dbc57613dbc613d93565b500190565b6000816000190483118215151615613ddb57613ddb613d93565b500290565b600061ffff808316818516808303821115613dfd57613dfd613d93565b01949350505050565b60058110613e1657613e16613bc0565b9052565b6001600160a01b03841681526020810183905260608101611e9d6040830184613e06565b6000600019821415613e5257613e52613d93565b5060010190565b634e487b7160e01b600052603260045260246000fd5b6000808335601e19843603018112613e8657600080fd5b83018035915067ffffffffffffffff821115613ea157600080fd5b60200191503681900382131561313357600080fd5b8183823760009101908152919050565b600061ffff80831681811415613ede57613ede613d93565b6001019392505050565b613ef28187613e06565b60806020820152836080820152838560a0830137600060a08583018101919091526001600160a01b039384166040830152919092166060830152601f909201601f1916010192915050565b60008351613f4f81846020880161373c565b835190830190613dfd81836020880161373c565b60006001600160801b0383811690831681811015613f8357613f83613d93565b039392505050565b60006001600160801b03808316818516808303821115613dfd57613dfd613d93565b600082821015613fbf57613fbf613d93565b500390565b600081613fd357613fd3613d93565b506000190190565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261400d6080830184613768565b9695505050505050565b60006020828403121561402957600080fd5b81516110c281613709565b634e487b7160e01b600052601260045260246000fd5b60008261405957614059614034565b500490565b60008261406d5761406d614034565b500690565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516140aa81601785016020880161373c565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516140e781602884016020880161373c565b0160280194935050505056fea26469706673582212203aa1bcb0ccd0d4a14d14269021a540ed0f37f4b74194369c16fbc8c88e8b2d5b64736f6c634300080a0033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000004eb51cf51db03b1c78ef7c1613c72d8692f4a47c000000000000000000000000000000000000000000000000030d98d59a960000

-----Decoded View---------------
Arg [0] : signer (address): 0x4eb51cF51dB03B1c78ef7C1613c72D8692F4a47C
Arg [1] : mintFee (uint256): 220000000000000000

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000004eb51cf51db03b1c78ef7c1613c72d8692f4a47c
Arg [1] : 000000000000000000000000000000000000000000000000030d98d59a960000


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.