ETH Price: $3,298.78 (-3.66%)

Contract

0x25e3E4d34C07fF6832cdCFc060F8AF6581C9cC26
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

TokenTracker

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer From149692862022-06-15 19:44:491240 days ago1655322289IN
0x25e3E4d3...581C9cC26
0 ETH0.0071397185.05127749
Transfer From149692192022-06-15 19:31:361240 days ago1655321496IN
0x25e3E4d3...581C9cC26
0 ETH0.00943175112.35499172
Transfer From147809632022-05-15 16:20:511271 days ago1652631651IN
0x25e3E4d3...581C9cC26
0 ETH0.0050090557.73590287
Withdraw147147662022-05-05 3:01:241281 days ago1651719684IN
0x25e3E4d3...581C9cC26
0 ETH0.001845860.84548035
Mint Public Sale147093882022-05-04 6:34:461282 days ago1651646086IN
0x25e3E4d3...581C9cC26
0.05 ETH0.0103113626.86755845
Mint Public Sale145965492022-04-16 13:15:531300 days ago1650114953IN
0x25e3E4d3...581C9cC26
0.05 ETH0.0068572918
Transfer From145904702022-04-15 14:25:511301 days ago1650032751IN
0x25e3E4d3...581C9cC26
0 ETH0.0049224152.23275336
Mint Public Sale145411632022-04-07 21:21:171309 days ago1649366477IN
0x25e3E4d3...581C9cC26
0.05 ETH0.0116732631
Withdraw143563582022-03-10 2:23:461337 days ago1646879026IN
0x25e3E4d3...581C9cC26
0 ETH0.0010361734.15655985
Mint Public Sale141440102022-02-05 5:09:041370 days ago1644037744IN
0x25e3E4d3...581C9cC26
0.05 ETH0.0257135967
Mint Public Sale141439972022-02-05 5:06:361370 days ago1644037596IN
0x25e3E4d3...581C9cC26
0.05 ETH0.020668154.58092952
Set Public Sale ...141422782022-02-04 22:25:531371 days ago1644013553IN
0x25e3E4d3...581C9cC26
0 ETH0.0094977206.79094741
Add To Private S...141422172022-02-04 22:11:461371 days ago1644012706IN
0x25e3E4d3...581C9cC26
0 ETH0.01883963266.72188173
Add To Private S...140310892022-01-18 18:15:251388 days ago1642529725IN
0x25e3E4d3...581C9cC26
0 ETH0.00753526106.68043638
Transfer From139682662022-01-09 1:11:551397 days ago1641690715IN
0x25e3E4d3...581C9cC26
0 ETH0.0066997479.79873591
Mint Private Sal...139552182022-01-07 0:52:091399 days ago1641516729IN
0x25e3E4d3...581C9cC26
0.025 ETH0.08664614225.65039289
Add To Private S...139534742022-01-06 18:18:481400 days ago1641493128IN
0x25e3E4d3...581C9cC26
0 ETH0.00709415100.43544294
Mint Early Acces...139435352022-01-05 5:22:141401 days ago1641360134IN
0x25e3E4d3...581C9cC26
0 ETH0.0373132797.27358695
Add To Private S...139418522022-01-04 23:03:241402 days ago1641337404IN
0x25e3E4d3...581C9cC26
0 ETH0.01597301114.40184698
Mint Early Acces...139418062022-01-04 22:53:491402 days ago1641336829IN
0x25e3E4d3...581C9cC26
0 ETH0.05123195132.50044028
Mint Early Acces...139407762022-01-04 19:12:321402 days ago1641323552IN
0x25e3E4d3...581C9cC26
0 ETH0.07071253181.31418181
Mint Private Sal...139374392022-01-04 6:43:111402 days ago1641278591IN
0x25e3E4d3...581C9cC26
0.025 ETH0.0309926680.72351097
Add To Private S...139357262022-01-04 0:17:571402 days ago1641255477IN
0x25e3E4d3...581C9cC26
0 ETH0.0110493994.74539424
Mint Early Acces...139265172022-01-02 14:24:061404 days ago1641133446IN
0x25e3E4d3...581C9cC26
0 ETH0.0212249955.27701604
Add To Early Acc...139242932022-01-02 6:00:451404 days ago1641103245IN
0x25e3E4d3...581C9cC26
0 ETH0.0063159163.0671146
View all transactions

Latest 23 internal transactions

Advanced mode:
Parent Transaction Hash Method Block
From
To
-147147662022-05-05 3:01:241281 days ago1651719684
0x25e3E4d3...581C9cC26
0.15 ETH
-147093882022-05-04 6:34:461282 days ago1651646086
0x25e3E4d3...581C9cC26
 Contract Creation0 ETH
-145965492022-04-16 13:15:531300 days ago1650114953
0x25e3E4d3...581C9cC26
 Contract Creation0 ETH
-145411632022-04-07 21:21:171309 days ago1649366477
0x25e3E4d3...581C9cC26
 Contract Creation0 ETH
-143563582022-03-10 2:23:461337 days ago1646879026
0x25e3E4d3...581C9cC26
0.15 ETH
-141440102022-02-05 5:09:041370 days ago1644037744
0x25e3E4d3...581C9cC26
 Contract Creation0 ETH
-141439972022-02-05 5:06:361370 days ago1644037596
0x25e3E4d3...581C9cC26
 Contract Creation0 ETH
-139552182022-01-07 0:52:091399 days ago1641516729
0x25e3E4d3...581C9cC26
 Contract Creation0 ETH
-139435352022-01-05 5:22:141401 days ago1641360134
0x25e3E4d3...581C9cC26
 Contract Creation0 ETH
-139418062022-01-04 22:53:491402 days ago1641336829
0x25e3E4d3...581C9cC26
 Contract Creation0 ETH
-139407762022-01-04 19:12:321402 days ago1641323552
0x25e3E4d3...581C9cC26
 Contract Creation0 ETH
-139374392022-01-04 6:43:111402 days ago1641278591
0x25e3E4d3...581C9cC26
 Contract Creation0 ETH
-139265172022-01-02 14:24:061404 days ago1641133446
0x25e3E4d3...581C9cC26
 Contract Creation0 ETH
-139236742022-01-02 3:44:231404 days ago1641095063
0x25e3E4d3...581C9cC26
 Contract Creation0 ETH
-139114552021-12-31 6:12:161406 days ago1640931136
0x25e3E4d3...581C9cC26
 Contract Creation0 ETH
-138907292021-12-28 1:13:501409 days ago1640654030
0x25e3E4d3...581C9cC26
 Contract Creation0 ETH
-138827202021-12-26 19:34:031411 days ago1640547243
0x25e3E4d3...581C9cC26
 Contract Creation0 ETH
-138825842021-12-26 19:09:051411 days ago1640545745
0x25e3E4d3...581C9cC26
 Contract Creation0 ETH
-138732262021-12-25 8:28:501412 days ago1640420930
0x25e3E4d3...581C9cC26
 Contract Creation0 ETH
-138706462021-12-24 22:40:101413 days ago1640385610
0x25e3E4d3...581C9cC26
 Contract Creation0 ETH
-138705922021-12-24 22:27:521413 days ago1640384872
0x25e3E4d3...581C9cC26
 Contract Creation0 ETH
-138705882021-12-24 22:26:471413 days ago1640384807
0x25e3E4d3...581C9cC26
 Contract Creation0 ETH
-138705852021-12-24 22:26:091413 days ago1640384769
0x25e3E4d3...581C9cC26
 Contract Creation0 ETH
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Pixelations

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
No with 2000 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@0xsequence/sstore2/contracts/SSTORE2.sol";
import "./Interfaces/IPixelationsRenderer.sol";

