ETH Price: $3,826.72 (+4.88%)

Token

0xmusic (music)
 

Overview

Max Total Supply

0 music

Holders

351

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
nft-pizza.eth
Balance
0 music
0x7667f9bf30460286f3af0c2f333e1a1aceb8fd44
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

0xmusic is a collection of generative audiovisual DJs - which are called 0xDJs. Each 0xDJ can create an infinite number of music pieces in real time. All code is stored on the Ethereum blockchain.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Oxmusic

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 15 : 0xmusic.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "ERC721.sol";
import "Ownable.sol";
import "ERC721Enumerable.sol";
import "Strings.sol";
import "Counters.sol";
import "ReentrancyGuard.sol";


contract Oxmusic is ERC721, Ownable, ReentrancyGuard {

    uint256 private constant fullMintPrice = 0.1 ether;
    uint256 private constant wlPrice = 0.07 ether;
    uint256 private constant daoPrice = 0.05 ether;
    uint256 private randNonce = 0;
    uint256 private MAX_SUPPLY;
    bool public saleIsActive = false;
    bool public wlSaleIsActive = false;
    Counters.Counter public counter;

    string private  baseURLAnimation;
    string private baseURLImage;
    string private blurredImage;
    bool public revealActive = false;

    struct Trait {
        uint tokenId;
        uint len;
        uint id;
        uint32 dj;
        uint staticSongsAllowed;
    }

    struct TokenUrIDetails {
       string orientation;
       string name;
       string records;
       string cycleLength;
       string length;
       string djStr;
       string tokenId;
       string description;
       string animationUrl;
       string imgUrl;
       string hexColor;
       string entropy;
    }

    struct RandDetails{
        uint rDJ;
        uint rId;
        uint rLen;
        uint rRec;
    }

  //  event MintDetails(uint randdj, uint len, uint records, address _from, address _to, uint _amount, uint tokenId);
    mapping(uint32 => string) private djToNameIndex;
    mapping(uint32 => string) private djToOrientation;
    mapping(uint32 => string) private djToEntropy;
    mapping(uint => string) private bgIdToHex;
    mapping(address => uint32) public whiteList;
    mapping(address => uint32) public prefList;
    mapping(address => uint32) public numberMinted;
    mapping(uint => string) public scriptIdxToTx; 

    mapping(uint256 => Trait) private tokenIdToTrait;
    mapping(address => uint32) public compMints;

    constructor(string memory baseURLAnimationInput, string memory baseURLImageInput, string memory blurred, uint maxSupply) 
    ERC721("0xmusic", "music")
    {
        MAX_SUPPLY = maxSupply;
        baseURLAnimation = baseURLAnimationInput;
        baseURLImage = baseURLImageInput;
        blurredImage = blurred;

        djToNameIndex[0] = "420";
        djToNameIndex[1] = "Athena";
        djToNameIndex[2] = "Dimend";
        djToNameIndex[3] = "Drip";
        djToNameIndex[4] = "Syn City";
        djToNameIndex[5] = "Handel";
        djToNameIndex[6] = "Bach";
        djToNameIndex[7] = "Serena";

        djToOrientation[0] = "southpaw";
        djToOrientation[1] = "southpaw";
        djToOrientation[2] = "dexter";
        djToOrientation[3] = "dexter";
        djToOrientation[4] = "dexter";
        djToOrientation[5] = "vanward";
        djToOrientation[6] = "vanward";
        djToOrientation[7] = "southpaw";
        bgIdToHex[3] = "2B2727";
        bgIdToHex[6] = "192F20";
        bgIdToHex[27] = "2B192F";

        djToEntropy[0] = "high";
        djToEntropy[1] = "high";
        djToEntropy[2] = "medium";
        djToEntropy[3] = "low";
        djToEntropy[4] = "high";
        djToEntropy[5] = "low";
        djToEntropy[6] = "low";
        djToEntropy[7] = "medium";

    }

    function setSaleIsActive(bool isActive) external onlyOwner {
        saleIsActive = isActive;
    }

    function setIsRevealActive(bool isActive) external onlyOwner {
        revealActive = isActive;
    }

    function setWhiteListSaleIsActive(bool isActive) external onlyOwner {
        wlSaleIsActive = isActive;
    }

    function setBaseURLAnimation(string memory baseURI) external onlyOwner {
        baseURLAnimation = baseURI;
    }

    function setBaseURLImage(string memory baseURI) external onlyOwner {
        baseURLImage = baseURI;
    }

    function addToWL(address input, uint32 count) external onlyOwner {
        whiteList[input] = count;
    }

    function addToDao(address input) external onlyOwner {
        prefList[input] = 2;
    }

    function addToCompMint(address input, uint32 count) external onlyOwner {
        compMints[input] = count;
    }

    function mintWL() external payable {
        require(wlSaleIsActive, "Sale must be active");
        require(whiteList[msg.sender] > 0, "You are not elligible");
        require(wlPrice <= msg.value, "Ether value sent is not correct");
        whiteList[msg.sender] -= 1;
        _mintInternal();
    }

    function mintDao() external payable {
        require(wlSaleIsActive, "Sale must be active");
        require(prefList[msg.sender] > 0, "You are not elligible");
        require(daoPrice <= msg.value, "Ether value sent is not correct");

        prefList[msg.sender] -= 1;
        _mintInternal();
    }

    function mintArtist() external onlyOwner {
        _mintInternal();
    }

    function mintComp() external {
        require(wlSaleIsActive, "Sale must be active");
        require(compMints[msg.sender] > 0, "You are not elligible");
        compMints[msg.sender] -= 1;
        _mintInternal();
    }

    function mint() external payable {
        require(saleIsActive, "Sale must be active to mint");
        require(fullMintPrice <= msg.value, "Ether value sent is not correct");
        require(numberMinted[msg.sender] < 8, "Exceeded number minted");

        _mintInternal();
    }

    function _mintInternal() private  {
        require(Counters.current(counter) < MAX_SUPPLY, "Purchase would exceed max supply");
        uint mintIndex = Counters.current(counter);
        RandDetails memory details = RandDetails(uint(random(100)),random(460) + 1,uint(random(10)),uint(random(100)));
        uint32 randDJIdx;
        if(details.rDJ > 0 && details.rDJ < 18){
            randDJIdx = 4;
        } else if(details.rDJ < 32){
            randDJIdx = 3;
        } else if(details.rDJ < 43){
            randDJIdx = 6;
        } else if(details.rDJ < 48){
            randDJIdx = 5;
        } else if(details.rDJ < 59){
            randDJIdx = 7;
        } else if(details.rDJ < 73){
            randDJIdx = 1;
        } else if(details.rDJ < 86){
            randDJIdx = 0;
        } else {
            randDJIdx = 2;
        }
        uint id = details.rId <= 200 ? details.rId/2 : details.rId - 100; 
        uint32 len = details.rLen < 5 ? 2 : details.rLen < 9 ? 3 : 4;
        uint32 records = details.rRec < 70 ? 3 : details.rRec < 96 ? 6 : 27;

        Trait memory t = Trait(mintIndex, len, id, randDJIdx, records);

        tokenIdToTrait[mintIndex] = t;
        numberMinted[msg.sender] = numberMinted[msg.sender] + 1;

      //  emit MintDetails(randDJIdx, len, records, owner(), msg.sender, msg.value, mintIndex);

        Counters.increment(counter);

        _safeMint(msg.sender, mintIndex);
    }

    function getImageDetails(uint256 tokenId) external view returns(uint32,uint, uint, uint) {
        Trait memory t = tokenIdToTrait[tokenId];
        return (t.dj, t.id, t.len, t.staticSongsAllowed);
    }

    function getImageURL(uint256 tokenId) public view returns (string memory){
        Trait memory t = tokenIdToTrait[tokenId];
        if (revealActive) {
            return string(abi.encodePacked(baseURLImage,Strings.toString(t.dj),"/",Strings.toString(t.id),"/", Strings.toString(t.staticSongsAllowed) ,'/img.png"'));
        } else {
            return string(abi.encodePacked(blurredImage, '"'));
        }
    }

    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        Trait memory t = tokenIdToTrait[tokenId];

        TokenUrIDetails memory details = TokenUrIDetails(
            djToOrientation[t.dj],
            djToNameIndex[t.dj],
            Strings.toString(t.staticSongsAllowed),
            t.len == 2 ? "short" : t.len == 3 ? "medium" : "long",
            Strings.toString(t.len),
            Strings.toString(t.dj),
            Strings.toString(t.tokenId),
            '"description": "Your generative DJ. Hiting play destroys the previous song and creates a brand new song in real-time"',
            revealActive ? string(abi.encodePacked(baseURLAnimation,Strings.toString(t.dj),"&id=",
                Strings.toString(t.id),"&len=",Strings.toString(t.len), "&bg=",Strings.toString(t.staticSongsAllowed))): "",
            getImageURL(tokenId),
            bgIdToHex[t.staticSongsAllowed],
            djToEntropy[t.dj]
            );

        string memory djTrait = string(abi.encodePacked('{"trait_type": "0xDJ", "value": "', details.name, '"},{"trait_type": "Orientation", "value": "', details.orientation, '"} ,'));
        string memory cycleLengthTrait = string(abi.encodePacked('{"trait_type": "Cycle length", "value": "', details.cycleLength, '"} ,'));
        string memory idTrait = string(abi.encodePacked('{"trait_type": "HSL Palette", "value": "', Strings.toString(t.id), '"} ,'));
        string memory recordsTrait = string(abi.encodePacked('{"trait_type": "Records", "value": "', details.records, '"}]}'));
        string memory entropyTrait = string(abi.encodePacked('{"trait_type": "Entropy", "value": "', details.entropy, '"} ,'));
        string memory nameT = string(abi.encodePacked('{"name": "',  revealActive ? details.name : "0xDJ", " #", details.tokenId, '",'));
        string memory attributes = revealActive ? string(abi.encodePacked('"attributes": [', 
                djTrait, cycleLengthTrait, idTrait, entropyTrait, recordsTrait)) : '"attributes": []}';

        return string(abi.encodePacked('data:application/json,', nameT, details.description, ',"image":  "', 
            details.imgUrl, ',"animation_url": "', details.animationUrl, '","external_url": "https://www.0xmusic.com", "background_color": "', details.hexColor, '" ,', 
                attributes));
        
    }

    function getMasterFromTokenId(uint256 tokenId) external view returns (string memory) {
        Trait memory t = tokenIdToTrait[tokenId];
        return string(abi.encodePacked(djToNameIndex[t.dj],' ',Strings.toString(tokenId)));

    }

    function random(uint upperLimit) private returns (uint) {
        randNonce++; 
        return (uint(keccak256(abi.encodePacked(block.difficulty, msg.sender, block.timestamp, randNonce)))) % upperLimit;
    } 

    function withdrawEth() external onlyOwner nonReentrant {
        Address.sendValue(payable(owner()), address(this).balance);
    }

    function setScriptAtIndex(uint idx, string memory txId) external onlyOwner {
        scriptIdxToTx[idx] = txId;
    }
 
}

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

