ETH Price: $3,336.18 (-3.32%)

Token

Calladita Movie Tickets (POP)
 

Overview

Max Total Supply

0 POP

Holders

712

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
angyts.eth
0x2d1e7b6e6284409e16991de76d2a82847a7d61c5
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
CalladitaTickets

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 1000 runs

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

pragma solidity ^0.8.9;

import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.6.0/contracts/access/Ownable.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.6.0/contracts/token/ERC1155/extensions/ERC1155Supply.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.6.0/contracts/utils/Strings.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.6.0/contracts/token/ERC721/IERC721.sol";
import "./library/Mintable.sol";

/**
 * @title CalladitaTickets contract
 * @author @FrankNFT.eth
 */
contract CalladitaTickets is ERC1155Supply, Mintable {
    using Strings for uint256;

    uint256 public constant POPCORN_TOKEN_MAX_SUPPLY = 100000;
    uint256 public constant MOVIE_TOKEN_MAX_SUPPLY = 20000;
    uint256 public constant MOVIE_TOKEN_ID = 0;
    uint256 public constant PORNCORN_TOKEN_ID = 1;
    uint256 public tokenPrice = 0.02 ether; 
    uint256 public teamWithdraw;
    uint256 public cyberWithdraw;  
    uint256 public totalWithdraw;

    uint public constant MAX_PURCHASE = 26; // set 1 to high to avoid some gas

    address private constant TEAM = 0xd105eA47f73A120Fd2EfE1151E73231A0f9445FD;
    address private constant CYBER = 0xA422bfFF5dABa6eeeFAFf84Debf609Edf0868C5f;
    address private constant MOVIE = 0x1Bb96B19858b12d91B8512580147A03cCa62C29e;

    bool public saleIsActive;

    IERC721 calladita;

    mapping(uint256 => bool) private tokenUsed;

    event priceChange(address _by, uint256 price);

    constructor() ERC1155("ipfs://QmSyt9T8Gsxt4so2zcB5sCMjzQhfhs9vmo3whLhNawKfWX/") {
        // ERC721's we interact with (mainnet)
        calladita = IERC721(0xdCb68d47423d244319a5101eAe78716AffBa8655);
    }

    /**
     * Pause sale if active, make active if paused
     */
    function flipSaleState() external onlyMinter {
        saleIsActive = !saleIsActive;
    }

    /**
    *  @dev set contract 
    */
    function setContract(address token) external onlyMinter {
        calladita = IERC721(token);
    }

    /**
    * @dev Set new baseURI
    */
    function setURI(string memory newuri) external onlyMinter {
        _setURI(newuri);
    }

        /**     
    * Set price 
    */
    function setPrice(uint256 price) external onlyMinter {
        tokenPrice = price;
        emit priceChange(msg.sender, tokenPrice);
    }

    /**
     * @dev Removing the token substituion and replacing it with the implementation of the ERC721
     */
    function uri(uint256 token) public view virtual override returns (string memory) {
        string memory baseURI = super.uri(token);
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, token.toString())) : "";
    }

    /**
     * @dev airdrop a specific token to a list of addresses
     */
    function airdrop(address[] calldata addresses, uint256 token, uint numberOfTokens) external onlyMinter {
        if (token==0){
            require(totalSupply(MOVIE_TOKEN_ID) + numberOfTokens <= MOVIE_TOKEN_MAX_SUPPLY, "Reserve would exceed max supply of Tokens");
        }else{
            require(totalSupply(POPCORN_TOKEN_MAX_SUPPLY) + numberOfTokens <= POPCORN_TOKEN_MAX_SUPPLY, "Reserve would exceed max supply of Tokens");
        }
        uint length = addresses.length;
        for (uint i=0; i < length;) {
            _mint(addresses[i], token, numberOfTokens, "");
            unchecked{ i++;}
        }
    }

    modifier mintConditions (uint numberOfTokens) {
        require(saleIsActive,"Sale NOT active yet");
        require(numberOfTokens != 0, "numberOfNfts cannot be 0");
        require(numberOfTokens < MAX_PURCHASE, "Can only mint 25 tokens at a time");
        require(totalSupply(MOVIE_TOKEN_ID) + numberOfTokens <= MOVIE_TOKEN_MAX_SUPPLY, "Purchase would exceed max supply of Tokens");
        _;
    }

    function mintWithCaladita(uint[] calldata tokenIds) external mintConditions(tokenIds.length){
        uint amount;
        uint length = tokenIds.length;
        for (uint i=0; i < length;) {
            if (!tokenUsed[tokenIds[i]] && calladita.ownerOf(tokenIds[i])==msg.sender){ 
                tokenUsed[tokenIds[i]]=true;
                unchecked{ amount++;}
            }
            unchecked{ i++;}
        }
        _mint(msg.sender, MOVIE_TOKEN_ID, amount, "");
        _mint(msg.sender, PORNCORN_TOKEN_ID, 10*tokenIds.length, "");
    }

    function mintWithPopcorn(uint numberOfTokens) external payable mintConditions(numberOfTokens){
        require(balanceOf(msg.sender,PORNCORN_TOKEN_ID)>=numberOfTokens,"not enough popcorn");
        require(tokenPrice * numberOfTokens <= msg.value, "Ether value sent is not correct");  
        _mint(msg.sender, MOVIE_TOKEN_ID, numberOfTokens, "");
        _burn(msg.sender, PORNCORN_TOKEN_ID, numberOfTokens);
        _mintEligiblePOPCORN(msg.sender,numberOfTokens);
        totalWithdraw += msg.value;
        if(totalWithdraw>240 ether){
            teamWithdraw += msg.value*15/100;
            cyberWithdraw += msg.value*15/100;
        }else{
            teamWithdraw+= msg.value*5/100;
        }
    }

    function calladitaUsed(uint id) external view returns (bool){
        return tokenUsed[id];
    }

    function _mintEligiblePOPCORN(address mintTo, uint multiplier) internal {
        if (totalSupply(PORNCORN_TOKEN_ID) > POPCORN_TOKEN_MAX_SUPPLY-1){
            return;
        }
        if (totalSupply(MOVIE_TOKEN_ID) < 3000) {
            _mint(mintTo, PORNCORN_TOKEN_ID, 5*multiplier, "");
        }
        else if (totalSupply(MOVIE_TOKEN_ID)  < 5000) {
            _mint(mintTo, PORNCORN_TOKEN_ID, 3*multiplier, "");
        }
        else if (totalSupply(MOVIE_TOKEN_ID)  < 10000) {
            _mint(mintTo, PORNCORN_TOKEN_ID, 2*multiplier, "");
        }
        else if (totalSupply(MOVIE_TOKEN_ID)  < 15000){
            _mint(mintTo, PORNCORN_TOKEN_ID, 1, "");
        }
    }

    function withdraw() external onlyOwner {
        uint256 balance = address(this).balance;
        require(balance > 0, "Insufficent balance");
        _withdraw(TEAM, teamWithdraw);
        _withdraw(CYBER, cyberWithdraw);
        _withdraw(MOVIE, address(this).balance);
        teamWithdraw=0;
        cyberWithdraw=0;
    }

        /** 
     * @dev calladitaInWallet
     * @return tokens id owned by the given address
     * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first.
     * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
     */
    function calladitaInWallet(address _owner) external view returns (uint256[] memory){
        uint256 ownerTokenCount = calladita.balanceOf(_owner);
        uint256[] memory ownedTokenIds = new uint256[](ownerTokenCount);
        uint256 currentTokenId = 0;
        uint256 ownedTokenIndex = 0;

        while ( ownedTokenIndex < ownerTokenCount && currentTokenId < 2412 ) { /// MAGIC number is the calladita max token count
            if (_caladitaSafeOwnerOf(currentTokenId) == _owner) {
                ownedTokenIds[ownedTokenIndex] = currentTokenId;
                unchecked{ ownedTokenIndex++;}
            }
            unchecked{ currentTokenId++;}
        }
        return ownedTokenIds;
    }

    function _caladitaSafeOwnerOf(uint256 tokenId) private view returns (address owner){
        try calladita.ownerOf(tokenId) returns (address v) {
            return v;
        } catch (bytes memory /*lowLevelData*/) {
            return address(0);
        }
    }

    ///////////// Add name and symbol for etherscan /////////////////
    function name() public pure returns (string memory) {
        return "Calladita Movie Tickets";
    }

    function symbol() public pure returns (string memory) {
        return "POP";
    }

    /**
    * Helper method to allow ETH withdraws.
    */
    function _withdraw(address _address, uint256 _amount) internal {
        (bool success, ) = _address.call{ value: _amount }("");
        require(success, "Failed to widthdraw Ether");
    }

    // contract can recieve Ether
    receive() external payable { 
        totalWithdraw += msg.value;
        if(totalWithdraw>240 ether){
            teamWithdraw += msg.value*15/100;
            cyberWithdraw += msg.value*15/100;
        }else{
            teamWithdraw+= msg.value*5/100;
        }
    }
}

