ETH Price: $3,409.23 (+2.88%)

WARRIORS BY ZERG (WARRIOR)
 

Overview

TokenID

557

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
WARRIORS

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 1000000 runs

Other Settings:
default evmVersion
File 1 of 19 : zerg.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./ERC721A.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/SignatureChecker.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";

contract WARRIORS is ERC721A, Ownable, AccessControl {
    bool public open = false;
    bool public allowlistActive = true;
    uint public constant PRICE = 0.1 ether;
    uint public constant MAX_SUPPLY = 10000;
    uint public constant MAX_MINT = 500;
    uint public constant MAX_BATCH = 100;
    uint public reservedFreeMints = 250;
    address public rootSigner;
    address public vault;
    string public baseURI;

    // Allow list Ids:
    uint public seedIdFreeMint;
    uint public seedIdHalfMint;
    uint public seedIdAllowMint;
    uint public seedIdPostMint;

    // Mint counters
    mapping(uint => uint) public mintListFreeMint;
    mapping(uint => uint) public mintListHalfMint;
    mapping(uint => uint) public mintListPostMint;
    mapping(address => uint) public mintTotals;

    mapping(address => bool) public blockList;

    constructor(
    ) ERC721A("WARRIORS BY ZERG", "WARRIOR", MAX_BATCH, 10150) {
        _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _setupRole(DEFAULT_ADMIN_ROLE, 0xE338F87E46e8a9D9D38144743c1Ff7311f641AF9);
        transferOwnership(0x86a8A293fB94048189F76552eba5EC47bc272223);
        seedIdFreeMint = 0x5f30feede5deaaed58c5ce6038b57143;
        seedIdHalfMint = 0xcbf563b440f6aeb0049cc048aaeed8a0;
        seedIdAllowMint = 0x10af80d34235cc4ff8b5c4515d06b891;
        seedIdPostMint = 4;
        baseURI = 'https://warriors-zerg.s3.amazonaws.com/warriors/metadata/warriors/';
        rootSigner = 0xD2973834CA2D087cB18DBdbcECbAeF12CF3dA572;
        vault = 0xc050A0e9c1c347364e53961420a2b54BE8B3B117;
        
        _safeMint(0xE338F87E46e8a9D9D38144743c1Ff7311f641AF9, 1);
    }

    struct SignatureData {
        uint awrdId;
        uint nMints;
        uint nCounts;
        uint seedId;
        address minter;
        bytes signature;
    }

    modifier onlyIfOpen() {
        require(isOpen(), "Mint is not open");
        _;
    }

    function setSeedIdFreeMint(uint _seedId) public onlyRole(DEFAULT_ADMIN_ROLE){
        seedIdFreeMint = _seedId;
    }
    
    function setSeedIdHalfMint(uint _seedId) public onlyRole(DEFAULT_ADMIN_ROLE){
        seedIdHalfMint = _seedId;
    }
    
    function setSeedIdAllowMint(uint _seedId) public onlyRole(DEFAULT_ADMIN_ROLE){
        seedIdAllowMint = _seedId;
    }

    function setSeedIdPostMint(uint _seedId) public onlyRole(DEFAULT_ADMIN_ROLE){
        seedIdPostMint = _seedId;
    }

    function setReservedFreeMint(uint _reservedFreeMints) public onlyRole(DEFAULT_ADMIN_ROLE){
        require(totalSupply() + _reservedFreeMints <= MAX_SUPPLY, "Exceeds maximum supply.");
        reservedFreeMints = _reservedFreeMints;
    }

    function setBaseURI(string memory _newBaseURI) public onlyRole(DEFAULT_ADMIN_ROLE){
        baseURI = _newBaseURI;
    }

    function setVault(address _vault) public onlyRole(DEFAULT_ADMIN_ROLE){
        vault = _vault;
    }

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

    function setAllowMint() public onlyRole(DEFAULT_ADMIN_ROLE){
        allowlistActive = !allowlistActive;
    }

    function addToBlockList(address[] memory _addresses) public onlyRole(DEFAULT_ADMIN_ROLE){
        for (uint i = 0; i < _addresses.length; i++){
            blockList[_addresses[i]] = true;
        }
    }

    function removeFromBlockList(address[] memory _addresses) public onlyRole(DEFAULT_ADMIN_ROLE){
        for (uint i = 0; i < _addresses.length; i++){
            blockList[_addresses[i]] = false;
        }
    }

    function startMint() public onlyRole(DEFAULT_ADMIN_ROLE) {
        require(!open, "Mint has already started");
        open = true;
    }

    function emergencyStopMint() public onlyRole(DEFAULT_ADMIN_ROLE) {
        open = false;
    }

    function withdraw() public onlyRole(DEFAULT_ADMIN_ROLE) {
        (bool success, ) = vault.call{value: address(this).balance}("");
        require(success, "Failed to transfer payment.");
    }

    function isOpen() public view returns (bool) {
        return open;
    }
    
    function isEnded() public view returns (bool) {
        return !open && totalSupply() > 0;
    }

    function isAllowList() public view returns (bool){
        return allowlistActive;
    }

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

    function mint(address to, uint qty) public payable onlyIfOpen {
        require(!blockList[to], "You are in the block list");
        require(totalSupply() + qty + reservedFreeMints <= MAX_SUPPLY, "Exceeds maximum supply.");
        require(!isAllowList(), "Allowlist mint is currently active.");
        require(msg.value == PRICE * qty, "Wrong price.");
        require(qty <= MAX_BATCH, "Exceeds maximum batch amount.");
        require(mintTotals[to] + qty <= MAX_MINT, "Exceeds maximum mint amount per user.");

        (bool success, ) = vault.call{value: msg.value}("");
        require(success, "Failed to transfer payment.");

        mintTotals[to] += qty;
        _safeMint(to, qty);
    }

    /// @notice This function allows users to claim across multiple claim lists in one go. Retaining multi-faceted Awardable badge integration at the cost of less efficient minting (use single use claim for an individual claim)
    /// @dev This function handles a series of arrays for minting out claims. This allows a frontend interface to collect a sequence of signatures from AWRD and handle the mint in one transaction, vs making the user generate signatures 1 at a time
    function multiClaim(
        uint awrdId,
        address minter, 
        SignatureData[] memory _signatures
    ) public payable onlyIfOpen {
        require(_signatures.length > 0, "Empty signature array.");
        
        uint totalCost = 0;
        uint totalMints = 0;
        for (uint i = 0; i < _signatures.length; i++){

            bytes32 dataHash = keccak256(
                abi.encodePacked(
                    "\x19Ethereum Signed Message:\n32",
                    keccak256(abi.encodePacked(awrdId, _signatures[i].nCounts, minter, _signatures[i].seedId))
                )
            );
            require(
                SignatureChecker.isValidSignatureNow(
                    rootSigner, 
                    dataHash, 
                    _signatures[i].signature
                    ), "Invalid signature."
            );

            if (_signatures[i].seedId == seedIdFreeMint){
                require(_signatures[i].nMints <= reservedFreeMints, "All reserved Free Mint are gone!");
                require(_signatures[i].nMints <= _signatures[i].nCounts - mintListFreeMint[awrdId], "No remaining Free Mint.");
                mintListFreeMint[awrdId] += _signatures[i].nMints;
                totalMints += _signatures[i].nMints;
                reservedFreeMints -= _signatures[i].nMints;
            }
            else if( _signatures[i].seedId == seedIdHalfMint){
                require(_signatures[i].nMints <= _signatures[i].nCounts - mintListHalfMint[awrdId], "No remaining Half Price Mint.");
                totalCost += (PRICE / 2) * _signatures[i].nMints;
                mintListHalfMint[awrdId] += _signatures[i].nMints;
                totalMints += _signatures[i].nMints;
            } else if (_signatures[i].seedId == seedIdAllowMint){
                require(_signatures[i].nCounts > 0, "Not allowed.");
                totalCost += PRICE * _signatures[i].nMints;
                totalMints += _signatures[i].nMints;
            }
            else {
                revert("Invalid seedId");
            }
        }
             
        require(totalMints <= MAX_BATCH, "Exceeds maximum batch amount."); 
        require(mintTotals[minter] + totalMints <= MAX_MINT, "Exceeds maximum mint amount per user."); 
        require(totalSupply() + totalMints + reservedFreeMints <= MAX_SUPPLY, "Exceeds maximum supply.");
        require(msg.value == totalCost, "Wrong total price");
            
        (bool success, ) = vault.call{value: msg.value}("");
        require(success, "Failed to transfer payment.");

        mintTotals[minter] += totalMints;
        _safeMint(minter, totalMints);
    }

    function claimPostMint(
        SignatureData memory _signature
    ) public payable {
        require(isEnded(), "Mint ongoing.");
        require(_signature.nMints <= MAX_BATCH, "Exceeds maximum batch amount.");
        require(mintTotals[_signature.minter] + _signature.nMints <= MAX_MINT, "Exceeds maximum mint amount per user.");
        require(_signature.seedId == seedIdPostMint, "Invalid list seed input.");

        bytes32 dataHash = keccak256(
            abi.encodePacked(
                "\x19Ethereum Signed Message:\n32",
                keccak256(abi.encodePacked(_signature.awrdId, _signature.nCounts, _signature.minter, _signature.seedId))
            )
        );
        require(
            SignatureChecker.isValidSignatureNow(
                rootSigner,
                dataHash,
                _signature.signature
            ),
            "Invalid signature."
        );

        require(_signature.nMints <= _signature.nCounts - mintListPostMint[_signature.awrdId], "No remaining claims.");
        mintListPostMint[_signature.awrdId] += _signature.nMints;
        mintTotals[_signature.minter] += _signature.nMints;
        _safeMint(_signature.minter, _signature.nMints);
    }

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

File 2 of 19 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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:
 *
 * ```solidity
 * 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}:
 *
 * ```solidity
 * 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. We recommend using {AccessControlDefaultAdminRules}
 * to enforce additional security measures for this role.
 */
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(account),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

File 3 of 19 : 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 19 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

File 5 of 19 : IERC1271.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC1271.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC1271 standard signature validation method for
 * contracts as defined in https://eips.ethereum.org/EIPS/eip-1271[ERC-1271].
 *
 * _Available since v4.1._
 */
interface IERC1271 {
    /**
     * @dev Should return whether the signature provided is valid for the provided data
     * @param hash      Hash of the data to be signed
     * @param signature Signature byte array associated with _data
     */
    function isValidSignature(bytes32 hash, bytes memory signature) external view returns (bytes4 magicValue);
}

File 6 of 19 : 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 7 of 19 : 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 8 of 19 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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 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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * 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 9 of 19 : 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 10 of 19 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [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://consensys.net/diligence/blog/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.8.0/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 functionCallWithValue(target, data, 0, "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");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or 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 {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // 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
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 11 of 19 : 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 19 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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 // Deprecated in v4.8
    }

    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");
        }
    }

    /**
     * @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) {
        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.
            /// @solidity memory-safe-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 {
            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 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 message) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, "\x19Ethereum Signed Message:\n32")
            mstore(0x1c, hash)
            message := keccak256(0x00, 0x3c)
        }
    }

    /**
     * @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 data) {
        /// @solidity memory-safe-assembly
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, "\x19\x01")
            mstore(add(ptr, 0x02), domainSeparator)
            mstore(add(ptr, 0x22), structHash)
            data := keccak256(ptr, 0x42)
        }
    }

    /**
     * @dev Returns an Ethereum Signed Data with intended validator, created from a
     * `validator` and `data` according to the version 0 of EIP-191.
     *
     * See {recover}.
     */
    function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x00", validator, data));
    }
}

