ETH Price: $2,917.58 (+3.48%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x60806040152750472022-08-04 9:18:02827 days ago1659604682IN
 Create: Upgrade
0 ETH0.1061337326.61182498

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Upgrade

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 18 : FirstNFT.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.4;

import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721EnumerableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";

contract Upgrade is Initializable , ERC721Upgradeable, ERC721EnumerableUpgradeable, OwnableUpgradeable, AccessControlUpgradeable {
    string internal notRevealedURI ;
    string internal rarityURI;
    string internal revealedURI;
    bytes32 private freeMintMerkleRoot;
    bytes32 private presaleMerkleRoot;

    uint256 public mintCost;
    uint256 public presaleCost;
    uint256 internal balanceMD;
    uint256 internal balanceBMD;
    uint256 internal paymentMintMD;
    uint256 internal paymentPresaleMD;
    uint32 public maxPerMint;
    string internal nftName;

    enum MintPeriod{ FREE, PRESALE, PUBLIC }
    uint32 public maxSupply;
    bool internal lockMD;
    bool internal lockBMD;

    mapping(address => bool) internal addressMintedMap;
    mapping(address => bool) internal addressMintedInFreeMintMap;
    mapping(address => bool) internal addressMintedInPresaleMap;
    mapping(uint256 => bool) internal revealTokenIdMap;

    // all time in GMT
    uint32 public freeMintStartTime;
    uint32 public freeMintEndTime;
    uint32 public presaleStartTime;
    uint32 public presaleEndTime;
    uint32 public publicSaleStartTime;
    uint32 public publicSaleEndTime;
    uint32 public showRarityTime;
    uint32 public revealTime;
    uint32 public allRevealTime;

    bytes32 public constant BENEFICIARY_ROLE = keccak256("BENEFICIARY");
    bytes32 public constant MD_ROLE = keccak256("MD");
    bytes32 public constant OPERATOR_ROLE = keccak256("OPERATOR");

    event MintEvent(address indexed buyerAddress, string ref,string status,string item,uint256 price,uint32 quantity, uint256 tokenId, string ipfs); 


    function initialize(address _admin, address _beneficiary, address _md, string memory _name, string memory _symbol) public initializer {
        __ERC721_init(_name, _symbol);
        __Ownable_init();
        __AccessControl_init();
        __ERC721Enumerable_init();
        _setupRole(DEFAULT_ADMIN_ROLE, _admin);
        _setupRole(BENEFICIARY_ROLE, _beneficiary);
        _setupRole(MD_ROLE, _md);
        _setRoleAdmin(OPERATOR_ROLE, DEFAULT_ADMIN_ROLE);
        nftName = _name;

        notRevealedURI = "ipfs://bafybeigye77uw5porgatddhr5fn4vhbucpgos7tgepniruqa4hwfjz4fje/";
        rarityURI = "ipfs://bafybeigzvcwlnsq7lkt64jg7pf7lp55v3bp5ezkl7unlvxdlqfvcw6f5ou/";
        revealedURI = "ipfs://bafybeifvjm42eeudihmvxobh5qsib3l5lval6u5hhk6bwsvhm5wh6bm73a/";
        freeMintMerkleRoot = 
            0xc929a9041c1b56b58ba3c8c7bf2502d66c54e8206085a1892fe3c58518b3387c;
        presaleMerkleRoot =
            0x9ed9f01a6617358dcc2c8e558f1289a2a325dcac07a0054a6e6b713e67e75aba;

        mintCost = 0.1 ether;
        presaleCost = 0.08 ether;
        paymentMintMD = mintCost * 19/20;
        paymentPresaleMD = presaleCost * 19/20;
        maxPerMint = 1;
    
        maxSupply = 3888;
        lockMD = false;
        lockBMD = false;
    
    
        // all time in GMT
        freeMintStartTime = 1658581200;
        freeMintEndTime = 1658667600;
        presaleStartTime = 1658581200;
        presaleEndTime = 1658667600;
        publicSaleStartTime = 1659013200;
        publicSaleEndTime = 1659186000;
        showRarityTime = 1659445200;
        revealTime = 1659618000;
        allRevealTime = 1659704400;
    }
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721EnumerableUpgradeable, ERC721Upgradeable, AccessControlUpgradeable) returns (bool) {
        return super.supportsInterface(interfaceId);
    }


    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal override(ERC721EnumerableUpgradeable, ERC721Upgradeable) {
        super._beforeTokenTransfer(from, to, tokenId);
    }

    function isFreeMintPeriod() public view returns (bool) {
        uint256 currentTime = block.timestamp;
        if (currentTime > freeMintStartTime && currentTime < freeMintEndTime) {
            return true;
        }

        return false;
    }

    function isPresalePeriod() public view returns (bool) {
        uint256 currentTime = block.timestamp;
        if (currentTime > presaleStartTime && currentTime < presaleEndTime) {
            return true;
        }

        return false;
    }

    function isPublicSalePeriod() public view returns (bool) {
        uint256 currentTime = block.timestamp;
        if (
            currentTime > publicSaleStartTime && currentTime < publicSaleEndTime
        ) {
            return true;
        }

        return false;
    }

    function isRevealed(uint256 tokenId) public view returns (bool){
        if(revealTokenIdMap[tokenId] == true){
            return true;
        }
        return false;
    }

    // ------ Operator Only ------

    function setFreeMintMerkleRoot(bytes32 _root)
        public
        onlyRole(OPERATOR_ROLE)
    {
        freeMintMerkleRoot = _root;
    }

    function setPresaleMerkleRoot(bytes32 _root)
        public
        onlyRole(OPERATOR_ROLE)
    {
        presaleMerkleRoot = _root;
    }

    function setMintCost(uint256 _cost) public onlyRole(OPERATOR_ROLE) {
        mintCost = _cost;
    }

    function setPresaleCost(uint256 _cost) public onlyRole(OPERATOR_ROLE) {
        presaleCost = _cost;
    }

    function setMaxPerMint(uint32 _max) public onlyRole(OPERATOR_ROLE) {
        maxPerMint = _max;
    }

    function setFreeMintStartTime(uint32 _time) public onlyRole(OPERATOR_ROLE) {
        freeMintStartTime = _time;
    }

    function setFreeMintEndTime(uint32 _time) public onlyRole(OPERATOR_ROLE) {
        freeMintEndTime = _time;
    }

    function setPresaleStartTime(uint32 _time) public onlyRole(OPERATOR_ROLE) {
        presaleStartTime = _time;
    }

    function setPresaleEndTime(uint32 _time) public onlyRole(OPERATOR_ROLE) {
        presaleEndTime = _time;
    }

    function setPublicSaleStartTime(uint32 _time)
        public
        onlyRole(OPERATOR_ROLE)
    {
        publicSaleStartTime = _time;
    }

    function setPublicSaleEndTime(uint32 _time) public onlyRole(OPERATOR_ROLE) {
        publicSaleEndTime = _time;
    }

    function setShowRarityTime(uint32 _time) public onlyRole(OPERATOR_ROLE) {
        showRarityTime = _time;
    }

    function setRevealTime(uint32 _time) public onlyRole(OPERATOR_ROLE) {
        revealTime = _time;
    }

    function setAllRevealTime(uint32 _time) public onlyRole(OPERATOR_ROLE) {
        allRevealTime = _time;
    }

    function setNotRevealedURI(string memory _notRevealedURI)
        public
        onlyRole(OPERATOR_ROLE)
    {
        notRevealedURI = _notRevealedURI;
    }

    function setRarityURI(string memory _rarityURI)
        public
        onlyRole(OPERATOR_ROLE)
    {
        rarityURI = _rarityURI;
    }

    function setRevealedURI(string memory _revealedURI)
        public
        onlyRole(OPERATOR_ROLE)
    {
        revealedURI = _revealedURI;
    }

    function revealNFT(uint256 _tokenId) public{
        revealTokenIdMap[_tokenId] = true;
    }

    // ------ Beneficiary Only ------

    function withdrawMD() public payable onlyRole(MD_ROLE) {
        require(!lockMD);
        lockMD = true;
        uint256 tempBalance = balanceMD;
        require(tempBalance > 0, "No eth balance");
        (bool success, ) = payable(_msgSender()).call{
            value: tempBalance
        }("");
        require(success);
        balanceMD -= tempBalance;
        lockMD = false;
    }

     function withdrawBMD() public payable onlyRole(BENEFICIARY_ROLE) {
        require(!lockBMD);
        lockBMD = true;
        uint256 tempBalance = balanceBMD;
        require(tempBalance > 0, "No eth balance");
        (bool success, ) = payable(_msgSender()).call{
            value: tempBalance
        }("");
        require(success);
        balanceBMD -= tempBalance;
        lockBMD = false;
    }

    

    // ------ Mint ------

    function freeMint(uint32 count, bytes32[] calldata proof)
        external
        payable
        preMintChecks(count, MintPeriod.FREE)
    {
        if (isFreeMintPeriod()) {
            require(freeMintMerkleRoot != "", "Free mint not ready");
            require(
                MerkleProof.verify(
                    proof,
                    freeMintMerkleRoot,
                    keccak256(abi.encodePacked(_msgSender()))
                ),
                "Not a free mint member"
            );
            require(
                addressMintedInFreeMintMap[_msgSender()] == false,
                "Already minted"
            );
        } else {
            revert("Free mint not opened");
        }

        performMint(count);

        addressMintedInFreeMintMap[_msgSender()] = true;
    }

    function presaleMint(uint32 count, bytes32[] calldata proof)
        external
        payable
        preMintChecks(count, MintPeriod.PRESALE)
    {
        if (isPresalePeriod()) {
            require(presaleMerkleRoot != "", "Presale not ready");
            require(
                MerkleProof.verify(
                    proof,
                    presaleMerkleRoot,
                    keccak256(abi.encodePacked(_msgSender()))
                ),
                "Not a presale member"
            );
            require(
                addressMintedInPresaleMap[_msgSender()] == false,
                "Already minted"
            );
        } else {
            revert("Presale not opened");
        }

        performMint(count);
        balanceMD += paymentPresaleMD * count;
        balanceBMD += (presaleCost-paymentPresaleMD) * count;

        addressMintedInPresaleMap[_msgSender()] = true;
    }

    function mint(uint32 count, string memory referralCode) public payable preMintChecks(count, MintPeriod.PUBLIC) {
        //        require(open == true, "Mint not open");
        if (isPublicSalePeriod()) {
            require(addressMintedMap[_msgSender()] == false, "Already minted");
        } else {
            revert("Not opened");
        }

        performMint(count);

        balanceMD += paymentMintMD * count;
        balanceBMD += (mintCost-paymentMintMD) * count;
        
        addressMintedMap[_msgSender()] = true;
        emit MintEvent(_msgSender(), referralCode ,"P", nftName , mintCost*count, count , totalSupply(), tokenURI(totalSupply()));
    }

    function mint(uint32 count) public payable preMintChecks(count, MintPeriod.PUBLIC) {
        mint(count, "");
    }

    function performMint(uint32 count) internal {
        uint256 supply = totalSupply();

        for (uint32 i = 0; i < count; i++) {
            _safeMint(_msgSender(), ++supply, "");
        }
    }

    // ------ Read ------
    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override(ERC721Upgradeable)
        returns (string memory)
    {
        require(_exists(tokenId), "Nonexistent token");

        uint256 currentTime = block.timestamp;
        string memory targetURI;
        if (currentTime < showRarityTime) {
            targetURI = string(abi.encodePacked(notRevealedURI,Strings.toString(tokenId),".json"));
        } else if (currentTime < revealTime) {
            targetURI = string(abi.encodePacked(rarityURI,Strings.toString(tokenId),".json"));
        } else if(currentTime < allRevealTime){
            if(isRevealed(tokenId)){
                targetURI = string(abi.encodePacked(revealedURI,Strings.toString(tokenId),".json"));
            } else {
                targetURI = string(abi.encodePacked(rarityURI,Strings.toString(tokenId),".json"));
            }
        } else {
            targetURI = string(abi.encodePacked(revealedURI,Strings.toString(tokenId),".json"));
        }

        return
            bytes(targetURI).length > 0
                ? targetURI
                : "";
    }

    // ------ Modifiers ------

    modifier preMintChecks(uint32 count, MintPeriod period) {
        uint256 supply = totalSupply();

        require(count > 0, "Mint at least one.");
        require(count < maxPerMint + 1, "Max mint reached.");
        if(period != MintPeriod.FREE){
            if(period == MintPeriod.PUBLIC){
                require(msg.value >= mintCost * count, "Not enough fund.");
            } else {
                require(msg.value >= presaleCost * count, "Not enough fund.");
            }         
        }     
        require(supply + count < maxSupply + 1, "Mint sold out");
        _;
    }
}

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

pragma solidity ^0.8.0;

import "../ERC721Upgradeable.sol";
import "./IERC721EnumerableUpgradeable.sol";
import "../../../proxy/utils/Initializable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721EnumerableUpgradeable is Initializable, ERC721Upgradeable, IERC721EnumerableUpgradeable {
    function __ERC721Enumerable_init() internal onlyInitializing {
    }

    function __ERC721Enumerable_init_unchained() internal onlyInitializing {
    }
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC721Upgradeable.sol";
import "./IERC721ReceiverUpgradeable.sol";
import "./extensions/IERC721MetadataUpgradeable.sol";
import "../../utils/AddressUpgradeable.sol";
import "../../utils/ContextUpgradeable.sol";
import "../../utils/StringsUpgradeable.sol";
import "../../utils/introspection/ERC165Upgradeable.sol";
import "../../proxy/utils/Initializable.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 ERC721Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC721Upgradeable, IERC721MetadataUpgradeable {
    using AddressUpgradeable for address;
    using StringsUpgradeable 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.
     */
    function __ERC721_init(string memory name_, string memory symbol_) internal onlyInitializing {
        __ERC721_init_unchained(name_, symbol_);
    }

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

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

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

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

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

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

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

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

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be 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 = ERC721Upgradeable.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721Upgradeable.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 = ERC721Upgradeable.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(ERC721Upgradeable.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 a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721Upgradeable.ownerOf(tokenId), to, tokenId);
    }

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

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

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

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

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

File 4 of 18 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

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

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 5 of 18 : OwnableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.sol";

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

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

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

    function __Ownable_init_unchained() internal onlyInitializing {
        _transferOwnership(_msgSender());
    }

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

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

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

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

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

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

File 6 of 18 : AccessControlUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControlUpgradeable.sol";
import "../utils/ContextUpgradeable.sol";
import "../utils/StringsUpgradeable.sol";
import "../utils/introspection/ERC165Upgradeable.sol";
import "../proxy/utils/Initializable.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControlUpgradeable is Initializable, ContextUpgradeable, IAccessControlUpgradeable, ERC165Upgradeable {
    function __AccessControl_init() internal onlyInitializing {
    }

    function __AccessControl_init_unchained() internal onlyInitializing {
    }
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        StringsUpgradeable.toHexString(uint160(account), 20),
                        " is missing role ",
                        StringsUpgradeable.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 8 of 18 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.2;

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

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

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

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

    /**
     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
     * `onlyInitializing` functions can be used to initialize parent contracts. Equivalent to `reinitializer(1)`.
     */
    modifier initializer() {
        bool isTopLevelCall = _setInitializedVersion(1);
        if (isTopLevelCall) {
            _initializing = true;
        }
        _;
        if (isTopLevelCall) {
            _initializing = false;
            emit Initialized(1);
        }
    }

    /**
     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
     * used to initialize parent contracts.
     *
     * `initializer` is equivalent to `reinitializer(1)`, so a reinitializer may be used after the original
     * initialization step. This is essential to configure modules that are added through upgrades and that require
     * initialization.
     *
     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
     * a contract, executing them in the right order is up to the developer or operator.
     */
    modifier reinitializer(uint8 version) {
        bool isTopLevelCall = _setInitializedVersion(version);
        if (isTopLevelCall) {
            _initializing = true;
        }
        _;
        if (isTopLevelCall) {
            _initializing = false;
            emit Initialized(version);
        }
    }

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

    /**
     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called
     * through proxies.
     */
    function _disableInitializers() internal virtual {
        _setInitializedVersion(type(uint8).max);
    }

    function _setInitializedVersion(uint8 version) private returns (bool) {
        // If the contract is initializing we ignore whether _initialized is set in order to support multiple
        // inheritance patterns, but we only do this in the context of a constructor, and for the lowest level
        // of initializers, because in other contexts the contract may have been reentered.
        if (_initializing) {
            require(
                version == 1 && !AddressUpgradeable.isContract(address(this)),
                "Initializable: contract is already initialized"
            );
            return false;
        } else {
            require(_initialized < version, "Initializable: contract is already initialized");
            _initialized = version;
            return true;
        }
    }
}

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

pragma solidity ^0.8.0;

import "../IERC721Upgradeable.sol";

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

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

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

File 10 of 18 : IERC721Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721Upgradeable.sol";

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

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

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

File 13 of 18 : AddressUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return 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 Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

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

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

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

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

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

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

File 15 of 18 : StringsUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165Upgradeable.sol";
import "../../proxy/utils/Initializable.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

File 18 of 18 : IAccessControlUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControlUpgradeable {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

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

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"buyerAddress","type":"address"},{"indexed":false,"internalType":"string","name":"ref","type":"string"},{"indexed":false,"internalType":"string","name":"status","type":"string"},{"indexed":false,"internalType":"string","name":"item","type":"string"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"uint32","name":"quantity","type":"uint32"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"ipfs","type":"string"}],"name":"MintEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"BENEFICIARY_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MD_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allRevealTime","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"count","type":"uint32"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"freeMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"freeMintEndTime","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeMintStartTime","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"},{"internalType":"address","name":"_beneficiary","type":"address"},{"internalType":"address","name":"_md","type":"address"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isFreeMintPeriod","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPresalePeriod","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicSalePeriod","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerMint","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"count","type":"uint32"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint32","name":"count","type":"uint32"},{"internalType":"string","name":"referralCode","type":"string"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleEndTime","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"count","type":"uint32"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"presaleStartTime","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleEndTime","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleStartTime","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"revealNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealTime","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_time","type":"uint32"}],"name":"setAllRevealTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_time","type":"uint32"}],"name":"setFreeMintEndTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setFreeMintMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_time","type":"uint32"}],"name":"setFreeMintStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_max","type":"uint32"}],"name":"setMaxPerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cost","type":"uint256"}],"name":"setMintCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_notRevealedURI","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cost","type":"uint256"}],"name":"setPresaleCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_time","type":"uint32"}],"name":"setPresaleEndTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setPresaleMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_time","type":"uint32"}],"name":"setPresaleStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_time","type":"uint32"}],"name":"setPublicSaleEndTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_time","type":"uint32"}],"name":"setPublicSaleStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_rarityURI","type":"string"}],"name":"setRarityURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_time","type":"uint32"}],"name":"setRevealTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_revealedURI","type":"string"}],"name":"setRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_time","type":"uint32"}],"name":"setShowRarityTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"showRarityTime","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawBMD","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdrawMD","outputs":[],"stateMutability":"payable","type":"function"}]

