ETH Price: $3,282.98 (-3.28%)
 

Overview

Max Total Supply

235 NEW

Holders

92

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 NEW
0x152713147d99d3cc55547c2b6e9d9cab59809bd3
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:
NewmanNFTB2FA

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 23 : NewmanNFTB2FA.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;

    /***
     *    ::::    ::: :::::::::: :::       ::: ::::    ::::      :::     ::::    ::: ::::    ::: :::::::::: ::::::::::: ::::::::
     *    :+:+:   :+: :+:        :+:       :+: +:+:+: :+:+:+   :+: :+:   :+:+:   :+: :+:+:   :+: :+:            :+:    :+:    :+:
     *    :+:+:+  +:+ +:+        +:+       +:+ +:+ +:+:+ +:+  +:+   +:+  :+:+:+  +:+ :+:+:+  +:+ +:+            +:+    +:+
     *    +#+ +:+ +#+ +#++:++#   +#+  +:+  +#+ +#+  +:+  +#+ +#++:++#++: +#+ +:+ +#+ +#+ +:+ +#+ :#::+::#       +#+    +#++:++#++
     *    +#+  +#+#+# +#+        +#+ +#+#+ +#+ +#+       +#+ +#+     +#+ +#+  +#+#+# +#+  +#+#+# +#+            +#+           +#+
     *    #+#   #+#+# #+#         #+#+# #+#+#  #+#       #+# #+#     #+# #+#   #+#+# #+#   #+#+# #+#            #+#    #+#    #+#
     *    ###    #### ##########   ###   ###   ###       ### ###     ### ###    #### ###    #### ###            ###     ########
     *
     *************************************************************************
     * @author: @ghooost0x2a                                                  *
     *************************************************************************
     * NewmanNFTB2FA is based on ERC721B low gas contract by @squuebo_nft    *
     * and the LockRegistry/Guardian contracts by @OwlOfMoistness            *
     *************************************************************************
     *     :::::::              ::::::::      :::                            *
     *    :+:   :+: :+:    :+: :+:    :+:   :+: :+:                          *
     *    +:+  :+:+  +:+  +:+        +:+   +:+   +:+                         *
     *    +#+ + +:+   +#++:+       +#+    +#++:++#++:                        *
     *    +#+#  +#+  +#+  +#+    +#+      +#+     +#+                        *
     *    #+#   #+# #+#    #+#  #+#       #+#     #+#                        *
     *     #######             ########## ###     ###                        *
     *************************************************************************/

import "./ERC721EnumerableLiteB2FA.sol";
import "./GuardianLiteB2FA.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

contract NewmanNFTB2FA is ERC721EnumerableLiteB2FA, GuardianLiteB2FA, Pausable {
    using MerkleProof for bytes32[];
    using Address for address;
    using Strings for uint256;

    event Withdrawn(address indexed payee, uint256 weiAmount);

    uint256 public constant MAX_SUPPLY = 777;
    uint256 public publicPrice = 0.07 ether;
    uint256 public reducedPrice = 0.03 ether;
    uint256 public maxMintsPerTx = 5;

    address public communityWallet = 0x4A234b2Cbbe4053360397db002190732AB149A9a;
    //0x4Ab83CE58A2D83BD5b182019aAF261245E467422;
    string private baseURI = "ipfs://QmS6wss82sHCZsJ3jEn3t6oUYjz384juEyxjG7D4vThNdf/";
    string private uriSuffix = ".json";
    string private commonURI = "";
    bytes32 private merkleRoot = 0;
    address[] internal reducedPriceMinted;

    fallback() external payable {
        revert("You hit the fallback fn, fam! Try again.");
    }

    receive() external payable {
        revert("I love ETH, but don't send it to this contract!");
    }

    constructor() ERC721EnumerableLiteB2FA("NewmanNFT", "NEW", 1) {}

    function getMerkleRoot() public view onlyDelegates returns (bytes32) {
        return merkleRoot;
    }

    function isvalidMerkleProof(bytes32[] memory proof)
        public
        view
        returns (bool)
    {
        if (merkleRoot == 0) {
            return false;
        }
        bool proof_valid = proof.verify(
            merkleRoot,
            keccak256(abi.encodePacked(msg.sender))
        );
        //require(proof_valid, "Address not in Merkle Tree"); // dev: NOPE! No Merkle Tree for you
        return proof_valid;
    }

    function togglePause(uint256 pauseit) external onlyDelegates {
        if (pauseit == 0) {
            _unpause();
        } else {
            _pause();
        }
    }

    function getReducedPriceMinted()
        external
        view
        onlyDelegates
        returns (address[] memory)
    {
        return reducedPriceMinted;
    }

    function tokenURI(uint256 tokenId)
        external
        view
        virtual
        override
        returns (string memory)
    {
        require(
            _exists(tokenId),
            "ERC721Metadata: URI query for nonexistent token"
        ); // dev: Sorry homie, that token doesn't exist

        if (bytes(commonURI).length > 0) {
            return string(abi.encodePacked(commonURI));
        }

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

    function setPublicPrice(uint256 newPrice) external onlyDelegates {
        publicPrice = newPrice;
    }

    function setReducedPrice(uint256 newPrice) external onlyDelegates {
        reducedPrice = newPrice;
    }

    function setMaxMintsPerTx(uint256 maxMint) external onlyDelegates {
        maxMintsPerTx = maxMint;
    }

    function setCommunityWallet(address newCommunityWallet) external onlyOwner {
        communityWallet = newCommunityWallet;
    }

    function setMerkleRoot(bytes32 root) external onlyDelegates {
        merkleRoot = root;
    }

    function setCommonURI(string calldata newCommonURI) external onlyDelegates {
        commonURI = newCommonURI;
    }

    function setBaseURI(
        string calldata newBaseURI,
        string calldata newURISuffix
    ) external onlyDelegates {
        baseURI = newBaseURI;
        uriSuffix = newURISuffix;
    }

    function freeMints(uint256 quantity, address[] calldata recipients)
        external
        onlyDelegates
    {
        minty(quantity, recipients);
    }

    function publicMints(
        uint256 quantity,
        address[] calldata recipients,
        bytes32[] memory proof
    ) external payable {
        require(quantity <= maxMintsPerTx, "You can't mint that many at once!");
        uint256 price = publicPrice;
        if (isvalidMerkleProof(proof)) {
            require(quantity == 1, "You can only mint 1 NFT at discount.");
            for (uint256 i; i < reducedPriceMinted.length; i++) {
                if (reducedPriceMinted[i] == msg.sender) {
                    revert("This address already minted at a discount!");
                }
            }
            reducedPriceMinted.push(msg.sender);
            price = reducedPrice;
        } else {
            require(!paused(), "Public Mint is paused!");
        }

        require(msg.value == price * quantity, "Incorrect amount of ETH sent!");
        minty(quantity, recipients);
    }

    function minty(uint256 quantity, address[] calldata recipients) internal {
        require(quantity > 0, "Can't mint 0 tokens!");
        require(
            quantity == recipients.length || recipients.length == 1,
            "Call data is invalid"
        ); // dev: Call parameters are no bueno
        uint256 totSup = totalSupply();
        require(quantity + totSup <= MAX_SUPPLY, "Max supply reached!");

        address mintTo = communityWallet;
        for (uint256 i; i < quantity; ++i) {
            mintTo = recipients.length == 1 ? recipients[0] : recipients[i];
            _mint(mintTo, totSup + i + _offset);
        }
    }

    function withdraw() external onlyDelegates {
        uint256 payment = address(this).balance;
        address payable addy = payable(communityWallet);
        (bool success, ) = addy.call{value: payment}("");
        require(success, "Withdrawal failed!");
        emit Withdrawn(communityWallet, payment);
    }
}

File 2 of 23 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 4 of 23 : ERC721Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Pausable.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "../../../security/Pausable.sol";

/**
 * @dev ERC721 token with pausable token transfers, minting and burning.
 *
 * Useful for scenarios such as preventing trades until the end of an evaluation
 * period, or having an emergency switch for freezing all token transfers in the
 * event of a large bug.
 */
abstract contract ERC721Pausable is ERC721, Pausable {
    /**
     * @dev See {ERC721-_beforeTokenTransfer}.
     *
     * Requirements:
     *
     * - the contract must not be paused.
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

        require(!paused(), "ERC721Pausable: token transfer while paused");
    }
}

File 5 of 23 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

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

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

File 6 of 23 : GuardianLiteB2FA.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./ILockERC721.sol";

contract GuardianLiteB2FA {
    ILockERC721 public immutable LOCKABLE;

    mapping(address => address) public guardians;

    event GuardianSet(address indexed guardian, address indexed user);
    event GuardianRenounce(address indexed guardian, address indexed user);

    constructor() {
        LOCKABLE = ILockERC721(address(this));
    }

    function setGuardian(address _guardian) external {
        require(guardians[msg.sender] == address(0), "Guardian set");
        require(msg.sender != _guardian, "Guardian must be a different wallet");
        guardians[msg.sender] = _guardian;
        emit GuardianSet(_guardian, msg.sender);
    }

    function renounce(address _tokenOwner) external {
        require(guardians[_tokenOwner] == msg.sender, "!guardian");
        guardians[_tokenOwner] = address(0);
        emit GuardianRenounce(msg.sender, _tokenOwner);
    }

    function lockMany(uint256[] calldata _tokenIds) external {
        address owner = LOCKABLE.ownerOf(_tokenIds[0]);
        require(guardians[owner] == msg.sender, "!guardian");
        for (uint256 i = 0; i < _tokenIds.length; i++) {
            require(LOCKABLE.ownerOf(_tokenIds[i]) == owner, "!owner");
            LOCKABLE.lockId(_tokenIds[i]);
        }
    }

    function unlockMany(uint256[] calldata _tokenIds) external {
        address owner = LOCKABLE.ownerOf(_tokenIds[0]);
        require(guardians[owner] == msg.sender, "!guardian");
        for (uint256 i = 0; i < _tokenIds.length; i++) {
            require(LOCKABLE.ownerOf(_tokenIds[i]) == owner, "!owner");
            LOCKABLE.unlockId(_tokenIds[i]);
        }
    }

    function unlockManyAndTransfer(
        uint256[] calldata _tokenIds,
        address _recipient
    ) external {
        address owner = LOCKABLE.ownerOf(_tokenIds[0]);
        require(guardians[owner] == msg.sender, "!guardian");
        for (uint256 i = 0; i < _tokenIds.length; i++) {
            require(LOCKABLE.ownerOf(_tokenIds[i]) == owner, "!owner");
            LOCKABLE.unlockId(_tokenIds[i]);
            LOCKABLE.safeTransferFrom(owner, _recipient, _tokenIds[i]);
        }
    }
}

File 7 of 23 : ERC721EnumerableLiteB2FA.sol
// SPDX-License-Identifier: BSD-3-Clause

pragma solidity ^0.8.0;

import "./Erc721LockRegistry.sol";
import "./IBatch.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";

abstract contract ERC721EnumerableLiteB2FA is
    Erc721LockRegistry,
    IBatch,
    IERC721Enumerable
{
    constructor(
        string memory _name,
        string memory _symbol,
        uint256 _offset
    ) Erc721LockRegistry(_name, _symbol, _offset) {}

    function isOwnerOf(address account, uint256[] calldata tokenIds)
        external
        view
        override
        returns (bool)
    {
        for (uint256 i; i < tokenIds.length; ++i) {
            if (_owners[tokenIds[i]] != account) return false;
        }

        return true;
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(IERC165, ERC721B)
        returns (bool)
    {
        return
            interfaceId == type(IERC721Enumerable).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    function tokenOfOwnerByIndex(address owner, uint256 index)
        public
        view
        override
        returns (uint256 tokenId)
    {
        uint256 count;
        for (uint256 i; i < _owners.length; ++i) {
            if (owner == _owners[i]) {
                if (count == index) return i;
                else ++count;
            }
        }

        require(false, "ERC721Enumerable: owner index out of bounds");
    }

    function tokenByIndex(uint256 index)
        external
        view
        virtual
        override
        returns (uint256)
    {
        require(
            index < totalSupply(),
            "ERC721Enumerable: global index out of bounds"
        );
        return index;
    }

    function totalSupply()
        public
        view
        virtual
        override(ERC721B, IERC721Enumerable)
        returns (uint256)
    {
        return _owners.length - _offset;
    }

    function transferBatch(
        address from,
        address to,
        uint256[] calldata tokenIds,
        bytes calldata data
    ) external override {
        for (uint256 i; i < tokenIds.length; ++i) {
            Erc721LockRegistry.safeTransferFrom(from, to, tokenIds[i], data);
        }
    }

    function walletOfOwner(address account)
        external
        view
        override
        returns (uint256[] memory)
    {
        uint256 quantity = balanceOf(account);
        uint256[] memory wallet = new uint256[](quantity);
        for (uint256 i; i < quantity; ++i) {
            wallet[i] = tokenOfOwnerByIndex(account, i);
        }
        return wallet;
    }
}

File 8 of 23 : ILockERC721.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.2;

import "./ERC721B.sol";

interface ILockERC721 is IERC721 {
    function lockId(uint256 _id) external;

    function unlockId(uint256 _id) external;

    function freeId(uint256 _id, address _contract) external;
}

File 9 of 23 : 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 10 of 23 : IBatch.sol
// SPDX-License-Identifier: BSD-3-Clause

pragma solidity ^0.8.0;


interface IBatch {
    function isOwnerOf(address account, uint256[] calldata tokenIds)
        external
        view
        returns (bool);

    function transferBatch(
        address from,
        address to,
        uint256[] calldata tokenIds,
        bytes calldata data
    ) external;

    function walletOfOwner(address account)
        external
        view
        returns (uint256[] memory);
}

File 11 of 23 : Erc721LockRegistry.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.2;

/*
 *     ,_,
 *    (',')
 *    {/"\}
 *    -"-"-
 */

import "./ERC721B.sol";
import "./LockRegistry.sol";
import "./ILockERC721.sol";

abstract contract Erc721LockRegistry is ERC721B, LockRegistry, ILockERC721 {
    constructor(
        string memory _name,
        string memory _symbol,
        uint256 _offset
    ) ERC721B(_name, _symbol, _offset) {}

    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public override(ERC721B, IERC721) {
        require(isUnlocked(tokenId), "Token is locked");
        ERC721B.transferFrom(from, to, tokenId);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public override(ERC721B, IERC721) {
        require(isUnlocked(tokenId), "Token is locked");
        ERC721B.safeTransferFrom(from, to, tokenId, _data);
    }

    function lockId(uint256 _id) external override {
        require(_exists(_id), "Token !exist");
        _lockId(_id);
    }

    function unlockId(uint256 _id) external override {
        require(_exists(_id), "Token !exist");
        _unlockId(_id);
    }

    function freeId(uint256 _id, address _contract) external override {
        require(_exists(_id), "Token !exist");
        _freeId(_id, _contract);
    }
}

File 12 of 23 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

File 13 of 23 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // 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 Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @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 ||
            super.supportsInterface(interfaceId);
    }

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

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @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 virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_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 virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @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.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: 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`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);

        _afterTokenTransfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);

        _afterTokenTransfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * 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
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

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

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @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.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * 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`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 14 of 23 : ERC721B.sol
// SPDX-License-Identifier: BSD-3-Clause

pragma solidity ^0.8.0;

/****************************************
 * @author: squeebo_nft                 *
 * @team:   GoldenX                     *
 ****************************************
 *   Blimpie-ERC721 provides low-gas    *
 *           mints + transfers          *
 ****************************************/
//INTERFACES
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
//CONTRACTS
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

abstract contract ERC721B is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;

    string private _name;
    string private _symbol;

    uint256 internal _offset;
    address[] internal _owners;

    mapping(uint256 => address) private _tokenApprovals;
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    constructor(
        string memory name_,
        string memory symbol_,
        uint256 offset
    ) {
        _name = name_;
        _symbol = symbol_;
        _offset = offset;
        for (uint256 i; i < _offset; ++i) {
            _owners.push(address(0));
        }
    }

    //public
    function balanceOf(address owner)
        public
        view
        virtual
        override
        returns (uint256)
    {
        require(
            owner != address(0),
            "ERC721: balance query for the zero address"
        );

        uint256 count;
        for (uint256 i; i < _owners.length; ++i) {
            if (owner == _owners[i]) ++count;
        }
        return count;
    }

    function name() external view virtual override returns (string memory) {
        return _name;
    }

    function next() public view returns (uint256) {
        return _owners.length;
    }

    function ownerOf(uint256 tokenId)
        public
        view
        virtual
        override
        returns (address)
    {
        address owner = _owners[tokenId];
        require(
            owner != address(0),
            "ERC721: owner query for nonexistent token"
        );
        return owner;
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC165, IERC165)
        returns (bool)
    {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    function symbol() external view virtual override returns (string memory) {
        return _symbol;
    }

    function totalSupply() public view virtual returns (uint256) {
        return _owners.length - _offset;
    }

    function approve(address to, uint256 tokenId) external virtual override {
        address owner = ERC721B.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

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

        _approve(to, tokenId);
    }

    function getApproved(uint256 tokenId)
        public
        view
        virtual
        override
        returns (address)
    {
        require(
            _exists(tokenId),
            "ERC721: approved query for nonexistent token"
        );
        return _tokenApprovals[tokenId];
    }

    function isApprovedForAll(address owner, address operator)
        public
        view
        virtual
        override
        returns (bool)
    {
        return _operatorApprovals[owner][operator];
    }

    function setApprovalForAll(address operator, bool approved)
        external
        virtual
        override
    {
        require(operator != _msgSender(), "ERC721: approve to caller");
        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(
            _isApprovedOrOwner(_msgSender(), tokenId),
            "ERC721: transfer caller is not owner nor approved"
        );
        _transfer(from, to, tokenId);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(
            _isApprovedOrOwner(_msgSender(), tokenId),
            "ERC721: transfer caller is not owner nor approved"
        );
        _safeTransfer(from, to, tokenId, _data);
    }

    //internal
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(
            _checkOnERC721Received(from, to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return tokenId < _owners.length && _owners[tokenId] != address(0);
    }

    function _isApprovedOrOwner(address spender, uint256 tokenId)
        internal
        view
        virtual
        returns (bool)
    {
        require(
            _exists(tokenId),
            "ERC721: operator query for nonexistent token"
        );
        address owner = ERC721B.ownerOf(tokenId);
        return (spender == owner ||
            getApproved(tokenId) == spender ||
            isApprovedForAll(owner, spender));
    }

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

    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);
        _owners.push(to);

        emit Transfer(address(0), to, tokenId);
    }

    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721B.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);
        _owners[tokenId] = address(0);

        emit Transfer(owner, address(0), tokenId);
    }

    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(
            ERC721B.ownerOf(tokenId) == from,
            "ERC721: transfer of token that is not own"
        );
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721B.ownerOf(tokenId), to, tokenId);
    }

    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.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert(
                        "ERC721: transfer to non ERC721Receiver implementer"
                    );
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 15 of 23 : LockRegistry.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.2;

