ETH Price: $3,430.58 (-1.54%)

Token

DemonicDorks (DD)
 

Overview

Max Total Supply

6,666 DD

Holders

2,373

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 DD
0x2da823ab2ffdac53c3c29392952e9d50ec805eb9
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:
DemonicDorks

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 200 runs

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

/*
 *           ....                 ....
 *       .xH888888Hx.         .xH888888Hx.
 *     .H8888888888888:     .H8888888888888:
 *     888*"""?""*88888X    888*"""?""*88888X
 *    'f     d8x.   ^%88k  'f     d8x.   ^%88k
 *    '>    <88888X   '?8  '>    <88888X   '?8
 *     `:..:`888888>    8>  `:..:`888888>    8>
 *            `"*88     X          `"*88     X
 *       .xHHhx.."      !     .xHHhx.."      !
 *      X88888888hx. ..!     X88888888hx. ..!
 *     !   "*888888888"     !   "*888888888"
 *            ^"***"`              ^"***"`
 *
 * FOUNDER: @psychedemon
 * ART: @Cho_Though, @madison_nft, @ccalicobuns
 * DEV: @ghooost0x2a
 **********************************
 * @title: Demonic Dorks
 * @author: @ghooost0x2a ⊂(´・◡・⊂ )∘˚˳°
 **********************************
 * ERC721B2FA - Ultra Low Gas - 2 Factor Authentication
 *****************************************************************
 * ERC721B2FA is based on ERC721B low gas contract by @squuebo_nft
 * and the LockRegistry/Guardian contracts by @OwlOfMoistness
 *****************************************************************
 *      .-----.
 *    .' -   - '.
 *   /  .-. .-.  \
 *   |  | | | |  |
 *    \ \o/ \o/ /
 *   _/    ^    \_
 *  | \  '---'  / |
 *  / /`--. .--`\ \
 * / /'---` `---'\ \
 * '.__.       .__.'
 *     `|     |`
 *      |     \
 *      \      '--.
 *       '.        `\
 *         `'---.   |
 *            ,__) /
 *             `..'
 */

import "./ERC721B2FAEnumLitePausable.sol";
import "./GuardianLiteB2FA.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

contract DemonicDorks is ERC721B2FAEnumLitePausable, GuardianLiteB2FA {
    using MerkleProof for bytes32[];
    using Address for address;
    using Strings for uint256;

    event Withdrawn(address indexed payee, uint256 weiAmount);

    uint256 public MAX_SUPPLY = 10000;
    string internal baseURI = "";
    string internal uriSuffix = "";

    address private paymentRecipient =
        0x7a60BF1862c9ecA713fEEEA6b32C44c3AafaAE10;

    // dev: public mints
    uint256 public maxPublicMintsPerWallet = 1;
    uint256 public maxPreSaleMintsPerWallet = 3;

    uint256 public teamMinted = 0;

    bytes32 private merkleRoot = 0;
    mapping(address => uint256) public presaleMintedAddys;
    mapping(address => uint256) public publicMintedAddys;

    // 0 = Pause; 1 = Presale; 2 = Public
    uint256 public mintPhase = 0;

    constructor() ERC721B2FAEnumLitePausable("DemonicDorks", "DD", 1) {}

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

    receive() external payable {}

    //getter fns
    function getPaymentRecipient()
        external
        view
        onlyDelegates
        returns (address)
    {
        return paymentRecipient;
    }

    function tokenURI(uint256 tokenId)
        external
        view
        override
        returns (string memory)
    {
        require(
            _exists(tokenId),
            "ERC721Metadata: URI query for nonexistent token"
        );
        return
            bytes(baseURI).length > 0
                ? string(
                    abi.encodePacked(baseURI, tokenId.toString(), uriSuffix)
                )
                : "";
    }

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

    function setMaxPublicMintsPerWallet(uint256 maxPub) external onlyDelegates {
        maxPublicMintsPerWallet = maxPub;
    }

    function setMaxPreSaleMintsPerWallet(uint256 maxPre)
        external
        onlyDelegates
    {
        maxPreSaleMintsPerWallet = maxPre;
    }

    function setPaymentRecipient(address addy) external onlyDelegates {
        paymentRecipient = addy;
    }

    function setReducedMaxSupply(uint256 new_max_supply)
        external
        onlyDelegates
    {
        require(new_max_supply < MAX_SUPPLY, "Can only set a lower size.");
        require(
            new_max_supply >= totalSupply(),
            "New supply lower current totalSupply"
        );
        MAX_SUPPLY = new_max_supply;
    }

    function setMintPhase(uint256 newPhase) external onlyDelegates {
        mintPhase = newPhase;
    }

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

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

    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))
        );
        return proof_valid;
    }

    function teamMint(uint256 qty, address addy) external onlyDelegates {
        teamMinted += qty;
        _minty(qty, addy);
    }

    //pre-sale mint
    function dorkyMint(uint256 qty, bytes32[] memory proof) external {
        require(
            mintPhase == 1 || _isDelegate(_msgSender()),
            "Pre-Sale mint not open"
        );
        require(
            presaleMintedAddys[_msgSender()] + qty <= maxPreSaleMintsPerWallet,
            "Already minted max pre-sale"
        );
        require(
            isvalidMerkleProof(proof),
            "You are not authorized for pre-sale"
        );

        presaleMintedAddys[_msgSender()] += qty;
        _minty(qty, _msgSender());
    }

    function feelinMinty(uint256 quantity) external {
        require(
            mintPhase == 2 || _isDelegate(_msgSender()),
            "Public mint is not open yet!"
        );
        require(
            publicMintedAddys[_msgSender()] + quantity <=
                maxPublicMintsPerWallet,
            "You have reached limit mint"
        );

        publicMintedAddys[_msgSender()] += quantity;
        _minty(quantity, _msgSender());
    }

    function _minty(uint256 quantity, address addy) internal {
        require(quantity > 0, "Can't mint 0 tokens!");
        require(quantity + totalSupply() <= MAX_SUPPLY, "Max supply reached!");
        for (uint256 i = 0; i < quantity; i++) {
            _safeMint(addy, next());
        }
    }

    //Just in case some ETH ends up in the contract so it doesn't remain stuck.
    function withdraw() external onlyDelegates {
        uint256 contract_balance = address(this).balance;

        address payable w_addy = payable(paymentRecipient);

        (bool success, ) = w_addy.call{value: (contract_balance)}("");
        require(success, "Withdrawal failed!");

        emit Withdrawn(w_addy, contract_balance);
    }
}

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

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

File 4 of 23 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 5 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;
    mapping(address => address) public pendingGuardians;

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

    /**
     * using address(this) when the Guardian is deployed in the same contract as the ERC721B
     */
    constructor() {
        LOCKABLE = ILockERC721(address(this));
    }

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

        pendingGuardians[msg.sender] = _guardian;
        emit PendingGuardianSet(_guardian, msg.sender);
    }

    function acceptGuardianship(address _protege) external {
        require(
            pendingGuardians[_protege] == msg.sender,
            "Not the pending guardian"
        );

        pendingGuardians[_protege] = address(0);
        guardians[_protege] = msg.sender;
        emit GuardianSet(msg.sender, _protege);
    }

    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;
        for (uint256 i = 0; i < _tokenIds.length; i++) {
            owner = LOCKABLE.ownerOf(_tokenIds[i]);
            require(guardians[owner] == msg.sender, "!guardian");
            LOCKABLE.lockId(_tokenIds[i]);
        }
    }

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

    /** Modified to grant temporary approval on the token,
     *   to the guardian contract, before initiating transfer */
    function unlockManyAndTransfer(
        uint256[] calldata _tokenIds,
        address _recipient
    ) external {
        address owner;
        for (uint256 i = 0; i < _tokenIds.length; i++) {
            owner = LOCKABLE.ownerOf(_tokenIds[i]);
            require(guardians[owner] == msg.sender, "!guardian");
            LOCKABLE.temporaryApproval(_tokenIds[i]);
            LOCKABLE.unlockId(_tokenIds[i]);
            LOCKABLE.safeTransferFrom(owner, _recipient, _tokenIds[i]);
        }
    }
}

File 6 of 23 : ERC721B2FAEnumLitePausable.sol
// SPDX-License-Identifier: BSD-3-Clause
pragma solidity ^0.8.14;
/***
 *************************************************************************
 * ERC721B2FA - Ultra Low Gas - 2 Factor Authentication                  *
 * @author: @ghooost0x2a                                                 *
 *************************************************************************
 * ERC721B2FA is a modified version of EnumerableLite, by @squuebo_nft   *
 * and the LockRegistry/Guardian contracts by @OwlOfMoistness            *
 *************************************************************************
 *     :::::::              ::::::::      :::                            *
 *    :+:   :+: :+:    :+: :+:    :+:   :+: :+:                          *
 *    +:+  :+:+  +:+  +:+        +:+   +:+   +:+                         *
 *    +#+ + +:+   +#++:+       +#+    +#++:++#++:                        *
 *    +#+#  +#+  +#+  +#+    +#+      +#+     +#+                        *
 *    #+#   #+# #+#    #+#  #+#       #+#     #+#                        *
 *     #######             ########## ###     ###                        *
 *************************************************************************/

import "./ERC721BLockRegistry.sol";
import "./IBatch.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";

abstract contract ERC721B2FAEnumLitePausable is
    ERC721BLockRegistry,
    Pausable,
    IBatch,
    IERC721Enumerable
{
    constructor(
        string memory _name,
        string memory _symbol,
        uint256 _offset
    ) ERC721BLockRegistry(_name, _symbol, _offset) {}

    function setDefaultRoyalty(address receiver, uint96 feeNumerator)
        external
        onlyDelegates
    {
        _setDefaultRoyalty(receiver, feeNumerator);
    }

    function deleteDefaultRoyalty() external onlyDelegates {
        _deleteDefaultRoyalty();
    }

    function setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) external onlyDelegates {
        _setTokenRoyalty(tokenId, receiver, feeNumerator);
    }

    function resetTokenRoyalty(uint256 tokenId) external onlyDelegates {
        _resetTokenRoyalty(tokenId);
    }

    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
        override(ERC721B, IERC721Enumerable)
        returns (uint256)
    {
        return _owners.length - _offset;
    }

    // Modified to call ERC721BLockRegistry's safeTransferFrom (to account for 2FA)
    function transferBatch(
        address from,
        address to,
        uint256[] calldata tokenIds,
        bytes calldata data
    ) external override {
        for (uint256 i; i < tokenIds.length; ++i) {
            ERC721BLockRegistry.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 7 of 23 : ILockERC721.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;

import "./ERC721B.sol";

/**
 * Modified interface to add temporaryApproval for guardian contract
 */
interface ILockERC721 is IERC721 {
    function lockId(uint256 _id) external;

    function unlockId(uint256 _id) external;

    function freeId(uint256 _id, address _contract) external;

    function temporaryApproval(uint256 _id) external;
}

File 8 of 23 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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 Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

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

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

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        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 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.13;

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 : ERC721BLockRegistry.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.2;

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

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

abstract contract ERC721BLockRegistry 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
    ) external override(ERC721B, IERC721) {
        require(isUnlocked(tokenId), "Token is locked");
        ERC721B.safeTransferFrom(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);
    }

    /**
     * Added this function to be called (from an approvedContract's unlockManyAndTransfer)
     * so that the user doesn't need to provide authorization to the guardian contract, in advance
     */
    function temporaryApproval(uint256 tokenId) external {
        require(_exists(tokenId), "Token !exist");
        require(!isUnlocked(tokenId), "Token !locked");
        require(
            LockRegistry.approvedContract[_msgSender()],
            "Not approved contract"
        );
        ERC721B._approve(_msgSender(), tokenId);
    }

    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
        onlyDelegates
    {
        require(_exists(_id), "Token !exist");
        _freeId(_id, _contract);
    }
}

File 12 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";
import "@openzeppelin/contracts/token/common/ERC2981.sol";

abstract contract ERC721B is
    Context,
    ERC165,
    ERC2981,
    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, ERC2981)
        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);
        _resetTokenRoyalty(tokenId);
        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 13 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 onlyDelegates {
        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 14 of 23 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 15 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 16 of 23 : Delegated.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

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

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

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

    constructor() Ownable() {
        setDelegate(owner(), true);
    }

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

    function _isDelegate(address addr) internal view returns (bool) {
        return _delegates[addr];
    }

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

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

File 17 of 23 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

File 18 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 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 (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions 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);
    }
}

File 23 of 23 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

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":"address","name":"pendingGuardian","type":"address"},{"indexed":true,"internalType":"address","name":"user","type":"address"}],"name":"PendingGuardianSet","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":"_protege","type":"address"}],"name":"acceptGuardianship","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","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":"deleteDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"qty","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"dorkyMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"feelinMinty","outputs":[],"stateMutability":"nonpayable","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":"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":"getPaymentRecipient","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":"maxPreSaleMintsPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPublicMintsPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPhase","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":"address","name":"","type":"address"}],"name":"pendingGuardians","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"presaleMintedAddys","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_guardian","type":"address"}],"name":"proposeGuardian","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"publicMintedAddys","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":"uint256","name":"tokenId","type":"uint256"}],"name":"resetTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"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":"setBaseSuffixURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","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":"uint256","name":"maxPre","type":"uint256"}],"name":"setMaxPreSaleMintsPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxPub","type":"uint256"}],"name":"setMaxPublicMintsPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"mRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPhase","type":"uint256"}],"name":"setMintPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addy","type":"address"}],"name":"setPaymentRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"new_max_supply","type":"uint256"}],"name":"setReducedMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setTokenRoyalty","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":"qty","type":"uint256"},{"internalType":"address","name":"addy","type":"address"}],"name":"teamMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"teamMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"temporaryApproval","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"}]