File 13 of 19 : SignatureChecker.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/SignatureChecker.sol)

pragma solidity ^0.8.0;

import "./ECDSA.sol";
import "../../interfaces/IERC1271.sol";

/**
 * @dev Signature verification helper that can be used instead of `ECDSA.recover` to seamlessly support both ECDSA
 * signatures from externally owned accounts (EOAs) as well as ERC1271 signatures from smart contract wallets like
 * Argent and Gnosis Safe.
 *
 * _Available since v4.1._
 */
library SignatureChecker {
    /**
     * @dev Checks if a signature is valid for a given signer and data hash. If the signer is a smart contract, the
     * signature is validated against that smart contract using ERC1271, otherwise it's validated using `ECDSA.recover`.
     *
     * NOTE: Unlike ECDSA signatures, contract signatures are revocable, and the outcome of this function can thus
     * change through time. It could return true at block N and false at block N+1 (or the opposite).
     */
    function isValidSignatureNow(address signer, bytes32 hash, bytes memory signature) internal view returns (bool) {
        (address recovered, ECDSA.RecoverError error) = ECDSA.tryRecover(hash, signature);
        return
            (error == ECDSA.RecoverError.NoError && recovered == signer) ||
            isValidERC1271SignatureNow(signer, hash, signature);
    }

    /**
     * @dev Checks if a signature is valid for a given signer and data hash. The signature is validated
     * against the signer smart contract using ERC1271.
     *
     * NOTE: Unlike ECDSA signatures, contract signatures are revocable, and the outcome of this function can thus
     * change through time. It could return true at block N and false at block N+1 (or the opposite).
     */
    function isValidERC1271SignatureNow(
        address signer,
        bytes32 hash,
        bytes memory signature
    ) internal view returns (bool) {
        (bool success, bytes memory result) = signer.staticcall(
            abi.encodeWithSelector(IERC1271.isValidSignature.selector, hash, signature)
        );
        return (success &&
            result.length >= 32 &&
            abi.decode(result, (bytes32)) == bytes32(IERC1271.isValidSignature.selector));
    }
}

File 14 of 19 : 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 19 : 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 19 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
        }
    }
}

File 17 of 19 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

File 18 of 19 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";
import "./math/SignedMath.sol";

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @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] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

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

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