pragma solidity ^0.8.0;

import "IERC721.sol";
import "IERC721Receiver.sol";
import "IERC721Metadata.sol";
import "Address.sol";
import "Context.sol";
import "Strings.sol";
import "ERC165.sol";

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

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

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

pragma solidity ^0.8.0;

import "IERC165.sol";

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

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

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

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

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

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

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

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

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

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

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

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

File 4 of 15 : 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 5 of 15 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 6 of 15 : 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 7 of 15 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 8 of 15 : 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 9 of 15 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "IERC165.sol";

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

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

pragma solidity ^0.8.0;

import "Context.sol";

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"baseURLAnimationInput","type":"string"},{"internalType":"string","name":"baseURLImageInput","type":"string"},{"internalType":"string","name":"blurred","type":"string"},{"internalType":"uint256","name":"maxSupply","type":"uint256"}],"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":[{"internalType":"address","name":"input","type":"address"},{"internalType":"uint32","name":"count","type":"uint32"}],"name":"addToCompMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"input","type":"address"}],"name":"addToDao","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"input","type":"address"},{"internalType":"uint32","name":"count","type":"uint32"}],"name":"addToWL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"compMints","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"counter","outputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getImageDetails","outputs":[{"internalType":"uint32","name":"","type":"uint32"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getImageURL","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getMasterFromTokenId","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintArtist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintComp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintDao","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintWL","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"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":[{"internalType":"address","name":"","type":"address"}],"name":"prefList","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"scriptIdxToTx","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURLAnimation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURLImage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isActive","type":"bool"}],"name":"setIsRevealActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isActive","type":"bool"}],"name":"setSaleIsActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"idx","type":"uint256"},{"internalType":"string","name":"txId","type":"string"}],"name":"setScriptAtIndex","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isActive","type":"bool"}],"name":"setWhiteListSaleIsActive","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":"","type":"address"}],"name":"whiteList","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wlSaleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

60806040526000600855600a805461ffff19169055600f805460ff191690553480156200002b57600080fd5b5060405162004628380380620046288339810160408190526200004e9162000c27565b604080518082018252600781526630786d7573696360c81b6020808301918252835180850190945260058452646d7573696360d81b9084015281519192916200009a9160009162000ad6565b508051620000b090600190602084019062000ad6565b505050620000cd620000c762000a8060201b60201c565b62000a84565b600160075560098190558351620000ec90600c90602087019062000ad6565b5082516200010290600d90602086019062000ad6565b5081516200011890600e90602085019062000ad6565b5060408051808201909152600381526203432360ec1b6020808301918252600080526010905290516200016d917f6e0956cda88cad152e89927e53611735b61a5c762d1428573c6931b0a5efcb019162000ad6565b50604080518082019091526006815265417468656e6160d01b60208083019182526001600052601090529051620001c6917f8c6065603763fec3f5742441d3833f3f43b982453612d76adb39a885e3006b5f9162000ad6565b50604080518082019091526006815265111a5b595b9960d21b602080830191825260026000526010905290516200021f917f853b2fefe141400fef543280f93d98bd49996069f632d0d20236afeeed8e46a29162000ad6565b506040805180820190915260048152630447269760e41b6020808301918252600360005260109052905162000276917fb3edd0d534d647cffdae9f1294f11ad21f3fcf2814bea44c92bbb8d384a57d9e9162000ad6565b5060408051808201909152600881526753796e204369747960c01b60208083019182526004600052601090529051620002d1917f1588ac671d87f82adc0e6ae8ab009c0de98f92a20243897597e566bc59b9c1269162000ad6565b5060408051808201909152600681526512185b99195b60d21b602080830191825260056000526010905290516200032a917f61a7346ab5ebdac457db2a901eaf1b805239b6049a1b2f34bab85e2e274f39cb9162000ad6565b50604080518082019091526004815263084c2c6d60e31b6020808301918252600660005260109052905162000381917f20edfb71820f6f00f6a84ccfefb91587cd9f849f8349b0a3182a4795899d9cd99162000ad6565b50604080518082019091526006815265536572656e6160d01b60208083019182526007600052601090529051620003da917f4ef6145e44e4298293af15ae5f84f922a836b1d6db608fd5008f32a528b312a99162000ad6565b50604080518082019091526008815267736f75746870617760c01b60208083019182526000805260119052905162000434917f4ad3b33220dddc71b994a52d72c06b10862965f7d926534c05c00fb7e819e7b79162000ad6565b50604080518082019091526008815267736f75746870617760c01b602080830191825260016000526011905290516200048f917f17bc176d2408558f6e4111feebc3cab4e16b63e967be91cde721f4c8a488b5529162000ad6565b506040805180820190915260068152653232bc3a32b960d11b60208083019182526002600052601190529051620004e8917f08037d7b151cc412d25674a4e66b334d9ae9d2e5517a7feaae5cdb828bf1c6289162000ad6565b506040805180820190915260068152653232bc3a32b960d11b6020808301918252600360005260119052905162000541917f9bfbaa59f8e10e7868f8b402de9d605a390c45ddaebd8c9de3c6f31e733c87ff9162000ad6565b506040805180820190915260068152653232bc3a32b960d11b602080830191825260046000526011905290516200059a917f251164fe1d8864fe5e86082eae9c288bc2b58695a4d28538dfe86e9e4f1755859162000ad6565b506040805180820190915260078152661d985b9dd85c9960ca1b60208083019182526005600052601190529051620005f4917fc550213cee30afd5e67ccba7be3d381bbc169034ae08eb3ec9168caca9fe55e79162000ad6565b506040805180820190915260078152661d985b9dd85c9960ca1b602080830191825260066000526011905290516200064e917ffb9ce45064c7e7d9bf9deb4750ba7c94ab3d6e7418c5d76bf69966d39a9d42f69162000ad6565b50604080518082019091526008815267736f75746870617760c01b60208083019182526007600052601190529051620006a9917f98ae0176de2844d118e1a6decfe92f97691bedbc578c71fc8d5c4374be77e50c9162000ad6565b5060408051808201909152600681526532423237323760d01b6020808301918252600360005260139052905162000702917f0d2a6872ef858a7f8ead18dc4f3f2e8d35c853d47e2816cbb9cdd49202554e0c9162000ad6565b506040805180820190915260068082526503139324632360d41b6020808401918252600092909252601390915290516200075e917f709d0e3cf89777a1e1f9c99632e4494f29b0327befd0df15e277a12d948257959162000ad6565b506040805180820190915260068152651921189c992360d11b6020808301918252601b600052601390529051620007b7917ff3cd27dfe747765b27d8522142642c4733522102ef4f94e4dee0a2f6b96cd1239162000ad6565b506040805180820190915260048152630d0d2ced60e31b6020808301918252600080526012905290516200080d917f7e7fa33969761a458e04f477e039a608702b4f924981d6653935a8319a08ad7b9162000ad6565b506040805180820190915260048152630d0d2ced60e31b6020808301918252600160005260129052905162000864917f71a67924699a20698523213e55fe499d539379d7769cd5567e2c45d583f815a39162000ad6565b506040805180820190915260068152656d656469756d60d01b60208083019182526002600052601290529051620008bd917f8e1fee8c88a9e04123b21e90cae2727a7715bf522a1e46eb5934ccd05203a6b29162000ad6565b50604080518082019091526003808252626c6f7760e81b60208084019182526000929092526012909152905162000916917f0f36ad39aee03e7108cc48f54934702a5f0d4066f10344cebf8198978d86976a9162000ad6565b50604080518082019091526004808252630d0d2ced60e31b60208084019182526000929092526012909152905162000970917fb4fcd034df3d20faa1c133b66d862ce92732727d40916b48ffb4020cb00fe0539162000ad6565b506040805180820190915260038152626c6f7760e81b60208083019182526005600052601290529051620009c6917f45429b9195d4ec5c0cf6c69e9c21a4ca0ea773b702c2de5735f85d2631f267469162000ad6565b506040805180820190915260038152626c6f7760e81b6020808301918252600660005260129052905162000a1c917f1223f9031f9dca49a7844c397098ce9a4e80513444d0a8bb59820dff564808e49162000ad6565b506040805180820190915260068152656d656469756d60d01b6020808301918252600760005260129052905162000a75917f724fd36bd271795fe7866d4cc83b61084ef704502b00c2e0b28047123b3c1acc9162000ad6565b505050505062000d0f565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805462000ae49062000cbc565b90600052602060002090601f01602090048101928262000b08576000855562000b53565b82601f1062000b2357805160ff191683800117855562000b53565b8280016001018555821562000b53579182015b8281111562000b5357825182559160200191906001019062000b36565b5062000b6192915062000b65565b5090565b5b8082111562000b61576000815560010162000b66565b600082601f83011262000b8d578081fd5b81516001600160401b038082111562000baa5762000baa62000cf9565b6040516020601f8401601f191682018101838111838210171562000bd25762000bd262000cf9565b604052838252858401810187101562000be9578485fd5b8492505b8383101562000c0c578583018101518284018201529182019162000bed565b8383111562000c1d57848185840101525b5095945050505050565b6000806000806080858703121562000c3d578384fd5b84516001600160401b038082111562000c54578586fd5b62000c628883890162000b7c565b9550602087015191508082111562000c78578485fd5b62000c868883890162000b7c565b9450604087015191508082111562000c9c578384fd5b5062000cab8782880162000b7c565b606096909601519497939650505050565b60028104600182168062000cd157607f821691505b6020821081141562000cf357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b6139098062000d1f6000396000f3fe60806040526004361061025c5760003560e01c806395c0223611610144578063d44ef9d4116100b6578063e985e9c51161007a578063e985e9c5146106a2578063eb8d2444146106c2578063ee1daa43146106d7578063f1fbdfc1146106ec578063f2fde38b1461070c578063fb34c7861461072c5761025c565b8063d44ef9d41461060d578063da7c4f541461062d578063dc33e68114610642578063e5d6919714610662578063e7f3762a146106825761025c565b8063c61781ed11610108578063c61781ed14610570578063c87b56dd14610590578063cded5b0c146105b0578063cecd6700146105d0578063d1b1ed7b146105d8578063d3d88bcd146105f85761025c565b806395c02236146104e657806395d89b4114610506578063a0ef91df1461051b578063a22cb46514610530578063b88d4fde146105505761025c565b806333fe3066116101dd5780635554da6d116101a15780635554da6d1461043a57806361bc221a1461045a5780636352211e1461047c57806370a082311461049c578063715018a6146104bc5780638da5cb5b146104d15761025c565b806333fe306614610398578063372c12b1146103b857806339a7b1d2146103e557806339c5c1a71461040557806342842e0e1461041a5761025c565b80630a128a9a116102245780630a128a9a146103285780631249c58b1461034857806323b872dd14610350578063274611431461037057806327ecbb16146103905761025c565b806301ffc9a71461026157806302c889891461029757806306fdde03146102b9578063081812fc146102db578063095ea7b314610308575b600080fd5b34801561026d57600080fd5b5061028161027c36600461287d565b61075c565b60405161028e919061306e565b60405180910390f35b3480156102a357600080fd5b506102b76102b2366004612863565b6107a4565b005b3480156102c557600080fd5b506102ce6107ff565b60405161028e9190613079565b3480156102e757600080fd5b506102fb6102f63660046128e8565b610891565b60405161028e919061301d565b34801561031457600080fd5b506102b76103233660046127fc565b6108d4565b34801561033457600080fd5b506102b7610343366004612825565b61096c565b6102b76109de565b34801561035c57600080fd5b506102b761036b36600461271f565b610a69565b34801561037c57600080fd5b506102b761038b366004612900565b610aa1565b6102b7610aff565b3480156103a457600080fd5b506102b76103b33660046126d3565b610bcb565b3480156103c457600080fd5b506103d86103d33660046126d3565b610c31565b60405161028e91906136a6565b3480156103f157600080fd5b506102b7610400366004612863565b610c49565b34801561041157600080fd5b50610281610ca2565b34801561042657600080fd5b506102b761043536600461271f565b610cab565b34801561044657600080fd5b506102b76104553660046128b5565b610cc6565b34801561046657600080fd5b5061046f610d1c565b60405161028e919061369d565b34801561048857600080fd5b506102fb6104973660046128e8565b610d22565b3480156104a857600080fd5b5061046f6104b73660046126d3565b610d57565b3480156104c857600080fd5b506102b7610d9b565b3480156104dd57600080fd5b506102fb610de4565b3480156104f257600080fd5b506102ce6105013660046128e8565b610df3565b34801561051257600080fd5b506102ce610e8d565b34801561052757600080fd5b506102b7610e9c565b34801561053c57600080fd5b506102b761054b3660046127d3565b610f1b565b34801561055c57600080fd5b506102b761056b36600461275a565b610f2d565b34801561057c57600080fd5b506102ce61058b3660046128e8565b610f6c565b34801561059c57600080fd5b506102ce6105ab3660046128e8565b610ff3565b3480156105bc57600080fd5b506103d86105cb3660046126d3565b611663565b6102b761167b565b3480156105e457600080fd5b506102ce6105f33660046128e8565b611721565b34801561060457600080fd5b506102816117f2565b34801561061957600080fd5b506102b7610628366004612863565b611800565b34801561063957600080fd5b506102b7611852565b34801561064e57600080fd5b506103d861065d3660046126d3565b611891565b34801561066e57600080fd5b506102b761067d366004612825565b6118a9565b34801561068e57600080fd5b506102b761069d3660046128b5565b61191b565b3480156106ae57600080fd5b506102816106bd3660046126ed565b61196d565b3480156106ce57600080fd5b5061028161199b565b3480156106e357600080fd5b506102b76119a4565b3480156106f857600080fd5b506103d86107073660046126d3565b611a23565b34801561071857600080fd5b506102b76107273660046126d3565b611a3b565b34801561073857600080fd5b5061074c6107473660046128e8565b611aac565b60405161028e94939291906136b7565b60006001600160e01b031982166380ac58cd60e01b148061078d57506001600160e01b03198216635b5e139f60e01b145b8061079c575061079c82611b04565b90505b919050565b6107ac611b1d565b6001600160a01b03166107bd610de4565b6001600160a01b0316146107ec5760405162461bcd60e51b81526004016107e3906134f7565b60405180910390fd5b600a805460ff1916911515919091179055565b60606000805461080e906137a2565b80601f016020809104026020016040519081016040528092919081815260200182805461083a906137a2565b80156108875780601f1061085c57610100808354040283529160200191610887565b820191906000526020600020905b81548152906001019060200180831161086a57829003601f168201915b5050505050905090565b600061089c82611b21565b6108b85760405162461bcd60e51b81526004016107e3906134ab565b506000908152600460205260409020546001600160a01b031690565b60006108df82610d22565b9050806001600160a01b0316836001600160a01b031614156109135760405162461bcd60e51b81526004016107e3906135a5565b806001600160a01b0316610925611b1d565b6001600160a01b031614806109415750610941816106bd611b1d565b61095d5760405162461bcd60e51b81526004016107e390613351565b6109678383611b3e565b505050565b610974611b1d565b6001600160a01b0316610985610de4565b6001600160a01b0316146109ab5760405162461bcd60e51b81526004016107e3906134f7565b6001600160a01b03919091166000908152601960205260409020805463ffffffff191663ffffffff909216919091179055565b600a5460ff16610a005760405162461bcd60e51b81526004016107e390613297565b3467016345785d8a00001115610a285760405162461bcd60e51b81526004016107e390613203565b33600090815260166020526040902054600863ffffffff90911610610a5f5760405162461bcd60e51b81526004016107e390613575565b610a67611bac565b565b610a7a610a74611b1d565b82611e3f565b610a965760405162461bcd60e51b81526004016107e3906135e6565b610967838383611ec4565b610aa9611b1d565b6001600160a01b0316610aba610de4565b6001600160a01b031614610ae05760405162461bcd60e51b81526004016107e3906134f7565b600082815260176020908152604090912082516109679284019061257d565b600a54610100900460ff16610b265760405162461bcd60e51b81526004016107e39061308c565b3360009081526015602052604090205463ffffffff16610b585760405162461bcd60e51b81526004016107e39061366e565b3466b1a2bc2ec500001115610b7f5760405162461bcd60e51b81526004016107e390613203565b336000908152601560205260408120805460019290610ba590849063ffffffff16613751565b92506101000a81548163ffffffff021916908363ffffffff160217905550610a67611bac565b610bd3611b1d565b6001600160a01b0316610be4610de4565b6001600160a01b031614610c0a5760405162461bcd60e51b81526004016107e3906134f7565b6001600160a01b03166000908152601560205260409020805463ffffffff19166002179055565b60146020526000908152604090205463ffffffff1681565b610c51611b1d565b6001600160a01b0316610c62610de4565b6001600160a01b031614610c885760405162461bcd60e51b81526004016107e3906134f7565b600a80549115156101000261ff0019909216919091179055565b600f5460ff1681565b61096783838360405180602001604052806000815250610f2d565b610cce611b1d565b6001600160a01b0316610cdf610de4565b6001600160a01b031614610d055760405162461bcd60e51b81526004016107e3906134f7565b8051610d1890600c90602084019061257d565b5050565b600b5481565b6000818152600260205260408120546001600160a01b03168061079c5760405162461bcd60e51b81526004016107e3906133f8565b60006001600160a01b038216610d7f5760405162461bcd60e51b81526004016107e3906133ae565b506001600160a01b031660009081526003602052604090205490565b610da3611b1d565b6001600160a01b0316610db4610de4565b6001600160a01b031614610dda5760405162461bcd60e51b81526004016107e3906134f7565b610a676000611ff1565b6006546001600160a01b031690565b60176020526000908152604090208054610e0c906137a2565b80601f0160208091040260200160405190810160405280929190818152602001828054610e38906137a2565b8015610e855780601f10610e5a57610100808354040283529160200191610e85565b820191906000526020600020905b815481529060010190602001808311610e6857829003601f168201915b505050505081565b60606001805461080e906137a2565b610ea4611b1d565b6001600160a01b0316610eb5610de4565b6001600160a01b031614610edb5760405162461bcd60e51b81526004016107e3906134f7565b60026007541415610efe5760405162461bcd60e51b81526004016107e390613637565b6002600755610f14610f0e610de4565b47612043565b6001600755565b610d18610f26611b1d565b83836120df565b610f3e610f38611b1d565b83611e3f565b610f5a5760405162461bcd60e51b81526004016107e3906135e6565b610f6684848484612182565b50505050565b6000818152601860209081526040808320815160a08101835281548152600182015481850152600282015481840152600382015463ffffffff1660608281018290526004909301546080830152855260109093529220610fcb846121b5565b604051602001610fdc929190612b45565b604051602081830303815290604052915050919050565b6000818152601860209081526040808320815160a08101835281548152600182015481850152600282015481840152600382015463ffffffff908116606083810191825260049094015460808401528451610180810186529051909116865260119094529184208054919492939182919061106d906137a2565b80601f0160208091040260200160405190810160405280929190818152602001828054611099906137a2565b80156110e65780601f106110bb576101008083540402835291602001916110e6565b820191906000526020600020905b8154815290600101906020018083116110c957829003601f168201915b5050505050815260200160106000856060015163ffffffff1663ffffffff168152602001908152602001600020805461111e906137a2565b80601f016020809104026020016040519081016040528092919081815260200182805461114a906137a2565b80156111975780601f1061116c57610100808354040283529160200191611197565b820191906000526020600020905b81548152906001019060200180831161117a57829003601f168201915b505050505081526020016111ae84608001516121b5565b815260200183602001516002146112125783602001516003146111ed57604051806040016040528060048152602001636c6f6e6760e01b81525061120d565b604051806040016040528060068152602001656d656469756d60d01b8152505b611231565b604051806040016040528060058152602001641cda1bdc9d60da1b8152505b815260200161124384602001516121b5565b815260200161125b846060015163ffffffff166121b5565b815260200161126d84600001516121b5565b81526020016040518060a001604052806075815260200161385f607591398152600f5460209091019060ff166112b25760405180602001604052806000815250611312565b600c6112c7856060015163ffffffff166121b5565b6112d486604001516121b5565b6112e187602001516121b5565b6112ee88608001516121b5565b604051602001611302959493929190612a34565b6040516020818303038152906040525b815260200161132086611721565b815260200160136000856080015181526020019081526020016000208054611347906137a2565b80601f0160208091040260200160405190810160405280929190818152602001828054611373906137a2565b80156113c05780601f10611395576101008083540402835291602001916113c0565b820191906000526020600020905b8154815290600101906020018083116113a357829003601f168201915b5050505050815260200160126000856060015163ffffffff1663ffffffff16815260200190815260200160002080546113f8906137a2565b80601f0160208091040260200160405190810160405280929190818152602001828054611424906137a2565b80156114715780601f1061144657610100808354040283529160200191611471565b820191906000526020600020905b81548152906001019060200180831161145457829003601f168201915b50505091909252505060208082015182516040519394506000936114959301612d20565b6040516020818303038152906040529050600082606001516040516020016114bd9190612c58565b604051602081830303815290604052905060006114dd85604001516121b5565b6040516020016114ed9190612b94565b6040516020818303038152906040529050600084604001516040516020016115159190612e60565b6040516020818303038152906040529050600085610160015160405160200161153e9190612bf8565b60408051601f19818403018152919052600f5490915060009060ff166115805760405180604001604052806004815260200163183c222560e11b815250611586565b86602001515b8760c0015160405160200161159c929190612cbd565b60408051601f19818403018152919052600f5490915060009060ff166115eb57604051806040016040528060118152602001702261747472696275746573223a205b5d7d60781b815250611614565b8686868587604051602001611604959493929190612dd0565b6040516020818303038152906040525b9050818860e001518961012001518a61010001518b61014001518560405160200161164496959493929190612ec0565b6040516020818303038152906040529950505050505050505050919050565b60196020526000908152604090205463ffffffff1681565b600a54610100900460ff166116a25760405162461bcd60e51b81526004016107e39061308c565b3360009081526014602052604090205463ffffffff166116d45760405162461bcd60e51b81526004016107e39061366e565b3466f8b0a10e47000011156116fb5760405162461bcd60e51b81526004016107e390613203565b336000908152601460205260408120805460019290610ba590849063ffffffff16613751565b600081815260186020908152604091829020825160a08101845281548152600182015492810192909252600281015492820192909252600382015463ffffffff166060828101919091526004909201546080820152600f5460ff16156117da57600d611796826060015163ffffffff166121b5565b6117a383604001516121b5565b6117b084608001516121b5565b6040516020016117c39493929190612aca565b60405160208183030381529060405291505061079f565b600e6040516020016117c39190612b77565b50919050565b600a54610100900460ff1681565b611808611b1d565b6001600160a01b0316611819610de4565b6001600160a01b03161461183f5760405162461bcd60e51b81526004016107e3906134f7565b600f805460ff1916911515919091179055565b61185a611b1d565b6001600160a01b031661186b610de4565b6001600160a01b031614610a5f5760405162461bcd60e51b81526004016107e3906134f7565b60166020526000908152604090205463ffffffff1681565b6118b1611b1d565b6001600160a01b03166118c2610de4565b6001600160a01b0316146118e85760405162461bcd60e51b81526004016107e3906134f7565b6001600160a01b03919091166000908152601460205260409020805463ffffffff191663ffffffff909216919091179055565b611923611b1d565b6001600160a01b0316611934610de4565b6001600160a01b03161461195a5760405162461bcd60e51b81526004016107e3906134f7565b8051610d1890600d90602084019061257d565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b600a5460ff1681565b600a54610100900460ff166119cb5760405162461bcd60e51b81526004016107e39061308c565b3360009081526019602052604090205463ffffffff166119fd5760405162461bcd60e51b81526004016107e39061366e565b336000908152601960205260408120805460019290610ba590849063ffffffff16613751565b60156020526000908152604090205463ffffffff1681565b611a43611b1d565b6001600160a01b0316611a54610de4565b6001600160a01b031614611a7a5760405162461bcd60e51b81526004016107e3906134f7565b6001600160a01b038116611aa05760405162461bcd60e51b81526004016107e39061310b565b611aa981611ff1565b50565b600090815260186020908152604091829020825160a0810184528154815260018201549281018390526002820154938101849052600382015463ffffffff166060820181905260049092015460809091018190529093565b6001600160e01b031981166301ffc9a760e01b14919050565b3390565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611b7382610d22565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600954611bb9600b6122d0565b10611bd65760405162461bcd60e51b81526004016107e390613441565b6000611be2600b6122d0565b905060006040518060800160405280611bfb60646122d4565b8152602001611c0b6101cc6122d4565b611c169060016136e6565b8152602001611c25600a6122d4565b8152602001611c3460646122d4565b9052805190915060009015801590611c4d575081516012115b15611c5a57506004611cca565b815160201115611c6c57506003611cca565b8151602b1115611c7e57506006611cca565b815160301115611c9057506005611cca565b8151603b1115611ca257506007611cca565b815160491115611cb457506001611cca565b815160561115611cc657506000611cca565b5060025b600060c883602001511115611cef5760648360200151611cea919061373a565b611d00565b60028360200151611d009190613726565b905060006005846040015110611d2b576009846040015110611d23576004611d26565b60035b611d2e565b60025b60ff16905060006046856060015110611d5c576060856060015110611d5457601b611d57565b60065b611d5f565b60035b6040805160a08101825288815263ffffffff85811660208084019182528385018981528a84166060860190815260ff979097166080860181815260008f81526018855288812088518155955160018088019190915593516002870155985160038601805463ffffffff191691881691909117905551600490940193909355338752601690915293909420549394509092611dfb929116906136fe565b336000908152601660205260409020805463ffffffff191663ffffffff92909216919091179055611e2c600b612327565b611e363388612330565b50505050505050565b6000611e4a82611b21565b611e665760405162461bcd60e51b81526004016107e390613305565b6000611e7183610d22565b9050806001600160a01b0316846001600160a01b03161480611eac5750836001600160a01b0316611ea184610891565b6001600160a01b0316145b80611ebc5750611ebc818561196d565b949350505050565b826001600160a01b0316611ed782610d22565b6001600160a01b031614611efd5760405162461bcd60e51b81526004016107e39061352c565b6001600160a01b038216611f235760405162461bcd60e51b81526004016107e390613188565b611f2e838383610967565b611f39600082611b3e565b6001600160a01b0383166000908152600360205260408120805460019290611f6290849061373a565b90915550506001600160a01b0382166000908152600360205260408120805460019290611f909084906136e6565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b804710156120635760405162461bcd60e51b81526004016107e3906132ce565b6000826001600160a01b03168260405161207c90612e5d565b60006040518083038185875af1925050503d80600081146120b9576040519150601f19603f3d011682016040523d82523d6000602084013e6120be565b606091505b50509050806109675760405162461bcd60e51b81526004016107e39061323a565b816001600160a01b0316836001600160a01b031614156121115760405162461bcd60e51b81526004016107e3906131cc565b6001600160a01b0383811660008181526005602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319061217590859061306e565b60405180910390a3505050565b61218d848484611ec4565b6121998484848461234a565b610f665760405162461bcd60e51b81526004016107e3906130b9565b6060816121da57506040805180820190915260018152600360fc1b602082015261079f565b8160005b811561220457806121ee816137d7565b91506121fd9050600a83613726565b91506121de565b60008167ffffffffffffffff81111561222d57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612257576020820181803683370190505b5090505b8415611ebc5761226c60018361373a565b9150612279600a866137f2565b6122849060306136e6565b60f81b8183815181106122a757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506122c9600a86613726565b945061225b565b5490565b60088054600091826122e5836137d7565b9190505550814433426008546040516020016123049493929190612ff0565b6040516020818303038152906040528051906020012060001c61079c91906137f2565b80546001019055565b610d18828260405180602001604052806000815250612465565b600061235e846001600160a01b0316612498565b1561245a57836001600160a01b031663150b7a0261237a611b1d565b8786866040518563ffffffff1660e01b815260040161239c9493929190613031565b602060405180830381600087803b1580156123b657600080fd5b505af19250505080156123e6575060408051601f3d908101601f191682019092526123e391810190612899565b60015b612440573d808015612414576040519150601f19603f3d011682016040523d82523d6000602084013e612419565b606091505b5080516124385760405162461bcd60e51b81526004016107e3906130b9565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611ebc565b506001949350505050565b61246f838361249e565b61247c600084848461234a565b6109675760405162461bcd60e51b81526004016107e3906130b9565b3b151590565b6001600160a01b0382166124c45760405162461bcd60e51b81526004016107e390613476565b6124cd81611b21565b156124ea5760405162461bcd60e51b81526004016107e390613151565b6124f660008383610967565b6001600160a01b038216600090815260036020526040812080546001929061251f9084906136e6565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612589906137a2565b90600052602060002090601f0160209004810192826125ab57600085556125f1565b82601f106125c457805160ff19168380011785556125f1565b828001600101855582156125f1579182015b828111156125f15782518255916020019190600101906125d6565b506125fd929150612601565b5090565b5b808211156125fd5760008155600101612602565b600067ffffffffffffffff8084111561263157612631613832565b604051601f8501601f19168101602001828111828210171561265557612655613832565b60405284815291508183850186101561266d57600080fd5b8484602083013760006020868301015250509392505050565b80356001600160a01b038116811461079f57600080fd5b8035801515811461079f57600080fd5b600082601f8301126126bd578081fd5b6126cc83833560208501612616565b9392505050565b6000602082840312156126e4578081fd5b6126cc82612686565b600080604083850312156126ff578081fd5b61270883612686565b915061271660208401612686565b90509250929050565b600080600060608486031215612733578081fd5b61273c84612686565b925061274a60208501612686565b9150604084013590509250925092565b6000806000806080858703121561276f578081fd5b61277885612686565b935061278660208601612686565b925060408501359150606085013567ffffffffffffffff8111156127a8578182fd5b8501601f810187136127b8578182fd5b6127c787823560208401612616565b91505092959194509250565b600080604083850312156127e5578182fd5b6127ee83612686565b91506127166020840161269d565b6000806040838503121561280e578182fd5b61281783612686565b946020939093013593505050565b60008060408385031215612837578182fd5b61284083612686565b9150602083013563ffffffff81168114612858578182fd5b809150509250929050565b600060208284031215612874578081fd5b6126cc8261269d565b60006020828403121561288e578081fd5b81356126cc81613848565b6000602082840312156128aa578081fd5b81516126cc81613848565b6000602082840312156128c6578081fd5b813567ffffffffffffffff8111156128dc578182fd5b611ebc848285016126ad565b6000602082840312156128f9578081fd5b5035919050565b60008060408385031215612912578182fd5b82359150602083013567ffffffffffffffff81111561292f578182fd5b61293b858286016126ad565b9150509250929050565b6000815180845261295d816020860160208601613776565b601f01601f19169290920160200192915050565b60008151612983818560208601613776565b9290920192915050565b8054600090600281046001808316806129a757607f831692505b60208084108214156129c757634e487b7160e01b86526022600452602486fd5b8180156129db57600181146129ec57612a19565b60ff19861689528489019650612a19565b6129f5886136da565b60005b86811015612a115781548b8201529085019083016129f8565b505084890196505b50505050505092915050565b6208880b60ea1b815260030190565b6000612a40828861298d565b8651612a50818360208b01613776565b632669643d60e01b91019081528551612a70816004840160208a01613776565b64266c656e3d60d81b600492909101918201528451612a96816009840160208901613776565b632662673d60e01b600992909101918201528351612abb81600d840160208801613776565b01600d01979650505050505050565b6000612ad6828761298d565b8551612ae6818360208a01613776565b602f60f81b91018181528551909190612b06816001850160208a01613776565b60019201918201528351612b21816002840160208801613776565b6817b4b6b3973837339160b91b60029290910191820152600b019695505050505050565b6000612b51828561298d565b600160fd1b81528351612b6b816001840160208801613776565b01600101949350505050565b6000612b83828461298d565b601160f91b81526001019392505050565b60007f7b2274726169745f74797065223a202248534c2050616c65747465222c20227682526730b63ab2911d101160c11b60208301528251612bdd816028850160208701613776565b63089f480b60e21b6028939091019283015250602c01919050565b60007f7b2274726169745f74797065223a2022456e74726f7079222c202276616c7565825263111d101160e11b60208301528251612c3d816024850160208701613776565b63089f480b60e21b6024939091019283015250602801919050565b60007f7b2274726169745f74797065223a20224379636c65206c656e677468222c20228252683b30b63ab2911d101160b91b60208301528251612ca2816029850160208701613776565b63089f480b60e21b6029939091019283015250602d01919050565b693d913730b6b2911d101160b11b81528251600090612ce381600a850160208801613776565b61202360f01b600a918401918201528351612d0581600c840160208801613776565b61088b60f21b600c9290910191820152600e01949350505050565b60007f7b2274726169745f74797065223a20223078444a222c202276616c7565223a208252601160f91b60208301528351612d62816021850160208801613776565b7f227d2c7b2274726169745f74797065223a20224f7269656e746174696f6e222c6021918401918201526a10113b30b63ab2911d101160a91b60418201528351612db381604c840160208801613776565b63089f480b60e21b604c9290910191820152605001949350505050565b60006e2261747472696275746573223a205b60881b8252600f8751612dfb8183860160208c01613776565b875190840190612e118184840160208c01613776565b8751910190612e268184840160208b01613776565b8651910190612e3b8184840160208a01613776565b8551910190612e508184840160208901613776565b0101979650505050505050565b90565b60007f7b2274726169745f74797065223a20225265636f726473222c202276616c7565825263111d101160e11b60208301528251612ea5816024850160208701613776565b63227d5d7d60e01b6024939091019283015250602801919050565b60007519185d184e985c1c1b1a58d85d1a5bdb8bda9cdbdb8b60521b82528751612ef1816016850160208c01613776565b875190830190612f08816016840160208c01613776565b6b161134b6b0b3b2911d10101160a11b601692909101918201528651612f35816022840160208b01613776565b72161130b734b6b0ba34b7b72fbab936111d101160691b602292909101918201528551612f69816035840160208a01613776565b7f222c2265787465726e616c5f75726c223a202268747470733a2f2f7777772e30603592909101918201527f786d757369632e636f6d222c20226261636b67726f756e645f636f6c6f72223a605582015261101160f11b6075820152612fe3612fdd612fd86077840188612971565b612a25565b85612971565b9998505050505050505050565b93845260609290921b6bffffffffffffffffffffffff191660208401526034830152605482015260740190565b6001600160a01b0391909116815260200190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061306490830184612945565b9695505050505050565b901515815260200190565b6000602082526126cc6020830184612945565b60208082526013908201527253616c65206d7573742062652061637469766560681b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252601f908201527f45746865722076616c75652073656e74206973206e6f7420636f727265637400604082015260600190565b6020808252603a908201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260408201527f6563697069656e74206d61792068617665207265766572746564000000000000606082015260800190565b6020808252601b908201527f53616c65206d7573742062652061637469766520746f206d696e740000000000604082015260600190565b6020808252601d908201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252818101527f507572636861736520776f756c6420657863656564206d617820737570706c79604082015260600190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b602080825260169082015275115e18d959591959081b9d5b58995c881b5a5b9d195960521b604082015260600190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b602080825260159082015274596f7520617265206e6f7420656c6c696769626c6560581b604082015260600190565b90815260200190565b63ffffffff91909116815260200190565b63ffffffff94909416845260208401929092526040830152606082015260800190565b60009081526020902090565b600082198211156136f9576136f9613806565b500190565b600063ffffffff80831681851680830382111561371d5761371d613806565b01949350505050565b6000826137355761373561381c565b500490565b60008282101561374c5761374c613806565b500390565b600063ffffffff8381169083168181101561376e5761376e613806565b039392505050565b60005b83811015613791578181015183820152602001613779565b83811115610f665750506000910152565b6002810460018216806137b657607f821691505b602082108114156117ec57634e487b7160e01b600052602260045260246000fd5b60006000198214156137eb576137eb613806565b5060010190565b6000826138015761380161381c565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114611aa957600080fdfe226465736372697074696f6e223a2022596f75722067656e6572617469766520444a2e20486974696e6720706c61792064657374726f7973207468652070726576696f757320736f6e6720616e6420637265617465732061206272616e64206e657720736f6e6720696e207265616c2d74696d6522a26469706673582212204c494a460a96e3a09f2649d375b6cc02b8b60131c2d29089d54f40828306912a64736f6c634300080000330000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000309000000000000000000000000000000000000000000000000000000000000007068747470733a2f2f30786d757369632e6d7970696e6174612e636c6f75642f697066732f516d5a48357635597875794352656351324b78576b52357376437256766b696d36667946396e48517a5464414b752f746f6e656b696e677a776974686c6561642e68746d6c3f67656e72653d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005368747470733a2f2f30786d757369632e6d7970696e6174612e636c6f75642f697066732f516d664c366f526f726f456e76725636797736745a556766684c6457677961576235323456334172366762796b632f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000005268747470733a2f2f30786d757369632e6d7970696e6174612e636c6f75642f697066732f516d593955543259653832396753345a3168636678376b7748456a46586e7a54375a7451433133724a31436461420000000000000000000000000000

Deployed Bytecode

0x60806040526004361061025c5760003560e01c806395c0223611610144578063d44ef9d4116100b6578063e985e9c51161007a578063e985e9c5146106a2578063eb8d2444146106c2578063ee1daa43146106d7578063f1fbdfc1146106ec578063f2fde38b1461070c578063fb34c7861461072c5761025c565b8063d44ef9d41461060d578063da7c4f541461062d578063dc33e68114610642578063e5d6919714610662578063e7f3762a146106825761025c565b8063c61781ed11610108578063c61781ed14610570578063c87b56dd14610590578063cded5b0c146105b0578063cecd6700146105d0578063d1b1ed7b146105d8578063d3d88bcd146105f85761025c565b806395c02236146104e657806395d89b4114610506578063a0ef91df1461051b578063a22cb46514610530578063b88d4fde146105505761025c565b806333fe3066116101dd5780635554da6d116101a15780635554da6d1461043a57806361bc221a1461045a5780636352211e1461047c57806370a082311461049c578063715018a6146104bc5780638da5cb5b146104d15761025c565b806333fe306614610398578063372c12b1146103b857806339a7b1d2146103e557806339c5c1a71461040557806342842e0e1461041a5761025c565b80630a128a9a116102245780630a128a9a146103285780631249c58b1461034857806323b872dd14610350578063274611431461037057806327ecbb16146103905761025c565b806301ffc9a71461026157806302c889891461029757806306fdde03146102b9578063081812fc146102db578063095ea7b314610308575b600080fd5b34801561026d57600080fd5b5061028161027c36600461287d565b61075c565b60405161028e919061306e565b60405180910390f35b3480156102a357600080fd5b506102b76102b2366004612863565b6107a4565b005b3480156102c557600080fd5b506102ce6107ff565b60405161028e9190613079565b3480156102e757600080fd5b506102fb6102f63660046128e8565b610891565b60405161028e919061301d565b34801561031457600080fd5b506102b76103233660046127fc565b6108d4565b34801561033457600080fd5b506102b7610343366004612825565b61096c565b6102b76109de565b34801561035c57600080fd5b506102b761036b36600461271f565b610a69565b34801561037c57600080fd5b506102b761038b366004612900565b610aa1565b6102b7610aff565b3480156103a457600080fd5b506102b76103b33660046126d3565b610bcb565b3480156103c457600080fd5b506103d86103d33660046126d3565b610c31565b60405161028e91906136a6565b3480156103f157600080fd5b506102b7610400366004612863565b610c49565b34801561041157600080fd5b50610281610ca2565b34801561042657600080fd5b506102b761043536600461271f565b610cab565b34801561044657600080fd5b506102b76104553660046128b5565b610cc6565b34801561046657600080fd5b5061046f610d1c565b60405161028e919061369d565b34801561048857600080fd5b506102fb6104973660046128e8565b610d22565b3480156104a857600080fd5b5061046f6104b73660046126d3565b610d57565b3480156104c857600080fd5b506102b7610d9b565b3480156104dd57600080fd5b506102fb610de4565b3480156104f257600080fd5b506102ce6105013660046128e8565b610df3565b34801561051257600080fd5b506102ce610e8d565b34801561052757600080fd5b506102b7610e9c565b34801561053c57600080fd5b506102b761054b3660046127d3565b610f1b565b34801561055c57600080fd5b506102b761056b36600461275a565b610f2d565b34801561057c57600080fd5b506102ce61058b3660046128e8565b610f6c565b34801561059c57600080fd5b506102ce6105ab3660046128e8565b610ff3565b3480156105bc57600080fd5b506103d86105cb3660046126d3565b611663565b6102b761167b565b3480156105e457600080fd5b506102ce6105f33660046128e8565b611721565b34801561060457600080fd5b506102816117f2565b34801561061957600080fd5b506102b7610628366004612863565b611800565b34801561063957600080fd5b506102b7611852565b34801561064e57600080fd5b506103d861065d3660046126d3565b611891565b34801561066e57600080fd5b506102b761067d366004612825565b6118a9565b34801561068e57600080fd5b506102b761069d3660046128b5565b61191b565b3480156106ae57600080fd5b506102816106bd3660046126ed565b61196d565b3480156106ce57600080fd5b5061028161199b565b3480156106e357600080fd5b506102b76119a4565b3480156106f857600080fd5b506103d86107073660046126d3565b611a23565b34801561071857600080fd5b506102b76107273660046126d3565b611a3b565b34801561073857600080fd5b5061074c6107473660046128e8565b611aac565b60405161028e94939291906136b7565b60006001600160e01b031982166380ac58cd60e01b148061078d57506001600160e01b03198216635b5e139f60e01b145b8061079c575061079c82611b04565b90505b919050565b6107ac611b1d565b6001600160a01b03166107bd610de4565b6001600160a01b0316146107ec5760405162461bcd60e51b81526004016107e3906134f7565b60405180910390fd5b600a805460ff1916911515919091179055565b60606000805461080e906137a2565b80601f016020809104026020016040519081016040528092919081815260200182805461083a906137a2565b80156108875780601f1061085c57610100808354040283529160200191610887565b820191906000526020600020905b81548152906001019060200180831161086a57829003601f168201915b5050505050905090565b600061089c82611b21565b6108b85760405162461bcd60e51b81526004016107e3906134ab565b506000908152600460205260409020546001600160a01b031690565b60006108df82610d22565b9050806001600160a01b0316836001600160a01b031614156109135760405162461bcd60e51b81526004016107e3906135a5565b806001600160a01b0316610925611b1d565b6001600160a01b031614806109415750610941816106bd611b1d565b61095d5760405162461bcd60e51b81526004016107e390613351565b6109678383611b3e565b505050565b610974611b1d565b6001600160a01b0316610985610de4565b6001600160a01b0316146109ab5760405162461bcd60e51b81526004016107e3906134f7565b6001600160a01b03919091166000908152601960205260409020805463ffffffff191663ffffffff909216919091179055565b600a5460ff16610a005760405162461bcd60e51b81526004016107e390613297565b3467016345785d8a00001115610a285760405162461bcd60e51b81526004016107e390613203565b33600090815260166020526040902054600863ffffffff90911610610a5f5760405162461bcd60e51b81526004016107e390613575565b610a67611bac565b565b610a7a610a74611b1d565b82611e3f565b610a965760405162461bcd60e51b81526004016107e3906135e6565b610967838383611ec4565b610aa9611b1d565b6001600160a01b0316610aba610de4565b6001600160a01b031614610ae05760405162461bcd60e51b81526004016107e3906134f7565b600082815260176020908152604090912082516109679284019061257d565b600a54610100900460ff16610b265760405162461bcd60e51b81526004016107e39061308c565b3360009081526015602052604090205463ffffffff16610b585760405162461bcd60e51b81526004016107e39061366e565b3466b1a2bc2ec500001115610b7f5760405162461bcd60e51b81526004016107e390613203565b336000908152601560205260408120805460019290610ba590849063ffffffff16613751565b92506101000a81548163ffffffff021916908363ffffffff160217905550610a67611bac565b610bd3611b1d565b6001600160a01b0316610be4610de4565b6001600160a01b031614610c0a5760405162461bcd60e51b81526004016107e3906134f7565b6001600160a01b03166000908152601560205260409020805463ffffffff19166002179055565b60146020526000908152604090205463ffffffff1681565b610c51611b1d565b6001600160a01b0316610c62610de4565b6001600160a01b031614610c885760405162461bcd60e51b81526004016107e3906134f7565b600a80549115156101000261ff0019909216919091179055565b600f5460ff1681565b61096783838360405180602001604052806000815250610f2d565b610cce611b1d565b6001600160a01b0316610cdf610de4565b6001600160a01b031614610d055760405162461bcd60e51b81526004016107e3906134f7565b8051610d1890600c90602084019061257d565b5050565b600b5481565b6000818152600260205260408120546001600160a01b03168061079c5760405162461bcd60e51b81526004016107e3906133f8565b60006001600160a01b038216610d7f5760405162461bcd60e51b81526004016107e3906133ae565b506001600160a01b031660009081526003602052604090205490565b610da3611b1d565b6001600160a01b0316610db4610de4565b6001600160a01b031614610dda5760405162461bcd60e51b81526004016107e3906134f7565b610a676000611ff1565b6006546001600160a01b031690565b60176020526000908152604090208054610e0c906137a2565b80601f0160208091040260200160405190810160405280929190818152602001828054610e38906137a2565b8015610e855780601f10610e5a57610100808354040283529160200191610e85565b820191906000526020600020905b815481529060010190602001808311610e6857829003601f168201915b505050505081565b60606001805461080e906137a2565b610ea4611b1d565b6001600160a01b0316610eb5610de4565b6001600160a01b031614610edb5760405162461bcd60e51b81526004016107e3906134f7565b60026007541415610efe5760405162461bcd60e51b81526004016107e390613637565b6002600755610f14610f0e610de4565b47612043565b6001600755565b610d18610f26611b1d565b83836120df565b610f3e610f38611b1d565b83611e3f565b610f5a5760405162461bcd60e51b81526004016107e3906135e6565b610f6684848484612182565b50505050565b6000818152601860209081526040808320815160a08101835281548152600182015481850152600282015481840152600382015463ffffffff1660608281018290526004909301546080830152855260109093529220610fcb846121b5565b604051602001610fdc929190612b45565b604051602081830303815290604052915050919050565b6000818152601860209081526040808320815160a08101835281548152600182015481850152600282015481840152600382015463ffffffff908116606083810191825260049094015460808401528451610180810186529051909116865260119094529184208054919492939182919061106d906137a2565b80601f0160208091040260200160405190810160405280929190818152602001828054611099906137a2565b80156110e65780601f106110bb576101008083540402835291602001916110e6565b820191906000526020600020905b8154815290600101906020018083116110c957829003601f168201915b5050505050815260200160106000856060015163ffffffff1663ffffffff168152602001908152602001600020805461111e906137a2565b80601f016020809104026020016040519081016040528092919081815260200182805461114a906137a2565b80156111975780601f1061116c57610100808354040283529160200191611197565b820191906000526020600020905b81548152906001019060200180831161117a57829003601f168201915b505050505081526020016111ae84608001516121b5565b815260200183602001516002146112125783602001516003146111ed57604051806040016040528060048152602001636c6f6e6760e01b81525061120d565b604051806040016040528060068152602001656d656469756d60d01b8152505b611231565b604051806040016040528060058152602001641cda1bdc9d60da1b8152505b815260200161124384602001516121b5565b815260200161125b846060015163ffffffff166121b5565b815260200161126d84600001516121b5565b81526020016040518060a001604052806075815260200161385f607591398152600f5460209091019060ff166112b25760405180602001604052806000815250611312565b600c6112c7856060015163ffffffff166121b5565b6112d486604001516121b5565b6112e187602001516121b5565b6112ee88608001516121b5565b604051602001611302959493929190612a34565b6040516020818303038152906040525b815260200161132086611721565b815260200160136000856080015181526020019081526020016000208054611347906137a2565b80601f0160208091040260200160405190810160405280929190818152602001828054611373906137a2565b80156113c05780601f10611395576101008083540402835291602001916113c0565b820191906000526020600020905b8154815290600101906020018083116113a357829003601f168201915b5050505050815260200160126000856060015163ffffffff1663ffffffff16815260200190815260200160002080546113f8906137a2565b80601f0160208091040260200160405190810160405280929190818152602001828054611424906137a2565b80156114715780601f1061144657610100808354040283529160200191611471565b820191906000526020600020905b81548152906001019060200180831161145457829003601f168201915b50505091909252505060208082015182516040519394506000936114959301612d20565b6040516020818303038152906040529050600082606001516040516020016114bd9190612c58565b604051602081830303815290604052905060006114dd85604001516121b5565b6040516020016114ed9190612b94565b6040516020818303038152906040529050600084604001516040516020016115159190612e60565b6040516020818303038152906040529050600085610160015160405160200161153e9190612bf8565b60408051601f19818403018152919052600f5490915060009060ff166115805760405180604001604052806004815260200163183c222560e11b815250611586565b86602001515b8760c0015160405160200161159c929190612cbd565b60408051601f19818403018152919052600f5490915060009060ff166115eb57604051806040016040528060118152602001702261747472696275746573223a205b5d7d60781b815250611614565b8686868587604051602001611604959493929190612dd0565b6040516020818303038152906040525b9050818860e001518961012001518a61010001518b61014001518560405160200161164496959493929190612ec0565b6040516020818303038152906040529950505050505050505050919050565b60196020526000908152604090205463ffffffff1681565b600a54610100900460ff166116a25760405162461bcd60e51b81526004016107e39061308c565b3360009081526014602052604090205463ffffffff166116d45760405162461bcd60e51b81526004016107e39061366e565b3466f8b0a10e47000011156116fb5760405162461bcd60e51b81526004016107e390613203565b336000908152601460205260408120805460019290610ba590849063ffffffff16613751565b600081815260186020908152604091829020825160a08101845281548152600182015492810192909252600281015492820192909252600382015463ffffffff166060828101919091526004909201546080820152600f5460ff16156117da57600d611796826060015163ffffffff166121b5565b6117a383604001516121b5565b6117b084608001516121b5565b6040516020016117c39493929190612aca565b60405160208183030381529060405291505061079f565b600e6040516020016117c39190612b77565b50919050565b600a54610100900460ff1681565b611808611b1d565b6001600160a01b0316611819610de4565b6001600160a01b03161461183f5760405162461bcd60e51b81526004016107e3906134f7565b600f805460ff1916911515919091179055565b61185a611b1d565b6001600160a01b031661186b610de4565b6001600160a01b031614610a5f5760405162461bcd60e51b81526004016107e3906134f7565b60166020526000908152604090205463ffffffff1681565b6118b1611b1d565b6001600160a01b03166118c2610de4565b6001600160a01b0316146118e85760405162461bcd60e51b81526004016107e3906134f7565b6001600160a01b03919091166000908152601460205260409020805463ffffffff191663ffffffff909216919091179055565b611923611b1d565b6001600160a01b0316611934610de4565b6001600160a01b03161461195a5760405162461bcd60e51b81526004016107e3906134f7565b8051610d1890600d90602084019061257d565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b600a5460ff1681565b600a54610100900460ff166119cb5760405162461bcd60e51b81526004016107e39061308c565b3360009081526019602052604090205463ffffffff166119fd5760405162461bcd60e51b81526004016107e39061366e565b336000908152601960205260408120805460019290610ba590849063ffffffff16613751565b60156020526000908152604090205463ffffffff1681565b611a43611b1d565b6001600160a01b0316611a54610de4565b6001600160a01b031614611a7a5760405162461bcd60e51b81526004016107e3906134f7565b6001600160a01b038116611aa05760405162461bcd60e51b81526004016107e39061310b565b611aa981611ff1565b50565b600090815260186020908152604091829020825160a0810184528154815260018201549281018390526002820154938101849052600382015463ffffffff166060820181905260049092015460809091018190529093565b6001600160e01b031981166301ffc9a760e01b14919050565b3390565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611b7382610d22565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600954611bb9600b6122d0565b10611bd65760405162461bcd60e51b81526004016107e390613441565b6000611be2600b6122d0565b905060006040518060800160405280611bfb60646122d4565b8152602001611c0b6101cc6122d4565b611c169060016136e6565b8152602001611c25600a6122d4565b8152602001611c3460646122d4565b9052805190915060009015801590611c4d575081516012115b15611c5a57506004611cca565b815160201115611c6c57506003611cca565b8151602b1115611c7e57506006611cca565b815160301115611c9057506005611cca565b8151603b1115611ca257506007611cca565b815160491115611cb457506001611cca565b815160561115611cc657506000611cca565b5060025b600060c883602001511115611cef5760648360200151611cea919061373a565b611d00565b60028360200151611d009190613726565b905060006005846040015110611d2b576009846040015110611d23576004611d26565b60035b611d2e565b60025b60ff16905060006046856060015110611d5c576060856060015110611d5457601b611d57565b60065b611d5f565b60035b6040805160a08101825288815263ffffffff85811660208084019182528385018981528a84166060860190815260ff979097166080860181815260008f81526018855288812088518155955160018088019190915593516002870155985160038601805463ffffffff191691881691909117905551600490940193909355338752601690915293909420549394509092611dfb929116906136fe565b336000908152601660205260409020805463ffffffff191663ffffffff92909216919091179055611e2c600b612327565b611e363388612330565b50505050505050565b6000611e4a82611b21565b611e665760405162461bcd60e51b81526004016107e390613305565b6000611e7183610d22565b9050806001600160a01b0316846001600160a01b03161480611eac5750836001600160a01b0316611ea184610891565b6001600160a01b0316145b80611ebc5750611ebc818561196d565b949350505050565b826001600160a01b0316611ed782610d22565b6001600160a01b031614611efd5760405162461bcd60e51b81526004016107e39061352c565b6001600160a01b038216611f235760405162461bcd60e51b81526004016107e390613188565b611f2e838383610967565b611f39600082611b3e565b6001600160a01b0383166000908152600360205260408120805460019290611f6290849061373a565b90915550506001600160a01b0382166000908152600360205260408120805460019290611f909084906136e6565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b804710156120635760405162461bcd60e51b81526004016107e3906132ce565b6000826001600160a01b03168260405161207c90612e5d565b60006040518083038185875af1925050503d80600081146120b9576040519150601f19603f3d011682016040523d82523d6000602084013e6120be565b606091505b50509050806109675760405162461bcd60e51b81526004016107e39061323a565b816001600160a01b0316836001600160a01b031614156121115760405162461bcd60e51b81526004016107e3906131cc565b6001600160a01b0383811660008181526005602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319061217590859061306e565b60405180910390a3505050565b61218d848484611ec4565b6121998484848461234a565b610f665760405162461bcd60e51b81526004016107e3906130b9565b6060816121da57506040805180820190915260018152600360fc1b602082015261079f565b8160005b811561220457806121ee816137d7565b91506121fd9050600a83613726565b91506121de565b60008167ffffffffffffffff81111561222d57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612257576020820181803683370190505b5090505b8415611ebc5761226c60018361373a565b9150612279600a866137f2565b6122849060306136e6565b60f81b8183815181106122a757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506122c9600a86613726565b945061225b565b5490565b60088054600091826122e5836137d7565b9190505550814433426008546040516020016123049493929190612ff0565b6040516020818303038152906040528051906020012060001c61079c91906137f2565b80546001019055565b610d18828260405180602001604052806000815250612465565b600061235e846001600160a01b0316612498565b1561245a57836001600160a01b031663150b7a0261237a611b1d565b8786866040518563ffffffff1660e01b815260040161239c9493929190613031565b602060405180830381600087803b1580156123b657600080fd5b505af19250505080156123e6575060408051601f3d908101601f191682019092526123e391810190612899565b60015b612440573d808015612414576040519150601f19603f3d011682016040523d82523d6000602084013e612419565b606091505b5080516124385760405162461bcd60e51b81526004016107e3906130b9565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611ebc565b506001949350505050565b61246f838361249e565b61247c600084848461234a565b6109675760405162461bcd60e51b81526004016107e3906130b9565b3b151590565b6001600160a01b0382166124c45760405162461bcd60e51b81526004016107e390613476565b6124cd81611b21565b156124ea5760405162461bcd60e51b81526004016107e390613151565b6124f660008383610967565b6001600160a01b038216600090815260036020526040812080546001929061251f9084906136e6565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612589906137a2565b90600052602060002090601f0160209004810192826125ab57600085556125f1565b82601f106125c457805160ff19168380011785556125f1565b828001600101855582156125f1579182015b828111156125f15782518255916020019190600101906125d6565b506125fd929150612601565b5090565b5b808211156125fd5760008155600101612602565b600067ffffffffffffffff8084111561263157612631613832565b604051601f8501601f19168101602001828111828210171561265557612655613832565b60405284815291508183850186101561266d57600080fd5b8484602083013760006020868301015250509392505050565b80356001600160a01b038116811461079f57600080fd5b8035801515811461079f57600080fd5b600082601f8301126126bd578081fd5b6126cc83833560208501612616565b9392505050565b6000602082840312156126e4578081fd5b6126cc82612686565b600080604083850312156126ff578081fd5b61270883612686565b915061271660208401612686565b90509250929050565b600080600060608486031215612733578081fd5b61273c84612686565b925061274a60208501612686565b9150604084013590509250925092565b6000806000806080858703121561276f578081fd5b61277885612686565b935061278660208601612686565b925060408501359150606085013567ffffffffffffffff8111156127a8578182fd5b8501601f810187136127b8578182fd5b6127c787823560208401612616565b91505092959194509250565b600080604083850312156127e5578182fd5b6127ee83612686565b91506127166020840161269d565b6000806040838503121561280e578182fd5b61281783612686565b946020939093013593505050565b60008060408385031215612837578182fd5b61284083612686565b9150602083013563ffffffff81168114612858578182fd5b809150509250929050565b600060208284031215612874578081fd5b6126cc8261269d565b60006020828403121561288e578081fd5b81356126cc81613848565b6000602082840312156128aa578081fd5b81516126cc81613848565b6000602082840312156128c6578081fd5b813567ffffffffffffffff8111156128dc578182fd5b611ebc848285016126ad565b6000602082840312156128f9578081fd5b5035919050565b60008060408385031215612912578182fd5b82359150602083013567ffffffffffffffff81111561292f578182fd5b61293b858286016126ad565b9150509250929050565b6000815180845261295d816020860160208601613776565b601f01601f19169290920160200192915050565b60008151612983818560208601613776565b9290920192915050565b8054600090600281046001808316806129a757607f831692505b60208084108214156129c757634e487b7160e01b86526022600452602486fd5b8180156129db57600181146129ec57612a19565b60ff19861689528489019650612a19565b6129f5886136da565b60005b86811015612a115781548b8201529085019083016129f8565b505084890196505b50505050505092915050565b6208880b60ea1b815260030190565b6000612a40828861298d565b8651612a50818360208b01613776565b632669643d60e01b91019081528551612a70816004840160208a01613776565b64266c656e3d60d81b600492909101918201528451612a96816009840160208901613776565b632662673d60e01b600992909101918201528351612abb81600d840160208801613776565b01600d01979650505050505050565b6000612ad6828761298d565b8551612ae6818360208a01613776565b602f60f81b91018181528551909190612b06816001850160208a01613776565b60019201918201528351612b21816002840160208801613776565b6817b4b6b3973837339160b91b60029290910191820152600b019695505050505050565b6000612b51828561298d565b600160fd1b81528351612b6b816001840160208801613776565b01600101949350505050565b6000612b83828461298d565b601160f91b81526001019392505050565b60007f7b2274726169745f74797065223a202248534c2050616c65747465222c20227682526730b63ab2911d101160c11b60208301528251612bdd816028850160208701613776565b63089f480b60e21b6028939091019283015250602c01919050565b60007f7b2274726169745f74797065223a2022456e74726f7079222c202276616c7565825263111d101160e11b60208301528251612c3d816024850160208701613776565b63089f480b60e21b6024939091019283015250602801919050565b60007f7b2274726169745f74797065223a20224379636c65206c656e677468222c20228252683b30b63ab2911d101160b91b60208301528251612ca2816029850160208701613776565b63089f480b60e21b6029939091019283015250602d01919050565b693d913730b6b2911d101160b11b81528251600090612ce381600a850160208801613776565b61202360f01b600a918401918201528351612d0581600c840160208801613776565b61088b60f21b600c9290910191820152600e01949350505050565b60007f7b2274726169745f74797065223a20223078444a222c202276616c7565223a208252601160f91b60208301528351612d62816021850160208801613776565b7f227d2c7b2274726169745f74797065223a20224f7269656e746174696f6e222c6021918401918201526a10113b30b63ab2911d101160a91b60418201528351612db381604c840160208801613776565b63089f480b60e21b604c9290910191820152605001949350505050565b60006e2261747472696275746573223a205b60881b8252600f8751612dfb8183860160208c01613776565b875190840190612e118184840160208c01613776565b8751910190612e268184840160208b01613776565b8651910190612e3b8184840160208a01613776565b8551910190612e508184840160208901613776565b0101979650505050505050565b90565b60007f7b2274726169745f74797065223a20225265636f726473222c202276616c7565825263111d101160e11b60208301528251612ea5816024850160208701613776565b63227d5d7d60e01b6024939091019283015250602801919050565b60007519185d184e985c1c1b1a58d85d1a5bdb8bda9cdbdb8b60521b82528751612ef1816016850160208c01613776565b875190830190612f08816016840160208c01613776565b6b161134b6b0b3b2911d10101160a11b601692909101918201528651612f35816022840160208b01613776565b72161130b734b6b0ba34b7b72fbab936111d101160691b602292909101918201528551612f69816035840160208a01613776565b7f222c2265787465726e616c5f75726c223a202268747470733a2f2f7777772e30603592909101918201527f786d757369632e636f6d222c20226261636b67726f756e645f636f6c6f72223a605582015261101160f11b6075820152612fe3612fdd612fd86077840188612971565b612a25565b85612971565b9998505050505050505050565b93845260609290921b6bffffffffffffffffffffffff191660208401526034830152605482015260740190565b6001600160a01b0391909116815260200190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061306490830184612945565b9695505050505050565b901515815260200190565b6000602082526126cc6020830184612945565b60208082526013908201527253616c65206d7573742062652061637469766560681b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252601f908201527f45746865722076616c75652073656e74206973206e6f7420636f727265637400604082015260600190565b6020808252603a908201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260408201527f6563697069656e74206d61792068617665207265766572746564000000000000606082015260800190565b6020808252601b908201527f53616c65206d7573742062652061637469766520746f206d696e740000000000604082015260600190565b6020808252601d908201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252818101527f507572636861736520776f756c6420657863656564206d617820737570706c79604082015260600190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b602080825260169082015275115e18d959591959081b9d5b58995c881b5a5b9d195960521b604082015260600190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b602080825260159082015274596f7520617265206e6f7420656c6c696769626c6560581b604082015260600190565b90815260200190565b63ffffffff91909116815260200190565b63ffffffff94909416845260208401929092526040830152606082015260800190565b60009081526020902090565b600082198211156136f9576136f9613806565b500190565b600063ffffffff80831681851680830382111561371d5761371d613806565b01949350505050565b6000826137355761373561381c565b500490565b60008282101561374c5761374c613806565b500390565b600063ffffffff8381169083168181101561376e5761376e613806565b039392505050565b60005b83811015613791578181015183820152602001613779565b83811115610f665750506000910152565b6002810460018216806137b657607f821691505b602082108114156117ec57634e487b7160e01b600052602260045260246000fd5b60006000198214156137eb576137eb613806565b5060010190565b6000826138015761380161381c565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114611aa957600080fdfe226465736372697074696f6e223a2022596f75722067656e6572617469766520444a2e20486974696e6720706c61792064657374726f7973207468652070726576696f757320736f6e6720616e6420637265617465732061206272616e64206e657720736f6e6720696e207265616c2d74696d6522a26469706673582212204c494a460a96e3a09f2649d375b6cc02b8b60131c2d29089d54f40828306912a64736f6c63430008000033

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

