Contract 0x44dC3A9500a282eAa59c5Fd71F57Fd7B021e8D45

Contract Overview

Balance:
0 MATIC
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xd7266dbe9f11af5486a1709f223336ab6e3f07d0f089af7411a24f21565fac37Deploy Nft Colle...282172232022-09-21 9:49:1767 days 5 hrs ago0x4e7f624c9f2dbc3bcf97d03e765142dd46fe1c46 IN  0x44dc3a9500a282eaa59c5fd71f57fd7b021e8d450 MATIC0.00824970976 1.527750058
0x14ea7843513b131a08f7582fa70721f75808d36731eb5c15e20c7376c50ede5aDeploy Nft Colle...281834562022-09-19 10:45:2969 days 4 hrs ago0x4e7f624c9f2dbc3bcf97d03e765142dd46fe1c46 IN  0x44dc3a9500a282eaa59c5fd71f57fd7b021e8d450 MATIC0.011525089714 2.523500054
0x5672bfa12d5fd65fc6275dea55b2b8f9dfca1f3e02f4307fb315d4db9997b1fa0x60806040281833212022-09-19 10:34:1269 days 4 hrs ago0x3f6c3bc1679731825d457541bd27c1d713698306 IN  Create: NakshFactory0 MATIC0.013436079734 2.575000021
[ Download CSV Export 
Latest 2 internal transactions
Parent Txn Hash Block From To Value
0xd7266dbe9f11af5486a1709f223336ab6e3f07d0f089af7411a24f21565fac37282172232022-09-21 9:49:1767 days 5 hrs ago 0x44dc3a9500a282eaa59c5fd71f57fd7b021e8d45  Contract Creation0 MATIC
0x14ea7843513b131a08f7582fa70721f75808d36731eb5c15e20c7376c50ede5a281834562022-09-19 10:45:2969 days 4 hrs ago 0x44dc3a9500a282eaa59c5fd71f57fd7b021e8d45  Contract Creation0 MATIC
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
NakshFactory

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 15 : NakshFactory.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;

import "./NakshNFT.sol";

contract NakshFactory {

    mapping (address => address[]) public artistCollections;

    event CollectionCreated(string indexed name, string indexed symbol, address indexed nftAddress);
    
    function deployNftCollection(
        artistDetails memory artist,
        CollectionDetails memory collection,
        address payable _admin,
        uint16 _creatorFee,
        address payable[] memory  _creators)
        public returns (address) {
            NakshNFT nft = new NakshNFT(artist, collection, msg.sender, _admin, _creatorFee, _creators);

            artistCollections[msg.sender].push(address(nft));

            emit CollectionCreated(collection.name, collection.symbol, address(nft));
            return address(nft);
    }

    function getArtistCollections(address _artist) public view returns (address[] memory) {
        return artistCollections[_artist];
    }

}

File 2 of 15 : NakshNFT.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;

/**  
* @title An NFT Marketplace contract for Naksh NFTs
* @notice This is the Naksh Marketplace contract for Minting NFTs and Direct Sale + Auction.
* @dev Most function calls are currently implemented with access control
*/

import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/Base64.sol";
import "./Structs.sol";

/* 
* This is the Naksh Marketplace contract for Minting NFTs and Direct Sale + Auction.
*/
contract NakshNFT is ERC721URIStorage {

    // using SafeMath for uint256;
    mapping(address => bool) public creatorWhitelist;
    mapping(uint256 => address) private tokenOwner;
    mapping(address => uint[]) private creatorTokens;
    mapping(address => CollectionDetails) private collectionData;
    
    mapping(uint => NFTData) public nftData;
    mapping(address => artistDetails) artistData;

    event WhitelistCreator(address indexed _creator);
    event DelistCreator(address indexed _creator);
    event OwnershipGranted(address indexed newOwner);
    event OwnershipTransferred(address indexed oldOwner, address indexed newOwner);
    event Mint(address indexed creator,uint indexed tokenId, string indexed tokenURI, string title, string description);

    uint constant FLOAT_HANDLER_TEN_4 = 10000;

    address public owner;
    address _grantedOwner;
    address public admin;
    uint256 public sellerFee;
    uint256 public orgFee;
    uint256 public creatorFee;
    address payable[] public creators;
    uint256 public TotalSplits = creators.length;
    uint256 public sellerFeeInitial;
    uint256 public orgFeeInitial;
    using Counters for Counters.Counter;
    Counters.Counter private _tokenIds;

    NFTData[] mintedNfts;

    /**
    * Modifier to allow only minters to mint
    */
    modifier onlyArtist() virtual {
        require(creatorWhitelist[msg.sender] == true);
        _;
    }

    modifier onlyArtistOrAdmin() virtual {
        require(creatorWhitelist[msg.sender] == true || msg.sender == admin, "Only Artist or Admin can mint");
        _;
    }

    /**
    * Modifier to allow only owner of the contract to perform certain actions 
    */
    modifier onlyOwner() {
        require(msg.sender == owner);
        _;
    }
    
    /**
    * Modifier to allow only admin of the organization to perform certain actions 
    */
    modifier onlyAdmin() {
        require(msg.sender == admin);
        _;
    }

    constructor(artistDetails memory artist,
        CollectionDetails memory collection,
        address _owner,
        address payable _admin,
        uint16 _creatorFee,
        address payable[] memory _creators
        )
        ERC721(collection.name, collection.symbol)
    {
        artistData[artist.artistAddress] = artist;
        creatorWhitelist[artist.artistAddress] = true;
        collectionData[address(this)] = collection;
        owner = _owner;
        admin = _admin;
        //Multiply all the three % variables by 100, to kepe it uniform
        orgFee = 500;
        creatorFee = _creatorFee;
        creators = _creators;
        sellerFee = 10000 - orgFee - creatorFee;
        // Fees for first sale only
        orgFeeInitial = 500;
        sellerFeeInitial = 10000 - orgFeeInitial;
    }

    /**
    * @dev Owner can transfer the ownership of the contract to a new account (`_grantedOwner`).
    * Can only be called by the current owner.
    */
    function grantContractOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "New owner cannot be zero address");
        emit OwnershipGranted(newOwner);
        _grantedOwner = newOwner;
    }

    function getCollectionDetails() external view returns (CollectionDetails memory) {
        return collectionData[address(this)];
    }
    
    /**
    * @dev Claims granted ownership of the contract for a new account (`_grantedOwner`).
    * Can only be called by the currently granted owner.
    */
    function claimContractOwnership() public virtual {
        require(_grantedOwner == msg.sender, "Ownable: caller is not the granted owner");
        emit OwnershipTransferred(owner, _grantedOwner);
        owner = _grantedOwner;
        _grantedOwner = address(0);
    }

    /** 
    *@dev Current admin can transfer admin rights to a new account.
    */
    function grantAdminRights(address newAdmin) public virtual onlyAdmin {
        require(newAdmin != address(0), "New Admin cannot be zero address");
        admin = newAdmin;
    }

    function fetchArtist(address _artist) public view returns (artistDetails memory) {
        require(_artist != address(0), "Artist is address(0)");
        require(creatorWhitelist[_artist] == true, "Given address is not artist");
        return artistData[_artist];
    }

     /** @dev Calculate the royalty distribution for organisation/platform and the
    * creator/artist.
    * Each of the organisation, creator royalty and the parent organsation fees
    * are set in this function.
    * The 'sellerFee' indicates the final amount to be sent to the seller.
    */
    function setRoyaltyPercentage(uint256 _orgFee, uint _creatorFee) public onlyOwner returns (bool) {
        //Sum of org fee and creator fee should be 100%
        require(10000 > _orgFee+_creatorFee, "Sum of creator fee and org fee should be 100%");
        orgFee = _orgFee;
        creatorFee = _creatorFee;
        sellerFee = 10000 - orgFee - creatorFee;
        return true; 
    }

    /** @dev Calculate the royalty distribution for organisation/platform and the
    * creator/artist(who would be the seller) on the first sale.
    * The first iteration of whitepaper has the following stats:
    * orgFee = 5%
    * artist royalty/creator fee = 0%
    * The above numbers can be updated later by the DAO
    * @notice _creatorFeeInitial should be sellerFeeInitial - seller fees on first sale
    */
    function setRoyaltyPercentageFirstSale(uint256 _orgFeeInitial, uint _creatorFeeInitial) public onlyOwner returns (bool) {
        orgFeeInitial = _orgFeeInitial;
        sellerFeeInitial = _creatorFeeInitial;
        return true;
    }

    /** @dev Return all the royalties including first sale and subsequent sale values
    * orgFee - % of fees that would go to the org from the total royalty
    * creatorRoyalty - % of fees that would go to the artist/creator
    * orgInitialRoyalty - % of fees that would go to the organisation on first sale
    * sellerFeeInitial - % of fees for seller on the first sale
    */
    function getRoyalties() public view returns (uint _orgFee, uint256 _creatorRoyalty, 
    uint256 _orgInitialRoyalty, uint256 _sellerFeeInitial) {
        
        return (orgFee, creatorFee, orgFeeInitial, sellerFeeInitial);
    }

    /**
    * @dev This function is used to get the seller percentage. 
    * This refers to the amount of money that would be distributed to the seller 
    * after the reduction of royalty and platform fees.
    * The values are multipleied by 100, in order to work easily 
    * with floating point percentages.
    */
    function getSellerFee() public view returns (uint256) {
        //Returning % multiplied by 100 to keep it uniform across contract
        return sellerFee;
    }

    function getNFTData(uint _tokenId) public view returns (NFTData memory) {
        return nftData[_tokenId];
    }

    /**
    * This function is used to mint an NFT for the Naksh marketplace.
    * @dev The basic information related to the NFT needs to be passeed to this function,
    * in order to store it on chain to avoid disputes in future.
    */
    function mintByArtistOrAdmin(address _creator, string memory _tokenURI, string memory title,
    string memory description, string memory artistName) public onlyArtistOrAdmin returns (uint256 _tokenId) {

        minter mintedBy;
        _tokenIds.increment();
        uint256 tokenId = _tokenIds.current();
        tokenOwner[tokenId] = _creator;

        string memory json = Base64.encode(
            bytes(
                string(
                    abi.encodePacked(
                        '{"title": "',title ,'", "description": "',description ,'", "image": "',_tokenURI ,'", "artist name": "',artistName ,'"}'
                    )
                )
            )
        );

        string memory finalTokenUri = string(
            abi.encodePacked("data:application/json;base64,", json)
        );
       
        _mint(_creator, tokenId);
        _setTokenURI(tokenId, finalTokenUri);

        if (msg.sender == admin) {
            mintedBy = minter.Admin;
        } else {
            mintedBy = minter.Artist;
        }

        NFTData memory nftNew = NFTData(address(this), tokenId, _tokenURI, title, description, artistData[_creator], mintedBy);
        nftData[tokenId] = nftNew;
        mintedNfts.push(nftNew);
        
        creatorTokens[_creator].push(tokenId);
        emit Mint(_creator, tokenId, _tokenURI, title, description);
        return tokenId;
    }
    

    /**
    * This returns the total number of NFTs minted on the platform
    */
    function totalSupply() public view virtual returns (uint256) {
        return _tokenIds.current();
    }

    /**
    *This function is used to burn NFT, only Admin is allowed
    */
    function burn(uint256 tokenId) public onlyAdmin {
        _burn(tokenId);
    }

    /**
    *This function allows to bulk mint NFTs
    */
    function bulkMintByArtist(string[] memory _tokenURI, string[] memory title,
    string[] memory description, string memory artistName) public onlyArtist returns (uint256[] memory _tokenId) {
        
        uint256[] memory tokenIds;

        uint256 length = title.length;

        for(uint i = 0; i < length;)
        {
        _tokenIds.increment();
        uint256 tokenId = _tokenIds.current();
        tokenOwner[tokenId] = msg.sender;

        string memory json = Base64.encode(
            bytes(
                string(
                    abi.encodePacked(
                        '{"title": "',title[i] ,'", "description": "',description[i] ,'", "image": "',_tokenURI[i] ,'", "artist name": "',artistName ,'"}'
                    )
                )
            )
        );

        string memory finalTokenUri = string(
            abi.encodePacked("data:application/json;base64,", json)
        );
   
        _mint(msg.sender, tokenId);
        _setTokenURI(tokenId, finalTokenUri);
        
        NFTData memory nftNew = NFTData(address(this), tokenId, _tokenURI[i], title[i], description[i], artistData[msg.sender], minter.Artist);
        nftData[tokenId] = nftNew;
        mintedNfts.push(nftNew);
        
        creatorTokens[msg.sender].push(tokenId);

        emit Mint(msg.sender, tokenId, _tokenURI[i], title[i], description[i]);

        unchecked { ++i; }
        }
        return tokenIds;
    }

    /**
    *This function allows to bulk mint NFTs
    */
    function bulkMintByAdmin(address _creator, string[] memory _tokenURI, string[] memory title,
    string[] memory description, string memory artistName) public onlyAdmin returns (uint256[] memory _tokenId) {
        
        uint256[] memory tokenIds;

        uint256 length = title.length;

        for(uint i = 0; i < length;)
        {
        _tokenIds.increment();
        uint256 tokenId = _tokenIds.current();
        tokenOwner[tokenId] = _creator;
        
        tokenIds[i] = tokenId;

        string memory json = Base64.encode(
            bytes(
                string(
                    abi.encodePacked(
                        '{"title": "',title[i] ,'", "description": "',description[i] ,'", "image": "',_tokenURI[i] ,'", "artist name": "',artistName ,'"}'
                    )
                )
            )
        );

        string memory finalTokenUri = string(
            abi.encodePacked("data:application/json;base64,", json)
        );
   
        _mint(_creator, tokenId);
        _setTokenURI(tokenId, finalTokenUri);
        
        NFTData memory nftNew = NFTData(address(this), tokenId, _tokenURI[i], title[i], description[i], artistData[msg.sender], minter.Admin);
        nftData[tokenId] = nftNew;
        mintedNfts.push(nftNew);
        
        creatorTokens[_creator].push(tokenId);

        emit Mint(_creator,tokenId, _tokenURI[i], title[i], description[i]);

        unchecked { ++i; }
        }
        return tokenIds;
    }

}