File 19 of 19 : 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
{
  "optimizer": {
    "enabled": true,
    "runs": 1000000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"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":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","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"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_BATCH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"addToBlockList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"allowlistActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"blockList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"awrdId","type":"uint256"},{"internalType":"uint256","name":"nMints","type":"uint256"},{"internalType":"uint256","name":"nCounts","type":"uint256"},{"internalType":"uint256","name":"seedId","type":"uint256"},{"internalType":"address","name":"minter","type":"address"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct WARRIORS.SignatureData","name":"_signature","type":"tuple"}],"name":"claimPostMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"emergencyStopMint","outputs":[],"stateMutability":"nonpayable","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":[],"name":"isAllowList","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":[],"name":"isEnded","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"qty","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mintListFreeMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mintListHalfMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mintListPostMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintTotals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"awrdId","type":"uint256"},{"internalType":"address","name":"minter","type":"address"},{"components":[{"internalType":"uint256","name":"awrdId","type":"uint256"},{"internalType":"uint256","name":"nMints","type":"uint256"},{"internalType":"uint256","name":"nCounts","type":"uint256"},{"internalType":"uint256","name":"seedId","type":"uint256"},{"internalType":"address","name":"minter","type":"address"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct WARRIORS.SignatureData[]","name":"_signatures","type":"tuple[]"}],"name":"multiClaim","outputs":[],"stateMutability":"payable","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":[],"name":"open","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"removeFromBlockList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reservedFreeMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rootSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":[],"name":"seedIdAllowMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"seedIdFreeMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"seedIdHalfMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"seedIdPostMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"setAllowMint","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":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_reservedFreeMints","type":"uint256"}],"name":"setReservedFreeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_seedId","type":"uint256"}],"name":"setSeedIdAllowMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_seedId","type":"uint256"}],"name":"setSeedIdFreeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_seedId","type":"uint256"}],"name":"setSeedIdHalfMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_seedId","type":"uint256"}],"name":"setSeedIdPostMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_vault","type":"address"}],"name":"setVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startMint","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":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040526000808055600755600a805461ffff191661010017905560fa600b553480156200002d57600080fd5b506040518060400160405280601081526020016f57415252494f5253204259205a45524760801b815250604051806040016040528060078152602001662ba0a92924a7a960c91b81525060646127a660008111620000e95760405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20636f6c6c656374696f6e206d757374206861766520612060448201526d6e6f6e7a65726f20737570706c7960901b60648201526084015b60405180910390fd5b600082116200014b5760405162461bcd60e51b815260206004820152602760248201527f455243373231413a206d61782062617463682073697a65206d757374206265206044820152666e6f6e7a65726f60c81b6064820152608401620000e0565b83516200016090600190602087019062000945565b5082516200017690600290602086019062000945565b5060a091909152608052506200018e905033620002bb565b6200019b6000336200030d565b620001bc600073e338f87e46e8a9d9d38144743c1ff7311f641af96200030d565b620001db7386a8a293fb94048189f76552eba5ec47bc2722236200031d565b6f5f30feede5deaaed58c5ce6038b57143600f556fcbf563b440f6aeb0049cc048aaeed8a06010556f10af80d34235cc4ff8b5c4515d06b891601155600460125560408051608081019091526042808252620061f0602083013980516200024b91600e9160209091019062000945565b50600c80546001600160a01b031990811673d2973834ca2d087cb18dbdbcecbaef12cf3da57217909155600d805490911673c050a0e9c1c347364e53961420a2b54be8b3b117179055620002b573e338f87e46e8a9d9d38144743c1ff7311f641af960016200039c565b62000b38565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620003198282620003be565b5050565b6200032762000462565b6001600160a01b0381166200038e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401620000e0565b6200039981620002bb565b50565b62000319828260405180602001604052806000815250620004c060201b60201c565b60008281526009602090815260408083206001600160a01b038516845290915290205460ff16620003195760008281526009602090815260408083206001600160a01b03851684529091529020805460ff191660011790556200041e3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6008546001600160a01b03163314620004be5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401620000e0565b565b6000546001600160a01b038416620005255760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401620000e0565b62000531816000541190565b15620005805760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401620000e0565b60a051831115620005df5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696044820152610ced60f31b6064820152608401620000e0565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b038082168352600160801b90910416918101919091528151808301909252805190919081906200063d90879062000a01565b6001600160801b031681526020018583602001516200065d919062000a01565b6001600160801b039081169091526001600160a01b0380881660008181526004602090815260408083208751978301518716600160801b029790961696909617909455845180860186529182526001600160401b034281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b85811015620007c15760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4620007436000888488620007cc565b6200079c5760405162461bcd60e51b815260206004820152603360248201526000805160206200623283398151915260448201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b6064820152608401620000e0565b81620007a88162000a2f565b9250508080620007b89062000a2f565b915050620006f3565b506000555050505050565b6000620007ed846001600160a01b03166200093660201b620031561760201c565b156200092a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906200082790339089908890889060040162000a4d565b602060405180830381600087803b1580156200084257600080fd5b505af192505050801562000875575060408051601f3d908101601f19168201909252620008729181019062000ac8565b60015b6200090f573d808015620008a6576040519150601f19603f3d011682016040523d82523d6000602084013e620008ab565b606091505b508051620009075760405162461bcd60e51b815260206004820152603360248201526000805160206200623283398151915260448201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b6064820152608401620000e0565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506200092e565b5060015b949350505050565b6001600160a01b03163b151590565b828054620009539062000afb565b90600052602060002090601f016020900481019282620009775760008555620009c2565b82601f106200099257805160ff1916838001178555620009c2565b82800160010185558215620009c2579182015b82811115620009c2578251825591602001919060010190620009a5565b50620009d0929150620009d4565b5090565b5b80821115620009d05760008155600101620009d5565b634e487b7160e01b600052601160045260246000fd5b60006001600160801b0382811684821680830382111562000a265762000a26620009eb565b01949350505050565b600060001982141562000a465762000a46620009eb565b5060010190565b600060018060a01b038087168352602081871681850152856040850152608060608501528451915081608085015260005b8281101562000a9c5785810182015185820160a00152810162000a7e565b8281111562000aaf57600060a084870101525b5050601f01601f19169190910160a00195945050505050565b60006020828403121562000adb57600080fd5b81516001600160e01b03198116811462000af457600080fd5b9392505050565b600181811c9082168062000b1057607f821691505b6020821081141562000b3257634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05161568762000b6960003960008181613a6801528181613a92015261444b0152600050506156876000f3fe6080604052600436106103de5760003560e01c80638b076b9b1161020d578063b539928311610128578063e985e9c5116100bb578063f47489341161008a578063fbfa77cf1161006f578063fbfa77cf14610bcd578063fcfff16f14610bfa578063fd38cf2a14610c1457600080fd5b8063f474893414610b8d578063f4d36c0714610bad57600080fd5b8063e985e9c514610aeb578063ec29cd8414610b41578063f0292a0314610b57578063f2fde38b14610b6d57600080fd5b8063d7224ba0116100f7578063d7224ba014610a78578063d994010714610a8e578063dade98f814610aae578063dc4efe1014610ace57600080fd5b8063b5399283146109e8578063b88d4fde14610a18578063c87b56dd14610a38578063d547741f14610a5857600080fd5b8063a15ab492116101a0578063a4fd6f561161016f578063a4fd6f561461097d578063af0b5da314610992578063b409e203146109b2578063b51672cc146109c857600080fd5b8063a15ab49214610905578063a217fddf14610932578063a22cb46514610947578063a2352a341461096757600080fd5b806391d14854116101dc57806391d148541461085b578063950bff9f146108ae57806395d89b41146108c3578063a00a8bde146108d857600080fd5b80638b076b9b146107c85780638d859f3e146107e75780638da5cb5b146108035780638fe3b2e81461082e57600080fd5b8063375316cf116102fd5780636352211e116102905780636c19e7831161025f5780636c19e7831461075d57806370a082311461077d578063715018a61461079d57806380837c60146107b257600080fd5b80636352211e146106f35780636817031b146107135780636b849630146107335780636c0360eb1461074857600080fd5b806343d689cc116102cc57806343d689cc1461068557806347535d7b1461069b5780634f6ccce7146106b357806355f804b3146106d357600080fd5b8063375316cf146106105780633ccfd60b1461063d57806340c10f191461065257806342842e0e1461066557600080fd5b80632b0c1b211161037557806332cb6b0c1161034457806332cb6b0c146105b257806336568abe146105c85780633702f1b9146105e85780633721a281146105fb57600080fd5b80632b0c1b21146105305780632be095611461055d5780632f2ff15d146105725780632f745c591461059257600080fd5b806314edeec6116103b157806314edeec6146104a157806318160ddd146104c157806323b872dd146104e0578063248a9ca31461050057600080fd5b806301ffc9a7146103e357806306fdde0314610418578063081812fc1461043a578063095ea7b31461047f575b600080fd5b3480156103ef57600080fd5b506104036103fe366004614c84565b610c27565b60405190151581526020015b60405180910390f35b34801561042457600080fd5b5061042d610c38565b60405161040f9190614d17565b34801561044657600080fd5b5061045a610455366004614d2a565b610cca565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161040f565b34801561048b57600080fd5b5061049f61049a366004614d6c565b610d91565b005b3480156104ad57600080fd5b5061049f6104bc366004614e38565b610f1f565b3480156104cd57600080fd5b506000545b60405190815260200161040f565b3480156104ec57600080fd5b5061049f6104fb366004614ed5565b610fbd565b34801561050c57600080fd5b506104d261051b366004614d2a565b60009081526009602052604090206001015490565b34801561053c57600080fd5b506104d261054b366004614d2a565b60146020526000908152604090205481565b34801561056957600080fd5b5061049f610fc8565b34801561057e57600080fd5b5061049f61058d366004614f11565b61106e565b34801561059e57600080fd5b506104d26105ad366004614d6c565b611093565b3480156105be57600080fd5b506104d261271081565b3480156105d457600080fd5b5061049f6105e3366004614f11565b611297565b61049f6105f6366004615071565b61134a565b34801561060757600080fd5b5061049f6117e6565b34801561061c57600080fd5b506104d261062b3660046150a6565b60166020526000908152604090205481565b34801561064957600080fd5b5061049f61182c565b61049f610660366004614d6c565b611901565b34801561067157600080fd5b5061049f610680366004614ed5565b611dd8565b34801561069157600080fd5b506104d260115481565b3480156106a757600080fd5b50600a5460ff16610403565b3480156106bf57600080fd5b506104d26106ce366004614d2a565b611df3565b3480156106df57600080fd5b5061049f6106ee3660046150c1565b611e89565b3480156106ff57600080fd5b5061045a61070e366004614d2a565b611ea7565b34801561071f57600080fd5b5061049f61072e3660046150a6565b611eb9565b34801561073f57600080fd5b5061049f611f0c565b34801561075457600080fd5b5061042d611f42565b34801561076957600080fd5b5061049f6107783660046150a6565b611fd0565b34801561078957600080fd5b506104d26107983660046150a6565b612023565b3480156107a957600080fd5b5061049f612103565b3480156107be57600080fd5b506104d260105481565b3480156107d457600080fd5b50600a5461040390610100900460ff1681565b3480156107f357600080fd5b506104d267016345785d8a000081565b34801561080f57600080fd5b5060085473ffffffffffffffffffffffffffffffffffffffff1661045a565b34801561083a57600080fd5b506104d2610849366004614d2a565b60156020526000908152604090205481565b34801561086757600080fd5b50610403610876366004614f11565b600091825260096020908152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b3480156108ba57600080fd5b506104d2606481565b3480156108cf57600080fd5b5061042d612117565b3480156108e457600080fd5b506104d26108f3366004614d2a565b60136020526000908152604090205481565b34801561091157600080fd5b50600c5461045a9073ffffffffffffffffffffffffffffffffffffffff1681565b34801561093e57600080fd5b506104d2600081565b34801561095357600080fd5b5061049f61096236600461510a565b612126565b34801561097357600080fd5b506104d2600f5481565b34801561098957600080fd5b5061040361223d565b34801561099e57600080fd5b5061049f6109ad366004614d2a565b612259565b3480156109be57600080fd5b506104d2600b5481565b3480156109d457600080fd5b5061049f6109e3366004614d2a565b6122e9565b3480156109f457600080fd5b50610403610a033660046150a6565b60176020526000908152604090205460ff1681565b348015610a2457600080fd5b5061049f610a33366004615146565b6122fa565b348015610a4457600080fd5b5061042d610a53366004614d2a565b6123a3565b348015610a6457600080fd5b5061049f610a73366004614f11565b612498565b348015610a8457600080fd5b506104d260075481565b348015610a9a57600080fd5b5061049f610aa9366004614e38565b6124bd565b348015610aba57600080fd5b5061049f610ac9366004614d2a565b61255b565b348015610ada57600080fd5b50600a54610100900460ff16610403565b348015610af757600080fd5b50610403610b063660046151ae565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260066020908152604080832093909416825291909152205460ff1690565b348015610b4d57600080fd5b506104d260125481565b348015610b6357600080fd5b506104d26101f481565b348015610b7957600080fd5b5061049f610b883660046150a6565b61256c565b348015610b9957600080fd5b5061049f610ba8366004614d2a565b612623565b348015610bb957600080fd5b5061049f610bc8366004614d2a565b612634565b348015610bd957600080fd5b50600d5461045a9073ffffffffffffffffffffffffffffffffffffffff1681565b348015610c0657600080fd5b50600a546104039060ff1681565b61049f610c223660046151d8565b612645565b6000610c3282613172565b92915050565b606060018054610c47906152a5565b80601f0160208091040260200160405190810160405280929190818152602001828054610c73906152a5565b8015610cc05780601f10610c9557610100808354040283529160200191610cc0565b820191906000526020600020905b815481529060010190602001808311610ca357829003601f168201915b5050505050905090565b6000610cd7826000541190565b610d68576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e0000000000000000000000000000000000000060648201526084015b60405180910390fd5b5060009081526005602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610d9c82611ea7565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610e5a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201527f65720000000000000000000000000000000000000000000000000000000000006064820152608401610d5f565b3373ffffffffffffffffffffffffffffffffffffffff82161480610e835750610e838133610b06565b610f0f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610d5f565b610f1a8383836131c8565b505050565b6000610f2a81613249565b60005b8251811015610f1a57600160176000858481518110610f4e57610f4e6152f9565b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff16825281019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001691151591909117905580610fb581615357565b915050610f2d565b610f1a838383613253565b6000610fd381613249565b600a5460ff1615611040576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f4d696e742068617320616c7265616479207374617274656400000000000000006044820152606401610d5f565b50600a80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b60008281526009602052604090206001015461108981613249565b610f1a8383613775565b600061109e83612023565b821061112c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60448201527f64730000000000000000000000000000000000000000000000000000000000006064820152608401610d5f565b600080549080805b8381101561120e5760008181526003602090815260409182902082518084019093525473ffffffffffffffffffffffffffffffffffffffff81168084527401000000000000000000000000000000000000000090910467ffffffffffffffff1691830191909152156111a557805192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156111fb57868414156111ed57509350610c3292505050565b836111f781615357565b9450505b508061120681615357565b915050611134565b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201527f6f776e657220627920696e6465780000000000000000000000000000000000006064820152608401610d5f565b73ffffffffffffffffffffffffffffffffffffffff8116331461133c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610d5f565b6113468282613869565b5050565b61135261223d565b6113b8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f4d696e74206f6e676f696e672e000000000000000000000000000000000000006044820152606401610d5f565b606481602001511115611427576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45786365656473206d6178696d756d20626174636820616d6f756e742e0000006044820152606401610d5f565b602080820151608083015173ffffffffffffffffffffffffffffffffffffffff16600090815260169092526040909120546101f49161146591615390565b11156114f3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45786365656473206d6178696d756d206d696e7420616d6f756e74207065722060448201527f757365722e0000000000000000000000000000000000000000000000000000006064820152608401610d5f565b601254816060015114611562576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f496e76616c6964206c697374207365656420696e7075742e00000000000000006044820152606401610d5f565b805160408083015160808401516060808601518451602081019690965293850192909252811b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016908301526074820152600090609401604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529082905280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000091830191909152603c820152605c01604051602081830303815290604052805190602001209050611669600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828460a00151613924565b6116cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f496e76616c6964207369676e61747572652e00000000000000000000000000006044820152606401610d5f565b81516000908152601560205260409081902054908301516116f091906153a8565b8260200151111561175d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4e6f2072656d61696e696e6720636c61696d732e0000000000000000000000006044820152606401610d5f565b8160200151601560008460000151815260200190815260200160002060008282546117889190615390565b9091555050602080830151608084015173ffffffffffffffffffffffffffffffffffffffff1660009081526016909252604082208054919290916117cd908490615390565b925050819055506113468260800151836020015161399f565b60006117f181613249565b50600a80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff81166101009182900460ff1615909102179055565b600061183781613249565b600d5460405160009173ffffffffffffffffffffffffffffffffffffffff169047908381818185875af1925050503d8060008114611891576040519150601f19603f3d011682016040523d82523d6000602084013e611896565b606091505b5050905080611346576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f4661696c656420746f207472616e73666572207061796d656e742e00000000006044820152606401610d5f565b600a5460ff1661196d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f4d696e74206973206e6f74206f70656e000000000000000000000000000000006044820152606401610d5f565b73ffffffffffffffffffffffffffffffffffffffff821660009081526017602052604090205460ff16156119fd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f596f752061726520696e2074686520626c6f636b206c697374000000000000006044820152606401610d5f565b612710600b5482611a0d60005490565b611a179190615390565b611a219190615390565b1115611a89576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f45786365656473206d6178696d756d20737570706c792e0000000000000000006044820152606401610d5f565b600a54610100900460ff1615611b21576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f416c6c6f776c697374206d696e742069732063757272656e746c79206163746960448201527f76652e00000000000000000000000000000000000000000000000000000000006064820152608401610d5f565b611b338167016345785d8a00006153bf565b3414611b9b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f57726f6e672070726963652e00000000000000000000000000000000000000006044820152606401610d5f565b6064811115611c06576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45786365656473206d6178696d756d20626174636820616d6f756e742e0000006044820152606401610d5f565b73ffffffffffffffffffffffffffffffffffffffff82166000908152601660205260409020546101f490611c3b908390615390565b1115611cc9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45786365656473206d6178696d756d206d696e7420616d6f756e74207065722060448201527f757365722e0000000000000000000000000000000000000000000000000000006064820152608401610d5f565b600d5460405160009173ffffffffffffffffffffffffffffffffffffffff169034908381818185875af1925050503d8060008114611d23576040519150601f19603f3d011682016040523d82523d6000602084013e611d28565b606091505b5050905080611d93576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f4661696c656420746f207472616e73666572207061796d656e742e00000000006044820152606401610d5f565b73ffffffffffffffffffffffffffffffffffffffff831660009081526016602052604081208054849290611dc8908490615390565b90915550610f1a9050838361399f565b610f1a838383604051806020016040528060008152506122fa565b600080548210611e85576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560448201527f6e647300000000000000000000000000000000000000000000000000000000006064820152608401610d5f565b5090565b6000611e9481613249565b8151610f1a90600e906020850190614bc6565b6000611eb2826139b9565b5192915050565b6000611ec481613249565b50600d80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6000611f1781613249565b50600a80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b600e8054611f4f906152a5565b80601f0160208091040260200160405190810160405280929190818152602001828054611f7b906152a5565b8015611fc85780601f10611f9d57610100808354040283529160200191611fc8565b820191906000526020600020905b815481529060010190602001808311611fab57829003601f168201915b505050505081565b6000611fdb81613249565b50600c80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600073ffffffffffffffffffffffffffffffffffffffff82166120c8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201527f65726f20616464726573730000000000000000000000000000000000000000006064820152608401610d5f565b5073ffffffffffffffffffffffffffffffffffffffff166000908152600460205260409020546fffffffffffffffffffffffffffffffff1690565b61210b613bd6565b6121156000613c57565b565b606060028054610c47906152a5565b73ffffffffffffffffffffffffffffffffffffffff82163314156121a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610d5f565b33600081815260066020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600a5460009060ff16158015612254575060008054115b905090565b600061226481613249565b6127108261227160005490565b61227b9190615390565b11156122e3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f45786365656473206d6178696d756d20737570706c792e0000000000000000006044820152606401610d5f565b50600b55565b60006122f481613249565b50601155565b612305848484613253565b61231184848484613cce565b61239d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610d5f565b50505050565b60606123b0826000541190565b61243c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610d5f565b6000612446613ece565b905060008151116124665760405180602001604052806000815250612491565b8061247084613edd565b6040516020016124819291906153fc565b6040516020818303038152906040525b9392505050565b6000828152600960205260409020600101546124b381613249565b610f1a8383613869565b60006124c881613249565b60005b8251811015610f1a576000601760008584815181106124ec576124ec6152f9565b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff16825281019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169115159190911790558061255381615357565b9150506124cb565b600061256681613249565b50600f55565b612574613bd6565b73ffffffffffffffffffffffffffffffffffffffff8116612617576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610d5f565b61262081613c57565b50565b600061262e81613249565b50601255565b600061263f81613249565b50601055565b600a5460ff166126b1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f4d696e74206973206e6f74206f70656e000000000000000000000000000000006044820152606401610d5f565b600081511161271c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f456d707479207369676e61747572652061727261792e000000000000000000006044820152606401610d5f565b60008060005b8351811015612e1b57600086858381518110612740576127406152f9565b6020026020010151604001518787858151811061275f5761275f6152f9565b6020026020010151606001516040516020016127b99493929190938452602084019290925260601b7fffffffffffffffffffffffffffffffffffffffff000000000000000000000000166040830152605482015260740190565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529082905280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000091830191909152603c820152605c01604051602081830303815290604052805190602001209050612882600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682878581518110612871576128716152f9565b602002602001015160a00151613924565b6128e8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f496e76616c6964207369676e61747572652e00000000000000000000000000006044820152606401610d5f565b600f548583815181106128fd576128fd6152f9565b6020026020010151606001511415612b0357600b54858381518110612924576129246152f9565b6020026020010151602001511115612998576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f416c6c2072657365727665642046726565204d696e742061726520676f6e65216044820152606401610d5f565b60008781526013602052604090205485518690849081106129bb576129bb6152f9565b6020026020010151604001516129d191906153a8565b8583815181106129e3576129e36152f9565b6020026020010151602001511115612a57576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f4e6f2072656d61696e696e672046726565204d696e742e0000000000000000006044820152606401610d5f565b848281518110612a6957612a696152f9565b602002602001015160200151601360008981526020019081526020016000206000828254612a979190615390565b92505081905550848281518110612ab057612ab06152f9565b60200260200101516020015183612ac79190615390565b9250848281518110612adb57612adb6152f9565b602002602001015160200151600b6000828254612af891906153a8565b90915550612e089050565b601054858381518110612b1857612b186152f9565b6020026020010151606001511415612ca9576000878152601460205260409020548551869084908110612b4d57612b4d6152f9565b602002602001015160400151612b6391906153a8565b858381518110612b7557612b756152f9565b6020026020010151602001511115612be9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f4e6f2072656d61696e696e672048616c66205072696365204d696e742e0000006044820152606401610d5f565b848281518110612bfb57612bfb6152f9565b602002602001015160200151600267016345785d8a0000612c1c919061542b565b612c2691906153bf565b612c309085615390565b9350848281518110612c4457612c446152f9565b602002602001015160200151601460008981526020019081526020016000206000828254612c729190615390565b92505081905550848281518110612c8b57612c8b6152f9565b60200260200101516020015183612ca29190615390565b9250612e08565b601154858381518110612cbe57612cbe6152f9565b6020026020010151606001511415612da6576000858381518110612ce457612ce46152f9565b60200260200101516040015111612d57576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4e6f7420616c6c6f7765642e00000000000000000000000000000000000000006044820152606401610d5f565b848281518110612d6957612d696152f9565b60200260200101516020015167016345785d8a0000612d8891906153bf565b612d929085615390565b9350848281518110612c8b57612c8b6152f9565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f496e76616c6964207365656449640000000000000000000000000000000000006044820152606401610d5f565b5080612e1381615357565b915050612722565b506064811115612e87576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45786365656473206d6178696d756d20626174636820616d6f756e742e0000006044820152606401610d5f565b73ffffffffffffffffffffffffffffffffffffffff84166000908152601660205260409020546101f490612ebc908390615390565b1115612f4a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45786365656473206d6178696d756d206d696e7420616d6f756e74207065722060448201527f757365722e0000000000000000000000000000000000000000000000000000006064820152608401610d5f565b612710600b5482612f5a60005490565b612f649190615390565b612f6e9190615390565b1115612fd6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f45786365656473206d6178696d756d20737570706c792e0000000000000000006044820152606401610d5f565b81341461303f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f57726f6e6720746f74616c2070726963650000000000000000000000000000006044820152606401610d5f565b600d5460405160009173ffffffffffffffffffffffffffffffffffffffff169034908381818185875af1925050503d8060008114613099576040519150601f19603f3d011682016040523d82523d6000602084013e61309e565b606091505b5050905080613109576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f4661696c656420746f207472616e73666572207061796d656e742e00000000006044820152606401610d5f565b73ffffffffffffffffffffffffffffffffffffffff85166000908152601660205260408120805484929061313e908490615390565b9091555061314e9050858361399f565b505050505050565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b000000000000000000000000000000000000000000000000000000001480610c325750610c3282613fa5565b60008281526005602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff87811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b61262081336140d4565b600061325e826139b9565b805190915060009073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806132bc5750336132a484610cca565b73ffffffffffffffffffffffffffffffffffffffff16145b806132ce575081516132ce9033610b06565b90508061335d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610d5f565b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461341c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f727265637460448201527f206f776e657200000000000000000000000000000000000000000000000000006064820152608401610d5f565b73ffffffffffffffffffffffffffffffffffffffff84166134bf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610d5f565b6134cf60008484600001516131c8565b73ffffffffffffffffffffffffffffffffffffffff851660009081526004602052604081208054600192906135179084906fffffffffffffffffffffffffffffffff16615466565b82546101009290920a6fffffffffffffffffffffffffffffffff81810219909316918316021790915573ffffffffffffffffffffffffffffffffffffffff86166000908152600460205260408120805460019450909261357991859116615497565b82546fffffffffffffffffffffffffffffffff9182166101009390930a92830291909202199091161790555060408051808201825273ffffffffffffffffffffffffffffffffffffffff808716825267ffffffffffffffff42811660208085019182526000898152600390915294852093518454915190921674010000000000000000000000000000000000000000027fffffffff000000000000000000000000000000000000000000000000000000009091169190921617179055613640846001615390565b60008181526003602052604090205490915073ffffffffffffffffffffffffffffffffffffffff1661371557613677816000541190565b1561371557604080518082018252845173ffffffffffffffffffffffffffffffffffffffff908116825260208087015167ffffffffffffffff908116828501908152600087815260039093529490912092518354945190911674010000000000000000000000000000000000000000027fffffffff000000000000000000000000000000000000000000000000000000009094169116179190911790555b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461314e565b600082815260096020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1661134657600082815260096020908152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905561380b3390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600082815260096020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff161561134657600082815260096020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000806000613933858561418e565b9092509050600081600481111561394c5761394c6154c2565b14801561398457508573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b8061399557506139958686866141d4565b9695505050505050565b611346828260405180602001604052806000815250614331565b60408051808201909152600080825260208201526139d8826000541190565b613a64576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360448201527f74656e7420746f6b656e000000000000000000000000000000000000000000006064820152608401610d5f565b60007f00000000000000000000000000000000000000000000000000000000000000008310613ac557613ab77f0000000000000000000000000000000000000000000000000000000000000000846153a8565b613ac2906001615390565b90505b825b818110613b4d5760008181526003602090815260409182902082518084019093525473ffffffffffffffffffffffffffffffffffffffff81168084527401000000000000000000000000000000000000000090910467ffffffffffffffff169183019190915215613b3a57949350505050565b5080613b45816154f1565b915050613ac7565b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201527f206f776e6572206f6620746f6b656e00000000000000000000000000000000006064820152608401610d5f565b60085473ffffffffffffffffffffffffffffffffffffffff163314612115576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d5f565b6008805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600073ffffffffffffffffffffffffffffffffffffffff84163b15613ec2576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a0290613d45903390899088908890600401615526565b602060405180830381600087803b158015613d5f57600080fd5b505af1925050508015613dad575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252613daa91810190615565565b60015b613e77573d808015613ddb576040519150601f19603f3d011682016040523d82523d6000602084013e613de0565b606091505b508051613e6f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610d5f565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050613ec6565b5060015b949350505050565b6060600e8054610c47906152a5565b60606000613eea83614793565b600101905060008167ffffffffffffffff811115613f0a57613f0a614d96565b6040519080825280601f01601f191660200182016040528015613f34576020820181803683370190505b5090508181016020015b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8504945084613f9857613f9d565b613f3e565b509392505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061403857507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061408457507fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d6300000000000000000000000000000000000000000000000000000000145b80610c3257507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610c32565b600082815260096020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff166113465761411481614875565b61411f836020614894565b604051602001614130929190615582565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a0000000000000000000000000000000000000000000000000000000008252610d5f91600401614d17565b6000808251604114156141c55760208301516040840151606085015160001a6141b987828585614ad7565b945094505050506141cd565b506000905060025b9250929050565b60008060008573ffffffffffffffffffffffffffffffffffffffff16631626ba7e60e01b868660405160240161420b929190615603565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909416939093179092529051614294919061561c565b600060405180830381855afa9150503d80600081146142cf576040519150601f19603f3d011682016040523d82523d6000602084013e6142d4565b606091505b50915091508180156142e857506020815110155b8015613995575080517f1626ba7e00000000000000000000000000000000000000000000000000000000906143269083016020908101908401615638565b149695505050505050565b60005473ffffffffffffffffffffffffffffffffffffffff84166143d7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610d5f565b6143e2816000541190565b15614449576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610d5f565b7f00000000000000000000000000000000000000000000000000000000000000008311156144f9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960448201527f67680000000000000000000000000000000000000000000000000000000000006064820152608401610d5f565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600460209081526040918290208251808401845290546fffffffffffffffffffffffffffffffff80821683527001000000000000000000000000000000009091041691810191909152815180830190925280519091908190614578908790615497565b6fffffffffffffffffffffffffffffffff16815260200185836020015161459f9190615497565b6fffffffffffffffffffffffffffffffff90811690915273ffffffffffffffffffffffffffffffffffffffff808816600081815260046020908152604080832087519783015187167001000000000000000000000000000000000297909616969096179094558451808601865291825267ffffffffffffffff428116838601908152888352600390955294812091518254945190951674010000000000000000000000000000000000000000027fffffffff0000000000000000000000000000000000000000000000000000000090941694909216939093179190911790915582905b8581101561478857604051829073ffffffffffffffffffffffffffffffffffffffff8916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46146dc6000888488613cce565b614768576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610d5f565b8161477281615357565b925050808061478090615357565b915050614682565b50600081905561314e565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106147dc577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef81000000008310614808576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061482657662386f26fc10000830492506010015b6305f5e100831061483e576305f5e100830492506008015b612710831061485257612710830492506004015b60648310614864576064830492506002015b600a8310610c325760010192915050565b6060610c3273ffffffffffffffffffffffffffffffffffffffff831660145b606060006148a38360026153bf565b6148ae906002615390565b67ffffffffffffffff8111156148c6576148c6614d96565b6040519080825280601f01601f1916602001820160405280156148f0576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110614927576149276152f9565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061498a5761498a6152f9565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006149c68460026153bf565b6149d1906001615390565b90505b6001811115614a6e577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110614a1257614a126152f9565b1a60f81b828281518110614a2857614a286152f9565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c93614a67816154f1565b90506149d4565b508315612491576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610d5f565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115614b0e5750600090506003614bbd565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015614b62573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff8116614bb657600060019250925050614bbd565b9150600090505b94509492505050565b828054614bd2906152a5565b90600052602060002090601f016020900481019282614bf45760008555614c3a565b82601f10614c0d57805160ff1916838001178555614c3a565b82800160010185558215614c3a579182015b82811115614c3a578251825591602001919060010190614c1f565b50611e859291505b80821115611e855760008155600101614c42565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461262057600080fd5b600060208284031215614c9657600080fd5b813561249181614c56565b60005b83811015614cbc578181015183820152602001614ca4565b8381111561239d5750506000910152565b60008151808452614ce5816020860160208601614ca1565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020815260006124916020830184614ccd565b600060208284031215614d3c57600080fd5b5035919050565b803573ffffffffffffffffffffffffffffffffffffffff81168114614d6757600080fd5b919050565b60008060408385031215614d7f57600080fd5b614d8883614d43565b946020939093013593505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715614e0c57614e0c614d96565b604052919050565b600067ffffffffffffffff821115614e2e57614e2e614d96565b5060051b60200190565b60006020808385031215614e4b57600080fd5b823567ffffffffffffffff811115614e6257600080fd5b8301601f81018513614e7357600080fd5b8035614e86614e8182614e14565b614dc5565b81815260059190911b82018301908381019087831115614ea557600080fd5b928401925b82841015614eca57614ebb84614d43565b82529284019290840190614eaa565b979650505050505050565b600080600060608486031215614eea57600080fd5b614ef384614d43565b9250614f0160208501614d43565b9150604084013590509250925092565b60008060408385031215614f2457600080fd5b82359150614f3460208401614d43565b90509250929050565b600067ffffffffffffffff831115614f5757614f57614d96565b614f8860207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f86011601614dc5565b9050828152838383011115614f9c57600080fd5b828260208301376000602084830101529392505050565b600082601f830112614fc457600080fd5b61249183833560208501614f3d565b600060c08284031215614fe557600080fd5b60405160c0810167ffffffffffffffff828210818311171561500957615009614d96565b816040528293508435835260208501356020840152604085013560408401526060850135606084015261503e60808601614d43565b608084015260a085013591508082111561505757600080fd5b5061506485828601614fb3565b60a0830152505092915050565b60006020828403121561508357600080fd5b813567ffffffffffffffff81111561509a57600080fd5b613ec684828501614fd3565b6000602082840312156150b857600080fd5b61249182614d43565b6000602082840312156150d357600080fd5b813567ffffffffffffffff8111156150ea57600080fd5b8201601f810184136150fb57600080fd5b613ec684823560208401614f3d565b6000806040838503121561511d57600080fd5b61512683614d43565b91506020830135801515811461513b57600080fd5b809150509250929050565b6000806000806080858703121561515c57600080fd5b61516585614d43565b935061517360208601614d43565b925060408501359150606085013567ffffffffffffffff81111561519657600080fd5b6151a287828801614fb3565b91505092959194509250565b600080604083850312156151c157600080fd5b6151ca83614d43565b9150614f3460208401614d43565b6000806000606084860312156151ed57600080fd5b8335925060206151fe818601614d43565b9250604085013567ffffffffffffffff8082111561521b57600080fd5b818701915087601f83011261522f57600080fd5b813561523d614e8182614e14565b81815260059190911b8301840190848101908a83111561525c57600080fd5b8585015b83811015615294578035858111156152785760008081fd5b6152868d89838a0101614fd3565b845250918601918601615260565b508096505050505050509250925092565b600181811c908216806152b957607f821691505b602082108114156152f3577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561538957615389615328565b5060010190565b600082198211156153a3576153a3615328565b500190565b6000828210156153ba576153ba615328565b500390565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156153f7576153f7615328565b500290565b6000835161540e818460208801614ca1565b835190830190615422818360208801614ca1565b01949350505050565b600082615461577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b60006fffffffffffffffffffffffffffffffff8381169083168181101561548f5761548f615328565b039392505050565b60006fffffffffffffffffffffffffffffffff80831681851680830382111561542257615422615328565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60008161550057615500615328565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b600073ffffffffffffffffffffffffffffffffffffffff8087168352808616602084015250836040830152608060608301526139956080830184614ccd565b60006020828403121561557757600080fd5b815161249181614c56565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516155ba816017850160208801614ca1565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516155f7816028840160208801614ca1565b01602801949350505050565b828152604060208201526000613ec66040830184614ccd565b6000825161562e818460208701614ca1565b9190910192915050565b60006020828403121561564a57600080fd5b505191905056fea26469706673582212203fb397e3e2022ad26cf60538b43444a9540027e15c9081933e85eb2ce309211a64736f6c6343000809003368747470733a2f2f77617272696f72732d7a6572672e73332e616d617a6f6e6177732e636f6d2f77617272696f72732f6d657461646174612f77617272696f72732f455243373231413a207472616e7366657220746f206e6f6e2045524337323152

Deployed Bytecode

0x6080604052600436106103de5760003560e01c80638b076b9b1161020d578063b539928311610128578063e985e9c5116100bb578063f47489341161008a578063fbfa77cf1161006f578063fbfa77cf14610bcd578063fcfff16f14610bfa578063fd38cf2a14610c1457600080fd5b8063f474893414610b8d578063f4d36c0714610bad57600080fd5b8063e985e9c514610aeb578063ec29cd8414610b41578063f0292a0314610b57578063f2fde38b14610b6d57600080fd5b8063d7224ba0116100f7578063d7224ba014610a78578063d994010714610a8e578063dade98f814610aae578063dc4efe1014610ace57600080fd5b8063b5399283146109e8578063b88d4fde14610a18578063c87b56dd14610a38578063d547741f14610a5857600080fd5b8063a15ab492116101a0578063a4fd6f561161016f578063a4fd6f561461097d578063af0b5da314610992578063b409e203146109b2578063b51672cc146109c857600080fd5b8063a15ab49214610905578063a217fddf14610932578063a22cb46514610947578063a2352a341461096757600080fd5b806391d14854116101dc57806391d148541461085b578063950bff9f146108ae57806395d89b41146108c3578063a00a8bde146108d857600080fd5b80638b076b9b146107c85780638d859f3e146107e75780638da5cb5b146108035780638fe3b2e81461082e57600080fd5b8063375316cf116102fd5780636352211e116102905780636c19e7831161025f5780636c19e7831461075d57806370a082311461077d578063715018a61461079d57806380837c60146107b257600080fd5b80636352211e146106f35780636817031b146107135780636b849630146107335780636c0360eb1461074857600080fd5b806343d689cc116102cc57806343d689cc1461068557806347535d7b1461069b5780634f6ccce7146106b357806355f804b3146106d357600080fd5b8063375316cf146106105780633ccfd60b1461063d57806340c10f191461065257806342842e0e1461066557600080fd5b80632b0c1b211161037557806332cb6b0c1161034457806332cb6b0c146105b257806336568abe146105c85780633702f1b9146105e85780633721a281146105fb57600080fd5b80632b0c1b21146105305780632be095611461055d5780632f2ff15d146105725780632f745c591461059257600080fd5b806314edeec6116103b157806314edeec6146104a157806318160ddd146104c157806323b872dd146104e0578063248a9ca31461050057600080fd5b806301ffc9a7146103e357806306fdde0314610418578063081812fc1461043a578063095ea7b31461047f575b600080fd5b3480156103ef57600080fd5b506104036103fe366004614c84565b610c27565b60405190151581526020015b60405180910390f35b34801561042457600080fd5b5061042d610c38565b60405161040f9190614d17565b34801561044657600080fd5b5061045a610455366004614d2a565b610cca565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161040f565b34801561048b57600080fd5b5061049f61049a366004614d6c565b610d91565b005b3480156104ad57600080fd5b5061049f6104bc366004614e38565b610f1f565b3480156104cd57600080fd5b506000545b60405190815260200161040f565b3480156104ec57600080fd5b5061049f6104fb366004614ed5565b610fbd565b34801561050c57600080fd5b506104d261051b366004614d2a565b60009081526009602052604090206001015490565b34801561053c57600080fd5b506104d261054b366004614d2a565b60146020526000908152604090205481565b34801561056957600080fd5b5061049f610fc8565b34801561057e57600080fd5b5061049f61058d366004614f11565b61106e565b34801561059e57600080fd5b506104d26105ad366004614d6c565b611093565b3480156105be57600080fd5b506104d261271081565b3480156105d457600080fd5b5061049f6105e3366004614f11565b611297565b61049f6105f6366004615071565b61134a565b34801561060757600080fd5b5061049f6117e6565b34801561061c57600080fd5b506104d261062b3660046150a6565b60166020526000908152604090205481565b34801561064957600080fd5b5061049f61182c565b61049f610660366004614d6c565b611901565b34801561067157600080fd5b5061049f610680366004614ed5565b611dd8565b34801561069157600080fd5b506104d260115481565b3480156106a757600080fd5b50600a5460ff16610403565b3480156106bf57600080fd5b506104d26106ce366004614d2a565b611df3565b3480156106df57600080fd5b5061049f6106ee3660046150c1565b611e89565b3480156106ff57600080fd5b5061045a61070e366004614d2a565b611ea7565b34801561071f57600080fd5b5061049f61072e3660046150a6565b611eb9565b34801561073f57600080fd5b5061049f611f0c565b34801561075457600080fd5b5061042d611f42565b34801561076957600080fd5b5061049f6107783660046150a6565b611fd0565b34801561078957600080fd5b506104d26107983660046150a6565b612023565b3480156107a957600080fd5b5061049f612103565b3480156107be57600080fd5b506104d260105481565b3480156107d457600080fd5b50600a5461040390610100900460ff1681565b3480156107f357600080fd5b506104d267016345785d8a000081565b34801561080f57600080fd5b5060085473ffffffffffffffffffffffffffffffffffffffff1661045a565b34801561083a57600080fd5b506104d2610849366004614d2a565b60156020526000908152604090205481565b34801561086757600080fd5b50610403610876366004614f11565b600091825260096020908152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b3480156108ba57600080fd5b506104d2606481565b3480156108cf57600080fd5b5061042d612117565b3480156108e457600080fd5b506104d26108f3366004614d2a565b60136020526000908152604090205481565b34801561091157600080fd5b50600c5461045a9073ffffffffffffffffffffffffffffffffffffffff1681565b34801561093e57600080fd5b506104d2600081565b34801561095357600080fd5b5061049f61096236600461510a565b612126565b34801561097357600080fd5b506104d2600f5481565b34801561098957600080fd5b5061040361223d565b34801561099e57600080fd5b5061049f6109ad366004614d2a565b612259565b3480156109be57600080fd5b506104d2600b5481565b3480156109d457600080fd5b5061049f6109e3366004614d2a565b6122e9565b3480156109f457600080fd5b50610403610a033660046150a6565b60176020526000908152604090205460ff1681565b348015610a2457600080fd5b5061049f610a33366004615146565b6122fa565b348015610a4457600080fd5b5061042d610a53366004614d2a565b6123a3565b348015610a6457600080fd5b5061049f610a73366004614f11565b612498565b348015610a8457600080fd5b506104d260075481565b348015610a9a57600080fd5b5061049f610aa9366004614e38565b6124bd565b348015610aba57600080fd5b5061049f610ac9366004614d2a565b61255b565b348015610ada57600080fd5b50600a54610100900460ff16610403565b348015610af757600080fd5b50610403610b063660046151ae565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260066020908152604080832093909416825291909152205460ff1690565b348015610b4d57600080fd5b506104d260125481565b348015610b6357600080fd5b506104d26101f481565b348015610b7957600080fd5b5061049f610b883660046150a6565b61256c565b348015610b9957600080fd5b5061049f610ba8366004614d2a565b612623565b348015610bb957600080fd5b5061049f610bc8366004614d2a565b612634565b348015610bd957600080fd5b50600d5461045a9073ffffffffffffffffffffffffffffffffffffffff1681565b348015610c0657600080fd5b50600a546104039060ff1681565b61049f610c223660046151d8565b612645565b6000610c3282613172565b92915050565b606060018054610c47906152a5565b80601f0160208091040260200160405190810160405280929190818152602001828054610c73906152a5565b8015610cc05780601f10610c9557610100808354040283529160200191610cc0565b820191906000526020600020905b815481529060010190602001808311610ca357829003601f168201915b5050505050905090565b6000610cd7826000541190565b610d68576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e0000000000000000000000000000000000000060648201526084015b60405180910390fd5b5060009081526005602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610d9c82611ea7565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610e5a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201527f65720000000000000000000000000000000000000000000000000000000000006064820152608401610d5f565b3373ffffffffffffffffffffffffffffffffffffffff82161480610e835750610e838133610b06565b610f0f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610d5f565b610f1a8383836131c8565b505050565b6000610f2a81613249565b60005b8251811015610f1a57600160176000858481518110610f4e57610f4e6152f9565b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff16825281019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001691151591909117905580610fb581615357565b915050610f2d565b610f1a838383613253565b6000610fd381613249565b600a5460ff1615611040576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f4d696e742068617320616c7265616479207374617274656400000000000000006044820152606401610d5f565b50600a80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b60008281526009602052604090206001015461108981613249565b610f1a8383613775565b600061109e83612023565b821061112c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60448201527f64730000000000000000000000000000000000000000000000000000000000006064820152608401610d5f565b600080549080805b8381101561120e5760008181526003602090815260409182902082518084019093525473ffffffffffffffffffffffffffffffffffffffff81168084527401000000000000000000000000000000000000000090910467ffffffffffffffff1691830191909152156111a557805192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156111fb57868414156111ed57509350610c3292505050565b836111f781615357565b9450505b508061120681615357565b915050611134565b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201527f6f776e657220627920696e6465780000000000000000000000000000000000006064820152608401610d5f565b73ffffffffffffffffffffffffffffffffffffffff8116331461133c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610d5f565b6113468282613869565b5050565b61135261223d565b6113b8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f4d696e74206f6e676f696e672e000000000000000000000000000000000000006044820152606401610d5f565b606481602001511115611427576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45786365656473206d6178696d756d20626174636820616d6f756e742e0000006044820152606401610d5f565b602080820151608083015173ffffffffffffffffffffffffffffffffffffffff16600090815260169092526040909120546101f49161146591615390565b11156114f3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45786365656473206d6178696d756d206d696e7420616d6f756e74207065722060448201527f757365722e0000000000000000000000000000000000000000000000000000006064820152608401610d5f565b601254816060015114611562576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f496e76616c6964206c697374207365656420696e7075742e00000000000000006044820152606401610d5f565b805160408083015160808401516060808601518451602081019690965293850192909252811b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016908301526074820152600090609401604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529082905280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000091830191909152603c820152605c01604051602081830303815290604052805190602001209050611669600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828460a00151613924565b6116cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f496e76616c6964207369676e61747572652e00000000000000000000000000006044820152606401610d5f565b81516000908152601560205260409081902054908301516116f091906153a8565b8260200151111561175d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4e6f2072656d61696e696e6720636c61696d732e0000000000000000000000006044820152606401610d5f565b8160200151601560008460000151815260200190815260200160002060008282546117889190615390565b9091555050602080830151608084015173ffffffffffffffffffffffffffffffffffffffff1660009081526016909252604082208054919290916117cd908490615390565b925050819055506113468260800151836020015161399f565b60006117f181613249565b50600a80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff81166101009182900460ff1615909102179055565b600061183781613249565b600d5460405160009173ffffffffffffffffffffffffffffffffffffffff169047908381818185875af1925050503d8060008114611891576040519150601f19603f3d011682016040523d82523d6000602084013e611896565b606091505b5050905080611346576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f4661696c656420746f207472616e73666572207061796d656e742e00000000006044820152606401610d5f565b600a5460ff1661196d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f4d696e74206973206e6f74206f70656e000000000000000000000000000000006044820152606401610d5f565b73ffffffffffffffffffffffffffffffffffffffff821660009081526017602052604090205460ff16156119fd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f596f752061726520696e2074686520626c6f636b206c697374000000000000006044820152606401610d5f565b612710600b5482611a0d60005490565b611a179190615390565b611a219190615390565b1115611a89576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f45786365656473206d6178696d756d20737570706c792e0000000000000000006044820152606401610d5f565b600a54610100900460ff1615611b21576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f416c6c6f776c697374206d696e742069732063757272656e746c79206163746960448201527f76652e00000000000000000000000000000000000000000000000000000000006064820152608401610d5f565b611b338167016345785d8a00006153bf565b3414611b9b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f57726f6e672070726963652e00000000000000000000000000000000000000006044820152606401610d5f565b6064811115611c06576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45786365656473206d6178696d756d20626174636820616d6f756e742e0000006044820152606401610d5f565b73ffffffffffffffffffffffffffffffffffffffff82166000908152601660205260409020546101f490611c3b908390615390565b1115611cc9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45786365656473206d6178696d756d206d696e7420616d6f756e74207065722060448201527f757365722e0000000000000000000000000000000000000000000000000000006064820152608401610d5f565b600d5460405160009173ffffffffffffffffffffffffffffffffffffffff169034908381818185875af1925050503d8060008114611d23576040519150601f19603f3d011682016040523d82523d6000602084013e611d28565b606091505b5050905080611d93576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f4661696c656420746f207472616e73666572207061796d656e742e00000000006044820152606401610d5f565b73ffffffffffffffffffffffffffffffffffffffff831660009081526016602052604081208054849290611dc8908490615390565b90915550610f1a9050838361399f565b610f1a838383604051806020016040528060008152506122fa565b600080548210611e85576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560448201527f6e647300000000000000000000000000000000000000000000000000000000006064820152608401610d5f565b5090565b6000611e9481613249565b8151610f1a90600e906020850190614bc6565b6000611eb2826139b9565b5192915050565b6000611ec481613249565b50600d80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6000611f1781613249565b50600a80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b600e8054611f4f906152a5565b80601f0160208091040260200160405190810160405280929190818152602001828054611f7b906152a5565b8015611fc85780601f10611f9d57610100808354040283529160200191611fc8565b820191906000526020600020905b815481529060010190602001808311611fab57829003601f168201915b505050505081565b6000611fdb81613249565b50600c80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600073ffffffffffffffffffffffffffffffffffffffff82166120c8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201527f65726f20616464726573730000000000000000000000000000000000000000006064820152608401610d5f565b5073ffffffffffffffffffffffffffffffffffffffff166000908152600460205260409020546fffffffffffffffffffffffffffffffff1690565b61210b613bd6565b6121156000613c57565b565b606060028054610c47906152a5565b73ffffffffffffffffffffffffffffffffffffffff82163314156121a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610d5f565b33600081815260066020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600a5460009060ff16158015612254575060008054115b905090565b600061226481613249565b6127108261227160005490565b61227b9190615390565b11156122e3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f45786365656473206d6178696d756d20737570706c792e0000000000000000006044820152606401610d5f565b50600b55565b60006122f481613249565b50601155565b612305848484613253565b61231184848484613cce565b61239d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610d5f565b50505050565b60606123b0826000541190565b61243c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610d5f565b6000612446613ece565b905060008151116124665760405180602001604052806000815250612491565b8061247084613edd565b6040516020016124819291906153fc565b6040516020818303038152906040525b9392505050565b6000828152600960205260409020600101546124b381613249565b610f1a8383613869565b60006124c881613249565b60005b8251811015610f1a576000601760008584815181106124ec576124ec6152f9565b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff16825281019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169115159190911790558061255381615357565b9150506124cb565b600061256681613249565b50600f55565b612574613bd6565b73ffffffffffffffffffffffffffffffffffffffff8116612617576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610d5f565b61262081613c57565b50565b600061262e81613249565b50601255565b600061263f81613249565b50601055565b600a5460ff166126b1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f4d696e74206973206e6f74206f70656e000000000000000000000000000000006044820152606401610d5f565b600081511161271c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f456d707479207369676e61747572652061727261792e000000000000000000006044820152606401610d5f565b60008060005b8351811015612e1b57600086858381518110612740576127406152f9565b6020026020010151604001518787858151811061275f5761275f6152f9565b6020026020010151606001516040516020016127b99493929190938452602084019290925260601b7fffffffffffffffffffffffffffffffffffffffff000000000000000000000000166040830152605482015260740190565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529082905280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000091830191909152603c820152605c01604051602081830303815290604052805190602001209050612882600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682878581518110612871576128716152f9565b602002602001015160a00151613924565b6128e8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f496e76616c6964207369676e61747572652e00000000000000000000000000006044820152606401610d5f565b600f548583815181106128fd576128fd6152f9565b6020026020010151606001511415612b0357600b54858381518110612924576129246152f9565b6020026020010151602001511115612998576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f416c6c2072657365727665642046726565204d696e742061726520676f6e65216044820152606401610d5f565b60008781526013602052604090205485518690849081106129bb576129bb6152f9565b6020026020010151604001516129d191906153a8565b8583815181106129e3576129e36152f9565b6020026020010151602001511115612a57576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f4e6f2072656d61696e696e672046726565204d696e742e0000000000000000006044820152606401610d5f565b848281518110612a6957612a696152f9565b602002602001015160200151601360008981526020019081526020016000206000828254612a979190615390565b92505081905550848281518110612ab057612ab06152f9565b60200260200101516020015183612ac79190615390565b9250848281518110612adb57612adb6152f9565b602002602001015160200151600b6000828254612af891906153a8565b90915550612e089050565b601054858381518110612b1857612b186152f9565b6020026020010151606001511415612ca9576000878152601460205260409020548551869084908110612b4d57612b4d6152f9565b602002602001015160400151612b6391906153a8565b858381518110612b7557612b756152f9565b6020026020010151602001511115612be9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f4e6f2072656d61696e696e672048616c66205072696365204d696e742e0000006044820152606401610d5f565b848281518110612bfb57612bfb6152f9565b602002602001015160200151600267016345785d8a0000612c1c919061542b565b612c2691906153bf565b612c309085615390565b9350848281518110612c4457612c446152f9565b602002602001015160200151601460008981526020019081526020016000206000828254612c729190615390565b92505081905550848281518110612c8b57612c8b6152f9565b60200260200101516020015183612ca29190615390565b9250612e08565b601154858381518110612cbe57612cbe6152f9565b6020026020010151606001511415612da6576000858381518110612ce457612ce46152f9565b60200260200101516040015111612d57576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4e6f7420616c6c6f7765642e00000000000000000000000000000000000000006044820152606401610d5f565b848281518110612d6957612d696152f9565b60200260200101516020015167016345785d8a0000612d8891906153bf565b612d929085615390565b9350848281518110612c8b57612c8b6152f9565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f496e76616c6964207365656449640000000000000000000000000000000000006044820152606401610d5f565b5080612e1381615357565b915050612722565b506064811115612e87576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45786365656473206d6178696d756d20626174636820616d6f756e742e0000006044820152606401610d5f565b73ffffffffffffffffffffffffffffffffffffffff84166000908152601660205260409020546101f490612ebc908390615390565b1115612f4a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45786365656473206d6178696d756d206d696e7420616d6f756e74207065722060448201527f757365722e0000000000000000000000000000000000000000000000000000006064820152608401610d5f565b612710600b5482612f5a60005490565b612f649190615390565b612f6e9190615390565b1115612fd6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f45786365656473206d6178696d756d20737570706c792e0000000000000000006044820152606401610d5f565b81341461303f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f57726f6e6720746f74616c2070726963650000000000000000000000000000006044820152606401610d5f565b600d5460405160009173ffffffffffffffffffffffffffffffffffffffff169034908381818185875af1925050503d8060008114613099576040519150601f19603f3d011682016040523d82523d6000602084013e61309e565b606091505b5050905080613109576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f4661696c656420746f207472616e73666572207061796d656e742e00000000006044820152606401610d5f565b73ffffffffffffffffffffffffffffffffffffffff85166000908152601660205260408120805484929061313e908490615390565b9091555061314e9050858361399f565b505050505050565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b000000000000000000000000000000000000000000000000000000001480610c325750610c3282613fa5565b60008281526005602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff87811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b61262081336140d4565b600061325e826139b9565b805190915060009073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806132bc5750336132a484610cca565b73ffffffffffffffffffffffffffffffffffffffff16145b806132ce575081516132ce9033610b06565b90508061335d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610d5f565b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461341c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f727265637460448201527f206f776e657200000000000000000000000000000000000000000000000000006064820152608401610d5f565b73ffffffffffffffffffffffffffffffffffffffff84166134bf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610d5f565b6134cf60008484600001516131c8565b73ffffffffffffffffffffffffffffffffffffffff851660009081526004602052604081208054600192906135179084906fffffffffffffffffffffffffffffffff16615466565b82546101009290920a6fffffffffffffffffffffffffffffffff81810219909316918316021790915573ffffffffffffffffffffffffffffffffffffffff86166000908152600460205260408120805460019450909261357991859116615497565b82546fffffffffffffffffffffffffffffffff9182166101009390930a92830291909202199091161790555060408051808201825273ffffffffffffffffffffffffffffffffffffffff808716825267ffffffffffffffff42811660208085019182526000898152600390915294852093518454915190921674010000000000000000000000000000000000000000027fffffffff000000000000000000000000000000000000000000000000000000009091169190921617179055613640846001615390565b60008181526003602052604090205490915073ffffffffffffffffffffffffffffffffffffffff1661371557613677816000541190565b1561371557604080518082018252845173ffffffffffffffffffffffffffffffffffffffff908116825260208087015167ffffffffffffffff908116828501908152600087815260039093529490912092518354945190911674010000000000000000000000000000000000000000027fffffffff000000000000000000000000000000000000000000000000000000009094169116179190911790555b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461314e565b600082815260096020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1661134657600082815260096020908152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905561380b3390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600082815260096020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff161561134657600082815260096020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000806000613933858561418e565b9092509050600081600481111561394c5761394c6154c2565b14801561398457508573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b8061399557506139958686866141d4565b9695505050505050565b611346828260405180602001604052806000815250614331565b60408051808201909152600080825260208201526139d8826000541190565b613a64576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360448201527f74656e7420746f6b656e000000000000000000000000000000000000000000006064820152608401610d5f565b60007f00000000000000000000000000000000000000000000000000000000000000648310613ac557613ab77f0000000000000000000000000000000000000000000000000000000000000064846153a8565b613ac2906001615390565b90505b825b818110613b4d5760008181526003602090815260409182902082518084019093525473ffffffffffffffffffffffffffffffffffffffff81168084527401000000000000000000000000000000000000000090910467ffffffffffffffff169183019190915215613b3a57949350505050565b5080613b45816154f1565b915050613ac7565b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201527f206f776e6572206f6620746f6b656e00000000000000000000000000000000006064820152608401610d5f565b60085473ffffffffffffffffffffffffffffffffffffffff163314612115576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d5f565b6008805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600073ffffffffffffffffffffffffffffffffffffffff84163b15613ec2576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a0290613d45903390899088908890600401615526565b602060405180830381600087803b158015613d5f57600080fd5b505af1925050508015613dad575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252613daa91810190615565565b60015b613e77573d808015613ddb576040519150601f19603f3d011682016040523d82523d6000602084013e613de0565b606091505b508051613e6f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610d5f565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050613ec6565b5060015b949350505050565b6060600e8054610c47906152a5565b60606000613eea83614793565b600101905060008167ffffffffffffffff811115613f0a57613f0a614d96565b6040519080825280601f01601f191660200182016040528015613f34576020820181803683370190505b5090508181016020015b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8504945084613f9857613f9d565b613f3e565b509392505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061403857507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061408457507fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d6300000000000000000000000000000000000000000000000000000000145b80610c3257507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610c32565b600082815260096020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff166113465761411481614875565b61411f836020614894565b604051602001614130929190615582565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a0000000000000000000000000000000000000000000000000000000008252610d5f91600401614d17565b6000808251604114156141c55760208301516040840151606085015160001a6141b987828585614ad7565b945094505050506141cd565b506000905060025b9250929050565b60008060008573ffffffffffffffffffffffffffffffffffffffff16631626ba7e60e01b868660405160240161420b929190615603565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909416939093179092529051614294919061561c565b600060405180830381855afa9150503d80600081146142cf576040519150601f19603f3d011682016040523d82523d6000602084013e6142d4565b606091505b50915091508180156142e857506020815110155b8015613995575080517f1626ba7e00000000000000000000000000000000000000000000000000000000906143269083016020908101908401615638565b149695505050505050565b60005473ffffffffffffffffffffffffffffffffffffffff84166143d7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610d5f565b6143e2816000541190565b15614449576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610d5f565b7f00000000000000000000000000000000000000000000000000000000000000648311156144f9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960448201527f67680000000000000000000000000000000000000000000000000000000000006064820152608401610d5f565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600460209081526040918290208251808401845290546fffffffffffffffffffffffffffffffff80821683527001000000000000000000000000000000009091041691810191909152815180830190925280519091908190614578908790615497565b6fffffffffffffffffffffffffffffffff16815260200185836020015161459f9190615497565b6fffffffffffffffffffffffffffffffff90811690915273ffffffffffffffffffffffffffffffffffffffff808816600081815260046020908152604080832087519783015187167001000000000000000000000000000000000297909616969096179094558451808601865291825267ffffffffffffffff428116838601908152888352600390955294812091518254945190951674010000000000000000000000000000000000000000027fffffffff0000000000000000000000000000000000000000000000000000000090941694909216939093179190911790915582905b8581101561478857604051829073ffffffffffffffffffffffffffffffffffffffff8916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46146dc6000888488613cce565b614768576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610d5f565b8161477281615357565b925050808061478090615357565b915050614682565b50600081905561314e565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106147dc577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef81000000008310614808576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061482657662386f26fc10000830492506010015b6305f5e100831061483e576305f5e100830492506008015b612710831061485257612710830492506004015b60648310614864576064830492506002015b600a8310610c325760010192915050565b6060610c3273ffffffffffffffffffffffffffffffffffffffff831660145b606060006148a38360026153bf565b6148ae906002615390565b67ffffffffffffffff8111156148c6576148c6614d96565b6040519080825280601f01601f1916602001820160405280156148f0576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110614927576149276152f9565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061498a5761498a6152f9565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006149c68460026153bf565b6149d1906001615390565b90505b6001811115614a6e577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110614a1257614a126152f9565b1a60f81b828281518110614a2857614a286152f9565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c93614a67816154f1565b90506149d4565b508315612491576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610d5f565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115614b0e5750600090506003614bbd565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015614b62573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff8116614bb657600060019250925050614bbd565b9150600090505b94509492505050565b828054614bd2906152a5565b90600052602060002090601f016020900481019282614bf45760008555614c3a565b82601f10614c0d57805160ff1916838001178555614c3a565b82800160010185558215614c3a579182015b82811115614c3a578251825591602001919060010190614c1f565b50611e859291505b80821115611e855760008155600101614c42565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461262057600080fd5b600060208284031215614c9657600080fd5b813561249181614c56565b60005b83811015614cbc578181015183820152602001614ca4565b8381111561239d5750506000910152565b60008151808452614ce5816020860160208601614ca1565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020815260006124916020830184614ccd565b600060208284031215614d3c57600080fd5b5035919050565b803573ffffffffffffffffffffffffffffffffffffffff81168114614d6757600080fd5b919050565b60008060408385031215614d7f57600080fd5b614d8883614d43565b946020939093013593505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715614e0c57614e0c614d96565b604052919050565b600067ffffffffffffffff821115614e2e57614e2e614d96565b5060051b60200190565b60006020808385031215614e4b57600080fd5b823567ffffffffffffffff811115614e6257600080fd5b8301601f81018513614e7357600080fd5b8035614e86614e8182614e14565b614dc5565b81815260059190911b82018301908381019087831115614ea557600080fd5b928401925b82841015614eca57614ebb84614d43565b82529284019290840190614eaa565b979650505050505050565b600080600060608486031215614eea57600080fd5b614ef384614d43565b9250614f0160208501614d43565b9150604084013590509250925092565b60008060408385031215614f2457600080fd5b82359150614f3460208401614d43565b90509250929050565b600067ffffffffffffffff831115614f5757614f57614d96565b614f8860207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f86011601614dc5565b9050828152838383011115614f9c57600080fd5b828260208301376000602084830101529392505050565b600082601f830112614fc457600080fd5b61249183833560208501614f3d565b600060c08284031215614fe557600080fd5b60405160c0810167ffffffffffffffff828210818311171561500957615009614d96565b816040528293508435835260208501356020840152604085013560408401526060850135606084015261503e60808601614d43565b608084015260a085013591508082111561505757600080fd5b5061506485828601614fb3565b60a0830152505092915050565b60006020828403121561508357600080fd5b813567ffffffffffffffff81111561509a57600080fd5b613ec684828501614fd3565b6000602082840312156150b857600080fd5b61249182614d43565b6000602082840312156150d357600080fd5b813567ffffffffffffffff8111156150ea57600080fd5b8201601f810184136150fb57600080fd5b613ec684823560208401614f3d565b6000806040838503121561511d57600080fd5b61512683614d43565b91506020830135801515811461513b57600080fd5b809150509250929050565b6000806000806080858703121561515c57600080fd5b61516585614d43565b935061517360208601614d43565b925060408501359150606085013567ffffffffffffffff81111561519657600080fd5b6151a287828801614fb3565b91505092959194509250565b600080604083850312156151c157600080fd5b6151ca83614d43565b9150614f3460208401614d43565b6000806000606084860312156151ed57600080fd5b8335925060206151fe818601614d43565b9250604085013567ffffffffffffffff8082111561521b57600080fd5b818701915087601f83011261522f57600080fd5b813561523d614e8182614e14565b81815260059190911b8301840190848101908a83111561525c57600080fd5b8585015b83811015615294578035858111156152785760008081fd5b6152868d89838a0101614fd3565b845250918601918601615260565b508096505050505050509250925092565b600181811c908216806152b957607f821691505b602082108114156152f3577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561538957615389615328565b5060010190565b600082198211156153a3576153a3615328565b500190565b6000828210156153ba576153ba615328565b500390565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156153f7576153f7615328565b500290565b6000835161540e818460208801614ca1565b835190830190615422818360208801614ca1565b01949350505050565b600082615461577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b60006fffffffffffffffffffffffffffffffff8381169083168181101561548f5761548f615328565b039392505050565b60006fffffffffffffffffffffffffffffffff80831681851680830382111561542257615422615328565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60008161550057615500615328565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b600073ffffffffffffffffffffffffffffffffffffffff8087168352808616602084015250836040830152608060608301526139956080830184614ccd565b60006020828403121561557757600080fd5b815161249181614c56565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516155ba816017850160208801614ca1565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516155f7816028840160208801614ca1565b01602801949350505050565b828152604060208201526000613ec66040830184614ccd565b6000825161562e818460208701614ca1565b9190910192915050565b60006020828403121561564a57600080fd5b505191905056fea26469706673582212203fb397e3e2022ad26cf60538b43444a9540027e15c9081933e85eb2ce309211a64736f6c63430008090033

Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.