ETH Price: $3,457.54 (+1.73%)

Token

Cr0wnChristmas (CC)
 

Overview

Max Total Supply

0 CC

Holders

7

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
Cr0wn_Gh0ul
Balance
1 CC
0x7682969b74d73dd72963Fdb353476a5C3cecf786
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
Cr0wnChristmas

Compiler Version
v0.8.16+commit.07a7930e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 14 : Cr0wnChristmas.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.16;

import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Base64.sol";

/*
    The elves have been working hard to get presents ready for Christmas Eve.
    So busy that they did not notice that the Heat Miser snuck in and stole their christmas tree.
    Fortunately, Santa gives free christmas trees to anybody on his nice list.
    Unfortunately, it appears that the Heat Miser took the magical ornaments that give each reindeer their flying power and hid them in the EVM!
    You need to get a new christmas tree and find the ornaments or else Christmas may be cancelled.
*/
/* 
Ornaments
-------------------
Dasher  - 0x0573221EedD49feacb8c0b347f4f32A6411eae04
Dancer  - 0xe8c15fB0C9872D8fC30BD5948717fe125335E2f9
Prancer - 0x0000000000000000000000000000000000000000
Vixen   - 0xA211338c33A9Bdd29F541478ECFEf51417904Be9
Comet   - 0xE4c58b0e88418a9a6Db163EDd860B48B4a8Aa28A
Cupid   - 0x1aCd5e8e822F04683f9695bC819C3e99F7D43280
Donner  - 0xC1c5c5Fa50500923330Bedfa2daDcBF55e7690d6
Blitzen - 0x2af26b58802CF09AF1B0bE0C0Ba82AF45691667E
Rudolph - 0xcF1783Ca45E9BC3deA1819e2EB448030e85Ea286
*/
/*
    To claim an ornament, you need to sign a message with your address from the ornament.
    let wallet = new ethers.Wallet(ORNAMENT_PRIVATE_KEY);
    let sig = await wallet.signMessage(ethers.utils.arrayify(ethers.utils.solidityKeccak256(['address'], [YOUR_ADDRESS])));
*/
/*
    The first person to claim all 9 ornaments will be able to save Christmas.
    As a reward, they will receive a star topper on their tree.
*/

interface ISantasList {
    function isNice(address person_) external;
}

contract Cr0wnChristmas is ERC721, Ownable {
    using ECDSA for bytes32;
    uint256 public constant PRANCER =
        0xFD15EA5ED15EA5ED15EA5ED15EA5ED15EA5ED15EA5ED15EA5ED15EA5ED15EA5E;
    ISantasList private _santasList;
    address[9] private _ornament;
    address[8] public ornamentLocations;
    uint256 private _tokenId;
    mapping(address => mapping(address => bool)) private _ornamentMap;
    address public isChristmasSaved;

    constructor(address[9] memory ornament_) ERC721("Cr0wnChristmas", "CC") {
        _ornament = ornament_;
    }

    function startChristmas(address santasList_, address[8] calldata locations_)
        public
        onlyOwner
    {
        _santasList = ISantasList(santasList_);
        ornamentLocations = locations_;
    }

    function updateChristmas(address santasList_, address[9] memory ornament_, address[8] calldata locations_)
        public
        onlyOwner
    {
        _santasList = ISantasList(santasList_);
        _ornament = ornament_;
        ornamentLocations = locations_;
    }

    function claimOrnaments(
        address[] calldata ornament_,
        bytes[] calldata signature_
    ) public {
        require(balanceOf(msg.sender) > 0, "Must get a Christmas tree first");
        for (uint8 i = 0; i < ornament_.length; i++) {
            require(_ornamentExists(ornament_[i]), "Invalid Ornament");
            require(!_ornamentMap[msg.sender][ornament_[i]], "Already claimed");
            require(
                ornament_[i] ==
                    keccak256(abi.encodePacked(msg.sender))
                        .toEthSignedMessageHash()
                        .recover(signature_[i]),
                "Invalid Signature"
            );
            _ornamentMap[msg.sender][ornament_[i]] = true;
        }
    }

    function saveChristmas() public {
        require(isChristmasSaved == address(0), "Christmas is already saved");
        uint8 oc = ornamentCount(msg.sender);
        if (oc == 9) {
            isChristmasSaved = msg.sender;
            return;
        }
        revert("Not enough ornaments");
    }

    function ornamentCount(address treeHolder_) public view returns (uint8) {
        uint8 oc = 0;
        for (uint256 i = 0; i < _ornament.length; i++) {
            if (_ornamentMap[treeHolder_][_ornament[i]]) {
                oc++;
            }
        }
        return oc;
    }

    function getTree() public {
        require(balanceOf(msg.sender) == 0, "Already has a tree");
        _santasList.isNice(msg.sender);
        _tokenId++;
        _mint(msg.sender, _tokenId);
    }

    function getPrancerOrnament(uint256 christmasCheer) external {
        uint256 magic = uint256(
            keccak256(abi.encodePacked(PRANCER, christmasCheer, msg.sender))
        );
        if (magic > PRANCER) {
            _ornamentMap[msg.sender][_ornament[6]] = true;
            return;
        }
        revert("Not strong enough magic");
    }

    function _ornamentExists(address ornament_) internal view returns (bool) {
        for (uint8 i = 0; i < _ornament.length; i++) {
            if (_ornament[i] == ornament_) {
                return true;
            }
        }
        return false;
    }

    function tokenURI(uint256 tokenId_)
        public
        view
        virtual
        override
        returns (string memory)
    {
        require(
            _exists(tokenId_),
            "ERC721Metadata: URI query for nonexistent token"
        );
        string
            memory imageData = "<svg xmlns='http://www.w3.org/2000/svg' height='800' width='800' viewBox='0 0 800 800'><rect fill='black' width='100%' height='100%' /><g transform='translate(140 93)'><path d='M173.95 230.77c-9.84-3.29-19.16-6.29-28.39-9.56q-8.11-2.88-16-6.45c-9.88-4.51-12.3-14.42-5.53-22.82 33.72-41.79 62.76-86.76 90.19-132.81 10-16.71 19.73-33.53 29.64-50.27 7-11.78 22.5-11.85 29.64 0 6.22 10.31 11.91 20.94 18.22 31.19 17.38 28.25 34.46 56.7 52.63 84.43 13.07 19.81 27.6 38.59 41.53 57.81 2.39 3.3 5.12 6.34 7.68 9.52 6.69 8.33 4.49 18.8-5.52 22.83-12.85 5.19-26 9.54-39.08 14.23-1.71.62-3.46 1.11-5.76 1.84 2.44 4 4.56 7.67 6.84 11.21 22.11 34.49 44.4 68.87 69.24 101.49 9.76 12.82 20 25.27 30.12 37.85 4.67 5.83 5.17 13 .65 18.33a19.47 19.47 0 01-6.69 4.73 384.79 384.79 0 01-43.86 17.36c-1.9.61-3.77 1.29-6.39 2.19 3.76 5.93 7.12 11.37 10.64 16.71 26 39.51 52.67 78.51 82.06 115.6 8.63 10.89 17.6 21.52 26.43 32.27 2.35 2.86 4.86 5.61 5.39 9.52.94 6.89-2.37 12.71-9.53 15.89-10.32 4.59-20.67 9.14-31.14 13.37a540.26 540.26 0 01-80.9 25.63c-18.18 4.18-36.69 7-55.05 10.38-1.78.33-3.54.84-5.69 1.35v5.81c0 8.54.05 17.07 0 25.61-.06 6.55-3.3 11.58-9.6 13.4a266.22 266.22 0 01-28.53 7c-13.86 2.39-27.88 4-42 3.47-20.78-.82-41.3-3.45-61.22-9.71-8.81-2.77-11.79-7-11.81-16.39V664.6c-2.37-.53-4.3-1.1-6.26-1.39a622.06 622.06 0 01-69.54-14.26 609.31 609.31 0 01-96-34.65c-8.22-3.73-11.54-9-9.93-17a16.76 16.76 0 013.63-7.3c32.1-37.28 61-76.94 88.49-117.71 9.73-14.45 19.27-29 28.88-43.55.9-1.37 1.69-2.8 2.87-4.77-4.11-1.49-7.91-2.77-11.64-4.22q-18.61-7.24-37.2-14.62c-4.25-1.69-7.81-4.3-9.86-8.54-2.78-5.75-1.09-10.75 2.68-15.42 8.27-10.23 16.88-20.22 24.67-30.82 14.59-19.85 29-39.86 42.92-60.19 12.35-18 23.92-36.61 35.81-55 .76-1.19 1.34-2.55 2.27-4.39z' fill='#34b401' /></g>";
        for (uint256 i = 0; i < _ornament.length; i++) {
            if (_ornamentMap[ownerOf(tokenId_)][_ornament[i]]) {
                imageData = string(
                    abi.encodePacked(imageData, getOrnamentImage(i))
                );
            }
        }
        if (isChristmasSaved == ownerOf(tokenId_)) {
            imageData = string(
                abi.encodePacked(
                    imageData,
                    "<g width='25' height='25' transform='translate(333 -5) scale(0.3)' paint-order='stroke fill markers' fill='yellow'><path d='M441.07,171.022l-152.385-22.144l-68.15-138.085l-68.148,138.085L0,171.022l110.268,107.484L84.237,430.277l136.298-71.656l136.299,71.656l-26.029-151.77L441.07,171.022z M220.535,313.018l-82.688,43.473l15.791-92.075l-66.896-65.208l92.449-13.435l41.344-83.774l41.346,83.773l92.449,13.435l-66.896,65.208l15.791,92.076L220.535,313.018z'/></g>"
                )
            );
        }
        return
            string(
                abi.encodePacked(
                    'data:application/json;utf8,{"name":"Cr0wn Christmas","description":"NFT to track progress of the Cr0wn Christmas puzzle CTF event",',
                    '"image":"data:image/svg+xml;base64,',
                    Base64.encode(abi.encodePacked(imageData, "</svg>")),
                    '"}'
                )
            );
    }

    function getOrnamentImage(uint256 reindeerIdx)
        internal
        pure
        returns (string memory)
    {
        string
            memory pre = "<g paint-order='stroke fill markers' transform='translate(";
        string
            memory preEnd = ")'><circle transform='matrix(1 0 0 .98295 148 148.03)' fill='";
        string memory color;
        string memory pos;
        if (reindeerIdx == 0) {
            pos = "225 60";
            color = "hotpink";
        } else if (reindeerIdx == 1) {
            pos = "310 135";
            color = "red";
        } else if (reindeerIdx == 2) {
            pos = "180 205";
            color = "cyan";
        } else if (reindeerIdx == 3) {
            pos = "280 285";
            color = "blueviolet";
        } else if (reindeerIdx == 4) {
            pos = "380 385";
            color = "silver";
        } else if (reindeerIdx == 5) {
            pos = "160 365";
            color = "gold";
        } else if (reindeerIdx == 6) {
            pos = "130 515";
            color = "purple";
        } else if (reindeerIdx == 7) {
            pos = "257 465";
            color = "whitesmoke";
        } else if (reindeerIdx == 8) {
            pos = "390 540";
            color = "fuchsia";
        } else {
            revert("Invalid Reindeer");
        }
        string
            memory post = "' stroke='#000' r='50'/><rect width='25.147' height='12.573' rx='0' ry='0' transform='matrix(1.16 0 0 1.24 133.415 90.025)' fill='#e8b400' stroke='#000' stroke-width='.5'/><path d='M133.415 103.515c-.597 3.16-1.592 3.016 0 2.101q0 5.417 1.834 3.23l1.969-3.23c1.434 4.249 2.9 5.249 2.789 3.968s.606-2.551 2.132-3.855c-.313 1.37 1.269 3.307 2.707 4.101 1.969-.73 3.198-2.69 3.154-3.855 1.384.064 3.06 2.243 3.653 3.937.717-.398 2.01-2.547 2.625-4.1-.55 1.825 1.333 3.1 2.87 3.444.08-1.847.615-3.372 1.231-2.297.9-.56 2.074.774 2.46 2.297 1.914-.399 2.844-1.942 1.746-3.117 1.253-.406.76-1.767 0-2.624' fill='#e8b400' stroke='#000' stroke-width='.6' stroke-linejoin='round'/><path d='M135.25 89.889c8.523-33.634 16.908-33.701 25.155 0' fill='none' stroke='#000205' stroke-width='1.5'/></g>";
        return string(abi.encodePacked(pre, pos, preEnd, color, post));
    }
}