File 2 of 15 : Mintable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.9;

import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.6.0/contracts/access/Ownable.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.6.0/contracts/utils/structs/EnumerableSet.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an minter) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the minter account will be the one that deploys the contract. This
 * can later be changed with {setMinter}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyMinter`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Mintable is Ownable {
    using EnumerableSet for EnumerableSet.AddressSet;
    // Track registered minters
    EnumerableSet.AddressSet private _minters;

    /**
     * @dev Initializes the contract setting the deployer as the initial minter.
     */
    constructor() {
    }

    /**
     * @dev Returns the address of the current minters.
     */
    function getMinters() external view returns (address[] memory minters) {
        minters = new address[](_minters.length());
        for (uint i = 0; i < _minters.length(); i++) {
            minters[i] = _minters.at(i);
        }
        return minters;
    }

    /**
     * @dev Throws if called by any account other than the Minter.
     */
    modifier onlyMinter() {
        require(owner() == _msgSender() || _minters.contains(msg.sender), "Mintable: caller is not the owner or minter");
        _;
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function addMinter(address newMinter) external virtual onlyOwner {
        require(newMinter != address(0), "Mintable: new minter is the zero address.");
        require(!_minters.contains(newMinter),"Mintable: Minter already exists.");
        _addMinter(newMinter);
    }
    
    /**
     * @dev Revoke a minter
     */
    function revokeMinter(address minter) external onlyOwner {
        if (_minters.contains(minter)) {
            _minters.remove(minter);
        }
    }

    function _addMinter(address newMinter) private {
        _minters.add(newMinter);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must 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 4 of 15 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 5 of 15 : ERC1155Supply.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC1155/extensions/ERC1155Supply.sol)

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of ERC1155 that adds tracking of total supply per id.
 *
 * Useful for scenarios where Fungible and Non-fungible tokens have to be
 * clearly identified. Note: While a totalSupply of 1 might mean the
 * corresponding is an NFT, there is no guarantees that no other token with the
 * same id are not going to be minted.
 */
abstract contract ERC1155Supply is ERC1155 {
    mapping(uint256 => uint256) private _totalSupply;

    /**
     * @dev Total amount of tokens in with a given id.
     */
    function totalSupply(uint256 id) public view virtual returns (uint256) {
        return _totalSupply[id];
    }

    /**
     * @dev Indicates whether any token exist with a given id, or not.
     */
    function exists(uint256 id) public view virtual returns (bool) {
        return ERC1155Supply.totalSupply(id) > 0;
    }

    /**
     * @dev See {ERC1155-_beforeTokenTransfer}.
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);

        if (from == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                _totalSupply[ids[i]] += amounts[i];
            }
        }

        if (to == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                uint256 id = ids[i];
                uint256 amount = amounts[i];
                uint256 supply = _totalSupply[id];
                require(supply >= amount, "ERC1155: burn amount exceeds totalSupply");
                unchecked {
                    _totalSupply[id] = supply - amount;
                }
            }
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./extensions/IERC1155MetadataURI.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

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

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

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

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: balance query for the zero address");
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
        public
        view
        virtual
        override
        returns (uint256[] memory)
    {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

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

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

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: transfer caller is not owner nor approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        _afterTokenTransfer(operator, from, to, ids, amounts, data);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        _afterTokenTransfer(operator, from, to, ids, amounts, data);

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

    /**
     * @dev Sets a new URI for all token types, by relying on the token type ID
     * substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * By this mechanism, any occurrence of the `\{id\}` substring in either the
     * URI or any of the amounts in the JSON file at said URI will be replaced by
     * clients with the token type ID.
     *
     * For example, the `https://token-cdn-domain/\{id\}.json` URI would be
     * interpreted by clients as
     * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
     * for token type ID 0x4cce0.
     *
     * See {uri}.
     *
     * Because these URIs cannot be meaningfully represented by the {URI} event,
     * this function emits no events.
     */
    function _setURI(string memory newuri) internal virtual {
        _uri = newuri;
    }

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        _balances[id][to] += amount;
        emit TransferSingle(operator, address(0), to, id, amount);

        _afterTokenTransfer(operator, address(0), to, ids, amounts, data);

        _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _afterTokenTransfer(operator, address(0), to, ids, amounts, data);

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `from`
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `from` must have at least `amount` tokens of token type `id`.
     */
    function _burn(
        address from,
        uint256 id,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }

        emit TransferSingle(operator, from, address(0), id, amount);

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(
        address from,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
        }

        emit TransferBatch(operator, from, address(0), ids, amounts);

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

    /**
     * @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, "ERC1155: setting approval status for self");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    /**
     * @dev Hook that is called after any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}

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

pragma solidity ^0.8.0;

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

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

File 10 of 15 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastValue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastValue;
                // Update the index for the moved value
                set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        assembly {
            result := store
        }

        return result;
    }
}

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC1155.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

File 14 of 15 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
     * @dev Handles the receipt of a single ERC1155 token type. This function is
     * called at the end of a `safeTransferFrom` after the balance has been updated.
     *
     * NOTE: To accept the transfer, this must return
     * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
     * (i.e. 0xf23a6e61, or its own function selector).
     *
     * @param operator The address which initiated the transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param id The ID of the token being transferred
     * @param value The amount of tokens being transferred
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
     */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
     * @dev Handles the receipt of a multiple ERC1155 token types. This function
     * is called at the end of a `safeBatchTransferFrom` after the balances have
     * been updated.
     *
     * NOTE: To accept the transfer(s), this must return
     * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
     * (i.e. 0xbc197c81, or its own function selector).
     *
     * @param operator The address which initiated the batch transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param ids An array containing ids of each token being transferred (order and length must match values array)
     * @param values An array containing amounts of each token being transferred (order and length must match ids array)
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
     */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

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

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_by","type":"address"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"priceChange","type":"event"},{"inputs":[],"name":"MAX_PURCHASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MOVIE_TOKEN_ID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MOVIE_TOKEN_MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"POPCORN_TOKEN_MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PORNCORN_TOKEN_ID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newMinter","type":"address"}],"name":"addMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256","name":"token","type":"uint256"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"calladitaInWallet","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"calladitaUsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cyberWithdraw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getMinters","outputs":[{"internalType":"address[]","name":"minters","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"mintWithCaladita","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintWithPopcorn","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"revokeMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"setContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newuri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"teamWithdraw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalWithdraw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"token","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405266470de4df8200006007553480156200001c57600080fd5b5060405180606001604052806036815260200162003e646036913962000042816200007c565b506200004e336200008e565b600b8054610100600160a81b03191674dcb68d47423d244319a5101eae78716affba86550017905562000251565b60026200008a828262000185565b5050565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200010b57607f821691505b6020821081036200012c57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200018057600081815260208120601f850160051c810160208610156200015b5750805b601f850160051c820191505b818110156200017c5782815560010162000167565b5050505b505050565b81516001600160401b03811115620001a157620001a1620000e0565b620001b981620001b28454620000f6565b8462000132565b602080601f831160018114620001f15760008415620001d85750858301515b600019600386901b1c1916600185901b1785556200017c565b600085815260208120601f198616915b82811015620002225788860151825594840194600190910190840162000201565b5085821015620002415787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b613c0380620002616000396000f3fe6080604052600436106102885760003560e01c8063715018a611610153578063a22cb465116100cb578063db21a1bd1161007f578063eb8d244411610064578063eb8d244414610807578063f242432a14610821578063f2fde38b1461084157600080fd5b8063db21a1bd146107a8578063e985e9c5146107be57600080fd5b8063bd85b039116100b0578063bd85b03914610745578063cfbb7d3614610772578063cfbd48851461078857600080fd5b8063a22cb46514610705578063a496dedf1461072557600080fd5b80638da5cb5b1161012257806394306dee1161010757806394306dee1461068c57806395d89b411461069f578063983b2d56146106e557600080fd5b80638da5cb5b1461064457806391b7f5ed1461066c57600080fd5b8063715018a6146105e457806375f890ab146105f957806377d3b19a146106195780637ff9b5961461062e57600080fd5b806331f81264116102015780634e1273f4116101b557806360ff5ed01161019a57806360ff5ed0146105985780636b32810b146105ad5780637146bd08146105cf57600080fd5b80634e1273f4146105495780634f558e791461056957600080fd5b80633b93e804116101e65780633b93e804146105085780633ccfd60b1461051e578063455fd6231461053357600080fd5b806331f81264146104c357806334918dfd146104f357600080fd5b80630e89341c116102585780631319acd91161023d5780631319acd91461045f57806317ac977e146104765780632eb2c2d6146104a357600080fd5b80630e89341c1461041f578063130c95ce1461043f57600080fd5b8062fdd58e1461034d57806301ffc9a71461038057806302fe5305146103b057806306fdde03146103d057600080fd5b366103485734600a600082825461029f9190613143565b9091555050600a54680d02ab486cedc0000010156103185760646102c434600f61315b565b6102ce9190613190565b600860008282546102df9190613143565b90915550606490506102f234600f61315b565b6102fc9190613190565b6009600082825461030d9190613143565b909155506103469050565b606461032534600561315b565b61032f9190613190565b600860008282546103409190613143565b90915550505b005b600080fd5b34801561035957600080fd5b5061036d6103683660046131b9565b610861565b6040519081526020015b60405180910390f35b34801561038c57600080fd5b506103a061039b3660046131fb565b61090d565b6040519015158152602001610377565b3480156103bc57600080fd5b506103466103cb3660046132b9565b6109a8565b3480156103dc57600080fd5b5060408051808201909152601781527f43616c6c6164697461204d6f766965205469636b65747300000000000000000060208201525b604051610377919061335e565b34801561042b57600080fd5b5061041261043a366004613371565b610a33565b34801561044b57600080fd5b5061034661045a3660046133d6565b610a92565b34801561046b57600080fd5b5061036d620186a081565b34801561048257600080fd5b50610496610491366004613418565b610db2565b6040516103779190613470565b3480156104af57600080fd5b506103466104be366004613538565b610eff565b3480156104cf57600080fd5b506103a06104de366004613371565b6000908152600c602052604090205460ff1690565b3480156104ff57600080fd5b50610346610f9a565b34801561051457600080fd5b5061036d614e2081565b34801561052a57600080fd5b5061034661102d565b34801561053f57600080fd5b5061036d600a5481565b34801561055557600080fd5b506104966105643660046135e6565b611140565b34801561057557600080fd5b506103a0610584366004613371565b600090815260036020526040902054151590565b3480156105a457600080fd5b5061036d600081565b3480156105b957600080fd5b506105c261127e565b60405161037791906136b3565b3480156105db57600080fd5b5061036d601a81565b3480156105f057600080fd5b5061034661132d565b34801561060557600080fd5b50610346610614366004613418565b611393565b34801561062557600080fd5b5061036d600181565b34801561063a57600080fd5b5061036d60075481565b34801561065057600080fd5b506004546040516001600160a01b039091168152602001610377565b34801561067857600080fd5b50610346610687366004613371565b611451565b61034661069a366004613371565b611511565b3480156106ab57600080fd5b5060408051808201909152600381527f504f5000000000000000000000000000000000000000000000000000000000006020820152610412565b3480156106f157600080fd5b50610346610700366004613418565b611850565b34801561071157600080fd5b50610346610720366004613700565b611987565b34801561073157600080fd5b5061034661074036600461373e565b611992565b34801561075157600080fd5b5061036d610760366004613371565b60009081526003602052604090205490565b34801561077e57600080fd5b5061036d60085481565b34801561079457600080fd5b506103466107a3366004613418565b611bb0565b3480156107b457600080fd5b5061036d60095481565b3480156107ca57600080fd5b506103a06107d936600461378f565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561081357600080fd5b50600b546103a09060ff1681565b34801561082d57600080fd5b5061034661083c3660046137bd565b611c25565b34801561084d57600080fd5b5061034661085c366004613418565b611cc0565b60006001600160a01b0383166108e45760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b031982167fd9b67a2600000000000000000000000000000000000000000000000000000000148061097057506001600160e01b031982167f0e89341c00000000000000000000000000000000000000000000000000000000145b8061090757507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610907565b6004546001600160a01b03163314806109c757506109c7600533611d9f565b610a275760405162461bcd60e51b815260206004820152602b60248201527f4d696e7461626c653a2063616c6c6572206973206e6f7420746865206f776e6560448201526a391037b91036b4b73a32b960a91b60648201526084016108db565b610a3081611dc1565b50565b60606000610a4083611dcd565b90506000815111610a605760405180602001604052806000815250610a8b565b80610a6a84611e61565b604051602001610a7b929190613826565b6040516020818303038152906040525b9392505050565b600b54819060ff16610ae65760405162461bcd60e51b815260206004820152601360248201527f53616c65204e4f5420616374697665207965740000000000000000000000000060448201526064016108db565b80600003610b365760405162461bcd60e51b815260206004820152601860248201527f6e756d6265724f664e6674732063616e6e6f742062652030000000000000000060448201526064016108db565b601a8110610b905760405162461bcd60e51b815260206004820152602160248201527f43616e206f6e6c79206d696e7420323520746f6b656e7320617420612074696d6044820152606560f81b60648201526084016108db565b6000805260036020527f3617319a054d772f909f7c479a2cebe5066e836a939412e32403c99029b92eff54614e2090610bca908390613143565b1115610c2b5760405162461bcd60e51b815260206004820152602a60248201527f507572636861736520776f756c6420657863656564206d617820737570706c79604482015269206f6620546f6b656e7360b01b60648201526084016108db565b600082815b81811015610d6857600c6000878784818110610c4e57610c4e613855565b602090810292909201358352508101919091526040016000205460ff16158015610d0e5750600b54339061010090046001600160a01b0316636352211e888885818110610c9d57610c9d613855565b905060200201356040518263ffffffff1660e01b8152600401610cc291815260200190565b602060405180830381865afa158015610cdf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d03919061386b565b6001600160a01b0316145b15610d60576001600c6000888885818110610d2b57610d2b613855565b90506020020135815260200190815260200160002060006101000a81548160ff02191690831515021790555082806001019350505b600101610c30565b50610d853360008460405180602001604052806000815250611f9e565b610dab336001610d9687600a61315b565b60405180602001604052806000815250611f9e565b5050505050565b600b546040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152606092600092610100909104909116906370a0823190602401602060405180830381865afa158015610e21573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e459190613888565b905060008167ffffffffffffffff811115610e6257610e62613218565b604051908082528060200260200182016040528015610e8b578160200160208202803683370190505b5090506000805b8381108015610ea2575061096c82105b15610ef557856001600160a01b0316610eba836120dd565b6001600160a01b031603610eea5781838281518110610edb57610edb613855565b60209081029190910101526001015b600190910190610e92565b5090949350505050565b6001600160a01b038516331480610f1b5750610f1b85336107d9565b610f8d5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f766564000000000000000000000000000060648201526084016108db565b610dab858585858561219e565b6004546001600160a01b0316331480610fb95750610fb9600533611d9f565b6110195760405162461bcd60e51b815260206004820152602b60248201527f4d696e7461626c653a2063616c6c6572206973206e6f7420746865206f776e6560448201526a391037b91036b4b73a32b960a91b60648201526084016108db565b600b805460ff19811660ff90911615179055565b6004546001600160a01b031633146110875760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108db565b47806110d55760405162461bcd60e51b815260206004820152601360248201527f496e737566666963656e742062616c616e63650000000000000000000000000060448201526064016108db565b6110f573d105ea47f73a120fd2efe1151e73231a0f9445fd600854612417565b61111573a422bfff5daba6eeefaff84debf609edf0868c5f600954612417565b611133731bb96b19858b12d91b8512580147a03cca62c29e47612417565b5060006008819055600955565b606081518351146111b95760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d61746368000000000000000000000000000000000000000000000060648201526084016108db565b6000835167ffffffffffffffff8111156111d5576111d5613218565b6040519080825280602002602001820160405280156111fe578160200160208202803683370190505b50905060005b84518110156112765761124985828151811061122257611222613855565b602002602001015185838151811061123c5761123c613855565b6020026020010151610861565b82828151811061125b5761125b613855565b602090810291909101015261126f816138a1565b9050611204565b509392505050565b606061128a60056124bf565b67ffffffffffffffff8111156112a2576112a2613218565b6040519080825280602002602001820160405280156112cb578160200160208202803683370190505b50905060005b6112db60056124bf565b811015611329576112ed6005826124c9565b8282815181106112ff576112ff613855565b6001600160a01b039092166020928302919091019091015280611321816138a1565b9150506112d1565b5090565b6004546001600160a01b031633146113875760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108db565b61139160006124d5565b565b6004546001600160a01b03163314806113b257506113b2600533611d9f565b6114125760405162461bcd60e51b815260206004820152602b60248201527f4d696e7461626c653a2063616c6c6572206973206e6f7420746865206f776e6560448201526a391037b91036b4b73a32b960a91b60648201526084016108db565b600b80546001600160a01b03909216610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff909216919091179055565b6004546001600160a01b03163314806114705750611470600533611d9f565b6114d05760405162461bcd60e51b815260206004820152602b60248201527f4d696e7461626c653a2063616c6c6572206973206e6f7420746865206f776e6560448201526a391037b91036b4b73a32b960a91b60648201526084016108db565b600781905560408051338152602081018390527f2a270679203ad5c6be2af882c755f81ff060752614a378c1804df57dd7d2add0910160405180910390a150565b600b54819060ff166115655760405162461bcd60e51b815260206004820152601360248201527f53616c65204e4f5420616374697665207965740000000000000000000000000060448201526064016108db565b806000036115b55760405162461bcd60e51b815260206004820152601860248201527f6e756d6265724f664e6674732063616e6e6f742062652030000000000000000060448201526064016108db565b601a811061160f5760405162461bcd60e51b815260206004820152602160248201527f43616e206f6e6c79206d696e7420323520746f6b656e7320617420612074696d6044820152606560f81b60648201526084016108db565b6000805260036020527f3617319a054d772f909f7c479a2cebe5066e836a939412e32403c99029b92eff54614e2090611649908390613143565b11156116aa5760405162461bcd60e51b815260206004820152602a60248201527f507572636861736520776f756c6420657863656564206d617820737570706c79604482015269206f6620546f6b656e7360b01b60648201526084016108db565b816116b6336001610861565b10156117045760405162461bcd60e51b815260206004820152601260248201527f6e6f7420656e6f75676820706f70636f726e000000000000000000000000000060448201526064016108db565b3482600754611713919061315b565b11156117615760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f72726563740060448201526064016108db565b61177d3360008460405180602001604052806000815250611f9e565b6117893360018461253f565b6117933383612702565b34600a60008282546117a59190613143565b9091555050600a54680d02ab486cedc00000101561181e5760646117ca34600f61315b565b6117d49190613190565b600860008282546117e59190613143565b90915550606490506117f834600f61315b565b6118029190613190565b600960008282546118139190613143565b9091555061184c9050565b606461182b34600561315b565b6118359190613190565b600860008282546118469190613143565b90915550505b5050565b6004546001600160a01b031633146118aa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108db565b6001600160a01b0381166119265760405162461bcd60e51b815260206004820152602960248201527f4d696e7461626c653a206e6577206d696e74657220697320746865207a65726f60448201527f20616464726573732e000000000000000000000000000000000000000000000060648201526084016108db565b611931600582611d9f565b1561197e5760405162461bcd60e51b815260206004820181905260248201527f4d696e7461626c653a204d696e74657220616c7265616479206578697374732e60448201526064016108db565b610a3081612865565b61184c338383612870565b6004546001600160a01b03163314806119b157506119b1600533611d9f565b611a115760405162461bcd60e51b815260206004820152602b60248201527f4d696e7461626c653a2063616c6c6572206973206e6f7420746865206f776e6560448201526a391037b91036b4b73a32b960a91b60648201526084016108db565b81600003611ab8576000805260036020527f3617319a054d772f909f7c479a2cebe5066e836a939412e32403c99029b92eff54614e2090611a53908390613143565b1115611ab35760405162461bcd60e51b815260206004820152602960248201527f5265736572766520776f756c6420657863656564206d617820737570706c79206044820152686f6620546f6b656e7360b81b60648201526084016108db565b611b53565b620186a0600081905260036020527fca02ae14894a22dae5020031c1c44340da41dcc4c09b27873a86d76cabbe531954611af3908390613143565b1115611b535760405162461bcd60e51b815260206004820152602960248201527f5265736572766520776f756c6420657863656564206d617820737570706c79206044820152686f6620546f6b656e7360b81b60648201526084016108db565b8260005b81811015611ba857611ba0868683818110611b7457611b74613855565b9050602002016020810190611b899190613418565b858560405180602001604052806000815250611f9e565b600101611b57565b505050505050565b6004546001600160a01b03163314611c0a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108db565b611c15600582611d9f565b15610a305761184c600582612964565b6001600160a01b038516331480611c415750611c4185336107d9565b611cb35760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f766564000000000000000000000000000000000000000000000060648201526084016108db565b610dab8585858585612979565b6004546001600160a01b03163314611d1a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108db565b6001600160a01b038116611d965760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016108db565b610a30816124d5565b6001600160a01b03811660009081526001830160205260408120541515610a8b565b600261184c828261393a565b606060028054611ddc906138ba565b80601f0160208091040260200160405190810160405280929190818152602001828054611e08906138ba565b8015611e555780601f10611e2a57610100808354040283529160200191611e55565b820191906000526020600020905b815481529060010190602001808311611e3857829003601f168201915b50505050509050919050565b606081600003611ea457505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115611ece5780611eb8816138a1565b9150611ec79050600a83613190565b9150611ea8565b60008167ffffffffffffffff811115611ee957611ee9613218565b6040519080825280601f01601f191660200182016040528015611f13576020820181803683370190505b5090505b8415611f9657611f286001836139fa565b9150611f35600a86613a11565b611f40906030613143565b60f81b818381518110611f5557611f55613855565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611f8f600a86613190565b9450611f17565b949350505050565b6001600160a01b03841661201a5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016108db565b33600061202685612b32565b9050600061203385612b32565b905061204483600089858589612b7d565b6000868152602081815260408083206001600160a01b038b16845290915281208054879290612074908490613143565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46120d483600089898989612d0b565b50505050505050565b600b546040517f6352211e0000000000000000000000000000000000000000000000000000000081526004810183905260009161010090046001600160a01b031690636352211e90602401602060405180830381865afa925050508015612161575060408051601f3d908101601f1916820190925261215e9181019061386b565b60015b610907573d80801561218f576040519150601f19603f3d011682016040523d82523d6000602084013e612194565b606091505b5060009392505050565b81518351146122155760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d6174636800000000000000000000000000000000000000000000000060648201526084016108db565b6001600160a01b0384166122795760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b60648201526084016108db565b33612288818787878787612b7d565b60005b84518110156123b15760008582815181106122a8576122a8613855565b6020026020010151905060008583815181106122c6576122c6613855565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156123595760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b60648201526084016108db565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290612396908490613143565b92505081905550505050806123aa906138a1565b905061228b565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612401929190613a25565b60405180910390a4611ba8818787878787612eb0565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612464576040519150601f19603f3d011682016040523d82523d6000602084013e612469565b606091505b50509050806124ba5760405162461bcd60e51b815260206004820152601960248201527f4661696c656420746f207769647468647261772045746865720000000000000060448201526064016108db565b505050565b6000610907825490565b6000610a8b8383612fac565b600480546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0383166125bb5760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016108db565b3360006125c784612b32565b905060006125d484612b32565b90506125f483876000858560405180602001604052806000815250612b7d565b6000858152602081815260408083206001600160a01b038a1684529091529020548481101561268a5760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c60448201527f616e63650000000000000000000000000000000000000000000000000000000060648201526084016108db565b6000868152602081815260408083206001600160a01b038b81168086529184528285208a8703905582518b81529384018a90529092908816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46040805160208101909152600090526120d4565b6127106001620186a06139fa565b600160005260036020527fa15bc60c955c405d20d9149c709e2460f1c2d9a497496a7f46004d1772c3054c541115612746575050565b6000805260036020527f3617319a054d772f909f7c479a2cebe5066e836a939412e32403c99029b92eff54610bb8111561278b5761184c826001610d9684600561315b565b6000805260036020527f3617319a054d772f909f7c479a2cebe5066e836a939412e32403c99029b92eff5461138811156127d05761184c826001610d9684600361315b565b6000805260036020527f3617319a054d772f909f7c479a2cebe5066e836a939412e32403c99029b92eff5461271011156128155761184c826001610d9684600261315b565b6000805260036020527f3617319a054d772f909f7c479a2cebe5066e836a939412e32403c99029b92eff54613a98111561184c5761184c8260018060405180602001604052806000815250611f9e565b61184c600582612fd6565b816001600160a01b0316836001600160a01b0316036128f75760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c66000000000000000000000000000000000000000000000060648201526084016108db565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000610a8b836001600160a01b038416612feb565b6001600160a01b0384166129dd5760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b60648201526084016108db565b3360006129e985612b32565b905060006129f685612b32565b9050612a06838989858589612b7d565b6000868152602081815260408083206001600160a01b038c16845290915290205485811015612a8a5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b60648201526084016108db565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a16825281208054889290612ac7908490613143565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612b27848a8a8a8a8a612d0b565b505050505050505050565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612b6c57612b6c613855565b602090810291909101015292915050565b6001600160a01b038516612c045760005b8351811015612c0257828181518110612ba957612ba9613855565b602002602001015160036000868481518110612bc757612bc7613855565b602002602001015181526020019081526020016000206000828254612bec9190613143565b90915550612bfb9050816138a1565b9050612b8e565b505b6001600160a01b038416611ba85760005b83518110156120d4576000848281518110612c3257612c32613855565b602002602001015190506000848381518110612c5057612c50613855565b6020026020010151905060006003600084815260200190815260200160002054905081811015612ce85760405162461bcd60e51b815260206004820152602860248201527f455243313135353a206275726e20616d6f756e74206578636565647320746f7460448201527f616c537570706c7900000000000000000000000000000000000000000000000060648201526084016108db565b60009283526003602052604090922091039055612d04816138a1565b9050612c15565b6001600160a01b0384163b15611ba85760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612d4f9089908990889088908890600401613a53565b6020604051808303816000875af1925050508015612d8a575060408051601f3d908101601f19168201909252612d8791810190613a96565b60015b612e3f57612d96613ab3565b806308c379a003612dcf5750612daa613acf565b80612db55750612dd1565b8060405162461bcd60e51b81526004016108db919061335e565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e74657200000000000000000000000060648201526084016108db565b6001600160e01b0319811663f23a6e6160e01b146120d45760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b60648201526084016108db565b6001600160a01b0384163b15611ba85760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612ef49089908990889088908890600401613b59565b6020604051808303816000875af1925050508015612f2f575060408051601f3d908101601f19168201909252612f2c91810190613a96565b60015b612f3b57612d96613ab3565b6001600160e01b0319811663bc197c8160e01b146120d45760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b60648201526084016108db565b6000826000018281548110612fc357612fc3613855565b9060005260206000200154905092915050565b6000610a8b836001600160a01b0384166130de565b600081815260018301602052604081205480156130d457600061300f6001836139fa565b8554909150600090613023906001906139fa565b905081811461308857600086600001828154811061304357613043613855565b906000526020600020015490508087600001848154811061306657613066613855565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061309957613099613bb7565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610907565b6000915050610907565b600081815260018301602052604081205461312557508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610907565b506000610907565b634e487b7160e01b600052601160045260246000fd5b600082198211156131565761315661312d565b500190565b60008160001904831182151516156131755761317561312d565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261319f5761319f61317a565b500490565b6001600160a01b0381168114610a3057600080fd5b600080604083850312156131cc57600080fd5b82356131d7816131a4565b946020939093013593505050565b6001600160e01b031981168114610a3057600080fd5b60006020828403121561320d57600080fd5b8135610a8b816131e5565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff8111828210171561325457613254613218565b6040525050565b600067ffffffffffffffff83111561327557613275613218565b60405161328c601f8501601f19166020018261322e565b8091508381528484840111156132a157600080fd5b83836020830137600060208583010152509392505050565b6000602082840312156132cb57600080fd5b813567ffffffffffffffff8111156132e257600080fd5b8201601f810184136132f357600080fd5b611f968482356020840161325b565b60005b8381101561331d578181015183820152602001613305565b8381111561332c576000848401525b50505050565b6000815180845261334a816020860160208601613302565b601f01601f19169290920160200192915050565b602081526000610a8b6020830184613332565b60006020828403121561338357600080fd5b5035919050565b60008083601f84011261339c57600080fd5b50813567ffffffffffffffff8111156133b457600080fd5b6020830191508360208260051b85010111156133cf57600080fd5b9250929050565b600080602083850312156133e957600080fd5b823567ffffffffffffffff81111561340057600080fd5b61340c8582860161338a565b90969095509350505050565b60006020828403121561342a57600080fd5b8135610a8b816131a4565b600081518084526020808501945080840160005b8381101561346557815187529582019590820190600101613449565b509495945050505050565b602081526000610a8b6020830184613435565b600067ffffffffffffffff82111561349d5761349d613218565b5060051b60200190565b600082601f8301126134b857600080fd5b813560206134c582613483565b6040516134d2828261322e565b83815260059390931b85018201928281019150868411156134f257600080fd5b8286015b8481101561350d57803583529183019183016134f6565b509695505050505050565b600082601f83011261352957600080fd5b610a8b8383356020850161325b565b600080600080600060a0868803121561355057600080fd5b853561355b816131a4565b9450602086013561356b816131a4565b9350604086013567ffffffffffffffff8082111561358857600080fd5b61359489838a016134a7565b945060608801359150808211156135aa57600080fd5b6135b689838a016134a7565b935060808801359150808211156135cc57600080fd5b506135d988828901613518565b9150509295509295909350565b600080604083850312156135f957600080fd5b823567ffffffffffffffff8082111561361157600080fd5b818501915085601f83011261362557600080fd5b8135602061363282613483565b60405161363f828261322e565b83815260059390931b850182019282810191508984111561365f57600080fd5b948201945b83861015613686578535613677816131a4565b82529482019490820190613664565b9650508601359250508082111561369c57600080fd5b506136a9858286016134a7565b9150509250929050565b6020808252825182820181905260009190848201906040850190845b818110156136f45783516001600160a01b0316835292840192918401916001016136cf565b50909695505050505050565b6000806040838503121561371357600080fd5b823561371e816131a4565b91506020830135801515811461373357600080fd5b809150509250929050565b6000806000806060858703121561375457600080fd5b843567ffffffffffffffff81111561376b57600080fd5b6137778782880161338a565b90989097506020870135966040013595509350505050565b600080604083850312156137a257600080fd5b82356137ad816131a4565b91506020830135613733816131a4565b600080600080600060a086880312156137d557600080fd5b85356137e0816131a4565b945060208601356137f0816131a4565b93506040860135925060608601359150608086013567ffffffffffffffff81111561381a57600080fd5b6135d988828901613518565b60008351613838818460208801613302565b83519083019061384c818360208801613302565b01949350505050565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561387d57600080fd5b8151610a8b816131a4565b60006020828403121561389a57600080fd5b5051919050565b6000600182016138b3576138b361312d565b5060010190565b600181811c908216806138ce57607f821691505b6020821081036138ee57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156124ba57600081815260208120601f850160051c8101602086101561391b5750805b601f850160051c820191505b81811015611ba857828155600101613927565b815167ffffffffffffffff81111561395457613954613218565b6139688161396284546138ba565b846138f4565b602080601f83116001811461399d57600084156139855750858301515b600019600386901b1c1916600185901b178555611ba8565b600085815260208120601f198616915b828110156139cc578886015182559484019460019091019084016139ad565b50858210156139ea5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082821015613a0c57613a0c61312d565b500390565b600082613a2057613a2061317a565b500690565b604081526000613a386040830185613435565b8281036020840152613a4a8185613435565b95945050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a06080830152613a8b60a0830184613332565b979650505050505050565b600060208284031215613aa857600080fd5b8151610a8b816131e5565b600060033d1115613acc5760046000803e5060005160e01c5b90565b600060443d1015613add5790565b6040516003193d81016004833e81513d67ffffffffffffffff8160248401118184111715613b0d57505050505090565b8285019150815181811115613b255750505050505090565b843d8701016020828501011115613b3f5750505050505090565b613b4e6020828601018761322e565b509095945050505050565b60006001600160a01b03808816835280871660208401525060a06040830152613b8560a0830186613435565b8281036060840152613b978186613435565b90508281036080840152613bab8185613332565b98975050505050505050565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220239288d9418b5bc4efeb9788b27b5eb5e12c9074bfa9cabb57196bfc71d5cc2364736f6c634300080f0033697066733a2f2f516d5379743954384773787434736f327a63423573434d6a7a516866687339766d6f3377684c684e61774b6657582f