File 3 of 15 : ERC721URIStorage.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/extensions/ERC721URIStorage.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";

/**
 * @dev ERC721 token with storage based token URI management.
 */
abstract contract ERC721URIStorage is ERC721 {
    using Strings for uint256;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

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

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = _baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }

        return super.tokenURI(tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @dev See {ERC721-_burn}. This override additionally checks to see if a
     * token-specific URI was set for the token, and if so, it deletes the token URI from
     * the storage mapping.
     */
    function _burn(uint256 tokenId) internal virtual override {
        super._burn(tokenId);

        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        return result;
    }
}

File 6 of 15 : Structs.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;

    enum minter{
        Admin,
        Artist
    }

    struct SocialMediaData {
        string instagram;
        string facebook;
        string twitter;
        string website;
    }

    struct CoverImage {
        string uri;
        bool isGradient;
    }

    struct CollectionDetails {
        string name;
        string symbol;
        string about;
        string logo;
        CoverImage cover;
        SocialMediaData social;
    }

    struct NFTData {
        address nftAddress;
        uint tokenId;
        string tokenUri;
        string title;
        string description;
        artistDetails artist;
        minter mintedBy;
    }

     struct artistDetails {
        string name;
        address artistAddress;
        string imageUrl;
    }

    enum saleType {
        DirectSale,
        Auction
    }

    struct SaleData {
        NFTData nft;
        bool isOnSale;
        bool tokenFirstSale;
        uint salePrice;
        saleType saletype;
    }

    struct NFTAuction {
        uint startTime;
        uint endTime;
        uint tokenId;
        address owner;
        uint price;
        uint highestBid;
        address highestBidder;
    }

    struct bidHistory {
        address bidder;
        uint amount;
        uint timestamp;
    }