/*

    ██████╗░██╗██╗░░██╗███████╗██╗░░░░░░█████╗░████████╗██╗░█████╗░███╗░░██╗░██████╗
    ██╔══██╗██║╚██╗██╔╝██╔════╝██║░░░░░██╔══██╗╚══██╔══╝██║██╔══██╗████╗░██║██╔════╝
    ██████╔╝██║░╚███╔╝░█████╗░░██║░░░░░███████║░░░██║░░░██║██║░░██║██╔██╗██║╚█████╗░
    ██╔═══╝░██║░██╔██╗░██╔══╝░░██║░░░░░██╔══██║░░░██║░░░██║██║░░██║██║╚████║░╚═══██╗
    ██║░░░░░██║██╔╝╚██╗███████╗███████╗██║░░██║░░░██║░░░██║╚█████╔╝██║░╚███║██████╔╝
    ╚═╝░░░░░╚═╝╚═╝░░╚═╝╚══════╝╚══════╝╚═╝░░╚═╝░░░╚═╝░░░╚═╝░╚════╝░╚═╝░░╚══╝╚═════╝░


    What are Pixelations?

    Pixelations are an NFT collection of 32x32 pixelated images. There are 3,232 Pixelations,
    each 100% stored and rendered on-chain.

    For this collection, we took a unique approach. Rather than designing the art ourselves,
    we are giving the minter the ability to provide the art. This image could be anything:
    an IRL photo, a painting, or a JPEG pulled off the internet.

    How does it work?

    Upon minting, we perform a number of image processing steps in order to viably store your
    image on chain, and also reduce minting gas fees as much as possible. At a high level we
    do the following off chain:

    1. Convert the image into 32x32 pixels.

    2. Extract the 32 colors that best represent the image via k-means clustering.

    3. Compress the image via bit-packing since we now only need 5-bits to represent it's 32 colors.

    After these off chain steps, your image is roughly 700 bytes of data that we store in
    our custom ERC-721 smart contract. When sites like OpenSea attempt to fetch your
    Pixelation's metadata and image, our contract renders an SVG at run-time.

    ----------------------------------------------------------------------------

    Special shoutout to Chainrunners and Blitmap for the inspiration and help.
    We used a lot of the same techniques in order to perform efficient rendering.
*/

contract Pixelations is ERC721Enumerable, Ownable, ReentrancyGuard {
    uint256 public MAX_TOKENS = 3232;
    address public renderingContractAddress;

    mapping(address => uint256) public earlyAccessMintsAllowed;

    mapping(address => uint256) public privateSaleMintsAllowed;
    uint256 private constant PRIVATE_SALE_MINT_PRICE = 0.025 ether;

    uint256 public publicSaleStartTimestamp;
    uint256 private constant PUBLIC_SALE_MINT_PRICE = 0.05 ether;

    uint256 public numberOfMints;
    uint256 private MAX_PIXEL_DATA_LENGTH = 640;
    uint256 private MAX_COLOR_DATA_LENGTH = 96;
    uint256 private MAX_TOKEN_DATA_LENGTH = MAX_PIXEL_DATA_LENGTH + MAX_COLOR_DATA_LENGTH;
    address[] private _tokenDatas;

    bool public mintingCompleteAndValid;

    constructor() ERC721("Pixelations", "PIX") {}

    modifier whenPublicSaleActive() {
        require(isPublicSaleOpen(), "Public sale not open");
        _;
    }

    function isPublicSaleOpen() public view returns (bool) {
        return publicSaleStartTimestamp != 0 && block.timestamp >= publicSaleStartTimestamp;
    }

    function setPublicSaleStartTimestamp(uint256 timestamp) external onlyOwner {
        publicSaleStartTimestamp = timestamp;
    }

    function mintEarlyAccess(bytes memory tokenData)
        external
        payable
        nonReentrant
        returns (uint256)
    {
        require(getRemainingEarlyAccessMints(msg.sender) > 0, "Address has no more early access mints remaining.");
        earlyAccessMintsAllowed[msg.sender]--;
        return _mintNewToken(tokenData);
    }

    function mintPrivateSale(bytes memory tokenData)
        external
        payable
        nonReentrant
        returns (uint256)
    {
        require(getRemainingPrivateSaleMints(msg.sender) > 0, "Address has no more private sale mints remaining.");
        require(PRIVATE_SALE_MINT_PRICE == msg.value, "Incorrect amount of ether sent.");
        privateSaleMintsAllowed[msg.sender]--;
        return _mintNewToken(tokenData);
    }

    function mintPublicSale(bytes memory tokenData)
        external
        payable
        nonReentrant
        whenPublicSaleActive
        returns (uint256)
    {
        require(PUBLIC_SALE_MINT_PRICE == msg.value, "Incorrect amount of ether sent.");
        return _mintNewToken(tokenData);
    }

    // Technically any set of bytes of length 736 is a valid Pixelation.
    //
    // The first 640 bytes represent each pixel's bitmap. There are 32 colors so we
    // represent each pixel as a 5 bit index into an array of 32 colors.
    //
    // The next 96 bytes represent 32 colors. Each color is a 3 byte RGB.
    function _mintNewToken(bytes memory tokenData) internal returns (uint256) {
        require(tokenData.length == MAX_TOKEN_DATA_LENGTH, "tokenData must be 736 bytes.");
        require(numberOfMints < MAX_TOKENS, "All Pixelations have been minted.");

        _tokenDatas.push(SSTORE2.write(tokenData));

        uint256 newItemId = numberOfMints + 1;

        _safeMint(msg.sender, newItemId);
        numberOfMints++;

        return newItemId;
    }

    function getRemainingEarlyAccessMints(address addr) public view returns (uint256) {
        return earlyAccessMintsAllowed[addr];
    }

    function addToEarlyAccessList(address[] memory toEarlyAccessList, uint256 mintsAllowed) external onlyOwner {
        for (uint256 i = 0; i < toEarlyAccessList.length; i++) {
            earlyAccessMintsAllowed[toEarlyAccessList[i]] = mintsAllowed;
        }
    }

    function getRemainingPrivateSaleMints(address addr) public view returns (uint256) {
        return privateSaleMintsAllowed[addr];
    }

    function addToPrivateSaleList(address[] memory toPrivateSaleList, uint256 mintsAllowed) external onlyOwner {
        for (uint256 i = 0; i < toPrivateSaleList.length; i++) {
            privateSaleMintsAllowed[toPrivateSaleList[i]] = mintsAllowed;
        }
    }

    // Hopefully we don't have to use this. But as a safeguard for if somebody needs to change their photo
    // we have the ability to override the token data. Once all tokens are minted and verified to be valid, we can close
    // off this functionality with: setMintingCompleteAndValid()
    function overwriteExistingTokenData(
        uint256 tokenId,
        bytes memory tokenData
    ) external onlyOwner {
        require(tokenId >= 1, "Invalid tokenId.");
        require(tokenId <= numberOfMints, "Token hasn't been minted yet.");
        require(tokenData.length == MAX_TOKEN_DATA_LENGTH, "tokenData must be 736 bytes.");
        require(!mintingCompleteAndValid, "You are not allowed to overwrite existing token data anymore.");

        uint256 tokenIndex = tokenId - 1;
        _tokenDatas[tokenIndex] = SSTORE2.write(tokenData);
    }

    function setMintingCompleteAndValid() external onlyOwner {
        mintingCompleteAndValid = true;
    }

    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        if (renderingContractAddress == address(0)) {
            return '';
        }

        IPixelationsRenderer renderer = IPixelationsRenderer(renderingContractAddress);
        return renderer.tokenURI(tokenId, tokenDataForToken(tokenId));
    }

    // Handy function for only rendering the svg.
    function tokenSVG(uint256 tokenId) public view returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        if (renderingContractAddress == address(0)) {
            return '';
        }

        IPixelationsRenderer renderer = IPixelationsRenderer(renderingContractAddress);
        return renderer.tokenSVG(tokenDataForToken(tokenId));
    }

    function tokenDataForToken(uint256 tokenId) public view returns (bytes memory) {
        return SSTORE2.read(_tokenDatas[tokenId-1]);
    }

    function setRenderingContractAddress(address _renderingContractAddress) public onlyOwner {
        renderingContractAddress = _renderingContractAddress;
    }

    receive() external payable {}

    function withdraw() public onlyOwner {
        (bool success, ) = msg.sender.call{value: address(this).balance}("");
        require(success, "Withdrawal failed");
    }
}

// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;

interface IPixelationsRenderer {
    function tokenURI(uint256 tokenId, bytes memory tokenData) external pure returns (string memory);
    function tokenSVG(bytes memory tokenData) external pure returns (string memory);
}

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 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);
            }
        }
    }
}

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

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

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

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

File 11 of 17 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

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

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;


library Bytecode {
  error InvalidCodeAtRange(uint256 _size, uint256 _start, uint256 _end);

  /**
    @notice Generate a creation code that results on a contract with `_code` as bytecode
    @param _code The returning value of the resulting `creationCode`
    @return creationCode (constructor) for new contract
  */
  function creationCodeFor(bytes memory _code) internal pure returns (bytes memory) {
    /*
      0x00    0x63         0x63XXXXXX  PUSH4 _code.length  size
      0x01    0x80         0x80        DUP1                size size
      0x02    0x60         0x600e      PUSH1 14            14 size size
      0x03    0x60         0x6000      PUSH1 00            0 14 size size
      0x04    0x39         0x39        CODECOPY            size
      0x05    0x60         0x6000      PUSH1 00            0 size
      0x06    0xf3         0xf3        RETURN
      <CODE>
    */

    return abi.encodePacked(
      hex"63",
      uint32(_code.length),
      hex"80_60_0E_60_00_39_60_00_F3",
      _code
    );
  }

  /**
    @notice Returns the size of the code on a given address
    @param _addr Address that may or may not contain code
    @return size of the code on the given `_addr`
  */
  function codeSize(address _addr) internal view returns (uint256 size) {
    assembly { size := extcodesize(_addr) }
  }

  /**
    @notice Returns the code of a given address
    @dev It will fail if `_end < _start`
    @param _addr Address that may or may not contain code
    @param _start number of bytes of code to skip on read
    @param _end index before which to end extraction
    @return oCode read from `_addr` deployed bytecode

    Forked from: https://gist.github.com/KardanovIR/fe98661df9338c842b4a30306d507fbd
  */
  function codeAt(address _addr, uint256 _start, uint256 _end) internal view returns (bytes memory oCode) {
    uint256 csize = codeSize(_addr);
    if (csize == 0) return bytes("");

    if (_start > csize) return bytes("");
    if (_end < _start) revert InvalidCodeAtRange(csize, _start, _end); 

    unchecked {
      uint256 reqSize = _end - _start;
      uint256 maxSize = csize - _start;

      uint256 size = maxSize < reqSize ? maxSize : reqSize;

      assembly {
        // allocate output byte array - this could also be done without assembly
        // by using o_code = new bytes(size)
        oCode := mload(0x40)
        // new "memory end" including padding
        mstore(0x40, add(oCode, and(add(add(size, add(_start, 0x20)), 0x1f), not(0x1f))))
        // store length in memory
        mstore(oCode, size)
        // actually retrieve the code, this needs assembly
        extcodecopy(_addr, add(oCode, 0x20), _start, size)
      }
    }
  }
}

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./utils/Bytecode.sol";

/**
  @title A key-value storage with auto-generated keys for storing chunks of data with a lower write & read cost.
  @author Agustin Aguilar <[email protected]>

  Readme: https://github.com/0xsequence/sstore2#readme
*/
library SSTORE2 {
  error WriteError();

  /**
    @notice Stores `_data` and returns `pointer` as key for later retrieval
    @dev The pointer is a contract address with `_data` as code
    @param _data to be written
    @return pointer Pointer to the written `_data`
  */
  function write(bytes memory _data) internal returns (address pointer) {
    // Append 00 to _data so contract can't be called
    // Build init code
    bytes memory code = Bytecode.creationCodeFor(
      abi.encodePacked(
        hex'00',
        _data
      )
    );

    // Deploy contract using create
    assembly { pointer := create(0, add(code, 32), mload(code)) }

    // Address MUST be non-zero
    if (pointer == address(0)) revert WriteError();
  }

  /**
    @notice Reads the contents of the `_pointer` code as data, skips the first byte 
    @dev The function is intended for reading pointers generated by `write`
    @param _pointer to be read
    @return data read from `_pointer` contract
  */
  function read(address _pointer) internal view returns (bytes memory) {
    return Bytecode.codeAt(_pointer, 1, type(uint256).max);
  }

  /**
    @notice Reads the contents of the `_pointer` code as data, skips the first byte 
    @dev The function is intended for reading pointers generated by `write`
    @param _pointer to be read
    @param _start number of bytes to skip
    @return data read from `_pointer` contract
  */
  function read(address _pointer, uint256 _start) internal view returns (bytes memory) {
    return Bytecode.codeAt(_pointer, _start + 1, type(uint256).max);
  }

  /**
    @notice Reads the contents of the `_pointer` code as data, skips the first byte 
    @dev The function is intended for reading pointers generated by `write`
    @param _pointer to be read
    @param _start number of bytes to skip
    @param _end index before which to end extraction
    @return data read from `_pointer` contract
  */
  function read(address _pointer, uint256 _start, uint256 _end) internal view returns (bytes memory) {
    return Bytecode.codeAt(_pointer, _start + 1, _end + 1);
  }
}

