ETH Price: $3,380.33 (+0.98%)

Contract

0xaBcf18BF1937e3d7Bac7Ac743b7829aD6aD6D2ca
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...211616422024-11-11 3:06:3543 days ago1731294395IN
0xaBcf18BF...D6aD6D2ca
0 ETH0.0006891614.79187514
Safe Transfer Fr...210526952024-10-26 22:10:3558 days ago1729980635IN
0xaBcf18BF...D6aD6D2ca
0 ETH0.000213195.28001644
Safe Transfer Fr...210526842024-10-26 22:08:2358 days ago1729980503IN
0xaBcf18BF...D6aD6D2ca
0 ETH0.000225335.58074459
Set Approval For...209713322024-10-15 13:42:2369 days ago1728999743IN
0xaBcf18BF...D6aD6D2ca
0 ETH0.0012966427.83045176
Set Approval For...207421302024-09-13 13:56:11101 days ago1726235771IN
0xaBcf18BF...D6aD6D2ca
0 ETH0.000101112.17029418
Set Approval For...202767222024-07-10 14:32:59166 days ago1720621979IN
0xaBcf18BF...D6aD6D2ca
0 ETH0.0006464613.87535561
Set Approval For...200713312024-06-11 21:40:35195 days ago1718142035IN
0xaBcf18BF...D6aD6D2ca
0 ETH0.0005963412.79953621
Set Approval For...198917262024-05-17 19:18:59220 days ago1715973539IN
0xaBcf18BF...D6aD6D2ca
0 ETH0.000186994.01356969
Safe Transfer Fr...197174062024-04-23 10:10:11244 days ago1713867011IN
0xaBcf18BF...D6aD6D2ca
0 ETH0.000378369.37063331
Safe Transfer Fr...197159472024-04-23 5:15:47244 days ago1713849347IN
0xaBcf18BF...D6aD6D2ca
0 ETH0.000303517.32750043
Withdraw197089582024-04-22 5:49:35245 days ago1713764975IN
0xaBcf18BF...D6aD6D2ca
0 ETH0.00022587.40276836
Safe Transfer Fr...197083432024-04-22 3:45:47245 days ago1713757547IN
0xaBcf18BF...D6aD6D2ca
0 ETH0.000244636.05857826
Safe Transfer Fr...197083392024-04-22 3:44:59245 days ago1713757499IN
0xaBcf18BF...D6aD6D2ca
0 ETH0.000212245.25643576
Safe Transfer Fr...197083262024-04-22 3:42:23245 days ago1713757343IN
0xaBcf18BF...D6aD6D2ca
0 ETH0.000259746.43285398
Safe Transfer Fr...197083232024-04-22 3:41:47245 days ago1713757307IN
0xaBcf18BF...D6aD6D2ca
0 ETH0.000234435.80611826
Safe Transfer Fr...197083062024-04-22 3:38:23245 days ago1713757103IN
0xaBcf18BF...D6aD6D2ca
0 ETH0.000250526.20448395
Safe Transfer Fr...196815492024-04-18 9:48:11249 days ago1713433691IN
0xaBcf18BF...D6aD6D2ca
0 ETH0.0004470710.79313021
Safe Transfer Fr...196299142024-04-11 4:10:35256 days ago1712808635IN
0xaBcf18BF...D6aD6D2ca
0 ETH0.0005013912.43736367
Set Approval For...194901042024-03-22 12:16:11276 days ago1711109771IN
0xaBcf18BF...D6aD6D2ca
0 ETH0.0010311522.13196637
Set Approval For...192112692024-02-12 10:11:47315 days ago1707732707IN
0xaBcf18BF...D6aD6D2ca
0 ETH0.0010406422.33575731
Set Approval For...191908562024-02-09 13:25:59318 days ago1707485159IN
0xaBcf18BF...D6aD6D2ca
0 ETH0.0018135973.48751308
Owner Mint191810352024-02-08 4:22:59319 days ago1707366179IN
0xaBcf18BF...D6aD6D2ca
0 ETH0.0021482926.47609752
Owner Mint191810292024-02-08 4:21:47319 days ago1707366107IN
0xaBcf18BF...D6aD6D2ca
0 ETH0.0022567827.81309077
Owner Mint191810242024-02-08 4:20:47319 days ago1707366047IN
0xaBcf18BF...D6aD6D2ca
0 ETH0.0021529326.53323631
Owner Mint191810192024-02-08 4:19:47319 days ago1707365987IN
0xaBcf18BF...D6aD6D2ca
0 ETH0.0022918228.24491634
View all transactions

Latest 2 internal transactions

Advanced mode:
Parent Transaction Hash Block
From
To
197089582024-04-22 5:49:35245 days ago1713764975
0xaBcf18BF...D6aD6D2ca
7 ETH
180436142023-09-01 18:53:23479 days ago1693594403
0xaBcf18BF...D6aD6D2ca
59 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MintPass

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 150 runs

Other Settings:
default evmVersion
File 1 of 20 : MintPass.sol
// SPDX-License-Identifier: MIT

/* 

_____/\\\\\\\\\_____/\\\\\_____/\\\_____/\\\\\\\\\_____/\\\\\\\\\\\\\___        
 ___/\\\///////\\\__\/\\\\\\___\/\\\___/\\\\\\\\\\\\\__\/\\\/////////\\\_       
  __\/\\\_____\/\\\__\/\\\/\\\__\/\\\__/\\\/////////\\\_\/\\\_______\/\\\_      
   __\///\\\\\\\\\/___\/\\\//\\\_\/\\\_\/\\\_______\/\\\_\/\\\\\\\\\\\\\/__     
    ___/\\\///////\\\__\/\\\\//\\\\/\\\_\/\\\\\\\\\\\\\\\_\/\\\/////////____    
     __/\\\______\//\\\_\/\\\_\//\\\/\\\_\/\\\/////////\\\_\/\\\_____________   
      _\//\\\______/\\\__\/\\\__\//\\\\\\_\/\\\_______\/\\\_\/\\\_____________  
       __\///\\\\\\\\\/___\/\\\___\//\\\\\_\/\\\_______\/\\\_\/\\\_____________ 
        ____\/////////_____\///_____\/////__\///________\///__\///______________

Smartcontract developed by 256ART.

 */
pragma solidity ^0.8.19;

import "./helpers/SSTORE2.sol";
import "./helpers/OwnableUpgradeable.sol";
import "./helpers/ERC721EnumerableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/Base64Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/cryptography/MerkleProofUpgradeable.sol";