File 7 of 15 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner 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: caller is not token owner nor approved");
        _safeTransfer(from, to, tokenId, data);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

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

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * 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 {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 8 of 15 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev 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 9 of 15 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 11 of 15 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_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) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

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

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

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

    /**
     * @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 14 of 15 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"name","type":"string"},{"indexed":true,"internalType":"string","name":"symbol","type":"string"},{"indexed":true,"internalType":"address","name":"nftAddress","type":"address"}],"name":"CollectionCreated","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"artistCollections","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"address","name":"artistAddress","type":"address"},{"internalType":"string","name":"imageUrl","type":"string"}],"internalType":"struct artistDetails","name":"artist","type":"tuple"},{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"about","type":"string"},{"internalType":"string","name":"logo","type":"string"},{"components":[{"internalType":"string","name":"uri","type":"string"},{"internalType":"bool","name":"isGradient","type":"bool"}],"internalType":"struct CoverImage","name":"cover","type":"tuple"},{"components":[{"internalType":"string","name":"instagram","type":"string"},{"internalType":"string","name":"facebook","type":"string"},{"internalType":"string","name":"twitter","type":"string"},{"internalType":"string","name":"website","type":"string"}],"internalType":"struct SocialMediaData","name":"social","type":"tuple"}],"internalType":"struct CollectionDetails","name":"collection","type":"tuple"},{"internalType":"address payable","name":"_admin","type":"address"},{"internalType":"uint16","name":"_creatorFee","type":"uint16"},{"internalType":"address payable[]","name":"_creators","type":"address[]"}],"name":"deployNftCollection","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_artist","type":"address"}],"name":"getArtistCollections","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b50615d7b806100206000396000f3fe60806040523480156200001157600080fd5b5060043610620000465760003560e01c80634ada4415146200004b5780639826c01a146200007a578063e38b4c2714620000aa575b600080fd5b620000626200005c36600462000284565b620000c1565b604051620000719190620002ab565b60405180910390f35b620000916200008b36600462000752565b62000137565b6040516001600160a01b03909116815260200162000071565b62000091620000bb36600462000878565b62000224565b6001600160a01b038116600090815260208181526040918290208054835181840281018401909452808452606093928301828280156200012b57602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116200010c575b50505050509050919050565b6000808686338787876040516200014e906200025d565b6200015f96959493929190620009c1565b604051809103906000f0801580156200017c573d6000803e3d6000fd5b503360009081526020818152604080832080546001810182559084529282902090920180546001600160a01b0319166001600160a01b03851690811790915590890151915192935091620001d1919062000b26565b60405190819003812088519091620001ea919062000b26565b604051908190038120907fabee1aeb0b4c4fb5c232e004f9e7b9823cf5fc60ed7f3913c15de1ffbf7665e490600090a49695505050505050565b600060205281600052604060002081815481106200024157600080fd5b6000918252602090912001546001600160a01b03169150829050565b6152018062000b4583390190565b6001600160a01b03811681146200028157600080fd5b50565b6000602082840312156200029757600080fd5b8135620002a4816200026b565b9392505050565b6020808252825182820181905260009190848201906040850190845b81811015620002ee5783516001600160a01b031683529284019291840191600101620002c7565b50909695505050505050565b634e487b7160e01b600052604160045260246000fd5b6040516080810167ffffffffffffffff81118282101715620003365762000336620002fa565b60405290565b60405160c0810167ffffffffffffffff81118282101715620003365762000336620002fa565b6040516060810167ffffffffffffffff81118282101715620003365762000336620002fa565b604051601f8201601f1916810167ffffffffffffffff81118282101715620003b457620003b4620002fa565b604052919050565b600082601f830112620003ce57600080fd5b813567ffffffffffffffff811115620003eb57620003eb620002fa565b62000400601f8201601f191660200162000388565b8181528460208386010111156200041657600080fd5b816020850160208301376000918101602001919091529392505050565b6000604082840312156200044657600080fd5b6040516040810167ffffffffffffffff82821081831117156200046d576200046d620002fa565b8160405282935084359150808211156200048657600080fd5b506200049585828601620003bc565b82525060208301358015158114620004ac57600080fd5b6020919091015292915050565b600060808284031215620004cc57600080fd5b620004d662000310565b9050813567ffffffffffffffff80821115620004f157600080fd5b620004ff85838601620003bc565b835260208401359150808211156200051657600080fd5b6200052485838601620003bc565b602084015260408401359150808211156200053e57600080fd5b6200054c85838601620003bc565b604084015260608401359150808211156200056657600080fd5b506200057584828501620003bc565b60608301525092915050565b600060c082840312156200059457600080fd5b6200059e6200033c565b9050813567ffffffffffffffff80821115620005b957600080fd5b620005c785838601620003bc565b83526020840135915080821115620005de57600080fd5b620005ec85838601620003bc565b602084015260408401359150808211156200060657600080fd5b6200061485838601620003bc565b604084015260608401359150808211156200062e57600080fd5b6200063c85838601620003bc565b606084015260808401359150808211156200065657600080fd5b620006648583860162000433565b608084015260a08401359150808211156200067e57600080fd5b506200068d84828501620004b9565b60a08301525092915050565b8035620006a6816200026b565b919050565b803561ffff81168114620006a657600080fd5b600082601f830112620006d057600080fd5b8135602067ffffffffffffffff821115620006ef57620006ef620002fa565b8160051b6200070082820162000388565b92835284810182019282810190878511156200071b57600080fd5b83870192505b848310156200074757823562000737816200026b565b8252918301919083019062000721565b979650505050505050565b600080600080600060a086880312156200076b57600080fd5b853567ffffffffffffffff808211156200078457600080fd5b908701906060828a0312156200079957600080fd5b620007a362000362565b823582811115620007b357600080fd5b620007c18b828601620003bc565b8252506020830135620007d4816200026b565b6020820152604083013582811115620007ec57600080fd5b620007fa8b828601620003bc565b604083015250965060208801359150808211156200081757600080fd5b6200082589838a0162000581565b9550620008356040890162000699565b94506200084560608901620006ab565b935060808801359150808211156200085c57600080fd5b506200086b88828901620006be565b9150509295509295909350565b600080604083850312156200088c57600080fd5b823562000899816200026b565b946020939093013593505050565b60005b83811015620008c4578181015183820152602001620008aa565b83811115620008d4576000848401525b50505050565b60008151808452620008f4816020860160208601620008a7565b601f01601f19169290920160200192915050565b60008151608084526200091f6080850182620008da565b9050602083015184820360208601526200093a8282620008da565b91505060408301518482036040860152620009568282620008da565b91505060608301518482036060860152620009728282620008da565b95945050505050565b600081518084526020808501945080840160005b83811015620009b65781516001600160a01b0316875295820195908201906001016200098f565b509495945050505050565b60c0815260008751606060c0840152620009e0610120840182620008da565b60208a8101516001600160a01b031660e08601526040808c015186840360bf1901610100880152929350909162000a188482620008da565b93505084830382860152895160c0845262000a3760c0850182620008da565b9050828b01518482038486015262000a508282620008da565b915050818b01518482038386015262000a6a8282620008da565b91505060608b0151848203606086015262000a868282620008da565b91505060808b01518482036080860152805183835262000aa984840182620008da565b90508482015115158584015260a08d0151945085810360a087015262000ad0818662000908565b955050505062000aea8186018a6001600160a01b03169052565b50506001600160a01b038616606084015261ffff8516608084015282810360a084015262000b1981856200097b565b9998505050505050505050565b6000825162000b3a818460208701620008a7565b919091019291505056fe60806040526013546014553480156200001757600080fd5b5060405162005201380380620052018339810160408190526200003a916200085f565b8451602080870151825190916200005791600091850190620002d8565b5080516200006d906001906020840190620002d8565b5050506020808701516001600160a01b03166000908152600c825260409020875180518993620000a2928492910190620002d8565b506020828101516001830180546001600160a01b0319166001600160a01b0390921691909117905560408301518051620000e39260028501920190620002d8565b5050506020808701516001600160a01b03166000908152600782526040808220805460ff19166001179055308252600a835290208651805188936200012d928492910190620002d8565b506020828101518051620001489260018501920190620002d8565b506040820151805162000166916002840191602090910190620002d8565b506060820151805162000184916003840191602090910190620002d8565b506080820151805180516004840191620001a491839160200190620002d8565b50602091820151600191909101805460ff191691151591909117905560a08301518051805191926006850192620001df9284920190620002d8565b506020828101518051620001fa9260018501920190620002d8565b506040820151805162000218916002840191602090910190620002d8565b506060820151805162000236916003840191602090910190620002d8565b5050600d80546001600160a01b03808a166001600160a01b031992831617909255600f80549289169290911691909117905550506101f46011555061ffff821660125580516200028e90601390602084019062000367565b50601254601154620002a39061271062000996565b620002af919062000996565b6010556101f46016819055620002c89061271062000996565b60155550620009f9945050505050565b828054620002e690620009bc565b90600052602060002090601f0160209004810192826200030a576000855562000355565b82601f106200032557805160ff191683800117855562000355565b8280016001018555821562000355579182015b828111156200035557825182559160200191906001019062000338565b5062000363929150620003bf565b5090565b82805482825590600052602060002090810192821562000355579160200282015b828111156200035557825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000388565b5b80821115620003635760008155600101620003c0565b634e487b7160e01b600052604160045260246000fd5b604051608081016001600160401b0381118282101715620004115762000411620003d6565b60405290565b60405160c081016001600160401b0381118282101715620004115762000411620003d6565b604051606081016001600160401b0381118282101715620004115762000411620003d6565b604051601f8201601f191681016001600160401b03811182821017156200048c576200048c620003d6565b604052919050565b600082601f830112620004a657600080fd5b81516001600160401b03811115620004c257620004c2620003d6565b6020620004d8601f8301601f1916820162000461565b8281528582848701011115620004ed57600080fd5b60005b838110156200050d578581018301518282018401528201620004f0565b838111156200051f5760008385840101525b5095945050505050565b6001600160a01b03811681146200053f57600080fd5b50565b80516200054f8162000529565b919050565b6000604082840312156200056757600080fd5b604080519081016001600160401b0380821183831017156200058d576200058d620003d6565b816040528293508451915080821115620005a657600080fd5b50620005b58582860162000494565b82525060208301518015158114620005cc57600080fd5b6020919091015292915050565b600060808284031215620005ec57600080fd5b620005f6620003ec565b82519091506001600160401b03808211156200061157600080fd5b6200061f8583860162000494565b835260208401519150808211156200063657600080fd5b620006448583860162000494565b602084015260408401519150808211156200065e57600080fd5b6200066c8583860162000494565b604084015260608401519150808211156200068657600080fd5b50620006958482850162000494565b60608301525092915050565b600060c08284031215620006b457600080fd5b620006be62000417565b82519091506001600160401b0380821115620006d957600080fd5b620006e78583860162000494565b83526020840151915080821115620006fe57600080fd5b6200070c8583860162000494565b602084015260408401519150808211156200072657600080fd5b620007348583860162000494565b604084015260608401519150808211156200074e57600080fd5b6200075c8583860162000494565b606084015260808401519150808211156200077657600080fd5b620007848583860162000554565b608084015260a08401519150808211156200079e57600080fd5b50620007ad84828501620005d9565b60a08301525092915050565b805161ffff811681146200054f57600080fd5b600082601f830112620007de57600080fd5b815160206001600160401b03821115620007fc57620007fc620003d6565b8160051b6200080d82820162000461565b92835284810182019282810190878511156200082857600080fd5b83870192505b8483101562000854578251620008448162000529565b825291830191908301906200082e565b979650505050505050565b60008060008060008060c087890312156200087957600080fd5b86516001600160401b03808211156200089157600080fd5b908801906060828b031215620008a657600080fd5b620008b06200043c565b825182811115620008c057600080fd5b620008ce8c82860162000494565b8252506020830151620008e18162000529565b6020820152604083015182811115620008f957600080fd5b620009078c82860162000494565b60408301525060208a01519098509150808211156200092557600080fd5b620009338a838b01620006a1565b96506200094360408a0162000542565b95506200095360608a0162000542565b94506200096360808a01620007b9565b935060a08901519150808211156200097a57600080fd5b506200098989828a01620007cc565b9150509295509295509295565b600082821015620009b757634e487b7160e01b600052601160045260246000fd5b500390565b600181811c90821680620009d157607f821691505b60208210811415620009f357634e487b7160e01b600052602260045260246000fd5b50919050565b6147f88062000a096000396000f3fe608060405234801561001057600080fd5b506004361061023d5760003560e01c806370a082311161013b578063bc073e10116100b8578063e1f3d55a1161007c578063e1f3d55a1461050b578063e88958dc14610514578063e985e9c51461051d578063f851a44014610559578063feeeadfd1461056c57600080fd5b8063bc073e10146104c1578063bcc2ace6146104c9578063c87b56dd146104d2578063cd53d08e146104e5578063cf054cd0146104f857600080fd5b80639ba4fd8c116100ff5780639ba4fd8c14610443578063a22cb46514610466578063a992015f14610479578063b3ff78c114610499578063b88d4fde146104ae57600080fd5b806370a08231146103dc5780638c210975146103ef5780638da5cb5b1461041557806395d89b41146104285780639b846da31461043057600080fd5b806341d6f9c2116101c95780634c8e943e1161018d5780634c8e943e146103875780634e5dbd881461039a5780635986ebd1146103ad5780636352211e146103c057806364969ced146103d357600080fd5b806341d6f9c21461033d57806342842e0e1461035057806342966c681461036357806343741e04146103765780634592cd1d1461037f57600080fd5b80630ad4c4f4116102105780630ad4c4f4146102bf57806318160ddd146102df57806323b872dd146102f55780632e098d2a1461030857806333df048e1461031157600080fd5b806301ffc9a71461024257806306fdde031461026a578063081812fc1461027f578063095ea7b3146102aa575b600080fd5b610255610250366004613b2e565b61058c565b60405190151581526020015b60405180910390f35b6102726105de565b6040516102619190613ba3565b61029261028d366004613bb6565b610670565b6040516001600160a01b039091168152602001610261565b6102bd6102b8366004613beb565b610697565b005b6102d26102cd366004613bb6565b6107b2565b6040516102619190613c96565b6102e7610b31565b604051908152602001610261565b6102bd610303366004613d45565b610b41565b6102e760145481565b601154601254601654601554604080519485526020850193909352918301526060820152608001610261565b61025561034b366004613d81565b610b72565b6102bd61035e366004613d45565b610c29565b6102bd610371366004613bb6565b610c44565b6102e760155481565b6102bd610c67565b610255610395366004613d81565b610d38565b6102bd6103a8366004613da3565b610d61565b6102bd6103bb366004613da3565b610e24565b6102926103ce366004613bb6565b610eb3565b6102e760115481565b6102e76103ea366004613da3565b610f13565b6104026103fd366004613bb6565b610f99565b6040516102619796959493929190613dbe565b600d54610292906001600160a01b031681565b6102726112bd565b6102e761043e366004613efa565b6112cc565b610255610451366004613da3565b60076020526000908152604090205460ff1681565b6102bd610474366004613fb8565b6118f3565b61048c610487366004614087565b611902565b6040516102619190614134565b6104a1611f7e565b60405161026191906141da565b6102bd6104bc3660046142a8565b612509565b6010546102e7565b6102e760165481565b6102726104e0366004613bb6565b612541565b6102926104f3366004613bb6565b61264a565b61048c610506366004614318565b612674565b6102e760105481565b6102e760125481565b61025561052b3660046143a6565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b600f54610292906001600160a01b031681565b61057f61057a366004613da3565b612cc7565b60405161026191906143d9565b60006001600160e01b031982166380ac58cd60e01b14806105bd57506001600160e01b03198216635b5e139f60e01b145b806105d857506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546105ed906143ec565b80601f0160208091040260200160405190810160405280929190818152602001828054610619906143ec565b80156106665780601f1061063b57610100808354040283529160200191610666565b820191906000526020600020905b81548152906001019060200180831161064957829003601f168201915b5050505050905090565b600061067b82612f01565b506000908152600460205260409020546001600160a01b031690565b60006106a282610eb3565b9050806001600160a01b0316836001600160a01b031614156107155760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806107315750610731813361052b565b6107a35760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000606482015260840161070c565b6107ad8383612f60565b505050565b6107ba613962565b6000828152600b6020908152604091829020825160e08101845281546001600160a01b031681526001820154928101929092526002810180549293919291840191610804906143ec565b80601f0160208091040260200160405190810160405280929190818152602001828054610830906143ec565b801561087d5780601f106108525761010080835404028352916020019161087d565b820191906000526020600020905b81548152906001019060200180831161086057829003601f168201915b50505050508152602001600382018054610896906143ec565b80601f01602080910402602001604051908101604052809291908181526020018280546108c2906143ec565b801561090f5780601f106108e45761010080835404028352916020019161090f565b820191906000526020600020905b8154815290600101906020018083116108f257829003601f168201915b50505050508152602001600482018054610928906143ec565b80601f0160208091040260200160405190810160405280929190818152602001828054610954906143ec565b80156109a15780601f10610976576101008083540402835291602001916109a1565b820191906000526020600020905b81548152906001019060200180831161098457829003601f168201915b50505050508152602001600582016040518060600160405290816000820180546109ca906143ec565b80601f01602080910402602001604051908101604052809291908181526020018280546109f6906143ec565b8015610a435780601f10610a1857610100808354040283529160200191610a43565b820191906000526020600020905b815481529060010190602001808311610a2657829003601f168201915b505050918352505060018201546001600160a01b03166020820152600282018054604090920191610a73906143ec565b80601f0160208091040260200160405190810160405280929190818152602001828054610a9f906143ec565b8015610aec5780601f10610ac157610100808354040283529160200191610aec565b820191906000526020600020905b815481529060010190602001808311610acf57829003601f168201915b505050919092525050508152600882015460209091019060ff166001811115610b1757610b17613c5e565b6001811115610b2857610b28613c5e565b90525092915050565b6000610b3c60175490565b905090565b610b4b3382612fce565b610b675760405162461bcd60e51b815260040161070c90614427565b6107ad83838361304c565b600d546000906001600160a01b03163314610b8c57600080fd5b610b96828461448b565b61271011610bfc5760405162461bcd60e51b815260206004820152602d60248201527f53756d206f662063726561746f722066656520616e64206f726720666565207360448201526c686f756c64206265203130302560981b606482015260840161070c565b6011839055601282905581610c13846127106144a3565b610c1d91906144a3565b60105550600192915050565b6107ad83838360405180602001604052806000815250612509565b600f546001600160a01b03163314610c5b57600080fd5b610c64816131e8565b50565b600e546001600160a01b03163314610cd25760405162461bcd60e51b815260206004820152602860248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206772616e7460448201526732b21037bbb732b960c11b606482015260840161070c565b600e54600d546040516001600160a01b0392831692909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600e8054600d80546001600160a01b03199081166001600160a01b03841617909155169055565b600d546000906001600160a01b03163314610d5257600080fd5b50601691909155601555600190565b600d546001600160a01b03163314610d7857600080fd5b6001600160a01b038116610dce5760405162461bcd60e51b815260206004820181905260248201527f4e6577206f776e65722063616e6e6f74206265207a65726f2061646472657373604482015260640161070c565b6040516001600160a01b038216907f24fef68333a009942a0d4864d8fdf2266e208a96399f135b05c1dc92c3c31f9290600090a2600e80546001600160a01b0319166001600160a01b0392909216919091179055565b600f546001600160a01b03163314610e3b57600080fd5b6001600160a01b038116610e915760405162461bcd60e51b815260206004820181905260248201527f4e65772041646d696e2063616e6e6f74206265207a65726f2061646472657373604482015260640161070c565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b6000818152600260205260408120546001600160a01b0316806105d85760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161070c565b60006001600160a01b038216610f7d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b606482015260840161070c565b506001600160a01b031660009081526003602052604090205490565b600b602052600090815260409020805460018201546002830180546001600160a01b03909316939192610fcb906143ec565b80601f0160208091040260200160405190810160405280929190818152602001828054610ff7906143ec565b80156110445780601f1061101957610100808354040283529160200191611044565b820191906000526020600020905b81548152906001019060200180831161102757829003601f168201915b505050505090806003018054611059906143ec565b80601f0160208091040260200160405190810160405280929190818152602001828054611085906143ec565b80156110d25780601f106110a7576101008083540402835291602001916110d2565b820191906000526020600020905b8154815290600101906020018083116110b557829003601f168201915b5050505050908060040180546110e7906143ec565b80601f0160208091040260200160405190810160405280929190818152602001828054611113906143ec565b80156111605780601f1061113557610100808354040283529160200191611160565b820191906000526020600020905b81548152906001019060200180831161114357829003601f168201915b50505050509080600501604051806060016040529081600082018054611185906143ec565b80601f01602080910402602001604051908101604052809291908181526020018280546111b1906143ec565b80156111fe5780601f106111d3576101008083540402835291602001916111fe565b820191906000526020600020905b8154815290600101906020018083116111e157829003601f168201915b505050918352505060018201546001600160a01b0316602082015260028201805460409092019161122e906143ec565b80601f016020809104026020016040519081016040528092919081815260200182805461125a906143ec565b80156112a75780601f1061127c576101008083540402835291602001916112a7565b820191906000526020600020905b81548152906001019060200180831161128a57829003601f168201915b5050509190925250505060089091015460ff1687565b6060600180546105ed906143ec565b3360009081526007602052604081205460ff161515600114806112f95750600f546001600160a01b031633145b6113455760405162461bcd60e51b815260206004820152601d60248201527f4f6e6c7920417274697374206f722041646d696e2063616e206d696e74000000604482015260640161070c565b6000611355601780546001019055565b600061136060175490565b600081815260086020908152604080832080546001600160a01b0319166001600160a01b038e161790555192935090916113ba916113a6918a918a918d918b91016144ba565b604051602081830303815290604052613228565b90506000816040516020016113cf9190614593565b60405160208183030381529060405290506113ea8a8461337c565b6113f483826134be565b600f546001600160a01b03163314156114105760009350611415565b600193505b60006040518060e00160405280306001600160a01b031681526020018581526020018b81526020018a8152602001898152602001600c60008e6001600160a01b03166001600160a01b03168152602001908152602001600020604051806060016040529081600082018054611489906143ec565b80601f01602080910402602001604051908101604052809291908181526020018280546114b5906143ec565b80156115025780601f106114d757610100808354040283529160200191611502565b820191906000526020600020905b8154815290600101906020018083116114e557829003601f168201915b505050918352505060018201546001600160a01b03166020820152600282018054604090920191611532906143ec565b80601f016020809104026020016040519081016040528092919081815260200182805461155e906143ec565b80156115ab5780601f10611580576101008083540402835291602001916115ab565b820191906000526020600020905b81548152906001019060200180831161158e57829003601f168201915b50505050508152505081526020018660018111156115cb576115cb613c5e565b90526000858152600b6020908152604091829020835181546001600160a01b0319166001600160a01b03909116178155838201516001820155918301518051939450849361161f92600285019201906139d3565b506060820151805161163b9160038401916020909101906139d3565b50608082015180516116579160048401916020909101906139d3565b5060a0820151805180516005840191611675918391602001906139d3565b506020828101516001830180546001600160a01b0319166001600160a01b03909216919091179055604083015180516116b492600285019201906139d3565b50505060c082015160088201805460ff1916600183818111156116d9576116d9613c5e565b02179055505060188054600181018255600091909152825160099091027fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e810180546001600160a01b039093166001600160a01b03199093169290921782556020808501517fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2f8301556040850151805186955061179d937fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d30019291909101906139d3565b50606082015180516117b99160038401916020909101906139d3565b50608082015180516117d59160048401916020909101906139d3565b5060a08201518051805160058401916117f3918391602001906139d3565b506020828101516001830180546001600160a01b0319166001600160a01b039092169190911790556040830151805161183292600285019201906139d3565b50505060c082015160088201805460ff19166001838181111561185757611857613c5e565b021790555050506001600160a01b038b1660009081526009602090815260408083208054600181018255908452919092200185905551611898908b906145d8565b6040518091039020848c6001600160a01b03167f3008cd1b07fb304ff3fd96dfc9c0b352dd13f3297e45341023a63e8dd89101ef8c8c6040516118dc9291906145f4565b60405180910390a450919998505050505050505050565b6118fe338383613558565b5050565b3360009081526007602052604090205460609060ff16151560011461192657600080fd5b835160609060005b81811015611f7057611944601780546001019055565b600061194f60175490565b600081815260086020526040812080546001600160a01b031916331790558951919250906119d9908a908590811061198957611989614619565b60200260200101518985815181106119a3576119a3614619565b60200260200101518c86815181106119bd576119bd614619565b60200260200101518a6040516020016113a694939291906144ba565b90506000816040516020016119ee9190614593565b6040516020818303038152906040529050611a09338461337c565b611a1383826134be565b60006040518060e00160405280306001600160a01b031681526020018581526020018d8781518110611a4757611a47614619565b602002602001015181526020018c8781518110611a6657611a66614619565b602002602001015181526020018b8781518110611a8557611a85614619565b60200260200101518152602001600c6000336001600160a01b03166001600160a01b03168152602001908152602001600020604051806060016040529081600082018054611ad2906143ec565b80601f0160208091040260200160405190810160405280929190818152602001828054611afe906143ec565b8015611b4b5780601f10611b2057610100808354040283529160200191611b4b565b820191906000526020600020905b815481529060010190602001808311611b2e57829003601f168201915b505050918352505060018201546001600160a01b03166020820152600282018054604090920191611b7b906143ec565b80601f0160208091040260200160405190810160405280929190818152602001828054611ba7906143ec565b8015611bf45780601f10611bc957610100808354040283529160200191611bf4565b820191906000526020600020905b815481529060010190602001808311611bd757829003601f168201915b505050919092525050508152602001600190526000858152600b6020908152604091829020835181546001600160a01b0319166001600160a01b039091161781558382015160018201559183015180519394508493611c5992600285019201906139d3565b5060608201518051611c759160038401916020909101906139d3565b5060808201518051611c919160048401916020909101906139d3565b5060a0820151805180516005840191611caf918391602001906139d3565b506020828101516001830180546001600160a01b0319166001600160a01b0390921691909117905560408301518051611cee92600285019201906139d3565b50505060c082015160088201805460ff191660018381811115611d1357611d13613c5e565b02179055505060188054600181018255600091909152825160099091027fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e810180546001600160a01b039093166001600160a01b03199093169290921782556020808501517fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2f83015560408501518051869550611dd7937fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d30019291909101906139d3565b5060608201518051611df39160038401916020909101906139d3565b5060808201518051611e0f9160048401916020909101906139d3565b5060a0820151805180516005840191611e2d918391602001906139d3565b506020828101516001830180546001600160a01b0319166001600160a01b0390921691909117905560408301518051611e6c92600285019201906139d3565b50505060c082015160088201805460ff191660018381811115611e9157611e91613c5e565b02179055505033600090815260096020908152604082208054600181018255908352912001859055508b518c9086908110611ece57611ece614619565b6020026020010151604051611ee391906145d8565b604051809103902084336001600160a01b03167f3008cd1b07fb304ff3fd96dfc9c0b352dd13f3297e45341023a63e8dd89101ef8e8981518110611f2957611f29614619565b60200260200101518e8a81518110611f4357611f43614619565b6020026020010151604051611f599291906145f4565b60405180910390a48460010194505050505061192e565b50909150505b949350505050565b611f86613a57565b306000908152600a602052604090819020815160c08101909252805482908290611faf906143ec565b80601f0160208091040260200160405190810160405280929190818152602001828054611fdb906143ec565b80156120285780601f10611ffd57610100808354040283529160200191612028565b820191906000526020600020905b81548152906001019060200180831161200b57829003601f168201915b50505050508152602001600182018054612041906143ec565b80601f016020809104026020016040519081016040528092919081815260200182805461206d906143ec565b80156120ba5780601f1061208f576101008083540402835291602001916120ba565b820191906000526020600020905b81548152906001019060200180831161209d57829003601f168201915b505050505081526020016002820180546120d3906143ec565b80601f01602080910402602001604051908101604052809291908181526020018280546120ff906143ec565b801561214c5780601f106121215761010080835404028352916020019161214c565b820191906000526020600020905b81548152906001019060200180831161212f57829003601f168201915b50505050508152602001600382018054612165906143ec565b80601f0160208091040260200160405190810160405280929190818152602001828054612191906143ec565b80156121de5780601f106121b3576101008083540402835291602001916121de565b820191906000526020600020905b8154815290600101906020018083116121c157829003601f168201915b5050505050815260200160048201604051806040016040529081600082018054612207906143ec565b80601f0160208091040260200160405190810160405280929190818152602001828054612233906143ec565b80156122805780601f1061225557610100808354040283529160200191612280565b820191906000526020600020905b81548152906001019060200180831161226357829003601f168201915b505050505081526020016001820160009054906101000a900460ff1615151515815250508152602001600682016040518060800160405290816000820180546122c8906143ec565b80601f01602080910402602001604051908101604052809291908181526020018280546122f4906143ec565b80156123415780601f1061231657610100808354040283529160200191612341565b820191906000526020600020905b81548152906001019060200180831161232457829003601f168201915b5050505050815260200160018201805461235a906143ec565b80601f0160208091040260200160405190810160405280929190818152602001828054612386906143ec565b80156123d35780601f106123a8576101008083540402835291602001916123d3565b820191906000526020600020905b8154815290600101906020018083116123b657829003601f168201915b505050505081526020016002820180546123ec906143ec565b80601f0160208091040260200160405190810160405280929190818152602001828054612418906143ec565b80156124655780601f1061243a57610100808354040283529160200191612465565b820191906000526020600020905b81548152906001019060200180831161244857829003601f168201915b5050505050815260200160038201805461247e906143ec565b80601f01602080910402602001604051908101604052809291908181526020018280546124aa906143ec565b80156124f75780601f106124cc576101008083540402835291602001916124f7565b820191906000526020600020905b8154815290600101906020018083116124da57829003601f168201915b50505050508152505081525050905090565b6125133383612fce565b61252f5760405162461bcd60e51b815260040161070c90614427565b61253b84848484613627565b50505050565b606061254c82612f01565b60008281526006602052604081208054612565906143ec565b80601f0160208091040260200160405190810160405280929190818152602001828054612591906143ec565b80156125de5780601f106125b3576101008083540402835291602001916125de565b820191906000526020600020905b8154815290600101906020018083116125c157829003601f168201915b5050505050905060006125fc60408051602081019091526000815290565b905080516000141561260f575092915050565b81511561264157808260405160200161262992919061462f565b60405160208183030381529060405292505050919050565b611f768461365a565b6013818154811061265a57600080fd5b6000918252602090912001546001600160a01b0316905081565b600f546060906001600160a01b0316331461268e57600080fd5b835160609060005b81811015612cba576126ac601780546001019055565b60006126b760175490565b600081815260086020526040902080546001600160a01b0319166001600160a01b038d16179055845190915081908590849081106126f7576126f7614619565b602002602001018181525050600061271a89848151811061198957611989614619565b905060008160405160200161272f9190614593565b604051602081830303815290604052905061274a8c8461337c565b61275483826134be565b60006040518060e00160405280306001600160a01b031681526020018581526020018d878151811061278857612788614619565b602002602001015181526020018c87815181106127a7576127a7614619565b602002602001015181526020018b87815181106127c6576127c6614619565b60200260200101518152602001600c6000336001600160a01b03166001600160a01b03168152602001908152602001600020604051806060016040529081600082018054612813906143ec565b80601f016020809104026020016040519081016040528092919081815260200182805461283f906143ec565b801561288c5780601f106128615761010080835404028352916020019161288c565b820191906000526020600020905b81548152906001019060200180831161286f57829003601f168201915b505050918352505060018201546001600160a01b031660208201526002820180546040909201916128bc906143ec565b80601f01602080910402602001604051908101604052809291908181526020018280546128e8906143ec565b80156129355780601f1061290a57610100808354040283529160200191612935565b820191906000526020600020905b81548152906001019060200180831161291857829003601f168201915b505050919092525050508152602001600090526000858152600b6020908152604091829020835181546001600160a01b0319166001600160a01b03909116178155838201516001820155918301518051939450849361299a92600285019201906139d3565b50606082015180516129b69160038401916020909101906139d3565b50608082015180516129d29160048401916020909101906139d3565b5060a08201518051805160058401916129f0918391602001906139d3565b506020828101516001830180546001600160a01b0319166001600160a01b0390921691909117905560408301518051612a2f92600285019201906139d3565b50505060c082015160088201805460ff191660018381811115612a5457612a54613c5e565b02179055505060188054600181018255600091909152825160099091027fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e810180546001600160a01b039093166001600160a01b03199093169290921782556020808501517fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2f83015560408501518051869550612b18937fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d30019291909101906139d3565b5060608201518051612b349160038401916020909101906139d3565b5060808201518051612b509160048401916020909101906139d3565b5060a0820151805180516005840191612b6e918391602001906139d3565b506020828101516001830180546001600160a01b0319166001600160a01b0390921691909117905560408301518051612bad92600285019201906139d3565b50505060c082015160088201805460ff191660018381811115612bd257612bd2613c5e565b021790555050506001600160a01b038d166000908152600960209081526040822080546001810182559083529120018490558b518c9086908110612c1857612c18614619565b6020026020010151604051612c2d91906145d8565b6040518091039020848e6001600160a01b03167f3008cd1b07fb304ff3fd96dfc9c0b352dd13f3297e45341023a63e8dd89101ef8e8981518110612c7357612c73614619565b60200260200101518e8a81518110612c8d57612c8d614619565b6020026020010151604051612ca39291906145f4565b60405180910390a484600101945050505050612696565b5090979650505050505050565b604080516060808201835280825260006020830152918101919091526001600160a01b038216612d305760405162461bcd60e51b8152602060048201526014602482015273417274697374206973206164647265737328302960601b604482015260640161070c565b6001600160a01b03821660009081526007602052604090205460ff161515600114612d9d5760405162461bcd60e51b815260206004820152601b60248201527f476976656e2061646472657373206973206e6f74206172746973740000000000604482015260640161070c565b6001600160a01b0382166000908152600c602052604090819020815160608101909252805482908290612dcf906143ec565b80601f0160208091040260200160405190810160405280929190818152602001828054612dfb906143ec565b8015612e485780601f10612e1d57610100808354040283529160200191612e48565b820191906000526020600020905b815481529060010190602001808311612e2b57829003601f168201915b505050918352505060018201546001600160a01b03166020820152600282018054604090920191612e78906143ec565b80601f0160208091040260200160405190810160405280929190818152602001828054612ea4906143ec565b8015612ef15780601f10612ec657610100808354040283529160200191612ef1565b820191906000526020600020905b815481529060010190602001808311612ed457829003601f168201915b5050505050815250509050919050565b6000818152600260205260409020546001600160a01b0316610c645760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161070c565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612f9582610eb3565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080612fda83610eb3565b9050806001600160a01b0316846001600160a01b0316148061302157506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80611f765750836001600160a01b031661303a84610670565b6001600160a01b031614949350505050565b826001600160a01b031661305f82610eb3565b6001600160a01b0316146130c35760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161070c565b6001600160a01b0382166131255760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161070c565b613130600082612f60565b6001600160a01b03831660009081526003602052604081208054600192906131599084906144a3565b90915550506001600160a01b038216600090815260036020526040812080546001929061318790849061448b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6131f1816136ce565b6000818152600660205260409020805461320a906143ec565b159050610c64576000818152600660205260408120610c6491613acd565b606081516000141561324857505060408051602081019091526000815290565b60006040518060600160405280604081526020016147836040913990506000600384516002613277919061448b565b6132819190614674565b61328c906004614688565b67ffffffffffffffff8111156132a4576132a4613e3b565b6040519080825280601f01601f1916602001820160405280156132ce576020820181803683370190505b509050600182016020820185865187015b8082101561333a576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f81168501518453506001830192506132df565b5050600386510660018114613356576002811461336957613371565b603d6001830353603d6002830353613371565b603d60018303535b509195945050505050565b6001600160a01b0382166133d25760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161070c565b6000818152600260205260409020546001600160a01b0316156134375760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161070c565b6001600160a01b038216600090815260036020526040812080546001929061346090849061448b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000828152600260205260409020546001600160a01b03166135395760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b606482015260840161070c565b600082815260066020908152604090912082516107ad928401906139d3565b816001600160a01b0316836001600160a01b031614156135ba5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161070c565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61363284848461304c565b61363e84848484613769565b61253b5760405162461bcd60e51b815260040161070c906146a7565b606061366582612f01565b600061367c60408051602081019091526000815290565b9050600081511161369c57604051806020016040528060008152506136c7565b806136a684613864565b6040516020016136b792919061462f565b6040516020818303038152906040525b9392505050565b60006136d982610eb3565b90506136e6600083612f60565b6001600160a01b038116600090815260036020526040812080546001929061370f9084906144a3565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60006001600160a01b0384163b1561385c57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906137ad9033908990889088906004016146f9565b6020604051808303816000875af19250505080156137e8575060408051601f3d908101601f191682019092526137e591810190614736565b60015b613842573d808015613816576040519150601f19603f3d011682016040523d82523d6000602084013e61381b565b606091505b50805161383a5760405162461bcd60e51b815260040161070c906146a7565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611f76565b506001611f76565b6060816138885750506040805180820190915260018152600360fc1b602082015290565b8160005b81156138b2578061389c81614753565b91506138ab9050600a83614674565b915061388c565b60008167ffffffffffffffff8111156138cd576138cd613e3b565b6040519080825280601f01601f1916602001820160405280156138f7576020820181803683370190505b5090505b8415611f765761390c6001836144a3565b9150613919600a8661476e565b61392490603061448b565b60f81b81838151811061393957613939614619565b60200101906001600160f81b031916908160001a90535061395b600a86614674565b94506138fb565b6040518060e0016040528060006001600160a01b03168152602001600081526020016060815260200160608152602001606081526020016139c660405180606001604052806060815260200160006001600160a01b03168152602001606081525090565b815260200160005b905290565b8280546139df906143ec565b90600052602060002090601f016020900481019282613a015760008555613a47565b82601f10613a1a57805160ff1916838001178555613a47565b82800160010185558215613a47579182015b82811115613a47578251825591602001919060010190613a2c565b50613a53929150613b03565b5090565b6040518060c0016040528060608152602001606081526020016060815260200160608152602001613a9d6040518060400160405280606081526020016000151581525090565b81526020016139ce6040518060800160405280606081526020016060815260200160608152602001606081525090565b508054613ad9906143ec565b6000825580601f10613ae9575050565b601f016020900490600052602060002090810190610c6491905b5b80821115613a535760008155600101613b04565b6001600160e01b031981168114610c6457600080fd5b600060208284031215613b4057600080fd5b81356136c781613b18565b60005b83811015613b66578181015183820152602001613b4e565b8381111561253b5750506000910152565b60008151808452613b8f816020860160208601613b4b565b601f01601f19169290920160200192915050565b6020815260006136c76020830184613b77565b600060208284031215613bc857600080fd5b5035919050565b80356001600160a01b0381168114613be657600080fd5b919050565b60008060408385031215613bfe57600080fd5b613c0783613bcf565b946020939093013593505050565b6000815160608452613c2a6060850182613b77565b905060018060a01b03602084015116602085015260408301518482036040860152613c558282613b77565b95945050505050565b634e487b7160e01b600052602160045260246000fd5b60028110613c9257634e487b7160e01b600052602160045260246000fd5b9052565b6020815260018060a01b038251166020820152602082015160408201526000604083015160e06060840152613ccf610100840182613b77565b90506060840151601f1980858403016080860152613ced8383613b77565b925060808601519150808584030160a0860152613d0a8383613b77565b925060a08601519150808584030160c086015250613d288282613c15565b91505060c0840151613d3d60e0850182613c74565b509392505050565b600080600060608486031215613d5a57600080fd5b613d6384613bcf565b9250613d7160208501613bcf565b9150604084013590509250925092565b60008060408385031215613d9457600080fd5b50508035926020909101359150565b600060208284031215613db557600080fd5b6136c782613bcf565b60018060a01b038816815286602082015260e060408201526000613de560e0830188613b77565b8281036060840152613df78188613b77565b90508281036080840152613e0b8187613b77565b905082810360a0840152613e1f8186613c15565b915050613e2f60c0830184613c74565b98975050505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715613e7a57613e7a613e3b565b604052919050565b600067ffffffffffffffff831115613e9c57613e9c613e3b565b613eaf601f8401601f1916602001613e51565b9050828152838383011115613ec357600080fd5b828260208301376000602084830101529392505050565b600082601f830112613eeb57600080fd5b6136c783833560208501613e82565b600080600080600060a08688031215613f1257600080fd5b613f1b86613bcf565b9450602086013567ffffffffffffffff80821115613f3857600080fd5b613f4489838a01613eda565b95506040880135915080821115613f5a57600080fd5b613f6689838a01613eda565b94506060880135915080821115613f7c57600080fd5b613f8889838a01613eda565b93506080880135915080821115613f9e57600080fd5b50613fab88828901613eda565b9150509295509295909350565b60008060408385031215613fcb57600080fd5b613fd483613bcf565b915060208301358015158114613fe957600080fd5b809150509250929050565b600082601f83011261400557600080fd5b8135602067ffffffffffffffff8083111561402257614022613e3b565b8260051b614031838201613e51565b938452858101830193838101908886111561404b57600080fd5b84880192505b85831015613e2f578235848111156140695760008081fd5b6140778a87838c0101613eda565b8352509184019190840190614051565b6000806000806080858703121561409d57600080fd5b843567ffffffffffffffff808211156140b557600080fd5b6140c188838901613ff4565b955060208701359150808211156140d757600080fd5b6140e388838901613ff4565b945060408701359150808211156140f957600080fd5b61410588838901613ff4565b9350606087013591508082111561411b57600080fd5b5061412887828801613eda565b91505092959194509250565b6020808252825182820181905260009190848201906040850190845b8181101561416c57835183529284019291840191600101614150565b50909695505050505050565b600081516080845261418d6080850182613b77565b9050602083015184820360208601526141a68282613b77565b915050604083015184820360408601526141c08282613b77565b91505060608301518482036060860152613c558282613b77565b602081526000825160c060208401526141f660e0840182613b77565b90506020840151601f19808584030160408601526142148383613b77565b925060408601519150808584030160608601526142318383613b77565b9250606086015191508085840301608086015261424e8383613b77565b925060808601519150808584030160a08601528151604084526142746040850182613b77565b905060208301511515602085015260a08701519350818682030160c087015261429d8185614178565b979650505050505050565b600080600080608085870312156142be57600080fd5b6142c785613bcf565b93506142d560208601613bcf565b925060408501359150606085013567ffffffffffffffff8111156142f857600080fd5b8501601f8101871361430957600080fd5b61412887823560208401613e82565b600080600080600060a0868803121561433057600080fd5b61433986613bcf565b9450602086013567ffffffffffffffff8082111561435657600080fd5b61436289838a01613ff4565b9550604088013591508082111561437857600080fd5b61438489838a01613ff4565b9450606088013591508082111561439a57600080fd5b613f8889838a01613ff4565b600080604083850312156143b957600080fd5b6143c283613bcf565b91506143d060208401613bcf565b90509250929050565b6020815260006136c76020830184613c15565b600181811c9082168061440057607f821691505b6020821081141561442157634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b6000821982111561449e5761449e614475565b500190565b6000828210156144b5576144b5614475565b500390565b6a3d913a34ba3632911d101160a91b815284516000906144e181600b850160208a01613b4b565b72111610113232b9b1b934b83a34b7b7111d101160691b600b91840191820152855161451481601e840160208a01613b4b565b6c1116101134b6b0b3b2911d101160991b601e9290910191820152845161454281602b840160208901613b4b565b721116101130b93a34b9ba103730b6b2911d101160691b602b9290910191820152835161457681603e840160208801613b4b565b61227d60f01b603e92909101918201526040019695505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152600082516145cb81601d850160208701613b4b565b91909101601d0192915050565b600082516145ea818460208701613b4b565b9190910192915050565b6040815260006146076040830185613b77565b8281036020840152613c558185613b77565b634e487b7160e01b600052603260045260246000fd5b60008351614641818460208801613b4b565b835190830190614655818360208801613b4b565b01949350505050565b634e487b7160e01b600052601260045260246000fd5b6000826146835761468361465e565b500490565b60008160001904831182151516156146a2576146a2614475565b500290565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061472c90830184613b77565b9695505050505050565b60006020828403121561474857600080fd5b81516136c781613b18565b600060001982141561476757614767614475565b5060010190565b60008261477d5761477d61465e565b50069056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212208a1ff1274616bdcba4cc7a92e595438ad7ef9ed5bec259a902ee3349ce461fa464736f6c634300080a0033a26469706673582212205bd6f14b14801316eb547e30bf86dff2f348eac8d4a45b1f6711bba1809c106d64736f6c634300080a0033

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading