ETH Price: $2,810.67 (+2.57%)
 

Overview

Max Total Supply

47 H.T

Holders

11

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
irogue.eth
Balance
1 H.T
0xe1e0da672b12f7d0d025f4b52512ab1678b2c7fd
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:
Terraformer

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

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

/// @creator: hoxid.eth
/// @author: seesharp.eth

import "./contracts/ERC721A.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Address.sol";

import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/Base64.sol";

import "operator-filter-registry/src/DefaultOperatorFilterer.sol";

interface IHomesick {
    function homeMintScoreRequirement() external view returns (uint64);
    function getPlayerAccumulatedScore(address _addr) external view returns (uint64);
}

contract Terraformer is ERC721A, DefaultOperatorFilterer, Ownable {
    using Address for address;

    string public baseURI;
    string public terrExtension = ".png";
    string public terrAnimationExtension = ".mp4";
    uint256 public mintedSupply = 0;

    address public homesickAddr;
    bool public isHOMETokensFinished = false;

    struct Metadata {
        uint32 lockedToken1;
        uint32 lockedToken2;
        uint32 lockedToken3;
        address original_holder_address;
    }
    mapping(uint256 => Metadata) public tokenMetadata; // tokenID => Metadata

    constructor(address _homesickAddr) ERC721A("Terraformer", "H.T") {
        homesickAddr = _homesickAddr;
    }

    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        if (operator == homesickAddr) { return true; } // homesick contract address is fixed so this is not an issue
        return super.isApprovedForAll(owner, operator);
    }
    uint256[] private emptyTokenIDs;
    function mint(uint256 tokenID1, uint256 tokenID2, uint256 tokenID3, address to_mint) public returns (uint32) {
        require(msg.sender == homesickAddr, "only homesick contract can mint terraformer");
        require(balanceOf(to_mint) == 0, "cannot mint more than one terraformer"); // not necessary but to be on the safe side
        require(!isHOMETokensFinished, "cannot mint after home tokens are all minted"); // not necessary but to be on the safe side

        Metadata memory localMetadata = Metadata(uint32(tokenID1), uint32(tokenID2), uint32(tokenID3), to_mint);
        if (emptyTokenIDs.length == 0) {
            tokenMetadata[mintedSupply] = localMetadata;
            mintedSupply++;
            _safeMint(to_mint, 1);

            return uint32(mintedSupply - 1);
        } else {
            uint256 tokenID = emptyTokenIDs[emptyTokenIDs.length - 1];
            emptyTokenIDs.pop();

            tokenMetadata[tokenID] = localMetadata;
            transferFrom(address(0xD6AaCF8BFa0f11deb571d4F6e38f7aE2E07cB385), to_mint, tokenID);

            return uint32(tokenID);
        }
    }
    function burn(uint256 tokenID) public returns (uint32[3] memory) {
        require(msg.sender == homesickAddr, "only homesick contract can burn terraformer");
        require(!isHOMETokensFinished, "cannot burn after home tokens are all minted"); // not necessary but to be on the safe side

        Metadata memory localMetadata = tokenMetadata[tokenID];
        uint32[3] memory res = [localMetadata.lockedToken1, localMetadata.lockedToken2, localMetadata.lockedToken3];
        
        transferFrom(ownerOf(tokenID), address(0xD6AaCF8BFa0f11deb571d4F6e38f7aE2E07cB385), tokenID);
        emptyTokenIDs.push(tokenID);
        delete tokenMetadata[tokenID];

        return res;
    }
    function setHOMETokensFinished() public {
        require(msg.sender == homesickAddr, "only homesick contract can set HOME as finished");
        isHOMETokensFinished = true;
    }

    bytes16 private constant __SYMBOLS = "0123456789abcdef";
    function toString(uint256 value, uint256 length) internal pure returns (string memory) {
        unchecked {
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                length--;
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), __SYMBOLS))
                }
                value /= 10;
                if (length == 0) break;
            }
            require(value == 0, "Strings: length insufficient");
            return buffer;
        }
    }
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

        Metadata memory token_metadata = tokenMetadata[tokenId];
        if (token_metadata.lockedToken1 == token_metadata.lockedToken2) {
            string memory first_line = '{"description":"Cooling down,  \\nWaiting for a new user.","image":"';
            if (isHOMETokensFinished) {
                first_line = '{"description":"These tokens helped collectors to find homes for their specimens.  \\nNow will stay as a monument of the HOMESICK drop.","image":"';
            }

            bytes memory metadata = abi.encodePacked(
                    first_line,
                    baseURI,
                    '0',
                    terrExtension,
                    '","name":"Terraformer #',
                    toString(tokenId, 4),
                    '"}'
                );
            return string(
                abi.encodePacked(
                    "data:application/json;base64,",
                    Base64.encode(metadata)
                )    
            );
        } else {
            uint64 homeMintScoreRequirement = IHomesick(homesickAddr).homeMintScoreRequirement();
            uint64 accumulatedPoints = IHomesick(homesickAddr).getPlayerAccumulatedScore(token_metadata.original_holder_address);
            
            uint8 stage = 1;
            if (accumulatedPoints > homeMintScoreRequirement / 2) stage = 2;

            if (!isHOMETokensFinished) {
                bytes memory metadata;
                {
                    metadata = abi.encodePacked(
                        '{"description":"TERRAFORMER is a claimable NFT token from the HOMESICK collection by HOXID. When claimed, this token activates a timer that counts down to receive the HOME token.  \\n  \\nIf the locked tokens move the TERRAFORMER will disappear and your timer will be reset.","image":"',
                        baseURI,
                        Strings.toString(stage),
                        terrExtension,
                        '","animation_url":"',
                        baseURI,
                        Strings.toString(stage),
                        terrAnimationExtension
                    );
                }
                {
                    metadata = abi.encodePacked(
                        metadata,
                        '","name":"Terraformer #',
                        toString(tokenId, 4),
                        '","attributes":[{"trait_type":"Locked Specimen #1","value":"',
                        Strings.toString(token_metadata.lockedToken1),
                        '"},{"trait_type":"Locked Specimen #2","value":"',
                        Strings.toString(token_metadata.lockedToken2),
                        '"},{"trait_type":"Locked Specimen #3","value":"',
                        Strings.toString(token_metadata.lockedToken3),
                        '"},{"trait_type":"Stage","value":"',
                        Strings.toString(stage),
                        '"},{"trait_type":"Locked","value":"',
                        'Locked',
                        '"}]}'
                    );
                }
                return string(
                    abi.encodePacked(
                        "data:application/json;base64,",
                        Base64.encode(metadata)
                    )    
                );
            } else {
                bytes memory metadata;
                {
                    metadata = abi.encodePacked(
                        '{"description":"TERRAFORMER S.',
                        Strings.toString(stage),
                        '  \\nby HOXID.  \\n  \\nThis piece is part of the HOMESICK collection.","image":"',
                        baseURI,
                        Strings.toString(stage),
                        terrExtension,
                        '","animation_url":"',
                        baseURI,
                        Strings.toString(stage),
                        terrAnimationExtension
                    );
                }
                {
                    metadata = abi.encodePacked(
                        metadata,
                        '","name":"Terraformer #',
                        toString(tokenId, 4),
                        '","attributes":[{"trait_type":"Stage","value":"',
                        Strings.toString(stage),
                        '"}]}'
                    );
                }
                return string(
                    abi.encodePacked(
                        "data:application/json;base64,",
                        Base64.encode(metadata)
                    )    
                );
            }
        }
    }

    function _beforeTokenTransfers(
        address from, // this is 0x0 only when this is mint
        address /* to */,
        uint256 /* startTokenId */,
        uint256 // this is always 1 if its not a mint
    ) internal virtual override {
        if (from == address(0x0)) return; // mint is allowed
        if (msg.sender == homesickAddr) return; // homesick can transfer tokens
        require(isHOMETokensFinished, "transfer not permitted");
    }
    function setApprovalForAll(address operator, bool approved) public virtual override onlyAllowedOperatorApproval(operator) {
        require(isHOMETokensFinished, "approval not permitted");
        super.setApprovalForAll(operator, approved);
    }
    function approve(address operator, uint256 tokenId) public override onlyAllowedOperatorApproval(operator) {
        require(isHOMETokensFinished, "approval not permitted");
        super.approve(operator, tokenId);
    }

    function setBaseURI(string memory _newBaseURI) external onlyOwner {
        baseURI = _newBaseURI;
    }
    function _baseURI() internal view virtual override(ERC721A) returns (string memory) {
        return baseURI;
    }

    function setTerrExtension(string memory _newTerrExtension) external onlyOwner {
        terrExtension = _newTerrExtension;
    }
    function setTerrAnimationExtension(string memory _newTerrAnimationExtension) external onlyOwner {
        terrAnimationExtension = _newTerrAnimationExtension;
    }


    /**
     * ROYALTY FUNCTIONS
     */
    uint256 private _royaltyBps;
    address payable private _royaltyRecipient;

    function withdraw() external onlyOwner {
        require(_royaltyRecipient != address(0x0), "Must set royalty recipient");

        (bool os, ) = _royaltyRecipient.call{value: address(this).balance}("");
        require(os);
    }

    function withdrawERC20(address erc20_addr) external onlyOwner {
        require(_royaltyRecipient != address(0x0), "Must set royalty recipient");

        IERC20 erc20_int = IERC20(erc20_addr);
        uint256 balance = erc20_int.balanceOf(address(this));

        bool os = erc20_int.transfer(_royaltyRecipient, balance);
        require(os);
    }
    
    function updateRoyalties(address payable recipient, uint256 bps) external onlyOwner {
        _royaltyRecipient = recipient;
        _royaltyBps = bps;
    }

    bytes4 constant private _INTERFACE_ID_ROYALTIES_CREATORCORE = 0xbb3bafd6;
    bytes4 constant private _INTERFACE_ID_ROYALTIES_EIP2981 = 0x2a55205a;
    bytes4 constant private _INTERFACE_ID_ROYALTIES_RARIBLE = 0xb7799584;


    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A) returns (bool) {
        return ERC721A.supportsInterface(interfaceId) || interfaceId == _INTERFACE_ID_ROYALTIES_CREATORCORE
            || interfaceId == _INTERFACE_ID_ROYALTIES_EIP2981 || interfaceId == _INTERFACE_ID_ROYALTIES_RARIBLE;
    }

    function getRoyalties(uint256) external view returns (address payable[] memory recipients, uint256[] memory bps) {
        if (_royaltyRecipient != address(0x0)) {
            recipients = new address payable[](1);
            recipients[0] = _royaltyRecipient;
            bps = new uint256[](1);
            bps[0] = _royaltyBps;
        }
        return (recipients, bps);
    }

    function getFeeRecipients(uint256) external view returns (address payable[] memory recipients) {
        if (_royaltyRecipient != address(0x0)) {
            recipients = new address payable[](1);
            recipients[0] = _royaltyRecipient;
        }
        return recipients;
    }

    function getFeeBps(uint256) external view returns (uint[] memory bps) {
        if (_royaltyRecipient != address(0x0)) {
            bps = new uint256[](1);
            bps[0] = _royaltyBps;
        }
        return bps;
    }

    function royaltyInfo(uint256, uint256 value) external view returns (address, uint256) {
        return (_royaltyRecipient, value*_royaltyBps/10000);
    }
    
    receive() external payable {
    }

    /**
     * OPENSEA FILTER STUFF
     */
    function transferFrom(address from, address to, uint256 tokenId) public override onlyAllowedOperator(from) {
        super.transferFrom(from, to, tokenId);
    }
    function safeTransferFrom(address from, address to, uint256 tokenId) public override onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId);
    }
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data)
        public
        override
        onlyAllowedOperator(from)
    {
        super.safeTransferFrom(from, to, tokenId, data);
    }
}