61271060115560c0604052600060a090815260129062000020908262000345565b506040805160208101909152600081526013906200003f908262000345565b50601480546001600160a01b031916737a60bf1862c9eca713feeea6b32c44c3aafaae1017905560016015556003601655600060178190556018819055601b553480156200008c57600080fd5b506040518060400160405280600c81526020016b44656d6f6e6963446f726b7360a01b81525060405180604001604052806002815260200161111160f21b81525060018282828282828260029081620000e6919062000345565b506003620000f5838262000345565b50600481905560005b6004548110156200015c57600580546001810182556000919091527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db00180546001600160a01b0319169055620001548162000411565b9050620000fe565b505050506200017a62000174620001b460201b60201c565b620001b8565b62000199620001916008546001600160a01b031690565b60016200020a565b5050600e805460ff1916905550503060805250620004399050565b3390565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620002146200023f565b6001600160a01b03919091166000908152600960205260409020805460ff1916911515919091179055565b6008546001600160a01b031633146200029e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620002cb57607f821691505b602082108103620002ec57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200034057600081815260208120601f850160051c810160208610156200031b5750805b601f850160051c820191505b818110156200033c5782815560010162000327565b5050505b505050565b81516001600160401b03811115620003615762000361620002a0565b6200037981620003728454620002b6565b84620002f2565b602080601f831160018114620003b15760008415620003985750858301515b600019600386901b1c1916600185901b1785556200033c565b600085815260208120601f198616915b82811015620003e257888601518255948401946001909101908401620003c1565b5085821015620004015787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000600182016200043257634e487b7160e01b600052601160045260246000fd5b5060010190565b6080516148726200048d600039600081816105f8015281816115e2015281816116c501528181611d5e01528181611e4101528181612108015281816121eb01528181612283015261231b01526148726000f3fe6080604052600436106104145760003560e01c80635f618d451161021e578063ac52e64411610123578063c5426e79116100ab578063e250fd231161007a578063e250fd2314610d4b578063e4b1451c14610d6b578063e8b5498d14610d98578063e985e9c514610dae578063f2fde38b14610df75761041b565b8063c5426e7914610cd6578063c59ce17114610cf6578063c87b56dd14610d0b578063dab3900f14610d2b5761041b565b8063b7c34a9c116100f2578063b7c34a9c14610c40578063b88d4fde14610c60578063bfa457bc14610c80578063bfa5f47f14610ca0578063c304555f14610cb65761041b565b8063ac52e64414610bb0578063b1a6505f14610bd0578063b3a1678914610c00578063b534a5c414610c205761041b565b8063943431bf116101a6578063998af13111610175578063998af13114610b1b578063a22cb46514610b3b578063a3ff82ff14610b5b578063aa1b103f14610b7b578063ac1855c114610b905761041b565b8063943431bf14610aa657806394d216d614610ac657806395207ee114610ae657806395d89b4114610b065761041b565b8063715018a6116101ed578063715018a614610a0557806372abc8b714610a1a5780637cb6475914610a485780638a616bc014610a685780638da5cb5b14610a885761041b565b80635f618d451461096b5780636352211e14610998578063650b00f6146109b857806370a08231146109e55761041b565b80632cba81231161032457806349590657116102ac5780634f6ccce71161027b5780634f6ccce7146108d357806351bbf8d8146108f3578063536019af146109135780635944c753146109335780635c975abb146109535761041b565b806349590657146108695780634a994eef1461087e5780634c8fe5261461089e5780634d44660c146108b35761041b565b80633ccfd60b116102f35780633ccfd60b146107c757806340a9c8df146107dc57806342842e0e146107fc578063438b63001461081c57806347028a5c146108495761041b565b80632cba81231461071a5780632d1836f81461075b5780632f745c591461079157806332cb6b0c146107b15761041b565b80630b776690116103a75780631f76a7af116103765780631f76a7af1461065b57806323b872dd1461067b5780632799cde01461069b5780632983c4b8146106bb5780632a55205a146106db5761041b565b80630b776690146105e65780630df553201461061a57806317881cbf1461063057806318160ddd146106465761041b565b806307779627116103e35780630777962714610540578063081812fc1461056057806309308e5d14610580578063095ea7b3146105c65761041b565b806301ffc9a71461047957806304634d8d146104ae5780630633b14a146104d057806306fdde031461051e5761041b565b3661041b57005b60405162461bcd60e51b815260206004820152602860248201527f596f7520686974207468652066616c6c6261636b20666e2c2066616d212054726044820152673c9030b3b0b4b71760c11b60648201526084015b60405180910390fd5b34801561048557600080fd5b50610499610494366004613b92565b610e17565b60405190151581526020015b60405180910390f35b3480156104ba57600080fd5b506104ce6104c9366004613bdb565b610e42565b005b3480156104dc57600080fd5b506105066104eb366004613c10565b600f602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020016104a5565b34801561052a57600080fd5b50610533610e7f565b6040516104a59190613c85565b34801561054c57600080fd5b5061049961055b366004613c10565b610f11565b34801561056c57600080fd5b5061050661057b366004613c98565b610f3e565b34801561058c57600080fd5b506105b861059b366004613cb1565b600d60209081526000928352604080842090915290825290205481565b6040519081526020016104a5565b3480156105d257600080fd5b506104ce6105e1366004613ce1565b610fc6565b3480156105f257600080fd5b506105067f000000000000000000000000000000000000000000000000000000000000000081565b34801561062657600080fd5b506105b860155481565b34801561063c57600080fd5b506105b8601b5481565b34801561065257600080fd5b506105b86110db565b34801561066757600080fd5b506104ce610676366004613c10565b6110f2565b34801561068757600080fd5b506104ce610696366004613d0d565b61117b565b3480156106a757600080fd5b506104ce6106b6366004613c98565b6111b2565b3480156106c757600080fd5b506104ce6106d6366004613c10565b6111e3565b3480156106e757600080fd5b506106fb6106f6366004613d4e565b611234565b604080516001600160a01b0390931683526020830191909152016104a5565b34801561072657600080fd5b50610506610735366004613d4e565b600c6020908152600092835260408084209091529082529020546001600160a01b031681565b34801561076757600080fd5b50610506610776366004613c10565b6010602052600090815260409020546001600160a01b031681565b34801561079d57600080fd5b506105b86107ac366004613ce1565b6112e2565b3480156107bd57600080fd5b506105b860115481565b3480156107d357600080fd5b506104ce6113ad565b3480156107e857600080fd5b506104ce6107f7366004613c98565b6114c0565b34801561080857600080fd5b506104ce610817366004613d0d565b6114ee565b34801561082857600080fd5b5061083c610837366004613c10565b611535565b6040516104a59190613d70565b34801561085557600080fd5b506104ce610864366004613df8565b6115d4565b34801561087557600080fd5b506105b8611774565b34801561088a57600080fd5b506104ce610899366004613e49565b6117aa565b3480156108aa57600080fd5b506005546105b8565b3480156108bf57600080fd5b506104996108ce366004613e75565b6117dd565b3480156108df57600080fd5b506105b86108ee366004613c98565b61185f565b3480156108ff57600080fd5b5061049961090e366004613f8e565b6118d0565b34801561091f57600080fd5b506104ce61092e366004613fc2565b611932565b34801561093f57600080fd5b506104ce61094e366004614008565b611aa2565b34801561095f57600080fd5b50600e5460ff16610499565b34801561097757600080fd5b506105b8610986366004613c10565b601a6020526000908152604090205481565b3480156109a457600080fd5b506105066109b3366004613c98565b611adc565b3480156109c457600080fd5b506105b86109d3366004613c98565b600b6020526000908152604090205481565b3480156109f157600080fd5b506105b8610a00366004613c10565b611b68565b348015610a1157600080fd5b506104ce611c36565b348015610a2657600080fd5b50610499610a35366004613c98565b6000908152600b60205260409020541590565b348015610a5457600080fd5b506104ce610a63366004613c98565b611c4a565b348015610a7457600080fd5b506104ce610a83366004613c98565b611c7e565b348015610a9457600080fd5b506008546001600160a01b0316610506565b348015610ab257600080fd5b506104ce610ac1366004613c98565b611cbe565b348015610ad257600080fd5b506104ce610ae1366004613cb1565b611cf2565b348015610af257600080fd5b506104ce610b01366004613df8565b611d50565b348015610b1257600080fd5b50610533611eea565b348015610b2757600080fd5b506104ce610b36366004613c98565b611ef9565b348015610b4757600080fd5b506104ce610b56366004613e49565b611fca565b348015610b6757600080fd5b506104ce610b76366004613c98565b61208e565b348015610b8757600080fd5b506104ce6120c2565b348015610b9c57600080fd5b506104ce610bab366004614046565b6120fa565b348015610bbc57600080fd5b506104ce610bcb36600461409c565b6123e5565b348015610bdc57600080fd5b50610499610beb366004613c10565b600a6020526000908152604090205460ff1681565b348015610c0c57600080fd5b506104ce610c1b366004613c98565b6124e4565b348015610c2c57600080fd5b506104ce610c3b366004614148565b612518565b348015610c4c57600080fd5b506104ce610c5b366004613c98565b612596565b348015610c6c57600080fd5b506104ce610c7b3660046141dc565b61267e565b348015610c8c57600080fd5b506104ce610c9b366004613cb1565b6126b6565b348015610cac57600080fd5b506105b860165481565b348015610cc257600080fd5b506104ce610cd1366004613c10565b612707565b348015610ce257600080fd5b506104ce610cf1366004613c98565b612816565b348015610d0257600080fd5b50610506612912565b348015610d1757600080fd5b50610533610d26366004613c98565b612951565b348015610d3757600080fd5b506104ce610d46366004613c10565b612a1f565b348015610d5757600080fd5b506104ce610d6636600461429f565b612aee565b348015610d7757600080fd5b506105b8610d86366004613c10565b60196020526000908152604090205481565b348015610da457600080fd5b506105b860175481565b348015610dba57600080fd5b50610499610dc93660046142fe565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610e0357600080fd5b506104ce610e12366004613c10565b612b38565b60006001600160e01b0319821663780e9d6360e01b1480610e3c5750610e3c82612b6c565b92915050565b3360009081526009602052604090205460ff16610e715760405162461bcd60e51b81526004016104709061432c565b610e7b8282612bac565b5050565b606060028054610e8e90614356565b80601f0160208091040260200160405190810160405280929190818152602001828054610eba90614356565b8015610f075780601f10610edc57610100808354040283529160200191610f07565b820191906000526020600020905b815481529060010190602001808311610eea57829003601f168201915b5050505050905090565b6000610f1b612c66565b506001600160a01b03811660009081526009602052604090205460ff165b919050565b6000610f4982612cc0565b610faa5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610470565b506000908152600660205260409020546001600160a01b031690565b6000610fd182611adc565b9050806001600160a01b0316836001600160a01b03160361103e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610470565b336001600160a01b038216148061105a575061105a8133610dc9565b6110cc5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610470565b6110d68383612d0a565b505050565b6004546005546000916110ed916143a6565b905090565b6001600160a01b038181166000908152600f602052604090205416331461112b5760405162461bcd60e51b8152600401610470906143bd565b6001600160a01b0381166000818152600f602052604080822080546001600160a01b03191690555133917f5b8f9622aeb5e504027e0bedd2e6ab42b294a529d87f5ef2ebf1dc0a1fe0f08191a350565b6000818152600b6020526040902054156111a75760405162461bcd60e51b8152600401610470906143e0565b6110d6838383612d78565b6111bb81612cc0565b6111d75760405162461bcd60e51b815260040161047090614409565b6111e081612da9565b50565b3360009081526009602052604090205460ff166112125760405162461bcd60e51b81526004016104709061432c565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916112a95750604080518082019091526000546001600160a01b0381168252600160a01b90046001600160601b031660208201525b6020810151600090612710906112c8906001600160601b03168761442f565b6112d29190614464565b91519350909150505b9250929050565b60008060005b600554811015611350576005818154811061130557611305614478565b6000918252602090912001546001600160a01b039081169086160361134057838203611334579150610e3c9050565b61133d8261448e565b91505b6113498161448e565b90506112e8565b5060405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610470565b3360009081526009602052604090205460ff166113dc5760405162461bcd60e51b81526004016104709061432c565b60145460405147916001600160a01b031690600090829084908381818185875af1925050503d806000811461142d576040519150601f19603f3d011682016040523d82523d6000602084013e611432565b606091505b50509050806114785760405162461bcd60e51b81526020600482015260126024820152715769746864726177616c206661696c65642160701b6044820152606401610470565b816001600160a01b03167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5846040516114b391815260200190565b60405180910390a2505050565b6114c981612cc0565b6114e55760405162461bcd60e51b815260040161047090614409565b6111e081612ee9565b6000818152600b60205260409020541561151a5760405162461bcd60e51b8152600401610470906143e0565b6110d683838360405180602001604052806000815250613089565b6060600061154283611b68565b90506000816001600160401b0381111561155e5761155e613ec9565b604051908082528060200260200182016040528015611587578160200160208202803683370190505b50905060005b828110156115cc5761159f85826112e2565b8282815181106115b1576115b1614478565b60209081029190910101526115c58161448e565b905061158d565b509392505050565b6000805b8281101561176e577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316636352211e85858481811061162157611621614478565b905060200201356040518263ffffffff1660e01b815260040161164691815260200190565b602060405180830381865afa158015611663573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061168791906144a7565b6001600160a01b038082166000908152600f60205260409020549193501633146116c35760405162461bcd60e51b8152600401610470906143bd565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166340a9c8df85858481811061170457611704614478565b905060200201356040518263ffffffff1660e01b815260040161172991815260200190565b600060405180830381600087803b15801561174357600080fd5b505af1158015611757573d6000803e3d6000fd5b5050505080806117669061448e565b9150506115d8565b50505050565b3360009081526009602052604081205460ff166117a35760405162461bcd60e51b81526004016104709061432c565b5060185490565b6117b2612c66565b6001600160a01b03919091166000908152600960205260409020805460ff1916911515919091179055565b6000805b8281101561185257846001600160a01b0316600585858481811061180757611807614478565b905060200201358154811061181e5761181e614478565b6000918252602090912001546001600160a01b031614611842576000915050611858565b61184b8161448e565b90506117e1565b50600190505b9392505050565b60006118696110db565b82106118cc5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610470565b5090565b60185460009081036118e457506000919050565b6018546040516bffffffffffffffffffffffff193360601b1660208201526000916118589160340160405160208183030381529060405280519060200120856130bb9092919063ffffffff16565b601b54600114806119615750611961335b6001600160a01b031660009081526009602052604090205460ff1690565b6119a65760405162461bcd60e51b815260206004820152601660248201527528393296a9b0b6329036b4b73a103737ba1037b832b760511b6044820152606401610470565b601654336000908152601960205260409020546119c49084906144c4565b1115611a125760405162461bcd60e51b815260206004820152601b60248201527f416c7265616479206d696e746564206d6178207072652d73616c6500000000006044820152606401610470565b611a1b816118d0565b611a735760405162461bcd60e51b815260206004820152602360248201527f596f7520617265206e6f7420617574686f72697a656420666f72207072652d73604482015262616c6560e81b6064820152608401610470565b3360009081526019602052604081208054849290611a929084906144c4565b90915550610e7b905082336130d1565b3360009081526009602052604090205460ff16611ad15760405162461bcd60e51b81526004016104709061432c565b6110d68383836131a0565b60008060058381548110611af257611af2614478565b6000918252602090912001546001600160a01b0316905080610e3c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610470565b60006001600160a01b038216611bd35760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610470565b6000805b600554811015611c2f5760058181548110611bf457611bf4614478565b6000918252602090912001546001600160a01b0390811690851603611c1f57611c1c8261448e565b91505b611c288161448e565b9050611bd7565b5092915050565b611c3e612c66565b611c48600061326b565b565b3360009081526009602052604090205460ff16611c795760405162461bcd60e51b81526004016104709061432c565b601855565b3360009081526009602052604090205460ff16611cad5760405162461bcd60e51b81526004016104709061432c565b600090815260016020526040812055565b3360009081526009602052604090205460ff16611ced5760405162461bcd60e51b81526004016104709061432c565b601b55565b3360009081526009602052604090205460ff16611d215760405162461bcd60e51b81526004016104709061432c565b611d2a82612cc0565b611d465760405162461bcd60e51b815260040161047090614409565b610e7b82826132bd565b6000805b8281101561176e577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316636352211e858584818110611d9d57611d9d614478565b905060200201356040518263ffffffff1660e01b8152600401611dc291815260200190565b602060405180830381865afa158015611ddf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e0391906144a7565b6001600160a01b038082166000908152600f6020526040902054919350163314611e3f5760405162461bcd60e51b8152600401610470906143bd565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632799cde0858584818110611e8057611e80614478565b905060200201356040518263ffffffff1660e01b8152600401611ea591815260200190565b600060405180830381600087803b158015611ebf57600080fd5b505af1158015611ed3573d6000803e3d6000fd5b505050508080611ee29061448e565b915050611d54565b606060038054610e8e90614356565b611f0281612cc0565b611f1e5760405162461bcd60e51b815260040161047090614409565b6000818152600b6020526040902054611f695760405162461bcd60e51b815260206004820152600d60248201526c151bdad95b88085b1bd8dad959609a1b6044820152606401610470565b336000908152600a602052604090205460ff16611fc05760405162461bcd60e51b8152602060048201526015602482015274139bdd08185c1c1c9bdd99590818dbdb9d1c9858dd605a1b6044820152606401610470565b6111e03382612d0a565b336001600160a01b038316036120225760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610470565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b3360009081526009602052604090205460ff166120bd5760405162461bcd60e51b81526004016104709061432c565b601655565b3360009081526009602052604090205460ff166120f15760405162461bcd60e51b81526004016104709061432c565b611c4860008055565b6000805b838110156123de577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316636352211e86868481811061214757612147614478565b905060200201356040518263ffffffff1660e01b815260040161216c91815260200190565b602060405180830381865afa158015612189573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121ad91906144a7565b6001600160a01b038082166000908152600f60205260409020549193501633146121e95760405162461bcd60e51b8152600401610470906143bd565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663998af13186868481811061222a5761222a614478565b905060200201356040518263ffffffff1660e01b815260040161224f91815260200190565b600060405180830381600087803b15801561226957600080fd5b505af115801561227d573d6000803e3d6000fd5b505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166340a9c8df8686848181106122c2576122c2614478565b905060200201356040518263ffffffff1660e01b81526004016122e791815260200190565b600060405180830381600087803b15801561230157600080fd5b505af1158015612315573d6000803e3d6000fd5b505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166342842e0e838588888681811061235c5761235c614478565b6040516001600160e01b031960e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b1580156123b357600080fd5b505af11580156123c7573d6000803e3d6000fd5b5050505080806123d69061448e565b9150506120fe565b5050505050565b3360009081526009602052604090205460ff166124145760405162461bcd60e51b81526004016104709061432c565b82811461244d5760405162461bcd60e51b8152602060048201526007602482015266042d8cadccee8d60cb1b6044820152606401610470565b60005b838110156123de5782828281811061246a5761246a614478565b905060200201602081019061247f91906144dc565b600a600087878581811061249557612495614478565b90506020020160208101906124aa9190613c10565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806124dc8161448e565b915050612450565b3360009081526009602052604090205460ff166125135760405162461bcd60e51b81526004016104709061432c565b601555565b60005b8381101561258d5761257d878787878581811061253a5761253a614478565b9050602002013586868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061267e92505050565b6125868161448e565b905061251b565b50505050505050565b3360009081526009602052604090205460ff166125c55760405162461bcd60e51b81526004016104709061432c565b60115481106126165760405162461bcd60e51b815260206004820152601a60248201527f43616e206f6e6c79207365742061206c6f7765722073697a652e0000000000006044820152606401610470565b61261e6110db565b8110156126795760405162461bcd60e51b8152602060048201526024808201527f4e657720737570706c79206c6f7765722063757272656e7420746f74616c537560448201526370706c7960e01b6064820152608401610470565b601155565b6000828152600b6020526040902054156126aa5760405162461bcd60e51b8152600401610470906143e0565b61176e84848484613089565b3360009081526009602052604090205460ff166126e55760405162461bcd60e51b81526004016104709061432c565b81601760008282546126f791906144c4565b90915550610e7b905082826130d1565b336000908152600f60205260409020546001600160a01b03161561275c5760405162461bcd60e51b815260206004820152600c60248201526b11dd585c991a585b881cd95d60a21b6044820152606401610470565b6001600160a01b03811633036127c05760405162461bcd60e51b815260206004820152602360248201527f477561726469616e206d757374206265206120646966666572656e742077616c6044820152621b195d60ea1b6064820152608401610470565b3360008181526010602052604080822080546001600160a01b0319166001600160a01b038616908117909155905190917f503d1e4f800a36ee58e59b969fc42121ae1ebf3d1a20b558d5248d879427522c91a350565b601b546002148061282b575061282b33611943565b6128775760405162461bcd60e51b815260206004820152601c60248201527f5075626c6963206d696e74206973206e6f74206f70656e2079657421000000006044820152606401610470565b601554336000908152601a60205260409020546128959083906144c4565b11156128e35760405162461bcd60e51b815260206004820152601b60248201527f596f7520686176652072656163686564206c696d6974206d696e7400000000006044820152606401610470565b336000908152601a6020526040812080548392906129029084906144c4565b909155506111e0905081336130d1565b3360009081526009602052604081205460ff166129415760405162461bcd60e51b81526004016104709061432c565b506014546001600160a01b031690565b606061295c82612cc0565b6129c05760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610470565b6000601280546129cf90614356565b9050116129eb5760405180602001604052806000815250610e3c565b60126129f683613473565b6013604051602001612a0a9392919061456a565b60405160208183030381529060405292915050565b6001600160a01b03818116600090815260106020526040902054163314612a885760405162461bcd60e51b815260206004820152601860248201527f4e6f74207468652070656e64696e6720677561726469616e00000000000000006044820152606401610470565b6001600160a01b038116600081815260106020908152604080832080546001600160a01b0319908116909155600f9092528083208054339316831790555190917fc3ce29e3ab42e524b6f6f1b4d3674898d503ee3577a64ac87b555904ebc1413891a350565b3360009081526009602052604090205460ff16612b1d5760405162461bcd60e51b81526004016104709061432c565b6012612b2a8486836145e0565b5060136123de8284836145e0565b612b40612c66565b6001600160a01b0381166000908152600960205260409020805460ff191660011790556111e08161357b565b60006001600160e01b031982166380ac58cd60e01b1480612b9d57506001600160e01b03198216635b5e139f60e01b145b80610e3c5750610e3c826135f1565b6127106001600160601b0382161115612bd75760405162461bcd60e51b81526004016104709061469f565b6001600160a01b038216612c2d5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610470565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b6008546001600160a01b03163314611c485760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610470565b60055460009082108015610e3c575060006001600160a01b031660058381548110612ced57612ced614478565b6000918252602090912001546001600160a01b0316141592915050565b600081815260066020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612d3f82611adc565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b612d823382613626565b612d9e5760405162461bcd60e51b8152600401610470906146e9565b6110d683838361370c565b336000908152600a602052604090205460ff16612dd85760405162461bcd60e51b81526004016104709061473a565b6000818152600d6020908152604080832033845290915290205415612e3f5760405162461bcd60e51b815260206004820152601b60248201527f494420616c7265616479206c6f636b65642062792063616c6c657200000000006044820152606401610470565b6000818152600b6020526040812054612e599060016144c4565b6000838152600c60209081526040808320848452825280832080546001600160a01b03191633908117909155868452600d83528184209084528252808320849055858352600b9091528120805492935090612eb38361448e565b9091555050604051339083907f9ecfd70e9ff36df72989324a49559383d39f9290d700b10cf5ac10dcb68d264390600090a35050565b336000908152600a602052604090205460ff16612f185760405162461bcd60e51b81526004016104709061473a565b6000818152600d6020908152604080832033845290915281205490819003612f825760405162461bcd60e51b815260206004820152601760248201527f4944206e6f74206c6f636b65642062792063616c6c65720000000000000000006044820152606401610470565b6000828152600b6020526040902054818114612ff8576000838152600c602090815260408083208484528252808320805486855282852080546001600160a01b03199081166001600160a01b03909316928317909155825416909155868452600d83528184209084529091529020829055613020565b6000838152600c60209081526040808320858452909152902080546001600160a01b03191690555b6000838152600d602090815260408083203384528252808320839055858352600b909152812080549161305283614765565b9091555050604051339084907f0fe7d9801197f79ef3b1595d19379eb58f0fff5f98b0f6d6f34c03cae5306c3790600090a3505050565b6130933383613626565b6130af5760405162461bcd60e51b8152600401610470906146e9565b61176e84848484613862565b6000826130c88584613895565b14949350505050565b600082116131185760405162461bcd60e51b815260206004820152601460248201527343616e2774206d696e74203020746f6b656e732160601b6044820152606401610470565b6011546131236110db565b61312d90846144c4565b11156131715760405162461bcd60e51b81526020600482015260136024820152724d617820737570706c7920726561636865642160681b6044820152606401610470565b60005b828110156110d65761318e8261318960055490565b6138da565b806131988161448e565b915050613174565b6127106001600160601b03821611156131cb5760405162461bcd60e51b81526004016104709061469f565b6001600160a01b0382166132215760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d657465727300000000006044820152606401610470565b6040805180820182526001600160a01b0393841681526001600160601b0392831660208083019182526000968752600190529190942093519051909116600160a01b029116179055565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0381166000908152600a602052604090205460ff16156132f65760405162461bcd60e51b81526004016104709061473a565b6000828152600d602090815260408083206001600160a01b0385168452909152812054908190036133595760405162461bcd60e51b815260206004820152600d60248201526c1251081b9bdd081b1bd8dad959609a1b6044820152606401610470565b6000838152600b60205260409020548181146133cf576000848152600c602090815260408083208484528252808320805486855282852080546001600160a01b03199081166001600160a01b03909316928317909155825416909155878452600d835281842090845290915290208290556133f7565b6000848152600c60209081526040808320858452909152902080546001600160a01b03191690555b6000848152600d602090815260408083206001600160a01b03871684528252808320839055868352600b909152812080549161343283614765565b90915550506040516001600160a01b0384169085907f0fe7d9801197f79ef3b1595d19379eb58f0fff5f98b0f6d6f34c03cae5306c3790600090a350505050565b60608160000361349a5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156134c457806134ae8161448e565b91506134bd9050600a83614464565b915061349e565b6000816001600160401b038111156134de576134de613ec9565b6040519080825280601f01601f191660200182016040528015613508576020820181803683370190505b5090505b84156135735761351d6001836143a6565b915061352a600a8661477c565b6135359060306144c4565b60f81b81838151811061354a5761354a614478565b60200101906001600160f81b031916908160001a90535061356c600a86614464565b945061350c565b949350505050565b613583612c66565b6001600160a01b0381166135e85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610470565b6111e08161326b565b60006001600160e01b0319821663152a902d60e11b1480610e3c57506301ffc9a760e01b6001600160e01b0319831614610e3c565b600061363182612cc0565b6136925760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610470565b600061369d83611adc565b9050806001600160a01b0316846001600160a01b031614806136d85750836001600160a01b03166136cd84610f3e565b6001600160a01b0316145b8061357357506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff16613573565b826001600160a01b031661371f82611adc565b6001600160a01b0316146137875760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610470565b6001600160a01b0382166137e95760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610470565b6137f4600082612d0a565b816005828154811061380857613808614478565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b61386d84848461370c565b613879848484846138f4565b61176e5760405162461bcd60e51b815260040161047090614790565b600081815b84518110156115cc576138c6828683815181106138b9576138b9614478565b60200260200101516139f5565b9150806138d28161448e565b91505061389a565b610e7b828260405180602001604052806000815250613a21565b60006001600160a01b0384163b156139ea57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906139389033908990889088906004016147e2565b6020604051808303816000875af1925050508015613973575060408051601f3d908101601f191682019092526139709181019061481f565b60015b6139d0573d8080156139a1576040519150601f19603f3d011682016040523d82523d6000602084013e6139a6565b606091505b5080516000036139c85760405162461bcd60e51b815260040161047090614790565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050613573565b506001949350505050565b6000818310613a11576000828152602084905260409020611858565b5060009182526020526040902090565b613a2b8383613a54565b613a3860008484846138f4565b6110d65760405162461bcd60e51b815260040161047090614790565b6001600160a01b038216613aaa5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610470565b613ab381612cc0565b15613b005760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610470565b6005805460018101825560009182527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db00180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b0319811681146111e057600080fd5b600060208284031215613ba457600080fd5b813561185881613b7c565b6001600160a01b03811681146111e057600080fd5b80356001600160601b0381168114610f3957600080fd5b60008060408385031215613bee57600080fd5b8235613bf981613baf565b9150613c0760208401613bc4565b90509250929050565b600060208284031215613c2257600080fd5b813561185881613baf565b60005b83811015613c48578181015183820152602001613c30565b8381111561176e5750506000910152565b60008151808452613c71816020860160208601613c2d565b601f01601f19169290920160200192915050565b6020815260006118586020830184613c59565b600060208284031215613caa57600080fd5b5035919050565b60008060408385031215613cc457600080fd5b823591506020830135613cd681613baf565b809150509250929050565b60008060408385031215613cf457600080fd5b8235613cff81613baf565b946020939093013593505050565b600080600060608486031215613d2257600080fd5b8335613d2d81613baf565b92506020840135613d3d81613baf565b929592945050506040919091013590565b60008060408385031215613d6157600080fd5b50508035926020909101359150565b6020808252825182820181905260009190848201906040850190845b81811015613da857835183529284019291840191600101613d8c565b50909695505050505050565b60008083601f840112613dc657600080fd5b5081356001600160401b03811115613ddd57600080fd5b6020830191508360208260051b85010111156112db57600080fd5b60008060208385031215613e0b57600080fd5b82356001600160401b03811115613e2157600080fd5b613e2d85828601613db4565b90969095509350505050565b80358015158114610f3957600080fd5b60008060408385031215613e5c57600080fd5b8235613e6781613baf565b9150613c0760208401613e39565b600080600060408486031215613e8a57600080fd5b8335613e9581613baf565b925060208401356001600160401b03811115613eb057600080fd5b613ebc86828701613db4565b9497909650939450505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715613f0757613f07613ec9565b604052919050565b600082601f830112613f2057600080fd5b813560206001600160401b03821115613f3b57613f3b613ec9565b8160051b613f4a828201613edf565b9283528481018201928281019087851115613f6457600080fd5b83870192505b84831015613f8357823582529183019190830190613f6a565b979650505050505050565b600060208284031215613fa057600080fd5b81356001600160401b03811115613fb657600080fd5b61357384828501613f0f565b60008060408385031215613fd557600080fd5b8235915060208301356001600160401b03811115613ff257600080fd5b613ffe85828601613f0f565b9150509250929050565b60008060006060848603121561401d57600080fd5b83359250602084013561402f81613baf565b915061403d60408501613bc4565b90509250925092565b60008060006040848603121561405b57600080fd5b83356001600160401b0381111561407157600080fd5b61407d86828701613db4565b909450925050602084013561409181613baf565b809150509250925092565b600080600080604085870312156140b257600080fd5b84356001600160401b03808211156140c957600080fd5b6140d588838901613db4565b909650945060208701359150808211156140ee57600080fd5b506140fb87828801613db4565b95989497509550505050565b60008083601f84011261411957600080fd5b5081356001600160401b0381111561413057600080fd5b6020830191508360208285010111156112db57600080fd5b6000806000806000806080878903121561416157600080fd5b863561416c81613baf565b9550602087013561417c81613baf565b945060408701356001600160401b038082111561419857600080fd5b6141a48a838b01613db4565b909650945060608901359150808211156141bd57600080fd5b506141ca89828a01614107565b979a9699509497509295939492505050565b600080600080608085870312156141f257600080fd5b84356141fd81613baf565b935060208581013561420e81613baf565b93506040860135925060608601356001600160401b038082111561423157600080fd5b818801915088601f83011261424557600080fd5b81358181111561425757614257613ec9565b614269601f8201601f19168501613edf565b9150808252898482850101111561427f57600080fd5b808484018584013760008482840101525080935050505092959194509250565b600080600080604085870312156142b557600080fd5b84356001600160401b03808211156142cc57600080fd5b6142d888838901614107565b909650945060208701359150808211156142f157600080fd5b506140fb87828801614107565b6000806040838503121561431157600080fd5b823561431c81613baf565b91506020830135613cd681613baf565b60208082526010908201526f496e76616c69642064656c656761746560801b604082015260600190565b600181811c9082168061436a57607f821691505b60208210810361438a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000828210156143b8576143b8614390565b500390565b60208082526009908201526810b3bab0b93234b0b760b91b604082015260600190565b6020808252600f908201526e151bdad95b881a5cc81b1bd8dad959608a1b604082015260600190565b6020808252600c908201526b151bdad95b8808595e1a5cdd60a21b604082015260600190565b600081600019048311821515161561444957614449614390565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826144735761447361444e565b500490565b634e487b7160e01b600052603260045260246000fd5b6000600182016144a0576144a0614390565b5060010190565b6000602082840312156144b957600080fd5b815161185881613baf565b600082198211156144d7576144d7614390565b500190565b6000602082840312156144ee57600080fd5b61185882613e39565b6000815461450481614356565b6001828116801561451c576001811461453157614560565b60ff1984168752821515830287019450614560565b8560005260208060002060005b858110156145575781548a82015290840190820161453e565b50505082870194505b5050505092915050565b600061457682866144f7565b8451614586818360208901613c2d565b613f83818301866144f7565b601f8211156110d657600081815260208120601f850160051c810160208610156145b95750805b601f850160051c820191505b818110156145d8578281556001016145c5565b505050505050565b6001600160401b038311156145f7576145f7613ec9565b61460b836146058354614356565b83614592565b6000601f84116001811461463f57600085156146275750838201355b600019600387901b1c1916600186901b1783556123de565b600083815260209020601f19861690835b828110156146705786850135825560209485019460019092019101614650565b508682101561468d5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b6020808252602a908201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646040820152692073616c65507269636560b01b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b602080825260119082015270043616e6e6f7420757064617465206d617607c1b604082015260600190565b60008161477457614774614390565b506000190190565b60008261478b5761478b61444e565b500690565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061481590830184613c59565b9695505050505050565b60006020828403121561483157600080fd5b815161185881613b7c56fea26469706673582212202b5ff8c1c6259fa1880ee0a31ddcc6a4ce4860dcf1dc9271725829ba4f8698ae64736f6c634300080f0033

Deployed Bytecode

0x6080604052600436106104145760003560e01c80635f618d451161021e578063ac52e64411610123578063c5426e79116100ab578063e250fd231161007a578063e250fd2314610d4b578063e4b1451c14610d6b578063e8b5498d14610d98578063e985e9c514610dae578063f2fde38b14610df75761041b565b8063c5426e7914610cd6578063c59ce17114610cf6578063c87b56dd14610d0b578063dab3900f14610d2b5761041b565b8063b7c34a9c116100f2578063b7c34a9c14610c40578063b88d4fde14610c60578063bfa457bc14610c80578063bfa5f47f14610ca0578063c304555f14610cb65761041b565b8063ac52e64414610bb0578063b1a6505f14610bd0578063b3a1678914610c00578063b534a5c414610c205761041b565b8063943431bf116101a6578063998af13111610175578063998af13114610b1b578063a22cb46514610b3b578063a3ff82ff14610b5b578063aa1b103f14610b7b578063ac1855c114610b905761041b565b8063943431bf14610aa657806394d216d614610ac657806395207ee114610ae657806395d89b4114610b065761041b565b8063715018a6116101ed578063715018a614610a0557806372abc8b714610a1a5780637cb6475914610a485780638a616bc014610a685780638da5cb5b14610a885761041b565b80635f618d451461096b5780636352211e14610998578063650b00f6146109b857806370a08231146109e55761041b565b80632cba81231161032457806349590657116102ac5780634f6ccce71161027b5780634f6ccce7146108d357806351bbf8d8146108f3578063536019af146109135780635944c753146109335780635c975abb146109535761041b565b806349590657146108695780634a994eef1461087e5780634c8fe5261461089e5780634d44660c146108b35761041b565b80633ccfd60b116102f35780633ccfd60b146107c757806340a9c8df146107dc57806342842e0e146107fc578063438b63001461081c57806347028a5c146108495761041b565b80632cba81231461071a5780632d1836f81461075b5780632f745c591461079157806332cb6b0c146107b15761041b565b80630b776690116103a75780631f76a7af116103765780631f76a7af1461065b57806323b872dd1461067b5780632799cde01461069b5780632983c4b8146106bb5780632a55205a146106db5761041b565b80630b776690146105e65780630df553201461061a57806317881cbf1461063057806318160ddd146106465761041b565b806307779627116103e35780630777962714610540578063081812fc1461056057806309308e5d14610580578063095ea7b3146105c65761041b565b806301ffc9a71461047957806304634d8d146104ae5780630633b14a146104d057806306fdde031461051e5761041b565b3661041b57005b60405162461bcd60e51b815260206004820152602860248201527f596f7520686974207468652066616c6c6261636b20666e2c2066616d212054726044820152673c9030b3b0b4b71760c11b60648201526084015b60405180910390fd5b34801561048557600080fd5b50610499610494366004613b92565b610e17565b60405190151581526020015b60405180910390f35b3480156104ba57600080fd5b506104ce6104c9366004613bdb565b610e42565b005b3480156104dc57600080fd5b506105066104eb366004613c10565b600f602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020016104a5565b34801561052a57600080fd5b50610533610e7f565b6040516104a59190613c85565b34801561054c57600080fd5b5061049961055b366004613c10565b610f11565b34801561056c57600080fd5b5061050661057b366004613c98565b610f3e565b34801561058c57600080fd5b506105b861059b366004613cb1565b600d60209081526000928352604080842090915290825290205481565b6040519081526020016104a5565b3480156105d257600080fd5b506104ce6105e1366004613ce1565b610fc6565b3480156105f257600080fd5b506105067f000000000000000000000000e1d7f3f0f0d213e4a9f3e5fb0d54095a48441d5c81565b34801561062657600080fd5b506105b860155481565b34801561063c57600080fd5b506105b8601b5481565b34801561065257600080fd5b506105b86110db565b34801561066757600080fd5b506104ce610676366004613c10565b6110f2565b34801561068757600080fd5b506104ce610696366004613d0d565b61117b565b3480156106a757600080fd5b506104ce6106b6366004613c98565b6111b2565b3480156106c757600080fd5b506104ce6106d6366004613c10565b6111e3565b3480156106e757600080fd5b506106fb6106f6366004613d4e565b611234565b604080516001600160a01b0390931683526020830191909152016104a5565b34801561072657600080fd5b50610506610735366004613d4e565b600c6020908152600092835260408084209091529082529020546001600160a01b031681565b34801561076757600080fd5b50610506610776366004613c10565b6010602052600090815260409020546001600160a01b031681565b34801561079d57600080fd5b506105b86107ac366004613ce1565b6112e2565b3480156107bd57600080fd5b506105b860115481565b3480156107d357600080fd5b506104ce6113ad565b3480156107e857600080fd5b506104ce6107f7366004613c98565b6114c0565b34801561080857600080fd5b506104ce610817366004613d0d565b6114ee565b34801561082857600080fd5b5061083c610837366004613c10565b611535565b6040516104a59190613d70565b34801561085557600080fd5b506104ce610864366004613df8565b6115d4565b34801561087557600080fd5b506105b8611774565b34801561088a57600080fd5b506104ce610899366004613e49565b6117aa565b3480156108aa57600080fd5b506005546105b8565b3480156108bf57600080fd5b506104996108ce366004613e75565b6117dd565b3480156108df57600080fd5b506105b86108ee366004613c98565b61185f565b3480156108ff57600080fd5b5061049961090e366004613f8e565b6118d0565b34801561091f57600080fd5b506104ce61092e366004613fc2565b611932565b34801561093f57600080fd5b506104ce61094e366004614008565b611aa2565b34801561095f57600080fd5b50600e5460ff16610499565b34801561097757600080fd5b506105b8610986366004613c10565b601a6020526000908152604090205481565b3480156109a457600080fd5b506105066109b3366004613c98565b611adc565b3480156109c457600080fd5b506105b86109d3366004613c98565b600b6020526000908152604090205481565b3480156109f157600080fd5b506105b8610a00366004613c10565b611b68565b348015610a1157600080fd5b506104ce611c36565b348015610a2657600080fd5b50610499610a35366004613c98565b6000908152600b60205260409020541590565b348015610a5457600080fd5b506104ce610a63366004613c98565b611c4a565b348015610a7457600080fd5b506104ce610a83366004613c98565b611c7e565b348015610a9457600080fd5b506008546001600160a01b0316610506565b348015610ab257600080fd5b506104ce610ac1366004613c98565b611cbe565b348015610ad257600080fd5b506104ce610ae1366004613cb1565b611cf2565b348015610af257600080fd5b506104ce610b01366004613df8565b611d50565b348015610b1257600080fd5b50610533611eea565b348015610b2757600080fd5b506104ce610b36366004613c98565b611ef9565b348015610b4757600080fd5b506104ce610b56366004613e49565b611fca565b348015610b6757600080fd5b506104ce610b76366004613c98565b61208e565b348015610b8757600080fd5b506104ce6120c2565b348015610b9c57600080fd5b506104ce610bab366004614046565b6120fa565b348015610bbc57600080fd5b506104ce610bcb36600461409c565b6123e5565b348015610bdc57600080fd5b50610499610beb366004613c10565b600a6020526000908152604090205460ff1681565b348015610c0c57600080fd5b506104ce610c1b366004613c98565b6124e4565b348015610c2c57600080fd5b506104ce610c3b366004614148565b612518565b348015610c4c57600080fd5b506104ce610c5b366004613c98565b612596565b348015610c6c57600080fd5b506104ce610c7b3660046141dc565b61267e565b348015610c8c57600080fd5b506104ce610c9b366004613cb1565b6126b6565b348015610cac57600080fd5b506105b860165481565b348015610cc257600080fd5b506104ce610cd1366004613c10565b612707565b348015610ce257600080fd5b506104ce610cf1366004613c98565b612816565b348015610d0257600080fd5b50610506612912565b348015610d1757600080fd5b50610533610d26366004613c98565b612951565b348015610d3757600080fd5b506104ce610d46366004613c10565b612a1f565b348015610d5757600080fd5b506104ce610d6636600461429f565b612aee565b348015610d7757600080fd5b506105b8610d86366004613c10565b60196020526000908152604090205481565b348015610da457600080fd5b506105b860175481565b348015610dba57600080fd5b50610499610dc93660046142fe565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610e0357600080fd5b506104ce610e12366004613c10565b612b38565b60006001600160e01b0319821663780e9d6360e01b1480610e3c5750610e3c82612b6c565b92915050565b3360009081526009602052604090205460ff16610e715760405162461bcd60e51b81526004016104709061432c565b610e7b8282612bac565b5050565b606060028054610e8e90614356565b80601f0160208091040260200160405190810160405280929190818152602001828054610eba90614356565b8015610f075780601f10610edc57610100808354040283529160200191610f07565b820191906000526020600020905b815481529060010190602001808311610eea57829003601f168201915b5050505050905090565b6000610f1b612c66565b506001600160a01b03811660009081526009602052604090205460ff165b919050565b6000610f4982612cc0565b610faa5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610470565b506000908152600660205260409020546001600160a01b031690565b6000610fd182611adc565b9050806001600160a01b0316836001600160a01b03160361103e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610470565b336001600160a01b038216148061105a575061105a8133610dc9565b6110cc5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610470565b6110d68383612d0a565b505050565b6004546005546000916110ed916143a6565b905090565b6001600160a01b038181166000908152600f602052604090205416331461112b5760405162461bcd60e51b8152600401610470906143bd565b6001600160a01b0381166000818152600f602052604080822080546001600160a01b03191690555133917f5b8f9622aeb5e504027e0bedd2e6ab42b294a529d87f5ef2ebf1dc0a1fe0f08191a350565b6000818152600b6020526040902054156111a75760405162461bcd60e51b8152600401610470906143e0565b6110d6838383612d78565b6111bb81612cc0565b6111d75760405162461bcd60e51b815260040161047090614409565b6111e081612da9565b50565b3360009081526009602052604090205460ff166112125760405162461bcd60e51b81526004016104709061432c565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916112a95750604080518082019091526000546001600160a01b0381168252600160a01b90046001600160601b031660208201525b6020810151600090612710906112c8906001600160601b03168761442f565b6112d29190614464565b91519350909150505b9250929050565b60008060005b600554811015611350576005818154811061130557611305614478565b6000918252602090912001546001600160a01b039081169086160361134057838203611334579150610e3c9050565b61133d8261448e565b91505b6113498161448e565b90506112e8565b5060405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610470565b3360009081526009602052604090205460ff166113dc5760405162461bcd60e51b81526004016104709061432c565b60145460405147916001600160a01b031690600090829084908381818185875af1925050503d806000811461142d576040519150601f19603f3d011682016040523d82523d6000602084013e611432565b606091505b50509050806114785760405162461bcd60e51b81526020600482015260126024820152715769746864726177616c206661696c65642160701b6044820152606401610470565b816001600160a01b03167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5846040516114b391815260200190565b60405180910390a2505050565b6114c981612cc0565b6114e55760405162461bcd60e51b815260040161047090614409565b6111e081612ee9565b6000818152600b60205260409020541561151a5760405162461bcd60e51b8152600401610470906143e0565b6110d683838360405180602001604052806000815250613089565b6060600061154283611b68565b90506000816001600160401b0381111561155e5761155e613ec9565b604051908082528060200260200182016040528015611587578160200160208202803683370190505b50905060005b828110156115cc5761159f85826112e2565b8282815181106115b1576115b1614478565b60209081029190910101526115c58161448e565b905061158d565b509392505050565b6000805b8281101561176e577f000000000000000000000000e1d7f3f0f0d213e4a9f3e5fb0d54095a48441d5c6001600160a01b0316636352211e85858481811061162157611621614478565b905060200201356040518263ffffffff1660e01b815260040161164691815260200190565b602060405180830381865afa158015611663573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061168791906144a7565b6001600160a01b038082166000908152600f60205260409020549193501633146116c35760405162461bcd60e51b8152600401610470906143bd565b7f000000000000000000000000e1d7f3f0f0d213e4a9f3e5fb0d54095a48441d5c6001600160a01b03166340a9c8df85858481811061170457611704614478565b905060200201356040518263ffffffff1660e01b815260040161172991815260200190565b600060405180830381600087803b15801561174357600080fd5b505af1158015611757573d6000803e3d6000fd5b5050505080806117669061448e565b9150506115d8565b50505050565b3360009081526009602052604081205460ff166117a35760405162461bcd60e51b81526004016104709061432c565b5060185490565b6117b2612c66565b6001600160a01b03919091166000908152600960205260409020805460ff1916911515919091179055565b6000805b8281101561185257846001600160a01b0316600585858481811061180757611807614478565b905060200201358154811061181e5761181e614478565b6000918252602090912001546001600160a01b031614611842576000915050611858565b61184b8161448e565b90506117e1565b50600190505b9392505050565b60006118696110db565b82106118cc5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610470565b5090565b60185460009081036118e457506000919050565b6018546040516bffffffffffffffffffffffff193360601b1660208201526000916118589160340160405160208183030381529060405280519060200120856130bb9092919063ffffffff16565b601b54600114806119615750611961335b6001600160a01b031660009081526009602052604090205460ff1690565b6119a65760405162461bcd60e51b815260206004820152601660248201527528393296a9b0b6329036b4b73a103737ba1037b832b760511b6044820152606401610470565b601654336000908152601960205260409020546119c49084906144c4565b1115611a125760405162461bcd60e51b815260206004820152601b60248201527f416c7265616479206d696e746564206d6178207072652d73616c6500000000006044820152606401610470565b611a1b816118d0565b611a735760405162461bcd60e51b815260206004820152602360248201527f596f7520617265206e6f7420617574686f72697a656420666f72207072652d73604482015262616c6560e81b6064820152608401610470565b3360009081526019602052604081208054849290611a929084906144c4565b90915550610e7b905082336130d1565b3360009081526009602052604090205460ff16611ad15760405162461bcd60e51b81526004016104709061432c565b6110d68383836131a0565b60008060058381548110611af257611af2614478565b6000918252602090912001546001600160a01b0316905080610e3c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610470565b60006001600160a01b038216611bd35760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610470565b6000805b600554811015611c2f5760058181548110611bf457611bf4614478565b6000918252602090912001546001600160a01b0390811690851603611c1f57611c1c8261448e565b91505b611c288161448e565b9050611bd7565b5092915050565b611c3e612c66565b611c48600061326b565b565b3360009081526009602052604090205460ff16611c795760405162461bcd60e51b81526004016104709061432c565b601855565b3360009081526009602052604090205460ff16611cad5760405162461bcd60e51b81526004016104709061432c565b600090815260016020526040812055565b3360009081526009602052604090205460ff16611ced5760405162461bcd60e51b81526004016104709061432c565b601b55565b3360009081526009602052604090205460ff16611d215760405162461bcd60e51b81526004016104709061432c565b611d2a82612cc0565b611d465760405162461bcd60e51b815260040161047090614409565b610e7b82826132bd565b6000805b8281101561176e577f000000000000000000000000e1d7f3f0f0d213e4a9f3e5fb0d54095a48441d5c6001600160a01b0316636352211e858584818110611d9d57611d9d614478565b905060200201356040518263ffffffff1660e01b8152600401611dc291815260200190565b602060405180830381865afa158015611ddf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e0391906144a7565b6001600160a01b038082166000908152600f6020526040902054919350163314611e3f5760405162461bcd60e51b8152600401610470906143bd565b7f000000000000000000000000e1d7f3f0f0d213e4a9f3e5fb0d54095a48441d5c6001600160a01b0316632799cde0858584818110611e8057611e80614478565b905060200201356040518263ffffffff1660e01b8152600401611ea591815260200190565b600060405180830381600087803b158015611ebf57600080fd5b505af1158015611ed3573d6000803e3d6000fd5b505050508080611ee29061448e565b915050611d54565b606060038054610e8e90614356565b611f0281612cc0565b611f1e5760405162461bcd60e51b815260040161047090614409565b6000818152600b6020526040902054611f695760405162461bcd60e51b815260206004820152600d60248201526c151bdad95b88085b1bd8dad959609a1b6044820152606401610470565b336000908152600a602052604090205460ff16611fc05760405162461bcd60e51b8152602060048201526015602482015274139bdd08185c1c1c9bdd99590818dbdb9d1c9858dd605a1b6044820152606401610470565b6111e03382612d0a565b336001600160a01b038316036120225760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610470565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b3360009081526009602052604090205460ff166120bd5760405162461bcd60e51b81526004016104709061432c565b601655565b3360009081526009602052604090205460ff166120f15760405162461bcd60e51b81526004016104709061432c565b611c4860008055565b6000805b838110156123de577f000000000000000000000000e1d7f3f0f0d213e4a9f3e5fb0d54095a48441d5c6001600160a01b0316636352211e86868481811061214757612147614478565b905060200201356040518263ffffffff1660e01b815260040161216c91815260200190565b602060405180830381865afa158015612189573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121ad91906144a7565b6001600160a01b038082166000908152600f60205260409020549193501633146121e95760405162461bcd60e51b8152600401610470906143bd565b7f000000000000000000000000e1d7f3f0f0d213e4a9f3e5fb0d54095a48441d5c6001600160a01b031663998af13186868481811061222a5761222a614478565b905060200201356040518263ffffffff1660e01b815260040161224f91815260200190565b600060405180830381600087803b15801561226957600080fd5b505af115801561227d573d6000803e3d6000fd5b505050507f000000000000000000000000e1d7f3f0f0d213e4a9f3e5fb0d54095a48441d5c6001600160a01b03166340a9c8df8686848181106122c2576122c2614478565b905060200201356040518263ffffffff1660e01b81526004016122e791815260200190565b600060405180830381600087803b15801561230157600080fd5b505af1158015612315573d6000803e3d6000fd5b505050507f000000000000000000000000e1d7f3f0f0d213e4a9f3e5fb0d54095a48441d5c6001600160a01b03166342842e0e838588888681811061235c5761235c614478565b6040516001600160e01b031960e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b1580156123b357600080fd5b505af11580156123c7573d6000803e3d6000fd5b5050505080806123d69061448e565b9150506120fe565b5050505050565b3360009081526009602052604090205460ff166124145760405162461bcd60e51b81526004016104709061432c565b82811461244d5760405162461bcd60e51b8152602060048201526007602482015266042d8cadccee8d60cb1b6044820152606401610470565b60005b838110156123de5782828281811061246a5761246a614478565b905060200201602081019061247f91906144dc565b600a600087878581811061249557612495614478565b90506020020160208101906124aa9190613c10565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806124dc8161448e565b915050612450565b3360009081526009602052604090205460ff166125135760405162461bcd60e51b81526004016104709061432c565b601555565b60005b8381101561258d5761257d878787878581811061253a5761253a614478565b9050602002013586868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061267e92505050565b6125868161448e565b905061251b565b50505050505050565b3360009081526009602052604090205460ff166125c55760405162461bcd60e51b81526004016104709061432c565b60115481106126165760405162461bcd60e51b815260206004820152601a60248201527f43616e206f6e6c79207365742061206c6f7765722073697a652e0000000000006044820152606401610470565b61261e6110db565b8110156126795760405162461bcd60e51b8152602060048201526024808201527f4e657720737570706c79206c6f7765722063757272656e7420746f74616c537560448201526370706c7960e01b6064820152608401610470565b601155565b6000828152600b6020526040902054156126aa5760405162461bcd60e51b8152600401610470906143e0565b61176e84848484613089565b3360009081526009602052604090205460ff166126e55760405162461bcd60e51b81526004016104709061432c565b81601760008282546126f791906144c4565b90915550610e7b905082826130d1565b336000908152600f60205260409020546001600160a01b03161561275c5760405162461bcd60e51b815260206004820152600c60248201526b11dd585c991a585b881cd95d60a21b6044820152606401610470565b6001600160a01b03811633036127c05760405162461bcd60e51b815260206004820152602360248201527f477561726469616e206d757374206265206120646966666572656e742077616c6044820152621b195d60ea1b6064820152608401610470565b3360008181526010602052604080822080546001600160a01b0319166001600160a01b038616908117909155905190917f503d1e4f800a36ee58e59b969fc42121ae1ebf3d1a20b558d5248d879427522c91a350565b601b546002148061282b575061282b33611943565b6128775760405162461bcd60e51b815260206004820152601c60248201527f5075626c6963206d696e74206973206e6f74206f70656e2079657421000000006044820152606401610470565b601554336000908152601a60205260409020546128959083906144c4565b11156128e35760405162461bcd60e51b815260206004820152601b60248201527f596f7520686176652072656163686564206c696d6974206d696e7400000000006044820152606401610470565b336000908152601a6020526040812080548392906129029084906144c4565b909155506111e0905081336130d1565b3360009081526009602052604081205460ff166129415760405162461bcd60e51b81526004016104709061432c565b506014546001600160a01b031690565b606061295c82612cc0565b6129c05760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610470565b6000601280546129cf90614356565b9050116129eb5760405180602001604052806000815250610e3c565b60126129f683613473565b6013604051602001612a0a9392919061456a565b60405160208183030381529060405292915050565b6001600160a01b03818116600090815260106020526040902054163314612a885760405162461bcd60e51b815260206004820152601860248201527f4e6f74207468652070656e64696e6720677561726469616e00000000000000006044820152606401610470565b6001600160a01b038116600081815260106020908152604080832080546001600160a01b0319908116909155600f9092528083208054339316831790555190917fc3ce29e3ab42e524b6f6f1b4d3674898d503ee3577a64ac87b555904ebc1413891a350565b3360009081526009602052604090205460ff16612b1d5760405162461bcd60e51b81526004016104709061432c565b6012612b2a8486836145e0565b5060136123de8284836145e0565b612b40612c66565b6001600160a01b0381166000908152600960205260409020805460ff191660011790556111e08161357b565b60006001600160e01b031982166380ac58cd60e01b1480612b9d57506001600160e01b03198216635b5e139f60e01b145b80610e3c5750610e3c826135f1565b6127106001600160601b0382161115612bd75760405162461bcd60e51b81526004016104709061469f565b6001600160a01b038216612c2d5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610470565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b6008546001600160a01b03163314611c485760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610470565b60055460009082108015610e3c575060006001600160a01b031660058381548110612ced57612ced614478565b6000918252602090912001546001600160a01b0316141592915050565b600081815260066020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612d3f82611adc565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b612d823382613626565b612d9e5760405162461bcd60e51b8152600401610470906146e9565b6110d683838361370c565b336000908152600a602052604090205460ff16612dd85760405162461bcd60e51b81526004016104709061473a565b6000818152600d6020908152604080832033845290915290205415612e3f5760405162461bcd60e51b815260206004820152601b60248201527f494420616c7265616479206c6f636b65642062792063616c6c657200000000006044820152606401610470565b6000818152600b6020526040812054612e599060016144c4565b6000838152600c60209081526040808320848452825280832080546001600160a01b03191633908117909155868452600d83528184209084528252808320849055858352600b9091528120805492935090612eb38361448e565b9091555050604051339083907f9ecfd70e9ff36df72989324a49559383d39f9290d700b10cf5ac10dcb68d264390600090a35050565b336000908152600a602052604090205460ff16612f185760405162461bcd60e51b81526004016104709061473a565b6000818152600d6020908152604080832033845290915281205490819003612f825760405162461bcd60e51b815260206004820152601760248201527f4944206e6f74206c6f636b65642062792063616c6c65720000000000000000006044820152606401610470565b6000828152600b6020526040902054818114612ff8576000838152600c602090815260408083208484528252808320805486855282852080546001600160a01b03199081166001600160a01b03909316928317909155825416909155868452600d83528184209084529091529020829055613020565b6000838152600c60209081526040808320858452909152902080546001600160a01b03191690555b6000838152600d602090815260408083203384528252808320839055858352600b909152812080549161305283614765565b9091555050604051339084907f0fe7d9801197f79ef3b1595d19379eb58f0fff5f98b0f6d6f34c03cae5306c3790600090a3505050565b6130933383613626565b6130af5760405162461bcd60e51b8152600401610470906146e9565b61176e84848484613862565b6000826130c88584613895565b14949350505050565b600082116131185760405162461bcd60e51b815260206004820152601460248201527343616e2774206d696e74203020746f6b656e732160601b6044820152606401610470565b6011546131236110db565b61312d90846144c4565b11156131715760405162461bcd60e51b81526020600482015260136024820152724d617820737570706c7920726561636865642160681b6044820152606401610470565b60005b828110156110d65761318e8261318960055490565b6138da565b806131988161448e565b915050613174565b6127106001600160601b03821611156131cb5760405162461bcd60e51b81526004016104709061469f565b6001600160a01b0382166132215760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d657465727300000000006044820152606401610470565b6040805180820182526001600160a01b0393841681526001600160601b0392831660208083019182526000968752600190529190942093519051909116600160a01b029116179055565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0381166000908152600a602052604090205460ff16156132f65760405162461bcd60e51b81526004016104709061473a565b6000828152600d602090815260408083206001600160a01b0385168452909152812054908190036133595760405162461bcd60e51b815260206004820152600d60248201526c1251081b9bdd081b1bd8dad959609a1b6044820152606401610470565b6000838152600b60205260409020548181146133cf576000848152600c602090815260408083208484528252808320805486855282852080546001600160a01b03199081166001600160a01b03909316928317909155825416909155878452600d835281842090845290915290208290556133f7565b6000848152600c60209081526040808320858452909152902080546001600160a01b03191690555b6000848152600d602090815260408083206001600160a01b03871684528252808320839055868352600b909152812080549161343283614765565b90915550506040516001600160a01b0384169085907f0fe7d9801197f79ef3b1595d19379eb58f0fff5f98b0f6d6f34c03cae5306c3790600090a350505050565b60608160000361349a5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156134c457806134ae8161448e565b91506134bd9050600a83614464565b915061349e565b6000816001600160401b038111156134de576134de613ec9565b6040519080825280601f01601f191660200182016040528015613508576020820181803683370190505b5090505b84156135735761351d6001836143a6565b915061352a600a8661477c565b6135359060306144c4565b60f81b81838151811061354a5761354a614478565b60200101906001600160f81b031916908160001a90535061356c600a86614464565b945061350c565b949350505050565b613583612c66565b6001600160a01b0381166135e85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610470565b6111e08161326b565b60006001600160e01b0319821663152a902d60e11b1480610e3c57506301ffc9a760e01b6001600160e01b0319831614610e3c565b600061363182612cc0565b6136925760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610470565b600061369d83611adc565b9050806001600160a01b0316846001600160a01b031614806136d85750836001600160a01b03166136cd84610f3e565b6001600160a01b0316145b8061357357506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff16613573565b826001600160a01b031661371f82611adc565b6001600160a01b0316146137875760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610470565b6001600160a01b0382166137e95760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610470565b6137f4600082612d0a565b816005828154811061380857613808614478565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b61386d84848461370c565b613879848484846138f4565b61176e5760405162461bcd60e51b815260040161047090614790565b600081815b84518110156115cc576138c6828683815181106138b9576138b9614478565b60200260200101516139f5565b9150806138d28161448e565b91505061389a565b610e7b828260405180602001604052806000815250613a21565b60006001600160a01b0384163b156139ea57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906139389033908990889088906004016147e2565b6020604051808303816000875af1925050508015613973575060408051601f3d908101601f191682019092526139709181019061481f565b60015b6139d0573d8080156139a1576040519150601f19603f3d011682016040523d82523d6000602084013e6139a6565b606091505b5080516000036139c85760405162461bcd60e51b815260040161047090614790565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050613573565b506001949350505050565b6000818310613a11576000828152602084905260409020611858565b5060009182526020526040902090565b613a2b8383613a54565b613a3860008484846138f4565b6110d65760405162461bcd60e51b815260040161047090614790565b6001600160a01b038216613aaa5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610470565b613ab381612cc0565b15613b005760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610470565b6005805460018101825560009182527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db00180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b0319811681146111e057600080fd5b600060208284031215613ba457600080fd5b813561185881613b7c565b6001600160a01b03811681146111e057600080fd5b80356001600160601b0381168114610f3957600080fd5b60008060408385031215613bee57600080fd5b8235613bf981613baf565b9150613c0760208401613bc4565b90509250929050565b600060208284031215613c2257600080fd5b813561185881613baf565b60005b83811015613c48578181015183820152602001613c30565b8381111561176e5750506000910152565b60008151808452613c71816020860160208601613c2d565b601f01601f19169290920160200192915050565b6020815260006118586020830184613c59565b600060208284031215613caa57600080fd5b5035919050565b60008060408385031215613cc457600080fd5b823591506020830135613cd681613baf565b809150509250929050565b60008060408385031215613cf457600080fd5b8235613cff81613baf565b946020939093013593505050565b600080600060608486031215613d2257600080fd5b8335613d2d81613baf565b92506020840135613d3d81613baf565b929592945050506040919091013590565b60008060408385031215613d6157600080fd5b50508035926020909101359150565b6020808252825182820181905260009190848201906040850190845b81811015613da857835183529284019291840191600101613d8c565b50909695505050505050565b60008083601f840112613dc657600080fd5b5081356001600160401b03811115613ddd57600080fd5b6020830191508360208260051b85010111156112db57600080fd5b60008060208385031215613e0b57600080fd5b82356001600160401b03811115613e2157600080fd5b613e2d85828601613db4565b90969095509350505050565b80358015158114610f3957600080fd5b60008060408385031215613e5c57600080fd5b8235613e6781613baf565b9150613c0760208401613e39565b600080600060408486031215613e8a57600080fd5b8335613e9581613baf565b925060208401356001600160401b03811115613eb057600080fd5b613ebc86828701613db4565b9497909650939450505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715613f0757613f07613ec9565b604052919050565b600082601f830112613f2057600080fd5b813560206001600160401b03821115613f3b57613f3b613ec9565b8160051b613f4a828201613edf565b9283528481018201928281019087851115613f6457600080fd5b83870192505b84831015613f8357823582529183019190830190613f6a565b979650505050505050565b600060208284031215613fa057600080fd5b81356001600160401b03811115613fb657600080fd5b61357384828501613f0f565b60008060408385031215613fd557600080fd5b8235915060208301356001600160401b03811115613ff257600080fd5b613ffe85828601613f0f565b9150509250929050565b60008060006060848603121561401d57600080fd5b83359250602084013561402f81613baf565b915061403d60408501613bc4565b90509250925092565b60008060006040848603121561405b57600080fd5b83356001600160401b0381111561407157600080fd5b61407d86828701613db4565b909450925050602084013561409181613baf565b809150509250925092565b600080600080604085870312156140b257600080fd5b84356001600160401b03808211156140c957600080fd5b6140d588838901613db4565b909650945060208701359150808211156140ee57600080fd5b506140fb87828801613db4565b95989497509550505050565b60008083601f84011261411957600080fd5b5081356001600160401b0381111561413057600080fd5b6020830191508360208285010111156112db57600080fd5b6000806000806000806080878903121561416157600080fd5b863561416c81613baf565b9550602087013561417c81613baf565b945060408701356001600160401b038082111561419857600080fd5b6141a48a838b01613db4565b909650945060608901359150808211156141bd57600080fd5b506141ca89828a01614107565b979a9699509497509295939492505050565b600080600080608085870312156141f257600080fd5b84356141fd81613baf565b935060208581013561420e81613baf565b93506040860135925060608601356001600160401b038082111561423157600080fd5b818801915088601f83011261424557600080fd5b81358181111561425757614257613ec9565b614269601f8201601f19168501613edf565b9150808252898482850101111561427f57600080fd5b808484018584013760008482840101525080935050505092959194509250565b600080600080604085870312156142b557600080fd5b84356001600160401b03808211156142cc57600080fd5b6142d888838901614107565b909650945060208701359150808211156142f157600080fd5b506140fb87828801614107565b6000806040838503121561431157600080fd5b823561431c81613baf565b91506020830135613cd681613baf565b60208082526010908201526f496e76616c69642064656c656761746560801b604082015260600190565b600181811c9082168061436a57607f821691505b60208210810361438a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000828210156143b8576143b8614390565b500390565b60208082526009908201526810b3bab0b93234b0b760b91b604082015260600190565b6020808252600f908201526e151bdad95b881a5cc81b1bd8dad959608a1b604082015260600190565b6020808252600c908201526b151bdad95b8808595e1a5cdd60a21b604082015260600190565b600081600019048311821515161561444957614449614390565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826144735761447361444e565b500490565b634e487b7160e01b600052603260045260246000fd5b6000600182016144a0576144a0614390565b5060010190565b6000602082840312156144b957600080fd5b815161185881613baf565b600082198211156144d7576144d7614390565b500190565b6000602082840312156144ee57600080fd5b61185882613e39565b6000815461450481614356565b6001828116801561451c576001811461453157614560565b60ff1984168752821515830287019450614560565b8560005260208060002060005b858110156145575781548a82015290840190820161453e565b50505082870194505b5050505092915050565b600061457682866144f7565b8451614586818360208901613c2d565b613f83818301866144f7565b601f8211156110d657600081815260208120601f850160051c810160208610156145b95750805b601f850160051c820191505b818110156145d8578281556001016145c5565b505050505050565b6001600160401b038311156145f7576145f7613ec9565b61460b836146058354614356565b83614592565b6000601f84116001811461463f57600085156146275750838201355b600019600387901b1c1916600186901b1783556123de565b600083815260209020601f19861690835b828110156146705786850135825560209485019460019092019101614650565b508682101561468d5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b6020808252602a908201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646040820152692073616c65507269636560b01b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b602080825260119082015270043616e6e6f7420757064617465206d617607c1b604082015260600190565b60008161477457614774614390565b506000190190565b60008261478b5761478b61444e565b500690565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061481590830184613c59565b9695505050505050565b60006020828403121561483157600080fd5b815161185881613b7c56fea26469706673582212202b5ff8c1c6259fa1880ee0a31ddcc6a4ce4860dcf1dc9271725829ba4f8698ae64736f6c634300080f0033

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.