Deployed Bytecode

0x6080604052600436106102885760003560e01c8063715018a611610153578063a22cb465116100cb578063db21a1bd1161007f578063eb8d244411610064578063eb8d244414610807578063f242432a14610821578063f2fde38b1461084157600080fd5b8063db21a1bd146107a8578063e985e9c5146107be57600080fd5b8063bd85b039116100b0578063bd85b03914610745578063cfbb7d3614610772578063cfbd48851461078857600080fd5b8063a22cb46514610705578063a496dedf1461072557600080fd5b80638da5cb5b1161012257806394306dee1161010757806394306dee1461068c57806395d89b411461069f578063983b2d56146106e557600080fd5b80638da5cb5b1461064457806391b7f5ed1461066c57600080fd5b8063715018a6146105e457806375f890ab146105f957806377d3b19a146106195780637ff9b5961461062e57600080fd5b806331f81264116102015780634e1273f4116101b557806360ff5ed01161019a57806360ff5ed0146105985780636b32810b146105ad5780637146bd08146105cf57600080fd5b80634e1273f4146105495780634f558e791461056957600080fd5b80633b93e804116101e65780633b93e804146105085780633ccfd60b1461051e578063455fd6231461053357600080fd5b806331f81264146104c357806334918dfd146104f357600080fd5b80630e89341c116102585780631319acd91161023d5780631319acd91461045f57806317ac977e146104765780632eb2c2d6146104a357600080fd5b80630e89341c1461041f578063130c95ce1461043f57600080fd5b8062fdd58e1461034d57806301ffc9a71461038057806302fe5305146103b057806306fdde03146103d057600080fd5b366103485734600a600082825461029f9190613143565b9091555050600a54680d02ab486cedc0000010156103185760646102c434600f61315b565b6102ce9190613190565b600860008282546102df9190613143565b90915550606490506102f234600f61315b565b6102fc9190613190565b6009600082825461030d9190613143565b909155506103469050565b606461032534600561315b565b61032f9190613190565b600860008282546103409190613143565b90915550505b005b600080fd5b34801561035957600080fd5b5061036d6103683660046131b9565b610861565b6040519081526020015b60405180910390f35b34801561038c57600080fd5b506103a061039b3660046131fb565b61090d565b6040519015158152602001610377565b3480156103bc57600080fd5b506103466103cb3660046132b9565b6109a8565b3480156103dc57600080fd5b5060408051808201909152601781527f43616c6c6164697461204d6f766965205469636b65747300000000000000000060208201525b604051610377919061335e565b34801561042b57600080fd5b5061041261043a366004613371565b610a33565b34801561044b57600080fd5b5061034661045a3660046133d6565b610a92565b34801561046b57600080fd5b5061036d620186a081565b34801561048257600080fd5b50610496610491366004613418565b610db2565b6040516103779190613470565b3480156104af57600080fd5b506103466104be366004613538565b610eff565b3480156104cf57600080fd5b506103a06104de366004613371565b6000908152600c602052604090205460ff1690565b3480156104ff57600080fd5b50610346610f9a565b34801561051457600080fd5b5061036d614e2081565b34801561052a57600080fd5b5061034661102d565b34801561053f57600080fd5b5061036d600a5481565b34801561055557600080fd5b506104966105643660046135e6565b611140565b34801561057557600080fd5b506103a0610584366004613371565b600090815260036020526040902054151590565b3480156105a457600080fd5b5061036d600081565b3480156105b957600080fd5b506105c261127e565b60405161037791906136b3565b3480156105db57600080fd5b5061036d601a81565b3480156105f057600080fd5b5061034661132d565b34801561060557600080fd5b50610346610614366004613418565b611393565b34801561062557600080fd5b5061036d600181565b34801561063a57600080fd5b5061036d60075481565b34801561065057600080fd5b506004546040516001600160a01b039091168152602001610377565b34801561067857600080fd5b50610346610687366004613371565b611451565b61034661069a366004613371565b611511565b3480156106ab57600080fd5b5060408051808201909152600381527f504f5000000000000000000000000000000000000000000000000000000000006020820152610412565b3480156106f157600080fd5b50610346610700366004613418565b611850565b34801561071157600080fd5b50610346610720366004613700565b611987565b34801561073157600080fd5b5061034661074036600461373e565b611992565b34801561075157600080fd5b5061036d610760366004613371565b60009081526003602052604090205490565b34801561077e57600080fd5b5061036d60085481565b34801561079457600080fd5b506103466107a3366004613418565b611bb0565b3480156107b457600080fd5b5061036d60095481565b3480156107ca57600080fd5b506103a06107d936600461378f565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561081357600080fd5b50600b546103a09060ff1681565b34801561082d57600080fd5b5061034661083c3660046137bd565b611c25565b34801561084d57600080fd5b5061034661085c366004613418565b611cc0565b60006001600160a01b0383166108e45760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b031982167fd9b67a2600000000000000000000000000000000000000000000000000000000148061097057506001600160e01b031982167f0e89341c00000000000000000000000000000000000000000000000000000000145b8061090757507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610907565b6004546001600160a01b03163314806109c757506109c7600533611d9f565b610a275760405162461bcd60e51b815260206004820152602b60248201527f4d696e7461626c653a2063616c6c6572206973206e6f7420746865206f776e6560448201526a391037b91036b4b73a32b960a91b60648201526084016108db565b610a3081611dc1565b50565b60606000610a4083611dcd565b90506000815111610a605760405180602001604052806000815250610a8b565b80610a6a84611e61565b604051602001610a7b929190613826565b6040516020818303038152906040525b9392505050565b600b54819060ff16610ae65760405162461bcd60e51b815260206004820152601360248201527f53616c65204e4f5420616374697665207965740000000000000000000000000060448201526064016108db565b80600003610b365760405162461bcd60e51b815260206004820152601860248201527f6e756d6265724f664e6674732063616e6e6f742062652030000000000000000060448201526064016108db565b601a8110610b905760405162461bcd60e51b815260206004820152602160248201527f43616e206f6e6c79206d696e7420323520746f6b656e7320617420612074696d6044820152606560f81b60648201526084016108db565b6000805260036020527f3617319a054d772f909f7c479a2cebe5066e836a939412e32403c99029b92eff54614e2090610bca908390613143565b1115610c2b5760405162461bcd60e51b815260206004820152602a60248201527f507572636861736520776f756c6420657863656564206d617820737570706c79604482015269206f6620546f6b656e7360b01b60648201526084016108db565b600082815b81811015610d6857600c6000878784818110610c4e57610c4e613855565b602090810292909201358352508101919091526040016000205460ff16158015610d0e5750600b54339061010090046001600160a01b0316636352211e888885818110610c9d57610c9d613855565b905060200201356040518263ffffffff1660e01b8152600401610cc291815260200190565b602060405180830381865afa158015610cdf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d03919061386b565b6001600160a01b0316145b15610d60576001600c6000888885818110610d2b57610d2b613855565b90506020020135815260200190815260200160002060006101000a81548160ff02191690831515021790555082806001019350505b600101610c30565b50610d853360008460405180602001604052806000815250611f9e565b610dab336001610d9687600a61315b565b60405180602001604052806000815250611f9e565b5050505050565b600b546040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152606092600092610100909104909116906370a0823190602401602060405180830381865afa158015610e21573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e459190613888565b905060008167ffffffffffffffff811115610e6257610e62613218565b604051908082528060200260200182016040528015610e8b578160200160208202803683370190505b5090506000805b8381108015610ea2575061096c82105b15610ef557856001600160a01b0316610eba836120dd565b6001600160a01b031603610eea5781838281518110610edb57610edb613855565b60209081029190910101526001015b600190910190610e92565b5090949350505050565b6001600160a01b038516331480610f1b5750610f1b85336107d9565b610f8d5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f766564000000000000000000000000000060648201526084016108db565b610dab858585858561219e565b6004546001600160a01b0316331480610fb95750610fb9600533611d9f565b6110195760405162461bcd60e51b815260206004820152602b60248201527f4d696e7461626c653a2063616c6c6572206973206e6f7420746865206f776e6560448201526a391037b91036b4b73a32b960a91b60648201526084016108db565b600b805460ff19811660ff90911615179055565b6004546001600160a01b031633146110875760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108db565b47806110d55760405162461bcd60e51b815260206004820152601360248201527f496e737566666963656e742062616c616e63650000000000000000000000000060448201526064016108db565b6110f573d105ea47f73a120fd2efe1151e73231a0f9445fd600854612417565b61111573a422bfff5daba6eeefaff84debf609edf0868c5f600954612417565b611133731bb96b19858b12d91b8512580147a03cca62c29e47612417565b5060006008819055600955565b606081518351146111b95760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d61746368000000000000000000000000000000000000000000000060648201526084016108db565b6000835167ffffffffffffffff8111156111d5576111d5613218565b6040519080825280602002602001820160405280156111fe578160200160208202803683370190505b50905060005b84518110156112765761124985828151811061122257611222613855565b602002602001015185838151811061123c5761123c613855565b6020026020010151610861565b82828151811061125b5761125b613855565b602090810291909101015261126f816138a1565b9050611204565b509392505050565b606061128a60056124bf565b67ffffffffffffffff8111156112a2576112a2613218565b6040519080825280602002602001820160405280156112cb578160200160208202803683370190505b50905060005b6112db60056124bf565b811015611329576112ed6005826124c9565b8282815181106112ff576112ff613855565b6001600160a01b039092166020928302919091019091015280611321816138a1565b9150506112d1565b5090565b6004546001600160a01b031633146113875760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108db565b61139160006124d5565b565b6004546001600160a01b03163314806113b257506113b2600533611d9f565b6114125760405162461bcd60e51b815260206004820152602b60248201527f4d696e7461626c653a2063616c6c6572206973206e6f7420746865206f776e6560448201526a391037b91036b4b73a32b960a91b60648201526084016108db565b600b80546001600160a01b03909216610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff909216919091179055565b6004546001600160a01b03163314806114705750611470600533611d9f565b6114d05760405162461bcd60e51b815260206004820152602b60248201527f4d696e7461626c653a2063616c6c6572206973206e6f7420746865206f776e6560448201526a391037b91036b4b73a32b960a91b60648201526084016108db565b600781905560408051338152602081018390527f2a270679203ad5c6be2af882c755f81ff060752614a378c1804df57dd7d2add0910160405180910390a150565b600b54819060ff166115655760405162461bcd60e51b815260206004820152601360248201527f53616c65204e4f5420616374697665207965740000000000000000000000000060448201526064016108db565b806000036115b55760405162461bcd60e51b815260206004820152601860248201527f6e756d6265724f664e6674732063616e6e6f742062652030000000000000000060448201526064016108db565b601a811061160f5760405162461bcd60e51b815260206004820152602160248201527f43616e206f6e6c79206d696e7420323520746f6b656e7320617420612074696d6044820152606560f81b60648201526084016108db565b6000805260036020527f3617319a054d772f909f7c479a2cebe5066e836a939412e32403c99029b92eff54614e2090611649908390613143565b11156116aa5760405162461bcd60e51b815260206004820152602a60248201527f507572636861736520776f756c6420657863656564206d617820737570706c79604482015269206f6620546f6b656e7360b01b60648201526084016108db565b816116b6336001610861565b10156117045760405162461bcd60e51b815260206004820152601260248201527f6e6f7420656e6f75676820706f70636f726e000000000000000000000000000060448201526064016108db565b3482600754611713919061315b565b11156117615760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f72726563740060448201526064016108db565b61177d3360008460405180602001604052806000815250611f9e565b6117893360018461253f565b6117933383612702565b34600a60008282546117a59190613143565b9091555050600a54680d02ab486cedc00000101561181e5760646117ca34600f61315b565b6117d49190613190565b600860008282546117e59190613143565b90915550606490506117f834600f61315b565b6118029190613190565b600960008282546118139190613143565b9091555061184c9050565b606461182b34600561315b565b6118359190613190565b600860008282546118469190613143565b90915550505b5050565b6004546001600160a01b031633146118aa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108db565b6001600160a01b0381166119265760405162461bcd60e51b815260206004820152602960248201527f4d696e7461626c653a206e6577206d696e74657220697320746865207a65726f60448201527f20616464726573732e000000000000000000000000000000000000000000000060648201526084016108db565b611931600582611d9f565b1561197e5760405162461bcd60e51b815260206004820181905260248201527f4d696e7461626c653a204d696e74657220616c7265616479206578697374732e60448201526064016108db565b610a3081612865565b61184c338383612870565b6004546001600160a01b03163314806119b157506119b1600533611d9f565b611a115760405162461bcd60e51b815260206004820152602b60248201527f4d696e7461626c653a2063616c6c6572206973206e6f7420746865206f776e6560448201526a391037b91036b4b73a32b960a91b60648201526084016108db565b81600003611ab8576000805260036020527f3617319a054d772f909f7c479a2cebe5066e836a939412e32403c99029b92eff54614e2090611a53908390613143565b1115611ab35760405162461bcd60e51b815260206004820152602960248201527f5265736572766520776f756c6420657863656564206d617820737570706c79206044820152686f6620546f6b656e7360b81b60648201526084016108db565b611b53565b620186a0600081905260036020527fca02ae14894a22dae5020031c1c44340da41dcc4c09b27873a86d76cabbe531954611af3908390613143565b1115611b535760405162461bcd60e51b815260206004820152602960248201527f5265736572766520776f756c6420657863656564206d617820737570706c79206044820152686f6620546f6b656e7360b81b60648201526084016108db565b8260005b81811015611ba857611ba0868683818110611b7457611b74613855565b9050602002016020810190611b899190613418565b858560405180602001604052806000815250611f9e565b600101611b57565b505050505050565b6004546001600160a01b03163314611c0a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108db565b611c15600582611d9f565b15610a305761184c600582612964565b6001600160a01b038516331480611c415750611c4185336107d9565b611cb35760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f766564000000000000000000000000000000000000000000000060648201526084016108db565b610dab8585858585612979565b6004546001600160a01b03163314611d1a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108db565b6001600160a01b038116611d965760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016108db565b610a30816124d5565b6001600160a01b03811660009081526001830160205260408120541515610a8b565b600261184c828261393a565b606060028054611ddc906138ba565b80601f0160208091040260200160405190810160405280929190818152602001828054611e08906138ba565b8015611e555780601f10611e2a57610100808354040283529160200191611e55565b820191906000526020600020905b815481529060010190602001808311611e3857829003601f168201915b50505050509050919050565b606081600003611ea457505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115611ece5780611eb8816138a1565b9150611ec79050600a83613190565b9150611ea8565b60008167ffffffffffffffff811115611ee957611ee9613218565b6040519080825280601f01601f191660200182016040528015611f13576020820181803683370190505b5090505b8415611f9657611f286001836139fa565b9150611f35600a86613a11565b611f40906030613143565b60f81b818381518110611f5557611f55613855565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611f8f600a86613190565b9450611f17565b949350505050565b6001600160a01b03841661201a5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016108db565b33600061202685612b32565b9050600061203385612b32565b905061204483600089858589612b7d565b6000868152602081815260408083206001600160a01b038b16845290915281208054879290612074908490613143565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46120d483600089898989612d0b565b50505050505050565b600b546040517f6352211e0000000000000000000000000000000000000000000000000000000081526004810183905260009161010090046001600160a01b031690636352211e90602401602060405180830381865afa925050508015612161575060408051601f3d908101601f1916820190925261215e9181019061386b565b60015b610907573d80801561218f576040519150601f19603f3d011682016040523d82523d6000602084013e612194565b606091505b5060009392505050565b81518351146122155760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d6174636800000000000000000000000000000000000000000000000060648201526084016108db565b6001600160a01b0384166122795760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b60648201526084016108db565b33612288818787878787612b7d565b60005b84518110156123b15760008582815181106122a8576122a8613855565b6020026020010151905060008583815181106122c6576122c6613855565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156123595760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b60648201526084016108db565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290612396908490613143565b92505081905550505050806123aa906138a1565b905061228b565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612401929190613a25565b60405180910390a4611ba8818787878787612eb0565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612464576040519150601f19603f3d011682016040523d82523d6000602084013e612469565b606091505b50509050806124ba5760405162461bcd60e51b815260206004820152601960248201527f4661696c656420746f207769647468647261772045746865720000000000000060448201526064016108db565b505050565b6000610907825490565b6000610a8b8383612fac565b600480546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0383166125bb5760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016108db565b3360006125c784612b32565b905060006125d484612b32565b90506125f483876000858560405180602001604052806000815250612b7d565b6000858152602081815260408083206001600160a01b038a1684529091529020548481101561268a5760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c60448201527f616e63650000000000000000000000000000000000000000000000000000000060648201526084016108db565b6000868152602081815260408083206001600160a01b038b81168086529184528285208a8703905582518b81529384018a90529092908816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46040805160208101909152600090526120d4565b6127106001620186a06139fa565b600160005260036020527fa15bc60c955c405d20d9149c709e2460f1c2d9a497496a7f46004d1772c3054c541115612746575050565b6000805260036020527f3617319a054d772f909f7c479a2cebe5066e836a939412e32403c99029b92eff54610bb8111561278b5761184c826001610d9684600561315b565b6000805260036020527f3617319a054d772f909f7c479a2cebe5066e836a939412e32403c99029b92eff5461138811156127d05761184c826001610d9684600361315b565b6000805260036020527f3617319a054d772f909f7c479a2cebe5066e836a939412e32403c99029b92eff5461271011156128155761184c826001610d9684600261315b565b6000805260036020527f3617319a054d772f909f7c479a2cebe5066e836a939412e32403c99029b92eff54613a98111561184c5761184c8260018060405180602001604052806000815250611f9e565b61184c600582612fd6565b816001600160a01b0316836001600160a01b0316036128f75760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c66000000000000000000000000000000000000000000000060648201526084016108db565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000610a8b836001600160a01b038416612feb565b6001600160a01b0384166129dd5760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b60648201526084016108db565b3360006129e985612b32565b905060006129f685612b32565b9050612a06838989858589612b7d565b6000868152602081815260408083206001600160a01b038c16845290915290205485811015612a8a5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b60648201526084016108db565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a16825281208054889290612ac7908490613143565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612b27848a8a8a8a8a612d0b565b505050505050505050565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612b6c57612b6c613855565b602090810291909101015292915050565b6001600160a01b038516612c045760005b8351811015612c0257828181518110612ba957612ba9613855565b602002602001015160036000868481518110612bc757612bc7613855565b602002602001015181526020019081526020016000206000828254612bec9190613143565b90915550612bfb9050816138a1565b9050612b8e565b505b6001600160a01b038416611ba85760005b83518110156120d4576000848281518110612c3257612c32613855565b602002602001015190506000848381518110612c5057612c50613855565b6020026020010151905060006003600084815260200190815260200160002054905081811015612ce85760405162461bcd60e51b815260206004820152602860248201527f455243313135353a206275726e20616d6f756e74206578636565647320746f7460448201527f616c537570706c7900000000000000000000000000000000000000000000000060648201526084016108db565b60009283526003602052604090922091039055612d04816138a1565b9050612c15565b6001600160a01b0384163b15611ba85760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612d4f9089908990889088908890600401613a53565b6020604051808303816000875af1925050508015612d8a575060408051601f3d908101601f19168201909252612d8791810190613a96565b60015b612e3f57612d96613ab3565b806308c379a003612dcf5750612daa613acf565b80612db55750612dd1565b8060405162461bcd60e51b81526004016108db919061335e565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e74657200000000000000000000000060648201526084016108db565b6001600160e01b0319811663f23a6e6160e01b146120d45760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b60648201526084016108db565b6001600160a01b0384163b15611ba85760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612ef49089908990889088908890600401613b59565b6020604051808303816000875af1925050508015612f2f575060408051601f3d908101601f19168201909252612f2c91810190613a96565b60015b612f3b57612d96613ab3565b6001600160e01b0319811663bc197c8160e01b146120d45760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b60648201526084016108db565b6000826000018281548110612fc357612fc3613855565b9060005260206000200154905092915050565b6000610a8b836001600160a01b0384166130de565b600081815260018301602052604081205480156130d457600061300f6001836139fa565b8554909150600090613023906001906139fa565b905081811461308857600086600001828154811061304357613043613855565b906000526020600020015490508087600001848154811061306657613066613855565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061309957613099613bb7565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610907565b6000915050610907565b600081815260018301602052604081205461312557508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610907565b506000610907565b634e487b7160e01b600052601160045260246000fd5b600082198211156131565761315661312d565b500190565b60008160001904831182151516156131755761317561312d565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261319f5761319f61317a565b500490565b6001600160a01b0381168114610a3057600080fd5b600080604083850312156131cc57600080fd5b82356131d7816131a4565b946020939093013593505050565b6001600160e01b031981168114610a3057600080fd5b60006020828403121561320d57600080fd5b8135610a8b816131e5565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff8111828210171561325457613254613218565b6040525050565b600067ffffffffffffffff83111561327557613275613218565b60405161328c601f8501601f19166020018261322e565b8091508381528484840111156132a157600080fd5b83836020830137600060208583010152509392505050565b6000602082840312156132cb57600080fd5b813567ffffffffffffffff8111156132e257600080fd5b8201601f810184136132f357600080fd5b611f968482356020840161325b565b60005b8381101561331d578181015183820152602001613305565b8381111561332c576000848401525b50505050565b6000815180845261334a816020860160208601613302565b601f01601f19169290920160200192915050565b602081526000610a8b6020830184613332565b60006020828403121561338357600080fd5b5035919050565b60008083601f84011261339c57600080fd5b50813567ffffffffffffffff8111156133b457600080fd5b6020830191508360208260051b85010111156133cf57600080fd5b9250929050565b600080602083850312156133e957600080fd5b823567ffffffffffffffff81111561340057600080fd5b61340c8582860161338a565b90969095509350505050565b60006020828403121561342a57600080fd5b8135610a8b816131a4565b600081518084526020808501945080840160005b8381101561346557815187529582019590820190600101613449565b509495945050505050565b602081526000610a8b6020830184613435565b600067ffffffffffffffff82111561349d5761349d613218565b5060051b60200190565b600082601f8301126134b857600080fd5b813560206134c582613483565b6040516134d2828261322e565b83815260059390931b85018201928281019150868411156134f257600080fd5b8286015b8481101561350d57803583529183019183016134f6565b509695505050505050565b600082601f83011261352957600080fd5b610a8b8383356020850161325b565b600080600080600060a0868803121561355057600080fd5b853561355b816131a4565b9450602086013561356b816131a4565b9350604086013567ffffffffffffffff8082111561358857600080fd5b61359489838a016134a7565b945060608801359150808211156135aa57600080fd5b6135b689838a016134a7565b935060808801359150808211156135cc57600080fd5b506135d988828901613518565b9150509295509295909350565b600080604083850312156135f957600080fd5b823567ffffffffffffffff8082111561361157600080fd5b818501915085601f83011261362557600080fd5b8135602061363282613483565b60405161363f828261322e565b83815260059390931b850182019282810191508984111561365f57600080fd5b948201945b83861015613686578535613677816131a4565b82529482019490820190613664565b9650508601359250508082111561369c57600080fd5b506136a9858286016134a7565b9150509250929050565b6020808252825182820181905260009190848201906040850190845b818110156136f45783516001600160a01b0316835292840192918401916001016136cf565b50909695505050505050565b6000806040838503121561371357600080fd5b823561371e816131a4565b91506020830135801515811461373357600080fd5b809150509250929050565b6000806000806060858703121561375457600080fd5b843567ffffffffffffffff81111561376b57600080fd5b6137778782880161338a565b90989097506020870135966040013595509350505050565b600080604083850312156137a257600080fd5b82356137ad816131a4565b91506020830135613733816131a4565b600080600080600060a086880312156137d557600080fd5b85356137e0816131a4565b945060208601356137f0816131a4565b93506040860135925060608601359150608086013567ffffffffffffffff81111561381a57600080fd5b6135d988828901613518565b60008351613838818460208801613302565b83519083019061384c818360208801613302565b01949350505050565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561387d57600080fd5b8151610a8b816131a4565b60006020828403121561389a57600080fd5b5051919050565b6000600182016138b3576138b361312d565b5060010190565b600181811c908216806138ce57607f821691505b6020821081036138ee57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156124ba57600081815260208120601f850160051c8101602086101561391b5750805b601f850160051c820191505b81811015611ba857828155600101613927565b815167ffffffffffffffff81111561395457613954613218565b6139688161396284546138ba565b846138f4565b602080601f83116001811461399d57600084156139855750858301515b600019600386901b1c1916600185901b178555611ba8565b600085815260208120601f198616915b828110156139cc578886015182559484019460019091019084016139ad565b50858210156139ea5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082821015613a0c57613a0c61312d565b500390565b600082613a2057613a2061317a565b500690565b604081526000613a386040830185613435565b8281036020840152613a4a8185613435565b95945050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a06080830152613a8b60a0830184613332565b979650505050505050565b600060208284031215613aa857600080fd5b8151610a8b816131e5565b600060033d1115613acc5760046000803e5060005160e01c5b90565b600060443d1015613add5790565b6040516003193d81016004833e81513d67ffffffffffffffff8160248401118184111715613b0d57505050505090565b8285019150815181811115613b255750505050505090565b843d8701016020828501011115613b3f5750505050505090565b613b4e6020828601018761322e565b509095945050505050565b60006001600160a01b03808816835280871660208401525060a06040830152613b8560a0830186613435565b8281036060840152613b978186613435565b90508281036080840152613bab8185613332565b98975050505050505050565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220239288d9418b5bc4efeb9788b27b5eb5e12c9074bfa9cabb57196bfc71d5cc2364736f6c634300080f0033

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

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