0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000309000000000000000000000000000000000000000000000000000000000000007068747470733a2f2f30786d757369632e6d7970696e6174612e636c6f75642f697066732f516d5a48357635597875794352656351324b78576b52357376437256766b696d36667946396e48517a5464414b752f746f6e656b696e677a776974686c6561642e68746d6c3f67656e72653d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005368747470733a2f2f30786d757369632e6d7970696e6174612e636c6f75642f697066732f516d664c366f526f726f456e76725636797736745a556766684c6457677961576235323456334172366762796b632f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000005268747470733a2f2f30786d757369632e6d7970696e6174612e636c6f75642f697066732f516d593955543259653832396753345a3168636678376b7748456a46586e7a54375a7451433133724a31436461420000000000000000000000000000

-----Decoded View---------------
Arg [0] : baseURLAnimationInput (string): https://0xmusic.mypinata.cloud/ipfs/QmZH5v5YxuyCRecQ2KxWkR5svCrVvkim6fyF9nHQzTdAKu/tonekingzwithlead.html?genre=
Arg [1] : baseURLImageInput (string): https://0xmusic.mypinata.cloud/ipfs/QmfL6oRoroEnvrV6yw6tZUgfhLdWgyaWb524V3Ar6gbykc/
Arg [2] : blurred (string): https://0xmusic.mypinata.cloud/ipfs/QmY9UT2Ye829gS4Z1hcfx7kwHEjFXnzT7ZtQC13rJ1CdaB
Arg [3] : maxSupply (uint256): 777

-----Encoded View---------------
17 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000309
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000070
Arg [5] : 68747470733a2f2f30786d757369632e6d7970696e6174612e636c6f75642f69
Arg [6] : 7066732f516d5a48357635597875794352656351324b78576b52357376437256
Arg [7] : 766b696d36667946396e48517a5464414b752f746f6e656b696e677a77697468
Arg [8] : 6c6561642e68746d6c3f67656e72653d00000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000053
Arg [10] : 68747470733a2f2f30786d757369632e6d7970696e6174612e636c6f75642f69
Arg [11] : 7066732f516d664c366f526f726f456e76725636797736745a556766684c6457
Arg [12] : 677961576235323456334172366762796b632f00000000000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000052
Arg [14] : 68747470733a2f2f30786d757369632e6d7970696e6174612e636c6f75642f69
Arg [15] : 7066732f516d593955543259653832396753345a3168636678376b7748456a46
Arg [16] : 586e7a54375a7451433133724a31436461420000000000000000000000000000


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.