Settings
{
  "remappings": [],
  "optimizer": {
    "details": {
      "constantOptimizer": true,
      "cse": true,
      "deduplicate": true,
      "inliner": true,
      "jumpdestRemover": true,
      "orderLiterals": true,
      "peephole": true,
      "yul": true,
      "yulDetails": {
        "optimizerSteps": "dhfoDgvulfnTUtnIf",
        "stackAllocation": true
      }
    },
    "runs": 2000
  },
  "evmVersion": "london",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"_size","type":"uint256"},{"internalType":"uint256","name":"_start","type":"uint256"},{"internalType":"uint256","name":"_end","type":"uint256"}],"name":"InvalidCodeAtRange","type":"error"},{"inputs":[],"name":"WriteError","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":"MAX_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"toEarlyAccessList","type":"address[]"},{"internalType":"uint256","name":"mintsAllowed","type":"uint256"}],"name":"addToEarlyAccessList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"toPrivateSaleList","type":"address[]"},{"internalType":"uint256","name":"mintsAllowed","type":"uint256"}],"name":"addToPrivateSaleList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"earlyAccessMintsAllowed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"getRemainingEarlyAccessMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"getRemainingPrivateSaleMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"isPublicSaleOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"tokenData","type":"bytes"}],"name":"mintEarlyAccess","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes","name":"tokenData","type":"bytes"}],"name":"mintPrivateSale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes","name":"tokenData","type":"bytes"}],"name":"mintPublicSale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintingCompleteAndValid","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numberOfMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"tokenData","type":"bytes"}],"name":"overwriteExistingTokenData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"privateSaleMintsAllowed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleStartTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renderingContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setMintingCompleteAndValid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"setPublicSaleStartTimestamp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_renderingContractAddress","type":"address"}],"name":"setRenderingContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenDataForToken","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenSVG","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080604052610ca0600c556102806012819055606060138190556200002491620001d3565b6014553480156200003457600080fd5b50604080518082018252600b81526a506978656c6174696f6e7360a81b6020808301918252835180850190945260038452620a092b60eb1b908401528151919291620000839160009162000117565b5080516200009990600190602084019062000117565b505050620000b6620000b0620000c160201b60201c565b620000c5565b6001600b5562000235565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001259062000204565b90600052602060002090601f01602090048101928262000149576000855562000194565b82601f106200016457805160ff191683800117855562000194565b8280016001018555821562000194579182015b828111156200019457825182559160200191906001019062000177565b50620001a2929150620001a6565b5090565b5b80821115620001a25760008155600101620001a7565b634e487b7160e01b600052601160045260246000fd5b60008219821115620001e957620001e9620001bd565b500190565b634e487b7160e01b600052602260045260246000fd5b6002810460018216806200021957607f821691505b602082108114156200022f576200022f620001ee565b50919050565b61316680620002456000396000f3fe6080604052600436106102ca5760003560e01c806370a0823111610179578063c074f412116100d6578063e985e9c51161008a578063f47c84c511610064578063f47c84c5146107bd578063fa3db487146107d3578063fb83bdfd146107f357600080fd5b8063e985e9c514610727578063ec7a81aa14610770578063f2fde38b1461079d57600080fd5b8063ce0f3f93116100bb578063ce0f3f93146106d7578063d7822c99146106f1578063e8fee1051461070757600080fd5b8063c074f41214610697578063c87b56dd146106b757600080fd5b806395d89b411161012d578063a22cb46511610112578063a22cb46514610621578063b5814e6614610641578063b88d4fde1461067757600080fd5b806395d89b41146105ec5780639bac5f7a1461060157600080fd5b80638d207f721161015e5780638d207f72146105a55780638da5cb5b146105b8578063959f7857146105d657600080fd5b806370a0823114610570578063715018a61461059057600080fd5b80633ccfd60b116102275780636352211e116101db5780636e00633d116101c05780636e00633d146105075780636e642aba1461051a5780636f65f97c1461055057600080fd5b80636352211e146104d257806364ad9df0146104f257600080fd5b80634f6ccce71161020c5780634f6ccce7146104655780635bf1e916146104855780635ce3ddc6146104b257600080fd5b80633ccfd60b1461043057806342842e0e1461044557600080fd5b806318160ddd1161027e57806323b872dd1161026357806323b872dd146103d05780632f745c59146103f05780633c1f20a61461041057600080fd5b806318160ddd1461039d5780631a6949e3146103bb57600080fd5b8063081812fc116102af578063081812fc1461032e578063095ea7b31461035b57806312b40a9f1461037d57600080fd5b806301ffc9a7146102d657806306fdde031461030c57600080fd5b366102d157005b600080fd5b3480156102e257600080fd5b506102f66102f1366004611ed8565b610806565b6040516103039190611f03565b60405180910390f35b34801561031857600080fd5b50610321610862565b6040516103039190611f6f565b34801561033a57600080fd5b5061034e610349366004611f91565b6108f4565b6040516103039190611fcc565b34801561036757600080fd5b5061037b610376366004611fee565b61094d565b005b34801561038957600080fd5b5061037b61039836600461202b565b6109d3565b3480156103a957600080fd5b506008545b6040516103039190612052565b3480156103c757600080fd5b506102f6610a2c565b3480156103dc57600080fd5b5061037b6103eb366004612060565b610a48565b3480156103fc57600080fd5b506103ae61040b366004611fee565b610a79565b34801561041c57600080fd5b5061032161042b366004611f91565b610acb565b34801561043c57600080fd5b5061037b610b07565b34801561045157600080fd5b5061037b610460366004612060565b610b9c565b34801561047157600080fd5b506103ae610480366004611f91565b610bb7565b34801561049157600080fd5b506103ae6104a036600461202b565b600e6020526000908152604090205481565b3480156104be57600080fd5b5061037b6104cd3660046121b5565b610c05565b3480156104de57600080fd5b5061034e6104ed366004611f91565b610c91565b3480156104fe57600080fd5b5061037b610cc6565b6103ae610515366004612288565b610cff565b34801561052657600080fd5b506103ae61053536600461202b565b6001600160a01b03166000908152600e602052604090205490565b34801561055c57600080fd5b5061037b61056b3660046122c3565b610db0565b34801561057c57600080fd5b506103ae61058b36600461202b565b610ec0565b34801561059c57600080fd5b5061037b610f04565b6103ae6105b3366004612288565b610f3a565b3480156105c457600080fd5b50600a546001600160a01b031661034e565b3480156105e257600080fd5b506103ae60115481565b3480156105f857600080fd5b50610321610fac565b34801561060d57600080fd5b5061032161061c366004611f91565b610fbb565b34801561062d57600080fd5b5061037b61063c366004612324565b611099565b34801561064d57600080fd5b506103ae61065c36600461202b565b6001600160a01b03166000908152600f602052604090205490565b34801561068357600080fd5b5061037b610692366004612357565b6110a8565b3480156106a357600080fd5b50600d5461034e906001600160a01b031681565b3480156106c357600080fd5b506103216106d2366004611f91565b6110e0565b3480156106e357600080fd5b506016546102f69060ff1681565b3480156106fd57600080fd5b506103ae60105481565b34801561071357600080fd5b5061037b610722366004611f91565b611174565b34801561073357600080fd5b506102f66107423660046123d6565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561077c57600080fd5b506103ae61078b36600461202b565b600f6020526000908152604090205481565b3480156107a957600080fd5b5061037b6107b836600461202b565b6111a3565b3480156107c957600080fd5b506103ae600c5481565b3480156107df57600080fd5b5061037b6107ee3660046121b5565b6111fc565b6103ae610801366004612288565b611288565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d6300000000000000000000000000000000000000000000000000000000148061085c575061085c82611305565b92915050565b6060600080546108719061241f565b80601f016020809104026020016040519081016040528092919081815260200182805461089d9061241f565b80156108ea5780601f106108bf576101008083540402835291602001916108ea565b820191906000526020600020905b8154815290600101906020018083116108cd57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166109315760405162461bcd60e51b8152600401610928906124a0565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061095882610c91565b9050806001600160a01b0316836001600160a01b0316141561098c5760405162461bcd60e51b815260040161092890612508565b336001600160a01b03821614806109a857506109a88133610742565b6109c45760405162461bcd60e51b815260040161092890612570565b6109ce83836113e8565b505050565b600a546001600160a01b031633146109fd5760405162461bcd60e51b8152600401610928906125b2565b600d805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000601054600014158015610a4357506010544210155b905090565b610a523382611463565b610a6e5760405162461bcd60e51b81526004016109289061261a565b6109ce838383611515565b6000610a8483610ec0565b8210610aa25760405162461bcd60e51b815260040161092890612682565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b606061085c6015610add6001856126a8565b81548110610aed57610aed6126bf565b6000918252602090912001546001600160a01b031661164f565b600a546001600160a01b03163314610b315760405162461bcd60e51b8152600401610928906125b2565b604051600090339047908381818185875af1925050503d8060008114610b73576040519150601f19603f3d011682016040523d82523d6000602084013e610b78565b606091505b5050905080610b995760405162461bcd60e51b815260040161092890612707565b50565b6109ce838383604051806020016040528060008152506110a8565b6000610bc260085490565b8210610be05760405162461bcd60e51b81526004016109289061276f565b60088281548110610bf357610bf36126bf565b90600052602060002001549050919050565b600a546001600160a01b03163314610c2f5760405162461bcd60e51b8152600401610928906125b2565b60005b82518110156109ce5781600e6000858481518110610c5257610c526126bf565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020819055508080610c899061277f565b915050610c32565b6000818152600260205260408120546001600160a01b03168061085c5760405162461bcd60e51b8152600401610928906127f2565b600a546001600160a01b03163314610cf05760405162461bcd60e51b8152600401610928906125b2565b6016805460ff19166001179055565b60006002600b541415610d245760405162461bcd60e51b815260040161092890612834565b6002600b55336000908152600f602052604081205411610d565760405162461bcd60e51b81526004016109289061289c565b346658d15e1762800014610d7c5760405162461bcd60e51b8152600401610928906128de565b336000908152600f60205260408120805491610d97836128ee565b9190505550610da58261165f565b6001600b5592915050565b600a546001600160a01b03163314610dda5760405162461bcd60e51b8152600401610928906125b2565b6001821015610dfb5760405162461bcd60e51b815260040161092890612937565b601154821115610e1d5760405162461bcd60e51b815260040161092890612979565b601454815114610e3f5760405162461bcd60e51b8152600401610928906129bb565b60165460ff1615610e625760405162461bcd60e51b815260040161092890612a23565b6000610e6f6001846126a8565b9050610e7a82611726565b60158281548110610e8d57610e8d6126bf565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550505050565b60006001600160a01b038216610ee85760405162461bcd60e51b815260040161092890612a8b565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b03163314610f2e5760405162461bcd60e51b8152600401610928906125b2565b610f3860006117a4565b565b60006002600b541415610f5f5760405162461bcd60e51b815260040161092890612834565b6002600b55336000908152600e602052604081205411610f915760405162461bcd60e51b815260040161092890612af3565b336000908152600e60205260408120805491610d97836128ee565b6060600180546108719061241f565b6000818152600260205260409020546060906001600160a01b0316610ff25760405162461bcd60e51b815260040161092890612b5b565b600d546001600160a01b031661101657505060408051602081019091526000815290565b600d546001600160a01b031680631dfdde1b61103185610acb565b6040518263ffffffff1660e01b815260040161104d9190611f6f565b600060405180830381865afa15801561106a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526110929190810190612bc3565b9392505050565b6110a4338383611803565b5050565b6110b23383611463565b6110ce5760405162461bcd60e51b81526004016109289061261a565b6110da848484846118a6565b50505050565b6000818152600260205260409020546060906001600160a01b03166111175760405162461bcd60e51b815260040161092890612b5b565b600d546001600160a01b031661113b57505060408051602081019091526000815290565b600d546001600160a01b0316806397b448e28461115781610acb565b6040518363ffffffff1660e01b815260040161104d929190612bfe565b600a546001600160a01b0316331461119e5760405162461bcd60e51b8152600401610928906125b2565b601055565b600a546001600160a01b031633146111cd5760405162461bcd60e51b8152600401610928906125b2565b6001600160a01b0381166111f35760405162461bcd60e51b815260040161092890612c76565b610b99816117a4565b600a546001600160a01b031633146112265760405162461bcd60e51b8152600401610928906125b2565b60005b82518110156109ce5781600f6000858481518110611249576112496126bf565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000208190555080806112809061277f565b915050611229565b60006002600b5414156112ad5760405162461bcd60e51b815260040161092890612834565b6002600b556112ba610a2c565b6112d65760405162461bcd60e51b815260040161092890612cb8565b3466b1a2bc2ec50000146112fc5760405162461bcd60e51b8152600401610928906128de565b610da58261165f565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061139857507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061085c57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff0000000000000000000000000000000000000000000000000000000083161461085c565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038416908117909155819061142a82610c91565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166114975760405162461bcd60e51b815260040161092890612d20565b60006114a283610c91565b9050806001600160a01b0316846001600160a01b031614806114dd5750836001600160a01b03166114d2846108f4565b6001600160a01b0316145b8061150d57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661152882610c91565b6001600160a01b03161461154e5760405162461bcd60e51b815260040161092890612d88565b6001600160a01b0382166115745760405162461bcd60e51b815260040161092890612df0565b61157f8383836118d9565b61158a6000826113e8565b6001600160a01b03831660009081526003602052604081208054600192906115b39084906126a8565b90915550506001600160a01b03821660009081526003602052604081208054600192906115e1908490612e00565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b606061085c826001600019611991565b60006014548251146116835760405162461bcd60e51b8152600401610928906129bb565b600c54601154106116a65760405162461bcd60e51b815260040161092890612e70565b60156116b183611726565b815460018082018455600093845260208420909101805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0393909316929092179091556011546116fe91612e00565b905061170a3382611a52565b6011805490600061171a8361277f565b90915550909392505050565b6000806117518360405160200161173d9190612ead565b604051602081830303815290604052611a6c565b90508051602082016000f091506001600160a01b03821661179e576040517f08d4abb600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50919050565b600a80546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156118355760405162461bcd60e51b815260040161092890612ef4565b6001600160a01b0383811660008181526005602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190611899908590611f03565b60405180910390a3505050565b6118b1848484611515565b6118bd84848484611a98565b6110da5760405162461bcd60e51b815260040161092890612f5c565b6001600160a01b0383166119345761192f81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611957565b816001600160a01b0316836001600160a01b031614611957576119578382611be0565b6001600160a01b03821661196e576109ce81611c7d565b826001600160a01b0316826001600160a01b0316146109ce576109ce8282611d2c565b6060833b806119b0575050604080516020810190915260008152611092565b808411156119ce575050604080516020810190915260008152611092565b83831015611a0e578084846040517f2c4a89fa00000000000000000000000000000000000000000000000000000000815260040161092893929190612f6c565b8383038482036000828210611a235782611a25565b815b60408051603f8a840101601f19168101909152818152955090508087602087018a3c505050509392505050565b6110a4828260405180602001604052806000815250611d70565b6060815182604051602001611a82929190612fd7565b6040516020818303038152906040529050919050565b60006001600160a01b0384163b15611bd5576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290611af5903390899088908890600401613028565b6020604051808303816000875af1925050508015611b30575060408051601f3d908101601f19168201909252611b2d91810190613077565b60015b611b8a573d808015611b5e576040519150601f19603f3d011682016040523d82523d6000602084013e611b63565b606091505b508051611b825760405162461bcd60e51b815260040161092890612f5c565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a020000000000000000000000000000000000000000000000000000000014905061150d565b506001949350505050565b60006001611bed84610ec0565b611bf791906126a8565b600083815260076020526040902054909150808214611c4a576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090611c8f906001906126a8565b60008381526009602052604081205460088054939450909284908110611cb757611cb76126bf565b906000526020600020015490508060088381548110611cd857611cd86126bf565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480611d1057611d10613098565b6001900381819060005260206000200160009055905550505050565b6000611d3783610ec0565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b611d7a8383611da3565b611d876000848484611a98565b6109ce5760405162461bcd60e51b815260040161092890612f5c565b6001600160a01b038216611dc95760405162461bcd60e51b8152600401610928906130de565b6000818152600260205260409020546001600160a01b031615611dfe5760405162461bcd60e51b815260040161092890613120565b611e0a600083836118d9565b6001600160a01b0382166000908152600360205260408120805460019290611e33908490612e00565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b7fffffffff0000000000000000000000000000000000000000000000000000000081165b8114610b9957600080fd5b803561085c81611e9e565b600060208284031215611eed57611eed600080fd5b600061150d8484611ecd565b8015155b82525050565b6020810161085c8284611ef9565b60005b83811015611f2c578181015183820152602001611f14565b838111156110da5750506000910152565b6000611f47825190565b808452602084019350611f5e818560208601611f11565b601f01601f19169290920192915050565b602080825281016110928184611f3d565b80611ec2565b803561085c81611f80565b600060208284031215611fa657611fa6600080fd5b600061150d8484611f86565b60006001600160a01b03821661085c565b611efd81611fb2565b6020810161085c8284611fc3565b611ec281611fb2565b803561085c81611fda565b6000806040838503121561200457612004600080fd5b60006120108585611fe3565b925050602061202185828601611f86565b9150509250929050565b60006020828403121561204057612040600080fd5b600061150d8484611fe3565b80611efd565b6020810161085c828461204c565b60008060006060848603121561207857612078600080fd5b60006120848686611fe3565b935050602061209586828701611fe3565b92505060406120a686828701611f86565b9150509250925092565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff821117156120ec576120ec6120b0565b6040525050565b60006120fe60405190565b905061210a82826120c6565b919050565b600067ffffffffffffffff821115612129576121296120b0565b5060209081020190565b60006121466121418461210f565b6120f3565b8381529050602080820190840283018581111561216557612165600080fd5b835b81811015612187576121798782611fe3565b835260209283019201612167565b5050509392505050565b600082601f8301126121a5576121a5600080fd5b813561150d848260208601612133565b600080604083850312156121cb576121cb600080fd5b823567ffffffffffffffff8111156121e5576121e5600080fd5b61201085828601612191565b600067ffffffffffffffff82111561220b5761220b6120b0565b601f19601f83011660200192915050565b82818337506000910152565b6000612236612141846121f1565b90508281526020810184848401111561225157612251600080fd5b61225c84828561221c565b509392505050565b600082601f83011261227857612278600080fd5b813561150d848260208601612228565b60006020828403121561229d5761229d600080fd5b813567ffffffffffffffff8111156122b7576122b7600080fd5b61150d84828501612264565b600080604083850312156122d9576122d9600080fd5b60006122e58585611f86565b925050602083013567ffffffffffffffff81111561230557612305600080fd5b61202185828601612264565b801515611ec2565b803561085c81612311565b6000806040838503121561233a5761233a600080fd5b60006123468585611fe3565b925050602061202185828601612319565b6000806000806080858703121561237057612370600080fd5b600061237c8787611fe3565b945050602061238d87828801611fe3565b935050604061239e87828801611f86565b925050606085013567ffffffffffffffff8111156123be576123be600080fd5b6123ca87828801612264565b91505092959194509250565b600080604083850312156123ec576123ec600080fd5b60006123f88585611fe3565b925050602061202185828601611fe3565b634e487b7160e01b600052602260045260246000fd5b60028104600182168061243357607f821691505b6020821081141561179e5761179e612409565b602c8152602081017f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015290505b60400190565b6020808252810161085c81612446565b60218152602081017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6581527f72000000000000000000000000000000000000000000000000000000000000006020820152905061249a565b6020808252810161085c816124b0565b60388152602081017f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020820152905061249a565b6020808252810161085c81612518565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657291019081525b60200190565b6020808252810161085c81612580565b60318152602081017f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f81527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020820152905061249a565b6020808252810161085c816125c2565b602b8152602081017f455243373231456e756d657261626c653a206f776e657220696e646578206f7581527f74206f6620626f756e64730000000000000000000000000000000000000000006020820152905061249a565b6020808252810161085c8161262a565b634e487b7160e01b600052601160045260246000fd5b6000828210156126ba576126ba612692565b500390565b634e487b7160e01b600052603260045260246000fd5b60118152602081017f5769746864726177616c206661696c6564000000000000000000000000000000815290506125ac565b6020808252810161085c816126d5565b602c8152602081017f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f81527f7574206f6620626f756e647300000000000000000000000000000000000000006020820152905061249a565b6020808252810161085c81612717565b600060001982141561279357612793612692565b5060010190565b60298152602081017f4552433732313a206f776e657220717565727920666f72206e6f6e657869737481527f656e7420746f6b656e00000000000000000000000000000000000000000000006020820152905061249a565b6020808252810161085c8161279a565b601f8152602081017f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00815290506125ac565b6020808252810161085c81612802565b60318152602081017f4164647265737320686173206e6f206d6f726520707269766174652073616c6581527f206d696e74732072656d61696e696e672e0000000000000000000000000000006020820152905061249a565b6020808252810161085c81612844565b601f8152602081017f496e636f727265637420616d6f756e74206f662065746865722073656e742e00815290506125ac565b6020808252810161085c816128ac565b6000816128fd576128fd612692565b506000190190565b60108152602081017f496e76616c696420746f6b656e49642e00000000000000000000000000000000815290506125ac565b6020808252810161085c81612905565b601d8152602081017f546f6b656e206861736e2774206265656e206d696e746564207965742e000000815290506125ac565b6020808252810161085c81612947565b601c8152602081017f746f6b656e44617461206d757374206265203733362062797465732e00000000815290506125ac565b6020808252810161085c81612989565b603d8152602081017f596f7520617265206e6f7420616c6c6f77656420746f206f766572777269746581527f206578697374696e6720746f6b656e206461746120616e796d6f72652e0000006020820152905061249a565b6020808252810161085c816129cb565b602a8152602081017f4552433732313a2062616c616e636520717565727920666f7220746865207a6581527f726f2061646472657373000000000000000000000000000000000000000000006020820152905061249a565b6020808252810161085c81612a33565b60318152602081017f4164647265737320686173206e6f206d6f7265206561726c792061636365737381527f206d696e74732072656d61696e696e672e0000000000000000000000000000006020820152905061249a565b6020808252810161085c81612a9b565b602f8152602081017f4552433732314d657461646174613a2055524920717565727920666f72206e6f81527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006020820152905061249a565b6020808252810161085c81612b03565b6000612b79612141846121f1565b905082815260208101848484011115612b9457612b94600080fd5b61225c848285611f11565b600082601f830112612bb357612bb3600080fd5b815161150d848260208601612b6b565b600060208284031215612bd857612bd8600080fd5b815167ffffffffffffffff811115612bf257612bf2600080fd5b61150d84828501612b9f565b60408101612c0c828561204c565b818103602083015261150d8184611f3d565b60268152602081017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181527f64647265737300000000000000000000000000000000000000000000000000006020820152905061249a565b6020808252810161085c81612c1e565b60148152602081017f5075626c69632073616c65206e6f74206f70656e000000000000000000000000815290506125ac565b6020808252810161085c81612c86565b602c8152602081017f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881527f697374656e7420746f6b656e00000000000000000000000000000000000000006020820152905061249a565b6020808252810161085c81612cc8565b60298152602081017f4552433732313a207472616e73666572206f6620746f6b656e2074686174206981527f73206e6f74206f776e00000000000000000000000000000000000000000000006020820152905061249a565b6020808252810161085c81612d30565b60248152602081017f4552433732313a207472616e7366657220746f20746865207a65726f2061646481527f72657373000000000000000000000000000000000000000000000000000000006020820152905061249a565b6020808252810161085c81612d98565b60008219821115612e1357612e13612692565b500190565b60218152602081017f416c6c20506978656c6174696f6e732068617665206265656e206d696e74656481527f2e000000000000000000000000000000000000000000000000000000000000006020820152905061249a565b6020808252810161085c81612e18565b600081525b60010190565b6000612e95825190565b612ea3818560208601611f11565b9290920192915050565b612eb681612e80565b905061085c8183612e8b565b60198152602081017f4552433732313a20617070726f766520746f2063616c6c657200000000000000815290506125ac565b6020808252810161085c81612ec2565b60328152602081017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527f63656976657220696d706c656d656e74657200000000000000000000000000006020820152905061249a565b6020808252810161085c81612f04565b60608101612f7a828661204c565b612f87602083018561204c565b61150d604083018461204c565b7f63000000000000000000000000000000000000000000000000000000000000008152612e85565b600061085c8260e01b90565b611efd63ffffffff8216612fbc565b612fe081612f94565b9050612fec8184612fc8565b60040161301c817f80600e6000396000f30000000000000000000000000000000000000000000000815260090190565b90506110928183612e8b565b608081016130368287611fc3565b6130436020830186611fc3565b613050604083018561204c565b81810360608301526130628184611f3d565b9695505050505050565b805161085c81611e9e565b60006020828403121561308c5761308c600080fd5b600061150d848461306c565b634e487b7160e01b600052603160045260246000fd5b60208082527f4552433732313a206d696e7420746f20746865207a65726f206164647265737391019081526125ac565b6020808252810161085c816130ae565b601c8152602081017f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000815290506125ac565b6020808252810161085c816130ee56fea2646970667358221220a2b82df00d4dc6b5e72636debe13565d01e6b2cfae7c3eaf5437485ada43604e64736f6c634300080b0033