/*
 *     ,_,
 *    (',')
 *    {/"\}
 *    -"-"-
 */

import "./Delegated.sol";

abstract contract LockRegistry is Delegated {
    mapping(address => bool) public approvedContract;
    mapping(uint256 => uint256) public lockCount;
    mapping(uint256 => mapping(uint256 => address)) public lockMap;
    mapping(uint256 => mapping(address => uint256)) public lockMapIndex;

    event TokenLocked(
        uint256 indexed tokenId,
        address indexed approvedContract
    );
    event TokenUnlocked(
        uint256 indexed tokenId,
        address indexed approvedContract
    );

    function isUnlocked(uint256 _id) public view returns (bool) {
        return lockCount[_id] == 0;
    }

    function updateApprovedContracts(
        address[] calldata _contracts,
        bool[] calldata _values
    ) external onlyOwner {
        require(_contracts.length == _values.length, "!length");
        for (uint256 i = 0; i < _contracts.length; i++)
            approvedContract[_contracts[i]] = _values[i];
    }

    function _lockId(uint256 _id) internal {
        require(approvedContract[msg.sender], "Cannot update map");
        require(
            lockMapIndex[_id][msg.sender] == 0,
            "ID already locked by caller"
        );

        uint256 count = lockCount[_id] + 1;
        lockMap[_id][count] = msg.sender;
        lockMapIndex[_id][msg.sender] = count;
        lockCount[_id]++;
        emit TokenLocked(_id, msg.sender);
    }

    function _unlockId(uint256 _id) internal {
        require(approvedContract[msg.sender], "Cannot update map");
        uint256 index = lockMapIndex[_id][msg.sender];
        require(index != 0, "ID not locked by caller");

        uint256 last = lockCount[_id];
        if (index != last) {
            address lastContract = lockMap[_id][last];
            lockMap[_id][index] = lastContract;
            lockMap[_id][last] = address(0);
            lockMapIndex[_id][lastContract] = index;
        } else lockMap[_id][index] = address(0);
        lockMapIndex[_id][msg.sender] = 0;
        lockCount[_id]--;
        emit TokenUnlocked(_id, msg.sender);
    }

    function _freeId(uint256 _id, address _contract) internal {
        require(!approvedContract[_contract], "Cannot update map");
        uint256 index = lockMapIndex[_id][_contract];
        require(index != 0, "ID not locked");

        uint256 last = lockCount[_id];
        if (index != last) {
            address lastContract = lockMap[_id][last];
            lockMap[_id][index] = lastContract;
            lockMap[_id][last] = address(0);
            lockMapIndex[_id][lastContract] = index;
        } else lockMap[_id][index] = address(0);
        lockMapIndex[_id][_contract] = 0;
        lockCount[_id]--;
        emit TokenUnlocked(_id, _contract);
    }
}

File 16 of 23 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

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

File 17 of 23 : 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 18 of 23 : 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 19 of 23 : 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 20 of 23 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 21 of 23 : Delegated.sol
// SPDX-License-Identifier: BSD-3-Clause

pragma solidity ^0.8.0;

/********************
 * @author: Squeebo *
 ********************/

import "@openzeppelin/contracts/access/Ownable.sol";

contract Delegated is Ownable {
    mapping(address => bool) internal _delegates;

    constructor() {
        _delegates[owner()] = true;
    }

    modifier onlyDelegates() {
        require(_delegates[msg.sender], "Invalid delegate");
        _;
    }

    //onlyOwner
    function isDelegate(address addr) external view onlyOwner returns (bool) {
        return _delegates[addr];
    }

    function setDelegate(address addr, bool isDelegate_) external onlyOwner {
        _delegates[addr] = isDelegate_;
    }

    function transferOwnership(address newOwner)
        public
        virtual
        override
        onlyOwner
    {
        _delegates[newOwner] = true;
        super.transferOwnership(newOwner);
    }
}

File 22 of 23 : 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 23 of 23 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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":"guardian","type":"address"},{"indexed":true,"internalType":"address","name":"user","type":"address"}],"name":"GuardianRenounce","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"guardian","type":"address"},{"indexed":true,"internalType":"address","name":"user","type":"address"}],"name":"GuardianSet","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"approvedContract","type":"address"}],"name":"TokenLocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"approvedContract","type":"address"}],"name":"TokenUnlocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"payee","type":"address"},{"indexed":false,"internalType":"uint256","name":"weiAmount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"LOCKABLE","outputs":[{"internalType":"contract ILockERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"","type":"address"}],"name":"approvedContract","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"communityWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"address","name":"_contract","type":"address"}],"name":"freeId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"address[]","name":"recipients","type":"address[]"}],"name":"freeMints","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":[],"name":"getMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getReducedPriceMinted","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"guardians","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"isDelegate","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"isOwnerOf","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"isUnlocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"isvalidMerkleProof","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lockCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"lockId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"lockMany","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"lockMap","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"lockMapIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintsPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"next","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"address[]","name":"recipients","type":"address[]"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"publicMints","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reducedPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenOwner","type":"address"}],"name":"renounce","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"},{"internalType":"string","name":"newURISuffix","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newCommonURI","type":"string"}],"name":"setCommonURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newCommunityWallet","type":"address"}],"name":"setCommunityWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bool","name":"isDelegate_","type":"bool"}],"name":"setDelegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_guardian","type":"address"}],"name":"setGuardian","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxMint","type":"uint256"}],"name":"setMaxMintsPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setPublicPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setReducedPrice","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":"pauseit","type":"uint256"}],"name":"togglePause","outputs":[],"stateMutability":"nonpayable","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":"tokenId","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":"tokenIds","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"transferBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"unlockId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"unlockMany","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"address","name":"_recipient","type":"address"}],"name":"unlockManyAndTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_contracts","type":"address[]"},{"internalType":"bool[]","name":"_values","type":"bool[]"}],"name":"updateApprovedContracts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