File 2 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

File 3 of 14 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _ownerOf(tokenId);
        require(owner != address(0), "ERC721: invalid token ID");
        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) {
        _requireMinted(tokenId);

        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 overridden 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 token owner or approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        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: caller is not token owner or 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: caller is not token owner or 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 the owner of the `tokenId`. Does NOT revert if token doesn't exist
     */
    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

    /**
     * @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 _ownerOf(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) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == 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, 1);

        // Check that tokenId was not minted by `_beforeTokenTransfer` hook
        require(!_exists(tokenId), "ERC721: token already minted");

        unchecked {
            // Will not overflow unless all 2**256 token ids are minted to the same owner.
            // Given that tokens are minted one by one, it is impossible in practice that
            // this ever happens. Might change if we allow batch minting.
            // The ERC fails to describe this case.
            _balances[to] += 1;
        }

        _owners[tokenId] = to;

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

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

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     * This is an internal function that does not check if the sender is authorized to operate on the token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

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

        // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook
        owner = ERC721.ownerOf(tokenId);

        // Clear approvals
        delete _tokenApprovals[tokenId];

        unchecked {
            // Cannot overflow, as that would require more tokens to be burned/transferred
            // out than the owner initially received through minting and transferring in.
            _balances[owner] -= 1;
        }
        delete _owners[tokenId];

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

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

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

        _beforeTokenTransfer(from, to, tokenId, 1);

        // Check that tokenId was not transferred by `_beforeTokenTransfer` hook
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");

        // Clear approvals from the previous owner
        delete _tokenApprovals[tokenId];

        unchecked {
            // `_balances[from]` cannot overflow for the same reason as described in `_burn`:
            // `from`'s balance is the number of token held, which is at least one before the current
            // transfer.
            // `_balances[to]` could overflow in the conditions described in `_mint`. That would require
            // all 2**256 token ids to be minted, which in practice is impossible.
            _balances[from] -= 1;
            _balances[to] += 1;
        }
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId, 1);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits an {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 an {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 Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @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 {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`.
     * - When `from` is zero, the tokens will be minted for `to`.
     * - When `to` is zero, ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256, /* firstTokenId */
        uint256 batchSize
    ) internal virtual {
        if (batchSize > 1) {
            if (from != address(0)) {
                _balances[from] -= batchSize;
            }
            if (to != address(0)) {
                _balances[to] += batchSize;
            }
        }
    }

    /**
     * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`.
     * - When `from` is zero, the tokens were minted for `to`.
     * - When `to` is zero, ``from``'s tokens were burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual {}
}

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 5 of 14 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 6 of 14 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 7 of 14 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        return result;
    }
}

File 9 of 14 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 10 of 14 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV // Deprecated in v4.8
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 11 of 14 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 12 of 14 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./math/Math.sol";

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address[9]","name":"ornament_","type":"address[9]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"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":"PRANCER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"ornament_","type":"address[]"},{"internalType":"bytes[]","name":"signature_","type":"bytes[]"}],"name":"claimOrnaments","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"christmasCheer","type":"uint256"}],"name":"getPrancerOrnament","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getTree","outputs":[],"stateMutability":"nonpayable","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":"isChristmasSaved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"treeHolder_","type":"address"}],"name":"ornamentCount","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"ornamentLocations","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saveChristmas","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"santasList_","type":"address"},{"internalType":"address[8]","name":"locations_","type":"address[8]"}],"name":"startChristmas","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":"tokenId_","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"santasList_","type":"address"},{"internalType":"address[9]","name":"ornament_","type":"address[9]"},{"internalType":"address[8]","name":"locations_","type":"address[8]"}],"name":"updateChristmas","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162003a9b38038062003a9b8339810160408190526200003491620001aa565b6040518060400160405280600e81526020016d437230776e4368726973746d617360901b81525060405180604001604052806002815260200161434360f01b8152508160009081620000879190620002d6565b506001620000968282620002d6565b505050620000b3620000ad620000ca60201b60201c565b620000ce565b620000c2600882600962000120565b5050620003a2565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82600981019282156200016b579160200282015b828111156200016b57825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000134565b50620001799291506200017d565b5090565b5b808211156200017957600081556001016200017e565b634e487b7160e01b600052604160045260246000fd5b6000610120808385031215620001bf57600080fd5b83601f840112620001cf57600080fd5b6040518181016001600160401b0381118282101715620001f357620001f362000194565b6040529083019080858311156200020957600080fd5b845b838110156200023c5780516001600160a01b03811681146200022d5760008081fd5b8252602091820191016200020b565b509095945050505050565b600181811c908216806200025c57607f821691505b6020821081036200027d57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002d157600081815260208120601f850160051c81016020861015620002ac5750805b601f850160051c820191505b81811015620002cd57828155600101620002b8565b5050505b505050565b81516001600160401b03811115620002f257620002f262000194565b6200030a8162000303845462000247565b8462000283565b602080601f831160018114620003425760008415620003295750858301515b600019600386901b1c1916600185901b178555620002cd565b600085815260208120601f198616915b82811015620003735788860151825594840194600190910190840162000352565b5085821015620003925787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6136e980620003b26000396000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c80636352211e116100de578063a22cb46511610097578063c87b56dd11610071578063c87b56dd1461035a578063e985e9c51461036d578063f2fde38b14610380578063fcab570f1461039357600080fd5b8063a22cb46514610321578063b88d4fde14610334578063c2b595c21461034757600080fd5b80636352211e146102c757806366bc7497146102da57806370a08231146102ed578063715018a6146103005780638da5cb5b1461030857806395d89b411461031957600080fd5b80631911d1761161014b57806342842e0e1161012557806342842e0e1461027b5780634c4f0d151461028e5780634f5cc310146102a1578063576e011b146102b457600080fd5b80631911d1761461022b57806323b872dd1461023357806325f2de6c1461024657600080fd5b806301ffc9a714610193578063041be997146101bb57806306fdde03146101c5578063081812fc146101da578063095ea7b31461020557806315007b7c14610218575b600080fd5b6101a66101a136600461210b565b6103b8565b60405190151581526020015b60405180910390f35b6101c361040a565b005b6101cd6104d4565b6040516101b2919061217f565b6101ed6101e8366004612192565b610566565b6040516001600160a01b0390911681526020016101b2565b6101c36102133660046121c7565b61058d565b6101c3610226366004612236565b6106a2565b6101c36109f9565b6101c36102413660046122a2565b610ac5565b61026d7ffd15ea5ed15ea5ed15ea5ed15ea5ed15ea5ed15ea5ed15ea5ed15ea5ed15ea5e81565b6040519081526020016101b2565b6101c36102893660046122a2565b610af6565b6101c361029c366004612337565b610b11565b6101c36102af366004612192565b610b55565b6101ed6102c2366004612192565b610c63565b6101ed6102d5366004612192565b610c83565b6101c36102e83660046123e0565b610ce3565b61026d6102fb366004612415565b610d13565b6101c3610d99565b6006546001600160a01b03166101ed565b6101cd610dab565b6101c361032f366004612430565b610dba565b6101c361034236600461246c565b610dc9565b601b546101ed906001600160a01b031681565b6101cd610368366004612192565b610dfb565b6101a661037b36600461252c565b610fdc565b6101c361038e366004612415565b61100a565b6103a66103a1366004612415565b611083565b60405160ff90911681526020016101b2565b60006001600160e01b031982166380ac58cd60e01b14806103e957506001600160e01b03198216635b5e139f60e01b145b8061040457506301ffc9a760e01b6001600160e01b03198316145b92915050565b601b546001600160a01b0316156104685760405162461bcd60e51b815260206004820152601a60248201527f4368726973746d617320697320616c726561647920736176656400000000000060448201526064015b60405180910390fd5b600061047333611083565b90508060ff166009036104955750601b80546001600160a01b03191633179055565b60405162461bcd60e51b81526020600482015260146024820152734e6f7420656e6f756768206f726e616d656e747360601b604482015260640161045f565b6060600080546104e390612556565b80601f016020809104026020016040519081016040528092919081815260200182805461050f90612556565b801561055c5780601f106105315761010080835404028352916020019161055c565b820191906000526020600020905b81548152906001019060200180831161053f57829003601f168201915b5050505050905090565b600061057182611108565b506000908152600460205260409020546001600160a01b031690565b600061059882610c83565b9050806001600160a01b0316836001600160a01b0316036106055760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161045f565b336001600160a01b038216148061062157506106218133610fdc565b6106935760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000606482015260840161045f565b61069d8383611167565b505050565b60006106ad33610d13565b116106fa5760405162461bcd60e51b815260206004820152601f60248201527f4d757374206765742061204368726973746d6173207472656520666972737400604482015260640161045f565b60005b60ff81168411156109f25761073a85858360ff1681811061072057610720612590565b90506020020160208101906107359190612415565b6111d5565b6107795760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a590813dc9b985b595b9d60821b604482015260640161045f565b336000908152601a6020526040812090868660ff851681811061079e5761079e612590565b90506020020160208101906107b39190612415565b6001600160a01b0316815260208101919091526040016000205460ff161561080f5760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b604482015260640161045f565b6108ff83838360ff1681811061082757610827612590565b905060200281019061083991906125a6565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250506040516bffffffffffffffffffffffff193360601b1660208201526108f992506034019050604051602081830303815290604052805190602001206040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b90611239565b6001600160a01b031685858360ff1681811061091d5761091d612590565b90506020020160208101906109329190612415565b6001600160a01b03161461097c5760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964205369676e617475726560781b604482015260640161045f565b336000908152601a60205260408120600191878760ff86168181106109a3576109a3612590565b90506020020160208101906109b89190612415565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806109ea81612603565b9150506106fd565b5050505050565b610a0233610d13565b15610a445760405162461bcd60e51b8152602060048201526012602482015271416c7265616479206861732061207472656560701b604482015260640161045f565b600754604051631fbd304760e01b81523360048201526001600160a01b0390911690631fbd304790602401600060405180830381600087803b158015610a8957600080fd5b505af1158015610a9d573d6000803e3d6000fd5b505060198054925090506000610ab283612622565b9190505550610ac33360195461125d565b565b610acf33826113f6565b610aeb5760405162461bcd60e51b815260040161045f9061263b565b61069d838383611455565b61069d83838360405180602001604052806000815250610dc9565b610b196115c6565b600780546001600160a01b0319166001600160a01b038516179055610b416008836009612042565b50610b4f601182600861209a565b50505050565b604080517ffd15ea5ed15ea5ed15ea5ed15ea5ed15ea5ed15ea5ed15ea5ed15ea5ed15ea5e602082015290810182905233606090811b6bffffffffffffffffffffffff1916908201526000906074016040516020818303038152906040528051906020012060001c90507ffd15ea5ed15ea5ed15ea5ed15ea5ed15ea5ed15ea5ed15ea5ed15ea5ed15ea5e811115610c1b575050336000908152601a60209081526040808320600e546001600160a01b031684529091529020805460ff19166001179055565b60405162461bcd60e51b815260206004820152601760248201527f4e6f74207374726f6e6720656e6f756768206d61676963000000000000000000604482015260640161045f565b60118160088110610c7357600080fd5b01546001600160a01b0316905081565b6000818152600260205260408120546001600160a01b0316806104045760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161045f565b610ceb6115c6565b600780546001600160a01b0319166001600160a01b03841617905561069d601182600861209a565b60006001600160a01b038216610d7d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b606482015260840161045f565b506001600160a01b031660009081526003602052604090205490565b610da16115c6565b610ac36000611620565b6060600180546104e390612556565b610dc5338383611672565b5050565b610dd333836113f6565b610def5760405162461bcd60e51b815260040161045f9061263b565b610b4f84848484611740565b6000818152600260205260409020546060906001600160a01b0316610e7a5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161045f565b60006040518061072001604052806106e58152602001612c066106e59139905060005b6009811015610f4b57601a6000610eb386610c83565b6001600160a01b03166001600160a01b03168152602001908152602001600020600060088360098110610ee857610ee8612590565b01546001600160a01b0316815260208101919091526040016000205460ff1615610f395781610f1682611773565b604051602001610f27929190612688565b60405160208183030381529060405291505b80610f4381612622565b915050610e9d565b50610f5583610c83565b601b546001600160a01b03918216911603610f8d5780604051602001610f7b91906126b7565b60405160208183030381529060405290505b610fb581604051602001610fa19190612901565b604051602081830303815290604052611b13565b604051602001610fc5919061292b565b604051602081830303815290604052915050919050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6110126115c6565b6001600160a01b0381166110775760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161045f565b61108081611620565b50565b600080805b6009811015611101576001600160a01b0384166000908152601a6020526040812090600883600981106110bd576110bd612590565b01546001600160a01b0316815260208101919091526040016000205460ff16156110ef57816110eb81612603565b9250505b806110f981612622565b915050611088565b5092915050565b6000818152600260205260409020546001600160a01b03166110805760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161045f565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061119c82610c83565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000805b60098160ff16101561123057826001600160a01b031660088260ff166009811061120557611205612590565b01546001600160a01b03160361121e5750600192915050565b8061122881612603565b9150506111d9565b50600092915050565b60008060006112488585611c66565b9150915061125581611cab565b509392505050565b6001600160a01b0382166112b35760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161045f565b6000818152600260205260409020546001600160a01b0316156113185760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161045f565b611326600083836001611df5565b6000818152600260205260409020546001600160a01b03161561138b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161045f565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60008061140283610c83565b9050806001600160a01b0316846001600160a01b0316148061142957506114298185610fdc565b8061144d5750836001600160a01b031661144284610566565b6001600160a01b0316145b949350505050565b826001600160a01b031661146882610c83565b6001600160a01b03161461148e5760405162461bcd60e51b815260040161045f90612a2c565b6001600160a01b0382166114f05760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161045f565b6114fd8383836001611df5565b826001600160a01b031661151082610c83565b6001600160a01b0316146115365760405162461bcd60e51b815260040161045f90612a2c565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6006546001600160a01b03163314610ac35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161045f565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316036116d35760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161045f565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61174b848484611455565b61175784848484611e7d565b610b4f5760405162461bcd60e51b815260040161045f90612a71565b606060006040518060600160405280603a8152602001613368603a9139905060006040518060600160405280603d815260200161332b603d9139905060608085600003611802576040518060400160405280600681526020016503232352036360d41b815250905060405180604001604052806007815260200166686f7470696e6b60c81b8152509150611abf565b8560010361184f57604051806040016040528060078152602001663331302031333560c81b8152509050604051806040016040528060038152602001621c995960ea1b8152509150611abf565b8560020361189d57604051806040016040528060078152602001663138302032303560c81b81525090506040518060400160405280600481526020016331bcb0b760e11b8152509150611abf565b856003036118f157604051806040016040528060078152602001663238302032383560c81b81525090506040518060400160405280600a815260200169189b1d595d9a5bdb195d60b21b8152509150611abf565b8560040361194157604051806040016040528060078152602001663338302033383560c81b81525090506040518060400160405280600681526020016539b4b63b32b960d11b8152509150611abf565b8560050361198f57604051806040016040528060078152602001663136302033363560c81b81525090506040518060400160405280600481526020016319dbdb1960e21b8152509150611abf565b856006036119df57604051806040016040528060078152602001663133302035313560c81b815250905060405180604001604052806006815260200165707572706c6560d01b8152509150611abf565b85600703611a3357604051806040016040528060078152602001663235372034363560c81b81525090506040518060400160405280600a8152602001697768697465736d6f6b6560b01b8152509150611abf565b85600803611a8457604051806040016040528060078152602001660333930203534360cc1b8152509050604051806040016040528060078152602001666675636873696160c81b8152509150611abf565b60405162461bcd60e51b815260206004820152601060248201526f24b73b30b634b2102932b4b73232b2b960811b604482015260640161045f565b600060405180610340016040528061031281526020016133a2610312913990508482858584604051602001611af8959493929190612ac3565b60405160208183030381529060405295505050505050919050565b60608151600003611b3257505060408051602081019091526000815290565b60006040518060600160405280604081526020016132eb6040913990506000600384516002611b619190612b2e565b611b6b9190612b41565b611b76906004612b63565b67ffffffffffffffff811115611b8e57611b8e6122de565b6040519080825280601f01601f191660200182016040528015611bb8576020820181803683370190505b509050600182016020820185865187015b80821015611c24576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250611bc9565b5050600386510660018114611c405760028114611c5357611c5b565b603d6001830353603d6002830353611c5b565b603d60018303535b509195945050505050565b6000808251604103611c9c5760208301516040840151606085015160001a611c9087828585611f7e565b94509450505050611ca4565b506000905060025b9250929050565b6000816004811115611cbf57611cbf612b82565b03611cc75750565b6001816004811115611cdb57611cdb612b82565b03611d285760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161045f565b6002816004811115611d3c57611d3c612b82565b03611d895760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161045f565b6003816004811115611d9d57611d9d612b82565b036110805760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161045f565b6001811115610b4f576001600160a01b03841615611e3b576001600160a01b03841660009081526003602052604081208054839290611e35908490612b98565b90915550505b6001600160a01b03831615610b4f576001600160a01b03831660009081526003602052604081208054839290611e72908490612b2e565b909155505050505050565b60006001600160a01b0384163b15611f7357604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611ec1903390899088908890600401612bab565b6020604051808303816000875af1925050508015611efc575060408051601f3d908101601f19168201909252611ef991810190612be8565b60015b611f59573d808015611f2a576040519150601f19603f3d011682016040523d82523d6000602084013e611f2f565b606091505b508051600003611f515760405162461bcd60e51b815260040161045f90612a71565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061144d565b506001949350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611fb55750600090506003612039565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612009573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661203257600060019250925050612039565b9150600090505b94509492505050565b826009810192821561208a579160200282015b8281111561208a57825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190612055565b506120969291506120e0565b5090565b826008810192821561208a579160200282015b8281111561208a5781546001600160a01b0319166001600160a01b038435161782556020909201916001909101906120ad565b5b8082111561209657600081556001016120e1565b6001600160e01b03198116811461108057600080fd5b60006020828403121561211d57600080fd5b8135612128816120f5565b9392505050565b60005b8381101561214a578181015183820152602001612132565b50506000910152565b6000815180845261216b81602086016020860161212f565b601f01601f19169290920160200192915050565b6020815260006121286020830184612153565b6000602082840312156121a457600080fd5b5035919050565b80356001600160a01b03811681146121c257600080fd5b919050565b600080604083850312156121da57600080fd5b6121e3836121ab565b946020939093013593505050565b60008083601f84011261220357600080fd5b50813567ffffffffffffffff81111561221b57600080fd5b6020830191508360208260051b8501011115611ca457600080fd5b6000806000806040858703121561224c57600080fd5b843567ffffffffffffffff8082111561226457600080fd5b612270888389016121f1565b9096509450602087013591508082111561228957600080fd5b50612296878288016121f1565b95989497509550505050565b6000806000606084860312156122b757600080fd5b6122c0846121ab565b92506122ce602085016121ab565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561231d5761231d6122de565b604052919050565b80610100810183101561040457600080fd5b6000806000610240848603121561234d57600080fd5b612356846121ab565b9250602085603f86011261236957600080fd5b604051610120810181811067ffffffffffffffff8211171561238d5761238d6122de565b604052806101408701888111156123a357600080fd5b8388015b818110156123c5576123b8816121ab565b83529184019184016123a7565b508295506123d38982612325565b9450505050509250925092565b60008061012083850312156123f457600080fd5b6123fd836121ab565b915061240c8460208501612325565b90509250929050565b60006020828403121561242757600080fd5b612128826121ab565b6000806040838503121561244357600080fd5b61244c836121ab565b91506020830135801515811461246157600080fd5b809150509250929050565b6000806000806080858703121561248257600080fd5b61248b856121ab565b9350602061249a8187016121ab565b935060408601359250606086013567ffffffffffffffff808211156124be57600080fd5b818801915088601f8301126124d257600080fd5b8135818111156124e4576124e46122de565b6124f6601f8201601f191685016122f4565b9150808252898482850101111561250c57600080fd5b808484018584013760008482840101525080935050505092959194509250565b6000806040838503121561253f57600080fd5b612548836121ab565b915061240c602084016121ab565b600181811c9082168061256a57607f821691505b60208210810361258a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126125bd57600080fd5b83018035915067ffffffffffffffff8211156125d857600080fd5b602001915036819003821315611ca457600080fd5b634e487b7160e01b600052601160045260246000fd5b600060ff821660ff8103612619576126196125ed565b60010192915050565b600060018201612634576126346125ed565b5060010190565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b6000835161269a81846020880161212f565b8351908301906126ae81836020880161212f565b01949350505050565b600082516126c981846020870161212f565b7f3c672077696474683d27323527206865696768743d27323527207472616e73669201918252507f6f726d3d277472616e736c61746528333333202d3529207363616c6528302e3360208201527f2927207061696e742d6f726465723d277374726f6b652066696c6c206d61726b60408201527f657273272066696c6c3d2779656c6c6f77273e3c7061746820643d274d34343160608201527f2e30372c3137312e3032326c2d3135322e3338352d32322e3134346c2d36382e60808201527f31352d3133382e3038356c2d36382e3134382c3133382e3038354c302c31373160a08201527f2e3032326c3131302e3236382c3130372e3438344c38342e3233372c3433302e60c08201527f3237376c3133362e3239382d37312e3635366c3133362e3239392c37312e363560e08201527f366c2d32362e3032392d3135312e37374c3434312e30372c3137312e3032327a6101008201527f204d3232302e3533352c3331332e3031386c2d38322e3638382c34332e3437336101208201527f6c31352e3739312d39322e3037356c2d36362e3839362d36352e3230386c39326101408201527f2e3434392d31332e3433356c34312e3334342d38332e3737346c34312e3334366101608201527f2c38332e3737336c39322e3434392c31332e3433356c2d36362e3839362c36356101808201527f2e3230386c31352e3739312c39322e3037364c3232302e3533352c3331332e306101a082015269189c3d13979f1e17b39f60b11b6101c08201526101ca01919050565b6000825161291381846020870161212f565b651e17b9bb339f60d11b920191825250600601919050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c7b226e616d81527f65223a22437230776e204368726973746d6173222c226465736372697074696f60208201527f6e223a224e465420746f20747261636b2070726f6772657373206f662074686560408201527f20437230776e204368726973746d61732070757a7a6c6520435446206576656e6060820152621d088b60ea1b60808201527f22696d616765223a22646174613a696d6167652f7376672b786d6c3b626173656083820152620d8d0b60ea1b60a382015260008251612a138160a685016020870161212f565b61227d60f01b60a693909101928301525060a801919050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008651612ad5818460208b0161212f565b865190830190612ae9818360208b0161212f565b8651910190612afc818360208a0161212f565b8551910190612b0f81836020890161212f565b8451910190612b2281836020880161212f565b01979650505050505050565b80820180821115610404576104046125ed565b600082612b5e57634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615612b7d57612b7d6125ed565b500290565b634e487b7160e01b600052602160045260246000fd5b81810381811115610404576104046125ed565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612bde90830184612153565b9695505050505050565b600060208284031215612bfa57600080fd5b8151612128816120f556fe3c73766720786d6c6e733d27687474703a2f2f7777772e77332e6f72672f323030302f73766727206865696768743d27383030272077696474683d27383030272076696577426f783d273020302038303020383030273e3c726563742066696c6c3d27626c61636b272077696474683d273130302527206865696768743d273130302527202f3e3c67207472616e73666f726d3d277472616e736c6174652831343020393329273e3c7061746820643d274d3137332e3935203233302e3737632d392e38342d332e32392d31392e31362d362e32392d32382e33392d392e3536712d382e31312d322e38382d31362d362e3435632d392e38382d342e35312d31322e332d31342e34322d352e35332d32322e38322033332e37322d34312e37392036322e37362d38362e37362039302e31392d3133322e38312031302d31362e37312031392e37332d33332e35332032392e36342d35302e323720372d31312e37382032322e352d31312e38352032392e3634203020362e32322031302e33312031312e39312032302e39342031382e32322033312e31392031372e33382032382e32352033342e34362035362e372035322e36332038342e34332031332e30372031392e38312032372e362033382e35392034312e35332035372e383120322e333920332e3320352e313220362e333420372e363820392e353220362e363920382e333320342e34392031382e382d352e35322032322e38332d31322e383520352e31392d323620392e35342d33392e30382031342e32332d312e37312e36322d332e343620312e31312d352e373620312e383420322e3434203420342e353620372e363720362e38342031312e32312032322e31312033342e34392034342e342036382e38372036392e3234203130312e343920392e37362031322e38322032302032352e32372033302e31322033372e383520342e363720352e383320352e3137203133202e36352031382e33336131392e34372031392e343720302030312d362e363920342e3733203338342e3739203338342e373920302030312d34332e38362031372e3336632d312e392e36312d332e373720312e32392d362e333920322e313920332e373620352e393320372e31322031312e33372031302e36342031362e37312032362033392e35312035322e36372037382e35312038322e3036203131352e3620382e36332031302e38392031372e362032312e35322032362e34332033322e323720322e333520322e383620342e383620352e363120352e333920392e35322e393420362e38392d322e33372031322e37312d392e35332031352e38392d31302e333220342e35392d32302e363720392e31342d33312e31342031332e3337613534302e3236203534302e323620302030312d38302e392032352e3633632d31382e313820342e31382d33362e363920372d35352e30352031302e33382d312e37382e33332d332e35342e38342d352e363920312e333576352e3831633020382e35342e30352031372e303720302032352e36312d2e303620362e35352d332e332031312e35382d392e362031332e34613236362e3232203236362e323220302030312d32382e35332037632d31332e383620322e33392d32372e383820342d343220332e34372d32302e37382d2e38322d34312e332d332e34352d36312e32322d392e37312d382e38312d322e37372d31312e37392d372d31312e38312d31362e3339563636342e36632d322e33372d2e35332d342e332d312e312d362e32362d312e3339613632322e3036203632322e303620302030312d36392e35342d31342e3236203630392e3331203630392e333120302030312d39362d33342e3635632d382e32322d332e37332d31312e35342d392d392e39332d31376131362e37362031362e37362030203031332e36332d372e336333322e312d33372e32382036312d37362e39342038382e34392d3131372e373120392e37332d31342e34352031392e32372d32392032382e38382d34332e35352e392d312e333720312e36392d322e3820322e38372d342e37372d342e31312d312e34392d372e39312d322e37372d31312e36342d342e3232712d31382e36312d372e32342d33372e322d31342e3632632d342e32352d312e36392d372e38312d342e332d392e38362d382e35342d322e37382d352e37352d312e30392d31302e373520322e36382d31352e343220382e32372d31302e32332031362e38382d32302e32322032342e36372d33302e38322031342e35392d31392e38352032392d33392e38362034322e39322d36302e31392031322e33352d31382032332e39322d33362e36312033352e38312d3535202e37362d312e313920312e33342d322e353520322e32372d342e33397a272066696c6c3d272333346234303127202f3e3c2f673e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f29273e3c636972636c65207472616e73666f726d3d276d6174726978283120302030202e393832393520313438203134382e303329272066696c6c3d273c67207061696e742d6f726465723d277374726f6b652066696c6c206d61726b65727327207472616e73666f726d3d277472616e736c6174652827207374726f6b653d27233030302720723d273530272f3e3c726563742077696474683d2732352e31343727206865696768743d2731322e353733272072783d2730272072793d273027207472616e73666f726d3d276d617472697828312e31362030203020312e3234203133332e3431352039302e30323529272066696c6c3d272365386234303027207374726f6b653d272330303027207374726f6b652d77696474683d272e35272f3e3c7061746820643d274d3133332e343135203130332e353135632d2e35393720332e31362d312e35393220332e303136203020322e313031713020352e34313720312e38333420332e32336c312e3936392d332e323363312e34333420342e32343920322e3920352e32343920322e37383920332e393638732e3630362d322e35353120322e3133322d332e383535632d2e33313320312e333720312e32363920332e33303720322e37303720342e31303120312e3936392d2e373320332e3139382d322e363920332e3135342d332e38353520312e3338342e30363420332e303620322e32343320332e36353320332e3933372e3731372d2e33393820322e30312d322e35343720322e3632352d342e312d2e353520312e38323520312e33333320332e3120322e383720332e3434342e30382d312e3834372e3631352d332e33373220312e3233312d322e3239372e392d2e353620322e3037342e37373420322e343620322e32393720312e3931342d2e33393920322e3834342d312e39343220312e3734362d332e31313720312e3235332d2e3430362e37362d312e37363720302d322e363234272066696c6c3d272365386234303027207374726f6b653d272330303027207374726f6b652d77696474683d272e3627207374726f6b652d6c696e656a6f696e3d27726f756e64272f3e3c7061746820643d274d3133352e32352038392e38383963382e3532332d33332e3633342031362e3930382d33332e3730312032352e3135352030272066696c6c3d276e6f6e6527207374726f6b653d272330303032303527207374726f6b652d77696474683d27312e35272f3e3c2f673ea26469706673582212202025421d6ea55b1988ccb5557288598beec0509e897250cb5d4efa2e3185e6cd64736f6c634300081000330000000000000000000000002af26b58802cf09af1b0be0c0ba82af45691667e000000000000000000000000e4c58b0e88418a9a6db163edd860b48b4a8aa28a0000000000000000000000001acd5e8e822f04683f9695bc819c3e99f7d43280000000000000000000000000e8c15fb0c9872d8fc30bd5948717fe125335e2f90000000000000000000000000573221eedd49feacb8c0b347f4f32a6411eae04000000000000000000000000c1c5c5fa50500923330bedfa2dadcbf55e7690d6000000000000000000000000c0ffee000000000000000000000000000000dead000000000000000000000000cf1783ca45e9bc3dea1819e2eb448030e85ea286000000000000000000000000a211338c33a9bdd29f541478ecfef51417904be9

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061018e5760003560e01c80636352211e116100de578063a22cb46511610097578063c87b56dd11610071578063c87b56dd1461035a578063e985e9c51461036d578063f2fde38b14610380578063fcab570f1461039357600080fd5b8063a22cb46514610321578063b88d4fde14610334578063c2b595c21461034757600080fd5b80636352211e146102c757806366bc7497146102da57806370a08231146102ed578063715018a6146103005780638da5cb5b1461030857806395d89b411461031957600080fd5b80631911d1761161014b57806342842e0e1161012557806342842e0e1461027b5780634c4f0d151461028e5780634f5cc310146102a1578063576e011b146102b457600080fd5b80631911d1761461022b57806323b872dd1461023357806325f2de6c1461024657600080fd5b806301ffc9a714610193578063041be997146101bb57806306fdde03146101c5578063081812fc146101da578063095ea7b31461020557806315007b7c14610218575b600080fd5b6101a66101a136600461210b565b6103b8565b60405190151581526020015b60405180910390f35b6101c361040a565b005b6101cd6104d4565b6040516101b2919061217f565b6101ed6101e8366004612192565b610566565b6040516001600160a01b0390911681526020016101b2565b6101c36102133660046121c7565b61058d565b6101c3610226366004612236565b6106a2565b6101c36109f9565b6101c36102413660046122a2565b610ac5565b61026d7ffd15ea5ed15ea5ed15ea5ed15ea5ed15ea5ed15ea5ed15ea5ed15ea5ed15ea5e81565b6040519081526020016101b2565b6101c36102893660046122a2565b610af6565b6101c361029c366004612337565b610b11565b6101c36102af366004612192565b610b55565b6101ed6102c2366004612192565b610c63565b6101ed6102d5366004612192565b610c83565b6101c36102e83660046123e0565b610ce3565b61026d6102fb366004612415565b610d13565b6101c3610d99565b6006546001600160a01b03166101ed565b6101cd610dab565b6101c361032f366004612430565b610dba565b6101c361034236600461246c565b610dc9565b601b546101ed906001600160a01b031681565b6101cd610368366004612192565b610dfb565b6101a661037b36600461252c565b610fdc565b6101c361038e366004612415565b61100a565b6103a66103a1366004612415565b611083565b60405160ff90911681526020016101b2565b60006001600160e01b031982166380ac58cd60e01b14806103e957506001600160e01b03198216635b5e139f60e01b145b8061040457506301ffc9a760e01b6001600160e01b03198316145b92915050565b601b546001600160a01b0316156104685760405162461bcd60e51b815260206004820152601a60248201527f4368726973746d617320697320616c726561647920736176656400000000000060448201526064015b60405180910390fd5b600061047333611083565b90508060ff166009036104955750601b80546001600160a01b03191633179055565b60405162461bcd60e51b81526020600482015260146024820152734e6f7420656e6f756768206f726e616d656e747360601b604482015260640161045f565b6060600080546104e390612556565b80601f016020809104026020016040519081016040528092919081815260200182805461050f90612556565b801561055c5780601f106105315761010080835404028352916020019161055c565b820191906000526020600020905b81548152906001019060200180831161053f57829003601f168201915b5050505050905090565b600061057182611108565b506000908152600460205260409020546001600160a01b031690565b600061059882610c83565b9050806001600160a01b0316836001600160a01b0316036106055760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161045f565b336001600160a01b038216148061062157506106218133610fdc565b6106935760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000606482015260840161045f565b61069d8383611167565b505050565b60006106ad33610d13565b116106fa5760405162461bcd60e51b815260206004820152601f60248201527f4d757374206765742061204368726973746d6173207472656520666972737400604482015260640161045f565b60005b60ff81168411156109f25761073a85858360ff1681811061072057610720612590565b90506020020160208101906107359190612415565b6111d5565b6107795760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a590813dc9b985b595b9d60821b604482015260640161045f565b336000908152601a6020526040812090868660ff851681811061079e5761079e612590565b90506020020160208101906107b39190612415565b6001600160a01b0316815260208101919091526040016000205460ff161561080f5760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b604482015260640161045f565b6108ff83838360ff1681811061082757610827612590565b905060200281019061083991906125a6565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250506040516bffffffffffffffffffffffff193360601b1660208201526108f992506034019050604051602081830303815290604052805190602001206040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b90611239565b6001600160a01b031685858360ff1681811061091d5761091d612590565b90506020020160208101906109329190612415565b6001600160a01b03161461097c5760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964205369676e617475726560781b604482015260640161045f565b336000908152601a60205260408120600191878760ff86168181106109a3576109a3612590565b90506020020160208101906109b89190612415565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806109ea81612603565b9150506106fd565b5050505050565b610a0233610d13565b15610a445760405162461bcd60e51b8152602060048201526012602482015271416c7265616479206861732061207472656560701b604482015260640161045f565b600754604051631fbd304760e01b81523360048201526001600160a01b0390911690631fbd304790602401600060405180830381600087803b158015610a8957600080fd5b505af1158015610a9d573d6000803e3d6000fd5b505060198054925090506000610ab283612622565b9190505550610ac33360195461125d565b565b610acf33826113f6565b610aeb5760405162461bcd60e51b815260040161045f9061263b565b61069d838383611455565b61069d83838360405180602001604052806000815250610dc9565b610b196115c6565b600780546001600160a01b0319166001600160a01b038516179055610b416008836009612042565b50610b4f601182600861209a565b50505050565b604080517ffd15ea5ed15ea5ed15ea5ed15ea5ed15ea5ed15ea5ed15ea5ed15ea5ed15ea5e602082015290810182905233606090811b6bffffffffffffffffffffffff1916908201526000906074016040516020818303038152906040528051906020012060001c90507ffd15ea5ed15ea5ed15ea5ed15ea5ed15ea5ed15ea5ed15ea5ed15ea5ed15ea5e811115610c1b575050336000908152601a60209081526040808320600e546001600160a01b031684529091529020805460ff19166001179055565b60405162461bcd60e51b815260206004820152601760248201527f4e6f74207374726f6e6720656e6f756768206d61676963000000000000000000604482015260640161045f565b60118160088110610c7357600080fd5b01546001600160a01b0316905081565b6000818152600260205260408120546001600160a01b0316806104045760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161045f565b610ceb6115c6565b600780546001600160a01b0319166001600160a01b03841617905561069d601182600861209a565b60006001600160a01b038216610d7d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b606482015260840161045f565b506001600160a01b031660009081526003602052604090205490565b610da16115c6565b610ac36000611620565b6060600180546104e390612556565b610dc5338383611672565b5050565b610dd333836113f6565b610def5760405162461bcd60e51b815260040161045f9061263b565b610b4f84848484611740565b6000818152600260205260409020546060906001600160a01b0316610e7a5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161045f565b60006040518061072001604052806106e58152602001612c066106e59139905060005b6009811015610f4b57601a6000610eb386610c83565b6001600160a01b03166001600160a01b03168152602001908152602001600020600060088360098110610ee857610ee8612590565b01546001600160a01b0316815260208101919091526040016000205460ff1615610f395781610f1682611773565b604051602001610f27929190612688565b60405160208183030381529060405291505b80610f4381612622565b915050610e9d565b50610f5583610c83565b601b546001600160a01b03918216911603610f8d5780604051602001610f7b91906126b7565b60405160208183030381529060405290505b610fb581604051602001610fa19190612901565b604051602081830303815290604052611b13565b604051602001610fc5919061292b565b604051602081830303815290604052915050919050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6110126115c6565b6001600160a01b0381166110775760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161045f565b61108081611620565b50565b600080805b6009811015611101576001600160a01b0384166000908152601a6020526040812090600883600981106110bd576110bd612590565b01546001600160a01b0316815260208101919091526040016000205460ff16156110ef57816110eb81612603565b9250505b806110f981612622565b915050611088565b5092915050565b6000818152600260205260409020546001600160a01b03166110805760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161045f565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061119c82610c83565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000805b60098160ff16101561123057826001600160a01b031660088260ff166009811061120557611205612590565b01546001600160a01b03160361121e5750600192915050565b8061122881612603565b9150506111d9565b50600092915050565b60008060006112488585611c66565b9150915061125581611cab565b509392505050565b6001600160a01b0382166112b35760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161045f565b6000818152600260205260409020546001600160a01b0316156113185760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161045f565b611326600083836001611df5565b6000818152600260205260409020546001600160a01b03161561138b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161045f565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60008061140283610c83565b9050806001600160a01b0316846001600160a01b0316148061142957506114298185610fdc565b8061144d5750836001600160a01b031661144284610566565b6001600160a01b0316145b949350505050565b826001600160a01b031661146882610c83565b6001600160a01b03161461148e5760405162461bcd60e51b815260040161045f90612a2c565b6001600160a01b0382166114f05760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161045f565b6114fd8383836001611df5565b826001600160a01b031661151082610c83565b6001600160a01b0316146115365760405162461bcd60e51b815260040161045f90612a2c565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6006546001600160a01b03163314610ac35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161045f565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316036116d35760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161045f565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61174b848484611455565b61175784848484611e7d565b610b4f5760405162461bcd60e51b815260040161045f90612a71565b606060006040518060600160405280603a8152602001613368603a9139905060006040518060600160405280603d815260200161332b603d9139905060608085600003611802576040518060400160405280600681526020016503232352036360d41b815250905060405180604001604052806007815260200166686f7470696e6b60c81b8152509150611abf565b8560010361184f57604051806040016040528060078152602001663331302031333560c81b8152509050604051806040016040528060038152602001621c995960ea1b8152509150611abf565b8560020361189d57604051806040016040528060078152602001663138302032303560c81b81525090506040518060400160405280600481526020016331bcb0b760e11b8152509150611abf565b856003036118f157604051806040016040528060078152602001663238302032383560c81b81525090506040518060400160405280600a815260200169189b1d595d9a5bdb195d60b21b8152509150611abf565b8560040361194157604051806040016040528060078152602001663338302033383560c81b81525090506040518060400160405280600681526020016539b4b63b32b960d11b8152509150611abf565b8560050361198f57604051806040016040528060078152602001663136302033363560c81b81525090506040518060400160405280600481526020016319dbdb1960e21b8152509150611abf565b856006036119df57604051806040016040528060078152602001663133302035313560c81b815250905060405180604001604052806006815260200165707572706c6560d01b8152509150611abf565b85600703611a3357604051806040016040528060078152602001663235372034363560c81b81525090506040518060400160405280600a8152602001697768697465736d6f6b6560b01b8152509150611abf565b85600803611a8457604051806040016040528060078152602001660333930203534360cc1b8152509050604051806040016040528060078152602001666675636873696160c81b8152509150611abf565b60405162461bcd60e51b815260206004820152601060248201526f24b73b30b634b2102932b4b73232b2b960811b604482015260640161045f565b600060405180610340016040528061031281526020016133a2610312913990508482858584604051602001611af8959493929190612ac3565b60405160208183030381529060405295505050505050919050565b60608151600003611b3257505060408051602081019091526000815290565b60006040518060600160405280604081526020016132eb6040913990506000600384516002611b619190612b2e565b611b6b9190612b41565b611b76906004612b63565b67ffffffffffffffff811115611b8e57611b8e6122de565b6040519080825280601f01601f191660200182016040528015611bb8576020820181803683370190505b509050600182016020820185865187015b80821015611c24576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250611bc9565b5050600386510660018114611c405760028114611c5357611c5b565b603d6001830353603d6002830353611c5b565b603d60018303535b509195945050505050565b6000808251604103611c9c5760208301516040840151606085015160001a611c9087828585611f7e565b94509450505050611ca4565b506000905060025b9250929050565b6000816004811115611cbf57611cbf612b82565b03611cc75750565b6001816004811115611cdb57611cdb612b82565b03611d285760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161045f565b6002816004811115611d3c57611d3c612b82565b03611d895760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161045f565b6003816004811115611d9d57611d9d612b82565b036110805760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161045f565b6001811115610b4f576001600160a01b03841615611e3b576001600160a01b03841660009081526003602052604081208054839290611e35908490612b98565b90915550505b6001600160a01b03831615610b4f576001600160a01b03831660009081526003602052604081208054839290611e72908490612b2e565b909155505050505050565b60006001600160a01b0384163b15611f7357604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611ec1903390899088908890600401612bab565b6020604051808303816000875af1925050508015611efc575060408051601f3d908101601f19168201909252611ef991810190612be8565b60015b611f59573d808015611f2a576040519150601f19603f3d011682016040523d82523d6000602084013e611f2f565b606091505b508051600003611f515760405162461bcd60e51b815260040161045f90612a71565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061144d565b506001949350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611fb55750600090506003612039565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612009573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661203257600060019250925050612039565b9150600090505b94509492505050565b826009810192821561208a579160200282015b8281111561208a57825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190612055565b506120969291506120e0565b5090565b826008810192821561208a579160200282015b8281111561208a5781546001600160a01b0319166001600160a01b038435161782556020909201916001909101906120ad565b5b8082111561209657600081556001016120e1565b6001600160e01b03198116811461108057600080fd5b60006020828403121561211d57600080fd5b8135612128816120f5565b9392505050565b60005b8381101561214a578181015183820152602001612132565b50506000910152565b6000815180845261216b81602086016020860161212f565b601f01601f19169290920160200192915050565b6020815260006121286020830184612153565b6000602082840312156121a457600080fd5b5035919050565b80356001600160a01b03811681146121c257600080fd5b919050565b600080604083850312156121da57600080fd5b6121e3836121ab565b946020939093013593505050565b60008083601f84011261220357600080fd5b50813567ffffffffffffffff81111561221b57600080fd5b6020830191508360208260051b8501011115611ca457600080fd5b6000806000806040858703121561224c57600080fd5b843567ffffffffffffffff8082111561226457600080fd5b612270888389016121f1565b9096509450602087013591508082111561228957600080fd5b50612296878288016121f1565b95989497509550505050565b6000806000606084860312156122b757600080fd5b6122c0846121ab565b92506122ce602085016121ab565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561231d5761231d6122de565b604052919050565b80610100810183101561040457600080fd5b6000806000610240848603121561234d57600080fd5b612356846121ab565b9250602085603f86011261236957600080fd5b604051610120810181811067ffffffffffffffff8211171561238d5761238d6122de565b604052806101408701888111156123a357600080fd5b8388015b818110156123c5576123b8816121ab565b83529184019184016123a7565b508295506123d38982612325565b9450505050509250925092565b60008061012083850312156123f457600080fd5b6123fd836121ab565b915061240c8460208501612325565b90509250929050565b60006020828403121561242757600080fd5b612128826121ab565b6000806040838503121561244357600080fd5b61244c836121ab565b91506020830135801515811461246157600080fd5b809150509250929050565b6000806000806080858703121561248257600080fd5b61248b856121ab565b9350602061249a8187016121ab565b935060408601359250606086013567ffffffffffffffff808211156124be57600080fd5b818801915088601f8301126124d257600080fd5b8135818111156124e4576124e46122de565b6124f6601f8201601f191685016122f4565b9150808252898482850101111561250c57600080fd5b808484018584013760008482840101525080935050505092959194509250565b6000806040838503121561253f57600080fd5b612548836121ab565b915061240c602084016121ab565b600181811c9082168061256a57607f821691505b60208210810361258a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126125bd57600080fd5b83018035915067ffffffffffffffff8211156125d857600080fd5b602001915036819003821315611ca457600080fd5b634e487b7160e01b600052601160045260246000fd5b600060ff821660ff8103612619576126196125ed565b60010192915050565b600060018201612634576126346125ed565b5060010190565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b6000835161269a81846020880161212f565b8351908301906126ae81836020880161212f565b01949350505050565b600082516126c981846020870161212f565b7f3c672077696474683d27323527206865696768743d27323527207472616e73669201918252507f6f726d3d277472616e736c61746528333333202d3529207363616c6528302e3360208201527f2927207061696e742d6f726465723d277374726f6b652066696c6c206d61726b60408201527f657273272066696c6c3d2779656c6c6f77273e3c7061746820643d274d34343160608201527f2e30372c3137312e3032326c2d3135322e3338352d32322e3134346c2d36382e60808201527f31352d3133382e3038356c2d36382e3134382c3133382e3038354c302c31373160a08201527f2e3032326c3131302e3236382c3130372e3438344c38342e3233372c3433302e60c08201527f3237376c3133362e3239382d37312e3635366c3133362e3239392c37312e363560e08201527f366c2d32362e3032392d3135312e37374c3434312e30372c3137312e3032327a6101008201527f204d3232302e3533352c3331332e3031386c2d38322e3638382c34332e3437336101208201527f6c31352e3739312d39322e3037356c2d36362e3839362d36352e3230386c39326101408201527f2e3434392d31332e3433356c34312e3334342d38332e3737346c34312e3334366101608201527f2c38332e3737336c39322e3434392c31332e3433356c2d36362e3839362c36356101808201527f2e3230386c31352e3739312c39322e3037364c3232302e3533352c3331332e306101a082015269189c3d13979f1e17b39f60b11b6101c08201526101ca01919050565b6000825161291381846020870161212f565b651e17b9bb339f60d11b920191825250600601919050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c7b226e616d81527f65223a22437230776e204368726973746d6173222c226465736372697074696f60208201527f6e223a224e465420746f20747261636b2070726f6772657373206f662074686560408201527f20437230776e204368726973746d61732070757a7a6c6520435446206576656e6060820152621d088b60ea1b60808201527f22696d616765223a22646174613a696d6167652f7376672b786d6c3b626173656083820152620d8d0b60ea1b60a382015260008251612a138160a685016020870161212f565b61227d60f01b60a693909101928301525060a801919050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008651612ad5818460208b0161212f565b865190830190612ae9818360208b0161212f565b8651910190612afc818360208a0161212f565b8551910190612b0f81836020890161212f565b8451910190612b2281836020880161212f565b01979650505050505050565b80820180821115610404576104046125ed565b600082612b5e57634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615612b7d57612b7d6125ed565b500290565b634e487b7160e01b600052602160045260246000fd5b81810381811115610404576104046125ed565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612bde90830184612153565b9695505050505050565b600060208284031215612bfa57600080fd5b8151612128816120f556fe3c73766720786d6c6e733d27687474703a2f2f7777772e77332e6f72672f323030302f73766727206865696768743d27383030272077696474683d27383030272076696577426f783d273020302038303020383030273e3c726563742066696c6c3d27626c61636b272077696474683d273130302527206865696768743d273130302527202f3e3c67207472616e73666f726d3d277472616e736c6174652831343020393329273e3c7061746820643d274d3137332e3935203233302e3737632d392e38342d332e32392d31392e31362d362e32392d32382e33392d392e3536712d382e31312d322e38382d31362d362e3435632d392e38382d342e35312d31322e332d31342e34322d352e35332d32322e38322033332e37322d34312e37392036322e37362d38362e37362039302e31392d3133322e38312031302d31362e37312031392e37332d33332e35332032392e36342d35302e323720372d31312e37382032322e352d31312e38352032392e3634203020362e32322031302e33312031312e39312032302e39342031382e32322033312e31392031372e33382032382e32352033342e34362035362e372035322e36332038342e34332031332e30372031392e38312032372e362033382e35392034312e35332035372e383120322e333920332e3320352e313220362e333420372e363820392e353220362e363920382e333320342e34392031382e382d352e35322032322e38332d31322e383520352e31392d323620392e35342d33392e30382031342e32332d312e37312e36322d332e343620312e31312d352e373620312e383420322e3434203420342e353620372e363720362e38342031312e32312032322e31312033342e34392034342e342036382e38372036392e3234203130312e343920392e37362031322e38322032302032352e32372033302e31322033372e383520342e363720352e383320352e3137203133202e36352031382e33336131392e34372031392e343720302030312d362e363920342e3733203338342e3739203338342e373920302030312d34332e38362031372e3336632d312e392e36312d332e373720312e32392d362e333920322e313920332e373620352e393320372e31322031312e33372031302e36342031362e37312032362033392e35312035322e36372037382e35312038322e3036203131352e3620382e36332031302e38392031372e362032312e35322032362e34332033322e323720322e333520322e383620342e383620352e363120352e333920392e35322e393420362e38392d322e33372031322e37312d392e35332031352e38392d31302e333220342e35392d32302e363720392e31342d33312e31342031332e3337613534302e3236203534302e323620302030312d38302e392032352e3633632d31382e313820342e31382d33362e363920372d35352e30352031302e33382d312e37382e33332d332e35342e38342d352e363920312e333576352e3831633020382e35342e30352031372e303720302032352e36312d2e303620362e35352d332e332031312e35382d392e362031332e34613236362e3232203236362e323220302030312d32382e35332037632d31332e383620322e33392d32372e383820342d343220332e34372d32302e37382d2e38322d34312e332d332e34352d36312e32322d392e37312d382e38312d322e37372d31312e37392d372d31312e38312d31362e3339563636342e36632d322e33372d2e35332d342e332d312e312d362e32362d312e3339613632322e3036203632322e303620302030312d36392e35342d31342e3236203630392e3331203630392e333120302030312d39362d33342e3635632d382e32322d332e37332d31312e35342d392d392e39332d31376131362e37362031362e37362030203031332e36332d372e336333322e312d33372e32382036312d37362e39342038382e34392d3131372e373120392e37332d31342e34352031392e32372d32392032382e38382d34332e35352e392d312e333720312e36392d322e3820322e38372d342e37372d342e31312d312e34392d372e39312d322e37372d31312e36342d342e3232712d31382e36312d372e32342d33372e322d31342e3632632d342e32352d312e36392d372e38312d342e332d392e38362d382e35342d322e37382d352e37352d312e30392d31302e373520322e36382d31352e343220382e32372d31302e32332031362e38382d32302e32322032342e36372d33302e38322031342e35392d31392e38352032392d33392e38362034322e39322d36302e31392031322e33352d31382032332e39322d33362e36312033352e38312d3535202e37362d312e313920312e33342d322e353520322e32372d342e33397a272066696c6c3d272333346234303127202f3e3c2f673e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f29273e3c636972636c65207472616e73666f726d3d276d6174726978283120302030202e393832393520313438203134382e303329272066696c6c3d273c67207061696e742d6f726465723d277374726f6b652066696c6c206d61726b65727327207472616e73666f726d3d277472616e736c6174652827207374726f6b653d27233030302720723d273530272f3e3c726563742077696474683d2732352e31343727206865696768743d2731322e353733272072783d2730272072793d273027207472616e73666f726d3d276d617472697828312e31362030203020312e3234203133332e3431352039302e30323529272066696c6c3d272365386234303027207374726f6b653d272330303027207374726f6b652d77696474683d272e35272f3e3c7061746820643d274d3133332e343135203130332e353135632d2e35393720332e31362d312e35393220332e303136203020322e313031713020352e34313720312e38333420332e32336c312e3936392d332e323363312e34333420342e32343920322e3920352e32343920322e37383920332e393638732e3630362d322e35353120322e3133322d332e383535632d2e33313320312e333720312e32363920332e33303720322e37303720342e31303120312e3936392d2e373320332e3139382d322e363920332e3135342d332e38353520312e3338342e30363420332e303620322e32343320332e36353320332e3933372e3731372d2e33393820322e30312d322e35343720322e3632352d342e312d2e353520312e38323520312e33333320332e3120322e383720332e3434342e30382d312e3834372e3631352d332e33373220312e3233312d322e3239372e392d2e353620322e3037342e37373420322e343620322e32393720312e3931342d2e33393920322e3834342d312e39343220312e3734362d332e31313720312e3235332d2e3430362e37362d312e37363720302d322e363234272066696c6c3d272365386234303027207374726f6b653d272330303027207374726f6b652d77696474683d272e3627207374726f6b652d6c696e656a6f696e3d27726f756e64272f3e3c7061746820643d274d3133352e32352038392e38383963382e3532332d33332e3633342031362e3930382d33332e3730312032352e3135352030272066696c6c3d276e6f6e6527207374726f6b653d272330303032303527207374726f6b652d77696474683d27312e35272f3e3c2f673ea26469706673582212202025421d6ea55b1988ccb5557288598beec0509e897250cb5d4efa2e3185e6cd64736f6c63430008100033

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

0000000000000000000000002af26b58802cf09af1b0be0c0ba82af45691667e000000000000000000000000e4c58b0e88418a9a6db163edd860b48b4a8aa28a0000000000000000000000001acd5e8e822f04683f9695bc819c3e99f7d43280000000000000000000000000e8c15fb0c9872d8fc30bd5948717fe125335e2f90000000000000000000000000573221eedd49feacb8c0b347f4f32a6411eae04000000000000000000000000c1c5c5fa50500923330bedfa2dadcbf55e7690d6000000000000000000000000c0ffee000000000000000000000000000000dead000000000000000000000000cf1783ca45e9bc3dea1819e2eb448030e85ea286000000000000000000000000a211338c33a9bdd29f541478ecfef51417904be9

-----Decoded View---------------
Arg [0] : ornament_ (address[9]): 0x2af26b58802CF09AF1B0bE0C0Ba82AF45691667E,0xE4c58b0e88418a9a6Db163EDd860B48B4a8Aa28A,0x1aCd5e8e822F04683f9695bC819C3e99F7D43280,0xe8c15fB0C9872D8fC30BD5948717fe125335E2f9,0x0573221EedD49feacb8c0b347f4f32A6411eae04,0xC1c5c5Fa50500923330Bedfa2daDcBF55e7690d6,0xC0fFeE000000000000000000000000000000DEAD,0xcF1783Ca45E9BC3deA1819e2EB448030e85Ea286,0xA211338c33A9Bdd29F541478ECFEf51417904Be9

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 0000000000000000000000002af26b58802cf09af1b0be0c0ba82af45691667e
Arg [1] : 000000000000000000000000e4c58b0e88418a9a6db163edd860b48b4a8aa28a
Arg [2] : 0000000000000000000000001acd5e8e822f04683f9695bc819c3e99f7d43280
Arg [3] : 000000000000000000000000e8c15fb0c9872d8fc30bd5948717fe125335e2f9
Arg [4] : 0000000000000000000000000573221eedd49feacb8c0b347f4f32a6411eae04
Arg [5] : 000000000000000000000000c1c5c5fa50500923330bedfa2dadcbf55e7690d6
Arg [6] : 000000000000000000000000c0ffee000000000000000000000000000000dead
Arg [7] : 000000000000000000000000cf1783ca45e9bc3dea1819e2eb448030e85ea286
Arg [8] : 000000000000000000000000a211338c33a9bdd29f541478ecfef51417904be9


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

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