contract MintPass is ERC721EnumerableUpgradeable, OwnableUpgradeable {
    mapping(uint256 => bytes32) public tokenIdToHash;
    mapping(address => bool) private addressToClaimed;

    struct Project {
        string name; //unknown
        string imageBase; //unkown
        address[] artScripts; //unknown
        bytes32 merkleRoot; //32
        address artInfo; //20
        uint56 biddingStartTimeStamp; //8
        uint32 maxSupply; //4
        address payable ownerAddress; //20
        uint56 allowListStartTimeStamp; //8
        uint24 royalty; //3
        uint96 reservePrice; //12
        address payable royaltyAddress; //20
        uint56 burnCounter; //8
    }

    struct TotalAndCount {
        uint128 total;
        uint128 count;
    }

    Project private project;

    /**
     * @notice Initializes the project.
     * @dev Initializes the ERC721 contract.
     * @param _p The project data.
     */
    function initProject(Project calldata _p) public initializer {
        __ERC721_init(_p.name, "256ART");
        __Ownable_init(_p.ownerAddress);
        project = _p;
    }

    /**
     * @notice Gets the current price.
     */
    function currentPrice() public view returns (uint256) {
        require(
            block.timestamp > project.biddingStartTimeStamp,
            "Mint not started"
        );

        uint256 timeElapsed = block.timestamp - project.biddingStartTimeStamp;

        uint256 startPrice = project.reservePrice * 5; // 5 ETH in wei
        uint256 timeInterval = 15 * 60; // 15 minutes in seconds

        if (timeElapsed < 4 * timeInterval) {
            uint256 elapsedIntervals = timeElapsed / timeInterval;
            uint256 price = startPrice - (elapsedIntervals * 10 ** 18);
            return price;
        } else {
            return project.reservePrice;
        }
    }

    /**
     * @notice Mint tokens to an address (owner only)
     * @dev Mints a given number of tokens to a specified address. Can only be called by the project owner.
     * @param count The number of tokens to be minted.
     * @param a The address to which the tokens will be minted.
     */
    function ownerMint(uint24 count, address a) public onlyOwner {
        uint256 totalMinted = _owners.length;
        require(totalMinted + count < project.maxSupply, "Minted out");
        require(count < 5, "Mint max four per tx");

        for (uint256 i; i < count; ) {
            unchecked {
                uint256 tokenId = totalMinted + i;
                tokenIdToHash[tokenId] = createHash(
                    tokenId,
                    project.ownerAddress
                );
                _mint(a, tokenId);
                i++;
            }
        }
    }

    /**
     * @notice Mint a token to an allow listed address if conditions met.
     * @dev Mints a token to a specified address if that address is on the project's allow list and has not already claimed a token.
     * @param proof The proof of inclusion in the project's Merkle tree.
     * @param a The address to which the token will be minted.
     */
    function allowListMint(bytes32[] memory proof, address a) public payable {
        require(
            block.timestamp > project.allowListStartTimeStamp,
            "Allow list mint not started"
        );
        require(
            block.timestamp < project.biddingStartTimeStamp,
            "Allow list mint ended"
        );
        require(
            MerkleProofUpgradeable.verify(
                proof,
                project.merkleRoot,
                keccak256(abi.encodePacked(a))
            ),
            "Not on allow list"
        );
        require(addressToClaimed[a] == false, "Already claimed");

        uint256 totalMinted = _owners.length;

        require(totalMinted + 1 < project.maxSupply, "Minted out");
        require(project.reservePrice <= msg.value, "Invalid funds provided");
        require(msg.sender == tx.origin, "No contract minting");

        unchecked {
            uint256 tokenId = totalMinted;
            addressToClaimed[a] = true;
            tokenIdToHash[tokenId] = createHash(tokenId, msg.sender);
            _mint(a, tokenId);
        }
    }

    /**
     * @notice Check whether a given address is on the allowlist and whether it has already claimed a token.
     * @dev Returns two boolean values. The first indicates whether the address is on the allowlist, and the second indicates whether the address has already claimed a token.
     * @param a The address to check.
     * @param proof The proof of inclusion in the project's Merkle tree for the given address.
     * @return isOnList Whether the address is on the allowlist.
     * @return hasClaimed Whether the address has already claimed a token.
     */
    function checkAllowListAndClaimStatus(
        address a,
        bytes32[] memory proof
    ) public view returns (bool, bool) {
        bool isOnList = MerkleProofUpgradeable.verify(
            proof,
            project.merkleRoot,
            keccak256(abi.encodePacked(a))
        );
        bool hasClaimed = addressToClaimed[a];
        return (isOnList, hasClaimed);
    }

    /**
     * @notice Mint tokens to an address through a Dutch auction until reserve price is met, while checking for various conditions.
     * @dev Mints a given number of tokens to a specified address through a Dutch auction process that ends when the reserve price is met. Also checks various conditions such as max supply, minimum and maximum number of tokens that can be minted per transaction, and that the sender is not a contract.
     * @param count The number of tokens to be minted.
     * @param a The address to which the tokens will be minted.
     */
    function mint(uint128 count, address a) public payable {
        require(count > 0, "Mint at least one");
        require(count < 5, "Mint max four per tx");

        uint256 totalMinted = _owners.length;

        require(totalMinted + count < project.maxSupply, "Minted out");

        uint256 price = currentPrice();
        uint256 total = count * price;

        require(total <= msg.value, "Invalid funds provided");
        require(msg.sender == tx.origin, "No contract minting");

        for (uint256 i; i < count; ) {
            unchecked {
                uint256 tokenId = totalMinted + i;

                tokenIdToHash[tokenId] = createHash(tokenId, msg.sender);

                _mint(a, tokenId);
                i++;
            }
        }
    }

    /**
     * @notice Create a hash for the given tokenId, blockNumber and sender.
     * @param tokenId The ID of the token.
     * @param sender The address of the receiver.
     * @return The resulting hash.
     */
    function createHash(
        uint256 tokenId,
        address sender
    ) private view returns (bytes32) {
        unchecked {
            return
                keccak256(
                    abi.encodePacked(
                        tokenId,
                        sender,
                        blockhash(block.number - 1),
                        blockhash(block.number - 2),
                        blockhash(block.number - 4),
                        block.prevrandao,
                        block.coinbase
                    )
                );
        }
    }

    /**
     * @notice Get the hash associated with a given tokenId.
     * @param _id The ID of the token.
     * @return The hash associated with the given tokenId.
     */
    function tokenHash(uint256 _id) public view returns (bytes32) {
        return tokenIdToHash[_id];
    }

    /**
     * @notice Withdraw funds from the contract
     * @dev Transfers a percentage of the balance to the 256ART address and optionally a third party, the rest to the owner address.
     */
    function withdraw() public {
        require(msg.sender == project.ownerAddress, "Not allowed");

        uint256 balance = address(this).balance;

        require(balance > 0, "Balance is zero");

        project.ownerAddress.transfer(balance);
    }

    function walletOfOwner(
        address _owner
    ) public view returns (uint256[] memory) {
        uint256 tokenCount = balanceOf(_owner);
        if (tokenCount == 0) return new uint256[](0);

        uint256[] memory tokensId = new uint256[](tokenCount);
        for (uint256 i; i < tokenCount; i++) {
            tokensId[i] = tokenOfOwnerByIndex(_owner, i);
        }
        return tokensId;
    }

    function batchTransferFrom(
        address _from,
        address _to,
        uint256[] memory _tokenIds
    ) public {
        for (uint256 i; i < _tokenIds.length; i++) {
            transferFrom(_from, _to, _tokenIds[i]);
        }
    }

    function batchSafeTransferFrom(
        address _from,
        address _to,
        uint256[] memory _tokenIds,
        bytes memory data_
    ) public {
        for (uint256 i; i < _tokenIds.length; i++) {
            safeTransferFrom(_from, _to, _tokenIds[i], data_);
        }
    }

    function isOwnerOf(
        address account,
        uint256[] calldata _tokenIds
    ) external view returns (bool) {
        for (uint256 i; i < _tokenIds.length; ++i) {
            if (_owners[_tokenIds[i]] != account) return false;
        }

        return true;
    }

    function _mint(address to, uint256 tokenId) internal virtual override {
        _owners.push(to);
        emit Transfer(address(0), to, tokenId);
    }

    /**
     * @notice Calculates the royalty information for a given sale.
     * @dev Implements the required royaltyInfo function for the ERC2981 standard.
     * @param _salePrice The sale price of the token being sold.
     * @return receiver The address of the royalty recipient.
     * @return royaltyAmount The amount of royalty to be paid.
     */
    function royaltyInfo(
        uint256,
        uint256 _salePrice
    ) external view returns (address receiver, uint256 royaltyAmount) {
        return (project.royaltyAddress, (_salePrice * project.royalty) / 10000);
    }

    /**
     * @notice Converts a bytes16 value to its hexadecimal representation as a bytes32 value.
     * @param data The bytes16 value to convert.
     * @return result The hexadecimal representation of the input value as a bytes32 value.
     */
    function toHex16(bytes16 data) internal pure returns (bytes32 result) {
        result =
            (bytes32(data) &
                0xFFFFFFFFFFFFFFFF000000000000000000000000000000000000000000000000) |
            ((bytes32(data) &
                0x0000000000000000FFFFFFFFFFFFFFFF00000000000000000000000000000000) >>
                64);
        result =
            (result &
                0xFFFFFFFF000000000000000000000000FFFFFFFF000000000000000000000000) |
            ((result &
                0x00000000FFFFFFFF000000000000000000000000FFFFFFFF0000000000000000) >>
                32);
        result =
            (result &
                0xFFFF000000000000FFFF000000000000FFFF000000000000FFFF000000000000) |
            ((result &
                0x0000FFFF000000000000FFFF000000000000FFFF000000000000FFFF00000000) >>
                16);
        result =
            (result &
                0xFF000000FF000000FF000000FF000000FF000000FF000000FF000000FF000000) |
            ((result &
                0x00FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF0000) >>
                8);
        result =
            ((result &
                0xF000F000F000F000F000F000F000F000F000F000F000F000F000F000F000F000) >>
                4) |
            ((result &
                0x0F000F000F000F000F000F000F000F000F000F000F000F000F000F000F000F00) >>
                8);
        result = bytes32(
            0x3030303030303030303030303030303030303030303030303030303030303030 +
                uint256(result) +
                (((uint256(result) +
                    0x0606060606060606060606060606060606060606060606060606060606060606) >>
                    4) &
                    0x0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F) *
                7
        );
    }

    /**
     * @dev Converts a bytes32 value to its hexadecimal representation as a string.
     * @param data The bytes32 value to convert.
     * @return The hexadecimal representation of the bytes32 value, as a string.
     */
    function toHex(bytes32 data) private pure returns (string memory) {
        return
            string(
                abi.encodePacked(
                    "0x",
                    toHex16(bytes16(data)),
                    toHex16(bytes16(data << 128))
                )
            );
    }

    /**
     * @dev Generates an array of random numbers based on a seed value.
     * @param seed The seed value used to generate the random numbers.
     * @param timesToCall The number of random numbers to generate.
     * @return An array of random numbers with length equal to `timesToCall`.
     */
    function generateRandomNumbers(
        bytes32 seed,
        uint256 timesToCall
    ) private pure returns (uint256[] memory) {
        uint256[] memory randNumbers = new uint256[](timesToCall);

        for (uint256 i; i < timesToCall; i++) {
            uint256 r = uint256(
                keccak256(abi.encodePacked(uint256(seed) + i))
            ) % 10000;
            randNumbers[i] = r;
        }

        return randNumbers;
    }

    /**
     * @notice Returns a string containing base64 encoded HTML code which renders the artwork associated with the given tokenId directly from chain.
     * @dev This function generates the HTML code for the artwork.
     * @param tokenId The ID of the token whose artwork will be generated.
     * @return artwork A string containing the base64 encoded HTML code for the artwork.
     */
    function tokenHTML(
        uint256 tokenId
    ) public view returns (string memory artwork) {
        require(_exists(tokenId), "Token not found");

        string memory artScript;
        string memory blockParams;

        blockParams = string.concat(
            ", 'ownerOfPiece' : '",
            StringsUpgradeable.toHexString(
                uint256(uint160(ownerOf(tokenId))),
                20
            ),
            "', 'blockHash' : '",
            toHex(blockhash(block.number - 1)),
            "', 'blockNumber' : ",
            StringsUpgradeable.toString(block.number),
            ", 'prevrandao' : ",
            StringsUpgradeable.toString(block.prevrandao),
            ", 'totalSupply' : ",
            StringsUpgradeable.toString(totalSupply()),
            ", 'balanceOfOwner' : ",
            StringsUpgradeable.toString(balanceOf(ownerOf(tokenId)))
        );

        for (uint256 i; i < project.artScripts.length; i++) {
            IArtScript artscriptToGet = IArtScript(project.artScripts[i]);
            artScript = string.concat(artScript, artscriptToGet.artScript());
        }

        return
            string.concat(
                "data:text/html;base64,",
                Base64Upgradeable.encode(
                    abi.encodePacked(
                        "<html><head><script>let inputData={'tokenId': ",
                        StringsUpgradeable.toString(tokenId),
                        ",'hash': '",
                        toHex(tokenHash(tokenId)),
                        "'",
                        blockParams,
                        "};",
                        "</script>",
                        "<meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1'><style type='text/css'>html{height:100%;width:100%;}body{height:100%;width:100%;margin:0;padding:0;background-color:#000000;}canvas{display:block;max-width:100%;max-height:100%;padding:0;margin:auto;display:block;position:absolute;top:0;bottom:0;left:0;right:0;object-fit:contain;}</style>",
                        "</head><body><script defer>async function ls256(e){let t=new TextDecoder,a=window.atob(e),n=a.length,r=new Uint8Array(n);for(var o=0;o<n;o++)r[o]=a.charCodeAt(o);let d=r.buffer;let c=new ReadableStream({start(e){e.enqueue(d),e.close()}}).pipeThrough(new DecompressionStream('gzip')),i=await new Response(c),p=await i.arrayBuffer(),l=await t.decode(p),s=document.createElement('script');s.type='text/javascript',s.appendChild(document.createTextNode(l)),document.body.appendChild(s)};async function la256(){",
                        "await ls256('",
                        artScript,
                        "');"
                        "};la256();</script></body></html>"
                    )
                )
            );
    }

    /**
     * @notice Returns the metadata of the token with the given ID, including name, owner, description, license, image and animation URL, and attributes.
     * @dev It returns a base64 encoded JSON object which conforms to the ERC721 metadata standard.
     * @param _tokenId The ID of the token to retrieve metadata for.
     * @return A base64 encoded JSON object that contains the metadata of the given token.
     */
    function tokenURI(
        uint256 _tokenId
    ) public view override returns (string memory) {
        require(_exists(_tokenId), "Token not found");

        IArtInfo artInfoToGet = IArtInfo(project.artInfo);

        string memory imageBase;
        string memory librariesUsed = ',"libraries_used": "None';
        string memory attributes;

        if (bytes(project.imageBase).length != 0) {
            imageBase = string.concat(
                ',"image":"',
                project.imageBase,
                StringsUpgradeable.toString(_tokenId),
                '"'
            );
        }

        return
            string.concat(
                "data:application/json;base64,",
                Base64Upgradeable.encode(
                    abi.encodePacked(
                        '{"name":"',
                        project.name,
                        " #",
                        StringsUpgradeable.toString(_tokenId),
                        '", "artist":"',
                        artInfoToGet.artist(),
                        '","description":"',
                        artInfoToGet.description(),
                        '","license":"',
                        artInfoToGet.license(),
                        '","hash":"',
                        toHex(tokenHash(_tokenId)),
                        '"',
                        librariesUsed,
                        '"',
                        imageBase,
                        ',"animation_url":"',
                        tokenHTML(_tokenId),
                        '","attributes":[',
                        attributes,
                        "]}"
                    )
                )
            );
    }

    /**
     * @notice Allows to set the image base URL for the project (owner)
     * @dev Only callable by the owner
     * @param _imageBase String representing the base URL for images
     */
    function setImageBase(string calldata _imageBase) public onlyOwner {
        project.imageBase = _imageBase;
    }

    /**
     * @notice Sets the maximum number of tokens that can be minted for the project (owner)
     * @dev Only the owner of the contract can call this function.
     * @dev The new maximum supply must be greater than the current number of tokens minted
     * and less than the current maximum supply
     * @param _maxSupply The new maximum number of tokens that can be minted
     */
    function setMaxSupply(uint24 _maxSupply) public onlyOwner {
        require(_maxSupply > _owners.length, "Too low");
        require(_maxSupply < project.maxSupply, "Too high");
        project.maxSupply = _maxSupply + 1; // We always set maxSupply one higher for gas savings during mint
    }

    /**
     * @notice Allows to set the art scripts for the project
     * @param _artScripts Array of addresses representing the art scripts
     */
    function setArtScripts(address[] calldata _artScripts) public onlyOwner {
        project.artScripts = _artScripts;
    }

    /**
     * @notice Allows to set the merkle root for the project (owner)
     * @dev Only callable by the owner
     * @param _merkleRoot Bytes32 value to set as the merkle root
     */
    function setMerkleRoot(bytes32 _merkleRoot) public onlyOwner {
        project.merkleRoot = _merkleRoot;
    }

    /**
     * @notice Returns the reserve price for the project
     * @dev This function is view only
     * @return uint256 Representing the reserve price for the project
     */
    function getReservePrice() external view returns (uint256) {
        return project.reservePrice;
    }

    /**
     * @notice Returns the address of the ArtInfo contract used in the project
     * @dev This function is view only
     * @return address Representing the address of the ArtInfo contract
     */
    function getArtInfo() external view returns (address) {
        return project.artInfo;
    }

    /**
     * @notice Returns an array with the addresses storing the art script used in the project
     * @dev This function is view only
     * @return address[] Array of addresses storing the art script used in the project
     */
    function getArtScripts() external view returns (address[] memory) {
        return project.artScripts;
    }

    /**
     * @notice Returns the maximum number of tokens that can be minted for the project
     * @dev This function is view only
     * @return uint256 Representing the maximum number of tokens that can be minted
     */
    function getMaxSupply() external view returns (uint256) {
        return project.maxSupply - 1;
    }

    /**
     * @notice Returns the timestamp of the bidding start for the project
     * @dev This function is view only
     * @return uint256 Representing the timestamp of the bidding start
     */
    function getBiddingStartTimeStamp() external view returns (uint256) {
        return project.biddingStartTimeStamp;
    }

    /**
     * @notice Returns the timestamp of the allowlist start for the project
     * @dev This function is view only
     * @return uint256 Representing the timestamp of the allowlist start
     */
    function getallowListStartTimeStamp() external view returns (uint256) {
        return project.allowListStartTimeStamp;
    }

    /**
     * @notice Allows an address to destroy a token.
     * @dev The caller must own `tokenId`.
     * @param tokenId the ID of the token to burn
     */
    function burnToken(uint256 tokenId) public virtual {
        require(
            _isApprovedOrOwner(msg.sender, tokenId),
            "ERC721Burnable: caller is not owner nor approved"
        );

        _burn(tokenId);
    }

    function _burn(uint256 tokenId) internal virtual override {
        super._burn(tokenId);
        project.burnCounter++;
    }

    function totalSupply() public view override returns (uint256) {
        return super.totalSupply() - project.burnCounter;
    }
}

interface IArtScript {
    function artScript() external pure returns (string memory);
}

interface IArtInfo {
    function artist() external pure returns (string memory);

    function description() external pure returns (string memory);

    function license() external pure returns (string memory);
}

interface IFileStorage {
    function readFile(
        address fileStore,
        string calldata filename
    ) external pure returns (string memory);
}

File 2 of 20 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.1) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.2;