608060405234801561001057600080fd5b5061472f806100206000396000f3fe6080604052600436106104055760003560e01c80638759c6c311610213578063c529c7b811610123578063e985e9c5116100ab578063f4d176591161007a578063f4d1765914610c61578063f5b541a614610c81578063f6f6c41f14610ca3578063f70dbb7714610cb6578063f8048d8f14610ccb57600080fd5b8063e985e9c514610bba578063f2a24d4d14610c03578063f2c4ce1e14610c21578063f2fde38b14610c4157600080fd5b8063d547741f116100f2578063d547741f14610b05578063d5608f9a14610b25578063d5abeb0114610b5c578063dde44b8914610b7a578063e906225114610b9a57600080fd5b8063c529c7b814610a71578063c87b56dd14610a91578063cafc790014610ab1578063ced3a40314610ad157600080fd5b8063a22cb465116101a6578063b602ae6611610175578063b602ae66146109e2578063b7c754da14610a02578063b88d4fde14610a15578063ba829d7114610a35578063bdb4b84814610a5a57600080fd5b8063a22cb46514610982578063a71bbebe146109a2578063a82524b2146109b5578063b1356b87146109da57600080fd5b806390c6f7d4116101e257806390c6f7d41461091857806391d148541461093857806395d89b4114610958578063a217fddf1461096d57600080fd5b80638759c6c31461089e5780638a3a6419146108d25780638da5cb5b146108da5780638fdcf942146108f857600080fd5b8063326d43881161031957806352b578e7116102a157806370a082311161027057806370a0823114610809578063715018a61461082957806375d2ce1c1461083e57806383b435891461085e5780638545f4ea1461087e57600080fd5b806352b578e71461078f5780635fd84c28146107a45780636352211e146107c45780636bb7b1d9146107e457600080fd5b80634a90604c116102e85780634a90604c146106eb5780634b5befd8146107115780634f6ccce7146107315780635055fbc314610751578063507e094f1461077157600080fd5b8063326d43881461066d578063326e51511461068d57806336568abe146106ab57806342842e0e146106cb57600080fd5b80631c00da441161039c578063249b7c191161036b578063249b7c19146105d157806328d7b276146105f65780632a23d07d146106165780632f2ff15d1461062d5780632f745c591461064d57600080fd5b80631c00da44146105225780631e4d185f1461055c57806323b872dd14610581578063248a9ca3146105a157600080fd5b8063081812fc116103d8578063081812fc14610496578063095ea7b3146104ce5780631538d7d2146104ee57806318160ddd1461050357600080fd5b806301ffc9a71461040a5780630364d22a1461043f5780630662069d1461045457806306fdde0314610474575b600080fd5b34801561041657600080fd5b5061042a610425366004613ea1565b610ceb565b60405190151581526020015b60405180910390f35b61045261044d366004613f26565b610cfc565b005b34801561046057600080fd5b5061045261046f366004613f0c565b6110b1565b34801561048057600080fd5b506104896110f1565b6040516104369190614161565b3480156104a257600080fd5b506104b66104b1366004613e67565b611183565b6040516001600160a01b039091168152602001610436565b3480156104da57600080fd5b506104526104e9366004613e3e565b611218565b3480156104fa57600080fd5b5061042a61132e565b34801561050f57600080fd5b506099545b604051908152602001610436565b34801561052e57600080fd5b5061013f5461054790600160c01b900463ffffffff1681565b60405163ffffffff9091168152602001610436565b34801561056857600080fd5b5061013f5461054790600160a01b900463ffffffff1681565b34801561058d57600080fd5b5061045261059c366004613d50565b611376565b3480156105ad57600080fd5b506105146105bc366004613e67565b600090815260fb602052604090206001015490565b3480156105dd57600080fd5b5061013f5461054790600160601b900463ffffffff1681565b34801561060257600080fd5b50610452610611366004613e67565b6113a7565b34801561062257600080fd5b506105146101335481565b34801561063957600080fd5b50610452610648366004613e7f565b6113c6565b34801561065957600080fd5b50610514610668366004613e3e565b6113eb565b34801561067957600080fd5b50610452610688366004613ed9565b611481565b34801561069957600080fd5b5061013f546105479063ffffffff1681565b3480156106b757600080fd5b506104526106c6366004613e7f565b6114ad565b3480156106d757600080fd5b506104526106e6366004613d50565b61152b565b3480156106f757600080fd5b5061013f5461054790640100000000900463ffffffff1681565b34801561071d57600080fd5b5061045261072c366004613f0c565b611546565b34801561073d57600080fd5b5061051461074c366004613e67565b61157c565b34801561075d57600080fd5b5061042a61076c366004613e67565b61161d565b34801561077d57600080fd5b50610138546105479063ffffffff1681565b34801561079b57600080fd5b5061042a61164a565b3480156107b057600080fd5b506104526107bf366004613f0c565b611683565b3480156107d057600080fd5b506104b66107df366004613e67565b6116c3565b3480156107f057600080fd5b5061013f5461054790600160801b900463ffffffff1681565b34801561081557600080fd5b50610514610824366004613c71565b61173a565b34801561083557600080fd5b506104526117c1565b34801561084a57600080fd5b50610452610859366004613f0c565b611827565b34801561086a57600080fd5b50610452610879366004613cbd565b61185d565b34801561088a57600080fd5b50610452610899366004613e67565b611b0a565b3480156108aa57600080fd5b506105147ff09deea8c87a61bf851df60f5410fb720e514d253185419bf9616e36a35063c981565b610452611b29565b3480156108e657600080fd5b5060c9546001600160a01b03166104b6565b34801561090457600080fd5b50610452610913366004613e67565b611c45565b34801561092457600080fd5b50610452610933366004613f0c565b611c64565b34801561094457600080fd5b5061042a610953366004613e7f565b611ca6565b34801561096457600080fd5b50610489611cd1565b34801561097957600080fd5b50610514600081565b34801561098e57600080fd5b5061045261099d366004613e04565b611ce0565b6104526109b0366004613f0c565b611ceb565b3480156109c157600080fd5b5061013f5461054790600160401b900463ffffffff1681565b610452611e85565b3480156109ee57600080fd5b506104526109fd366004613f0c565b611fa5565b610452610a10366004613fa7565b611fea565b348015610a2157600080fd5b50610452610a30366004613d8b565b6122db565b348015610a4157600080fd5b5061013f5461054790600160e01b900463ffffffff1681565b348015610a6657600080fd5b506105146101325481565b348015610a7d57600080fd5b50610452610a8c366004613f0c565b61230d565b348015610a9d57600080fd5b50610489610aac366004613e67565b61234d565b348015610abd57600080fd5b50610452610acc366004613f0c565b6124aa565b348015610add57600080fd5b506105147f8cadce1490c0b220d05eff2ad7498d2416b857f86be59313862f4e1459aa9cfc81565b348015610b1157600080fd5b50610452610b20366004613e7f565b6124ea565b348015610b3157600080fd5b50610452610b40366004613e67565b600090815261013e60205260409020805460ff19166001179055565b348015610b6857600080fd5b5061013a546105479063ffffffff1681565b348015610b8657600080fd5b50610452610b95366004613e67565b61250f565b348015610ba657600080fd5b50610452610bb5366004613ed9565b61252e565b348015610bc657600080fd5b5061042a610bd5366004613c8b565b6001600160a01b039182166000908152606a6020908152604080832093909416825291909152205460ff1690565b348015610c0f57600080fd5b50610140546105479063ffffffff1681565b348015610c2d57600080fd5b50610452610c3c366004613ed9565b61255a565b348015610c4d57600080fd5b50610452610c5c366004613c71565b612586565b348015610c6d57600080fd5b50610452610c7c366004613f0c565b612651565b348015610c8d57600080fd5b5061051460008051602061461183398151915281565b610452610cb1366004613f26565b612690565b348015610cc257600080fd5b5061042a61296f565b348015610cd757600080fd5b50610452610ce6366004613f0c565b6129ae565b6000610cf6826129e4565b92915050565b8260016000610d0a60995490565b905060008363ffffffff1611610d3b5760405162461bcd60e51b8152600401610d3290614431565b60405180910390fd5b61013854610d509063ffffffff166001614475565b63ffffffff168363ffffffff1610610d7a5760405162461bcd60e51b8152600401610d3290614406565b6000826002811115610d9c57634e487b7160e01b600052602160045260246000fd5b14610e36576002826002811115610dc357634e487b7160e01b600052602160045260246000fd5b1415610e02578263ffffffff1661013254610dde91906144b1565b341015610dfd5760405162461bcd60e51b8152600401610d32906143dc565b610e36565b8263ffffffff1661013354610e1791906144b1565b341015610e365760405162461bcd60e51b8152600401610d32906143dc565b61013a54610e4b9063ffffffff166001614475565b63ffffffff168363ffffffff1682610e63919061445d565b10610e805760405162461bcd60e51b8152600401610d3290614319565b610e8861296f565b15610fcb5761013154610ed15760405162461bcd60e51b815260206004820152601160248201527050726573616c65206e6f7420726561647960781b6044820152606401610d32565b610f52858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506101315491503390505b604051602001610f37919060609190911b6bffffffffffffffffffffffff1916815260140190565b60405160208183030381529060405280519060200120612a09565b610f955760405162461bcd60e51b81526020600482015260146024820152732737ba103090383932b9b0b6329036b2b6b132b960611b6044820152606401610d32565b33600090815261013d602052604090205460ff1615610fc65760405162461bcd60e51b8152600401610d3290614251565b611008565b60405162461bcd60e51b8152602060048201526012602482015271141c995cd85b19481b9bdd081bdc195b995960721b6044820152606401610d32565b61101186612a1f565b8563ffffffff166101375461102691906144b1565b6101346000828254611038919061445d565b9091555050610137546101335463ffffffff881691611056916144d0565b61106091906144b1565b6101356000828254611072919061445d565b909155506001905061013d6000335b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055505050505050565b6000805160206146118339815191526110c981612a7a565b5061013f805463ffffffff909216600160a01b0263ffffffff60a01b19909216919091179055565b6060606580546111009061452a565b80601f016020809104026020016040519081016040528092919081815260200182805461112c9061452a565b80156111795780601f1061114e57610100808354040283529160200191611179565b820191906000526020600020905b81548152906001019060200180831161115c57829003601f168201915b5050505050905090565b6000818152606760205260408120546001600160a01b03166111fc5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610d32565b506000908152606960205260409020546001600160a01b031690565b6000611223826116c3565b9050806001600160a01b0316836001600160a01b031614156112915760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610d32565b336001600160a01b03821614806112ad57506112ad8133610bd5565b61131f5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610d32565b6113298383612a84565b505050565b61013f546000904290600160801b900463ffffffff1681118015611361575061013f54600160a01b900463ffffffff1681105b1561136e57600191505090565b600091505090565b6113803382612af2565b61139c5760405162461bcd60e51b8152600401610d3290614340565b611329838383612be8565b6000805160206146118339815191526113bf81612a7a565b5061013155565b600082815260fb60205260409020600101546113e181612a7a565b6113298383612d8f565b60006113f68361173a565b82106114585760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610d32565b506001600160a01b03919091166000908152609760209081526040808320938352929052205490565b60008051602061461183398151915261149981612a7a565b81516113299061012f906020850190613b18565b6001600160a01b038116331461151d5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610d32565b6115278282612e15565b5050565b611329838383604051806020016040528060008152506122db565b60008051602061461183398151915261155e81612a7a565b5061013f805463ffffffff191663ffffffff92909216919091179055565b600061158760995490565b82106115ea5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610d32565b6099828154811061160b57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b600081815261013e602052604081205460ff1615156001141561164257506001919050565b506000919050565b61013f54600090429063ffffffff1681118015611361575061013f54640100000000900463ffffffff1681101561136e57600191505090565b60008051602061461183398151915261169b81612a7a565b5061013f805463ffffffff909216600160801b0263ffffffff60801b19909216919091179055565b6000818152606760205260408120546001600160a01b031680610cf65760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610d32565b60006001600160a01b0382166117a55760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610d32565b506001600160a01b031660009081526068602052604090205490565b60c9546001600160a01b0316331461181b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d32565b6118256000612e7c565b565b60008051602061461183398151915261183f81612a7a565b50610140805463ffffffff191663ffffffff92909216919091179055565b60006118696001612ece565b90508015611881576000805461ff0019166101001790555b61188b8383612f53565b611893612f84565b61189b612fb3565b6118a3612fb3565b6118ae600087612fda565b6118d87f8cadce1490c0b220d05eff2ad7498d2416b857f86be59313862f4e1459aa9cfc86612fda565b6119027ff09deea8c87a61bf851df60f5410fb720e514d253185419bf9616e36a35063c985612fda565b61191b6000805160206146118339815191526000612fe4565b825161192f90610139906020860190613b18565b5060405180608001604052806043815260200161467460439139805161195e9161012d91602090910190613b18565b5060405180608001604052806043815260200161463160439139805161198d9161012e91602090910190613b18565b506040518060800160405280604381526020016146b76043913980516119bc9161012f91602090910190613b18565b507fc929a9041c1b56b58ba3c8c7bf2502d66c54e8206085a1892fe3c58518b3387c610130557f9ed9f01a6617358dcc2c8e558f1289a2a325dcac07a0054a6e6b713e67e75aba6101315567016345785d8a000061013281905567011c37937e08000061013355601490611a319060136144b1565b611a3b919061449d565b6101365561013354601490611a519060136144b1565b611a5b919061449d565b61013755610138805463ffffffff1990811660011790915561013a805465ffffffffffff1916610f301790557f62ebc2d062e91fd062e52b5062e2885062dd425062dbf0d062dd425062dbf0d061013f5561014080549091166362ed14501790558015611b02576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050505050565b600080516020614611833981519152611b2281612a7a565b5061013255565b7ff09deea8c87a61bf851df60f5410fb720e514d253185419bf9616e36a35063c9611b5381612a7a565b61013a54640100000000900460ff1615611b6c57600080fd5b61013a805464ff0000000019166401000000001790556101345480611bc45760405162461bcd60e51b815260206004820152600e60248201526d4e6f206574682062616c616e636560901b6044820152606401610d32565b604051600090339083908381818185875af1925050503d8060008114611c06576040519150601f19603f3d011682016040523d82523d6000602084013e611c0b565b606091505b5050905080611c1957600080fd5b816101346000828254611c2c91906144d0565b909155505061013a805464ff0000000019169055505050565b600080516020614611833981519152611c5d81612a7a565b5061013355565b600080516020614611833981519152611c7c81612a7a565b5061013f805463ffffffff9092166401000000000267ffffffff0000000019909216919091179055565b600091825260fb602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6060606680546111009061452a565b61152733838361302f565b8060026000611cf960995490565b905060008363ffffffff1611611d215760405162461bcd60e51b8152600401610d3290614431565b61013854611d369063ffffffff166001614475565b63ffffffff168363ffffffff1610611d605760405162461bcd60e51b8152600401610d3290614406565b6000826002811115611d8257634e487b7160e01b600052602160045260246000fd5b14611e1c576002826002811115611da957634e487b7160e01b600052602160045260246000fd5b1415611de8578263ffffffff1661013254611dc491906144b1565b341015611de35760405162461bcd60e51b8152600401610d32906143dc565b611e1c565b8263ffffffff1661013354611dfd91906144b1565b341015611e1c5760405162461bcd60e51b8152600401610d32906143dc565b61013a54611e319063ffffffff166001614475565b63ffffffff168363ffffffff1682611e49919061445d565b10611e665760405162461bcd60e51b8152600401610d3290614319565b611e7f8460405180602001604052806000815250611fea565b50505050565b7f8cadce1490c0b220d05eff2ad7498d2416b857f86be59313862f4e1459aa9cfc611eaf81612a7a565b61013a5465010000000000900460ff1615611ec957600080fd5b61013a805465ff00000000001916650100000000001790556101355480611f235760405162461bcd60e51b815260206004820152600e60248201526d4e6f206574682062616c616e636560901b6044820152606401610d32565b604051600090339083908381818185875af1925050503d8060008114611f65576040519150601f19603f3d011682016040523d82523d6000602084013e611f6a565b606091505b5050905080611f7857600080fd5b816101356000828254611f8b91906144d0565b909155505061013a805465ff000000000019169055505050565b600080516020614611833981519152611fbd81612a7a565b5061013f805463ffffffff909216600160401b026bffffffff000000000000000019909216919091179055565b8160026000611ff860995490565b905060008363ffffffff16116120205760405162461bcd60e51b8152600401610d3290614431565b610138546120359063ffffffff166001614475565b63ffffffff168363ffffffff161061205f5760405162461bcd60e51b8152600401610d3290614406565b600082600281111561208157634e487b7160e01b600052602160045260246000fd5b1461211b5760028260028111156120a857634e487b7160e01b600052602160045260246000fd5b14156120e7578263ffffffff16610132546120c391906144b1565b3410156120e25760405162461bcd60e51b8152600401610d32906143dc565b61211b565b8263ffffffff16610133546120fc91906144b1565b34101561211b5760405162461bcd60e51b8152600401610d32906143dc565b61013a546121309063ffffffff166001614475565b63ffffffff168363ffffffff1682612148919061445d565b106121655760405162461bcd60e51b8152600401610d3290614319565b61216d61132e565b156121a85733600090815261013b602052604090205460ff16156121a35760405162461bcd60e51b8152600401610d3290614251565b6121dd565b60405162461bcd60e51b815260206004820152600a602482015269139bdd081bdc195b995960b21b6044820152606401610d32565b6121e685612a1f565b8463ffffffff16610136546121fb91906144b1565b610134600082825461220d919061445d565b9091555050610136546101325463ffffffff87169161222b916144d0565b61223591906144b1565b6101356000828254612247919061445d565b909155505033600081815261013b60205260409020805460ff19166001179055610132547f2abb4782bc6cd9c2903801a7003db63deb3709f284267fc596fdbcf31ce37d44908690610139906122a49063ffffffff8b16906144b1565b896122ae60995490565b6122ba610aac60995490565b6040516122cc96959493929190614174565b60405180910390a25050505050565b6122e53383612af2565b6123015760405162461bcd60e51b8152600401610d3290614340565b611e7f848484846130fe565b60008051602061461183398151915261232581612a7a565b5061013f805463ffffffff909216600160601b0263ffffffff60601b19909216919091179055565b6000818152606760205260409020546060906001600160a01b03166123a85760405162461bcd60e51b81526020600482015260116024820152702737b732bc34b9ba32b73a103a37b5b2b760791b6044820152606401610d32565b61013f544290606090600160c01b900463ffffffff168210156123f85761012d6123d185613131565b6040516020016123e292919061401f565b6040516020818303038152906040529050612482565b61013f54600160e01b900463ffffffff1682101561241c5761012e6123d185613131565b6101405463ffffffff16821015612453576124368461161d565b156124475761012f6123d185613131565b61012e6123d185613131565b61012f61245f85613131565b60405160200161247092919061401f565b60405160208183030381529060405290505b60008151116124a057604051806020016040528060008152506124a2565b805b949350505050565b6000805160206146118339815191526124c281612a7a565b5061013f805463ffffffff909216600160c01b0263ffffffff60c01b19909216919091179055565b600082815260fb602052604090206001015461250581612a7a565b6113298383612e15565b60008051602061461183398151915261252781612a7a565b5061013055565b60008051602061461183398151915261254681612a7a565b81516113299061012e906020850190613b18565b60008051602061461183398151915261257281612a7a565b81516113299061012d906020850190613b18565b60c9546001600160a01b031633146125e05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d32565b6001600160a01b0381166126455760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d32565b61264e81612e7c565b50565b60008051602061461183398151915261266981612a7a565b5061013f805463ffffffff909216600160e01b026001600160e01b03909216919091179055565b8260008061269d60995490565b905060008363ffffffff16116126c55760405162461bcd60e51b8152600401610d3290614431565b610138546126da9063ffffffff166001614475565b63ffffffff168363ffffffff16106127045760405162461bcd60e51b8152600401610d3290614406565b600082600281111561272657634e487b7160e01b600052602160045260246000fd5b146127c057600282600281111561274d57634e487b7160e01b600052602160045260246000fd5b141561278c578263ffffffff166101325461276891906144b1565b3410156127875760405162461bcd60e51b8152600401610d32906143dc565b6127c0565b8263ffffffff16610133546127a191906144b1565b3410156127c05760405162461bcd60e51b8152600401610d32906143dc565b61013a546127d59063ffffffff166001614475565b63ffffffff168363ffffffff16826127ed919061445d565b1061280a5760405162461bcd60e51b8152600401610d3290614319565b61281261164a565b1561291a576101305461285d5760405162461bcd60e51b815260206004820152601360248201527246726565206d696e74206e6f7420726561647960681b6044820152606401610d32565b61289f85858080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050610130549150339050610f0f565b6128e45760405162461bcd60e51b81526020600482015260166024820152752737ba103090333932b29036b4b73a1036b2b6b132b960511b6044820152606401610d32565b33600090815261013c602052604090205460ff16156129155760405162461bcd60e51b8152600401610d3290614251565b612959565b60405162461bcd60e51b8152602060048201526014602482015273119c9959481b5a5b9d081b9bdd081bdc195b995960621b6044820152606401610d32565b61296286612a1f565b600161013c600033611081565b61013f546000904290600160401b900463ffffffff1681118015611361575061013f54600160601b900463ffffffff1681101561136e57600191505090565b6000805160206146118339815191526129c681612a7a565b50610138805463ffffffff191663ffffffff92909216919091179055565b60006001600160e01b03198216637965db0b60e01b1480610cf65750610cf68261324b565b600082612a168584613270565b14949350505050565b6000612a2a60995490565b905060005b8263ffffffff168163ffffffff16101561132957612a6833612a5084614565565b935083604051806020016040528060008152506132f2565b80612a7281614580565b915050612a2f565b61264e8133613325565b600081815260696020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612ab9826116c3565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152606760205260408120546001600160a01b0316612b6b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610d32565b6000612b76836116c3565b9050806001600160a01b0316846001600160a01b03161480612bbd57506001600160a01b038082166000908152606a602090815260408083209388168352929052205460ff165b806124a25750836001600160a01b0316612bd684611183565b6001600160a01b031614949350505050565b826001600160a01b0316612bfb826116c3565b6001600160a01b031614612c5f5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610d32565b6001600160a01b038216612cc15760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610d32565b612ccc838383613389565b612cd7600082612a84565b6001600160a01b0383166000908152606860205260408120805460019290612d009084906144d0565b90915550506001600160a01b0382166000908152606860205260408120805460019290612d2e90849061445d565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b612d998282611ca6565b61152757600082815260fb602090815260408083206001600160a01b03851684529091529020805460ff19166001179055612dd13390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b612e1f8282611ca6565b1561152757600082815260fb602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60c980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008054610100900460ff1615612f0d578160ff166001148015612ef15750303b155b6116425760405162461bcd60e51b8152600401610d32906142cb565b60005460ff808416911610612f345760405162461bcd60e51b8152600401610d32906142cb565b506000805460ff191660ff92909216919091179055600190565b919050565b600054610100900460ff16612f7a5760405162461bcd60e51b8152600401610d3290614391565b6115278282613394565b600054610100900460ff16612fab5760405162461bcd60e51b8152600401610d3290614391565b6118256133e2565b600054610100900460ff166118255760405162461bcd60e51b8152600401610d3290614391565b6115278282612d8f565b600082815260fb6020526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b816001600160a01b0316836001600160a01b031614156130915760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610d32565b6001600160a01b038381166000818152606a6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b613109848484612be8565b61311584848484613412565b611e7f5760405162461bcd60e51b8152600401610d3290614279565b6060816131555750506040805180820190915260018152600360fc1b602082015290565b8160005b811561317f578061316981614565565b91506131789050600a8361449d565b9150613159565b60008167ffffffffffffffff8111156131a857634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156131d2576020820181803683370190505b5090505b84156124a2576131e76001836144d0565b91506131f4600a866145a4565b6131ff90603061445d565b60f81b81838151811061322257634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350613244600a8661449d565b94506131d6565b60006001600160e01b0319821663780e9d6360e01b1480610cf65750610cf68261351f565b600081815b84518110156132ea5760008582815181106132a057634e487b7160e01b600052603260045260246000fd5b602002602001015190508083116132c657600083815260208290526040902092506132d7565b600081815260208490526040902092505b50806132e281614565565b915050613275565b509392505050565b6132fc838361356f565b6133096000848484613412565b6113295760405162461bcd60e51b8152600401610d3290614279565b61332f8282611ca6565b61152757613347816001600160a01b031660146136bd565b6133528360206136bd565b6040516020016133639291906140af565b60408051601f198184030181529082905262461bcd60e51b8252610d3291600401614161565b6113298383836138a6565b600054610100900460ff166133bb5760405162461bcd60e51b8152600401610d3290614391565b81516133ce906065906020850190613b18565b508051611329906066906020840190613b18565b600054610100900460ff166134095760405162461bcd60e51b8152600401610d3290614391565b61182533612e7c565b60006001600160a01b0384163b1561351457604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613456903390899088908890600401614124565b602060405180830381600087803b15801561347057600080fd5b505af19250505080156134a0575060408051601f3d908101601f1916820190925261349d91810190613ebd565b60015b6134fa573d8080156134ce576040519150601f19603f3d011682016040523d82523d6000602084013e6134d3565b606091505b5080516134f25760405162461bcd60e51b8152600401610d3290614279565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506124a2565b506001949350505050565b60006001600160e01b031982166380ac58cd60e01b148061355057506001600160e01b03198216635b5e139f60e01b145b80610cf657506301ffc9a760e01b6001600160e01b0319831614610cf6565b6001600160a01b0382166135c55760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610d32565b6000818152606760205260409020546001600160a01b03161561362a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610d32565b61363660008383613389565b6001600160a01b038216600090815260686020526040812080546001929061365f90849061445d565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b606060006136cc8360026144b1565b6136d790600261445d565b67ffffffffffffffff8111156136fd57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613727576020820181803683370190505b509050600360fc1b8160008151811061375057634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061378d57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060006137b18460026144b1565b6137bc90600161445d565b90505b6001811115613850576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106137fe57634e487b7160e01b600052603260045260246000fd5b1a60f81b82828151811061382257634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c9361384981614513565b90506137bf565b50831561389f5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610d32565b9392505050565b6001600160a01b038316613901576138fc81609980546000838152609a60205260408120829055600182018355919091527f72a152ddfb8e864297c917af52ea6c1c68aead0fee1a62673fcc7e0c94979d000155565b613924565b816001600160a01b0316836001600160a01b03161461392457613924838261395e565b6001600160a01b03821661393b57611329816139fb565b826001600160a01b0316826001600160a01b031614611329576113298282613ad4565b6000600161396b8461173a565b61397591906144d0565b6000838152609860205260409020549091508082146139c8576001600160a01b03841660009081526097602090815260408083208584528252808320548484528184208190558352609890915290208190555b5060009182526098602090815260408084208490556001600160a01b039094168352609781528383209183525290812055565b609954600090613a0d906001906144d0565b6000838152609a602052604081205460998054939450909284908110613a4357634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060998381548110613a7257634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152609a90915260408082208490558582528120556099805480613ab857634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000613adf8361173a565b6001600160a01b039093166000908152609760209081526040808320868452825280832085905593825260989052919091209190915550565b828054613b249061452a565b90600052602060002090601f016020900481019282613b465760008555613b8c565b82601f10613b5f57805160ff1916838001178555613b8c565b82800160010185558215613b8c579182015b82811115613b8c578251825591602001919060010190613b71565b50613b98929150613b9c565b5090565b5b80821115613b985760008155600101613b9d565b600067ffffffffffffffff80841115613bcc57613bcc6145e4565b604051601f8501601f19908116603f01168101908282118183101715613bf457613bf46145e4565b81604052809350858152868686011115613c0d57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114612f4e57600080fd5b600082601f830112613c4e578081fd5b61389f83833560208501613bb1565b803563ffffffff81168114612f4e57600080fd5b600060208284031215613c82578081fd5b61389f82613c27565b60008060408385031215613c9d578081fd5b613ca683613c27565b9150613cb460208401613c27565b90509250929050565b600080600080600060a08688031215613cd4578081fd5b613cdd86613c27565b9450613ceb60208701613c27565b9350613cf960408701613c27565b9250606086013567ffffffffffffffff80821115613d15578283fd5b613d2189838a01613c3e565b93506080880135915080821115613d36578283fd5b50613d4388828901613c3e565b9150509295509295909350565b600080600060608486031215613d64578283fd5b613d6d84613c27565b9250613d7b60208501613c27565b9150604084013590509250925092565b60008060008060808587031215613da0578384fd5b613da985613c27565b9350613db760208601613c27565b925060408501359150606085013567ffffffffffffffff811115613dd9578182fd5b8501601f81018713613de9578182fd5b613df887823560208401613bb1565b91505092959194509250565b60008060408385031215613e16578182fd5b613e1f83613c27565b915060208301358015158114613e33578182fd5b809150509250929050565b60008060408385031215613e50578182fd5b613e5983613c27565b946020939093013593505050565b600060208284031215613e78578081fd5b5035919050565b60008060408385031215613e91578182fd5b82359150613cb460208401613c27565b600060208284031215613eb2578081fd5b813561389f816145fa565b600060208284031215613ece578081fd5b815161389f816145fa565b600060208284031215613eea578081fd5b813567ffffffffffffffff811115613f00578182fd5b6124a284828501613c3e565b600060208284031215613f1d578081fd5b61389f82613c5d565b600080600060408486031215613f3a578081fd5b613f4384613c5d565b9250602084013567ffffffffffffffff80821115613f5f578283fd5b818601915086601f830112613f72578283fd5b813581811115613f80578384fd5b8760208260051b8501011115613f94578384fd5b6020830194508093505050509250925092565b60008060408385031215613fb9578182fd5b613fc283613c5d565b9150602083013567ffffffffffffffff811115613fdd578182fd5b613fe985828601613c3e565b9150509250929050565b6000815180845261400b8160208601602086016144e7565b601f01601f19169290920160200192915050565b600080845461402d8161452a565b60018281168015614045576001811461405657614082565b60ff19841687528287019450614082565b8886526020808720875b858110156140795781548a820152908401908201614060565b50505082870194505b5050505083516140968183602088016144e7565b64173539b7b760d91b9101908152600501949350505050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516140e78160178501602088016144e7565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516141188160288401602088016144e7565b01602801949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061415790830184613ff3565b9695505050505050565b60208152600061389f6020830184613ff3565b60e08152600061418760e0830189613ff3565b828103602081818601526001808452600560fc1b828501526040830160408701528492508a546141b68161452a565b8060408701526060838316600081146141d657600181146141ea57614215565b60ff19841688830152608088019650614215565b8e8952858920895b8481101561420d5781548a82018501529086019087016141f2565b890183019750505b5088018c905250505063ffffffff88166080860152508560a085015283810360c08501526142438186613ff3565b9a9950505050505050505050565b6020808252600e908201526d105b1c9958591e481b5a5b9d195960921b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b6020808252600d908201526c135a5b9d081cdbdb19081bdd5d609a1b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60208082526010908201526f2737ba1032b737bab3b410333ab7321760811b604082015260600190565b60208082526011908201527026b0bc1036b4b73a103932b0b1b432b21760791b604082015260600190565b60208082526012908201527126b4b73a1030ba103632b0b9ba1037b7329760711b604082015260600190565b60008219821115614470576144706145b8565b500190565b600063ffffffff808316818516808303821115614494576144946145b8565b01949350505050565b6000826144ac576144ac6145ce565b500490565b60008160001904831182151516156144cb576144cb6145b8565b500290565b6000828210156144e2576144e26145b8565b500390565b60005b838110156145025781810151838201526020016144ea565b83811115611e7f5750506000910152565b600081614522576145226145b8565b506000190190565b600181811c9082168061453e57607f821691505b6020821081141561455f57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415614579576145796145b8565b5060010190565b600063ffffffff8083168181141561459a5761459a6145b8565b6001019392505050565b6000826145b3576145b36145ce565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461264e57600080fdfe523a704056dcd17bcf83bed8b68c59416dac1119be77755efe3bde0a64e46e0c697066733a2f2f62616679626569677a7663776c6e7371376c6b7436346a67377066376c7035357633627035657a6b6c37756e6c7678646c71667663773666356f752f697066733a2f2f626166796265696779653737757735706f726761746464687235666e34766862756370676f7337746765706e6972757161346877666a7a34666a652f697066733a2f2f6261667962656966766a6d34326565756469686d76786f62683571736962336c356c76616c36753568686b3662777376686d35776836626d3733612fa26469706673582212206ddcc39ca67e911637f8eff2fe2329cb2b21dc9271ac09cf08b88a737124e87c64736f6c63430008040033