File 2 of 17 : DefaultOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {OperatorFilterer} from "./OperatorFilterer.sol";

/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 */
abstract contract DefaultOperatorFilterer is OperatorFilterer {
    address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);

    constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {}
}

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

pragma solidity ^0.8.0;

/**
 * @dev Provides a set of functions to operate with Base64 strings.
 *
 * _Available since v4.5._
 */
library Base64 {
    /**
     * @dev Base64 Encoding/Decoding Table
     */
    string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /**
     * @dev Converts a `bytes` to its Bytes64 `string` representation.
     */
    function encode(bytes memory data) internal pure returns (string memory) {
        /**
         * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence
         * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol
         */
        if (data.length == 0) return "";

        // Loads the table into memory
        string memory table = _TABLE;

        // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter
        // and split into 4 numbers of 6 bits.
        // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up
        // - `data.length + 2`  -> Round up
        // - `/ 3`              -> Number of 3-bytes chunks
        // - `4 *`              -> 4 characters for each chunk
        string memory result = new string(4 * ((data.length + 2) / 3));

        /// @solidity memory-safe-assembly
        assembly {
            // Prepare the lookup table (skip the first "length" byte)
            let tablePtr := add(table, 1)

            // Prepare result pointer, jump over length
            let resultPtr := add(result, 32)

            // Run over the input, 3 bytes at a time
            for {
                let dataPtr := data
                let endPtr := add(data, mload(data))
            } lt(dataPtr, endPtr) {

            } {
                // Advance 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // To write each character, shift the 3 bytes (18 bits) chunk
                // 4 times in blocks of 6 bits for each character (18, 12, 6, 0)
                // and apply logical AND with 0x3F which is the number of
                // the previous character in the ASCII table prior to the Base64 Table
                // The result is then added to the table to get the character to write,
                // and finally write it in the result pointer but with a left shift
                // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits

                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance
            }

            // When data `bytes` is not exactly 3 bytes long
            // it is padded with `=` characters at the end
            switch mod(mload(data), 3)
            case 1 {
                mstore8(sub(resultPtr, 1), 0x3d)
                mstore8(sub(resultPtr, 2), 0x3d)
            }
            case 2 {
                mstore8(sub(resultPtr, 1), 0x3d)
            }
        }

        return result;
    }
}

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

pragma solidity ^0.8.0;

import "./math/Math.sol";

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

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

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

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

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 6 of 17 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 7 of 17 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

File 8 of 17 : ERC721A.sol
// SPDX-License-Identifier: MIT
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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

error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error OwnerQueryForNonexistentToken();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error URIQueryForNonexistentToken();

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Compiler will pack this into a single 256bit word.
    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

    // Compiler will pack this into a single 256bit word.
    struct AddressData {
        // Realistically, 2**64-1 is more than enough.
        uint64 balance;
        // Keeps track of mint count with minimal overhead for tokenomics.
        uint64 numberMinted;
        // Keeps track of burn count with minimal overhead for tokenomics.
        uint64 numberBurned;
        // For miscellaneous variable(s) pertaining to the address
        // (e.g. number of whitelist mint slots used).
        // If there are multiple variables, please pack them into a uint64.
        uint64 aux;
    }

    // The tokenId of the next token to be minted.
    uint256 internal _currentIndex;

    // The number of tokens burned.
    uint256 internal _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
    }

    /**
     * To change the starting tokenId, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens.
     */
    function totalSupply() public view returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex - _startTokenId() times
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view returns (uint256) {
        // Counter underflow is impossible as _currentIndex does not decrement,
        // and it is initialized to _startTokenId()
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return uint256(_addressData[owner].balance);
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberMinted);
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberBurned);
    }

    /**
     * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return _addressData[owner].aux;
    }

    /**
     * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        _addressData[owner].aux = aux;
    }

    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr && curr < _currentIndex) {
                TokenOwnership memory ownership = _ownerships[curr];
                if (!ownership.burned) {
                    if (ownership.addr != address(0)) {
                        return ownership;
                    }
                    // Invariant:
                    // There will always be an ownership that has an address and is not burned
                    // before an ownership that does not have an address and is not burned.
                    // Hence, curr will not underflow.
                    while (true) {
                        curr--;
                        ownership = _ownerships[curr];
                        if (ownership.addr != address(0)) {
                            return ownership;
                        }
                    }
                }
            }
        }
        revert OwnerQueryForNonexistentToken();
    }

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

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

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

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

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721A.ownerOf(tokenId);
        if (to == owner) revert ApprovalToCurrentOwner();

        if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) {
            revert ApprovalCallerNotOwnerNorApproved();
        }

        _approve(to, tokenId, owner);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        if (operator == _msgSender()) revert ApproveToCaller();

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

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

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

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        _transfer(from, to, tokenId);
        if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

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

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

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        _mint(to, quantity, _data, true);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _mint(
        address to,
        uint256 quantity,
        bytes memory _data,
        bool safe
    ) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

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

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            if (safe && to.isContract()) {
                do {
                    emit Transfer(address(0), to, updatedIndex);
                    if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (updatedIndex != end);
                // Reentrancy protection
                if (_currentIndex != startTokenId) revert();
            } else {
                do {
                    emit Transfer(address(0), to, updatedIndex++);
                } while (updatedIndex != end);
            }
            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

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

        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();

        bool isApprovedOrOwner = (_msgSender() == from ||
            isApprovedForAll(from, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            _addressData[from].balance -= 1;
            _addressData[to].balance += 1;

            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = to;
            currSlot.startTimestamp = uint64(block.timestamp);

            // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

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

    /**
     * @dev This is equivalent to _burn(tokenId, false)
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId, bool approvalCheck) internal virtual {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        address from = prevOwnership.addr;

        if (approvalCheck) {
            bool isApprovedOrOwner = (_msgSender() == from ||
                isApprovedForAll(from, _msgSender()) ||
                getApproved(tokenId) == _msgSender());

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            AddressData storage addressData = _addressData[from];
            addressData.balance -= 1;
            addressData.numberBurned += 1;

            // Keep track of who burned the token, and the timestamp of burning.
            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = from;
            currSlot.startTimestamp = uint64(block.timestamp);
            currSlot.burned = true;

            // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

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

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

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

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

File 9 of 17 : OperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";

/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 */
abstract contract OperatorFilterer {
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);

    constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (subscribe) {
                OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    OPERATOR_FILTER_REGISTRY.register(address(this));
                }
            }
        }
    }

    modifier onlyAllowedOperator(address from) virtual {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}

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

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 12 of 17 : 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 13 of 17 : 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 14 of 17 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 16 of 17 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);
    function register(address registrant) external;
    function registerAndSubscribe(address registrant, address subscription) external;
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;
    function unregister(address addr) external;
    function updateOperator(address registrant, address operator, bool filtered) external;
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;
    function subscribe(address registrant, address registrantToSubscribe) external;
    function unsubscribe(address registrant, bool copyExistingEntries) external;
    function subscriptionOf(address addr) external returns (address registrant);
    function subscribers(address registrant) external returns (address[] memory);
    function subscriberAt(address registrant, uint256 index) external returns (address);
    function copyEntriesOf(address registrant, address registrantToCopy) external;
    function isOperatorFiltered(address registrant, address operator) external returns (bool);
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);
    function filteredOperators(address addr) external returns (address[] memory);
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);
    function isRegistered(address addr) external returns (bool);
    function codeHashOf(address addr) external returns (bytes32);
}