import "../../utils/AddressUpgradeable.sol";

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
 * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
 * case an upgrade adds a module that needs to be initialized.
 *
 * For example:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * contract MyToken is ERC20Upgradeable {
 *     function initialize() initializer public {
 *         __ERC20_init("MyToken", "MTK");
 *     }
 * }
 * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
 *     function initializeV2() reinitializer(2) public {
 *         __ERC20Permit_init("MyToken");
 *     }
 * }
 * ```
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
 * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() {
 *     _disableInitializers();
 * }
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     * @custom:oz-retyped-from bool
     */
    uint8 private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Triggered when the contract has been initialized or reinitialized.
     */
    event Initialized(uint8 version);

    /**
     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
     * `onlyInitializing` functions can be used to initialize parent contracts.
     *
     * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a
     * constructor.
     *
     * Emits an {Initialized} event.
     */
    modifier initializer() {
        bool isTopLevelCall = !_initializing;
        require(
            (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),
            "Initializable: contract is already initialized"
        );
        _initialized = 1;
        if (isTopLevelCall) {
            _initializing = true;
        }
        _;
        if (isTopLevelCall) {
            _initializing = false;
            emit Initialized(1);
        }
    }

    /**
     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
     * used to initialize parent contracts.
     *
     * A reinitializer may be used after the original initialization step. This is essential to configure modules that
     * are added through upgrades and that require initialization.
     *
     * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`
     * cannot be nested. If one is invoked in the context of another, execution will revert.
     *
     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
     * a contract, executing them in the right order is up to the developer or operator.
     *
     * WARNING: setting the version to 255 will prevent any future reinitialization.
     *
     * Emits an {Initialized} event.
     */
    modifier reinitializer(uint8 version) {
        require(!_initializing && _initialized < version, "Initializable: contract is already initialized");
        _initialized = version;
        _initializing = true;
        _;
        _initializing = false;
        emit Initialized(version);
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} and {reinitializer} modifiers, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    /**
     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called
     * through proxies.
     *
     * Emits an {Initialized} event the first time it is successfully executed.
     */
    function _disableInitializers() internal virtual {
        require(!_initializing, "Initializable: contract is initializing");
        if (_initialized < type(uint8).max) {
            _initialized = type(uint8).max;
            emit Initialized(type(uint8).max);
        }
    }

    /**
     * @dev Returns the highest version that has been initialized. See {reinitializer}.
     */
    function _getInitializedVersion() internal view returns (uint8) {
        return _initialized;
    }

    /**
     * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.
     */
    function _isInitializing() internal view returns (bool) {
        return _initializing;
    }
}

File 3 of 20 : IERC721EnumerableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721Upgradeable.sol";

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721Upgradeable.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        return result;
    }
}

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

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

/**
 * @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 ContextUpgradeable is Initializable {
    function __Context_init() internal onlyInitializing {
    }

    function __Context_init_unchained() internal onlyInitializing {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

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

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The tree and the proofs can be generated using our
 * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].
 * You will find a quickstart guide in the readme.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 * OpenZeppelin's JavaScript library generates merkle trees that are safe
 * against this attack out of the box.
 */
library MerkleProofUpgradeable {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

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

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

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

    /**
     * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction
     * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
     * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
     * respectively.
     *
     * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
     * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
     * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165Upgradeable.sol";
import "../../proxy/utils/Initializable.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 ERC165Upgradeable is Initializable, IERC165Upgradeable {
    function __ERC165_init() internal onlyInitializing {
    }

    function __ERC165_init_unchained() internal onlyInitializing {
    }
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165Upgradeable).interfaceId;
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 12 of 20 : IERC165Upgradeable.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 IERC165Upgradeable {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./math/MathUpgradeable.sol";

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

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

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

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

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

File 15 of 20 : Address.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

library Address {
    function isContract(address account) internal view returns (bool) {
        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }
}

File 16 of 20 : Bytecode.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

            uint256 size = maxSize < reqSize ? maxSize : reqSize;

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

File 17 of 20 : ERC721EnumerableUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.13;

import "./ERC721Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/IERC721EnumerableUpgradeable.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 but rips out the core of the gas-wasting processing that comes from OpenZeppelin.
 */
abstract contract ERC721EnumerableUpgradeable is
    ERC721Upgradeable,
    IERC721EnumerableUpgradeable
{
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(IERC165Upgradeable, ERC721Upgradeable)
        returns (bool)
    {
        return
            interfaceId == type(IERC721EnumerableUpgradeable).interfaceId ||
            super.supportsInterface(interfaceId);
    }

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

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

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

        uint256 count;
        for (uint256 i; i < _owners.length; i++) {
            if (owner == _owners[i]) {
                if (count == index) return i;
                else count++;
            }
        }

        revert("ERC721Enumerable: owner index out of bounds");
    }
}

File 18 of 20 : ERC721Upgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.13;

import "@openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/IERC721ReceiverUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/IERC721MetadataUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol";
import "./Address.sol";