Deployed Bytecode

0x6080604052600436106104055760003560e01c80638759c6c311610213578063c529c7b811610123578063e985e9c5116100ab578063f4d176591161007a578063f4d1765914610c61578063f5b541a614610c81578063f6f6c41f14610ca3578063f70dbb7714610cb6578063f8048d8f14610ccb57600080fd5b8063e985e9c514610bba578063f2a24d4d14610c03578063f2c4ce1e14610c21578063f2fde38b14610c4157600080fd5b8063d547741f116100f2578063d547741f14610b05578063d5608f9a14610b25578063d5abeb0114610b5c578063dde44b8914610b7a578063e906225114610b9a57600080fd5b8063c529c7b814610a71578063c87b56dd14610a91578063cafc790014610ab1578063ced3a40314610ad157600080fd5b8063a22cb465116101a6578063b602ae6611610175578063b602ae66146109e2578063b7c754da14610a02578063b88d4fde14610a15578063ba829d7114610a35578063bdb4b84814610a5a57600080fd5b8063a22cb46514610982578063a71bbebe146109a2578063a82524b2146109b5578063b1356b87146109da57600080fd5b806390c6f7d4116101e257806390c6f7d41461091857806391d148541461093857806395d89b4114610958578063a217fddf1461096d57600080fd5b80638759c6c31461089e5780638a3a6419146108d25780638da5cb5b146108da5780638fdcf942146108f857600080fd5b8063326d43881161031957806352b578e7116102a157806370a082311161027057806370a0823114610809578063715018a61461082957806375d2ce1c1461083e57806383b435891461085e5780638545f4ea1461087e57600080fd5b806352b578e71461078f5780635fd84c28146107a45780636352211e146107c45780636bb7b1d9146107e457600080fd5b80634a90604c116102e85780634a90604c146106eb5780634b5befd8146107115780634f6ccce7146107315780635055fbc314610751578063507e094f1461077157600080fd5b8063326d43881461066d578063326e51511461068d57806336568abe146106ab57806342842e0e146106cb57600080fd5b80631c00da441161039c578063249b7c191161036b578063249b7c19146105d157806328d7b276146105f65780632a23d07d146106165780632f2ff15d1461062d5780632f745c591461064d57600080fd5b80631c00da44146105225780631e4d185f1461055c57806323b872dd14610581578063248a9ca3146105a157600080fd5b8063081812fc116103d8578063081812fc14610496578063095ea7b3146104ce5780631538d7d2146104ee57806318160ddd1461050357600080fd5b806301ffc9a71461040a5780630364d22a1461043f5780630662069d1461045457806306fdde0314610474575b600080fd5b34801561041657600080fd5b5061042a610425366004613ea1565b610ceb565b60405190151581526020015b60405180910390f35b61045261044d366004613f26565b610cfc565b005b34801561046057600080fd5b5061045261046f366004613f0c565b6110b1565b34801561048057600080fd5b506104896110f1565b6040516104369190614161565b3480156104a257600080fd5b506104b66104b1366004613e67565b611183565b6040516001600160a01b039091168152602001610436565b3480156104da57600080fd5b506104526104e9366004613e3e565b611218565b3480156104fa57600080fd5b5061042a61132e565b34801561050f57600080fd5b506099545b604051908152602001610436565b34801561052e57600080fd5b5061013f5461054790600160c01b900463ffffffff1681565b60405163ffffffff9091168152602001610436565b34801561056857600080fd5b5061013f5461054790600160a01b900463ffffffff1681565b34801561058d57600080fd5b5061045261059c366004613d50565b611376565b3480156105ad57600080fd5b506105146105bc366004613e67565b600090815260fb602052604090206001015490565b3480156105dd57600080fd5b5061013f5461054790600160601b900463ffffffff1681565b34801561060257600080fd5b50610452610611366004613e67565b6113a7565b34801561062257600080fd5b506105146101335481565b34801561063957600080fd5b50610452610648366004613e7f565b6113c6565b34801561065957600080fd5b50610514610668366004613e3e565b6113eb565b34801561067957600080fd5b50610452610688366004613ed9565b611481565b34801561069957600080fd5b5061013f546105479063ffffffff1681565b3480156106b757600080fd5b506104526106c6366004613e7f565b6114ad565b3480156106d757600080fd5b506104526106e6366004613d50565b61152b565b3480156106f757600080fd5b5061013f5461054790640100000000900463ffffffff1681565b34801561071d57600080fd5b5061045261072c366004613f0c565b611546565b34801561073d57600080fd5b5061051461074c366004613e67565b61157c565b34801561075d57600080fd5b5061042a61076c366004613e67565b61161d565b34801561077d57600080fd5b50610138546105479063ffffffff1681565b34801561079b57600080fd5b5061042a61164a565b3480156107b057600080fd5b506104526107bf366004613f0c565b611683565b3480156107d057600080fd5b506104b66107df366004613e67565b6116c3565b3480156107f057600080fd5b5061013f5461054790600160801b900463ffffffff1681565b34801561081557600080fd5b50610514610824366004613c71565b61173a565b34801561083557600080fd5b506104526117c1565b34801561084a57600080fd5b50610452610859366004613f0c565b611827565b34801561086a57600080fd5b50610452610879366004613cbd565b61185d565b34801561088a57600080fd5b50610452610899366004613e67565b611b0a565b3480156108aa57600080fd5b506105147ff09deea8c87a61bf851df60f5410fb720e514d253185419bf9616e36a35063c981565b610452611b29565b3480156108e657600080fd5b5060c9546001600160a01b03166104b6565b34801561090457600080fd5b50610452610913366004613e67565b611c45565b34801561092457600080fd5b50610452610933366004613f0c565b611c64565b34801561094457600080fd5b5061042a610953366004613e7f565b611ca6565b34801561096457600080fd5b50610489611cd1565b34801561097957600080fd5b50610514600081565b34801561098e57600080fd5b5061045261099d366004613e04565b611ce0565b6104526109b0366004613f0c565b611ceb565b3480156109c157600080fd5b5061013f5461054790600160401b900463ffffffff1681565b610452611e85565b3480156109ee57600080fd5b506104526109fd366004613f0c565b611fa5565b610452610a10366004613fa7565b611fea565b348015610a2157600080fd5b50610452610a30366004613d8b565b6122db565b348015610a4157600080fd5b5061013f5461054790600160e01b900463ffffffff1681565b348015610a6657600080fd5b506105146101325481565b348015610a7d57600080fd5b50610452610a8c366004613f0c565b61230d565b348015610a9d57600080fd5b50610489610aac366004613e67565b61234d565b348015610abd57600080fd5b50610452610acc366004613f0c565b6124aa565b348015610add57600080fd5b506105147f8cadce1490c0b220d05eff2ad7498d2416b857f86be59313862f4e1459aa9cfc81565b348015610b1157600080fd5b50610452610b20366004613e7f565b6124ea565b348015610b3157600080fd5b50610452610b40366004613e67565b600090815261013e60205260409020805460ff19166001179055565b348015610b6857600080fd5b5061013a546105479063ffffffff1681565b348015610b8657600080fd5b50610452610b95366004613e67565b61250f565b348015610ba657600080fd5b50610452610bb5366004613ed9565b61252e565b348015610bc657600080fd5b5061042a610bd5366004613c8b565b6001600160a01b039182166000908152606a6020908152604080832093909416825291909152205460ff1690565b348015610c0f57600080fd5b50610140546105479063ffffffff1681565b348015610c2d57600080fd5b50610452610c3c366004613ed9565b61255a565b348015610c4d57600080fd5b50610452610c5c366004613c71565b612586565b348015610c6d57600080fd5b50610452610c7c366004613f0c565b612651565b348015610c8d57600080fd5b5061051460008051602061461183398151915281565b610452610cb1366004613f26565b612690565b348015610cc257600080fd5b5061042a61296f565b348015610cd757600080fd5b50610452610ce6366004613f0c565b6129ae565b6000610cf6826129e4565b92915050565b8260016000610d0a60995490565b905060008363ffffffff1611610d3b5760405162461bcd60e51b8152600401610d3290614431565b60405180910390fd5b61013854610d509063ffffffff166001614475565b63ffffffff168363ffffffff1610610d7a5760405162461bcd60e51b8152600401610d3290614406565b6000826002811115610d9c57634e487b7160e01b600052602160045260246000fd5b14610e36576002826002811115610dc357634e487b7160e01b600052602160045260246000fd5b1415610e02578263ffffffff1661013254610dde91906144b1565b341015610dfd5760405162461bcd60e51b8152600401610d32906143dc565b610e36565b8263ffffffff1661013354610e1791906144b1565b341015610e365760405162461bcd60e51b8152600401610d32906143dc565b61013a54610e4b9063ffffffff166001614475565b63ffffffff168363ffffffff1682610e63919061445d565b10610e805760405162461bcd60e51b8152600401610d3290614319565b610e8861296f565b15610fcb5761013154610ed15760405162461bcd60e51b815260206004820152601160248201527050726573616c65206e6f7420726561647960781b6044820152606401610d32565b610f52858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506101315491503390505b604051602001610f37919060609190911b6bffffffffffffffffffffffff1916815260140190565b60405160208183030381529060405280519060200120612a09565b610f955760405162461bcd60e51b81526020600482015260146024820152732737ba103090383932b9b0b6329036b2b6b132b960611b6044820152606401610d32565b33600090815261013d602052604090205460ff1615610fc65760405162461bcd60e51b8152600401610d3290614251565b611008565b60405162461bcd60e51b8152602060048201526012602482015271141c995cd85b19481b9bdd081bdc195b995960721b6044820152606401610d32565b61101186612a1f565b8563ffffffff166101375461102691906144b1565b6101346000828254611038919061445d565b9091555050610137546101335463ffffffff881691611056916144d0565b61106091906144b1565b6101356000828254611072919061445d565b909155506001905061013d6000335b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055505050505050565b6000805160206146118339815191526110c981612a7a565b5061013f805463ffffffff909216600160a01b0263ffffffff60a01b19909216919091179055565b6060606580546111009061452a565b80601f016020809104026020016040519081016040528092919081815260200182805461112c9061452a565b80156111795780601f1061114e57610100808354040283529160200191611179565b820191906000526020600020905b81548152906001019060200180831161115c57829003601f168201915b5050505050905090565b6000818152606760205260408120546001600160a01b03166111fc5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610d32565b506000908152606960205260409020546001600160a01b031690565b6000611223826116c3565b9050806001600160a01b0316836001600160a01b031614156112915760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610d32565b336001600160a01b03821614806112ad57506112ad8133610bd5565b61131f5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610d32565b6113298383612a84565b505050565b61013f546000904290600160801b900463ffffffff1681118015611361575061013f54600160a01b900463ffffffff1681105b1561136e57600191505090565b600091505090565b6113803382612af2565b61139c5760405162461bcd60e51b8152600401610d3290614340565b611329838383612be8565b6000805160206146118339815191526113bf81612a7a565b5061013155565b600082815260fb60205260409020600101546113e181612a7a565b6113298383612d8f565b60006113f68361173a565b82106114585760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610d32565b506001600160a01b03919091166000908152609760209081526040808320938352929052205490565b60008051602061461183398151915261149981612a7a565b81516113299061012f906020850190613b18565b6001600160a01b038116331461151d5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610d32565b6115278282612e15565b5050565b611329838383604051806020016040528060008152506122db565b60008051602061461183398151915261155e81612a7a565b5061013f805463ffffffff191663ffffffff92909216919091179055565b600061158760995490565b82106115ea5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610d32565b6099828154811061160b57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b600081815261013e602052604081205460ff1615156001141561164257506001919050565b506000919050565b61013f54600090429063ffffffff1681118015611361575061013f54640100000000900463ffffffff1681101561136e57600191505090565b60008051602061461183398151915261169b81612a7a565b5061013f805463ffffffff909216600160801b0263ffffffff60801b19909216919091179055565b6000818152606760205260408120546001600160a01b031680610cf65760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610d32565b60006001600160a01b0382166117a55760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610d32565b506001600160a01b031660009081526068602052604090205490565b60c9546001600160a01b0316331461181b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d32565b6118256000612e7c565b565b60008051602061461183398151915261183f81612a7a565b50610140805463ffffffff191663ffffffff92909216919091179055565b60006118696001612ece565b90508015611881576000805461ff0019166101001790555b61188b8383612f53565b611893612f84565b61189b612fb3565b6118a3612fb3565b6118ae600087612fda565b6118d87f8cadce1490c0b220d05eff2ad7498d2416b857f86be59313862f4e1459aa9cfc86612fda565b6119027ff09deea8c87a61bf851df60f5410fb720e514d253185419bf9616e36a35063c985612fda565b61191b6000805160206146118339815191526000612fe4565b825161192f90610139906020860190613b18565b5060405180608001604052806043815260200161467460439139805161195e9161012d91602090910190613b18565b5060405180608001604052806043815260200161463160439139805161198d9161012e91602090910190613b18565b506040518060800160405280604381526020016146b76043913980516119bc9161012f91602090910190613b18565b507fc929a9041c1b56b58ba3c8c7bf2502d66c54e8206085a1892fe3c58518b3387c610130557f9ed9f01a6617358dcc2c8e558f1289a2a325dcac07a0054a6e6b713e67e75aba6101315567016345785d8a000061013281905567011c37937e08000061013355601490611a319060136144b1565b611a3b919061449d565b6101365561013354601490611a519060136144b1565b611a5b919061449d565b61013755610138805463ffffffff1990811660011790915561013a805465ffffffffffff1916610f301790557f62ebc2d062e91fd062e52b5062e2885062dd425062dbf0d062dd425062dbf0d061013f5561014080549091166362ed14501790558015611b02576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050505050565b600080516020614611833981519152611b2281612a7a565b5061013255565b7ff09deea8c87a61bf851df60f5410fb720e514d253185419bf9616e36a35063c9611b5381612a7a565b61013a54640100000000900460ff1615611b6c57600080fd5b61013a805464ff0000000019166401000000001790556101345480611bc45760405162461bcd60e51b815260206004820152600e60248201526d4e6f206574682062616c616e636560901b6044820152606401610d32565b604051600090339083908381818185875af1925050503d8060008114611c06576040519150601f19603f3d011682016040523d82523d6000602084013e611c0b565b606091505b5050905080611c1957600080fd5b816101346000828254611c2c91906144d0565b909155505061013a805464ff0000000019169055505050565b600080516020614611833981519152611c5d81612a7a565b5061013355565b600080516020614611833981519152611c7c81612a7a565b5061013f805463ffffffff9092166401000000000267ffffffff0000000019909216919091179055565b600091825260fb602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6060606680546111009061452a565b61152733838361302f565b8060026000611cf960995490565b905060008363ffffffff1611611d215760405162461bcd60e51b8152600401610d3290614431565b61013854611d369063ffffffff166001614475565b63ffffffff168363ffffffff1610611d605760405162461bcd60e51b8152600401610d3290614406565b6000826002811115611d8257634e487b7160e01b600052602160045260246000fd5b14611e1c576002826002811115611da957634e487b7160e01b600052602160045260246000fd5b1415611de8578263ffffffff1661013254611dc491906144b1565b341015611de35760405162461bcd60e51b8152600401610d32906143dc565b611e1c565b8263ffffffff1661013354611dfd91906144b1565b341015611e1c5760405162461bcd60e51b8152600401610d32906143dc565b61013a54611e319063ffffffff166001614475565b63ffffffff168363ffffffff1682611e49919061445d565b10611e665760405162461bcd60e51b8152600401610d3290614319565b611e7f8460405180602001604052806000815250611fea565b50505050565b7f8cadce1490c0b220d05eff2ad7498d2416b857f86be59313862f4e1459aa9cfc611eaf81612a7a565b61013a5465010000000000900460ff1615611ec957600080fd5b61013a805465ff00000000001916650100000000001790556101355480611f235760405162461bcd60e51b815260206004820152600e60248201526d4e6f206574682062616c616e636560901b6044820152606401610d32565b604051600090339083908381818185875af1925050503d8060008114611f65576040519150601f19603f3d011682016040523d82523d6000602084013e611f6a565b606091505b5050905080611f7857600080fd5b816101356000828254611f8b91906144d0565b909155505061013a805465ff000000000019169055505050565b600080516020614611833981519152611fbd81612a7a565b5061013f805463ffffffff909216600160401b026bffffffff000000000000000019909216919091179055565b8160026000611ff860995490565b905060008363ffffffff16116120205760405162461bcd60e51b8152600401610d3290614431565b610138546120359063ffffffff166001614475565b63ffffffff168363ffffffff161061205f5760405162461bcd60e51b8152600401610d3290614406565b600082600281111561208157634e487b7160e01b600052602160045260246000fd5b1461211b5760028260028111156120a857634e487b7160e01b600052602160045260246000fd5b14156120e7578263ffffffff16610132546120c391906144b1565b3410156120e25760405162461bcd60e51b8152600401610d32906143dc565b61211b565b8263ffffffff16610133546120fc91906144b1565b34101561211b5760405162461bcd60e51b8152600401610d32906143dc565b61013a546121309063ffffffff166001614475565b63ffffffff168363ffffffff1682612148919061445d565b106121655760405162461bcd60e51b8152600401610d3290614319565b61216d61132e565b156121a85733600090815261013b602052604090205460ff16156121a35760405162461bcd60e51b8152600401610d3290614251565b6121dd565b60405162461bcd60e51b815260206004820152600a602482015269139bdd081bdc195b995960b21b6044820152606401610d32565b6121e685612a1f565b8463ffffffff16610136546121fb91906144b1565b610134600082825461220d919061445d565b9091555050610136546101325463ffffffff87169161222b916144d0565b61223591906144b1565b6101356000828254612247919061445d565b909155505033600081815261013b60205260409020805460ff19166001179055610132547f2abb4782bc6cd9c2903801a7003db63deb3709f284267fc596fdbcf31ce37d44908690610139906122a49063ffffffff8b16906144b1565b896122ae60995490565b6122ba610aac60995490565b6040516122cc96959493929190614174565b60405180910390a25050505050565b6122e53383612af2565b6123015760405162461bcd60e51b8152600401610d3290614340565b611e7f848484846130fe565b60008051602061461183398151915261232581612a7a565b5061013f805463ffffffff909216600160601b0263ffffffff60601b19909216919091179055565b6000818152606760205260409020546060906001600160a01b03166123a85760405162461bcd60e51b81526020600482015260116024820152702737b732bc34b9ba32b73a103a37b5b2b760791b6044820152606401610d32565b61013f544290606090600160c01b900463ffffffff168210156123f85761012d6123d185613131565b6040516020016123e292919061401f565b6040516020818303038152906040529050612482565b61013f54600160e01b900463ffffffff1682101561241c5761012e6123d185613131565b6101405463ffffffff16821015612453576124368461161d565b156124475761012f6123d185613131565b61012e6123d185613131565b61012f61245f85613131565b60405160200161247092919061401f565b60405160208183030381529060405290505b60008151116124a057604051806020016040528060008152506124a2565b805b949350505050565b6000805160206146118339815191526124c281612a7a565b5061013f805463ffffffff909216600160c01b0263ffffffff60c01b19909216919091179055565b600082815260fb602052604090206001015461250581612a7a565b6113298383612e15565b60008051602061461183398151915261252781612a7a565b5061013055565b60008051602061461183398151915261254681612a7a565b81516113299061012e906020850190613b18565b60008051602061461183398151915261257281612a7a565b81516113299061012d906020850190613b18565b60c9546001600160a01b031633146125e05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d32565b6001600160a01b0381166126455760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d32565b61264e81612e7c565b50565b60008051602061461183398151915261266981612a7a565b5061013f805463ffffffff909216600160e01b026001600160e01b03909216919091179055565b8260008061269d60995490565b905060008363ffffffff16116126c55760405162461bcd60e51b8152600401610d3290614431565b610138546126da9063ffffffff166001614475565b63ffffffff168363ffffffff16106127045760405162461bcd60e51b8152600401610d3290614406565b600082600281111561272657634e487b7160e01b600052602160045260246000fd5b146127c057600282600281111561274d57634e487b7160e01b600052602160045260246000fd5b141561278c578263ffffffff166101325461276891906144b1565b3410156127875760405162461bcd60e51b8152600401610d32906143dc565b6127c0565b8263ffffffff16610133546127a191906144b1565b3410156127c05760405162461bcd60e51b8152600401610d32906143dc565b61013a546127d59063ffffffff166001614475565b63ffffffff168363ffffffff16826127ed919061445d565b1061280a5760405162461bcd60e51b8152600401610d3290614319565b61281261164a565b1561291a576101305461285d5760405162461bcd60e51b815260206004820152601360248201527246726565206d696e74206e6f7420726561647960681b6044820152606401610d32565b61289f85858080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050610130549150339050610f0f565b6128e45760405162461bcd60e51b81526020600482015260166024820152752737ba103090333932b29036b4b73a1036b2b6b132b960511b6044820152606401610d32565b33600090815261013c602052604090205460ff16156129155760405162461bcd60e51b8152600401610d3290614251565b612959565b60405162461bcd60e51b8152602060048201526014602482015273119c9959481b5a5b9d081b9bdd081bdc195b995960621b6044820152606401610d32565b61296286612a1f565b600161013c600033611081565b61013f546000904290600160401b900463ffffffff1681118015611361575061013f54600160601b900463ffffffff1681101561136e57600191505090565b6000805160206146118339815191526129c681612a7a565b50610138805463ffffffff191663ffffffff92909216919091179055565b60006001600160e01b03198216637965db0b60e01b1480610cf65750610cf68261324b565b600082612a168584613270565b14949350505050565b6000612a2a60995490565b905060005b8263ffffffff168163ffffffff16101561132957612a6833612a5084614565565b935083604051806020016040528060008152506132f2565b80612a7281614580565b915050612a2f565b61264e8133613325565b600081815260696020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612ab9826116c3565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152606760205260408120546001600160a01b0316612b6b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610d32565b6000612b76836116c3565b9050806001600160a01b0316846001600160a01b03161480612bbd57506001600160a01b038082166000908152606a602090815260408083209388168352929052205460ff165b806124a25750836001600160a01b0316612bd684611183565b6001600160a01b031614949350505050565b826001600160a01b0316612bfb826116c3565b6001600160a01b031614612c5f5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610d32565b6001600160a01b038216612cc15760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610d32565b612ccc838383613389565b612cd7600082612a84565b6001600160a01b0383166000908152606860205260408120805460019290612d009084906144d0565b90915550506001600160a01b0382166000908152606860205260408120805460019290612d2e90849061445d565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b612d998282611ca6565b61152757600082815260fb602090815260408083206001600160a01b03851684529091529020805460ff19166001179055612dd13390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b612e1f8282611ca6565b1561152757600082815260fb602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60c980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008054610100900460ff1615612f0d578160ff166001148015612ef15750303b155b6116425760405162461bcd60e51b8152600401610d32906142cb565b60005460ff808416911610612f345760405162461bcd60e51b8152600401610d32906142cb565b506000805460ff191660ff92909216919091179055600190565b919050565b600054610100900460ff16612f7a5760405162461bcd60e51b8152600401610d3290614391565b6115278282613394565b600054610100900460ff16612fab5760405162461bcd60e51b8152600401610d3290614391565b6118256133e2565b600054610100900460ff166118255760405162461bcd60e51b8152600401610d3290614391565b6115278282612d8f565b600082815260fb6020526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b816001600160a01b0316836001600160a01b031614156130915760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610d32565b6001600160a01b038381166000818152606a6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b613109848484612be8565b61311584848484613412565b611e7f5760405162461bcd60e51b8152600401610d3290614279565b6060816131555750506040805180820190915260018152600360fc1b602082015290565b8160005b811561317f578061316981614565565b91506131789050600a8361449d565b9150613159565b60008167ffffffffffffffff8111156131a857634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156131d2576020820181803683370190505b5090505b84156124a2576131e76001836144d0565b91506131f4600a866145a4565b6131ff90603061445d565b60f81b81838151811061322257634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350613244600a8661449d565b94506131d6565b60006001600160e01b0319821663780e9d6360e01b1480610cf65750610cf68261351f565b600081815b84518110156132ea5760008582815181106132a057634e487b7160e01b600052603260045260246000fd5b602002602001015190508083116132c657600083815260208290526040902092506132d7565b600081815260208490526040902092505b50806132e281614565565b915050613275565b509392505050565b6132fc838361356f565b6133096000848484613412565b6113295760405162461bcd60e51b8152600401610d3290614279565b61332f8282611ca6565b61152757613347816001600160a01b031660146136bd565b6133528360206136bd565b6040516020016133639291906140af565b60408051601f198184030181529082905262461bcd60e51b8252610d3291600401614161565b6113298383836138a6565b600054610100900460ff166133bb5760405162461bcd60e51b8152600401610d3290614391565b81516133ce906065906020850190613b18565b508051611329906066906020840190613b18565b600054610100900460ff166134095760405162461bcd60e51b8152600401610d3290614391565b61182533612e7c565b60006001600160a01b0384163b1561351457604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613456903390899088908890600401614124565b602060405180830381600087803b15801561347057600080fd5b505af19250505080156134a0575060408051601f3d908101601f1916820190925261349d91810190613ebd565b60015b6134fa573d8080156134ce576040519150601f19603f3d011682016040523d82523d6000602084013e6134d3565b606091505b5080516134f25760405162461bcd60e51b8152600401610d3290614279565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506124a2565b506001949350505050565b60006001600160e01b031982166380ac58cd60e01b148061355057506001600160e01b03198216635b5e139f60e01b145b80610cf657506301ffc9a760e01b6001600160e01b0319831614610cf6565b6001600160a01b0382166135c55760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610d32565b6000818152606760205260409020546001600160a01b03161561362a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610d32565b61363660008383613389565b6001600160a01b038216600090815260686020526040812080546001929061365f90849061445d565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b606060006136cc8360026144b1565b6136d790600261445d565b67ffffffffffffffff8111156136fd57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613727576020820181803683370190505b509050600360fc1b8160008151811061375057634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061378d57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060006137b18460026144b1565b6137bc90600161445d565b90505b6001811115613850576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106137fe57634e487b7160e01b600052603260045260246000fd5b1a60f81b82828151811061382257634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c9361384981614513565b90506137bf565b50831561389f5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610d32565b9392505050565b6001600160a01b038316613901576138fc81609980546000838152609a60205260408120829055600182018355919091527f72a152ddfb8e864297c917af52ea6c1c68aead0fee1a62673fcc7e0c94979d000155565b613924565b816001600160a01b0316836001600160a01b03161461392457613924838261395e565b6001600160a01b03821661393b57611329816139fb565b826001600160a01b0316826001600160a01b031614611329576113298282613ad4565b6000600161396b8461173a565b61397591906144d0565b6000838152609860205260409020549091508082146139c8576001600160a01b03841660009081526097602090815260408083208584528252808320548484528184208190558352609890915290208190555b5060009182526098602090815260408084208490556001600160a01b039094168352609781528383209183525290812055565b609954600090613a0d906001906144d0565b6000838152609a602052604081205460998054939450909284908110613a4357634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060998381548110613a7257634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152609a90915260408082208490558582528120556099805480613ab857634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000613adf8361173a565b6001600160a01b039093166000908152609760209081526040808320868452825280832085905593825260989052919091209190915550565b828054613b249061452a565b90600052602060002090601f016020900481019282613b465760008555613b8c565b82601f10613b5f57805160ff1916838001178555613b8c565b82800160010185558215613b8c579182015b82811115613b8c578251825591602001919060010190613b71565b50613b98929150613b9c565b5090565b5b80821115613b985760008155600101613b9d565b600067ffffffffffffffff80841115613bcc57613bcc6145e4565b604051601f8501601f19908116603f01168101908282118183101715613bf457613bf46145e4565b81604052809350858152868686011115613c0d57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114612f4e57600080fd5b600082601f830112613c4e578081fd5b61389f83833560208501613bb1565b803563ffffffff81168114612f4e57600080fd5b600060208284031215613c82578081fd5b61389f82613c27565b60008060408385031215613c9d578081fd5b613ca683613c27565b9150613cb460208401613c27565b90509250929050565b600080600080600060a08688031215613cd4578081fd5b613cdd86613c27565b9450613ceb60208701613c27565b9350613cf960408701613c27565b9250606086013567ffffffffffffffff80821115613d15578283fd5b613d2189838a01613c3e565b93506080880135915080821115613d36578283fd5b50613d4388828901613c3e565b9150509295509295909350565b600080600060608486031215613d64578283fd5b613d6d84613c27565b9250613d7b60208501613c27565b9150604084013590509250925092565b60008060008060808587031215613da0578384fd5b613da985613c27565b9350613db760208601613c27565b925060408501359150606085013567ffffffffffffffff811115613dd9578182fd5b8501601f81018713613de9578182fd5b613df887823560208401613bb1565b91505092959194509250565b60008060408385031215613e16578182fd5b613e1f83613c27565b915060208301358015158114613e33578182fd5b809150509250929050565b60008060408385031215613e50578182fd5b613e5983613c27565b946020939093013593505050565b600060208284031215613e78578081fd5b5035919050565b60008060408385031215613e91578182fd5b82359150613cb460208401613c27565b600060208284031215613eb2578081fd5b813561389f816145fa565b600060208284031215613ece578081fd5b815161389f816145fa565b600060208284031215613eea578081fd5b813567ffffffffffffffff811115613f00578182fd5b6124a284828501613c3e565b600060208284031215613f1d578081fd5b61389f82613c5d565b600080600060408486031215613f3a578081fd5b613f4384613c5d565b9250602084013567ffffffffffffffff80821115613f5f578283fd5b818601915086601f830112613f72578283fd5b813581811115613f80578384fd5b8760208260051b8501011115613f94578384fd5b6020830194508093505050509250925092565b60008060408385031215613fb9578182fd5b613fc283613c5d565b9150602083013567ffffffffffffffff811115613fdd578182fd5b613fe985828601613c3e565b9150509250929050565b6000815180845261400b8160208601602086016144e7565b601f01601f19169290920160200192915050565b600080845461402d8161452a565b60018281168015614045576001811461405657614082565b60ff19841687528287019450614082565b8886526020808720875b858110156140795781548a820152908401908201614060565b50505082870194505b5050505083516140968183602088016144e7565b64173539b7b760d91b9101908152600501949350505050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516140e78160178501602088016144e7565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516141188160288401602088016144e7565b01602801949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061415790830184613ff3565b9695505050505050565b60208152600061389f6020830184613ff3565b60e08152600061418760e0830189613ff3565b828103602081818601526001808452600560fc1b828501526040830160408701528492508a546141b68161452a565b8060408701526060838316600081146141d657600181146141ea57614215565b60ff19841688830152608088019650614215565b8e8952858920895b8481101561420d5781548a82018501529086019087016141f2565b890183019750505b5088018c905250505063ffffffff88166080860152508560a085015283810360c08501526142438186613ff3565b9a9950505050505050505050565b6020808252600e908201526d105b1c9958591e481b5a5b9d195960921b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b6020808252600d908201526c135a5b9d081cdbdb19081bdd5d609a1b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60208082526010908201526f2737ba1032b737bab3b410333ab7321760811b604082015260600190565b60208082526011908201527026b0bc1036b4b73a103932b0b1b432b21760791b604082015260600190565b60208082526012908201527126b4b73a1030ba103632b0b9ba1037b7329760711b604082015260600190565b60008219821115614470576144706145b8565b500190565b600063ffffffff808316818516808303821115614494576144946145b8565b01949350505050565b6000826144ac576144ac6145ce565b500490565b60008160001904831182151516156144cb576144cb6145b8565b500290565b6000828210156144e2576144e26145b8565b500390565b60005b838110156145025781810151838201526020016144ea565b83811115611e7f5750506000910152565b600081614522576145226145b8565b506000190190565b600181811c9082168061453e57607f821691505b6020821081141561455f57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415614579576145796145b8565b5060010190565b600063ffffffff8083168181141561459a5761459a6145b8565b6001019392505050565b6000826145b3576145b36145ce565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461264e57600080fdfe523a704056dcd17bcf83bed8b68c59416dac1119be77755efe3bde0a64e46e0c697066733a2f2f62616679626569677a7663776c6e7371376c6b7436346a67377066376c7035357633627035657a6b6c37756e6c7678646c71667663773666356f752f697066733a2f2f626166796265696779653737757735706f726761746464687235666e34766862756370676f7337746765706e6972757161346877666a7a34666a652f697066733a2f2f6261667962656966766a6d34326565756469686d76786f62683571736962336c356c76616c36753568686b3662777376686d35776836626d3733612fa26469706673582212206ddcc39ca67e911637f8eff2fe2329cb2b21dc9271ac09cf08b88a737124e87c64736f6c63430008040033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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