File 17 of 17 : 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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_homesickAddr","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"burn","outputs":[{"internalType":"uint32[3]","name":"","type":"uint32[3]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getFeeBps","outputs":[{"internalType":"uint256[]","name":"bps","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getFeeRecipients","outputs":[{"internalType":"address payable[]","name":"recipients","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getRoyalties","outputs":[{"internalType":"address payable[]","name":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"bps","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"homesickAddr","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":[],"name":"isHOMETokensFinished","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID1","type":"uint256"},{"internalType":"uint256","name":"tokenID2","type":"uint256"},{"internalType":"uint256","name":"tokenID3","type":"uint256"},{"internalType":"address","name":"to_mint","type":"address"}],"name":"mint","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintedSupply","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":"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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"value","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"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setHOMETokensFinished","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newTerrAnimationExtension","type":"string"}],"name":"setTerrAnimationExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newTerrExtension","type":"string"}],"name":"setTerrExtension","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":[],"name":"terrAnimationExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"terrExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenMetadata","outputs":[{"internalType":"uint32","name":"lockedToken1","type":"uint32"},{"internalType":"uint32","name":"lockedToken2","type":"uint32"},{"internalType":"uint32","name":"lockedToken3","type":"uint32"},{"internalType":"address","name":"original_holder_address","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"uint256","name":"bps","type":"uint256"}],"name":"updateRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"erc20_addr","type":"address"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60c060405260046080908152632e706e6760e01b60a052600a9062000025908262000381565b506040805180820190915260048152630b9b5c0d60e21b6020820152600b9062000050908262000381565b506000600c55600d805460ff60a01b191690553480156200007057600080fd5b5060405162003ce738038062003ce783398101604081905262000093916200044d565b733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280600b81526020016a2a32b93930b337b936b2b960a91b81525060405180604001604052806003815260200162120b9560ea1b8152508160029081620000fb919062000381565b5060036200010a828262000381565b506000805550506daaeb6d7670e522a718067333cd4e3b1562000256578015620001a457604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200018557600080fd5b505af11580156200019a573d6000803e3d6000fd5b5050505062000256565b6001600160a01b03821615620001f55760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af2903906044016200016a565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200023c57600080fd5b505af115801562000251573d6000803e3d6000fd5b505050505b50620002649050336200028a565b600d80546001600160a01b0319166001600160a01b03929092169190911790556200047f565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200030757607f821691505b6020821081036200032857634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200037c57600081815260208120601f850160051c81016020861015620003575750805b601f850160051c820191505b81811015620003785782815560010162000363565b5050505b505050565b81516001600160401b038111156200039d576200039d620002dc565b620003b581620003ae8454620002f2565b846200032e565b602080601f831160018114620003ed5760008415620003d45750858301515b600019600386901b1c1916600185901b17855562000378565b600085815260208120601f198616915b828110156200041e57888601518255948401946001909101908401620003fd565b50858210156200043d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000602082840312156200046057600080fd5b81516001600160a01b03811681146200047857600080fd5b9392505050565b613858806200048f6000396000f3fe6080604052600436106102295760003560e01c806370a0823111610123578063af66a367116100ab578063c87b56dd1161006f578063c87b56dd1461070c578063d1edda851461072c578063e985e9c51461074c578063f2fde38b1461076c578063f4f3b2001461078c57600080fd5b8063af66a36714610666578063b88d4fde1461067b578063b9c4d9fb1461069b578063bb3bafd6146106c8578063c1bd8cf9146106f657600080fd5b806395d89b41116100f257806395d89b41146105db5780639d2eca94146105f0578063a22cb46514610605578063abdfcccd14610625578063ad9183c41461064657600080fd5b806370a0823114610568578063715018a614610588578063895db18e1461059d5780638da5cb5b146105bd57600080fd5b80633ccfd60b116101b15780636352211e116101755780636352211e1461044e578063643183bf1461046e5780636914db60146104a35780636c0360eb146105335780636c2f5acd1461054857600080fd5b80633ccfd60b146103aa57806341f43434146103bf57806342842e0e146103e157806342966c681461040157806355f804b31461042e57600080fd5b80630ebd4c7f116101f85780630ebd4c7f146102e657806318160ddd146103135780631cf1034f1461033657806323b872dd1461034b5780632a55205a1461036b57600080fd5b806301ffc9a71461023557806306fdde031461026a578063081812fc1461028c578063095ea7b3146102c457600080fd5b3661023057005b600080fd5b34801561024157600080fd5b506102556102503660046128a6565b6107ac565b60405190151581526020015b60405180910390f35b34801561027657600080fd5b5061027f61080e565b6040516102619190612913565b34801561029857600080fd5b506102ac6102a7366004612926565b6108a0565b6040516001600160a01b039091168152602001610261565b3480156102d057600080fd5b506102e46102df366004612954565b6108e4565b005b3480156102f257600080fd5b50610306610301366004612926565b610954565b60405161026191906129bb565b34801561031f57600080fd5b50600154600054035b604051908152602001610261565b34801561034257600080fd5b506102e46109b0565b34801561035757600080fd5b506102e46103663660046129ce565b610a37565b34801561037757600080fd5b5061038b610386366004612a0f565b610a62565b604080516001600160a01b039093168352602083019190915201610261565b3480156103b657600080fd5b506102e4610a9c565b3480156103cb57600080fd5b506102ac6daaeb6d7670e522a718067333cd4e81565b3480156103ed57600080fd5b506102e46103fc3660046129ce565b610b81565b34801561040d57600080fd5b5061042161041c366004612926565b610ba6565b6040516102619190612a31565b34801561043a57600080fd5b506102e4610449366004612af3565b610d7c565b34801561045a57600080fd5b506102ac610469366004612926565b610db6565b34801561047a57600080fd5b5061048e610489366004612b3b565b610dc8565b60405163ffffffff9091168152602001610261565b3480156104af57600080fd5b506104fd6104be366004612926565b600e6020526000908152604090205463ffffffff808216916401000000008104821691600160401b82041690600160601b90046001600160a01b031684565b6040805163ffffffff9586168152938516602085015291909316908201526001600160a01b039091166060820152608001610261565b34801561053f57600080fd5b5061027f611114565b34801561055457600080fd5b506102e4610563366004612954565b6111a2565b34801561057457600080fd5b50610328610583366004612b7c565b6111f2565b34801561059457600080fd5b506102e4611240565b3480156105a957600080fd5b506102e46105b8366004612af3565b611276565b3480156105c957600080fd5b506008546001600160a01b03166102ac565b3480156105e757600080fd5b5061027f6112ac565b3480156105fc57600080fd5b5061027f6112bb565b34801561061157600080fd5b506102e4610620366004612ba7565b6112c8565b34801561063157600080fd5b50600d5461025590600160a01b900460ff1681565b34801561065257600080fd5b50600d546102ac906001600160a01b031681565b34801561067257600080fd5b5061027f61132e565b34801561068757600080fd5b506102e4610696366004612be0565b61133b565b3480156106a757600080fd5b506106bb6106b6366004612926565b611368565b6040516102619190612c98565b3480156106d457600080fd5b506106e86106e3366004612926565b6113e1565b604051610261929190612cab565b34801561070257600080fd5b50610328600c5481565b34801561071857600080fd5b5061027f610727366004612926565b611495565b34801561073857600080fd5b506102e4610747366004612af3565b61186d565b34801561075857600080fd5b50610255610767366004612cd9565b6118a3565b34801561077857600080fd5b506102e4610787366004612b7c565b6118f5565b34801561079857600080fd5b506102e46107a7366004612b7c565b61198d565b60006107b782611b05565b806107d257506001600160e01b03198216635d9dd7eb60e11b145b806107ed57506001600160e01b0319821663152a902d60e11b145b8061080857506001600160e01b03198216632dde656160e21b145b92915050565b60606002805461081d90612d07565b80601f016020809104026020016040519081016040528092919081815260200182805461084990612d07565b80156108965780601f1061086b57610100808354040283529160200191610896565b820191906000526020600020905b81548152906001019060200180831161087957829003601f168201915b5050505050905090565b60006108ab82611b55565b6108c8576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b816108ee81611b80565b600d54600160a01b900460ff166109455760405162461bcd60e51b8152602060048201526016602482015275185c1c1c9bdd985b081b9bdd081c195c9b5a5d1d195960521b60448201526064015b60405180910390fd5b61094f8383611c39565b505050565b6011546060906001600160a01b0316156109ab5760408051600180825281830190925290602080830190803683370190505090506010548160008151811061099e5761099e612d3b565b6020026020010181815250505b919050565b600d546001600160a01b03163314610a225760405162461bcd60e51b815260206004820152602f60248201527f6f6e6c7920686f6d657369636b20636f6e74726163742063616e20736574204860448201526e13d35148185cc8199a5b9a5cda1959608a1b606482015260840161093c565b600d805460ff60a01b1916600160a01b179055565b826001600160a01b0381163314610a5157610a5133611b80565b610a5c848484611cc1565b50505050565b60115460105460009182916001600160a01b039091169061271090610a879086612d67565b610a919190612d94565b915091509250929050565b6008546001600160a01b03163314610ac65760405162461bcd60e51b815260040161093c90612da8565b6011546001600160a01b0316610b1e5760405162461bcd60e51b815260206004820152601a60248201527f4d7573742073657420726f79616c747920726563697069656e74000000000000604482015260640161093c565b6011546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610b6b576040519150601f19603f3d011682016040523d82523d6000602084013e610b70565b606091505b5050905080610b7e57600080fd5b50565b826001600160a01b0381163314610b9b57610b9b33611b80565b610a5c848484611ccc565b610bae612872565b600d546001600160a01b03163314610c1c5760405162461bcd60e51b815260206004820152602b60248201527f6f6e6c7920686f6d657369636b20636f6e74726163742063616e206275726e2060448201526a3a32b93930b337b936b2b960a91b606482015260840161093c565b600d54600160a01b900460ff1615610c8b5760405162461bcd60e51b815260206004820152602c60248201527f63616e6e6f74206275726e20616674657220686f6d6520746f6b656e7320617260448201526b1948185b1b081b5a5b9d195960a21b606482015260840161093c565b6000828152600e60209081526040918290208251608081018452905463ffffffff808216835264010000000082048116838501908152600160401b83048216848701908152600160601b9093046001600160a01b031660608086019190915286519081018752845183168152905182169481019490945290511692820192909252610d33610d1885610db6565b73d6aacf8bfa0f11deb571d4f6e38f7ae2e07cb38586610a37565b600f8054600181019091557f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac802018490556000938452600e60205260408420939093555090919050565b6008546001600160a01b03163314610da65760405162461bcd60e51b815260040161093c90612da8565b6009610db28282612e2b565b5050565b6000610dc182611ce7565b5192915050565b600d546000906001600160a01b03163314610e395760405162461bcd60e51b815260206004820152602b60248201527f6f6e6c7920686f6d657369636b20636f6e74726163742063616e206d696e742060448201526a3a32b93930b337b936b2b960a91b606482015260840161093c565b610e42826111f2565b15610e9d5760405162461bcd60e51b815260206004820152602560248201527f63616e6e6f74206d696e74206d6f7265207468616e206f6e652074657272616660448201526437b936b2b960d91b606482015260840161093c565b600d54600160a01b900460ff1615610f0c5760405162461bcd60e51b815260206004820152602c60248201527f63616e6e6f74206d696e7420616674657220686f6d6520746f6b656e7320617260448201526b1948185b1b081b5a5b9d195960a21b606482015260840161093c565b6040805160808101825263ffffffff808816825286811660208301528516918101919091526001600160a01b0383166060820152600f5460000361100857600c80546000908152600e6020908152604080832085518154938701519287015160608801516001600160a01b0316600160601b026bffffffffffffffffffffffff63ffffffff928316600160401b02166001600160401b039583166401000000000267ffffffffffffffff19909716929093169190911794909417929092169190911791909117905581549190610fe183612eea565b9190505550610ff1836001611e01565b6001600c546110009190612f03565b91505061110c565b600f80546000919061101c90600190612f03565b8154811061102c5761102c612d3b565b90600052602060002001549050600f80548061104a5761104a612f16565b600082815260208082208301600019908101839055909201909255828252600e815260409182902084518154928601519386015160608701516001600160a01b0316600160601b026bffffffffffffffffffffffff63ffffffff928316600160401b02166001600160401b039683166401000000000267ffffffffffffffff19909616929093169190911793909317939093169290921717905561110373d6aacf8bfa0f11deb571d4f6e38f7ae2e07cb3858583610a37565b915061110c9050565b949350505050565b6009805461112190612d07565b80601f016020809104026020016040519081016040528092919081815260200182805461114d90612d07565b801561119a5780601f1061116f5761010080835404028352916020019161119a565b820191906000526020600020905b81548152906001019060200180831161117d57829003601f168201915b505050505081565b6008546001600160a01b031633146111cc5760405162461bcd60e51b815260040161093c90612da8565b601180546001600160a01b0319166001600160a01b039390931692909217909155601055565b60006001600160a01b03821661121b576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b0316331461126a5760405162461bcd60e51b815260040161093c90612da8565b6112746000611e1b565b565b6008546001600160a01b031633146112a05760405162461bcd60e51b815260040161093c90612da8565b600a610db28282612e2b565b60606003805461081d90612d07565b600b805461112190612d07565b816112d281611b80565b600d54600160a01b900460ff166113245760405162461bcd60e51b8152602060048201526016602482015275185c1c1c9bdd985b081b9bdd081c195c9b5a5d1d195960521b604482015260640161093c565b61094f8383611e6d565b600a805461112190612d07565b836001600160a01b03811633146113555761135533611b80565b61136185858585611f02565b5050505050565b6011546060906001600160a01b0316156109ab576040805160018082528183019092529060208083019080368337505060115482519293506001600160a01b0316918391506000906113bc576113bc612d3b565b60200260200101906001600160a01b031690816001600160a01b031681525050919050565b60115460609081906001600160a01b031615611490576040805160018082528183019092529060208083019080368337505060115482519294506001600160a01b03169184915060009061143757611437612d3b565b6001600160a01b03929092166020928302919091018201526040805160018082528183019092529182810190803683370190505090506010548160008151811061148357611483612d3b565b6020026020010181815250505b915091565b60606114a082611b55565b6114bd57604051630a14c4b560e41b815260040160405180910390fd5b6000828152600e60209081526040918290208251608081018452905463ffffffff80821680845264010000000083048216948401859052600160401b830490911694830194909452600160601b90046001600160a01b0316606082015291036115d45760006040518060800160405280604381526020016137a060439139600d54909150600160a01b900460ff161561156c576040518060c001604052806091815260200161370f6091913990505b6000816009600a61157e886004611f4d565b6040516020016115919493929190612fbb565b60405160208183030381529060405290506115ab81612021565b6040516020016115bb919061303e565b6040516020818303038152906040529350505050919050565b600d546040805163c5dd60e160e01b815290516000926001600160a01b03169163c5dd60e19160048083019260209291908290030181865afa15801561161e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116429190613083565b600d546060840151604051633edb159560e21b81526001600160a01b03918216600482015292935060009291169063fb6c565490602401602060405180830381865afa158015611696573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116ba9190613083565b905060016116c96002846130ac565b6001600160401b0316826001600160401b031611156116e6575060025b600d54600160a01b900460ff166117e857606060096117078360ff16612173565b600a60096117178660ff16612173565b600b60405160200161172e969594939291906130d2565b60405160208183030381529060405290508061174b886004611f4d565b865161175c9063ffffffff16612173565b61176f886020015163ffffffff16612173565b611782896040015163ffffffff16612173565b61178e8760ff16612173565b6040516020016117a39695949392919061329d565b60405160208183030381529060405290506117bd81612021565b6040516020016117cd919061303e565b60405160208183030381529060405295505050505050919050565b60606117f68260ff16612173565b60096118048460ff16612173565b600a60096118148760ff16612173565b600b60405160200161182c9796959493929190613490565b604051602081830303815290604052905080611849886004611f4d565b6118558460ff16612173565b6040516020016117a3939291906135b1565b50919050565b6008546001600160a01b031633146118975760405162461bcd60e51b815260040161093c90612da8565b600b610db28282612e2b565b600d546000906001600160a01b03908116908316036118c457506001610808565b6001600160a01b0380841660009081526007602090815260408083209386168352929052205460ff165b9392505050565b6008546001600160a01b0316331461191f5760405162461bcd60e51b815260040161093c90612da8565b6001600160a01b0381166119845760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161093c565b610b7e81611e1b565b6008546001600160a01b031633146119b75760405162461bcd60e51b815260040161093c90612da8565b6011546001600160a01b0316611a0f5760405162461bcd60e51b815260206004820152601a60248201527f4d7573742073657420726f79616c747920726563697069656e74000000000000604482015260640161093c565b6040516370a0823160e01b815230600482015281906000906001600160a01b038316906370a0823190602401602060405180830381865afa158015611a58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a7c919061366b565b60115460405163a9059cbb60e01b81526001600160a01b039182166004820152602481018390529192506000919084169063a9059cbb906044016020604051808303816000875af1158015611ad5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611af99190613684565b905080610a5c57600080fd5b60006001600160e01b031982166380ac58cd60e01b1480611b3657506001600160e01b03198216635b5e139f60e01b145b8061080857506301ffc9a760e01b6001600160e01b0319831614610808565b6000805482108015610808575050600090815260046020526040902054600160e01b900460ff161590565b6daaeb6d7670e522a718067333cd4e3b15610b7e57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611bed573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c119190613684565b610b7e57604051633b79c77360e21b81526001600160a01b038216600482015260240161093c565b6000611c4482610db6565b9050806001600160a01b0316836001600160a01b031603611c785760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590611c985750611c9681336118a3565b155b15611cb6576040516367d9dca160e11b815260040160405180910390fd5b61094f838383612205565b61094f838383612261565b61094f8383836040518060200160405280600081525061133b565b604080516060810182526000808252602082018190529181019190915281600054811015611de857600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290611de65780516001600160a01b031615611d7d579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215611de1579392505050565b611d7d565b505b604051636f96cda160e11b815260040160405180910390fd5b610db2828260405180602001604052806000815250612459565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b336001600160a01b03831603611e965760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611f0d848484612261565b6001600160a01b0383163b15158015611f2f5750611f2d84848484612466565b155b15610a5c576040516368d2bf6b60e11b815260040160405180910390fd5b60606000826001600160401b03811115611f6957611f69612a68565b6040519080825280601f01601f191660200182016040528015611f93576020820181803683370190505b5090508281016020015b60001993840193016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945083611f9d5784156120195760405162461bcd60e51b815260206004820152601c60248201527f537472696e67733a206c656e67746820696e73756666696369656e7400000000604482015260640161093c565b509392505050565b6060815160000361204057505060408051602081019091526000815290565b60006040518060600160405280604081526020016137e3604091399050600060038451600261206f91906136a1565b6120799190612d94565b612084906004612d67565b6001600160401b0381111561209b5761209b612a68565b6040519080825280601f01601f1916602001820160405280156120c5576020820181803683370190505b509050600182016020820185865187015b80821015612131576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f81168501518453506001830192506120d6565b505060038651066001811461214d576002811461216057612168565b603d6001830353603d6002830353612168565b603d60018303535b509195945050505050565b606060006121808361254e565b60010190506000816001600160401b0381111561219f5761219f612a68565b6040519080825280601f01601f1916602001820160405280156121c9576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846121d357509392505050565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061226c82611ce7565b9050836001600160a01b031681600001516001600160a01b0316146122a35760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b03861614806122c157506122c185336118a3565b806122dc5750336122d1846108a0565b6001600160a01b0316145b9050806122fc57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661232357604051633a954ecd60e21b815260040160405180910390fd5b6123308585856001612626565b61233c60008487612205565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b4290921691909102178355870180845292208054919390911661241057600054821461241057805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611361565b61094f8383836001612699565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061249b9033908990889088906004016136b4565b6020604051808303816000875af19250505080156124d6575060408051601f3d908101601f191682019092526124d3918101906136f1565b60015b612534573d808015612504576040519150601f19603f3d011682016040523d82523d6000602084013e612509565b606091505b50805160000361252c576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061110c565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061258d5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106125b9576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106125d757662386f26fc10000830492506010015b6305f5e10083106125ef576305f5e100830492506008015b612710831061260357612710830492506004015b60648310612615576064830492506002015b600a83106108085760010192915050565b6001600160a01b03841615610a5c57600d546001600160a01b03163314610a5c57600d54600160a01b900460ff16610a5c5760405162461bcd60e51b81526020600482015260166024820152751d1c985b9cd9995c881b9bdd081c195c9b5a5d1d195960521b604482015260640161093c565b6000546001600160a01b0385166126c257604051622e076360e81b815260040160405180910390fd5b836000036126e35760405163b562e8dd60e01b815260040160405180910390fd5b6126f06000868387612626565b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c018116918217600160401b67ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b42909216919091021790558080850183801561279c57506001600160a01b0387163b15155b15612824575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46127ed6000888480600101955088612466565b61280a576040516368d2bf6b60e11b815260040160405180910390fd5b8082036127a257826000541461281f57600080fd5b612869565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808203612825575b50600055611361565b60405180606001604052806003906020820280368337509192915050565b6001600160e01b031981168114610b7e57600080fd5b6000602082840312156128b857600080fd5b81356118ee81612890565b60005b838110156128de5781810151838201526020016128c6565b50506000910152565b600081518084526128ff8160208601602086016128c3565b601f01601f19169290920160200192915050565b6020815260006118ee60208301846128e7565b60006020828403121561293857600080fd5b5035919050565b6001600160a01b0381168114610b7e57600080fd5b6000806040838503121561296757600080fd5b82356129728161293f565b946020939093013593505050565b600081518084526020808501945080840160005b838110156129b057815187529582019590820190600101612994565b509495945050505050565b6020815260006118ee6020830184612980565b6000806000606084860312156129e357600080fd5b83356129ee8161293f565b925060208401356129fe8161293f565b929592945050506040919091013590565b60008060408385031215612a2257600080fd5b50508035926020909101359150565b60608101818360005b6003811015612a5f57815163ffffffff16835260209283019290910190600101612a3a565b50505092915050565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b0380841115612a9857612a98612a68565b604051601f8501601f19908116603f01168101908282118183101715612ac057612ac0612a68565b81604052809350858152868686011115612ad957600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215612b0557600080fd5b81356001600160401b03811115612b1b57600080fd5b8201601f81018413612b2c57600080fd5b61110c84823560208401612a7e565b60008060008060808587031215612b5157600080fd5b8435935060208501359250604085013591506060850135612b718161293f565b939692955090935050565b600060208284031215612b8e57600080fd5b81356118ee8161293f565b8015158114610b7e57600080fd5b60008060408385031215612bba57600080fd5b8235612bc58161293f565b91506020830135612bd581612b99565b809150509250929050565b60008060008060808587031215612bf657600080fd5b8435612c018161293f565b93506020850135612c118161293f565b92506040850135915060608501356001600160401b03811115612c3357600080fd5b8501601f81018713612c4457600080fd5b612c5387823560208401612a7e565b91505092959194509250565b600081518084526020808501945080840160005b838110156129b05781516001600160a01b031687529582019590820190600101612c73565b6020815260006118ee6020830184612c5f565b604081526000612cbe6040830185612c5f565b8281036020840152612cd08185612980565b95945050505050565b60008060408385031215612cec57600080fd5b8235612cf78161293f565b91506020830135612bd58161293f565b600181811c90821680612d1b57607f821691505b60208210810361186757634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761080857610808612d51565b634e487b7160e01b600052601260045260246000fd5b600082612da357612da3612d7e565b500490565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b601f82111561094f57600081815260208120601f850160051c81016020861015612e045750805b601f850160051c820191505b81811015612e2357828155600101612e10565b505050505050565b81516001600160401b03811115612e4457612e44612a68565b612e5881612e528454612d07565b84612ddd565b602080601f831160018114612e8d5760008415612e755750858301515b600019600386901b1c1916600185901b178555612e23565b600085815260208120601f198616915b82811015612ebc57888601518255948401946001909101908401612e9d565b5085821015612eda5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060018201612efc57612efc612d51565b5060010190565b8181038181111561080857610808612d51565b634e487b7160e01b600052603160045260246000fd5b60008151612f3e8185602086016128c3565b9290920192915050565b60008154612f5581612d07565b60018281168015612f6d5760018114612f8257612fb1565b60ff1984168752821515830287019450612fb1565b8560005260208060002060005b85811015612fa85781548a820152908401908201612f8f565b50505082870194505b5050505092915050565b60008551612fcd818460208a016128c3565b612fd981840187612f48565b9050600360fc1b8152612fef6001820186612f48565b905076222c226e616d65223a225465727261666f726d6572202360481b815283516130218160178401602088016128c3565b61227d60f01b601792909101918201526019019695505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161307681601d8501602087016128c3565b91909101601d0192915050565b60006020828403121561309557600080fd5b81516001600160401b03811681146118ee57600080fd5b60006001600160401b03808416806130c6576130c6612d7e565b92169190910492915050565b7f7b226465736372697074696f6e223a225445525241464f524d4552206973206181527f20636c61696d61626c65204e465420746f6b656e2066726f6d2074686520484f60208201527f4d455349434b20636f6c6c656374696f6e20627920484f5849442e205768656e60408201527f20636c61696d65642c207468697320746f6b656e20616374697661746573206160608201527f2074696d6572207468617420636f756e747320646f776e20746f20726563656960808201527f76652074686520484f4d4520746f6b656e2e20205c6e20205c6e49662074686560a08201527f206c6f636b656420746f6b656e73206d6f766520746865205445525241464f5260c08201527f4d45522077696c6c2064697361707065617220616e6420796f75722074696d6560e08201527f722077696c6c2062652072657365742e222c22696d616765223a220000000000610100820152600061323661011b830189612f48565b8751613246818360208c016128c3565b61328f61328961328361327d61325e8587018d612f48565b7211161130b734b6b0ba34b7b72fbab936111d1160691b815260130190565b8a612f48565b88612f2c565b86612f48565b9a9950505050505050505050565b600087516132af818460208c016128c3565b76222c226e616d65223a225465727261666f726d6572202360481b90830190815287516132e3816017840160208c016128c3565b7f222c2261747472696275746573223a5b7b2274726169745f74797065223a224c601792909101918201527f6f636b65642053706563696d656e202331222c2276616c7565223a220000000060378201528651613347816053840160208b016128c3565b7f227d2c7b2274726169745f74797065223a224c6f636b65642053706563696d65605392909101918201526e371011991116113b30b63ab2911d1160891b6073820152855161339d816082840160208a016128c3565b61328f61348061346e6134396134336133ff6133f96082888a01017f227d2c7b2274726169745f74797065223a224c6f636b65642053706563696d6581526e371011999116113b30b63ab2911d1160891b6020820152602f0190565b8c612f2c565b7f227d2c7b2274726169745f74797065223a225374616765222c2276616c7565228152611d1160f11b602082015260220190565b89612f2c565b7f227d2c7b2274726169745f74797065223a224c6f636b6564222c2276616c7565815262111d1160e91b602082015260230190565b65131bd8dad95960d21b815260060190565b63227d5d7d60e01b815260040190565b7f7b226465736372697074696f6e223a225445525241464f524d455220532e00008152600088516134c881601e850160208d016128c3565b7f20205c6e627920484f5849442e20205c6e20205c6e5468697320706965636520601e918401918201527f69732070617274206f662074686520484f4d455349434b20636f6c6c65637469603e8201526d37b71711161134b6b0b3b2911d1160911b605e82015261353c606c82018a612f48565b9050875161354e818360208c016128c3565b61355a81830189612f48565b7211161130b734b6b0ba34b7b72fbab936111d1160691b8152915061358490506013820187612f48565b905084516135968183602089016128c3565b6135a281830186612f48565b9b9a5050505050505050505050565b600084516135c38184602089016128c3565b76222c226e616d65223a225465727261666f726d6572202360481b90830190815284516135f78160178401602089016128c3565b7f222c2261747472696275746573223a5b7b2274726169745f74797065223a2253601792909101918201526e3a30b3b29116113b30b63ab2911d1160891b6037820152835161364d8160468401602088016128c3565b63227d5d7d60e01b60469290910191820152604a0195945050505050565b60006020828403121561367d57600080fd5b5051919050565b60006020828403121561369657600080fd5b81516118ee81612b99565b8082018082111561080857610808612d51565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906136e7908301846128e7565b9695505050505050565b60006020828403121561370357600080fd5b81516118ee8161289056fe7b226465736372697074696f6e223a22546865736520746f6b656e732068656c70656420636f6c6c6563746f727320746f2066696e6420686f6d657320666f722074686569722073706563696d656e732e20205c6e4e6f772077696c6c20737461792061732061206d6f6e756d656e74206f662074686520484f4d455349434b2064726f702e222c22696d616765223a227b226465736372697074696f6e223a22436f6f6c696e6720646f776e2c20205c6e57616974696e6720666f722061206e657720757365722e222c22696d616765223a224142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa264697066735822122025288bf6e8508a5a4ffca2c51a97e59f15e70a5bac626e8f3c1d5735d31d53f264736f6c6343000811003300000000000000000000000042e0836fc7410893da8cfdc39ca8add0fe166848

Deployed Bytecode

0x6080604052600436106102295760003560e01c806370a0823111610123578063af66a367116100ab578063c87b56dd1161006f578063c87b56dd1461070c578063d1edda851461072c578063e985e9c51461074c578063f2fde38b1461076c578063f4f3b2001461078c57600080fd5b8063af66a36714610666578063b88d4fde1461067b578063b9c4d9fb1461069b578063bb3bafd6146106c8578063c1bd8cf9146106f657600080fd5b806395d89b41116100f257806395d89b41146105db5780639d2eca94146105f0578063a22cb46514610605578063abdfcccd14610625578063ad9183c41461064657600080fd5b806370a0823114610568578063715018a614610588578063895db18e1461059d5780638da5cb5b146105bd57600080fd5b80633ccfd60b116101b15780636352211e116101755780636352211e1461044e578063643183bf1461046e5780636914db60146104a35780636c0360eb146105335780636c2f5acd1461054857600080fd5b80633ccfd60b146103aa57806341f43434146103bf57806342842e0e146103e157806342966c681461040157806355f804b31461042e57600080fd5b80630ebd4c7f116101f85780630ebd4c7f146102e657806318160ddd146103135780631cf1034f1461033657806323b872dd1461034b5780632a55205a1461036b57600080fd5b806301ffc9a71461023557806306fdde031461026a578063081812fc1461028c578063095ea7b3146102c457600080fd5b3661023057005b600080fd5b34801561024157600080fd5b506102556102503660046128a6565b6107ac565b60405190151581526020015b60405180910390f35b34801561027657600080fd5b5061027f61080e565b6040516102619190612913565b34801561029857600080fd5b506102ac6102a7366004612926565b6108a0565b6040516001600160a01b039091168152602001610261565b3480156102d057600080fd5b506102e46102df366004612954565b6108e4565b005b3480156102f257600080fd5b50610306610301366004612926565b610954565b60405161026191906129bb565b34801561031f57600080fd5b50600154600054035b604051908152602001610261565b34801561034257600080fd5b506102e46109b0565b34801561035757600080fd5b506102e46103663660046129ce565b610a37565b34801561037757600080fd5b5061038b610386366004612a0f565b610a62565b604080516001600160a01b039093168352602083019190915201610261565b3480156103b657600080fd5b506102e4610a9c565b3480156103cb57600080fd5b506102ac6daaeb6d7670e522a718067333cd4e81565b3480156103ed57600080fd5b506102e46103fc3660046129ce565b610b81565b34801561040d57600080fd5b5061042161041c366004612926565b610ba6565b6040516102619190612a31565b34801561043a57600080fd5b506102e4610449366004612af3565b610d7c565b34801561045a57600080fd5b506102ac610469366004612926565b610db6565b34801561047a57600080fd5b5061048e610489366004612b3b565b610dc8565b60405163ffffffff9091168152602001610261565b3480156104af57600080fd5b506104fd6104be366004612926565b600e6020526000908152604090205463ffffffff808216916401000000008104821691600160401b82041690600160601b90046001600160a01b031684565b6040805163ffffffff9586168152938516602085015291909316908201526001600160a01b039091166060820152608001610261565b34801561053f57600080fd5b5061027f611114565b34801561055457600080fd5b506102e4610563366004612954565b6111a2565b34801561057457600080fd5b50610328610583366004612b7c565b6111f2565b34801561059457600080fd5b506102e4611240565b3480156105a957600080fd5b506102e46105b8366004612af3565b611276565b3480156105c957600080fd5b506008546001600160a01b03166102ac565b3480156105e757600080fd5b5061027f6112ac565b3480156105fc57600080fd5b5061027f6112bb565b34801561061157600080fd5b506102e4610620366004612ba7565b6112c8565b34801561063157600080fd5b50600d5461025590600160a01b900460ff1681565b34801561065257600080fd5b50600d546102ac906001600160a01b031681565b34801561067257600080fd5b5061027f61132e565b34801561068757600080fd5b506102e4610696366004612be0565b61133b565b3480156106a757600080fd5b506106bb6106b6366004612926565b611368565b6040516102619190612c98565b3480156106d457600080fd5b506106e86106e3366004612926565b6113e1565b604051610261929190612cab565b34801561070257600080fd5b50610328600c5481565b34801561071857600080fd5b5061027f610727366004612926565b611495565b34801561073857600080fd5b506102e4610747366004612af3565b61186d565b34801561075857600080fd5b50610255610767366004612cd9565b6118a3565b34801561077857600080fd5b506102e4610787366004612b7c565b6118f5565b34801561079857600080fd5b506102e46107a7366004612b7c565b61198d565b60006107b782611b05565b806107d257506001600160e01b03198216635d9dd7eb60e11b145b806107ed57506001600160e01b0319821663152a902d60e11b145b8061080857506001600160e01b03198216632dde656160e21b145b92915050565b60606002805461081d90612d07565b80601f016020809104026020016040519081016040528092919081815260200182805461084990612d07565b80156108965780601f1061086b57610100808354040283529160200191610896565b820191906000526020600020905b81548152906001019060200180831161087957829003601f168201915b5050505050905090565b60006108ab82611b55565b6108c8576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b816108ee81611b80565b600d54600160a01b900460ff166109455760405162461bcd60e51b8152602060048201526016602482015275185c1c1c9bdd985b081b9bdd081c195c9b5a5d1d195960521b60448201526064015b60405180910390fd5b61094f8383611c39565b505050565b6011546060906001600160a01b0316156109ab5760408051600180825281830190925290602080830190803683370190505090506010548160008151811061099e5761099e612d3b565b6020026020010181815250505b919050565b600d546001600160a01b03163314610a225760405162461bcd60e51b815260206004820152602f60248201527f6f6e6c7920686f6d657369636b20636f6e74726163742063616e20736574204860448201526e13d35148185cc8199a5b9a5cda1959608a1b606482015260840161093c565b600d805460ff60a01b1916600160a01b179055565b826001600160a01b0381163314610a5157610a5133611b80565b610a5c848484611cc1565b50505050565b60115460105460009182916001600160a01b039091169061271090610a879086612d67565b610a919190612d94565b915091509250929050565b6008546001600160a01b03163314610ac65760405162461bcd60e51b815260040161093c90612da8565b6011546001600160a01b0316610b1e5760405162461bcd60e51b815260206004820152601a60248201527f4d7573742073657420726f79616c747920726563697069656e74000000000000604482015260640161093c565b6011546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610b6b576040519150601f19603f3d011682016040523d82523d6000602084013e610b70565b606091505b5050905080610b7e57600080fd5b50565b826001600160a01b0381163314610b9b57610b9b33611b80565b610a5c848484611ccc565b610bae612872565b600d546001600160a01b03163314610c1c5760405162461bcd60e51b815260206004820152602b60248201527f6f6e6c7920686f6d657369636b20636f6e74726163742063616e206275726e2060448201526a3a32b93930b337b936b2b960a91b606482015260840161093c565b600d54600160a01b900460ff1615610c8b5760405162461bcd60e51b815260206004820152602c60248201527f63616e6e6f74206275726e20616674657220686f6d6520746f6b656e7320617260448201526b1948185b1b081b5a5b9d195960a21b606482015260840161093c565b6000828152600e60209081526040918290208251608081018452905463ffffffff808216835264010000000082048116838501908152600160401b83048216848701908152600160601b9093046001600160a01b031660608086019190915286519081018752845183168152905182169481019490945290511692820192909252610d33610d1885610db6565b73d6aacf8bfa0f11deb571d4f6e38f7ae2e07cb38586610a37565b600f8054600181019091557f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac802018490556000938452600e60205260408420939093555090919050565b6008546001600160a01b03163314610da65760405162461bcd60e51b815260040161093c90612da8565b6009610db28282612e2b565b5050565b6000610dc182611ce7565b5192915050565b600d546000906001600160a01b03163314610e395760405162461bcd60e51b815260206004820152602b60248201527f6f6e6c7920686f6d657369636b20636f6e74726163742063616e206d696e742060448201526a3a32b93930b337b936b2b960a91b606482015260840161093c565b610e42826111f2565b15610e9d5760405162461bcd60e51b815260206004820152602560248201527f63616e6e6f74206d696e74206d6f7265207468616e206f6e652074657272616660448201526437b936b2b960d91b606482015260840161093c565b600d54600160a01b900460ff1615610f0c5760405162461bcd60e51b815260206004820152602c60248201527f63616e6e6f74206d696e7420616674657220686f6d6520746f6b656e7320617260448201526b1948185b1b081b5a5b9d195960a21b606482015260840161093c565b6040805160808101825263ffffffff808816825286811660208301528516918101919091526001600160a01b0383166060820152600f5460000361100857600c80546000908152600e6020908152604080832085518154938701519287015160608801516001600160a01b0316600160601b026bffffffffffffffffffffffff63ffffffff928316600160401b02166001600160401b039583166401000000000267ffffffffffffffff19909716929093169190911794909417929092169190911791909117905581549190610fe183612eea565b9190505550610ff1836001611e01565b6001600c546110009190612f03565b91505061110c565b600f80546000919061101c90600190612f03565b8154811061102c5761102c612d3b565b90600052602060002001549050600f80548061104a5761104a612f16565b600082815260208082208301600019908101839055909201909255828252600e815260409182902084518154928601519386015160608701516001600160a01b0316600160601b026bffffffffffffffffffffffff63ffffffff928316600160401b02166001600160401b039683166401000000000267ffffffffffffffff19909616929093169190911793909317939093169290921717905561110373d6aacf8bfa0f11deb571d4f6e38f7ae2e07cb3858583610a37565b915061110c9050565b949350505050565b6009805461112190612d07565b80601f016020809104026020016040519081016040528092919081815260200182805461114d90612d07565b801561119a5780601f1061116f5761010080835404028352916020019161119a565b820191906000526020600020905b81548152906001019060200180831161117d57829003601f168201915b505050505081565b6008546001600160a01b031633146111cc5760405162461bcd60e51b815260040161093c90612da8565b601180546001600160a01b0319166001600160a01b039390931692909217909155601055565b60006001600160a01b03821661121b576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b0316331461126a5760405162461bcd60e51b815260040161093c90612da8565b6112746000611e1b565b565b6008546001600160a01b031633146112a05760405162461bcd60e51b815260040161093c90612da8565b600a610db28282612e2b565b60606003805461081d90612d07565b600b805461112190612d07565b816112d281611b80565b600d54600160a01b900460ff166113245760405162461bcd60e51b8152602060048201526016602482015275185c1c1c9bdd985b081b9bdd081c195c9b5a5d1d195960521b604482015260640161093c565b61094f8383611e6d565b600a805461112190612d07565b836001600160a01b03811633146113555761135533611b80565b61136185858585611f02565b5050505050565b6011546060906001600160a01b0316156109ab576040805160018082528183019092529060208083019080368337505060115482519293506001600160a01b0316918391506000906113bc576113bc612d3b565b60200260200101906001600160a01b031690816001600160a01b031681525050919050565b60115460609081906001600160a01b031615611490576040805160018082528183019092529060208083019080368337505060115482519294506001600160a01b03169184915060009061143757611437612d3b565b6001600160a01b03929092166020928302919091018201526040805160018082528183019092529182810190803683370190505090506010548160008151811061148357611483612d3b565b6020026020010181815250505b915091565b60606114a082611b55565b6114bd57604051630a14c4b560e41b815260040160405180910390fd5b6000828152600e60209081526040918290208251608081018452905463ffffffff80821680845264010000000083048216948401859052600160401b830490911694830194909452600160601b90046001600160a01b0316606082015291036115d45760006040518060800160405280604381526020016137a060439139600d54909150600160a01b900460ff161561156c576040518060c001604052806091815260200161370f6091913990505b6000816009600a61157e886004611f4d565b6040516020016115919493929190612fbb565b60405160208183030381529060405290506115ab81612021565b6040516020016115bb919061303e565b6040516020818303038152906040529350505050919050565b600d546040805163c5dd60e160e01b815290516000926001600160a01b03169163c5dd60e19160048083019260209291908290030181865afa15801561161e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116429190613083565b600d546060840151604051633edb159560e21b81526001600160a01b03918216600482015292935060009291169063fb6c565490602401602060405180830381865afa158015611696573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116ba9190613083565b905060016116c96002846130ac565b6001600160401b0316826001600160401b031611156116e6575060025b600d54600160a01b900460ff166117e857606060096117078360ff16612173565b600a60096117178660ff16612173565b600b60405160200161172e969594939291906130d2565b60405160208183030381529060405290508061174b886004611f4d565b865161175c9063ffffffff16612173565b61176f886020015163ffffffff16612173565b611782896040015163ffffffff16612173565b61178e8760ff16612173565b6040516020016117a39695949392919061329d565b60405160208183030381529060405290506117bd81612021565b6040516020016117cd919061303e565b60405160208183030381529060405295505050505050919050565b60606117f68260ff16612173565b60096118048460ff16612173565b600a60096118148760ff16612173565b600b60405160200161182c9796959493929190613490565b604051602081830303815290604052905080611849886004611f4d565b6118558460ff16612173565b6040516020016117a3939291906135b1565b50919050565b6008546001600160a01b031633146118975760405162461bcd60e51b815260040161093c90612da8565b600b610db28282612e2b565b600d546000906001600160a01b03908116908316036118c457506001610808565b6001600160a01b0380841660009081526007602090815260408083209386168352929052205460ff165b9392505050565b6008546001600160a01b0316331461191f5760405162461bcd60e51b815260040161093c90612da8565b6001600160a01b0381166119845760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161093c565b610b7e81611e1b565b6008546001600160a01b031633146119b75760405162461bcd60e51b815260040161093c90612da8565b6011546001600160a01b0316611a0f5760405162461bcd60e51b815260206004820152601a60248201527f4d7573742073657420726f79616c747920726563697069656e74000000000000604482015260640161093c565b6040516370a0823160e01b815230600482015281906000906001600160a01b038316906370a0823190602401602060405180830381865afa158015611a58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a7c919061366b565b60115460405163a9059cbb60e01b81526001600160a01b039182166004820152602481018390529192506000919084169063a9059cbb906044016020604051808303816000875af1158015611ad5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611af99190613684565b905080610a5c57600080fd5b60006001600160e01b031982166380ac58cd60e01b1480611b3657506001600160e01b03198216635b5e139f60e01b145b8061080857506301ffc9a760e01b6001600160e01b0319831614610808565b6000805482108015610808575050600090815260046020526040902054600160e01b900460ff161590565b6daaeb6d7670e522a718067333cd4e3b15610b7e57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611bed573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c119190613684565b610b7e57604051633b79c77360e21b81526001600160a01b038216600482015260240161093c565b6000611c4482610db6565b9050806001600160a01b0316836001600160a01b031603611c785760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590611c985750611c9681336118a3565b155b15611cb6576040516367d9dca160e11b815260040160405180910390fd5b61094f838383612205565b61094f838383612261565b61094f8383836040518060200160405280600081525061133b565b604080516060810182526000808252602082018190529181019190915281600054811015611de857600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290611de65780516001600160a01b031615611d7d579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215611de1579392505050565b611d7d565b505b604051636f96cda160e11b815260040160405180910390fd5b610db2828260405180602001604052806000815250612459565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b336001600160a01b03831603611e965760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611f0d848484612261565b6001600160a01b0383163b15158015611f2f5750611f2d84848484612466565b155b15610a5c576040516368d2bf6b60e11b815260040160405180910390fd5b60606000826001600160401b03811115611f6957611f69612a68565b6040519080825280601f01601f191660200182016040528015611f93576020820181803683370190505b5090508281016020015b60001993840193016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945083611f9d5784156120195760405162461bcd60e51b815260206004820152601c60248201527f537472696e67733a206c656e67746820696e73756666696369656e7400000000604482015260640161093c565b509392505050565b6060815160000361204057505060408051602081019091526000815290565b60006040518060600160405280604081526020016137e3604091399050600060038451600261206f91906136a1565b6120799190612d94565b612084906004612d67565b6001600160401b0381111561209b5761209b612a68565b6040519080825280601f01601f1916602001820160405280156120c5576020820181803683370190505b509050600182016020820185865187015b80821015612131576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f81168501518453506001830192506120d6565b505060038651066001811461214d576002811461216057612168565b603d6001830353603d6002830353612168565b603d60018303535b509195945050505050565b606060006121808361254e565b60010190506000816001600160401b0381111561219f5761219f612a68565b6040519080825280601f01601f1916602001820160405280156121c9576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846121d357509392505050565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061226c82611ce7565b9050836001600160a01b031681600001516001600160a01b0316146122a35760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b03861614806122c157506122c185336118a3565b806122dc5750336122d1846108a0565b6001600160a01b0316145b9050806122fc57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661232357604051633a954ecd60e21b815260040160405180910390fd5b6123308585856001612626565b61233c60008487612205565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b4290921691909102178355870180845292208054919390911661241057600054821461241057805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611361565b61094f8383836001612699565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061249b9033908990889088906004016136b4565b6020604051808303816000875af19250505080156124d6575060408051601f3d908101601f191682019092526124d3918101906136f1565b60015b612534573d808015612504576040519150601f19603f3d011682016040523d82523d6000602084013e612509565b606091505b50805160000361252c576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061110c565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061258d5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106125b9576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106125d757662386f26fc10000830492506010015b6305f5e10083106125ef576305f5e100830492506008015b612710831061260357612710830492506004015b60648310612615576064830492506002015b600a83106108085760010192915050565b6001600160a01b03841615610a5c57600d546001600160a01b03163314610a5c57600d54600160a01b900460ff16610a5c5760405162461bcd60e51b81526020600482015260166024820152751d1c985b9cd9995c881b9bdd081c195c9b5a5d1d195960521b604482015260640161093c565b6000546001600160a01b0385166126c257604051622e076360e81b815260040160405180910390fd5b836000036126e35760405163b562e8dd60e01b815260040160405180910390fd5b6126f06000868387612626565b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c018116918217600160401b67ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b42909216919091021790558080850183801561279c57506001600160a01b0387163b15155b15612824575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46127ed6000888480600101955088612466565b61280a576040516368d2bf6b60e11b815260040160405180910390fd5b8082036127a257826000541461281f57600080fd5b612869565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808203612825575b50600055611361565b60405180606001604052806003906020820280368337509192915050565b6001600160e01b031981168114610b7e57600080fd5b6000602082840312156128b857600080fd5b81356118ee81612890565b60005b838110156128de5781810151838201526020016128c6565b50506000910152565b600081518084526128ff8160208601602086016128c3565b601f01601f19169290920160200192915050565b6020815260006118ee60208301846128e7565b60006020828403121561293857600080fd5b5035919050565b6001600160a01b0381168114610b7e57600080fd5b6000806040838503121561296757600080fd5b82356129728161293f565b946020939093013593505050565b600081518084526020808501945080840160005b838110156129b057815187529582019590820190600101612994565b509495945050505050565b6020815260006118ee6020830184612980565b6000806000606084860312156129e357600080fd5b83356129ee8161293f565b925060208401356129fe8161293f565b929592945050506040919091013590565b60008060408385031215612a2257600080fd5b50508035926020909101359150565b60608101818360005b6003811015612a5f57815163ffffffff16835260209283019290910190600101612a3a565b50505092915050565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b0380841115612a9857612a98612a68565b604051601f8501601f19908116603f01168101908282118183101715612ac057612ac0612a68565b81604052809350858152868686011115612ad957600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215612b0557600080fd5b81356001600160401b03811115612b1b57600080fd5b8201601f81018413612b2c57600080fd5b61110c84823560208401612a7e565b60008060008060808587031215612b5157600080fd5b8435935060208501359250604085013591506060850135612b718161293f565b939692955090935050565b600060208284031215612b8e57600080fd5b81356118ee8161293f565b8015158114610b7e57600080fd5b60008060408385031215612bba57600080fd5b8235612bc58161293f565b91506020830135612bd581612b99565b809150509250929050565b60008060008060808587031215612bf657600080fd5b8435612c018161293f565b93506020850135612c118161293f565b92506040850135915060608501356001600160401b03811115612c3357600080fd5b8501601f81018713612c4457600080fd5b612c5387823560208401612a7e565b91505092959194509250565b600081518084526020808501945080840160005b838110156129b05781516001600160a01b031687529582019590820190600101612c73565b6020815260006118ee6020830184612c5f565b604081526000612cbe6040830185612c5f565b8281036020840152612cd08185612980565b95945050505050565b60008060408385031215612cec57600080fd5b8235612cf78161293f565b91506020830135612bd58161293f565b600181811c90821680612d1b57607f821691505b60208210810361186757634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761080857610808612d51565b634e487b7160e01b600052601260045260246000fd5b600082612da357612da3612d7e565b500490565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b601f82111561094f57600081815260208120601f850160051c81016020861015612e045750805b601f850160051c820191505b81811015612e2357828155600101612e10565b505050505050565b81516001600160401b03811115612e4457612e44612a68565b612e5881612e528454612d07565b84612ddd565b602080601f831160018114612e8d5760008415612e755750858301515b600019600386901b1c1916600185901b178555612e23565b600085815260208120601f198616915b82811015612ebc57888601518255948401946001909101908401612e9d565b5085821015612eda5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060018201612efc57612efc612d51565b5060010190565b8181038181111561080857610808612d51565b634e487b7160e01b600052603160045260246000fd5b60008151612f3e8185602086016128c3565b9290920192915050565b60008154612f5581612d07565b60018281168015612f6d5760018114612f8257612fb1565b60ff1984168752821515830287019450612fb1565b8560005260208060002060005b85811015612fa85781548a820152908401908201612f8f565b50505082870194505b5050505092915050565b60008551612fcd818460208a016128c3565b612fd981840187612f48565b9050600360fc1b8152612fef6001820186612f48565b905076222c226e616d65223a225465727261666f726d6572202360481b815283516130218160178401602088016128c3565b61227d60f01b601792909101918201526019019695505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161307681601d8501602087016128c3565b91909101601d0192915050565b60006020828403121561309557600080fd5b81516001600160401b03811681146118ee57600080fd5b60006001600160401b03808416806130c6576130c6612d7e565b92169190910492915050565b7f7b226465736372697074696f6e223a225445525241464f524d4552206973206181527f20636c61696d61626c65204e465420746f6b656e2066726f6d2074686520484f60208201527f4d455349434b20636f6c6c656374696f6e20627920484f5849442e205768656e60408201527f20636c61696d65642c207468697320746f6b656e20616374697661746573206160608201527f2074696d6572207468617420636f756e747320646f776e20746f20726563656960808201527f76652074686520484f4d4520746f6b656e2e20205c6e20205c6e49662074686560a08201527f206c6f636b656420746f6b656e73206d6f766520746865205445525241464f5260c08201527f4d45522077696c6c2064697361707065617220616e6420796f75722074696d6560e08201527f722077696c6c2062652072657365742e222c22696d616765223a220000000000610100820152600061323661011b830189612f48565b8751613246818360208c016128c3565b61328f61328961328361327d61325e8587018d612f48565b7211161130b734b6b0ba34b7b72fbab936111d1160691b815260130190565b8a612f48565b88612f2c565b86612f48565b9a9950505050505050505050565b600087516132af818460208c016128c3565b76222c226e616d65223a225465727261666f726d6572202360481b90830190815287516132e3816017840160208c016128c3565b7f222c2261747472696275746573223a5b7b2274726169745f74797065223a224c601792909101918201527f6f636b65642053706563696d656e202331222c2276616c7565223a220000000060378201528651613347816053840160208b016128c3565b7f227d2c7b2274726169745f74797065223a224c6f636b65642053706563696d65605392909101918201526e371011991116113b30b63ab2911d1160891b6073820152855161339d816082840160208a016128c3565b61328f61348061346e6134396134336133ff6133f96082888a01017f227d2c7b2274726169745f74797065223a224c6f636b65642053706563696d6581526e371011999116113b30b63ab2911d1160891b6020820152602f0190565b8c612f2c565b7f227d2c7b2274726169745f74797065223a225374616765222c2276616c7565228152611d1160f11b602082015260220190565b89612f2c565b7f227d2c7b2274726169745f74797065223a224c6f636b6564222c2276616c7565815262111d1160e91b602082015260230190565b65131bd8dad95960d21b815260060190565b63227d5d7d60e01b815260040190565b7f7b226465736372697074696f6e223a225445525241464f524d455220532e00008152600088516134c881601e850160208d016128c3565b7f20205c6e627920484f5849442e20205c6e20205c6e5468697320706965636520601e918401918201527f69732070617274206f662074686520484f4d455349434b20636f6c6c65637469603e8201526d37b71711161134b6b0b3b2911d1160911b605e82015261353c606c82018a612f48565b9050875161354e818360208c016128c3565b61355a81830189612f48565b7211161130b734b6b0ba34b7b72fbab936111d1160691b8152915061358490506013820187612f48565b905084516135968183602089016128c3565b6135a281830186612f48565b9b9a5050505050505050505050565b600084516135c38184602089016128c3565b76222c226e616d65223a225465727261666f726d6572202360481b90830190815284516135f78160178401602089016128c3565b7f222c2261747472696275746573223a5b7b2274726169745f74797065223a2253601792909101918201526e3a30b3b29116113b30b63ab2911d1160891b6037820152835161364d8160468401602088016128c3565b63227d5d7d60e01b60469290910191820152604a0195945050505050565b60006020828403121561367d57600080fd5b5051919050565b60006020828403121561369657600080fd5b81516118ee81612b99565b8082018082111561080857610808612d51565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906136e7908301846128e7565b9695505050505050565b60006020828403121561370357600080fd5b81516118ee8161289056fe7b226465736372697074696f6e223a22546865736520746f6b656e732068656c70656420636f6c6c6563746f727320746f2066696e6420686f6d657320666f722074686569722073706563696d656e732e20205c6e4e6f772077696c6c20737461792061732061206d6f6e756d656e74206f662074686520484f4d455349434b2064726f702e222c22696d616765223a227b226465736372697074696f6e223a22436f6f6c696e6720646f776e2c20205c6e57616974696e6720666f722061206e657720757365722e222c22696d616765223a224142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa264697066735822122025288bf6e8508a5a4ffca2c51a97e59f15e70a5bac626e8f3c1d5735d31d53f264736f6c63430008110033

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

00000000000000000000000042e0836fc7410893da8cfdc39ca8add0fe166848

-----Decoded View---------------
Arg [0] : _homesickAddr (address): 0x42e0836fC7410893Da8CfDc39CA8add0FE166848

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000042e0836fc7410893da8cfdc39ca8add0fe166848


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.