Deployed Bytecode

0x6080604052600436106102ca5760003560e01c806370a0823111610179578063c074f412116100d6578063e985e9c51161008a578063f47c84c511610064578063f47c84c5146107bd578063fa3db487146107d3578063fb83bdfd146107f357600080fd5b8063e985e9c514610727578063ec7a81aa14610770578063f2fde38b1461079d57600080fd5b8063ce0f3f93116100bb578063ce0f3f93146106d7578063d7822c99146106f1578063e8fee1051461070757600080fd5b8063c074f41214610697578063c87b56dd146106b757600080fd5b806395d89b411161012d578063a22cb46511610112578063a22cb46514610621578063b5814e6614610641578063b88d4fde1461067757600080fd5b806395d89b41146105ec5780639bac5f7a1461060157600080fd5b80638d207f721161015e5780638d207f72146105a55780638da5cb5b146105b8578063959f7857146105d657600080fd5b806370a0823114610570578063715018a61461059057600080fd5b80633ccfd60b116102275780636352211e116101db5780636e00633d116101c05780636e00633d146105075780636e642aba1461051a5780636f65f97c1461055057600080fd5b80636352211e146104d257806364ad9df0146104f257600080fd5b80634f6ccce71161020c5780634f6ccce7146104655780635bf1e916146104855780635ce3ddc6146104b257600080fd5b80633ccfd60b1461043057806342842e0e1461044557600080fd5b806318160ddd1161027e57806323b872dd1161026357806323b872dd146103d05780632f745c59146103f05780633c1f20a61461041057600080fd5b806318160ddd1461039d5780631a6949e3146103bb57600080fd5b8063081812fc116102af578063081812fc1461032e578063095ea7b31461035b57806312b40a9f1461037d57600080fd5b806301ffc9a7146102d657806306fdde031461030c57600080fd5b366102d157005b600080fd5b3480156102e257600080fd5b506102f66102f1366004611ed8565b610806565b6040516103039190611f03565b60405180910390f35b34801561031857600080fd5b50610321610862565b6040516103039190611f6f565b34801561033a57600080fd5b5061034e610349366004611f91565b6108f4565b6040516103039190611fcc565b34801561036757600080fd5b5061037b610376366004611fee565b61094d565b005b34801561038957600080fd5b5061037b61039836600461202b565b6109d3565b3480156103a957600080fd5b506008545b6040516103039190612052565b3480156103c757600080fd5b506102f6610a2c565b3480156103dc57600080fd5b5061037b6103eb366004612060565b610a48565b3480156103fc57600080fd5b506103ae61040b366004611fee565b610a79565b34801561041c57600080fd5b5061032161042b366004611f91565b610acb565b34801561043c57600080fd5b5061037b610b07565b34801561045157600080fd5b5061037b610460366004612060565b610b9c565b34801561047157600080fd5b506103ae610480366004611f91565b610bb7565b34801561049157600080fd5b506103ae6104a036600461202b565b600e6020526000908152604090205481565b3480156104be57600080fd5b5061037b6104cd3660046121b5565b610c05565b3480156104de57600080fd5b5061034e6104ed366004611f91565b610c91565b3480156104fe57600080fd5b5061037b610cc6565b6103ae610515366004612288565b610cff565b34801561052657600080fd5b506103ae61053536600461202b565b6001600160a01b03166000908152600e602052604090205490565b34801561055c57600080fd5b5061037b61056b3660046122c3565b610db0565b34801561057c57600080fd5b506103ae61058b36600461202b565b610ec0565b34801561059c57600080fd5b5061037b610f04565b6103ae6105b3366004612288565b610f3a565b3480156105c457600080fd5b50600a546001600160a01b031661034e565b3480156105e257600080fd5b506103ae60115481565b3480156105f857600080fd5b50610321610fac565b34801561060d57600080fd5b5061032161061c366004611f91565b610fbb565b34801561062d57600080fd5b5061037b61063c366004612324565b611099565b34801561064d57600080fd5b506103ae61065c36600461202b565b6001600160a01b03166000908152600f602052604090205490565b34801561068357600080fd5b5061037b610692366004612357565b6110a8565b3480156106a357600080fd5b50600d5461034e906001600160a01b031681565b3480156106c357600080fd5b506103216106d2366004611f91565b6110e0565b3480156106e357600080fd5b506016546102f69060ff1681565b3480156106fd57600080fd5b506103ae60105481565b34801561071357600080fd5b5061037b610722366004611f91565b611174565b34801561073357600080fd5b506102f66107423660046123d6565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561077c57600080fd5b506103ae61078b36600461202b565b600f6020526000908152604090205481565b3480156107a957600080fd5b5061037b6107b836600461202b565b6111a3565b3480156107c957600080fd5b506103ae600c5481565b3480156107df57600080fd5b5061037b6107ee3660046121b5565b6111fc565b6103ae610801366004612288565b611288565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d6300000000000000000000000000000000000000000000000000000000148061085c575061085c82611305565b92915050565b6060600080546108719061241f565b80601f016020809104026020016040519081016040528092919081815260200182805461089d9061241f565b80156108ea5780601f106108bf576101008083540402835291602001916108ea565b820191906000526020600020905b8154815290600101906020018083116108cd57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166109315760405162461bcd60e51b8152600401610928906124a0565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061095882610c91565b9050806001600160a01b0316836001600160a01b0316141561098c5760405162461bcd60e51b815260040161092890612508565b336001600160a01b03821614806109a857506109a88133610742565b6109c45760405162461bcd60e51b815260040161092890612570565b6109ce83836113e8565b505050565b600a546001600160a01b031633146109fd5760405162461bcd60e51b8152600401610928906125b2565b600d805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000601054600014158015610a4357506010544210155b905090565b610a523382611463565b610a6e5760405162461bcd60e51b81526004016109289061261a565b6109ce838383611515565b6000610a8483610ec0565b8210610aa25760405162461bcd60e51b815260040161092890612682565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b606061085c6015610add6001856126a8565b81548110610aed57610aed6126bf565b6000918252602090912001546001600160a01b031661164f565b600a546001600160a01b03163314610b315760405162461bcd60e51b8152600401610928906125b2565b604051600090339047908381818185875af1925050503d8060008114610b73576040519150601f19603f3d011682016040523d82523d6000602084013e610b78565b606091505b5050905080610b995760405162461bcd60e51b815260040161092890612707565b50565b6109ce838383604051806020016040528060008152506110a8565b6000610bc260085490565b8210610be05760405162461bcd60e51b81526004016109289061276f565b60088281548110610bf357610bf36126bf565b90600052602060002001549050919050565b600a546001600160a01b03163314610c2f5760405162461bcd60e51b8152600401610928906125b2565b60005b82518110156109ce5781600e6000858481518110610c5257610c526126bf565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020819055508080610c899061277f565b915050610c32565b6000818152600260205260408120546001600160a01b03168061085c5760405162461bcd60e51b8152600401610928906127f2565b600a546001600160a01b03163314610cf05760405162461bcd60e51b8152600401610928906125b2565b6016805460ff19166001179055565b60006002600b541415610d245760405162461bcd60e51b815260040161092890612834565b6002600b55336000908152600f602052604081205411610d565760405162461bcd60e51b81526004016109289061289c565b346658d15e1762800014610d7c5760405162461bcd60e51b8152600401610928906128de565b336000908152600f60205260408120805491610d97836128ee565b9190505550610da58261165f565b6001600b5592915050565b600a546001600160a01b03163314610dda5760405162461bcd60e51b8152600401610928906125b2565b6001821015610dfb5760405162461bcd60e51b815260040161092890612937565b601154821115610e1d5760405162461bcd60e51b815260040161092890612979565b601454815114610e3f5760405162461bcd60e51b8152600401610928906129bb565b60165460ff1615610e625760405162461bcd60e51b815260040161092890612a23565b6000610e6f6001846126a8565b9050610e7a82611726565b60158281548110610e8d57610e8d6126bf565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550505050565b60006001600160a01b038216610ee85760405162461bcd60e51b815260040161092890612a8b565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b03163314610f2e5760405162461bcd60e51b8152600401610928906125b2565b610f3860006117a4565b565b60006002600b541415610f5f5760405162461bcd60e51b815260040161092890612834565b6002600b55336000908152600e602052604081205411610f915760405162461bcd60e51b815260040161092890612af3565b336000908152600e60205260408120805491610d97836128ee565b6060600180546108719061241f565b6000818152600260205260409020546060906001600160a01b0316610ff25760405162461bcd60e51b815260040161092890612b5b565b600d546001600160a01b031661101657505060408051602081019091526000815290565b600d546001600160a01b031680631dfdde1b61103185610acb565b6040518263ffffffff1660e01b815260040161104d9190611f6f565b600060405180830381865afa15801561106a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526110929190810190612bc3565b9392505050565b6110a4338383611803565b5050565b6110b23383611463565b6110ce5760405162461bcd60e51b81526004016109289061261a565b6110da848484846118a6565b50505050565b6000818152600260205260409020546060906001600160a01b03166111175760405162461bcd60e51b815260040161092890612b5b565b600d546001600160a01b031661113b57505060408051602081019091526000815290565b600d546001600160a01b0316806397b448e28461115781610acb565b6040518363ffffffff1660e01b815260040161104d929190612bfe565b600a546001600160a01b0316331461119e5760405162461bcd60e51b8152600401610928906125b2565b601055565b600a546001600160a01b031633146111cd5760405162461bcd60e51b8152600401610928906125b2565b6001600160a01b0381166111f35760405162461bcd60e51b815260040161092890612c76565b610b99816117a4565b600a546001600160a01b031633146112265760405162461bcd60e51b8152600401610928906125b2565b60005b82518110156109ce5781600f6000858481518110611249576112496126bf565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000208190555080806112809061277f565b915050611229565b60006002600b5414156112ad5760405162461bcd60e51b815260040161092890612834565b6002600b556112ba610a2c565b6112d65760405162461bcd60e51b815260040161092890612cb8565b3466b1a2bc2ec50000146112fc5760405162461bcd60e51b8152600401610928906128de565b610da58261165f565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061139857507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061085c57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff0000000000000000000000000000000000000000000000000000000083161461085c565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038416908117909155819061142a82610c91565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166114975760405162461bcd60e51b815260040161092890612d20565b60006114a283610c91565b9050806001600160a01b0316846001600160a01b031614806114dd5750836001600160a01b03166114d2846108f4565b6001600160a01b0316145b8061150d57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661152882610c91565b6001600160a01b03161461154e5760405162461bcd60e51b815260040161092890612d88565b6001600160a01b0382166115745760405162461bcd60e51b815260040161092890612df0565b61157f8383836118d9565b61158a6000826113e8565b6001600160a01b03831660009081526003602052604081208054600192906115b39084906126a8565b90915550506001600160a01b03821660009081526003602052604081208054600192906115e1908490612e00565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b606061085c826001600019611991565b60006014548251146116835760405162461bcd60e51b8152600401610928906129bb565b600c54601154106116a65760405162461bcd60e51b815260040161092890612e70565b60156116b183611726565b815460018082018455600093845260208420909101805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0393909316929092179091556011546116fe91612e00565b905061170a3382611a52565b6011805490600061171a8361277f565b90915550909392505050565b6000806117518360405160200161173d9190612ead565b604051602081830303815290604052611a6c565b90508051602082016000f091506001600160a01b03821661179e576040517f08d4abb600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50919050565b600a80546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156118355760405162461bcd60e51b815260040161092890612ef4565b6001600160a01b0383811660008181526005602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190611899908590611f03565b60405180910390a3505050565b6118b1848484611515565b6118bd84848484611a98565b6110da5760405162461bcd60e51b815260040161092890612f5c565b6001600160a01b0383166119345761192f81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611957565b816001600160a01b0316836001600160a01b031614611957576119578382611be0565b6001600160a01b03821661196e576109ce81611c7d565b826001600160a01b0316826001600160a01b0316146109ce576109ce8282611d2c565b6060833b806119b0575050604080516020810190915260008152611092565b808411156119ce575050604080516020810190915260008152611092565b83831015611a0e578084846040517f2c4a89fa00000000000000000000000000000000000000000000000000000000815260040161092893929190612f6c565b8383038482036000828210611a235782611a25565b815b60408051603f8a840101601f19168101909152818152955090508087602087018a3c505050509392505050565b6110a4828260405180602001604052806000815250611d70565b6060815182604051602001611a82929190612fd7565b6040516020818303038152906040529050919050565b60006001600160a01b0384163b15611bd5576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290611af5903390899088908890600401613028565b6020604051808303816000875af1925050508015611b30575060408051601f3d908101601f19168201909252611b2d91810190613077565b60015b611b8a573d808015611b5e576040519150601f19603f3d011682016040523d82523d6000602084013e611b63565b606091505b508051611b825760405162461bcd60e51b815260040161092890612f5c565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a020000000000000000000000000000000000000000000000000000000014905061150d565b506001949350505050565b60006001611bed84610ec0565b611bf791906126a8565b600083815260076020526040902054909150808214611c4a576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090611c8f906001906126a8565b60008381526009602052604081205460088054939450909284908110611cb757611cb76126bf565b906000526020600020015490508060088381548110611cd857611cd86126bf565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480611d1057611d10613098565b6001900381819060005260206000200160009055905550505050565b6000611d3783610ec0565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b611d7a8383611da3565b611d876000848484611a98565b6109ce5760405162461bcd60e51b815260040161092890612f5c565b6001600160a01b038216611dc95760405162461bcd60e51b8152600401610928906130de565b6000818152600260205260409020546001600160a01b031615611dfe5760405162461bcd60e51b815260040161092890613120565b611e0a600083836118d9565b6001600160a01b0382166000908152600360205260408120805460019290611e33908490612e00565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b7fffffffff0000000000000000000000000000000000000000000000000000000081165b8114610b9957600080fd5b803561085c81611e9e565b600060208284031215611eed57611eed600080fd5b600061150d8484611ecd565b8015155b82525050565b6020810161085c8284611ef9565b60005b83811015611f2c578181015183820152602001611f14565b838111156110da5750506000910152565b6000611f47825190565b808452602084019350611f5e818560208601611f11565b601f01601f19169290920192915050565b602080825281016110928184611f3d565b80611ec2565b803561085c81611f80565b600060208284031215611fa657611fa6600080fd5b600061150d8484611f86565b60006001600160a01b03821661085c565b611efd81611fb2565b6020810161085c8284611fc3565b611ec281611fb2565b803561085c81611fda565b6000806040838503121561200457612004600080fd5b60006120108585611fe3565b925050602061202185828601611f86565b9150509250929050565b60006020828403121561204057612040600080fd5b600061150d8484611fe3565b80611efd565b6020810161085c828461204c565b60008060006060848603121561207857612078600080fd5b60006120848686611fe3565b935050602061209586828701611fe3565b92505060406120a686828701611f86565b9150509250925092565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff821117156120ec576120ec6120b0565b6040525050565b60006120fe60405190565b905061210a82826120c6565b919050565b600067ffffffffffffffff821115612129576121296120b0565b5060209081020190565b60006121466121418461210f565b6120f3565b8381529050602080820190840283018581111561216557612165600080fd5b835b81811015612187576121798782611fe3565b835260209283019201612167565b5050509392505050565b600082601f8301126121a5576121a5600080fd5b813561150d848260208601612133565b600080604083850312156121cb576121cb600080fd5b823567ffffffffffffffff8111156121e5576121e5600080fd5b61201085828601612191565b600067ffffffffffffffff82111561220b5761220b6120b0565b601f19601f83011660200192915050565b82818337506000910152565b6000612236612141846121f1565b90508281526020810184848401111561225157612251600080fd5b61225c84828561221c565b509392505050565b600082601f83011261227857612278600080fd5b813561150d848260208601612228565b60006020828403121561229d5761229d600080fd5b813567ffffffffffffffff8111156122b7576122b7600080fd5b61150d84828501612264565b600080604083850312156122d9576122d9600080fd5b60006122e58585611f86565b925050602083013567ffffffffffffffff81111561230557612305600080fd5b61202185828601612264565b801515611ec2565b803561085c81612311565b6000806040838503121561233a5761233a600080fd5b60006123468585611fe3565b925050602061202185828601612319565b6000806000806080858703121561237057612370600080fd5b600061237c8787611fe3565b945050602061238d87828801611fe3565b935050604061239e87828801611f86565b925050606085013567ffffffffffffffff8111156123be576123be600080fd5b6123ca87828801612264565b91505092959194509250565b600080604083850312156123ec576123ec600080fd5b60006123f88585611fe3565b925050602061202185828601611fe3565b634e487b7160e01b600052602260045260246000fd5b60028104600182168061243357607f821691505b6020821081141561179e5761179e612409565b602c8152602081017f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015290505b60400190565b6020808252810161085c81612446565b60218152602081017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6581527f72000000000000000000000000000000000000000000000000000000000000006020820152905061249a565b6020808252810161085c816124b0565b60388152602081017f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020820152905061249a565b6020808252810161085c81612518565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657291019081525b60200190565b6020808252810161085c81612580565b60318152602081017f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f81527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020820152905061249a565b6020808252810161085c816125c2565b602b8152602081017f455243373231456e756d657261626c653a206f776e657220696e646578206f7581527f74206f6620626f756e64730000000000000000000000000000000000000000006020820152905061249a565b6020808252810161085c8161262a565b634e487b7160e01b600052601160045260246000fd5b6000828210156126ba576126ba612692565b500390565b634e487b7160e01b600052603260045260246000fd5b60118152602081017f5769746864726177616c206661696c6564000000000000000000000000000000815290506125ac565b6020808252810161085c816126d5565b602c8152602081017f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f81527f7574206f6620626f756e647300000000000000000000000000000000000000006020820152905061249a565b6020808252810161085c81612717565b600060001982141561279357612793612692565b5060010190565b60298152602081017f4552433732313a206f776e657220717565727920666f72206e6f6e657869737481527f656e7420746f6b656e00000000000000000000000000000000000000000000006020820152905061249a565b6020808252810161085c8161279a565b601f8152602081017f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00815290506125ac565b6020808252810161085c81612802565b60318152602081017f4164647265737320686173206e6f206d6f726520707269766174652073616c6581527f206d696e74732072656d61696e696e672e0000000000000000000000000000006020820152905061249a565b6020808252810161085c81612844565b601f8152602081017f496e636f727265637420616d6f756e74206f662065746865722073656e742e00815290506125ac565b6020808252810161085c816128ac565b6000816128fd576128fd612692565b506000190190565b60108152602081017f496e76616c696420746f6b656e49642e00000000000000000000000000000000815290506125ac565b6020808252810161085c81612905565b601d8152602081017f546f6b656e206861736e2774206265656e206d696e746564207965742e000000815290506125ac565b6020808252810161085c81612947565b601c8152602081017f746f6b656e44617461206d757374206265203733362062797465732e00000000815290506125ac565b6020808252810161085c81612989565b603d8152602081017f596f7520617265206e6f7420616c6c6f77656420746f206f766572777269746581527f206578697374696e6720746f6b656e206461746120616e796d6f72652e0000006020820152905061249a565b6020808252810161085c816129cb565b602a8152602081017f4552433732313a2062616c616e636520717565727920666f7220746865207a6581527f726f2061646472657373000000000000000000000000000000000000000000006020820152905061249a565b6020808252810161085c81612a33565b60318152602081017f4164647265737320686173206e6f206d6f7265206561726c792061636365737381527f206d696e74732072656d61696e696e672e0000000000000000000000000000006020820152905061249a565b6020808252810161085c81612a9b565b602f8152602081017f4552433732314d657461646174613a2055524920717565727920666f72206e6f81527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006020820152905061249a565b6020808252810161085c81612b03565b6000612b79612141846121f1565b905082815260208101848484011115612b9457612b94600080fd5b61225c848285611f11565b600082601f830112612bb357612bb3600080fd5b815161150d848260208601612b6b565b600060208284031215612bd857612bd8600080fd5b815167ffffffffffffffff811115612bf257612bf2600080fd5b61150d84828501612b9f565b60408101612c0c828561204c565b818103602083015261150d8184611f3d565b60268152602081017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181527f64647265737300000000000000000000000000000000000000000000000000006020820152905061249a565b6020808252810161085c81612c1e565b60148152602081017f5075626c69632073616c65206e6f74206f70656e000000000000000000000000815290506125ac565b6020808252810161085c81612c86565b602c8152602081017f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881527f697374656e7420746f6b656e00000000000000000000000000000000000000006020820152905061249a565b6020808252810161085c81612cc8565b60298152602081017f4552433732313a207472616e73666572206f6620746f6b656e2074686174206981527f73206e6f74206f776e00000000000000000000000000000000000000000000006020820152905061249a565b6020808252810161085c81612d30565b60248152602081017f4552433732313a207472616e7366657220746f20746865207a65726f2061646481527f72657373000000000000000000000000000000000000000000000000000000006020820152905061249a565b6020808252810161085c81612d98565b60008219821115612e1357612e13612692565b500190565b60218152602081017f416c6c20506978656c6174696f6e732068617665206265656e206d696e74656481527f2e000000000000000000000000000000000000000000000000000000000000006020820152905061249a565b6020808252810161085c81612e18565b600081525b60010190565b6000612e95825190565b612ea3818560208601611f11565b9290920192915050565b612eb681612e80565b905061085c8183612e8b565b60198152602081017f4552433732313a20617070726f766520746f2063616c6c657200000000000000815290506125ac565b6020808252810161085c81612ec2565b60328152602081017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527f63656976657220696d706c656d656e74657200000000000000000000000000006020820152905061249a565b6020808252810161085c81612f04565b60608101612f7a828661204c565b612f87602083018561204c565b61150d604083018461204c565b7f63000000000000000000000000000000000000000000000000000000000000008152612e85565b600061085c8260e01b90565b611efd63ffffffff8216612fbc565b612fe081612f94565b9050612fec8184612fc8565b60040161301c817f80600e6000396000f30000000000000000000000000000000000000000000000815260090190565b90506110928183612e8b565b608081016130368287611fc3565b6130436020830186611fc3565b613050604083018561204c565b81810360608301526130628184611f3d565b9695505050505050565b805161085c81611e9e565b60006020828403121561308c5761308c600080fd5b600061150d848461306c565b634e487b7160e01b600052603160045260246000fd5b60208082527f4552433732313a206d696e7420746f20746865207a65726f206164647265737391019081526125ac565b6020808252810161085c816130ae565b601c8152602081017f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000815290506125ac565b6020808252810161085c816130ee56fea2646970667358221220a2b82df00d4dc6b5e72636debe13565d01e6b2cfae7c3eaf5437485ada43604e64736f6c634300080b0033

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.