abstract contract ERC721Upgradeable is
    ContextUpgradeable,
    ERC165Upgradeable,
    IERC721Upgradeable,
    IERC721MetadataUpgradeable
{
    using Address for address;
    using StringsUpgradeable for uint256;

    string private _name;
    string private _symbol;

    // Mapping from token ID to owner address
    address[] internal _owners;

    mapping(uint256 => address) private _tokenApprovals;
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    function __ERC721_init(
        string memory name_,
        string memory symbol_
    ) internal onlyInitializing {
        __ERC721_init_unchained(name_, symbol_);
    }

    function __ERC721_init_unchained(
        string memory name_,
        string memory symbol_
    ) internal onlyInitializing {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(
        bytes4 interfaceId
    )
        public
        view
        virtual
        override(ERC165Upgradeable, IERC165Upgradeable)
        returns (bool)
    {
        return
            interfaceId == type(IERC721Upgradeable).interfaceId ||
            interfaceId == type(IERC721MetadataUpgradeable).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"
        );

        uint256 count;
        for (uint256 i; i < _owners.length; ++i) {
            if (owner == _owners[i]) ++count;
        }
        return count;
    }

    /**
     * @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 {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721Upgradeable.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 {
        require(operator != _msgSender(), "ERC721: approve to caller");

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //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 tokenId < _owners.length && _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 = ERC721Upgradeable.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);
        _owners.push(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 = ERC721Upgradeable.ownerOf(tokenId);

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

        // Clear approvals
        _approve(address(0), tokenId);
        _owners[tokenId] = address(0);

        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(
            ERC721Upgradeable.ownerOf(tokenId) == from,
            "ERC721: transfer of token that is not own"
        );
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

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

    /**
     * @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
                IERC721ReceiverUpgradeable(to).onERC721Received(
                    _msgSender(),
                    from,
                    tokenId,
                    _data
                )
            returns (bytes4 retval) {
                return
                    retval ==
                    IERC721ReceiverUpgradeable.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 19 of 20 : OwnableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.13;

import "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.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 OwnableUpgradeable is Initializable, ContextUpgradeable {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    function __Ownable_init(address _ownerOnInit) internal onlyInitializing {
        __Ownable_init_unchained(_ownerOnInit);
    }

    function __Ownable_init_unchained(address _ownerOnInit)
        internal
        onlyInitializing
    {
        _transferOwnership(_ownerOnInit);
    }

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

File 20 of 20 : SSTORE2.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;

import "./Bytecode.sol";

library SSTORE2 {
    error WriteError();

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

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

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

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

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

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

Settings
{
  "viaIR": true,
  "optimizer": {
    "enabled": true,
    "runs": 150,
    "details": {
      "yul": true
    }
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"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":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","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":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"address","name":"a","type":"address"}],"name":"allowListMint","outputs":[],"stateMutability":"payable","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":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"bytes","name":"data_","type":"bytes"}],"name":"batchSafeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"batchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burnToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"a","type":"address"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"checkAllowListAndClaimStatus","outputs":[{"internalType":"bool","name":"","type":"bool"},{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getArtInfo","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getArtScripts","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBiddingStartTimeStamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getReservePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getallowListStartTimeStamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"imageBase","type":"string"},{"internalType":"address[]","name":"artScripts","type":"address[]"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"address","name":"artInfo","type":"address"},{"internalType":"uint56","name":"biddingStartTimeStamp","type":"uint56"},{"internalType":"uint32","name":"maxSupply","type":"uint32"},{"internalType":"address payable","name":"ownerAddress","type":"address"},{"internalType":"uint56","name":"allowListStartTimeStamp","type":"uint56"},{"internalType":"uint24","name":"royalty","type":"uint24"},{"internalType":"uint96","name":"reservePrice","type":"uint96"},{"internalType":"address payable","name":"royaltyAddress","type":"address"},{"internalType":"uint56","name":"burnCounter","type":"uint56"}],"internalType":"struct MintPass.Project","name":"_p","type":"tuple"}],"name":"initProject","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"isOwnerOf","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"count","type":"uint128"},{"internalType":"address","name":"a","type":"address"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint24","name":"count","type":"uint24"},{"internalType":"address","name":"a","type":"address"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_artScripts","type":"address[]"}],"name":"setArtScripts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_imageBase","type":"string"}],"name":"setImageBase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint24","name":"_maxSupply","type":"uint24"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenHTML","outputs":[{"internalType":"string","name":"artwork","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"tokenHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIdToHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"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":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608080604052346100165761478c908161001c8239f35b600080fdfe6080604052600436101561001257600080fd5b60003560e01c806301ffc9a7146102e257806306fdde03146102dd578063081812fc146102d8578063095ea7b3146102d357806318160ddd146102ce5780631cd500a5146102c95780631f1a7d94146102c457806323b872dd146102bf5780632a55205a146102ba5780632f745c59146102b5578063322736ba146102b05780633ccfd60b146102ab57806342842e0e146102a657806342f74cd7146102a1578063438b63001461029c5780634c0f38c2146102975780634d44660c146102925780634f6ccce71461028d5780635a4fee3014610288578063621a1f74146102425780636352211e146102835780636c0ad59f1461027e57806370a0823114610279578063715018a61461027457806378491b1b1461026f5780637b47ec1a1461026a5780637cb64759146102655780638da5cb5b1461026057806390ad0c9d1461025b57806395d89b41146102565780639d1b464a146102515780639df742d71461024c578063a22cb46514610247578063a386439714610242578063b34912d71461023d578063b79bebaf14610238578063b88d4fde14610233578063c87b56dd1461022e578063c924234d14610229578063ce67764c14610224578063e985e9c51461021f578063f07223221461021a578063f2fde38b14610215578063f3993d11146102105763fe0d8aac1461020b57600080fd5b611c22565b611ba2565b611b08565b611ae1565b611a79565b6119c0565b6118bb565b6115dd565b611587565b611554565b61149a565b610c3f565b6113aa565b611227565b61120c565b611168565b6110ba565b611091565b611063565b610f2d565b610e57565b610de9565b610dc2565b610c89565b610c6b565b610bac565b6109d5565b610983565b610919565b6108b0565b610887565b61085f565b6107d5565b61072c565b610701565b6106c2565b610699565b610643565b610619565b6105f6565b610503565b6104c2565b6103e2565b6102fe565b6001600160e01b03198116036102f957565b600080fd5b346102f95760203660031901126102f957602060043561031d816102e7565b63ffffffff60e01b1663780e9d6360e01b8114908115610343575b506040519015158152f35b6380ac58cd60e01b811491508115610375575b8115610364575b5038610338565b6301ffc9a760e01b1490503861035d565b635b5e139f60e01b81149150610356565b60005b8381106103995750506000910152565b8181015183820152602001610389565b906020916103c281518092818552858086019101610386565b601f01601f1916010190565b9060206103df9281815201906103a9565b90565b346102f9576000806003193601126104bf576040518160655461040481611da5565b80845290600190818116908115610497575060011461043e575b61043a8461042e81880382610aa9565b604051918291826103ce565b0390f35b60658352602094507f8ff97419363ffd7000167f130ef7168fbea05faf9251824ca5043f113cc6a7c75b828410610484575050508161043a9361042e928201019361041e565b8054858501870152928501928101610468565b61043a965061042e9450602092508593915060ff191682840152151560051b8201019361041e565b80fd5b346102f95760203660031901126102f95760206104e060043561411b565b6040516001600160a01b039091168152f35b6001600160a01b038116036102f957565b346102f95760403660031901126102f957600435610520816104f2565b60243561052c81614013565b916001600160a01b0380841690821681146105a75761055e93610559913314908115610560575b506140ae565b614517565b005b6001600160a01b031660009081526069602052604090206105a1915061059a9033905b9060018060a01b0316600052602052604060002090565b5460ff1690565b38610553565b60405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608490fd5b346102f95760003660031901126102f9576020610611613d09565b604051908152f35b346102f95760003660031901126102f957602066ffffffffffffff60a25460a01c16604051908152f35b346102f95760003660031901126102f957602066ffffffffffffff60a35460a01c16604051908152f35b60609060031901126102f957600435610685816104f2565b90602435610692816104f2565b9060443590565b346102f95761055e6106aa3661066d565b916106bd6106b884336142da565b61419e565b6143b6565b346102f95760403660031901126102f957604060a45460601c6127106106f462ffffff60a35460d81c16602435612136565b0482519182526020820152f35b346102f95760403660031901126102f9576020610611600435610723816104f2565b60243590613d70565b346102f9576000806003193601126104bf57604051809160a054908183526020809301809260a0835284832090835b8181106107b85750505084610771910385610aa9565b60405193838594850191818652518092526040850193925b82811061079857505050500390f35b83516001600160a01b031685528695509381019392810192600101610789565b82546001600160a01b03168452928601926001928301920161075b565b346102f9576000806003193601126104bf5760a3546001600160a01b03163381900361082c5781808080934790811561080e8115612a55565b8390610823575bf11561081e5780f35b612a93565b506108fc610815565b60405162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b6044820152606490fd5b346102f95761055e6108703661066d565b906040519261087e84610a6e565b60008452614204565b346102f95760003660031901126102f95760a2546040516001600160a01b039091168152602090f35b346102f9576020806003193601126102f9576108d66004356108d1816104f2565b612a9f565b906040519181839283018184528251809152816040850193019160005b82811061090257505050500390f35b8351855286955093810193928101926001016108f3565b346102f95760003660031901126102f95763ffffffff6000198160a25460d81c160181811161094e5760209160405191168152f35b6120d5565b9181601f840112156102f9578235916001600160401b0383116102f9576020808501948460051b0101116102f957565b346102f95760403660031901126102f9576004356109a0816104f2565b6024356001600160401b0381116102f9576020916109c56109cb923690600401610953565b91612b61565b6040519015158152f35b346102f95760203660031901126102f9576004356067548110156109fe57602090604051908152f35b60405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608490fd5b634e487b7160e01b600052604160045260246000fd5b602081019081106001600160401b03821117610a8957604052565b610a58565b604081019081106001600160401b03821117610a8957604052565b90601f801991011681019081106001600160401b03821117610a8957604052565b6001600160401b038111610a895760051b60200190565b81601f820112156102f957803591610af883610aca565b92610b066040519485610aa9565b808452602092838086019260051b8201019283116102f9578301905b828210610b30575050505090565b81358152908301908301610b22565b6001600160401b038111610a8957601f01601f191660200190565b929192610b6682610b3f565b91610b746040519384610aa9565b8294818452818301116102f9578281602093846000960137010152565b9080601f830112156102f9578160206103df93359101610b5a565b346102f95760803660031901126102f957600435610bc9816104f2565b60243590610bd6826104f2565b6001600160401b036044358181116102f957610bf6903690600401610ae1565b906064359081116102f957610c0f903690600401610b91565b60005b825181101561055e5780610c3583610c2d610c3a948761298e565b518888614204565b612969565b610c12565b346102f95760203660031901126102f957600435600052609c6020526020604060002054604051908152f35b346102f95760203660031901126102f95760206104e0600435614013565b346102f9576020806003193601126102f9576001600160401b036004358181116102f957366023820112156102f95780600401359182116102f957602490368284830101116102f957610ce760018060a01b03606a5416331461265a565b610cfb83610cf6609f54611da5565b611e3d565b600093601f8411600114610d3c5750928293600093610d2f575b505050600019600383901b1c191660019190911b17609f55005b0101359050388080610d15565b609f600052601f198416947f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28939181905b878210610da85750508460019610610d8c575b50505050811b01609f55005b60001960f88660031b161c199201013516905538808080610d80565b806001849786839596890101358155019601920190610d6d565b346102f95760203660031901126102f9576020610611600435610de4816104f2565b613f5e565b346102f9576000806003193601126104bf57606a5481906001600160a01b03811690610e1633831461265a565b6001600160a01b031916606a557f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b62ffffff8116036102f957565b346102f95760403660031901126102f957600435610e7481610e4a565b60243590610e81826104f2565b610e9660018060a01b03606a5416331461265a565b62ffffff60675491169081810180821161094e5760a254610ec2919060d81c63ffffffff165b116126fb565b610ece60058310612734565b60005b828110610eda57005b80610f276001928401610f0c610f06610efa60a35460018060a01b031690565b6001600160a01b031690565b826129e2565b610f2082600052609c602052604060002090565b5586612bc2565b01610ed1565b346102f95760203660031901126102f957600435610f4b81336142da565b1561100557610f5981614013565b90610f63816144c3565b60675481101561100057606760009081527f9787eeb91fe3101235e4a76063c7023ecb40f923f97916639c598592fa30d6ae820180546001600160a01b03191690559182906001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8280a460a55466ffffffffffffff80821681811461094e57600101169066ffffffffffffff19161760a55580f35b612978565b60405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b6064820152608490fd5b346102f95760203660031901126102f95761108960018060a01b03606a5416331461265a565b60043560a155005b346102f95760003660031901126102f957606a546040516001600160a01b039091168152602090f35b346102f95760403660031901126102f9576004356110d7816104f2565b6024356001600160401b0381116102f9576110f9611136913690600401610ae1565b60a154604051606085901b6001600160601b031916602082019081529061112d81603481015b03601f198101835282610aa9565b5190209161290c565b6001600160a01b03919091166000908152609d6020908152604091829020548251931515845260ff1615159083015290f35b346102f9576000806003193601126104bf576040518160665461118a81611da5565b8084529060019081811690811561049757506001146111b35761043a8461042e81880382610aa9565b60668352602094507f46501879b8ca8525e8c2fd519e2fbfcfa2ebea26501294aa02cbfcfb12e943545b8284106111f9575050508161043a9361042e928201019361041e565b80548585018701529285019281016111dd565b346102f95760003660031901126102f95760206106116125ac565b60403660031901126102f9576004356001600160401b0381116102f95761125561055e913690600401610ae1565b602435611261816104f2565b61129061128961127d60a35466ffffffffffffff9060a01c1690565b66ffffffffffffff1690565b4211612777565b6112e06112db60a254936112b166ffffffffffffff8660a01c1642106127c3565b60a154604051606086901b6001600160601b031916602082019081529061112d816034810161111f565b612807565b6001600160a01b0381166000908152609d6020526040902061130b906113059061059a565b15612847565b61132b6067549263ffffffff611320856126a5565b9160d81c16116126fb565b61135261134060a4546001600160601b031690565b6001600160601b033491161115612885565b61135d3233146128ca565b6001600160a01b0381166000908152609d6020526040902061138690805460ff19166001179055565b61139033836129e2565b6113a483600052609c602052604060002090565b55612bc2565b346102f95760403660031901126102f9576004356113c7816104f2565b60243580151581036102f9576001600160a01b0382169133831461145557816114126114239233600052606960205260406000209060018060a01b0316600052602052604060002090565b9060ff801983541691151516179055565b604051901515815233907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190602090a3005b60405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606490fd5b60403660031901126102f9576004356fffffffffffffffffffffffffffffffff81168091036102f957602435906114d0826104f2565b6114db8115156129a2565b6114e760058210612734565b6067546115086114f783836126ee565b60a25460d81c63ffffffff16610ebc565b61152461151c6115166125ac565b84612136565b341015612885565b61152f3233146128ca565b60005b82811061153b57005b8061154e6001928401610f0c33826129e2565b01611532565b346102f95760203660031901126102f95761043a611573600435612ecc565b6040519182916020835260208301906103a9565b346102f95760803660031901126102f9576004356115a4816104f2565b6024356115b0816104f2565b606435916001600160401b0383116102f9576115d361055e933690600401610b91565b9160443591614204565b346102f95760203660031901126102f9576004356116026115fd8261428f565b612c35565b60a254611617906001600160a01b0316610efa565b6060611621613af4565b9061162d609f54611da5565b6118a4575b61163b846136e8565b6040516321de0b0960e11b81529490936001600160a01b03169290600086600481875afa95861561081e57600096611889575b50604051633942720b60e11b815293600085600481845afa94851561081e57600095611868575b50600060049160405192838092631ae1f49360e21b82525afa90811561081e57600091611847575b506116d282600052609c602052604060002090565b546116dc90613915565b916116e690612ecc565b604051683d913730b6b2911d1160b91b602082015297889791969161170d60298a01613b28565b61202360f01b815260020161172191612c9b565b6c1116101130b93a34b9ba111d1160991b8152600d0161174091612c9b565b701116113232b9b1b934b83a34b7b7111d1160791b815260110161176391612c9b565b6c1116113634b1b2b739b2911d1160991b8152600d0161178291612c9b565b691116113430b9b4111d1160b11b8152600a0161179e91612c9b565b601160f91b81526001016117b191612c9b565b601160f91b81526001016117c491612c9b565b71161130b734b6b0ba34b7b72fbab936111d1160711b81526012016117e891612c9b565b6f222c2261747472696275746573223a5b60801b815260100161180a90612c73565b615d7d60f01b815260020103601f19810182526118279082610aa9565b6118309061360d565b61183990613c6a565b60405161043a8192826103ce565b611862913d8091833e61185a8183610aa9565b810190612de0565b386116bd565b611881600091600493973d8091833e61185a8183610aa9565b959150611695565b61189d91963d8091833e61185a8183610aa9565b943861166e565b506118b66118b1846136e8565b613b9c565b611632565b346102f9576003196020368201126102f957600435906001600160401b0382116102f9576101a09082360301126102f9576119346000549161191460ff8460081c1615809481956119b2575b8115611992575b50611cf3565b82611927600160ff196000541617600055565b611979575b60040161240c565b61193a57005b61194a61ff001960005416600055565b604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249890602090a1005b61198d61010061ff00196000541617600055565b61192c565b303b159150816119a4575b503861190e565b6001915060ff16143861199d565b600160ff8216109150611907565b346102f9576020806003193601126102f9576001600160401b036004358181116102f9576119f2903690600401610953565b91611a0860018060a01b03606a5416331461265a565b8211610a8957600160401b8211610a895760a0548260a055808310611a5b575b5060a0600052826000209260005b838110611a3f57005b60019082843594611a4f866104f2565b01938187015501611a36565b611a739060a060005283856000209182019101611ddf565b38611a28565b346102f95760403660031901126102f957602060ff611ad5600435611a9d816104f2565b60243590611aaa826104f2565b60018060a01b03166000526069845260406000209060018060a01b0316600052602052604060002090565b54166040519015158152f35b346102f95760003660031901126102f95760206001600160601b0360a45416604051908152f35b346102f95760203660031901126102f957600435611b25816104f2565b606a546001600160a01b0390611b3e908216331461265a565b811615611b4e5761055e9061470d565b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b346102f95760603660031901126102f957600435611bbf816104f2565b60243590611bcc826104f2565b6044356001600160401b0381116102f957611beb903690600401610ae1565b60005b815181101561055e5780610c35611c08611c1d938561298e565b51611c166106b882336142da565b86866143b6565b611bee565b346102f95760203660031901126102f957600435611c3f81610e4a565b611c5460018060a01b03606a5416331461265a565b6067549062ffffff811691821115611cc457611c97611c9f91611c9261055e94611c8c63ffffffff60a25460d81c1663ffffffff1690565b11613cbe565b613cf5565b62ffffff1690565b60a2805463ffffffff60d81b191660d89290921b63ffffffff60d81b16919091179055565b60405162461bcd60e51b8152602060048201526007602482015266546f6f206c6f7760c81b6044820152606490fd5b15611cfa57565b60405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608490fd5b903590601e19813603018212156102f957018035906001600160401b0382116102f9576020019181360383136102f957565b60405190611d9582610a6e565b60008252565b356103df816104f2565b90600182811c92168015611dd5575b6020831014611dbf57565b634e487b7160e01b600052602260045260246000fd5b91607f1691611db4565b818110611dea575050565b60008155600101611ddf565b90601f8211611e03575050565b611e319160656000526020600020906020601f840160051c83019310611e33575b601f0160051c0190611ddf565b565b9091508190611e24565b90601f8211611e4a575050565b611e3191609f6000526020600020906020601f840160051c83019310611e3357601f0160051c0190611ddf565b90601f8211611e84575050565b611e319160666000526020600020906020601f840160051c83019310611e3357601f0160051c0190611ddf565b90601f8211611ebe575050565b611e3191609e6000526020600020906020601f840160051c83019310611e3357601f0160051c0190611ddf565b91906001600160401b038111610a8957611f0f81611f0a609e54611da5565b611eb1565b6000601f8211600114611f4957819293600092611f3e575b50508160011b916000199060031b1c191617609e55565b013590503880611f27565b609e600052601f198216937fcfe2a20ff701a1f3e14f63bd70d6c6bc6fba8172ec6d5a505cdab3927c0a9de691805b868110611fb05750836001959610611f96575b505050811b01609e55565b0135600019600384901b60f8161c19169055388080611f8b565b90926020600181928686013581550194019101611f78565b91906001600160401b038111610a8957611fe781610cf6609f54611da5565b6000601f821160011461202157819293600092612016575b50508160011b916000199060031b1c191617609f55565b013590503880611fff565b609f600052601f198216937f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de2891805b868110612088575083600195961061206e575b505050811b01609f55565b0135600019600384901b60f8161c19169055388080612063565b90926020600181928686013581550194019101612050565b903590601e19813603018212156102f957018035906001600160401b0382116102f957602001918160051b360383136102f957565b634e487b7160e01b600052601160045260246000fd5b90670de0b6b3a76400009182810292818404149015171561094e57565b600281901b91906001600160fe1b0381160361094e57565b9060078202918083046007149015171561094e57565b8181029291811591840414171561094e57565b6001600160401b038211610a8957600160401b8211610a895760a0548260a0558083106121ab575b5060a06000526020806000209060005b84811061218f575050505050565b60019082853561219e816104f2565b9501948185015501612181565b60a06000526121e0907f78fdc8d422c49ced035a9edf18d00d3c6a8d81df210f3e5e448e045e77b41e88908101908401611ddf565b38612171565b3566ffffffffffffff811681036102f95790565b3563ffffffff811681036102f95790565b356103df81610e4a565b356001600160601b03811681036102f95790565b6123f0610180611e31926122466122408280611d56565b90611eeb565b61225c6122566020830183611d56565b90611fc8565b61227261226c60408301836120a0565b90612149565b606081013560a1556122ab61228960808301611d9b565b60a280546001600160a01b0319166001600160a01b0392909216919091179055565b6122e56122ba60a083016121e6565b60a2805466ffffffffffffff60a01b191660a09290921b66ffffffffffffff60a01b16919091179055565b6122f4611c9f60c083016121fa565b61232561230360e08301611d9b565b60a380546001600160a01b0319166001600160a01b0392909216919091179055565b61236061233561010083016121e6565b60a3805466ffffffffffffff60a01b191660a09290921b66ffffffffffffff60a01b16919091179055565b612393612370610120830161220b565b60a3805462ffffff60d81b191660d89290921b62ffffff60d81b16919091179055565b6123bf6123a36101408301612215565b6001600160601b03166001600160601b031960a454161760a455565b6123ea6123cf6101608301611d9b565b6001600160601b0360a4549181199060601b1691161760a455565b016121e6565b66ffffffffffffff1666ffffffffffffff1960a554161760a555565b9061242161241a8380611d56565b3691610b5a565b9160405161242e81610a8e565b600681526020650c8d4d90549560d21b8183015261245c60ff60005460081c1661245781613e19565b613e19565b8451906001600160401b038211610a89576124818261247c606554611da5565b611df6565b80601f83116001146124e3575090806124bc9392611e3196976000926124d8575b50508160011b916000199060031b1c191617606555613e79565b6124d36124ce610efa60e08401611d9b565b6146f4565b612229565b0151905038806124a2565b6065600052601f198316969091907f8ff97419363ffd7000167f130ef7168fbea05faf9251824ca5043f113cc6a7c7926000905b89821061255d5750509183916001936124bc9695611e31999a10612544575b505050811b01606555613e79565b015160001960f88460031b161c19169055388080612536565b80600185968294968601518155019501930190612517565b60001981019190821161094e57565b9190820391821161094e57565b9060056001600160601b038093160291821691820361094e57565b66ffffffffffffff60a25460a01c1680421115612622576125cd9042612584565b60a4546001600160601b03166125f16125e582612591565b6001600160601b031690565b90610e10831015612613575061260d6103846103df93046120eb565b90612584565b6001600160601b031692915050565b60405162461bcd60e51b815260206004820152601060248201526f135a5b9d081b9bdd081cdd185c9d195960821b6044820152606490fd5b1561266157565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b906001820180921161094e57565b906002820180921161094e57565b907f0606060606060606060606060606060606060606060606060606060606060606820180921161094e57565b9190820180921161094e57565b1561270257565b60405162461bcd60e51b815260206004820152600a602482015269135a5b9d1959081bdd5d60b21b6044820152606490fd5b1561273b57565b60405162461bcd60e51b815260206004820152601460248201527309ad2dce840dac2f040ccdeeae440e0cae440e8f60631b6044820152606490fd5b1561277e57565b60405162461bcd60e51b815260206004820152601b60248201527f416c6c6f77206c697374206d696e74206e6f74207374617274656400000000006044820152606490fd5b156127ca57565b60405162461bcd60e51b8152602060048201526015602482015274105b1b1bddc81b1a5cdd081b5a5b9d08195b991959605a1b6044820152606490fd5b1561280e57565b60405162461bcd60e51b8152602060048201526011602482015270139bdd081bdb88185b1b1bddc81b1a5cdd607a1b6044820152606490fd5b1561284e57565b60405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b6044820152606490fd5b1561288c57565b60405162461bcd60e51b8152602060048201526016602482015275125b9d985b1a5908199d5b991cc81c1c9bdd9a59195960521b6044820152606490fd5b156128d157565b60405162461bcd60e51b81526020600482015260136024820152724e6f20636f6e7472616374206d696e74696e6760681b6044820152606490fd5b929091906000915b845183101561296157612927838661298e565b519060008282101561294f575060005260205261294960406000205b92612969565b91612914565b60409161294993825260205220612943565b915092501490565b600019811461094e5760010190565b634e487b7160e01b600052603260045260246000fd5b80518210156110005760209160051b010190565b156129a957565b60405162461bcd60e51b81526020600482015260116024820152704d696e74206174206c65617374206f6e6560781b6044820152606490fd5b9060405190602082019283526001600160601b03199060601b1660408201526000194301406054820152600119430140607482015260031943014060948201524460b48201524160601b60d482015260c8815261010081018181106001600160401b03821117610a895760405251902090565b15612a5c57565b60405162461bcd60e51b815260206004820152600f60248201526e42616c616e6365206973207a65726f60881b6044820152606490fd5b6040513d6000823e3d90fd5b90612aa982613f5e565b8015612b1057612ab881610aca565b90612ac66040519283610aa9565b808252601f19612ad582610aca565b0136602084013760005b818110612aed575090925050565b80612afb612b0b9287613d70565b612b05828661298e565b52612969565b612adf565b509050604051612b1f81610a6e565b60008152600036813790565b60675481101561100057606760005260206000200190600090565b60a0548110156110005760a060005260206000200190600090565b60678054919260005b858110612b7c57505050505050600190565b8060051b820135848110156110005760008481526020902001546001600160a01b0390811690861603612bb757612bb290612969565b612b6a565b505050505050600090565b606754600160401b811015610a895781612be5826001612c049401606755612b2b565b90919082549060031b9160018060a01b03809116831b921b1916179055565b6001600160a01b031660007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4565b15612c3c57565b60405162461bcd60e51b815260206004820152600f60248201526e151bdad95b881b9bdd08199bdd5b99608a1b6044820152606490fd5b6060519060005b828110612c8a5750016000815290565b608081015182820152602001612c7a565b90612cae60209282815194859201610386565b0190565b9391959492909560405196879560208701732c20276f776e65724f66506965636527203a202760601b905280519081603489019160200191612cf392610386565b86016034810171272c2027626c6f636b4861736827203a202760701b905281519182604683019160200191612d2792610386565b016046810172013961013b13637b1b5a73ab6b132b913901d1606d1b905281519182605983019160200191612d5b92610386565b0160598101700161013b83932bb3930b73230b793901d1607d1b9052606a01612d8391612c9b565b710161013ba37ba30b629bab838363c93901d160751b8152601201612da791612c9b565b740161013b130b630b731b2a7b327bbb732b913901d1605d1b8152601501612dce91612c9b565b03601f1981018352611e319083610aa9565b6020818303126102f9578051906001600160401b0382116102f9570181601f820112156102f9578051612e1281610b3f565b92612e206040519485610aa9565b818452602082840101116102f9576103df9160208085019101610386565b6020611e31919392936040519481612e5f8793518092868087019101610386565b8201612e7382518093868085019101610386565b01038085520183610aa9565b90611e31603660405180947519185d184e9d195e1d0bda1d1b5b0ed8985cd94d8d0b60521b6020830152612ebc8151809260208686019101610386565b8101036016810185520183610aa9565b612ed86115fd8261428f565b606090612f40612ef5612ef0610efa610efa85614013565b61388f565b612f07612f0143612575565b40613915565b612f10436136e8565b612f19446136e8565b90612f2a612f25613d09565b6136e8565b92612f3a612f25610de489614013565b94612cb2565b91600060a0545b8082106134c2575050612f59826136e8565b91612f6e90600052609c602052604060002090565b54612f7890613915565b9260405193849360208501612fc890602e907f3c68746d6c3e3c686561643e3c7363726970743e6c657420696e70757444617481526d0309ebd93ba37b5b2b724b2139d160951b60208201520190565b612fd191612c9b565b692c2768617368273a202760b01b8152600a01612fed91612c9b565b602760f81b815260010161300091612c9b565b617d3b60f01b8152600201681e17b9b1b934b83a1f60b91b81526009017f3c6d657461206e616d653d2776696577706f72742720636f6e74656e743d277781527f696474683d6465766963652d77696474682c20696e697469616c2d7363616c6560208201527f3d312c206d6178696d756d2d7363616c653d31273e3c7374796c65207479706560408201527f3d27746578742f637373273e68746d6c7b6865696768743a313030253b77696460608201527f74683a313030253b7d626f64797b6865696768743a313030253b77696474683a60808201527f313030253b6d617267696e3a303b70616464696e673a303b6261636b67726f7560a08201527f6e642d636f6c6f723a233030303030303b7d63616e7661737b646973706c617960c08201527f3a626c6f636b3b6d61782d77696474683a313030253b6d61782d68656967687460e08201527f3a313030253b70616464696e673a303b6d617267696e3a6175746f3b646973706101008201527f6c61793a626c6f636b3b706f736974696f6e3a6162736f6c7574653b746f703a6101208201527f303b626f74746f6d3a303b6c6566743a303b72696768743a303b6f626a6563746101408201527516b334ba1d31b7b73a30b4b71dbe9e17b9ba3cb6329f60511b610160820152610176017f3c2f686561643e3c626f64793e3c7363726970742064656665723e6173796e6381527f2066756e6374696f6e206c733235362865297b6c657420743d6e65772054657860208201527f744465636f6465722c613d77696e646f772e61746f622865292c6e3d612e6c6560408201527f6e6774682c723d6e65772055696e74384172726179286e293b666f722876617260608201527f206f3d303b6f3c6e3b6f2b2b29725b6f5d3d612e63686172436f64654174286f60808201527f293b6c657420643d722e6275666665723b6c657420633d6e657720526561646160a08201527f626c6553747265616d287b73746172742865297b652e656e717565756528642960c08201527f2c652e636c6f736528297d7d292e706970655468726f756768286e657720446560e08201527f636f6d7072657373696f6e53747265616d2827677a69702729292c693d6177616101008201527f6974206e657720526573706f6e73652863292c703d617761697420692e6172726101208201527f617942756666657228292c6c3d617761697420742e6465636f64652870292c736101408201527f3d646f63756d656e742e637265617465456c656d656e742827736372697074276101608201527f293b732e747970653d27746578742f6a617661736372697074272c732e6170706101808201527f656e644368696c6428646f63756d656e742e637265617465546578744e6f64656101a08201527f286c29292c646f63756d656e742e626f64792e617070656e644368696c6428736101c08201527f297d3b6173796e632066756e6374696f6e206c6132353628297b0000000000006101e08201526101fa016c6177616974206c73323536282760981b8152600d0161346b91612c9b565b7f27293b7d3b6c6132353628293b3c2f7363726970743e3c2f626f64793e3c2f688152633a36b61f60e11b602082015260240103601f19810182526134b09082610aa9565b6134b99061360d565b6103df90612e7f565b9091600460006134ef610efa610efa6134da88612b46565b905460039190911b1c6001600160a01b031690565b60405163048dd91f60e11b815292839182905afa801561081e5761351f9261294392600092613525575b50612e3e565b90612f47565b61353991923d8091833e61185a8183610aa9565b9038613519565b60405190606082018281106001600160401b03821117610a8957604052604082527f6768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f6040837f4142434445464748494a4b4c4d4e4f505152535455565758595a61626364656660208201520152565b60405190606082018281106001600160401b03821117610a8957604052602a8252604082602036910137565b906135e582610b3f565b6135f26040519182610aa9565b8281528092613603601f1991610b3f565b0190602036910137565b8051156136df5761361c613540565b61364061363b61363661362f85516126b3565b6003900490565b612108565b6135db565b9160208301918182518301915b82821061368d5750505060039051068060011461367a5760021461366f575090565b603d90600019015390565b50603d9081600019820153600119015390565b9091936004906003809401938451600190603f9082828260121c16880101518553828282600c1c16880101518386015382828260061c168801015160028601531685010151908201530193919061364d565b506103df611d88565b6000908072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b80821015613818575b506d04ee2d6d415b85acef810000000080831015613809575b50662386f26fc10000808310156137fa575b506305f5e100808310156137eb575b50612710808310156137dc575b5060648210156137cc575b600a809210156137c2575b60019081602161377a8287016135db565b95860101905b61378c575b5050505090565b600019019083906f181899199a1a9b1b9c1cb0b131b232b360811b8282061a8353049182156137bd57919082613780565b613785565b9160010191613769565b919060646002910491019161375e565b60049193920491019138613753565b60089193920491019138613746565b60109193920491019138613737565b60209193920491019138613725565b60409350810491503861370c565b908151811015611000570160200190565b801561094e576000190190565b1561384b57565b606460405162461bcd60e51b815260206004820152602060248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b6138976135af565b90815115611000576030602083015381516001908110156110005790607860218401536029915b8083116138d157506103df915015613844565b90600f81169060108210156110005761390e916f181899199a1a9b1b9c1cb0b131b232b360811b901a6139048587613826565b5360041c92613837565b91906138be565b61393f6fffffffffffffffffffffffffffffffff19613935838216613978565b9260801b16613978565b6040519161060f60f31b60208401526022830152604282015260428152608081018181106001600160401b03821117610a895760405290565b8060401c9063ffffffff60401b821663ffffffff60c01b82161760201c9163ffffffff60601b169063ffffffff60e01b1617178060101c907fff00000000000000ff00000000000000ff00000000000000ff000000000000007bff00000000000000ff00000000000000ff00000000000000ff0000007aff00000000000000ff00000000000000ff00000000000000ff000084167eff00000000000000ff00000000000000ff00000000000000ff00000000000084161760081c9316911617177f0f000f000f000f000f000f000f000f000f000f000f000f000f000f000f000f007e0f000f000f000f000f000f000f000f000f000f000f000f000f000f000f000f8260081c169160041c16177f303030303030303030303030303030303030303030303030303030303030303081810180911161094e57613aee7f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f613ae8613ae26103df956126c1565b60041c90565b16612120565b906126ee565b60405190613b0182610a8e565b60188252772c226c69627261726965735f75736564223a20224e6f6e6560401b6020830152565b609e5460009291613b3882611da5565b91600190818116908115613b895750600114613b5357505050565b9091929350609e60005260209081600020906000915b858310613b7857505050500190565b805485840152918301918101613b69565b60ff191683525050811515909102019150565b9060405191602069161134b6b0b3b2911d1160b11b8185015283600091609f5492613bc684611da5565b600194808616908115613c465750600114613c07575b50613bf08582611e31975194859201610386565b01601160f91b815203601e19810185520183610aa9565b949050609f600052816000209460005b818110613c2f57509094508201602a01613bf0613bdc565b8654898201602a0152958501958894508301613c17565b60ff1916602a8681019190915282151590920285019091019150613bf09050613bdc565b90611e31603d60405180947f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000006020830152613cae8151809260208686019101610386565b810103601d810185520183610aa9565b15613cc557565b60405162461bcd60e51b81526020600482015260086024820152670a8dede40d0d2ced60c31b6044820152606490fd5b90600162ffffff8093160191821161094e57565b60675466ffffffffffffff60a55416810390811161094e5790565b60809060208152602b60208201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b60608201520190565b90613d7a82613f5e565b811015613e00576000908192606754935b848110613daf5760405162461bcd60e51b815280613dab60048201613d24565b0390fd5b613dbe610efa6134da83612b2b565b6001600160a01b03831614613ddc575b613dd790612969565b613d8b565b92828103613dec57505050905090565b613df8613dd791612969565b939050613dce565b60405162461bcd60e51b815280613dab60048201613d24565b15613e2057565b60405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608490fd5b9081516001600160401b038111610a8957613e9e81613e99606654611da5565b611e77565b602080601f8311600114613eda5750819293600092613ecf575b50508160011b916000199060031b1c191617606655565b015190503880613eb8565b6066600052601f198316949091907f46501879b8ca8525e8c2fd519e2fbfcfa2ebea26501294aa02cbfcfb12e94354926000905b878210613f46575050836001959610613f2d575b505050811b01606655565b015160001960f88460031b161c19169055388080613f22565b80600185968294968601518155019501930190613f0e565b6001600160a01b03168015613fbb57606754600091825b828110613f825750505090565b613f91610efa6134da83612b2b565b8214613fa6575b613fa190612969565b613f75565b92613fb3613fa191612969565b939050613f98565b60405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608490fd5b6067548110156110005760676000527f9787eeb91fe3101235e4a76063c7023ecb40f923f97916639c598592fa30d6ae01546001600160a01b031680156140575790565b60405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608490fd5b156140b557565b60405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b6064820152608490fd5b6141248161428f565b15614144576000908152606860205260409020546001600160a01b031690565b60405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608490fd5b156141a557565b60405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b6064820152608490fd5b906142289392916142186106b884336142da565b6142238383836143b6565b6145ea565b1561422f57565b60405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608490fd5b6067548110908161429e575090565b90156110005760676000527f9787eeb91fe3101235e4a76063c7023ecb40f923f97916639c598592fa30d6ae01546001600160a01b0316151590565b6142e38261428f565b1561435c576142f182614013565b6001600160a01b038281168282168114949091908515614344575b505050821561431a57505090565b6001600160a01b0316600090815260696020526040902060ff925061433f9190610583565b541690565b614351919293955061411b565b16149138808061430c565b60405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608490fd5b6143bf83614013565b6001600160a01b039182169190811682900361446c57821691821561441b576143f4906143eb856144c3565b612be585612b2b565b7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4565b60405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608490fd5b60405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608490fd5b600081815260686020526040812080546001600160a01b03191690556001600160a01b036144f083614013565b167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258280a4565b600082815260686020526040902080546001600160a01b0319166001600160a01b039283169081179091559061454c83614013565b167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600080a4565b908160209103126102f957516103df816102e7565b6001600160a01b0391821681529116602082015260408101919091526080606082018190526103df929101906103a9565b3d156145e5573d906145cb82610b3f565b916145d96040519384610aa9565b82523d6000602084013e565b606090565b92909190823b156146eb5761461d926020926000604051809681958294630a85bd0160e11b9a8b85523360048601614589565b03926001600160a01b03165af1600091816146bb575b506146ad576146406145ba565b805190816146a85760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608490fd5b602001fd5b6001600160e01b0319161490565b6146dd91925060203d81116146e4575b6146d58183610aa9565b810190614574565b9038614633565b503d6146cb565b50505050600190565b611e319061470d60ff60005460081c1661245781613e19565b606a80546001600160a01b039283166001600160a01b0319821681179092559091167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a356fea26469706673582212204a79fec6625c74811c062194f8995ad747070ad7b58b2136ace0cbad916c1ee364736f6c63430008130033

Deployed Bytecode

0x6080604052600436101561001257600080fd5b60003560e01c806301ffc9a7146102e257806306fdde03146102dd578063081812fc146102d8578063095ea7b3146102d357806318160ddd146102ce5780631cd500a5146102c95780631f1a7d94146102c457806323b872dd146102bf5780632a55205a146102ba5780632f745c59146102b5578063322736ba146102b05780633ccfd60b146102ab57806342842e0e146102a657806342f74cd7146102a1578063438b63001461029c5780634c0f38c2146102975780634d44660c146102925780634f6ccce71461028d5780635a4fee3014610288578063621a1f74146102425780636352211e146102835780636c0ad59f1461027e57806370a0823114610279578063715018a61461027457806378491b1b1461026f5780637b47ec1a1461026a5780637cb64759146102655780638da5cb5b1461026057806390ad0c9d1461025b57806395d89b41146102565780639d1b464a146102515780639df742d71461024c578063a22cb46514610247578063a386439714610242578063b34912d71461023d578063b79bebaf14610238578063b88d4fde14610233578063c87b56dd1461022e578063c924234d14610229578063ce67764c14610224578063e985e9c51461021f578063f07223221461021a578063f2fde38b14610215578063f3993d11146102105763fe0d8aac1461020b57600080fd5b611c22565b611ba2565b611b08565b611ae1565b611a79565b6119c0565b6118bb565b6115dd565b611587565b611554565b61149a565b610c3f565b6113aa565b611227565b61120c565b611168565b6110ba565b611091565b611063565b610f2d565b610e57565b610de9565b610dc2565b610c89565b610c6b565b610bac565b6109d5565b610983565b610919565b6108b0565b610887565b61085f565b6107d5565b61072c565b610701565b6106c2565b610699565b610643565b610619565b6105f6565b610503565b6104c2565b6103e2565b6102fe565b6001600160e01b03198116036102f957565b600080fd5b346102f95760203660031901126102f957602060043561031d816102e7565b63ffffffff60e01b1663780e9d6360e01b8114908115610343575b506040519015158152f35b6380ac58cd60e01b811491508115610375575b8115610364575b5038610338565b6301ffc9a760e01b1490503861035d565b635b5e139f60e01b81149150610356565b60005b8381106103995750506000910152565b8181015183820152602001610389565b906020916103c281518092818552858086019101610386565b601f01601f1916010190565b9060206103df9281815201906103a9565b90565b346102f9576000806003193601126104bf576040518160655461040481611da5565b80845290600190818116908115610497575060011461043e575b61043a8461042e81880382610aa9565b604051918291826103ce565b0390f35b60658352602094507f8ff97419363ffd7000167f130ef7168fbea05faf9251824ca5043f113cc6a7c75b828410610484575050508161043a9361042e928201019361041e565b8054858501870152928501928101610468565b61043a965061042e9450602092508593915060ff191682840152151560051b8201019361041e565b80fd5b346102f95760203660031901126102f95760206104e060043561411b565b6040516001600160a01b039091168152f35b6001600160a01b038116036102f957565b346102f95760403660031901126102f957600435610520816104f2565b60243561052c81614013565b916001600160a01b0380841690821681146105a75761055e93610559913314908115610560575b506140ae565b614517565b005b6001600160a01b031660009081526069602052604090206105a1915061059a9033905b9060018060a01b0316600052602052604060002090565b5460ff1690565b38610553565b60405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608490fd5b346102f95760003660031901126102f9576020610611613d09565b604051908152f35b346102f95760003660031901126102f957602066ffffffffffffff60a25460a01c16604051908152f35b346102f95760003660031901126102f957602066ffffffffffffff60a35460a01c16604051908152f35b60609060031901126102f957600435610685816104f2565b90602435610692816104f2565b9060443590565b346102f95761055e6106aa3661066d565b916106bd6106b884336142da565b61419e565b6143b6565b346102f95760403660031901126102f957604060a45460601c6127106106f462ffffff60a35460d81c16602435612136565b0482519182526020820152f35b346102f95760403660031901126102f9576020610611600435610723816104f2565b60243590613d70565b346102f9576000806003193601126104bf57604051809160a054908183526020809301809260a0835284832090835b8181106107b85750505084610771910385610aa9565b60405193838594850191818652518092526040850193925b82811061079857505050500390f35b83516001600160a01b031685528695509381019392810192600101610789565b82546001600160a01b03168452928601926001928301920161075b565b346102f9576000806003193601126104bf5760a3546001600160a01b03163381900361082c5781808080934790811561080e8115612a55565b8390610823575bf11561081e5780f35b612a93565b506108fc610815565b60405162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b6044820152606490fd5b346102f95761055e6108703661066d565b906040519261087e84610a6e565b60008452614204565b346102f95760003660031901126102f95760a2546040516001600160a01b039091168152602090f35b346102f9576020806003193601126102f9576108d66004356108d1816104f2565b612a9f565b906040519181839283018184528251809152816040850193019160005b82811061090257505050500390f35b8351855286955093810193928101926001016108f3565b346102f95760003660031901126102f95763ffffffff6000198160a25460d81c160181811161094e5760209160405191168152f35b6120d5565b9181601f840112156102f9578235916001600160401b0383116102f9576020808501948460051b0101116102f957565b346102f95760403660031901126102f9576004356109a0816104f2565b6024356001600160401b0381116102f9576020916109c56109cb923690600401610953565b91612b61565b6040519015158152f35b346102f95760203660031901126102f9576004356067548110156109fe57602090604051908152f35b60405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608490fd5b634e487b7160e01b600052604160045260246000fd5b602081019081106001600160401b03821117610a8957604052565b610a58565b604081019081106001600160401b03821117610a8957604052565b90601f801991011681019081106001600160401b03821117610a8957604052565b6001600160401b038111610a895760051b60200190565b81601f820112156102f957803591610af883610aca565b92610b066040519485610aa9565b808452602092838086019260051b8201019283116102f9578301905b828210610b30575050505090565b81358152908301908301610b22565b6001600160401b038111610a8957601f01601f191660200190565b929192610b6682610b3f565b91610b746040519384610aa9565b8294818452818301116102f9578281602093846000960137010152565b9080601f830112156102f9578160206103df93359101610b5a565b346102f95760803660031901126102f957600435610bc9816104f2565b60243590610bd6826104f2565b6001600160401b036044358181116102f957610bf6903690600401610ae1565b906064359081116102f957610c0f903690600401610b91565b60005b825181101561055e5780610c3583610c2d610c3a948761298e565b518888614204565b612969565b610c12565b346102f95760203660031901126102f957600435600052609c6020526020604060002054604051908152f35b346102f95760203660031901126102f95760206104e0600435614013565b346102f9576020806003193601126102f9576001600160401b036004358181116102f957366023820112156102f95780600401359182116102f957602490368284830101116102f957610ce760018060a01b03606a5416331461265a565b610cfb83610cf6609f54611da5565b611e3d565b600093601f8411600114610d3c5750928293600093610d2f575b505050600019600383901b1c191660019190911b17609f55005b0101359050388080610d15565b609f600052601f198416947f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de28939181905b878210610da85750508460019610610d8c575b50505050811b01609f55005b60001960f88660031b161c199201013516905538808080610d80565b806001849786839596890101358155019601920190610d6d565b346102f95760203660031901126102f9576020610611600435610de4816104f2565b613f5e565b346102f9576000806003193601126104bf57606a5481906001600160a01b03811690610e1633831461265a565b6001600160a01b031916606a557f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b62ffffff8116036102f957565b346102f95760403660031901126102f957600435610e7481610e4a565b60243590610e81826104f2565b610e9660018060a01b03606a5416331461265a565b62ffffff60675491169081810180821161094e5760a254610ec2919060d81c63ffffffff165b116126fb565b610ece60058310612734565b60005b828110610eda57005b80610f276001928401610f0c610f06610efa60a35460018060a01b031690565b6001600160a01b031690565b826129e2565b610f2082600052609c602052604060002090565b5586612bc2565b01610ed1565b346102f95760203660031901126102f957600435610f4b81336142da565b1561100557610f5981614013565b90610f63816144c3565b60675481101561100057606760009081527f9787eeb91fe3101235e4a76063c7023ecb40f923f97916639c598592fa30d6ae820180546001600160a01b03191690559182906001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8280a460a55466ffffffffffffff80821681811461094e57600101169066ffffffffffffff19161760a55580f35b612978565b60405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b6064820152608490fd5b346102f95760203660031901126102f95761108960018060a01b03606a5416331461265a565b60043560a155005b346102f95760003660031901126102f957606a546040516001600160a01b039091168152602090f35b346102f95760403660031901126102f9576004356110d7816104f2565b6024356001600160401b0381116102f9576110f9611136913690600401610ae1565b60a154604051606085901b6001600160601b031916602082019081529061112d81603481015b03601f198101835282610aa9565b5190209161290c565b6001600160a01b03919091166000908152609d6020908152604091829020548251931515845260ff1615159083015290f35b346102f9576000806003193601126104bf576040518160665461118a81611da5565b8084529060019081811690811561049757506001146111b35761043a8461042e81880382610aa9565b60668352602094507f46501879b8ca8525e8c2fd519e2fbfcfa2ebea26501294aa02cbfcfb12e943545b8284106111f9575050508161043a9361042e928201019361041e565b80548585018701529285019281016111dd565b346102f95760003660031901126102f95760206106116125ac565b60403660031901126102f9576004356001600160401b0381116102f95761125561055e913690600401610ae1565b602435611261816104f2565b61129061128961127d60a35466ffffffffffffff9060a01c1690565b66ffffffffffffff1690565b4211612777565b6112e06112db60a254936112b166ffffffffffffff8660a01c1642106127c3565b60a154604051606086901b6001600160601b031916602082019081529061112d816034810161111f565b612807565b6001600160a01b0381166000908152609d6020526040902061130b906113059061059a565b15612847565b61132b6067549263ffffffff611320856126a5565b9160d81c16116126fb565b61135261134060a4546001600160601b031690565b6001600160601b033491161115612885565b61135d3233146128ca565b6001600160a01b0381166000908152609d6020526040902061138690805460ff19166001179055565b61139033836129e2565b6113a483600052609c602052604060002090565b55612bc2565b346102f95760403660031901126102f9576004356113c7816104f2565b60243580151581036102f9576001600160a01b0382169133831461145557816114126114239233600052606960205260406000209060018060a01b0316600052602052604060002090565b9060ff801983541691151516179055565b604051901515815233907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190602090a3005b60405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606490fd5b60403660031901126102f9576004356fffffffffffffffffffffffffffffffff81168091036102f957602435906114d0826104f2565b6114db8115156129a2565b6114e760058210612734565b6067546115086114f783836126ee565b60a25460d81c63ffffffff16610ebc565b61152461151c6115166125ac565b84612136565b341015612885565b61152f3233146128ca565b60005b82811061153b57005b8061154e6001928401610f0c33826129e2565b01611532565b346102f95760203660031901126102f95761043a611573600435612ecc565b6040519182916020835260208301906103a9565b346102f95760803660031901126102f9576004356115a4816104f2565b6024356115b0816104f2565b606435916001600160401b0383116102f9576115d361055e933690600401610b91565b9160443591614204565b346102f95760203660031901126102f9576004356116026115fd8261428f565b612c35565b60a254611617906001600160a01b0316610efa565b6060611621613af4565b9061162d609f54611da5565b6118a4575b61163b846136e8565b6040516321de0b0960e11b81529490936001600160a01b03169290600086600481875afa95861561081e57600096611889575b50604051633942720b60e11b815293600085600481845afa94851561081e57600095611868575b50600060049160405192838092631ae1f49360e21b82525afa90811561081e57600091611847575b506116d282600052609c602052604060002090565b546116dc90613915565b916116e690612ecc565b604051683d913730b6b2911d1160b91b602082015297889791969161170d60298a01613b28565b61202360f01b815260020161172191612c9b565b6c1116101130b93a34b9ba111d1160991b8152600d0161174091612c9b565b701116113232b9b1b934b83a34b7b7111d1160791b815260110161176391612c9b565b6c1116113634b1b2b739b2911d1160991b8152600d0161178291612c9b565b691116113430b9b4111d1160b11b8152600a0161179e91612c9b565b601160f91b81526001016117b191612c9b565b601160f91b81526001016117c491612c9b565b71161130b734b6b0ba34b7b72fbab936111d1160711b81526012016117e891612c9b565b6f222c2261747472696275746573223a5b60801b815260100161180a90612c73565b615d7d60f01b815260020103601f19810182526118279082610aa9565b6118309061360d565b61183990613c6a565b60405161043a8192826103ce565b611862913d8091833e61185a8183610aa9565b810190612de0565b386116bd565b611881600091600493973d8091833e61185a8183610aa9565b959150611695565b61189d91963d8091833e61185a8183610aa9565b943861166e565b506118b66118b1846136e8565b613b9c565b611632565b346102f9576003196020368201126102f957600435906001600160401b0382116102f9576101a09082360301126102f9576119346000549161191460ff8460081c1615809481956119b2575b8115611992575b50611cf3565b82611927600160ff196000541617600055565b611979575b60040161240c565b61193a57005b61194a61ff001960005416600055565b604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249890602090a1005b61198d61010061ff00196000541617600055565b61192c565b303b159150816119a4575b503861190e565b6001915060ff16143861199d565b600160ff8216109150611907565b346102f9576020806003193601126102f9576001600160401b036004358181116102f9576119f2903690600401610953565b91611a0860018060a01b03606a5416331461265a565b8211610a8957600160401b8211610a895760a0548260a055808310611a5b575b5060a0600052826000209260005b838110611a3f57005b60019082843594611a4f866104f2565b01938187015501611a36565b611a739060a060005283856000209182019101611ddf565b38611a28565b346102f95760403660031901126102f957602060ff611ad5600435611a9d816104f2565b60243590611aaa826104f2565b60018060a01b03166000526069845260406000209060018060a01b0316600052602052604060002090565b54166040519015158152f35b346102f95760003660031901126102f95760206001600160601b0360a45416604051908152f35b346102f95760203660031901126102f957600435611b25816104f2565b606a546001600160a01b0390611b3e908216331461265a565b811615611b4e5761055e9061470d565b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b346102f95760603660031901126102f957600435611bbf816104f2565b60243590611bcc826104f2565b6044356001600160401b0381116102f957611beb903690600401610ae1565b60005b815181101561055e5780610c35611c08611c1d938561298e565b51611c166106b882336142da565b86866143b6565b611bee565b346102f95760203660031901126102f957600435611c3f81610e4a565b611c5460018060a01b03606a5416331461265a565b6067549062ffffff811691821115611cc457611c97611c9f91611c9261055e94611c8c63ffffffff60a25460d81c1663ffffffff1690565b11613cbe565b613cf5565b62ffffff1690565b60a2805463ffffffff60d81b191660d89290921b63ffffffff60d81b16919091179055565b60405162461bcd60e51b8152602060048201526007602482015266546f6f206c6f7760c81b6044820152606490fd5b15611cfa57565b60405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608490fd5b903590601e19813603018212156102f957018035906001600160401b0382116102f9576020019181360383136102f957565b60405190611d9582610a6e565b60008252565b356103df816104f2565b90600182811c92168015611dd5575b6020831014611dbf57565b634e487b7160e01b600052602260045260246000fd5b91607f1691611db4565b818110611dea575050565b60008155600101611ddf565b90601f8211611e03575050565b611e319160656000526020600020906020601f840160051c83019310611e33575b601f0160051c0190611ddf565b565b9091508190611e24565b90601f8211611e4a575050565b611e3191609f6000526020600020906020601f840160051c83019310611e3357601f0160051c0190611ddf565b90601f8211611e84575050565b611e319160666000526020600020906020601f840160051c83019310611e3357601f0160051c0190611ddf565b90601f8211611ebe575050565b611e3191609e6000526020600020906020601f840160051c83019310611e3357601f0160051c0190611ddf565b91906001600160401b038111610a8957611f0f81611f0a609e54611da5565b611eb1565b6000601f8211600114611f4957819293600092611f3e575b50508160011b916000199060031b1c191617609e55565b013590503880611f27565b609e600052601f198216937fcfe2a20ff701a1f3e14f63bd70d6c6bc6fba8172ec6d5a505cdab3927c0a9de691805b868110611fb05750836001959610611f96575b505050811b01609e55565b0135600019600384901b60f8161c19169055388080611f8b565b90926020600181928686013581550194019101611f78565b91906001600160401b038111610a8957611fe781610cf6609f54611da5565b6000601f821160011461202157819293600092612016575b50508160011b916000199060031b1c191617609f55565b013590503880611fff565b609f600052601f198216937f0bc14066c33013fe88f66e314e4cf150b0b2d4d6451a1a51dbbd1c27cd11de2891805b868110612088575083600195961061206e575b505050811b01609f55565b0135600019600384901b60f8161c19169055388080612063565b90926020600181928686013581550194019101612050565b903590601e19813603018212156102f957018035906001600160401b0382116102f957602001918160051b360383136102f957565b634e487b7160e01b600052601160045260246000fd5b90670de0b6b3a76400009182810292818404149015171561094e57565b600281901b91906001600160fe1b0381160361094e57565b9060078202918083046007149015171561094e57565b8181029291811591840414171561094e57565b6001600160401b038211610a8957600160401b8211610a895760a0548260a0558083106121ab575b5060a06000526020806000209060005b84811061218f575050505050565b60019082853561219e816104f2565b9501948185015501612181565b60a06000526121e0907f78fdc8d422c49ced035a9edf18d00d3c6a8d81df210f3e5e448e045e77b41e88908101908401611ddf565b38612171565b3566ffffffffffffff811681036102f95790565b3563ffffffff811681036102f95790565b356103df81610e4a565b356001600160601b03811681036102f95790565b6123f0610180611e31926122466122408280611d56565b90611eeb565b61225c6122566020830183611d56565b90611fc8565b61227261226c60408301836120a0565b90612149565b606081013560a1556122ab61228960808301611d9b565b60a280546001600160a01b0319166001600160a01b0392909216919091179055565b6122e56122ba60a083016121e6565b60a2805466ffffffffffffff60a01b191660a09290921b66ffffffffffffff60a01b16919091179055565b6122f4611c9f60c083016121fa565b61232561230360e08301611d9b565b60a380546001600160a01b0319166001600160a01b0392909216919091179055565b61236061233561010083016121e6565b60a3805466ffffffffffffff60a01b191660a09290921b66ffffffffffffff60a01b16919091179055565b612393612370610120830161220b565b60a3805462ffffff60d81b191660d89290921b62ffffff60d81b16919091179055565b6123bf6123a36101408301612215565b6001600160601b03166001600160601b031960a454161760a455565b6123ea6123cf6101608301611d9b565b6001600160601b0360a4549181199060601b1691161760a455565b016121e6565b66ffffffffffffff1666ffffffffffffff1960a554161760a555565b9061242161241a8380611d56565b3691610b5a565b9160405161242e81610a8e565b600681526020650c8d4d90549560d21b8183015261245c60ff60005460081c1661245781613e19565b613e19565b8451906001600160401b038211610a89576124818261247c606554611da5565b611df6565b80601f83116001146124e3575090806124bc9392611e3196976000926124d8575b50508160011b916000199060031b1c191617606555613e79565b6124d36124ce610efa60e08401611d9b565b6146f4565b612229565b0151905038806124a2565b6065600052601f198316969091907f8ff97419363ffd7000167f130ef7168fbea05faf9251824ca5043f113cc6a7c7926000905b89821061255d5750509183916001936124bc9695611e31999a10612544575b505050811b01606555613e79565b015160001960f88460031b161c19169055388080612536565b80600185968294968601518155019501930190612517565b60001981019190821161094e57565b9190820391821161094e57565b9060056001600160601b038093160291821691820361094e57565b66ffffffffffffff60a25460a01c1680421115612622576125cd9042612584565b60a4546001600160601b03166125f16125e582612591565b6001600160601b031690565b90610e10831015612613575061260d6103846103df93046120eb565b90612584565b6001600160601b031692915050565b60405162461bcd60e51b815260206004820152601060248201526f135a5b9d081b9bdd081cdd185c9d195960821b6044820152606490fd5b1561266157565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b906001820180921161094e57565b906002820180921161094e57565b907f0606060606060606060606060606060606060606060606060606060606060606820180921161094e57565b9190820180921161094e57565b1561270257565b60405162461bcd60e51b815260206004820152600a602482015269135a5b9d1959081bdd5d60b21b6044820152606490fd5b1561273b57565b60405162461bcd60e51b815260206004820152601460248201527309ad2dce840dac2f040ccdeeae440e0cae440e8f60631b6044820152606490fd5b1561277e57565b60405162461bcd60e51b815260206004820152601b60248201527f416c6c6f77206c697374206d696e74206e6f74207374617274656400000000006044820152606490fd5b156127ca57565b60405162461bcd60e51b8152602060048201526015602482015274105b1b1bddc81b1a5cdd081b5a5b9d08195b991959605a1b6044820152606490fd5b1561280e57565b60405162461bcd60e51b8152602060048201526011602482015270139bdd081bdb88185b1b1bddc81b1a5cdd607a1b6044820152606490fd5b1561284e57565b60405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b6044820152606490fd5b1561288c57565b60405162461bcd60e51b8152602060048201526016602482015275125b9d985b1a5908199d5b991cc81c1c9bdd9a59195960521b6044820152606490fd5b156128d157565b60405162461bcd60e51b81526020600482015260136024820152724e6f20636f6e7472616374206d696e74696e6760681b6044820152606490fd5b929091906000915b845183101561296157612927838661298e565b519060008282101561294f575060005260205261294960406000205b92612969565b91612914565b60409161294993825260205220612943565b915092501490565b600019811461094e5760010190565b634e487b7160e01b600052603260045260246000fd5b80518210156110005760209160051b010190565b156129a957565b60405162461bcd60e51b81526020600482015260116024820152704d696e74206174206c65617374206f6e6560781b6044820152606490fd5b9060405190602082019283526001600160601b03199060601b1660408201526000194301406054820152600119430140607482015260031943014060948201524460b48201524160601b60d482015260c8815261010081018181106001600160401b03821117610a895760405251902090565b15612a5c57565b60405162461bcd60e51b815260206004820152600f60248201526e42616c616e6365206973207a65726f60881b6044820152606490fd5b6040513d6000823e3d90fd5b90612aa982613f5e565b8015612b1057612ab881610aca565b90612ac66040519283610aa9565b808252601f19612ad582610aca565b0136602084013760005b818110612aed575090925050565b80612afb612b0b9287613d70565b612b05828661298e565b52612969565b612adf565b509050604051612b1f81610a6e565b60008152600036813790565b60675481101561100057606760005260206000200190600090565b60a0548110156110005760a060005260206000200190600090565b60678054919260005b858110612b7c57505050505050600190565b8060051b820135848110156110005760008481526020902001546001600160a01b0390811690861603612bb757612bb290612969565b612b6a565b505050505050600090565b606754600160401b811015610a895781612be5826001612c049401606755612b2b565b90919082549060031b9160018060a01b03809116831b921b1916179055565b6001600160a01b031660007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4565b15612c3c57565b60405162461bcd60e51b815260206004820152600f60248201526e151bdad95b881b9bdd08199bdd5b99608a1b6044820152606490fd5b6060519060005b828110612c8a5750016000815290565b608081015182820152602001612c7a565b90612cae60209282815194859201610386565b0190565b9391959492909560405196879560208701732c20276f776e65724f66506965636527203a202760601b905280519081603489019160200191612cf392610386565b86016034810171272c2027626c6f636b4861736827203a202760701b905281519182604683019160200191612d2792610386565b016046810172013961013b13637b1b5a73ab6b132b913901d1606d1b905281519182605983019160200191612d5b92610386565b0160598101700161013b83932bb3930b73230b793901d1607d1b9052606a01612d8391612c9b565b710161013ba37ba30b629bab838363c93901d160751b8152601201612da791612c9b565b740161013b130b630b731b2a7b327bbb732b913901d1605d1b8152601501612dce91612c9b565b03601f1981018352611e319083610aa9565b6020818303126102f9578051906001600160401b0382116102f9570181601f820112156102f9578051612e1281610b3f565b92612e206040519485610aa9565b818452602082840101116102f9576103df9160208085019101610386565b6020611e31919392936040519481612e5f8793518092868087019101610386565b8201612e7382518093868085019101610386565b01038085520183610aa9565b90611e31603660405180947519185d184e9d195e1d0bda1d1b5b0ed8985cd94d8d0b60521b6020830152612ebc8151809260208686019101610386565b8101036016810185520183610aa9565b612ed86115fd8261428f565b606090612f40612ef5612ef0610efa610efa85614013565b61388f565b612f07612f0143612575565b40613915565b612f10436136e8565b612f19446136e8565b90612f2a612f25613d09565b6136e8565b92612f3a612f25610de489614013565b94612cb2565b91600060a0545b8082106134c2575050612f59826136e8565b91612f6e90600052609c602052604060002090565b54612f7890613915565b9260405193849360208501612fc890602e907f3c68746d6c3e3c686561643e3c7363726970743e6c657420696e70757444617481526d0309ebd93ba37b5b2b724b2139d160951b60208201520190565b612fd191612c9b565b692c2768617368273a202760b01b8152600a01612fed91612c9b565b602760f81b815260010161300091612c9b565b617d3b60f01b8152600201681e17b9b1b934b83a1f60b91b81526009017f3c6d657461206e616d653d2776696577706f72742720636f6e74656e743d277781527f696474683d6465766963652d77696474682c20696e697469616c2d7363616c6560208201527f3d312c206d6178696d756d2d7363616c653d31273e3c7374796c65207479706560408201527f3d27746578742f637373273e68746d6c7b6865696768743a313030253b77696460608201527f74683a313030253b7d626f64797b6865696768743a313030253b77696474683a60808201527f313030253b6d617267696e3a303b70616464696e673a303b6261636b67726f7560a08201527f6e642d636f6c6f723a233030303030303b7d63616e7661737b646973706c617960c08201527f3a626c6f636b3b6d61782d77696474683a313030253b6d61782d68656967687460e08201527f3a313030253b70616464696e673a303b6d617267696e3a6175746f3b646973706101008201527f6c61793a626c6f636b3b706f736974696f6e3a6162736f6c7574653b746f703a6101208201527f303b626f74746f6d3a303b6c6566743a303b72696768743a303b6f626a6563746101408201527516b334ba1d31b7b73a30b4b71dbe9e17b9ba3cb6329f60511b610160820152610176017f3c2f686561643e3c626f64793e3c7363726970742064656665723e6173796e6381527f2066756e6374696f6e206c733235362865297b6c657420743d6e65772054657860208201527f744465636f6465722c613d77696e646f772e61746f622865292c6e3d612e6c6560408201527f6e6774682c723d6e65772055696e74384172726179286e293b666f722876617260608201527f206f3d303b6f3c6e3b6f2b2b29725b6f5d3d612e63686172436f64654174286f60808201527f293b6c657420643d722e6275666665723b6c657420633d6e657720526561646160a08201527f626c6553747265616d287b73746172742865297b652e656e717565756528642960c08201527f2c652e636c6f736528297d7d292e706970655468726f756768286e657720446560e08201527f636f6d7072657373696f6e53747265616d2827677a69702729292c693d6177616101008201527f6974206e657720526573706f6e73652863292c703d617761697420692e6172726101208201527f617942756666657228292c6c3d617761697420742e6465636f64652870292c736101408201527f3d646f63756d656e742e637265617465456c656d656e742827736372697074276101608201527f293b732e747970653d27746578742f6a617661736372697074272c732e6170706101808201527f656e644368696c6428646f63756d656e742e637265617465546578744e6f64656101a08201527f286c29292c646f63756d656e742e626f64792e617070656e644368696c6428736101c08201527f297d3b6173796e632066756e6374696f6e206c6132353628297b0000000000006101e08201526101fa016c6177616974206c73323536282760981b8152600d0161346b91612c9b565b7f27293b7d3b6c6132353628293b3c2f7363726970743e3c2f626f64793e3c2f688152633a36b61f60e11b602082015260240103601f19810182526134b09082610aa9565b6134b99061360d565b6103df90612e7f565b9091600460006134ef610efa610efa6134da88612b46565b905460039190911b1c6001600160a01b031690565b60405163048dd91f60e11b815292839182905afa801561081e5761351f9261294392600092613525575b50612e3e565b90612f47565b61353991923d8091833e61185a8183610aa9565b9038613519565b60405190606082018281106001600160401b03821117610a8957604052604082527f6768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f6040837f4142434445464748494a4b4c4d4e4f505152535455565758595a61626364656660208201520152565b60405190606082018281106001600160401b03821117610a8957604052602a8252604082602036910137565b906135e582610b3f565b6135f26040519182610aa9565b8281528092613603601f1991610b3f565b0190602036910137565b8051156136df5761361c613540565b61364061363b61363661362f85516126b3565b6003900490565b612108565b6135db565b9160208301918182518301915b82821061368d5750505060039051068060011461367a5760021461366f575090565b603d90600019015390565b50603d9081600019820153600119015390565b9091936004906003809401938451600190603f9082828260121c16880101518553828282600c1c16880101518386015382828260061c168801015160028601531685010151908201530193919061364d565b506103df611d88565b6000908072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b80821015613818575b506d04ee2d6d415b85acef810000000080831015613809575b50662386f26fc10000808310156137fa575b506305f5e100808310156137eb575b50612710808310156137dc575b5060648210156137cc575b600a809210156137c2575b60019081602161377a8287016135db565b95860101905b61378c575b5050505090565b600019019083906f181899199a1a9b1b9c1cb0b131b232b360811b8282061a8353049182156137bd57919082613780565b613785565b9160010191613769565b919060646002910491019161375e565b60049193920491019138613753565b60089193920491019138613746565b60109193920491019138613737565b60209193920491019138613725565b60409350810491503861370c565b908151811015611000570160200190565b801561094e576000190190565b1561384b57565b606460405162461bcd60e51b815260206004820152602060248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b6138976135af565b90815115611000576030602083015381516001908110156110005790607860218401536029915b8083116138d157506103df915015613844565b90600f81169060108210156110005761390e916f181899199a1a9b1b9c1cb0b131b232b360811b901a6139048587613826565b5360041c92613837565b91906138be565b61393f6fffffffffffffffffffffffffffffffff19613935838216613978565b9260801b16613978565b6040519161060f60f31b60208401526022830152604282015260428152608081018181106001600160401b03821117610a895760405290565b8060401c9063ffffffff60401b821663ffffffff60c01b82161760201c9163ffffffff60601b169063ffffffff60e01b1617178060101c907fff00000000000000ff00000000000000ff00000000000000ff000000000000007bff00000000000000ff00000000000000ff00000000000000ff0000007aff00000000000000ff00000000000000ff00000000000000ff000084167eff00000000000000ff00000000000000ff00000000000000ff00000000000084161760081c9316911617177f0f000f000f000f000f000f000f000f000f000f000f000f000f000f000f000f007e0f000f000f000f000f000f000f000f000f000f000f000f000f000f000f000f8260081c169160041c16177f303030303030303030303030303030303030303030303030303030303030303081810180911161094e57613aee7f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f613ae8613ae26103df956126c1565b60041c90565b16612120565b906126ee565b60405190613b0182610a8e565b60188252772c226c69627261726965735f75736564223a20224e6f6e6560401b6020830152565b609e5460009291613b3882611da5565b91600190818116908115613b895750600114613b5357505050565b9091929350609e60005260209081600020906000915b858310613b7857505050500190565b805485840152918301918101613b69565b60ff191683525050811515909102019150565b9060405191602069161134b6b0b3b2911d1160b11b8185015283600091609f5492613bc684611da5565b600194808616908115613c465750600114613c07575b50613bf08582611e31975194859201610386565b01601160f91b815203601e19810185520183610aa9565b949050609f600052816000209460005b818110613c2f57509094508201602a01613bf0613bdc565b8654898201602a0152958501958894508301613c17565b60ff1916602a8681019190915282151590920285019091019150613bf09050613bdc565b90611e31603d60405180947f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000006020830152613cae8151809260208686019101610386565b810103601d810185520183610aa9565b15613cc557565b60405162461bcd60e51b81526020600482015260086024820152670a8dede40d0d2ced60c31b6044820152606490fd5b90600162ffffff8093160191821161094e57565b60675466ffffffffffffff60a55416810390811161094e5790565b60809060208152602b60208201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b60608201520190565b90613d7a82613f5e565b811015613e00576000908192606754935b848110613daf5760405162461bcd60e51b815280613dab60048201613d24565b0390fd5b613dbe610efa6134da83612b2b565b6001600160a01b03831614613ddc575b613dd790612969565b613d8b565b92828103613dec57505050905090565b613df8613dd791612969565b939050613dce565b60405162461bcd60e51b815280613dab60048201613d24565b15613e2057565b60405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608490fd5b9081516001600160401b038111610a8957613e9e81613e99606654611da5565b611e77565b602080601f8311600114613eda5750819293600092613ecf575b50508160011b916000199060031b1c191617606655565b015190503880613eb8565b6066600052601f198316949091907f46501879b8ca8525e8c2fd519e2fbfcfa2ebea26501294aa02cbfcfb12e94354926000905b878210613f46575050836001959610613f2d575b505050811b01606655565b015160001960f88460031b161c19169055388080613f22565b80600185968294968601518155019501930190613f0e565b6001600160a01b03168015613fbb57606754600091825b828110613f825750505090565b613f91610efa6134da83612b2b565b8214613fa6575b613fa190612969565b613f75565b92613fb3613fa191612969565b939050613f98565b60405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608490fd5b6067548110156110005760676000527f9787eeb91fe3101235e4a76063c7023ecb40f923f97916639c598592fa30d6ae01546001600160a01b031680156140575790565b60405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608490fd5b156140b557565b60405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b6064820152608490fd5b6141248161428f565b15614144576000908152606860205260409020546001600160a01b031690565b60405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608490fd5b156141a557565b60405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b6064820152608490fd5b906142289392916142186106b884336142da565b6142238383836143b6565b6145ea565b1561422f57565b60405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608490fd5b6067548110908161429e575090565b90156110005760676000527f9787eeb91fe3101235e4a76063c7023ecb40f923f97916639c598592fa30d6ae01546001600160a01b0316151590565b6142e38261428f565b1561435c576142f182614013565b6001600160a01b038281168282168114949091908515614344575b505050821561431a57505090565b6001600160a01b0316600090815260696020526040902060ff925061433f9190610583565b541690565b614351919293955061411b565b16149138808061430c565b60405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608490fd5b6143bf83614013565b6001600160a01b039182169190811682900361446c57821691821561441b576143f4906143eb856144c3565b612be585612b2b565b7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4565b60405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608490fd5b60405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608490fd5b600081815260686020526040812080546001600160a01b03191690556001600160a01b036144f083614013565b167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258280a4565b600082815260686020526040902080546001600160a01b0319166001600160a01b039283169081179091559061454c83614013565b167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600080a4565b908160209103126102f957516103df816102e7565b6001600160a01b0391821681529116602082015260408101919091526080606082018190526103df929101906103a9565b3d156145e5573d906145cb82610b3f565b916145d96040519384610aa9565b82523d6000602084013e565b606090565b92909190823b156146eb5761461d926020926000604051809681958294630a85bd0160e11b9a8b85523360048601614589565b03926001600160a01b03165af1600091816146bb575b506146ad576146406145ba565b805190816146a85760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608490fd5b602001fd5b6001600160e01b0319161490565b6146dd91925060203d81116146e4575b6146d58183610aa9565b810190614574565b9038614633565b503d6146cb565b50505050600190565b611e319061470d60ff60005460081c1661245781613e19565b606a80546001600160a01b039283166001600160a01b0319821681179092559091167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a356fea26469706673582212204a79fec6625c74811c062194f8995ad747070ad7b58b2136ace0cbad916c1ee364736f6c63430008130033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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