66f8b0a10e470000600e55666a94d74f430000600f556005601055601180546001600160a01b031916734a234b2cbbe4053360397db002190732ab149a9a179055610100604052603660a0818152906200499360c03980516200006b9160129160209091019062000278565b5060408051808201909152600580825264173539b7b760d91b60209092019182526200009a9160139162000278565b50604080516020810191829052600090819052620000bb9160149162000278565b506000601555348015620000ce57600080fd5b506040518060400160405280600981526020016813995ddb585b93919560ba1b815250604051806040016040528060038152602001624e455760e81b815250600182828282828282600090805190602001906200012d92919062000278565b5081516200014390600190602085019062000278565b50600281905560005b600254811015620001aa57600380546001810182556000919091527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0180546001600160a01b0319169055620001a2816200031e565b90506200014c565b50505050620001c8620001c26200022260201b60201c565b62000226565b600160076000620001e16006546001600160a01b031690565b6001600160a01b031681526020810191909152604001600020805491151560ff1992831617905530608052600d805490911690555062000382945050505050565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620002869062000346565b90600052602060002090601f016020900481019282620002aa5760008555620002f5565b82601f10620002c557805160ff1916838001178555620002f5565b82800160010185558215620002f5579182015b82811115620002f5578251825591602001919060010190620002d8565b506200030392915062000307565b5090565b5b8082111562000303576000815560010162000308565b6000600182016200033f57634e487b7160e01b600052601160045260246000fd5b5060010190565b600181811c908216806200035b57607f821691505b6020821081036200037c57634e487b7160e01b600052602260045260246000fd5b50919050565b6080516145af620003e4600039600081816105c80152818161146a015281816115630152818161163001528181611cd901528181611dd201528181611e9f0152818161201f01528181612118015281816121e5015261227d01526145af6000f3fe6080604052600436106103a65760003560e01c806355fc9893116101e757806395207ee11161010d578063b88d4fde116100a0578063d76377981161006f578063d763779814610bfb578063dc30158b14610c0e578063e985e9c514610c24578063f2fde38b14610c6d57610410565b8063b88d4fde14610b7b578063c627525514610b9b578063c757483914610bbb578063c87b56dd14610bdb57610410565b8063ac1855c1116100dc578063ac1855c114610aeb578063ac52e64414610b0b578063b1a6505f14610b2b578063b534a5c414610b5b57610410565b806395207ee114610a8057806395d89b4114610aa0578063a22cb46514610ab5578063a945bf8014610ad557610410565b8063715018a6116101855780638a0dac4a116101545780638a0dac4a14610a0c5780638da5cb5b14610a2c578063929440bd14610a4a57806394d216d614610a6057610410565b8063715018a61461098957806372abc8b71461099e5780637cb64759146109cc57806385d6bb81146109ec57610410565b80636352211e116101c15780636352211e146108fc578063650b00f61461091c5780636790a9de1461094957806370a082311461096957610410565b806355fc9893146108a45780635c975abb146108c45780635f5ad48d146108dc57610410565b80632f745c59116102cc578063438b63001161026a5780634c8fe526116102395780634c8fe5261461082f5780634d44660c146108445780634f6ccce71461086457806351bbf8d81461088457610410565b8063438b6300146107ad57806347028a5c146107da57806349590657146107fa5780634a994eef1461080f57610410565b80633daa583e116102a65780633daa583e1461072d57806340a9c8df1461074d57806342842e0e1461076d578063437435701461078d57610410565b80632f745c59146106e257806332cb6b0c146107025780633ccfd60b1461071857610410565b80630b776690116103445780631f76a7af116103135780631f76a7af1461064157806323b872dd146106615780632799cde0146106815780632cba8123146106a157610410565b80630b776690146105b65780630f174493146105ea578063174da4a21461060c57806318160ddd1461062c57610410565b80630777962711610380578063077796271461050e578063081812fc1461052e57806309308e5d1461054e578063095ea7b31461059457610410565b806301ffc9a7146104695780630633b14a1461049e57806306fdde03146104ec57610410565b366104105760405162461bcd60e51b815260206004820152602f60248201527f49206c6f7665204554482c2062757420646f6e27742073656e6420697420746f60448201526e207468697320636f6e74726163742160881b60648201526084015b60405180910390fd5b60405162461bcd60e51b815260206004820152602860248201527f596f7520686974207468652066616c6c6261636b20666e2c2066616d212054726044820152673c9030b3b0b4b71760c11b6064820152608401610407565b34801561047557600080fd5b5061048961048436600461396e565b610c8d565b60405190151581526020015b60405180910390f35b3480156104aa57600080fd5b506104d46104b93660046139a0565b600c602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610495565b3480156104f857600080fd5b50610501610cb8565b6040516104959190613a15565b34801561051a57600080fd5b506104896105293660046139a0565b610d4a565b34801561053a57600080fd5b506104d4610549366004613a28565b610d9a565b34801561055a57600080fd5b50610586610569366004613a41565b600b60209081526000928352604080842090915290825290205481565b604051908152602001610495565b3480156105a057600080fd5b506105b46105af366004613a71565b610e22565b005b3480156105c257600080fd5b506104d47f000000000000000000000000000000000000000000000000000000000000000081565b3480156105f657600080fd5b506105ff610f37565b6040516104959190613a9d565b34801561061857600080fd5b506105b4610627366004613a28565b610fc8565b34801561063857600080fd5b50610586610ffc565b34801561064d57600080fd5b506105b461065c3660046139a0565b611013565b34801561066d57600080fd5b506105b461067c366004613aea565b61109c565b34801561068d57600080fd5b506105b461069c366004613a28565b6110f5565b3480156106ad57600080fd5b506104d46106bc366004613b2b565b600a6020908152600092835260408084209091529082529020546001600160a01b031681565b3480156106ee57600080fd5b506105866106fd366004613a71565b611126565b34801561070e57600080fd5b5061058661030981565b34801561072457600080fd5b506105b46111f1565b34801561073957600080fd5b506105b4610748366004613a28565b611303565b34801561075957600080fd5b506105b4610768366004613a28565b611337565b34801561077957600080fd5b506105b4610788366004613aea565b611365565b34801561079957600080fd5b506105b46107a8366004613a28565b611380565b3480156107b957600080fd5b506107cd6107c83660046139a0565b6113c7565b6040516104959190613b4d565b3480156107e657600080fd5b506105b46107f5366004613bd0565b611466565b34801561080657600080fd5b506105866116df565b34801561081b57600080fd5b506105b461082a366004613c21565b611715565b34801561083b57600080fd5b50600354610586565b34801561085057600080fd5b5061048961085f366004613c56565b61176a565b34801561087057600080fd5b5061058661087f366004613a28565b6117ec565b34801561089057600080fd5b5061048961089f366004613d6f565b61185d565b3480156108b057600080fd5b506105b46108bf366004613de4565b6118bf565b3480156108d057600080fd5b50600d5460ff16610489565b3480156108e857600080fd5b506105b46108f7366004613e19565b6118fa565b34801561090857600080fd5b506104d4610917366004613a28565b611934565b34801561092857600080fd5b50610586610937366004613a28565b60096020526000908152604090205481565b34801561095557600080fd5b506105b4610964366004613e4b565b6119c0565b34801561097557600080fd5b506105866109843660046139a0565b611a0f565b34801561099557600080fd5b506105b4611add565b3480156109aa57600080fd5b506104896109b9366004613a28565b6000908152600960205260409020541590565b3480156109d857600080fd5b506105b46109e7366004613a28565b611b13565b3480156109f857600080fd5b506105b4610a073660046139a0565b611b47565b348015610a1857600080fd5b506105b4610a273660046139a0565b611b93565b348015610a3857600080fd5b506006546001600160a01b03166104d4565b348015610a5657600080fd5b50610586600f5481565b348015610a6c57600080fd5b506105b4610a7b366004613a41565b611ca2565b348015610a8c57600080fd5b506105b4610a9b366004613bd0565b611cd5565b348015610aac57600080fd5b50610501611f48565b348015610ac157600080fd5b506105b4610ad0366004613c21565b611f57565b348015610ae157600080fd5b50610586600e5481565b348015610af757600080fd5b506105b4610b06366004613eb6565b61201b565b348015610b1757600080fd5b506105b4610b26366004613f0c565b612340565b348015610b3757600080fd5b50610489610b463660046139a0565b60086020526000908152604090205460ff1681565b348015610b6757600080fd5b506105b4610b76366004613f6b565b61243a565b348015610b8757600080fd5b506105b4610b96366004613fff565b6124b8565b348015610ba757600080fd5b506105b4610bb6366004613a28565b612512565b348015610bc757600080fd5b506011546104d4906001600160a01b031681565b348015610be757600080fd5b50610501610bf6366004613a28565b612546565b6105b4610c093660046140c2565b61263e565b348015610c1a57600080fd5b5061058660105481565b348015610c3057600080fd5b50610489610c3f366004614134565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610c7957600080fd5b506105b4610c883660046139a0565b6128b3565b60006001600160e01b0319821663780e9d6360e01b1480610cb25750610cb282612909565b92915050565b606060008054610cc790614162565b80601f0160208091040260200160405190810160405280929190818152602001828054610cf390614162565b8015610d405780601f10610d1557610100808354040283529160200191610d40565b820191906000526020600020905b815481529060010190602001808311610d2357829003601f168201915b5050505050905090565b6006546000906001600160a01b03163314610d775760405162461bcd60e51b81526004016104079061419c565b506001600160a01b03811660009081526007602052604090205460ff165b919050565b6000610da582612959565b610e065760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610407565b506000908152600460205260409020546001600160a01b031690565b6000610e2d82611934565b9050806001600160a01b0316836001600160a01b031603610e9a5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610407565b336001600160a01b0382161480610eb65750610eb68133610c3f565b610f285760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610407565b610f3283836129a3565b505050565b3360009081526007602052604090205460609060ff16610f695760405162461bcd60e51b8152600401610407906141d1565b6016805480602002602001604051908101604052809291908181526020018280548015610d4057602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610fa1575050505050905090565b3360009081526007602052604090205460ff16610ff75760405162461bcd60e51b8152600401610407906141d1565b601055565b60025460035460009161100e91614211565b905090565b6001600160a01b038181166000908152600c602052604090205416331461104c5760405162461bcd60e51b815260040161040790614228565b6001600160a01b0381166000818152600c602052604080822080546001600160a01b03191690555133917f5b8f9622aeb5e504027e0bedd2e6ab42b294a529d87f5ef2ebf1dc0a1fe0f08191a350565b600081815260096020526040902054156110ea5760405162461bcd60e51b815260206004820152600f60248201526e151bdad95b881a5cc81b1bd8dad959608a1b6044820152606401610407565b610f32838383612a11565b6110fe81612959565b61111a5760405162461bcd60e51b81526004016104079061424b565b61112381612a42565b50565b60008060005b600354811015611194576003818154811061114957611149614271565b6000918252602090912001546001600160a01b039081169086160361118457838203611178579150610cb29050565b61118182614287565b91505b61118d81614287565b905061112c565b5060405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610407565b3360009081526007602052604090205460ff166112205760405162461bcd60e51b8152600401610407906141d1565b60115460405147916001600160a01b031690600090829084908381818185875af1925050503d8060008114611271576040519150601f19603f3d011682016040523d82523d6000602084013e611276565b606091505b50509050806112bc5760405162461bcd60e51b81526020600482015260126024820152715769746864726177616c206661696c65642160701b6044820152606401610407565b6011546040518481526001600160a01b03909116907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d59060200160405180910390a2505050565b3360009081526007602052604090205460ff166113325760405162461bcd60e51b8152600401610407906141d1565b600f55565b61134081612959565b61135c5760405162461bcd60e51b81526004016104079061424b565b61112381612b82565b610f32838383604051806020016040528060008152506124b8565b3360009081526007602052604090205460ff166113af5760405162461bcd60e51b8152600401610407906141d1565b806000036113bf57611123612d22565b611123612db5565b606060006113d483611a0f565b90506000816001600160401b038111156113f0576113f0613caa565b604051908082528060200260200182016040528015611419578160200160208202803683370190505b50905060005b8281101561145e576114318582611126565b82828151811061144357611443614271565b602090810291909101015261145781614287565b905061141f565b509392505050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316636352211e848460008181106114aa576114aa614271565b905060200201356040518263ffffffff1660e01b81526004016114cf91815260200190565b602060405180830381865afa1580156114ec573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061151091906142a0565b6001600160a01b038082166000908152600c602052604090205491925016331461154c5760405162461bcd60e51b815260040161040790614228565b60005b828110156116d957816001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316636352211e8686858181106115a2576115a2614271565b905060200201356040518263ffffffff1660e01b81526004016115c791815260200190565b602060405180830381865afa1580156115e4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061160891906142a0565b6001600160a01b03161461162e5760405162461bcd60e51b8152600401610407906142bd565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166340a9c8df85858481811061166f5761166f614271565b905060200201356040518263ffffffff1660e01b815260040161169491815260200190565b600060405180830381600087803b1580156116ae57600080fd5b505af11580156116c2573d6000803e3d6000fd5b5050505080806116d190614287565b91505061154f565b50505050565b3360009081526007602052604081205460ff1661170e5760405162461bcd60e51b8152600401610407906141d1565b5060155490565b6006546001600160a01b0316331461173f5760405162461bcd60e51b81526004016104079061419c565b6001600160a01b03919091166000908152600760205260409020805460ff1916911515919091179055565b6000805b828110156117df57846001600160a01b0316600385858481811061179457611794614271565b90506020020135815481106117ab576117ab614271565b6000918252602090912001546001600160a01b0316146117cf5760009150506117e5565b6117d881614287565b905061176e565b50600190505b9392505050565b60006117f6610ffc565b82106118595760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610407565b5090565b601554600090810361187157506000919050565b6015546040516bffffffffffffffffffffffff193360601b1660208201526000916117e5916034016040516020818303038152906040528051906020012085612e309092919063ffffffff16565b3360009081526007602052604090205460ff166118ee5760405162461bcd60e51b8152600401610407906141d1565b610f32601483836138c8565b3360009081526007602052604090205460ff166119295760405162461bcd60e51b8152600401610407906141d1565b610f32838383612e46565b6000806003838154811061194a5761194a614271565b6000918252602090912001546001600160a01b0316905080610cb25760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610407565b3360009081526007602052604090205460ff166119ef5760405162461bcd60e51b8152600401610407906141d1565b6119fb601285856138c8565b50611a08601383836138c8565b5050505050565b60006001600160a01b038216611a7a5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610407565b6000805b600354811015611ad65760038181548110611a9b57611a9b614271565b6000918252602090912001546001600160a01b0390811690851603611ac657611ac382614287565b91505b611acf81614287565b9050611a7e565b5092915050565b6006546001600160a01b03163314611b075760405162461bcd60e51b81526004016104079061419c565b611b116000612fea565b565b3360009081526007602052604090205460ff16611b425760405162461bcd60e51b8152600401610407906141d1565b601555565b6006546001600160a01b03163314611b715760405162461bcd60e51b81526004016104079061419c565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b336000908152600c60205260409020546001600160a01b031615611be85760405162461bcd60e51b815260206004820152600c60248201526b11dd585c991a585b881cd95d60a21b6044820152606401610407565b6001600160a01b0381163303611c4c5760405162461bcd60e51b815260206004820152602360248201527f477561726469616e206d757374206265206120646966666572656e742077616c6044820152621b195d60ea1b6064820152608401610407565b336000818152600c602052604080822080546001600160a01b0319166001600160a01b038616908117909155905190917fc3ce29e3ab42e524b6f6f1b4d3674898d503ee3577a64ac87b555904ebc1413891a350565b611cab82612959565b611cc75760405162461bcd60e51b81526004016104079061424b565b611cd1828261303c565b5050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316636352211e84846000818110611d1957611d19614271565b905060200201356040518263ffffffff1660e01b8152600401611d3e91815260200190565b602060405180830381865afa158015611d5b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d7f91906142a0565b6001600160a01b038082166000908152600c6020526040902054919250163314611dbb5760405162461bcd60e51b815260040161040790614228565b60005b828110156116d957816001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316636352211e868685818110611e1157611e11614271565b905060200201356040518263ffffffff1660e01b8152600401611e3691815260200190565b602060405180830381865afa158015611e53573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e7791906142a0565b6001600160a01b031614611e9d5760405162461bcd60e51b8152600401610407906142bd565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632799cde0858584818110611ede57611ede614271565b905060200201356040518263ffffffff1660e01b8152600401611f0391815260200190565b600060405180830381600087803b158015611f1d57600080fd5b505af1158015611f31573d6000803e3d6000fd5b505050508080611f4090614287565b915050611dbe565b606060018054610cc790614162565b336001600160a01b03831603611faf5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610407565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316636352211e8585600081811061205f5761205f614271565b905060200201356040518263ffffffff1660e01b815260040161208491815260200190565b602060405180830381865afa1580156120a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120c591906142a0565b6001600160a01b038082166000908152600c60205260409020549192501633146121015760405162461bcd60e51b815260040161040790614228565b60005b83811015611a0857816001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316636352211e87878581811061215757612157614271565b905060200201356040518263ffffffff1660e01b815260040161217c91815260200190565b602060405180830381865afa158015612199573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121bd91906142a0565b6001600160a01b0316146121e35760405162461bcd60e51b8152600401610407906142bd565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166340a9c8df86868481811061222457612224614271565b905060200201356040518263ffffffff1660e01b815260040161224991815260200190565b600060405180830381600087803b15801561226357600080fd5b505af1158015612277573d6000803e3d6000fd5b505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166342842e0e83858888868181106122be576122be614271565b6040516001600160e01b031960e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b15801561231557600080fd5b505af1158015612329573d6000803e3d6000fd5b50505050808061233890614287565b915050612104565b6006546001600160a01b0316331461236a5760405162461bcd60e51b81526004016104079061419c565b8281146123a35760405162461bcd60e51b8152602060048201526007602482015266042d8cadccee8d60cb1b6044820152606401610407565b60005b83811015611a08578282828181106123c0576123c0614271565b90506020020160208101906123d591906142dd565b600860008787858181106123eb576123eb614271565b905060200201602081019061240091906139a0565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061243281614287565b9150506123a6565b60005b838110156124af5761249f878787878581811061245c5761245c614271565b9050602002013586868080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506124b892505050565b6124a881614287565b905061243d565b50505050505050565b600082815260096020526040902054156125065760405162461bcd60e51b815260206004820152600f60248201526e151bdad95b881a5cc81b1bd8dad959608a1b6044820152606401610407565b6116d9848484846131f2565b3360009081526007602052604090205460ff166125415760405162461bcd60e51b8152600401610407906141d1565b600e55565b606061255182612959565b6125b55760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610407565b6000601480546125c490614162565b905011156125f45760146040516020016125de9190614391565b6040516020818303038152906040529050919050565b60006012805461260390614162565b90501161261f5760405180602001604052806000815250610cb2565b601261262a83613224565b60136040516020016125de9392919061439d565b60105484111561269a5760405162461bcd60e51b815260206004820152602160248201527f596f752063616e2774206d696e742074686174206d616e79206174206f6e63656044820152602160f81b6064820152608401610407565b600e546126a68261185d565b1561280457846001146127075760405162461bcd60e51b8152602060048201526024808201527f596f752063616e206f6e6c79206d696e742031204e465420617420646973636f6044820152633ab73a1760e11b6064820152608401610407565b60005b6016548110156127b857336001600160a01b03166016828154811061273157612731614271565b6000918252602090912001546001600160a01b0316036127a65760405162461bcd60e51b815260206004820152602a60248201527f54686973206164647265737320616c7265616479206d696e746564206174206160448201526920646973636f756e742160b01b6064820152608401610407565b806127b081614287565b91505061270a565b5050601680546001810182556000919091527fd833147d7dc355ba459fc788f669e58cfaf9dc25ddcd0702e87d69c7b51242890180546001600160a01b03191633179055600f54612850565b600d5460ff16156128505760405162461bcd60e51b81526020600482015260166024820152755075626c6963204d696e74206973207061757365642160501b6044820152606401610407565b61285a85826143c5565b34146128a85760405162461bcd60e51b815260206004820152601d60248201527f496e636f727265637420616d6f756e74206f66204554482073656e74210000006044820152606401610407565b611a08858585612e46565b6006546001600160a01b031633146128dd5760405162461bcd60e51b81526004016104079061419c565b6001600160a01b0381166000908152600760205260409020805460ff191660011790556111238161332c565b60006001600160e01b031982166380ac58cd60e01b148061293a57506001600160e01b03198216635b5e139f60e01b145b80610cb257506301ffc9a760e01b6001600160e01b0319831614610cb2565b60035460009082108015610cb2575060006001600160a01b03166003838154811061298657612986614271565b6000918252602090912001546001600160a01b0316141592915050565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906129d882611934565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b612a1b33826133c4565b612a375760405162461bcd60e51b8152600401610407906143e4565b610f328383836134aa565b3360009081526008602052604090205460ff16612a715760405162461bcd60e51b815260040161040790614435565b6000818152600b6020908152604080832033845290915290205415612ad85760405162461bcd60e51b815260206004820152601b60248201527f494420616c7265616479206c6f636b65642062792063616c6c657200000000006044820152606401610407565b600081815260096020526040812054612af2906001614460565b6000838152600a60209081526040808320848452825280832080546001600160a01b03191633908117909155868452600b8352818420908452825280832084905585835260099091528120805492935090612b4c83614287565b9091555050604051339083907f9ecfd70e9ff36df72989324a49559383d39f9290d700b10cf5ac10dcb68d264390600090a35050565b3360009081526008602052604090205460ff16612bb15760405162461bcd60e51b815260040161040790614435565b6000818152600b6020908152604080832033845290915281205490819003612c1b5760405162461bcd60e51b815260206004820152601760248201527f4944206e6f74206c6f636b65642062792063616c6c65720000000000000000006044820152606401610407565b600082815260096020526040902054818114612c91576000838152600a602090815260408083208484528252808320805486855282852080546001600160a01b03199081166001600160a01b03909316928317909155825416909155868452600b83528184209084529091529020829055612cb9565b6000838152600a60209081526040808320858452909152902080546001600160a01b03191690555b6000838152600b60209081526040808320338452825280832083905585835260099091528120805491612ceb83614478565b9091555050604051339084907f0fe7d9801197f79ef3b1595d19379eb58f0fff5f98b0f6d6f34c03cae5306c3790600090a3505050565b600d5460ff16612d6b5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610407565b600d805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600d5460ff1615612dfb5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610407565b600d805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612d983390565b600082612e3d8584613600565b14949350505050565b60008311612e8d5760405162461bcd60e51b815260206004820152601460248201527343616e2774206d696e74203020746f6b656e732160601b6044820152606401610407565b82811480612e9b5750600181145b612ede5760405162461bcd60e51b815260206004820152601460248201527310d85b1b0819185d18481a5cc81a5b9d985b1a5960621b6044820152606401610407565b6000612ee8610ffc565b9050610309612ef78286614460565b1115612f3b5760405162461bcd60e51b81526020600482015260136024820152724d617820737570706c7920726561636865642160681b6044820152606401610407565b6011546001600160a01b031660005b85811015612fe25760018414612f8657848482818110612f6c57612f6c614271565b9050602002016020810190612f8191906139a0565b612fae565b84846000818110612f9957612f99614271565b9050602002016020810190612fae91906139a0565b9150612fd2826002548386612fc39190614460565b612fcd9190614460565b61366c565b612fdb81614287565b9050612f4a565b505050505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03811660009081526008602052604090205460ff16156130755760405162461bcd60e51b815260040161040790614435565b6000828152600b602090815260408083206001600160a01b0385168452909152812054908190036130d85760405162461bcd60e51b815260206004820152600d60248201526c1251081b9bdd081b1bd8dad959609a1b6044820152606401610407565b60008381526009602052604090205481811461314e576000848152600a602090815260408083208484528252808320805486855282852080546001600160a01b03199081166001600160a01b03909316928317909155825416909155878452600b83528184209084529091529020829055613176565b6000848152600a60209081526040808320858452909152902080546001600160a01b03191690555b6000848152600b602090815260408083206001600160a01b03871684528252808320839055868352600990915281208054916131b183614478565b90915550506040516001600160a01b0384169085907f0fe7d9801197f79ef3b1595d19379eb58f0fff5f98b0f6d6f34c03cae5306c3790600090a350505050565b6131fc33836133c4565b6132185760405162461bcd60e51b8152600401610407906143e4565b6116d984848484613794565b60608160000361324b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613275578061325f81614287565b915061326e9050600a836144a5565b915061324f565b6000816001600160401b0381111561328f5761328f613caa565b6040519080825280601f01601f1916602001820160405280156132b9576020820181803683370190505b5090505b8415613324576132ce600183614211565b91506132db600a866144b9565b6132e6906030614460565b60f81b8183815181106132fb576132fb614271565b60200101906001600160f81b031916908160001a90535061331d600a866144a5565b94506132bd565b949350505050565b6006546001600160a01b031633146133565760405162461bcd60e51b81526004016104079061419c565b6001600160a01b0381166133bb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610407565b61112381612fea565b60006133cf82612959565b6134305760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610407565b600061343b83611934565b9050806001600160a01b0316846001600160a01b031614806134765750836001600160a01b031661346b84610d9a565b6001600160a01b0316145b8061332457506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff16613324565b826001600160a01b03166134bd82611934565b6001600160a01b0316146135255760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610407565b6001600160a01b0382166135875760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610407565b6135926000826129a3565b81600382815481106135a6576135a6614271565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600081815b845181101561145e57600085828151811061362257613622614271565b602002602001015190508083116136485760008381526020829052604090209250613659565b600081815260208490526040902092505b508061366481614287565b915050613605565b6001600160a01b0382166136c25760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610407565b6136cb81612959565b156137185760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610407565b6003805460018101825560009182527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b61379f8484846134aa565b6137ab848484846137c7565b6116d95760405162461bcd60e51b8152600401610407906144cd565b60006001600160a01b0384163b156138bd57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061380b90339089908890889060040161451f565b6020604051808303816000875af1925050508015613846575060408051601f3d908101601f191682019092526138439181019061455c565b60015b6138a3573d808015613874576040519150601f19603f3d011682016040523d82523d6000602084013e613879565b606091505b50805160000361389b5760405162461bcd60e51b8152600401610407906144cd565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050613324565b506001949350505050565b8280546138d490614162565b90600052602060002090601f0160209004810192826138f6576000855561393c565b82601f1061390f5782800160ff1982351617855561393c565b8280016001018555821561393c579182015b8281111561393c578235825591602001919060010190613921565b506118599291505b808211156118595760008155600101613944565b6001600160e01b03198116811461112357600080fd5b60006020828403121561398057600080fd5b81356117e581613958565b6001600160a01b038116811461112357600080fd5b6000602082840312156139b257600080fd5b81356117e58161398b565b60005b838110156139d85781810151838201526020016139c0565b838111156116d95750506000910152565b60008151808452613a018160208601602086016139bd565b601f01601f19169290920160200192915050565b6020815260006117e560208301846139e9565b600060208284031215613a3a57600080fd5b5035919050565b60008060408385031215613a5457600080fd5b823591506020830135613a668161398b565b809150509250929050565b60008060408385031215613a8457600080fd5b8235613a8f8161398b565b946020939093013593505050565b6020808252825182820181905260009190848201906040850190845b81811015613ade5783516001600160a01b031683529284019291840191600101613ab9565b50909695505050505050565b600080600060608486031215613aff57600080fd5b8335613b0a8161398b565b92506020840135613b1a8161398b565b929592945050506040919091013590565b60008060408385031215613b3e57600080fd5b50508035926020909101359150565b6020808252825182820181905260009190848201906040850190845b81811015613ade57835183529284019291840191600101613b69565b60008083601f840112613b9757600080fd5b5081356001600160401b03811115613bae57600080fd5b6020830191508360208260051b8501011115613bc957600080fd5b9250929050565b60008060208385031215613be357600080fd5b82356001600160401b03811115613bf957600080fd5b613c0585828601613b85565b90969095509350505050565b80358015158114610d9557600080fd5b60008060408385031215613c3457600080fd5b8235613c3f8161398b565b9150613c4d60208401613c11565b90509250929050565b600080600060408486031215613c6b57600080fd5b8335613c768161398b565b925060208401356001600160401b03811115613c9157600080fd5b613c9d86828701613b85565b9497909650939450505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715613ce857613ce8613caa565b604052919050565b600082601f830112613d0157600080fd5b813560206001600160401b03821115613d1c57613d1c613caa565b8160051b613d2b828201613cc0565b9283528481018201928281019087851115613d4557600080fd5b83870192505b84831015613d6457823582529183019190830190613d4b565b979650505050505050565b600060208284031215613d8157600080fd5b81356001600160401b03811115613d9757600080fd5b61332484828501613cf0565b60008083601f840112613db557600080fd5b5081356001600160401b03811115613dcc57600080fd5b602083019150836020828501011115613bc957600080fd5b60008060208385031215613df757600080fd5b82356001600160401b03811115613e0d57600080fd5b613c0585828601613da3565b600080600060408486031215613e2e57600080fd5b8335925060208401356001600160401b03811115613c9157600080fd5b60008060008060408587031215613e6157600080fd5b84356001600160401b0380821115613e7857600080fd5b613e8488838901613da3565b90965094506020870135915080821115613e9d57600080fd5b50613eaa87828801613da3565b95989497509550505050565b600080600060408486031215613ecb57600080fd5b83356001600160401b03811115613ee157600080fd5b613eed86828701613b85565b9094509250506020840135613f018161398b565b809150509250925092565b60008060008060408587031215613f2257600080fd5b84356001600160401b0380821115613f3957600080fd5b613f4588838901613b85565b90965094506020870135915080821115613f5e57600080fd5b50613eaa87828801613b85565b60008060008060008060808789031215613f8457600080fd5b8635613f8f8161398b565b95506020870135613f9f8161398b565b945060408701356001600160401b0380821115613fbb57600080fd5b613fc78a838b01613b85565b90965094506060890135915080821115613fe057600080fd5b50613fed89828a01613da3565b979a9699509497509295939492505050565b6000806000806080858703121561401557600080fd5b84356140208161398b565b93506020858101356140318161398b565b93506040860135925060608601356001600160401b038082111561405457600080fd5b818801915088601f83011261406857600080fd5b81358181111561407a5761407a613caa565b61408c601f8201601f19168501613cc0565b915080825289848285010111156140a257600080fd5b808484018584013760008482840101525080935050505092959194509250565b600080600080606085870312156140d857600080fd5b8435935060208501356001600160401b03808211156140f657600080fd5b61410288838901613b85565b9095509350604087013591508082111561411b57600080fd5b5061412887828801613cf0565b91505092959194509250565b6000806040838503121561414757600080fd5b82356141528161398b565b91506020830135613a668161398b565b600181811c9082168061417657607f821691505b60208210810361419657634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526010908201526f496e76616c69642064656c656761746560801b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082821015614223576142236141fb565b500390565b60208082526009908201526810b3bab0b93234b0b760b91b604082015260600190565b6020808252600c908201526b151bdad95b8808595e1a5cdd60a21b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b600060018201614299576142996141fb565b5060010190565b6000602082840312156142b257600080fd5b81516117e58161398b565b60208082526006908201526510b7bbb732b960d11b604082015260600190565b6000602082840312156142ef57600080fd5b6117e582613c11565b8054600090600181811c908083168061431257607f831692505b6020808410820361433357634e487b7160e01b600052602260045260246000fd5b818015614347576001811461435857614385565b60ff19861689528489019650614385565b60008881526020902060005b8681101561437d5781548b820152908501908301614364565b505084890196505b50505050505092915050565b60006117e582846142f8565b60006143a982866142f8565b84516143b98183602089016139bd565b613d64818301866142f8565b60008160001904831182151516156143df576143df6141fb565b500290565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b602080825260119082015270043616e6e6f7420757064617465206d617607c1b604082015260600190565b60008219821115614473576144736141fb565b500190565b600081614487576144876141fb565b506000190190565b634e487b7160e01b600052601260045260246000fd5b6000826144b4576144b461448f565b500490565b6000826144c8576144c861448f565b500690565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090614552908301846139e9565b9695505050505050565b60006020828403121561456e57600080fd5b81516117e58161395856fea264697066735822122042cbb2ec0126be575e9cbf8d70f4614d24ca8dc49c9cc759aa419f94712b39a864736f6c634300080d0033697066733a2f2f516d533677737338327348435a734a336a456e3374366f55596a7a3338346a754579786a473744347654684e64662f

Deployed Bytecode

0x6080604052600436106103a65760003560e01c806355fc9893116101e757806395207ee11161010d578063b88d4fde116100a0578063d76377981161006f578063d763779814610bfb578063dc30158b14610c0e578063e985e9c514610c24578063f2fde38b14610c6d57610410565b8063b88d4fde14610b7b578063c627525514610b9b578063c757483914610bbb578063c87b56dd14610bdb57610410565b8063ac1855c1116100dc578063ac1855c114610aeb578063ac52e64414610b0b578063b1a6505f14610b2b578063b534a5c414610b5b57610410565b806395207ee114610a8057806395d89b4114610aa0578063a22cb46514610ab5578063a945bf8014610ad557610410565b8063715018a6116101855780638a0dac4a116101545780638a0dac4a14610a0c5780638da5cb5b14610a2c578063929440bd14610a4a57806394d216d614610a6057610410565b8063715018a61461098957806372abc8b71461099e5780637cb64759146109cc57806385d6bb81146109ec57610410565b80636352211e116101c15780636352211e146108fc578063650b00f61461091c5780636790a9de1461094957806370a082311461096957610410565b806355fc9893146108a45780635c975abb146108c45780635f5ad48d146108dc57610410565b80632f745c59116102cc578063438b63001161026a5780634c8fe526116102395780634c8fe5261461082f5780634d44660c146108445780634f6ccce71461086457806351bbf8d81461088457610410565b8063438b6300146107ad57806347028a5c146107da57806349590657146107fa5780634a994eef1461080f57610410565b80633daa583e116102a65780633daa583e1461072d57806340a9c8df1461074d57806342842e0e1461076d578063437435701461078d57610410565b80632f745c59146106e257806332cb6b0c146107025780633ccfd60b1461071857610410565b80630b776690116103445780631f76a7af116103135780631f76a7af1461064157806323b872dd146106615780632799cde0146106815780632cba8123146106a157610410565b80630b776690146105b65780630f174493146105ea578063174da4a21461060c57806318160ddd1461062c57610410565b80630777962711610380578063077796271461050e578063081812fc1461052e57806309308e5d1461054e578063095ea7b31461059457610410565b806301ffc9a7146104695780630633b14a1461049e57806306fdde03146104ec57610410565b366104105760405162461bcd60e51b815260206004820152602f60248201527f49206c6f7665204554482c2062757420646f6e27742073656e6420697420746f60448201526e207468697320636f6e74726163742160881b60648201526084015b60405180910390fd5b60405162461bcd60e51b815260206004820152602860248201527f596f7520686974207468652066616c6c6261636b20666e2c2066616d212054726044820152673c9030b3b0b4b71760c11b6064820152608401610407565b34801561047557600080fd5b5061048961048436600461396e565b610c8d565b60405190151581526020015b60405180910390f35b3480156104aa57600080fd5b506104d46104b93660046139a0565b600c602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610495565b3480156104f857600080fd5b50610501610cb8565b6040516104959190613a15565b34801561051a57600080fd5b506104896105293660046139a0565b610d4a565b34801561053a57600080fd5b506104d4610549366004613a28565b610d9a565b34801561055a57600080fd5b50610586610569366004613a41565b600b60209081526000928352604080842090915290825290205481565b604051908152602001610495565b3480156105a057600080fd5b506105b46105af366004613a71565b610e22565b005b3480156105c257600080fd5b506104d47f000000000000000000000000ebe5a647ecb6da05f22832476166e829e793170481565b3480156105f657600080fd5b506105ff610f37565b6040516104959190613a9d565b34801561061857600080fd5b506105b4610627366004613a28565b610fc8565b34801561063857600080fd5b50610586610ffc565b34801561064d57600080fd5b506105b461065c3660046139a0565b611013565b34801561066d57600080fd5b506105b461067c366004613aea565b61109c565b34801561068d57600080fd5b506105b461069c366004613a28565b6110f5565b3480156106ad57600080fd5b506104d46106bc366004613b2b565b600a6020908152600092835260408084209091529082529020546001600160a01b031681565b3480156106ee57600080fd5b506105866106fd366004613a71565b611126565b34801561070e57600080fd5b5061058661030981565b34801561072457600080fd5b506105b46111f1565b34801561073957600080fd5b506105b4610748366004613a28565b611303565b34801561075957600080fd5b506105b4610768366004613a28565b611337565b34801561077957600080fd5b506105b4610788366004613aea565b611365565b34801561079957600080fd5b506105b46107a8366004613a28565b611380565b3480156107b957600080fd5b506107cd6107c83660046139a0565b6113c7565b6040516104959190613b4d565b3480156107e657600080fd5b506105b46107f5366004613bd0565b611466565b34801561080657600080fd5b506105866116df565b34801561081b57600080fd5b506105b461082a366004613c21565b611715565b34801561083b57600080fd5b50600354610586565b34801561085057600080fd5b5061048961085f366004613c56565b61176a565b34801561087057600080fd5b5061058661087f366004613a28565b6117ec565b34801561089057600080fd5b5061048961089f366004613d6f565b61185d565b3480156108b057600080fd5b506105b46108bf366004613de4565b6118bf565b3480156108d057600080fd5b50600d5460ff16610489565b3480156108e857600080fd5b506105b46108f7366004613e19565b6118fa565b34801561090857600080fd5b506104d4610917366004613a28565b611934565b34801561092857600080fd5b50610586610937366004613a28565b60096020526000908152604090205481565b34801561095557600080fd5b506105b4610964366004613e4b565b6119c0565b34801561097557600080fd5b506105866109843660046139a0565b611a0f565b34801561099557600080fd5b506105b4611add565b3480156109aa57600080fd5b506104896109b9366004613a28565b6000908152600960205260409020541590565b3480156109d857600080fd5b506105b46109e7366004613a28565b611b13565b3480156109f857600080fd5b506105b4610a073660046139a0565b611b47565b348015610a1857600080fd5b506105b4610a273660046139a0565b611b93565b348015610a3857600080fd5b506006546001600160a01b03166104d4565b348015610a5657600080fd5b50610586600f5481565b348015610a6c57600080fd5b506105b4610a7b366004613a41565b611ca2565b348015610a8c57600080fd5b506105b4610a9b366004613bd0565b611cd5565b348015610aac57600080fd5b50610501611f48565b348015610ac157600080fd5b506105b4610ad0366004613c21565b611f57565b348015610ae157600080fd5b50610586600e5481565b348015610af757600080fd5b506105b4610b06366004613eb6565b61201b565b348015610b1757600080fd5b506105b4610b26366004613f0c565b612340565b348015610b3757600080fd5b50610489610b463660046139a0565b60086020526000908152604090205460ff1681565b348015610b6757600080fd5b506105b4610b76366004613f6b565b61243a565b348015610b8757600080fd5b506105b4610b96366004613fff565b6124b8565b348015610ba757600080fd5b506105b4610bb6366004613a28565b612512565b348015610bc757600080fd5b506011546104d4906001600160a01b031681565b348015610be757600080fd5b50610501610bf6366004613a28565b612546565b6105b4610c093660046140c2565b61263e565b348015610c1a57600080fd5b5061058660105481565b348015610c3057600080fd5b50610489610c3f366004614134565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610c7957600080fd5b506105b4610c883660046139a0565b6128b3565b60006001600160e01b0319821663780e9d6360e01b1480610cb25750610cb282612909565b92915050565b606060008054610cc790614162565b80601f0160208091040260200160405190810160405280929190818152602001828054610cf390614162565b8015610d405780601f10610d1557610100808354040283529160200191610d40565b820191906000526020600020905b815481529060010190602001808311610d2357829003601f168201915b5050505050905090565b6006546000906001600160a01b03163314610d775760405162461bcd60e51b81526004016104079061419c565b506001600160a01b03811660009081526007602052604090205460ff165b919050565b6000610da582612959565b610e065760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610407565b506000908152600460205260409020546001600160a01b031690565b6000610e2d82611934565b9050806001600160a01b0316836001600160a01b031603610e9a5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610407565b336001600160a01b0382161480610eb65750610eb68133610c3f565b610f285760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610407565b610f3283836129a3565b505050565b3360009081526007602052604090205460609060ff16610f695760405162461bcd60e51b8152600401610407906141d1565b6016805480602002602001604051908101604052809291908181526020018280548015610d4057602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610fa1575050505050905090565b3360009081526007602052604090205460ff16610ff75760405162461bcd60e51b8152600401610407906141d1565b601055565b60025460035460009161100e91614211565b905090565b6001600160a01b038181166000908152600c602052604090205416331461104c5760405162461bcd60e51b815260040161040790614228565b6001600160a01b0381166000818152600c602052604080822080546001600160a01b03191690555133917f5b8f9622aeb5e504027e0bedd2e6ab42b294a529d87f5ef2ebf1dc0a1fe0f08191a350565b600081815260096020526040902054156110ea5760405162461bcd60e51b815260206004820152600f60248201526e151bdad95b881a5cc81b1bd8dad959608a1b6044820152606401610407565b610f32838383612a11565b6110fe81612959565b61111a5760405162461bcd60e51b81526004016104079061424b565b61112381612a42565b50565b60008060005b600354811015611194576003818154811061114957611149614271565b6000918252602090912001546001600160a01b039081169086160361118457838203611178579150610cb29050565b61118182614287565b91505b61118d81614287565b905061112c565b5060405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610407565b3360009081526007602052604090205460ff166112205760405162461bcd60e51b8152600401610407906141d1565b60115460405147916001600160a01b031690600090829084908381818185875af1925050503d8060008114611271576040519150601f19603f3d011682016040523d82523d6000602084013e611276565b606091505b50509050806112bc5760405162461bcd60e51b81526020600482015260126024820152715769746864726177616c206661696c65642160701b6044820152606401610407565b6011546040518481526001600160a01b03909116907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d59060200160405180910390a2505050565b3360009081526007602052604090205460ff166113325760405162461bcd60e51b8152600401610407906141d1565b600f55565b61134081612959565b61135c5760405162461bcd60e51b81526004016104079061424b565b61112381612b82565b610f32838383604051806020016040528060008152506124b8565b3360009081526007602052604090205460ff166113af5760405162461bcd60e51b8152600401610407906141d1565b806000036113bf57611123612d22565b611123612db5565b606060006113d483611a0f565b90506000816001600160401b038111156113f0576113f0613caa565b604051908082528060200260200182016040528015611419578160200160208202803683370190505b50905060005b8281101561145e576114318582611126565b82828151811061144357611443614271565b602090810291909101015261145781614287565b905061141f565b509392505050565b60007f000000000000000000000000ebe5a647ecb6da05f22832476166e829e79317046001600160a01b0316636352211e848460008181106114aa576114aa614271565b905060200201356040518263ffffffff1660e01b81526004016114cf91815260200190565b602060405180830381865afa1580156114ec573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061151091906142a0565b6001600160a01b038082166000908152600c602052604090205491925016331461154c5760405162461bcd60e51b815260040161040790614228565b60005b828110156116d957816001600160a01b03167f000000000000000000000000ebe5a647ecb6da05f22832476166e829e79317046001600160a01b0316636352211e8686858181106115a2576115a2614271565b905060200201356040518263ffffffff1660e01b81526004016115c791815260200190565b602060405180830381865afa1580156115e4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061160891906142a0565b6001600160a01b03161461162e5760405162461bcd60e51b8152600401610407906142bd565b7f000000000000000000000000ebe5a647ecb6da05f22832476166e829e79317046001600160a01b03166340a9c8df85858481811061166f5761166f614271565b905060200201356040518263ffffffff1660e01b815260040161169491815260200190565b600060405180830381600087803b1580156116ae57600080fd5b505af11580156116c2573d6000803e3d6000fd5b5050505080806116d190614287565b91505061154f565b50505050565b3360009081526007602052604081205460ff1661170e5760405162461bcd60e51b8152600401610407906141d1565b5060155490565b6006546001600160a01b0316331461173f5760405162461bcd60e51b81526004016104079061419c565b6001600160a01b03919091166000908152600760205260409020805460ff1916911515919091179055565b6000805b828110156117df57846001600160a01b0316600385858481811061179457611794614271565b90506020020135815481106117ab576117ab614271565b6000918252602090912001546001600160a01b0316146117cf5760009150506117e5565b6117d881614287565b905061176e565b50600190505b9392505050565b60006117f6610ffc565b82106118595760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610407565b5090565b601554600090810361187157506000919050565b6015546040516bffffffffffffffffffffffff193360601b1660208201526000916117e5916034016040516020818303038152906040528051906020012085612e309092919063ffffffff16565b3360009081526007602052604090205460ff166118ee5760405162461bcd60e51b8152600401610407906141d1565b610f32601483836138c8565b3360009081526007602052604090205460ff166119295760405162461bcd60e51b8152600401610407906141d1565b610f32838383612e46565b6000806003838154811061194a5761194a614271565b6000918252602090912001546001600160a01b0316905080610cb25760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610407565b3360009081526007602052604090205460ff166119ef5760405162461bcd60e51b8152600401610407906141d1565b6119fb601285856138c8565b50611a08601383836138c8565b5050505050565b60006001600160a01b038216611a7a5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610407565b6000805b600354811015611ad65760038181548110611a9b57611a9b614271565b6000918252602090912001546001600160a01b0390811690851603611ac657611ac382614287565b91505b611acf81614287565b9050611a7e565b5092915050565b6006546001600160a01b03163314611b075760405162461bcd60e51b81526004016104079061419c565b611b116000612fea565b565b3360009081526007602052604090205460ff16611b425760405162461bcd60e51b8152600401610407906141d1565b601555565b6006546001600160a01b03163314611b715760405162461bcd60e51b81526004016104079061419c565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b336000908152600c60205260409020546001600160a01b031615611be85760405162461bcd60e51b815260206004820152600c60248201526b11dd585c991a585b881cd95d60a21b6044820152606401610407565b6001600160a01b0381163303611c4c5760405162461bcd60e51b815260206004820152602360248201527f477561726469616e206d757374206265206120646966666572656e742077616c6044820152621b195d60ea1b6064820152608401610407565b336000818152600c602052604080822080546001600160a01b0319166001600160a01b038616908117909155905190917fc3ce29e3ab42e524b6f6f1b4d3674898d503ee3577a64ac87b555904ebc1413891a350565b611cab82612959565b611cc75760405162461bcd60e51b81526004016104079061424b565b611cd1828261303c565b5050565b60007f000000000000000000000000ebe5a647ecb6da05f22832476166e829e79317046001600160a01b0316636352211e84846000818110611d1957611d19614271565b905060200201356040518263ffffffff1660e01b8152600401611d3e91815260200190565b602060405180830381865afa158015611d5b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d7f91906142a0565b6001600160a01b038082166000908152600c6020526040902054919250163314611dbb5760405162461bcd60e51b815260040161040790614228565b60005b828110156116d957816001600160a01b03167f000000000000000000000000ebe5a647ecb6da05f22832476166e829e79317046001600160a01b0316636352211e868685818110611e1157611e11614271565b905060200201356040518263ffffffff1660e01b8152600401611e3691815260200190565b602060405180830381865afa158015611e53573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e7791906142a0565b6001600160a01b031614611e9d5760405162461bcd60e51b8152600401610407906142bd565b7f000000000000000000000000ebe5a647ecb6da05f22832476166e829e79317046001600160a01b0316632799cde0858584818110611ede57611ede614271565b905060200201356040518263ffffffff1660e01b8152600401611f0391815260200190565b600060405180830381600087803b158015611f1d57600080fd5b505af1158015611f31573d6000803e3d6000fd5b505050508080611f4090614287565b915050611dbe565b606060018054610cc790614162565b336001600160a01b03831603611faf5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610407565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60007f000000000000000000000000ebe5a647ecb6da05f22832476166e829e79317046001600160a01b0316636352211e8585600081811061205f5761205f614271565b905060200201356040518263ffffffff1660e01b815260040161208491815260200190565b602060405180830381865afa1580156120a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120c591906142a0565b6001600160a01b038082166000908152600c60205260409020549192501633146121015760405162461bcd60e51b815260040161040790614228565b60005b83811015611a0857816001600160a01b03167f000000000000000000000000ebe5a647ecb6da05f22832476166e829e79317046001600160a01b0316636352211e87878581811061215757612157614271565b905060200201356040518263ffffffff1660e01b815260040161217c91815260200190565b602060405180830381865afa158015612199573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121bd91906142a0565b6001600160a01b0316146121e35760405162461bcd60e51b8152600401610407906142bd565b7f000000000000000000000000ebe5a647ecb6da05f22832476166e829e79317046001600160a01b03166340a9c8df86868481811061222457612224614271565b905060200201356040518263ffffffff1660e01b815260040161224991815260200190565b600060405180830381600087803b15801561226357600080fd5b505af1158015612277573d6000803e3d6000fd5b505050507f000000000000000000000000ebe5a647ecb6da05f22832476166e829e79317046001600160a01b03166342842e0e83858888868181106122be576122be614271565b6040516001600160e01b031960e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b15801561231557600080fd5b505af1158015612329573d6000803e3d6000fd5b50505050808061233890614287565b915050612104565b6006546001600160a01b0316331461236a5760405162461bcd60e51b81526004016104079061419c565b8281146123a35760405162461bcd60e51b8152602060048201526007602482015266042d8cadccee8d60cb1b6044820152606401610407565b60005b83811015611a08578282828181106123c0576123c0614271565b90506020020160208101906123d591906142dd565b600860008787858181106123eb576123eb614271565b905060200201602081019061240091906139a0565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061243281614287565b9150506123a6565b60005b838110156124af5761249f878787878581811061245c5761245c614271565b9050602002013586868080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506124b892505050565b6124a881614287565b905061243d565b50505050505050565b600082815260096020526040902054156125065760405162461bcd60e51b815260206004820152600f60248201526e151bdad95b881a5cc81b1bd8dad959608a1b6044820152606401610407565b6116d9848484846131f2565b3360009081526007602052604090205460ff166125415760405162461bcd60e51b8152600401610407906141d1565b600e55565b606061255182612959565b6125b55760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610407565b6000601480546125c490614162565b905011156125f45760146040516020016125de9190614391565b6040516020818303038152906040529050919050565b60006012805461260390614162565b90501161261f5760405180602001604052806000815250610cb2565b601261262a83613224565b60136040516020016125de9392919061439d565b60105484111561269a5760405162461bcd60e51b815260206004820152602160248201527f596f752063616e2774206d696e742074686174206d616e79206174206f6e63656044820152602160f81b6064820152608401610407565b600e546126a68261185d565b1561280457846001146127075760405162461bcd60e51b8152602060048201526024808201527f596f752063616e206f6e6c79206d696e742031204e465420617420646973636f6044820152633ab73a1760e11b6064820152608401610407565b60005b6016548110156127b857336001600160a01b03166016828154811061273157612731614271565b6000918252602090912001546001600160a01b0316036127a65760405162461bcd60e51b815260206004820152602a60248201527f54686973206164647265737320616c7265616479206d696e746564206174206160448201526920646973636f756e742160b01b6064820152608401610407565b806127b081614287565b91505061270a565b5050601680546001810182556000919091527fd833147d7dc355ba459fc788f669e58cfaf9dc25ddcd0702e87d69c7b51242890180546001600160a01b03191633179055600f54612850565b600d5460ff16156128505760405162461bcd60e51b81526020600482015260166024820152755075626c6963204d696e74206973207061757365642160501b6044820152606401610407565b61285a85826143c5565b34146128a85760405162461bcd60e51b815260206004820152601d60248201527f496e636f727265637420616d6f756e74206f66204554482073656e74210000006044820152606401610407565b611a08858585612e46565b6006546001600160a01b031633146128dd5760405162461bcd60e51b81526004016104079061419c565b6001600160a01b0381166000908152600760205260409020805460ff191660011790556111238161332c565b60006001600160e01b031982166380ac58cd60e01b148061293a57506001600160e01b03198216635b5e139f60e01b145b80610cb257506301ffc9a760e01b6001600160e01b0319831614610cb2565b60035460009082108015610cb2575060006001600160a01b03166003838154811061298657612986614271565b6000918252602090912001546001600160a01b0316141592915050565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906129d882611934565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b612a1b33826133c4565b612a375760405162461bcd60e51b8152600401610407906143e4565b610f328383836134aa565b3360009081526008602052604090205460ff16612a715760405162461bcd60e51b815260040161040790614435565b6000818152600b6020908152604080832033845290915290205415612ad85760405162461bcd60e51b815260206004820152601b60248201527f494420616c7265616479206c6f636b65642062792063616c6c657200000000006044820152606401610407565b600081815260096020526040812054612af2906001614460565b6000838152600a60209081526040808320848452825280832080546001600160a01b03191633908117909155868452600b8352818420908452825280832084905585835260099091528120805492935090612b4c83614287565b9091555050604051339083907f9ecfd70e9ff36df72989324a49559383d39f9290d700b10cf5ac10dcb68d264390600090a35050565b3360009081526008602052604090205460ff16612bb15760405162461bcd60e51b815260040161040790614435565b6000818152600b6020908152604080832033845290915281205490819003612c1b5760405162461bcd60e51b815260206004820152601760248201527f4944206e6f74206c6f636b65642062792063616c6c65720000000000000000006044820152606401610407565b600082815260096020526040902054818114612c91576000838152600a602090815260408083208484528252808320805486855282852080546001600160a01b03199081166001600160a01b03909316928317909155825416909155868452600b83528184209084529091529020829055612cb9565b6000838152600a60209081526040808320858452909152902080546001600160a01b03191690555b6000838152600b60209081526040808320338452825280832083905585835260099091528120805491612ceb83614478565b9091555050604051339084907f0fe7d9801197f79ef3b1595d19379eb58f0fff5f98b0f6d6f34c03cae5306c3790600090a3505050565b600d5460ff16612d6b5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610407565b600d805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600d5460ff1615612dfb5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610407565b600d805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612d983390565b600082612e3d8584613600565b14949350505050565b60008311612e8d5760405162461bcd60e51b815260206004820152601460248201527343616e2774206d696e74203020746f6b656e732160601b6044820152606401610407565b82811480612e9b5750600181145b612ede5760405162461bcd60e51b815260206004820152601460248201527310d85b1b0819185d18481a5cc81a5b9d985b1a5960621b6044820152606401610407565b6000612ee8610ffc565b9050610309612ef78286614460565b1115612f3b5760405162461bcd60e51b81526020600482015260136024820152724d617820737570706c7920726561636865642160681b6044820152606401610407565b6011546001600160a01b031660005b85811015612fe25760018414612f8657848482818110612f6c57612f6c614271565b9050602002016020810190612f8191906139a0565b612fae565b84846000818110612f9957612f99614271565b9050602002016020810190612fae91906139a0565b9150612fd2826002548386612fc39190614460565b612fcd9190614460565b61366c565b612fdb81614287565b9050612f4a565b505050505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03811660009081526008602052604090205460ff16156130755760405162461bcd60e51b815260040161040790614435565b6000828152600b602090815260408083206001600160a01b0385168452909152812054908190036130d85760405162461bcd60e51b815260206004820152600d60248201526c1251081b9bdd081b1bd8dad959609a1b6044820152606401610407565b60008381526009602052604090205481811461314e576000848152600a602090815260408083208484528252808320805486855282852080546001600160a01b03199081166001600160a01b03909316928317909155825416909155878452600b83528184209084529091529020829055613176565b6000848152600a60209081526040808320858452909152902080546001600160a01b03191690555b6000848152600b602090815260408083206001600160a01b03871684528252808320839055868352600990915281208054916131b183614478565b90915550506040516001600160a01b0384169085907f0fe7d9801197f79ef3b1595d19379eb58f0fff5f98b0f6d6f34c03cae5306c3790600090a350505050565b6131fc33836133c4565b6132185760405162461bcd60e51b8152600401610407906143e4565b6116d984848484613794565b60608160000361324b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613275578061325f81614287565b915061326e9050600a836144a5565b915061324f565b6000816001600160401b0381111561328f5761328f613caa565b6040519080825280601f01601f1916602001820160405280156132b9576020820181803683370190505b5090505b8415613324576132ce600183614211565b91506132db600a866144b9565b6132e6906030614460565b60f81b8183815181106132fb576132fb614271565b60200101906001600160f81b031916908160001a90535061331d600a866144a5565b94506132bd565b949350505050565b6006546001600160a01b031633146133565760405162461bcd60e51b81526004016104079061419c565b6001600160a01b0381166133bb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610407565b61112381612fea565b60006133cf82612959565b6134305760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610407565b600061343b83611934565b9050806001600160a01b0316846001600160a01b031614806134765750836001600160a01b031661346b84610d9a565b6001600160a01b0316145b8061332457506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff16613324565b826001600160a01b03166134bd82611934565b6001600160a01b0316146135255760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610407565b6001600160a01b0382166135875760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610407565b6135926000826129a3565b81600382815481106135a6576135a6614271565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600081815b845181101561145e57600085828151811061362257613622614271565b602002602001015190508083116136485760008381526020829052604090209250613659565b600081815260208490526040902092505b508061366481614287565b915050613605565b6001600160a01b0382166136c25760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610407565b6136cb81612959565b156137185760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610407565b6003805460018101825560009182527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b61379f8484846134aa565b6137ab848484846137c7565b6116d95760405162461bcd60e51b8152600401610407906144cd565b60006001600160a01b0384163b156138bd57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061380b90339089908890889060040161451f565b6020604051808303816000875af1925050508015613846575060408051601f3d908101601f191682019092526138439181019061455c565b60015b6138a3573d808015613874576040519150601f19603f3d011682016040523d82523d6000602084013e613879565b606091505b50805160000361389b5760405162461bcd60e51b8152600401610407906144cd565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050613324565b506001949350505050565b8280546138d490614162565b90600052602060002090601f0160209004810192826138f6576000855561393c565b82601f1061390f5782800160ff1982351617855561393c565b8280016001018555821561393c579182015b8281111561393c578235825591602001919060010190613921565b506118599291505b808211156118595760008155600101613944565b6001600160e01b03198116811461112357600080fd5b60006020828403121561398057600080fd5b81356117e581613958565b6001600160a01b038116811461112357600080fd5b6000602082840312156139b257600080fd5b81356117e58161398b565b60005b838110156139d85781810151838201526020016139c0565b838111156116d95750506000910152565b60008151808452613a018160208601602086016139bd565b601f01601f19169290920160200192915050565b6020815260006117e560208301846139e9565b600060208284031215613a3a57600080fd5b5035919050565b60008060408385031215613a5457600080fd5b823591506020830135613a668161398b565b809150509250929050565b60008060408385031215613a8457600080fd5b8235613a8f8161398b565b946020939093013593505050565b6020808252825182820181905260009190848201906040850190845b81811015613ade5783516001600160a01b031683529284019291840191600101613ab9565b50909695505050505050565b600080600060608486031215613aff57600080fd5b8335613b0a8161398b565b92506020840135613b1a8161398b565b929592945050506040919091013590565b60008060408385031215613b3e57600080fd5b50508035926020909101359150565b6020808252825182820181905260009190848201906040850190845b81811015613ade57835183529284019291840191600101613b69565b60008083601f840112613b9757600080fd5b5081356001600160401b03811115613bae57600080fd5b6020830191508360208260051b8501011115613bc957600080fd5b9250929050565b60008060208385031215613be357600080fd5b82356001600160401b03811115613bf957600080fd5b613c0585828601613b85565b90969095509350505050565b80358015158114610d9557600080fd5b60008060408385031215613c3457600080fd5b8235613c3f8161398b565b9150613c4d60208401613c11565b90509250929050565b600080600060408486031215613c6b57600080fd5b8335613c768161398b565b925060208401356001600160401b03811115613c9157600080fd5b613c9d86828701613b85565b9497909650939450505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715613ce857613ce8613caa565b604052919050565b600082601f830112613d0157600080fd5b813560206001600160401b03821115613d1c57613d1c613caa565b8160051b613d2b828201613cc0565b9283528481018201928281019087851115613d4557600080fd5b83870192505b84831015613d6457823582529183019190830190613d4b565b979650505050505050565b600060208284031215613d8157600080fd5b81356001600160401b03811115613d9757600080fd5b61332484828501613cf0565b60008083601f840112613db557600080fd5b5081356001600160401b03811115613dcc57600080fd5b602083019150836020828501011115613bc957600080fd5b60008060208385031215613df757600080fd5b82356001600160401b03811115613e0d57600080fd5b613c0585828601613da3565b600080600060408486031215613e2e57600080fd5b8335925060208401356001600160401b03811115613c9157600080fd5b60008060008060408587031215613e6157600080fd5b84356001600160401b0380821115613e7857600080fd5b613e8488838901613da3565b90965094506020870135915080821115613e9d57600080fd5b50613eaa87828801613da3565b95989497509550505050565b600080600060408486031215613ecb57600080fd5b83356001600160401b03811115613ee157600080fd5b613eed86828701613b85565b9094509250506020840135613f018161398b565b809150509250925092565b60008060008060408587031215613f2257600080fd5b84356001600160401b0380821115613f3957600080fd5b613f4588838901613b85565b90965094506020870135915080821115613f5e57600080fd5b50613eaa87828801613b85565b60008060008060008060808789031215613f8457600080fd5b8635613f8f8161398b565b95506020870135613f9f8161398b565b945060408701356001600160401b0380821115613fbb57600080fd5b613fc78a838b01613b85565b90965094506060890135915080821115613fe057600080fd5b50613fed89828a01613da3565b979a9699509497509295939492505050565b6000806000806080858703121561401557600080fd5b84356140208161398b565b93506020858101356140318161398b565b93506040860135925060608601356001600160401b038082111561405457600080fd5b818801915088601f83011261406857600080fd5b81358181111561407a5761407a613caa565b61408c601f8201601f19168501613cc0565b915080825289848285010111156140a257600080fd5b808484018584013760008482840101525080935050505092959194509250565b600080600080606085870312156140d857600080fd5b8435935060208501356001600160401b03808211156140f657600080fd5b61410288838901613b85565b9095509350604087013591508082111561411b57600080fd5b5061412887828801613cf0565b91505092959194509250565b6000806040838503121561414757600080fd5b82356141528161398b565b91506020830135613a668161398b565b600181811c9082168061417657607f821691505b60208210810361419657634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526010908201526f496e76616c69642064656c656761746560801b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082821015614223576142236141fb565b500390565b60208082526009908201526810b3bab0b93234b0b760b91b604082015260600190565b6020808252600c908201526b151bdad95b8808595e1a5cdd60a21b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b600060018201614299576142996141fb565b5060010190565b6000602082840312156142b257600080fd5b81516117e58161398b565b60208082526006908201526510b7bbb732b960d11b604082015260600190565b6000602082840312156142ef57600080fd5b6117e582613c11565b8054600090600181811c908083168061431257607f831692505b6020808410820361433357634e487b7160e01b600052602260045260246000fd5b818015614347576001811461435857614385565b60ff19861689528489019650614385565b60008881526020902060005b8681101561437d5781548b820152908501908301614364565b505084890196505b50505050505092915050565b60006117e582846142f8565b60006143a982866142f8565b84516143b98183602089016139bd565b613d64818301866142f8565b60008160001904831182151516156143df576143df6141fb565b500290565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b602080825260119082015270043616e6e6f7420757064617465206d617607c1b604082015260600190565b60008219821115614473576144736141fb565b500190565b600081614487576144876141fb565b506000190190565b634e487b7160e01b600052601260045260246000fd5b6000826144b4576144b461448f565b500490565b6000826144c8576144c861448f565b500690565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090614552908301846139e9565b9695505050505050565b60006020828403121561456e57600080fd5b81516117e58161395856fea264697066735822122042cbb2ec0126be575e9cbf8d70f4614d24ca8dc49c9cc759aa419f94712b39a864736f6c634300080d0033

Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ 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.